Import moonshot-gss-eap_1.0.1.orig.tar.gz
[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 1.0.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='1.0.1'
594 PACKAGE_STRING='mech_eap 1.0.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 LT_SYS_LIBRARY_PATH
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 ac_ct_AR
695 AR
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 OBJDUMP
713 DLLTOOL
714 AS
715 MAINT
716 MAINTAINER_MODE_FALSE
717 MAINTAINER_MODE_TRUE
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 am__untar
733 am__tar
734 AMTAR
735 am__leading_dot
736 SET_MAKE
737 AWK
738 mkdir_p
739 MKDIR_P
740 INSTALL_STRIP_PROGRAM
741 STRIP
742 install_sh
743 MAKEINFO
744 AUTOHEADER
745 AUTOMAKE
746 AUTOCONF
747 ACLOCAL
748 VERSION
749 PACKAGE
750 CYGPATH_W
751 am__isrc
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 EGREP
756 GREP
757 CPP
758 OBJEXT
759 EXEEXT
760 ac_ct_CC
761 CPPFLAGS
762 LDFLAGS
763 CFLAGS
764 CC
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 runstatedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_dependency_tracking
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_static
811 enable_shared
812 with_pic
813 enable_fast_install
814 with_aix_soname
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_reauth
819 enable_acceptor
820 with_krb5
821 with_opensaml
822 with_shibresolver
823 with_shibsp
824 with_openssl
825 with_radsec
826 with_jansson
827 with_libmoonshot
828 '
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CPP
838 LT_SYS_LIBRARY_PATH
839 CXX
840 CXXFLAGS
841 CCC
842 CXXCPP'
843
844
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
866
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 runstatedir='${localstatedir}/run'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *=)   ac_optarg= ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=no ;;
964
965   -docdir | --docdir | --docdi | --doc | --do)
966     ac_prev=docdir ;;
967   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968     docdir=$ac_optarg ;;
969
970   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971     ac_prev=dvidir ;;
972   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973     dvidir=$ac_optarg ;;
974
975   -enable-* | --enable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -runstatedir | --runstatedir | --runstatedi | --runstated \
1135   | --runstate | --runstat | --runsta | --runst | --runs \
1136   | --run | --ru | --r)
1137     ac_prev=runstatedir ;;
1138   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1139   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1140   | --run=* | --ru=* | --r=*)
1141     runstatedir=$ac_optarg ;;
1142
1143   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144     ac_prev=sbindir ;;
1145   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146   | --sbi=* | --sb=*)
1147     sbindir=$ac_optarg ;;
1148
1149   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151   | --sharedst | --shareds | --shared | --share | --shar \
1152   | --sha | --sh)
1153     ac_prev=sharedstatedir ;;
1154   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157   | --sha=* | --sh=*)
1158     sharedstatedir=$ac_optarg ;;
1159
1160   -site | --site | --sit)
1161     ac_prev=site ;;
1162   -site=* | --site=* | --sit=*)
1163     site=$ac_optarg ;;
1164
1165   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166     ac_prev=srcdir ;;
1167   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168     srcdir=$ac_optarg ;;
1169
1170   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171   | --syscon | --sysco | --sysc | --sys | --sy)
1172     ac_prev=sysconfdir ;;
1173   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175     sysconfdir=$ac_optarg ;;
1176
1177   -target | --target | --targe | --targ | --tar | --ta | --t)
1178     ac_prev=target_alias ;;
1179   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180     target_alias=$ac_optarg ;;
1181
1182   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183     verbose=yes ;;
1184
1185   -version | --version | --versio | --versi | --vers | -V)
1186     ac_init_version=: ;;
1187
1188   -with-* | --with-*)
1189     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190     # Reject names that are not valid shell variable names.
1191     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192       as_fn_error $? "invalid package name: $ac_useropt"
1193     ac_useropt_orig=$ac_useropt
1194     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195     case $ac_user_opts in
1196       *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200          ac_unrecognized_sep=', ';;
1201     esac
1202     eval with_$ac_useropt=\$ac_optarg ;;
1203
1204   -without-* | --without-*)
1205     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208       as_fn_error $? "invalid package name: $ac_useropt"
1209     ac_useropt_orig=$ac_useropt
1210     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211     case $ac_user_opts in
1212       *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216          ac_unrecognized_sep=', ';;
1217     esac
1218     eval with_$ac_useropt=no ;;
1219
1220   --x)
1221     # Obsolete; use --with-x.
1222     with_x=yes ;;
1223
1224   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225   | --x-incl | --x-inc | --x-in | --x-i)
1226     ac_prev=x_includes ;;
1227   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229     x_includes=$ac_optarg ;;
1230
1231   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233     ac_prev=x_libraries ;;
1234   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236     x_libraries=$ac_optarg ;;
1237
1238   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240     ;;
1241
1242   *=*)
1243     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244     # Reject names that are not valid shell variable names.
1245     case $ac_envvar in #(
1246       '' | [0-9]* | *[!_$as_cr_alnum]* )
1247       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248     esac
1249     eval $ac_envvar=\$ac_optarg
1250     export $ac_envvar ;;
1251
1252   *)
1253     # FIXME: should be removed in autoconf 3.0.
1254     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258     ;;
1259
1260   esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265   as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269   case $enable_option_checking in
1270     no) ;;
1271     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273   esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278                 datadir sysconfdir sharedstatedir localstatedir includedir \
1279                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280                 libdir localedir mandir runstatedir
1281 do
1282   eval ac_val=\$$ac_var
1283   # Remove trailing slashes.
1284   case $ac_val in
1285     */ )
1286       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287       eval $ac_var=\$ac_val;;
1288   esac
1289   # Be sure to have absolute directory names.
1290   case $ac_val in
1291     [\\/$]* | ?:[\\/]* )  continue;;
1292     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293   esac
1294   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306   if test "x$build_alias" = x; then
1307     cross_compiling=maybe
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324   as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329   ac_srcdir_defaulted=yes
1330   # Try the directory containing this script, then the parent directory.
1331   ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333          X"$as_myself" : 'X\(//\)[^/]' \| \
1334          X"$as_myself" : 'X\(//\)$' \| \
1335          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)[^/].*/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\).*/{
1350             s//\1/
1351             q
1352           }
1353           s/.*/./; q'`
1354   srcdir=$ac_confdir
1355   if test ! -r "$srcdir/$ac_unique_file"; then
1356     srcdir=..
1357   fi
1358 else
1359   ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368         pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371   srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures mech_eap 1.0.1 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking ...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR            user executables [EPREFIX/bin]
1428   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR        program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1433   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463   case $ac_init_help in
1464      short | recursive ) echo "Configuration of mech_eap 1.0.1:";;
1465    esac
1466   cat <<\_ACEOF
1467
1468 Optional Features:
1469   --disable-option-checking  ignore unrecognized --enable/--with options
1470   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472   --enable-dependency-tracking
1473                           do not reject slow dependency extractors
1474   --disable-dependency-tracking
1475                           speeds up one-time build
1476   --enable-silent-rules   less verbose build output (undo: "make V=1")
1477   --disable-silent-rules  verbose build output (undo: "make V=0")
1478   --enable-maintainer-mode
1479                           enable make rules and dependencies not useful (and
1480                           sometimes confusing) to the casual installer
1481   --enable-static[=PKGS]  build static libraries [default=no]
1482   --enable-shared[=PKGS]  build shared libraries [default=yes]
1483   --enable-fast-install[=PKGS]
1484                           optimize for fast installation [default=yes]
1485   --disable-libtool-lock  avoid locking (might break parallel builds)
1486   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1487   --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1493                           both]
1494   --with-aix-soname=aix|svr4|both
1495                           shared library versioning (aka "SONAME") variant to
1496                           provide on AIX, [default=aix].
1497   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1498   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1499                           compiler's sysroot if not specified).
1500   --with-krb5             Use krb5 (in specified installation directory)
1501   --with-opensaml         Use OpenSAML (in specified installation directory)
1502   --with-shibresolver     Use Shibboleth resolver (in specified installation
1503                           directory)
1504   --with-shibsp           Use shibspboleth (in specified installation
1505                           directory)
1506   --with-openssl          Use OpenSSL (in specified installation directory)
1507   --with-radsec           Use radsec (in specified installation directory)
1508   --with-jansson          Use jansson (in specified installation directory)
1509   --with-libmoonshot      Use libmoonshot (in specified installation
1510                           directory)
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CPP         C preprocessor
1521   LT_SYS_LIBRARY_PATH
1522               User-defined run-time library search path.
1523   CXX         C++ compiler command
1524   CXXFLAGS    C++ compiler flags
1525   CXXCPP      C++ preprocessor
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <bugs@project-moonshot.org>.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536   # If there are subdirs, report their specific --help.
1537   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538     test -d "$ac_dir" ||
1539       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540       continue
1541     ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547   # A ".." for each directory in $ac_dir_suffix.
1548   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549   case $ac_top_builddir_sub in
1550   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552   esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560   .)  # We are building in place.
1561     ac_srcdir=.
1562     ac_top_srcdir=$ac_top_builddir_sub
1563     ac_abs_top_srcdir=$ac_pwd ;;
1564   [\\/]* | ?:[\\/]* )  # Absolute name.
1565     ac_srcdir=$srcdir$ac_dir_suffix;
1566     ac_top_srcdir=$srcdir
1567     ac_abs_top_srcdir=$srcdir ;;
1568   *) # Relative name.
1569     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570     ac_top_srcdir=$ac_top_build_prefix$srcdir
1571     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575     cd "$ac_dir" || { ac_status=$?; continue; }
1576     # Check for guested configure.
1577     if test -f "$ac_srcdir/configure.gnu"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580     elif test -f "$ac_srcdir/configure"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure" --help=recursive
1583     else
1584       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585     fi || ac_status=$?
1586     cd "$ac_pwd" || { ac_status=$?; break; }
1587   done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592   cat <<\_ACEOF
1593 mech_eap configure 1.0.1
1594 generated by GNU Autoconf 2.69
1595
1596 Copyright (C) 2012 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   rm -f conftest.$ac_objext
1614   if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617   *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621   (eval "$ac_compile") 2>conftest.err
1622   ac_status=$?
1623   if test -s conftest.err; then
1624     grep -v '^ *+' conftest.err >conftest.er1
1625     cat conftest.er1 >&5
1626     mv -f conftest.er1 conftest.err
1627   fi
1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629   test $ac_status = 0; } && {
1630          test -z "$ac_c_werror_flag" ||
1631          test ! -s conftest.err
1632        } && test -s conftest.$ac_objext; then :
1633   ac_retval=0
1634 else
1635   $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638         ac_retval=1
1639 fi
1640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641   as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_compile
1644
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } > conftest.i && {
1667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        }; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675     ac_retval=1
1676 fi
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_cpp
1681
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1686 # accordingly.
1687 ac_fn_c_check_header_mongrel ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   if eval \${$3+:} false; then :
1691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694   $as_echo_n "(cached) " >&6
1695 fi
1696 eval ac_res=\$$3
1697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 else
1700   # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h.  */
1705 $4
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709   ac_header_compiler=yes
1710 else
1711   ac_header_compiler=no
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1716
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_cpp "$LINENO"; then :
1725   ac_header_preproc=yes
1726 else
1727   ac_header_preproc=no
1728 fi
1729 rm -f conftest.err conftest.i conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1732
1733 # So?  What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735   yes:no: )
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740     ;;
1741   no:yes:* )
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752 ( $as_echo "## ---------------------------------------- ##
1753 ## Report this to bugs@project-moonshot.org ##
1754 ## ---------------------------------------- ##"
1755      ) | sed "s/^/$as_me: WARNING:     /" >&2
1756     ;;
1757 esac
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   eval "$3=\$ac_header_compiler"
1764 fi
1765 eval ac_res=\$$3
1766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 fi
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_header_mongrel
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_link") 2>&5
1788   ac_status=$?
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791   { { case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_try") 2>&5
1798   ac_status=$?
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; }; }; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: program exited with status $ac_status" >&5
1804        $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807        ac_retval=$ac_status
1808 fi
1809   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811   as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists and can be compiled using the include files in
1818 # INCLUDES, setting the cache variable VAR accordingly.
1819 ac_fn_c_check_header_compile ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825   $as_echo_n "(cached) " >&6
1826 else
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833   eval "$3=yes"
1834 else
1835   eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_header_compile
1845
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_c_try_link ()
1850 {
1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852   rm -f conftest.$ac_objext conftest$ac_exeext
1853   if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_link") 2>conftest.err
1861   ac_status=$?
1862   if test -s conftest.err; then
1863     grep -v '^ *+' conftest.err >conftest.er1
1864     cat conftest.er1 >&5
1865     mv -f conftest.er1 conftest.err
1866   fi
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && {
1869          test -z "$ac_c_werror_flag" ||
1870          test ! -s conftest.err
1871        } && test -s conftest$ac_exeext && {
1872          test "$cross_compiling" = yes ||
1873          test -x conftest$ac_exeext
1874        }; then :
1875   ac_retval=0
1876 else
1877   $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880         ac_retval=1
1881 fi
1882   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884   # interfere with the next link command; also delete a directory that is
1885   # left behind by Apple's compiler.  We do this before executing the actions.
1886   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888   as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_link
1891
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901   $as_echo_n "(cached) " >&6
1902 else
1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1907 #define $2 innocuous_$2
1908
1909 /* System header to define __stub macros and hopefully few prototypes,
1910     which can conflict with char $2 (); below.
1911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912     <limits.h> exists even on freestanding compilers.  */
1913
1914 #ifdef __STDC__
1915 # include <limits.h>
1916 #else
1917 # include <assert.h>
1918 #endif
1919
1920 #undef $2
1921
1922 /* Override any GCC internal prototype to avoid an error.
1923    Use char because int might match the return type of a GCC
1924    builtin and then its argument prototype would still apply.  */
1925 #ifdef __cplusplus
1926 extern "C"
1927 #endif
1928 char $2 ();
1929 /* The GNU C library defines this for functions which it implements
1930     to always fail with ENOSYS.  Some functions are actually named
1931     something starting with __ and the normal name is an alias.  */
1932 #if defined __stub_$2 || defined __stub___$2
1933 choke me
1934 #endif
1935
1936 int
1937 main ()
1938 {
1939 return $2 ();
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_link "$LINENO"; then :
1945   eval "$3=yes"
1946 else
1947   eval "$3=no"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext \
1950     conftest$ac_exeext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_c_check_func
1958
1959 # ac_fn_cxx_try_compile LINENO
1960 # ----------------------------
1961 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_cxx_try_compile ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   rm -f conftest.$ac_objext
1966   if { { ac_try="$ac_compile"
1967 case "(($ac_try" in
1968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969   *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973   (eval "$ac_compile") 2>conftest.err
1974   ac_status=$?
1975   if test -s conftest.err; then
1976     grep -v '^ *+' conftest.err >conftest.er1
1977     cat conftest.er1 >&5
1978     mv -f conftest.er1 conftest.err
1979   fi
1980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981   test $ac_status = 0; } && {
1982          test -z "$ac_cxx_werror_flag" ||
1983          test ! -s conftest.err
1984        } && test -s conftest.$ac_objext; then :
1985   ac_retval=0
1986 else
1987   $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990         ac_retval=1
1991 fi
1992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993   as_fn_set_status $ac_retval
1994
1995 } # ac_fn_cxx_try_compile
1996
1997 # ac_fn_cxx_try_cpp LINENO
1998 # ------------------------
1999 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_cpp ()
2001 {
2002   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003   if { { ac_try="$ac_cpp conftest.$ac_ext"
2004 case "(($ac_try" in
2005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006   *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011   ac_status=$?
2012   if test -s conftest.err; then
2013     grep -v '^ *+' conftest.err >conftest.er1
2014     cat conftest.er1 >&5
2015     mv -f conftest.er1 conftest.err
2016   fi
2017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018   test $ac_status = 0; } > conftest.i && {
2019          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2020          test ! -s conftest.err
2021        }; then :
2022   ac_retval=0
2023 else
2024   $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027     ac_retval=1
2028 fi
2029   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030   as_fn_set_status $ac_retval
2031
2032 } # ac_fn_cxx_try_cpp
2033
2034 # ac_fn_cxx_try_link LINENO
2035 # -------------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded.
2037 ac_fn_cxx_try_link ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   rm -f conftest.$ac_objext conftest$ac_exeext
2041   if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044   *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048   (eval "$ac_link") 2>conftest.err
2049   ac_status=$?
2050   if test -s conftest.err; then
2051     grep -v '^ *+' conftest.err >conftest.er1
2052     cat conftest.er1 >&5
2053     mv -f conftest.er1 conftest.err
2054   fi
2055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056   test $ac_status = 0; } && {
2057          test -z "$ac_cxx_werror_flag" ||
2058          test ! -s conftest.err
2059        } && test -s conftest$ac_exeext && {
2060          test "$cross_compiling" = yes ||
2061          test -x conftest$ac_exeext
2062        }; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068         ac_retval=1
2069 fi
2070   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2071   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2072   # interfere with the next link command; also delete a directory that is
2073   # left behind by Apple's compiler.  We do this before executing the actions.
2074   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076   as_fn_set_status $ac_retval
2077
2078 } # ac_fn_cxx_try_link
2079
2080 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2081 # -------------------------------------------
2082 # Tests whether TYPE exists after having included INCLUDES, setting cache
2083 # variable VAR accordingly.
2084 ac_fn_c_check_type ()
2085 {
2086   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090   $as_echo_n "(cached) " >&6
2091 else
2092   eval "$3=no"
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main ()
2098 {
2099 if (sizeof ($2))
2100          return 0;
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $4
2109 int
2110 main ()
2111 {
2112 if (sizeof (($2)))
2113             return 0;
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119
2120 else
2121   eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2136
2137 It was created by mech_eap $as_me 1.0.1, which was
2138 generated by GNU Autoconf 2.69.  Invocation command line was
2139
2140   $ $0 $@
2141
2142 _ACEOF
2143 exec 5>>config.log
2144 {
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2149
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2158
2159 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2160 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2163 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2164 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2165 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2166
2167 _ASUNAME
2168
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172   IFS=$as_save_IFS
2173   test -z "$as_dir" && as_dir=.
2174     $as_echo "PATH: $as_dir"
2175   done
2176 IFS=$as_save_IFS
2177
2178 } >&5
2179
2180 cat >&5 <<_ACEOF
2181
2182
2183 ## ----------- ##
2184 ## Core tests. ##
2185 ## ----------- ##
2186
2187 _ACEOF
2188
2189
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2195 ac_configure_args=
2196 ac_configure_args0=
2197 ac_configure_args1=
2198 ac_must_keep_next=false
2199 for ac_pass in 1 2
2200 do
2201   for ac_arg
2202   do
2203     case $ac_arg in
2204     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206     | -silent | --silent | --silen | --sile | --sil)
2207       continue ;;
2208     *\'*)
2209       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210     esac
2211     case $ac_pass in
2212     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213     2)
2214       as_fn_append ac_configure_args1 " '$ac_arg'"
2215       if test $ac_must_keep_next = true; then
2216         ac_must_keep_next=false # Got value, back to normal.
2217       else
2218         case $ac_arg in
2219           *=* | --config-cache | -C | -disable-* | --disable-* \
2220           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222           | -with-* | --with-* | -without-* | --without-* | --x)
2223             case "$ac_configure_args0 " in
2224               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225             esac
2226             ;;
2227           -* ) ac_must_keep_next=true ;;
2228         esac
2229       fi
2230       as_fn_append ac_configure_args " '$ac_arg'"
2231       ;;
2232     esac
2233   done
2234 done
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2237
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log.  We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244   # Save into config.log some information that might help in debugging.
2245   {
2246     echo
2247
2248     $as_echo "## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##"
2251     echo
2252     # The following way of writing the cache mishandles newlines in values,
2253 (
2254   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255     eval ac_val=\$$ac_var
2256     case $ac_val in #(
2257     *${as_nl}*)
2258       case $ac_var in #(
2259       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2261       esac
2262       case $ac_var in #(
2263       _ | IFS | as_nl) ;; #(
2264       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265       *) { eval $ac_var=; unset $ac_var;} ;;
2266       esac ;;
2267     esac
2268   done
2269   (set) 2>&1 |
2270     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271     *${as_nl}ac_space=\ *)
2272       sed -n \
2273         "s/'\''/'\''\\\\'\'''\''/g;
2274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2275       ;; #(
2276     *)
2277       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2278       ;;
2279     esac |
2280     sort
2281 )
2282     echo
2283
2284     $as_echo "## ----------------- ##
2285 ## Output variables. ##
2286 ## ----------------- ##"
2287     echo
2288     for ac_var in $ac_subst_vars
2289     do
2290       eval ac_val=\$$ac_var
2291       case $ac_val in
2292       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293       esac
2294       $as_echo "$ac_var='\''$ac_val'\''"
2295     done | sort
2296     echo
2297
2298     if test -n "$ac_subst_files"; then
2299       $as_echo "## ------------------- ##
2300 ## File substitutions. ##
2301 ## ------------------- ##"
2302       echo
2303       for ac_var in $ac_subst_files
2304       do
2305         eval ac_val=\$$ac_var
2306         case $ac_val in
2307         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2308         esac
2309         $as_echo "$ac_var='\''$ac_val'\''"
2310       done | sort
2311       echo
2312     fi
2313
2314     if test -s confdefs.h; then
2315       $as_echo "## ----------- ##
2316 ## confdefs.h. ##
2317 ## ----------- ##"
2318       echo
2319       cat confdefs.h
2320       echo
2321     fi
2322     test "$ac_signal" != 0 &&
2323       $as_echo "$as_me: caught signal $ac_signal"
2324     $as_echo "$as_me: exit $exit_status"
2325   } >&5
2326   rm -f core *.core core.conftest.* &&
2327     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2328     exit $exit_status
2329 ' 0
2330 for ac_signal in 1 2 13 15; do
2331   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2332 done
2333 ac_signal=0
2334
2335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2336 rm -f -r conftest* confdefs.h
2337
2338 $as_echo "/* confdefs.h */" > confdefs.h
2339
2340 # Predefined preprocessor variables.
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_NAME "$PACKAGE_NAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_STRING "$PACKAGE_STRING"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2360 _ACEOF
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_URL "$PACKAGE_URL"
2364 _ACEOF
2365
2366
2367 # Let the site file select an alternate cache file if it wants to.
2368 # Prefer an explicitly selected file to automatically selected ones.
2369 ac_site_file1=NONE
2370 ac_site_file2=NONE
2371 if test -n "$CONFIG_SITE"; then
2372   # We do not want a PATH search for config.site.
2373   case $CONFIG_SITE in #((
2374     -*)  ac_site_file1=./$CONFIG_SITE;;
2375     */*) ac_site_file1=$CONFIG_SITE;;
2376     *)   ac_site_file1=./$CONFIG_SITE;;
2377   esac
2378 elif test "x$prefix" != xNONE; then
2379   ac_site_file1=$prefix/share/config.site
2380   ac_site_file2=$prefix/etc/config.site
2381 else
2382   ac_site_file1=$ac_default_prefix/share/config.site
2383   ac_site_file2=$ac_default_prefix/etc/config.site
2384 fi
2385 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2386 do
2387   test "x$ac_site_file" = xNONE && continue
2388   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2390 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2391     sed 's/^/| /' "$ac_site_file" >&5
2392     . "$ac_site_file" \
2393       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 as_fn_error $? "failed to load site script $ac_site_file
2396 See \`config.log' for more details" "$LINENO" 5; }
2397   fi
2398 done
2399
2400 if test -r "$cache_file"; then
2401   # Some versions of bash will fail to source /dev/null (special files
2402   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2403   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2404     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;}
2406     case $cache_file in
2407       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408       *)                      . "./$cache_file";;
2409     esac
2410   fi
2411 else
2412   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;}
2414   >$cache_file
2415 fi
2416
2417 # Check that the precious variables saved in the cache have kept the same
2418 # value.
2419 ac_cache_corrupted=false
2420 for ac_var in $ac_precious_vars; do
2421   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2422   eval ac_new_set=\$ac_env_${ac_var}_set
2423   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2424   eval ac_new_val=\$ac_env_${ac_var}_value
2425   case $ac_old_set,$ac_new_set in
2426     set,)
2427       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,set)
2431       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2433       ac_cache_corrupted=: ;;
2434     ,);;
2435     *)
2436       if test "x$ac_old_val" != "x$ac_new_val"; then
2437         # differences in whitespace do not lead to failure.
2438         ac_old_val_w=`echo x $ac_old_val`
2439         ac_new_val_w=`echo x $ac_new_val`
2440         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2441           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2443           ac_cache_corrupted=:
2444         else
2445           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2447           eval $ac_var=\$ac_old_val
2448         fi
2449         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2450 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2451         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2452 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2453       fi;;
2454   esac
2455   # Pass precious variables to config.status.
2456   if test "$ac_new_set" = set; then
2457     case $ac_new_val in
2458     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2459     *) ac_arg=$ac_var=$ac_new_val ;;
2460     esac
2461     case " $ac_configure_args " in
2462       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2463       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2464     esac
2465   fi
2466 done
2467 if $ac_cache_corrupted; then
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2472   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2473 fi
2474 ## -------------------- ##
2475 ## Main body of script. ##
2476 ## -------------------- ##
2477
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483
2484
2485
2486 ac_aux_dir=
2487 for ac_dir in build-aux "$srcdir"/build-aux; do
2488   if test -f "$ac_dir/install-sh"; then
2489     ac_aux_dir=$ac_dir
2490     ac_install_sh="$ac_aux_dir/install-sh -c"
2491     break
2492   elif test -f "$ac_dir/install.sh"; then
2493     ac_aux_dir=$ac_dir
2494     ac_install_sh="$ac_aux_dir/install.sh -c"
2495     break
2496   elif test -f "$ac_dir/shtool"; then
2497     ac_aux_dir=$ac_dir
2498     ac_install_sh="$ac_aux_dir/shtool install -c"
2499     break
2500   fi
2501 done
2502 if test -z "$ac_aux_dir"; then
2503   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2504 fi
2505
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2512 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2513
2514
2515
2516 # Expand $ac_aux_dir to an absolute path.
2517 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 if test -n "$ac_tool_prefix"; then
2525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530   $as_echo_n "(cached) " >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540     for ac_exec_ext in '' $ac_executable_extensions; do
2541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547   done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562 fi
2563 if test -z "$ac_cv_prog_CC"; then
2564   ac_ct_CC=$CC
2565   # Extract the first word of "gcc", so it can be a program name with args.
2566 set dummy gcc; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   if test -n "$ac_ct_CC"; then
2573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580     for ac_exec_ext in '' $ac_executable_extensions; do
2581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582     ac_cv_prog_ac_ct_CC="gcc"
2583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587   done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2595 $as_echo "$ac_ct_CC" >&6; }
2596 else
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601   if test "x$ac_ct_CC" = x; then
2602     CC=""
2603   else
2604     case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610     CC=$ac_ct_CC
2611   fi
2612 else
2613   CC="$ac_cv_prog_CC"
2614 fi
2615
2616 if test -z "$CC"; then
2617           if test -n "$ac_tool_prefix"; then
2618     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}cc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_CC+:} false; then :
2623   $as_echo_n "(cached) " >&6
2624 else
2625   if test -n "$CC"; then
2626   ac_cv_prog_CC="$CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     for ac_exec_ext in '' $ac_executable_extensions; do
2634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635     ac_cv_prog_CC="${ac_tool_prefix}cc"
2636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640   done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648 $as_echo "$CC" >&6; }
2649 else
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655   fi
2656 fi
2657 if test -z "$CC"; then
2658   # Extract the first word of "cc", so it can be a program name with args.
2659 set dummy cc; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_CC+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test -n "$CC"; then
2666   ac_cv_prog_CC="$CC" # Let the user override the test.
2667 else
2668   ac_prog_rejected=no
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2677        ac_prog_rejected=yes
2678        continue
2679      fi
2680     ac_cv_prog_CC="cc"
2681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685   done
2686 IFS=$as_save_IFS
2687
2688 if test $ac_prog_rejected = yes; then
2689   # We found a bogon in the path, so make sure we never use it.
2690   set dummy $ac_cv_prog_CC
2691   shift
2692   if test $# != 0; then
2693     # We chose a different compiler from the bogus one.
2694     # However, it has the same basename, so the bogon will be chosen
2695     # first if we set CC to just the basename; use the full file name.
2696     shift
2697     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698   fi
2699 fi
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711
2712 fi
2713 if test -z "$CC"; then
2714   if test -n "$ac_tool_prefix"; then
2715   for ac_prog in cl.exe
2716   do
2717     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_CC+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732     for ac_exec_ext in '' $ac_executable_extensions; do
2733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739   done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754     test -n "$CC" && break
2755   done
2756 fi
2757 if test -z "$CC"; then
2758   ac_ct_CC=$CC
2759   for ac_prog in cl.exe
2760 do
2761   # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$ac_ct_CC"; then
2769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778     ac_cv_prog_ac_ct_CC="$ac_prog"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798   test -n "$ac_ct_CC" && break
2799 done
2800
2801   if test "x$ac_ct_CC" = x; then
2802     CC=""
2803   else
2804     case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810     CC=$ac_ct_CC
2811   fi
2812 fi
2813
2814 fi
2815
2816
2817 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 as_fn_error $? "no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details" "$LINENO" 5; }
2821
2822 # Provide some information about the compiler.
2823 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2824 set X $ac_compile
2825 ac_compiler=$2
2826 for ac_option in --version -v -V -qversion; do
2827   { { ac_try="$ac_compiler $ac_option >&5"
2828 case "(($ac_try" in
2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830   *) ac_try_echo=$ac_try;;
2831 esac
2832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2833 $as_echo "$ac_try_echo"; } >&5
2834   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2835   ac_status=$?
2836   if test -s conftest.err; then
2837     sed '10a\
2838 ... rest of stderr output deleted ...
2839          10q' conftest.err >conftest.er1
2840     cat conftest.er1 >&5
2841   fi
2842   rm -f conftest.er1 conftest.err
2843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844   test $ac_status = 0; }
2845 done
2846
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h.  */
2849
2850 int
2851 main ()
2852 {
2853
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 ac_clean_files_save=$ac_clean_files
2859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2860 # Try to create an executable without -o first, disregard a.out.
2861 # It will help us diagnose broken compilers, and finding out an intuition
2862 # of exeext.
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2864 $as_echo_n "checking whether the C compiler works... " >&6; }
2865 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2866
2867 # The possible output files:
2868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2869
2870 ac_rmfiles=
2871 for ac_file in $ac_files
2872 do
2873   case $ac_file in
2874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2876   esac
2877 done
2878 rm -f $ac_rmfiles
2879
2880 if { { ac_try="$ac_link_default"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887   (eval "$ac_link_default") 2>&5
2888   ac_status=$?
2889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890   test $ac_status = 0; }; then :
2891   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2892 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2893 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2894 # so that the user can short-circuit this test for compilers unknown to
2895 # Autoconf.
2896 for ac_file in $ac_files ''
2897 do
2898   test -f "$ac_file" || continue
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2901         ;;
2902     [ab].out )
2903         # We found the default executable, but exeext='' is most
2904         # certainly right.
2905         break;;
2906     *.* )
2907         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2908         then :; else
2909            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910         fi
2911         # We set ac_cv_exeext here because the later test for it is not
2912         # safe: cross compilers may not add the suffix if given an `-o'
2913         # argument, so we may need to know it at that point already.
2914         # Even if this section looks crufty: it has the advantage of
2915         # actually working.
2916         break;;
2917     * )
2918         break;;
2919   esac
2920 done
2921 test "$ac_cv_exeext" = no && ac_cv_exeext=
2922
2923 else
2924   ac_file=''
2925 fi
2926 if test -z "$ac_file"; then :
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 $as_echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error 77 "C compiler cannot create executables
2935 See \`config.log' for more details" "$LINENO" 5; }
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2941 $as_echo_n "checking for C compiler default output file name... " >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2943 $as_echo "$ac_file" >&6; }
2944 ac_exeext=$ac_cv_exeext
2945
2946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2947 ac_clean_files=$ac_clean_files_save
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2949 $as_echo_n "checking for suffix of executables... " >&6; }
2950 if { { ac_try="$ac_link"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957   (eval "$ac_link") 2>&5
2958   ac_status=$?
2959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960   test $ac_status = 0; }; then :
2961   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2962 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2963 # work properly (i.e., refer to `conftest.exe'), while it won't with
2964 # `rm'.
2965 for ac_file in conftest.exe conftest conftest.*; do
2966   test -f "$ac_file" || continue
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2969     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970           break;;
2971     * ) break;;
2972   esac
2973 done
2974 else
2975   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details" "$LINENO" 5; }
2979 fi
2980 rm -f conftest conftest$ac_cv_exeext
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2982 $as_echo "$ac_cv_exeext" >&6; }
2983
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2986 ac_exeext=$EXEEXT
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989 #include <stdio.h>
2990 int
2991 main ()
2992 {
2993 FILE *f = fopen ("conftest.out", "w");
2994  return ferror (f) || fclose (f) != 0;
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 ac_clean_files="$ac_clean_files conftest.out"
3001 # Check that the compiler produces executables we can run.  If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3004 $as_echo_n "checking whether we are cross compiling... " >&6; }
3005 if test "$cross_compiling" != yes; then
3006   { { ac_try="$ac_link"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013   (eval "$ac_link") 2>&5
3014   ac_status=$?
3015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016   test $ac_status = 0; }
3017   if { ac_try='./conftest$ac_cv_exeext'
3018   { { case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027   test $ac_status = 0; }; }; then
3028     cross_compiling=no
3029   else
3030     if test "$cross_compiling" = maybe; then
3031         cross_compiling=yes
3032     else
3033         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error $? "cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details" "$LINENO" 5; }
3038     fi
3039   fi
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3042 $as_echo "$cross_compiling" >&6; }
3043
3044 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3047 $as_echo_n "checking for suffix of object files... " >&6; }
3048 if ${ac_cv_objext+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h.  */
3053
3054 int
3055 main ()
3056 {
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.o conftest.obj
3063 if { { ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070   (eval "$ac_compile") 2>&5
3071   ac_status=$?
3072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073   test $ac_status = 0; }; then :
3074   for ac_file in conftest.o conftest.obj conftest.*; do
3075   test -f "$ac_file" || continue;
3076   case $ac_file in
3077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3078     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3079        break;;
3080   esac
3081 done
3082 else
3083   $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot compute suffix of object files: cannot compile
3089 See \`config.log' for more details" "$LINENO" 5; }
3090 fi
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3096 ac_objext=$OBJEXT
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if ${ac_cv_c_compiler_gnu+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108 #ifndef __GNUC__
3109        choke me
3110 #endif
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117   ac_compiler_gnu=yes
3118 else
3119   ac_compiler_gnu=no
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3126 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3127 if test $ac_compiler_gnu = yes; then
3128   GCC=yes
3129 else
3130   GCC=
3131 fi
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3135 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3136 if ${ac_cv_prog_cc_g+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   ac_save_c_werror_flag=$ac_c_werror_flag
3140    ac_c_werror_flag=yes
3141    ac_cv_prog_cc_g=no
3142    CFLAGS="-g"
3143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"; then :
3155   ac_cv_prog_cc_g=yes
3156 else
3157   CFLAGS=""
3158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170
3171 else
3172   ac_c_werror_flag=$ac_save_c_werror_flag
3173          CFLAGS="-g"
3174          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 if ac_fn_c_try_compile "$LINENO"; then :
3186   ac_cv_prog_cc_g=yes
3187 fi
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193    ac_c_werror_flag=$ac_save_c_werror_flag
3194 fi
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3196 $as_echo "$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198   CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200   if test "$GCC" = yes; then
3201     CFLAGS="-g -O2"
3202   else
3203     CFLAGS="-g"
3204   fi
3205 else
3206   if test "$GCC" = yes; then
3207     CFLAGS="-O2"
3208   else
3209     CFLAGS=
3210   fi
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3213 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3214 if ${ac_cv_prog_cc_c89+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   ac_cv_prog_cc_c89=no
3218 ac_save_CC=$CC
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h.  */
3221 #include <stdarg.h>
3222 #include <stdio.h>
3223 struct stat;
3224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3225 struct buf { int x; };
3226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227 static char *e (p, i)
3228      char **p;
3229      int i;
3230 {
3231   return p[i];
3232 }
3233 static char *f (char * (*g) (char **, int), char **p, ...)
3234 {
3235   char *s;
3236   va_list v;
3237   va_start (v,p);
3238   s = g (p, va_arg (v,int));
3239   va_end (v);
3240   return s;
3241 }
3242
3243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3244    function prototypes and stuff, but not '\xHH' hex character constants.
3245    These don't provoke an error unfortunately, instead are silently treated
3246    as 'x'.  The following induces an error, until -std is added to get
3247    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3248    array size at least.  It's necessary to write '\x00'==0 to get something
3249    that's true only with -std.  */
3250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251
3252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253    inside strings and character constants.  */
3254 #define FOO(x) 'x'
3255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256
3257 int test (int i, double x);
3258 struct s1 {int (*f) (int a);};
3259 struct s2 {int (*f) (double a);};
3260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3261 int argc;
3262 char **argv;
3263 int
3264 main ()
3265 {
3266 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 do
3274   CC="$ac_save_CC $ac_arg"
3275   if ac_fn_c_try_compile "$LINENO"; then :
3276   ac_cv_prog_cc_c89=$ac_arg
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext
3279   test "x$ac_cv_prog_cc_c89" != "xno" && break
3280 done
3281 rm -f conftest.$ac_ext
3282 CC=$ac_save_CC
3283
3284 fi
3285 # AC_CACHE_VAL
3286 case "x$ac_cv_prog_cc_c89" in
3287   x)
3288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3289 $as_echo "none needed" >&6; } ;;
3290   xno)
3291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3292 $as_echo "unsupported" >&6; } ;;
3293   *)
3294     CC="$CC $ac_cv_prog_cc_c89"
3295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3297 esac
3298 if test "x$ac_cv_prog_cc_c89" != xno; then :
3299
3300 fi
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3314 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3315 if ${am_cv_prog_cc_c_o+:} false; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329   # Make sure it works both with $CC and with simple cc.
3330   # Following AC_PROG_CC_C_O, we do the test twice because some
3331   # compilers refuse to overwrite an existing .o file with -o,
3332   # though they will create one.
3333   am_cv_prog_cc_c_o=yes
3334   for am_i in 1 2; do
3335     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3336    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3337    ac_status=$?
3338    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339    (exit $ac_status); } \
3340          && test -f conftest2.$ac_objext; then
3341       : OK
3342     else
3343       am_cv_prog_cc_c_o=no
3344       break
3345     fi
3346   done
3347   rm -f core conftest*
3348   unset am_i
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3351 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3352 if test "$am_cv_prog_cc_c_o" != yes; then
3353    # Losing compiler, so override with the script.
3354    # FIXME: It is wrong to rewrite CC.
3355    # But if we don't then we get into trouble of one sort or another.
3356    # A longer-term fix would be to have automake use am__CC in this case,
3357    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3358    CC="$am_aux_dir/compile $CC"
3359 fi
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366
3367
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3374 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3375 # On Suns, sometimes $CPP names a directory.
3376 if test -n "$CPP" && test -d "$CPP"; then
3377   CPP=
3378 fi
3379 if test -z "$CPP"; then
3380   if ${ac_cv_prog_CPP+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383       # Double quotes because CPP needs to be expanded
3384     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3385     do
3386       ac_preproc_ok=false
3387 for ac_c_preproc_warn_flag in '' yes
3388 do
3389   # Use a header file that comes with gcc, so configuring glibc
3390   # with a fresh cross-compiler works.
3391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3392   # <limits.h> exists even on freestanding compilers.
3393   # On the NeXT, cc -E runs the code through the compiler's parser,
3394   # not just through cpp. "Syntax error" is here to catch this case.
3395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397 #ifdef __STDC__
3398 # include <limits.h>
3399 #else
3400 # include <assert.h>
3401 #endif
3402                      Syntax error
3403 _ACEOF
3404 if ac_fn_c_try_cpp "$LINENO"; then :
3405
3406 else
3407   # Broken: fails on valid input.
3408 continue
3409 fi
3410 rm -f conftest.err conftest.i conftest.$ac_ext
3411
3412   # OK, works on sane cases.  Now check whether nonexistent headers
3413   # can be detected and how.
3414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416 #include <ac_nonexistent.h>
3417 _ACEOF
3418 if ac_fn_c_try_cpp "$LINENO"; then :
3419   # Broken: success on invalid input.
3420 continue
3421 else
3422   # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3425 fi
3426 rm -f conftest.err conftest.i conftest.$ac_ext
3427
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.i conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then :
3432   break
3433 fi
3434
3435     done
3436     ac_cv_prog_CPP=$CPP
3437
3438 fi
3439   CPP=$ac_cv_prog_CPP
3440 else
3441   ac_cv_prog_CPP=$CPP
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3444 $as_echo "$CPP" >&6; }
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3447 do
3448   # Use a header file that comes with gcc, so configuring glibc
3449   # with a fresh cross-compiler works.
3450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451   # <limits.h> exists even on freestanding compilers.
3452   # On the NeXT, cc -E runs the code through the compiler's parser,
3453   # not just through cpp. "Syntax error" is here to catch this case.
3454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h.  */
3456 #ifdef __STDC__
3457 # include <limits.h>
3458 #else
3459 # include <assert.h>
3460 #endif
3461                      Syntax error
3462 _ACEOF
3463 if ac_fn_c_try_cpp "$LINENO"; then :
3464
3465 else
3466   # Broken: fails on valid input.
3467 continue
3468 fi
3469 rm -f conftest.err conftest.i conftest.$ac_ext
3470
3471   # OK, works on sane cases.  Now check whether nonexistent headers
3472   # can be detected and how.
3473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475 #include <ac_nonexistent.h>
3476 _ACEOF
3477 if ac_fn_c_try_cpp "$LINENO"; then :
3478   # Broken: success on invalid input.
3479 continue
3480 else
3481   # Passes both tests.
3482 ac_preproc_ok=:
3483 break
3484 fi
3485 rm -f conftest.err conftest.i conftest.$ac_ext
3486
3487 done
3488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3489 rm -f conftest.i conftest.err conftest.$ac_ext
3490 if $ac_preproc_ok; then :
3491
3492 else
3493   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3496 See \`config.log' for more details" "$LINENO" 5; }
3497 fi
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3508 if ${ac_cv_path_GREP+:} false; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   if test -z "$GREP"; then
3512   ac_path_GREP_found=false
3513   # Loop through the user's path and test for each of PROGNAME-LIST
3514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516 do
3517   IFS=$as_save_IFS
3518   test -z "$as_dir" && as_dir=.
3519     for ac_prog in grep ggrep; do
3520     for ac_exec_ext in '' $ac_executable_extensions; do
3521       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3522       as_fn_executable_p "$ac_path_GREP" || continue
3523 # Check for GNU ac_path_GREP and select it if it is found.
3524   # Check for GNU $ac_path_GREP
3525 case `"$ac_path_GREP" --version 2>&1` in
3526 *GNU*)
3527   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3528 *)
3529   ac_count=0
3530   $as_echo_n 0123456789 >"conftest.in"
3531   while :
3532   do
3533     cat "conftest.in" "conftest.in" >"conftest.tmp"
3534     mv "conftest.tmp" "conftest.in"
3535     cp "conftest.in" "conftest.nl"
3536     $as_echo 'GREP' >> "conftest.nl"
3537     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539     as_fn_arith $ac_count + 1 && ac_count=$as_val
3540     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3541       # Best one so far, save it but keep looking for a better one
3542       ac_cv_path_GREP="$ac_path_GREP"
3543       ac_path_GREP_max=$ac_count
3544     fi
3545     # 10*(2^10) chars as input seems more than enough
3546     test $ac_count -gt 10 && break
3547   done
3548   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549 esac
3550
3551       $ac_path_GREP_found && break 3
3552     done
3553   done
3554   done
3555 IFS=$as_save_IFS
3556   if test -z "$ac_cv_path_GREP"; then
3557     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3558   fi
3559 else
3560   ac_cv_path_GREP=$GREP
3561 fi
3562
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3565 $as_echo "$ac_cv_path_GREP" >&6; }
3566  GREP="$ac_cv_path_GREP"
3567
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3570 $as_echo_n "checking for egrep... " >&6; }
3571 if ${ac_cv_path_EGREP+:} false; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3575    then ac_cv_path_EGREP="$GREP -E"
3576    else
3577      if test -z "$EGREP"; then
3578   ac_path_EGREP_found=false
3579   # Loop through the user's path and test for each of PROGNAME-LIST
3580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585     for ac_prog in egrep; do
3586     for ac_exec_ext in '' $ac_executable_extensions; do
3587       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3588       as_fn_executable_p "$ac_path_EGREP" || continue
3589 # Check for GNU ac_path_EGREP and select it if it is found.
3590   # Check for GNU $ac_path_EGREP
3591 case `"$ac_path_EGREP" --version 2>&1` in
3592 *GNU*)
3593   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3594 *)
3595   ac_count=0
3596   $as_echo_n 0123456789 >"conftest.in"
3597   while :
3598   do
3599     cat "conftest.in" "conftest.in" >"conftest.tmp"
3600     mv "conftest.tmp" "conftest.in"
3601     cp "conftest.in" "conftest.nl"
3602     $as_echo 'EGREP' >> "conftest.nl"
3603     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605     as_fn_arith $ac_count + 1 && ac_count=$as_val
3606     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3607       # Best one so far, save it but keep looking for a better one
3608       ac_cv_path_EGREP="$ac_path_EGREP"
3609       ac_path_EGREP_max=$ac_count
3610     fi
3611     # 10*(2^10) chars as input seems more than enough
3612     test $ac_count -gt 10 && break
3613   done
3614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615 esac
3616
3617       $ac_path_EGREP_found && break 3
3618     done
3619   done
3620   done
3621 IFS=$as_save_IFS
3622   if test -z "$ac_cv_path_EGREP"; then
3623     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624   fi
3625 else
3626   ac_cv_path_EGREP=$EGREP
3627 fi
3628
3629    fi
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3632 $as_echo "$ac_cv_path_EGREP" >&6; }
3633  EGREP="$ac_cv_path_EGREP"
3634
3635
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3637 $as_echo_n "checking for ANSI C header files... " >&6; }
3638 if ${ac_cv_header_stdc+:} false; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643 #include <stdlib.h>
3644 #include <stdarg.h>
3645 #include <string.h>
3646 #include <float.h>
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657   ac_cv_header_stdc=yes
3658 else
3659   ac_cv_header_stdc=no
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662
3663 if test $ac_cv_header_stdc = yes; then
3664   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667 #include <string.h>
3668
3669 _ACEOF
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671   $EGREP "memchr" >/dev/null 2>&1; then :
3672
3673 else
3674   ac_cv_header_stdc=no
3675 fi
3676 rm -f conftest*
3677
3678 fi
3679
3680 if test $ac_cv_header_stdc = yes; then
3681   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h.  */
3684 #include <stdlib.h>
3685
3686 _ACEOF
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688   $EGREP "free" >/dev/null 2>&1; then :
3689
3690 else
3691   ac_cv_header_stdc=no
3692 fi
3693 rm -f conftest*
3694
3695 fi
3696
3697 if test $ac_cv_header_stdc = yes; then
3698   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3699   if test "$cross_compiling" = yes; then :
3700   :
3701 else
3702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704 #include <ctype.h>
3705 #include <stdlib.h>
3706 #if ((' ' & 0x0FF) == 0x020)
3707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3709 #else
3710 # define ISLOWER(c) \
3711                    (('a' <= (c) && (c) <= 'i') \
3712                      || ('j' <= (c) && (c) <= 'r') \
3713                      || ('s' <= (c) && (c) <= 'z'))
3714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3715 #endif
3716
3717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3718 int
3719 main ()
3720 {
3721   int i;
3722   for (i = 0; i < 256; i++)
3723     if (XOR (islower (i), ISLOWER (i))
3724         || toupper (i) != TOUPPER (i))
3725       return 2;
3726   return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_run "$LINENO"; then :
3730
3731 else
3732   ac_cv_header_stdc=no
3733 fi
3734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3735   conftest.$ac_objext conftest.beam conftest.$ac_ext
3736 fi
3737
3738 fi
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3741 $as_echo "$ac_cv_header_stdc" >&6; }
3742 if test $ac_cv_header_stdc = yes; then
3743
3744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3745
3746 fi
3747
3748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750                   inttypes.h stdint.h unistd.h
3751 do :
3752   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3754 "
3755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3756   cat >>confdefs.h <<_ACEOF
3757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 _ACEOF
3759
3760 fi
3761
3762 done
3763
3764
3765
3766   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3767 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3768   MINIX=yes
3769 else
3770   MINIX=
3771 fi
3772
3773
3774   if test "$MINIX" = yes; then
3775
3776 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3777
3778
3779 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3780
3781
3782 $as_echo "#define _MINIX 1" >>confdefs.h
3783
3784   fi
3785
3786
3787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3788 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3789 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h.  */
3794
3795 #         define __EXTENSIONS__ 1
3796           $ac_includes_default
3797 int
3798 main ()
3799 {
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806   ac_cv_safe_to_define___extensions__=yes
3807 else
3808   ac_cv_safe_to_define___extensions__=no
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3813 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3814   test $ac_cv_safe_to_define___extensions__ = yes &&
3815     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3816
3817   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3818
3819   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3820
3821   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3822
3823   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3824
3825
3826 am__api_version='1.15'
3827
3828 # Find a good install program.  We prefer a C program (faster),
3829 # so one script is as good as another.  But avoid the broken or
3830 # incompatible versions:
3831 # SysV /etc/install, /usr/sbin/install
3832 # SunOS /usr/etc/install
3833 # IRIX /sbin/install
3834 # AIX /bin/install
3835 # AmigaOS /C/install, which installs bootblocks on floppy discs
3836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3837 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3838 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3839 # OS/2's system install, which has a completely different semantic
3840 # ./install, which can be erroneously created by make from ./install.sh.
3841 # Reject install programs that cannot install multiple files.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3843 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3844 if test -z "$INSTALL"; then
3845 if ${ac_cv_path_install+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853     # Account for people who put trailing slashes in PATH elements.
3854 case $as_dir/ in #((
3855   ./ | .// | /[cC]/* | \
3856   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3857   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3858   /usr/ucb/* ) ;;
3859   *)
3860     # OSF1 and SCO ODT 3.0 have their own names for install.
3861     # Don't use installbsd from OSF since it installs stuff as root
3862     # by default.
3863     for ac_prog in ginstall scoinst install; do
3864       for ac_exec_ext in '' $ac_executable_extensions; do
3865         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3866           if test $ac_prog = install &&
3867             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3868             # AIX install.  It has an incompatible calling convention.
3869             :
3870           elif test $ac_prog = install &&
3871             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3872             # program-specific install script used by HP pwplus--don't use.
3873             :
3874           else
3875             rm -rf conftest.one conftest.two conftest.dir
3876             echo one > conftest.one
3877             echo two > conftest.two
3878             mkdir conftest.dir
3879             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3880               test -s conftest.one && test -s conftest.two &&
3881               test -s conftest.dir/conftest.one &&
3882               test -s conftest.dir/conftest.two
3883             then
3884               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3885               break 3
3886             fi
3887           fi
3888         fi
3889       done
3890     done
3891     ;;
3892 esac
3893
3894   done
3895 IFS=$as_save_IFS
3896
3897 rm -rf conftest.one conftest.two conftest.dir
3898
3899 fi
3900   if test "${ac_cv_path_install+set}" = set; then
3901     INSTALL=$ac_cv_path_install
3902   else
3903     # As a last resort, use the slow shell script.  Don't cache a
3904     # value for INSTALL within a source directory, because that will
3905     # break other packages using the cache if that directory is
3906     # removed, or if the value is a relative name.
3907     INSTALL=$ac_install_sh
3908   fi
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3911 $as_echo "$INSTALL" >&6; }
3912
3913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3914 # It thinks the first close brace ends the variable substitution.
3915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3916
3917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3918
3919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3922 $as_echo_n "checking whether build environment is sane... " >&6; }
3923 # Reject unsafe characters in $srcdir or the absolute working directory
3924 # name.  Accept space and tab only in the latter.
3925 am_lf='
3926 '
3927 case `pwd` in
3928   *[\\\"\#\$\&\'\`$am_lf]*)
3929     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3930 esac
3931 case $srcdir in
3932   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3933     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3934 esac
3935
3936 # Do 'set' in a subshell so we don't clobber the current shell's
3937 # arguments.  Must try -L first in case configure is actually a
3938 # symlink; some systems play weird games with the mod time of symlinks
3939 # (eg FreeBSD returns the mod time of the symlink's containing
3940 # directory).
3941 if (
3942    am_has_slept=no
3943    for am_try in 1 2; do
3944      echo "timestamp, slept: $am_has_slept" > conftest.file
3945      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3946      if test "$*" = "X"; then
3947         # -L didn't work.
3948         set X `ls -t "$srcdir/configure" conftest.file`
3949      fi
3950      if test "$*" != "X $srcdir/configure conftest.file" \
3951         && test "$*" != "X conftest.file $srcdir/configure"; then
3952
3953         # If neither matched, then we have a broken ls.  This can happen
3954         # if, for instance, CONFIG_SHELL is bash and it inherits a
3955         # broken ls alias from the environment.  This has actually
3956         # happened.  Such a system could not be considered "sane".
3957         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3958   alias in your environment" "$LINENO" 5
3959      fi
3960      if test "$2" = conftest.file || test $am_try -eq 2; then
3961        break
3962      fi
3963      # Just in case.
3964      sleep 1
3965      am_has_slept=yes
3966    done
3967    test "$2" = conftest.file
3968    )
3969 then
3970    # Ok.
3971    :
3972 else
3973    as_fn_error $? "newly created file is older than distributed files!
3974 Check your system clock" "$LINENO" 5
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3977 $as_echo "yes" >&6; }
3978 # If we didn't sleep, we still need to ensure time stamps of config.status and
3979 # generated files are strictly newer.
3980 am_sleep_pid=
3981 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3982   ( sleep 1 ) &
3983   am_sleep_pid=$!
3984 fi
3985
3986 rm -f conftest.file
3987
3988 test "$program_prefix" != NONE &&
3989   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3990 # Use a double $ so make ignores it.
3991 test "$program_suffix" != NONE &&
3992   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3993 # Double any \ or $.
3994 # By default was `s,x,x', remove it if useless.
3995 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3996 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3997
3998 if test x"${MISSING+set}" != xset; then
3999   case $am_aux_dir in
4000   *\ * | *\     *)
4001     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4002   *)
4003     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4004   esac
4005 fi
4006 # Use eval to expand $SHELL
4007 if eval "$MISSING --is-lightweight"; then
4008   am_missing_run="$MISSING "
4009 else
4010   am_missing_run=
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4012 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4013 fi
4014
4015 if test x"${install_sh+set}" != xset; then
4016   case $am_aux_dir in
4017   *\ * | *\     *)
4018     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4019   *)
4020     install_sh="\${SHELL} $am_aux_dir/install-sh"
4021   esac
4022 fi
4023
4024 # Installed binaries are usually stripped using 'strip' when the user
4025 # run "make install-strip".  However 'strip' might not be the right
4026 # tool to use in cross-compilation environments, therefore Automake
4027 # will honor the 'STRIP' environment variable to overrule this program.
4028 if test "$cross_compiling" != no; then
4029   if test -n "$ac_tool_prefix"; then
4030   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}strip; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if ${ac_cv_prog_STRIP+:} false; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$STRIP"; then
4038   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052   done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 STRIP=$ac_cv_prog_STRIP
4058 if test -n "$STRIP"; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4060 $as_echo "$STRIP" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066
4067 fi
4068 if test -z "$ac_cv_prog_STRIP"; then
4069   ac_ct_STRIP=$STRIP
4070   # Extract the first word of "strip", so it can be a program name with args.
4071 set dummy strip; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   if test -n "$ac_ct_STRIP"; then
4078   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085     for ac_exec_ext in '' $ac_executable_extensions; do
4086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087     ac_cv_prog_ac_ct_STRIP="strip"
4088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089     break 2
4090   fi
4091 done
4092   done
4093 IFS=$as_save_IFS
4094
4095 fi
4096 fi
4097 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4098 if test -n "$ac_ct_STRIP"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4100 $as_echo "$ac_ct_STRIP" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106   if test "x$ac_ct_STRIP" = x; then
4107     STRIP=":"
4108   else
4109     case $cross_compiling:$ac_tool_warned in
4110 yes:)
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113 ac_tool_warned=yes ;;
4114 esac
4115     STRIP=$ac_ct_STRIP
4116   fi
4117 else
4118   STRIP="$ac_cv_prog_STRIP"
4119 fi
4120
4121 fi
4122 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4123
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4125 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4126 if test -z "$MKDIR_P"; then
4127   if ${ac_cv_path_mkdir+:} false; then :
4128   $as_echo_n "(cached) " >&6
4129 else
4130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_prog in mkdir gmkdir; do
4136          for ac_exec_ext in '' $ac_executable_extensions; do
4137            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4138            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4139              'mkdir (GNU coreutils) '* | \
4140              'mkdir (coreutils) '* | \
4141              'mkdir (fileutils) '4.1*)
4142                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4143                break 3;;
4144            esac
4145          done
4146        done
4147   done
4148 IFS=$as_save_IFS
4149
4150 fi
4151
4152   test -d ./--version && rmdir ./--version
4153   if test "${ac_cv_path_mkdir+set}" = set; then
4154     MKDIR_P="$ac_cv_path_mkdir -p"
4155   else
4156     # As a last resort, use the slow shell script.  Don't cache a
4157     # value for MKDIR_P within a source directory, because that will
4158     # break other packages using the cache if that directory is
4159     # removed, or if the value is a relative name.
4160     MKDIR_P="$ac_install_sh -d"
4161   fi
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4164 $as_echo "$MKDIR_P" >&6; }
4165
4166 for ac_prog in gawk mawk nawk awk
4167 do
4168   # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_AWK+:} false; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if test -n "$AWK"; then
4176   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183     for ac_exec_ext in '' $ac_executable_extensions; do
4184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185     ac_cv_prog_AWK="$ac_prog"
4186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190   done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 AWK=$ac_cv_prog_AWK
4196 if test -n "$AWK"; then
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4198 $as_echo "$AWK" >&6; }
4199 else
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204
4205   test -n "$AWK" && break
4206 done
4207
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4210 set x ${MAKE-make}
4211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4212 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   cat >conftest.make <<\_ACEOF
4216 SHELL = /bin/sh
4217 all:
4218         @echo '@@@%%%=$(MAKE)=@@@%%%'
4219 _ACEOF
4220 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4222   *@@@%%%=?*=@@@%%%*)
4223     eval ac_cv_prog_make_${ac_make}_set=yes;;
4224   *)
4225     eval ac_cv_prog_make_${ac_make}_set=no;;
4226 esac
4227 rm -f conftest.make
4228 fi
4229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4232   SET_MAKE=
4233 else
4234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236   SET_MAKE="MAKE=${MAKE-make}"
4237 fi
4238
4239 rm -rf .tst 2>/dev/null
4240 mkdir .tst 2>/dev/null
4241 if test -d .tst; then
4242   am__leading_dot=.
4243 else
4244   am__leading_dot=_
4245 fi
4246 rmdir .tst 2>/dev/null
4247
4248 DEPDIR="${am__leading_dot}deps"
4249
4250 ac_config_commands="$ac_config_commands depfiles"
4251
4252
4253 am_make=${MAKE-make}
4254 cat > confinc << 'END'
4255 am__doit:
4256         @echo this is the am__doit target
4257 .PHONY: am__doit
4258 END
4259 # If we don't find an include directive, just comment out the code.
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4261 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4262 am__include="#"
4263 am__quote=
4264 _am_result=none
4265 # First try GNU make style include.
4266 echo "include confinc" > confmf
4267 # Ignore all kinds of additional output from 'make'.
4268 case `$am_make -s -f confmf 2> /dev/null` in #(
4269 *the\ am__doit\ target*)
4270   am__include=include
4271   am__quote=
4272   _am_result=GNU
4273   ;;
4274 esac
4275 # Now try BSD make style include.
4276 if test "$am__include" = "#"; then
4277    echo '.include "confinc"' > confmf
4278    case `$am_make -s -f confmf 2> /dev/null` in #(
4279    *the\ am__doit\ target*)
4280      am__include=.include
4281      am__quote="\""
4282      _am_result=BSD
4283      ;;
4284    esac
4285 fi
4286
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4289 $as_echo "$_am_result" >&6; }
4290 rm -f confinc confmf
4291
4292 # Check whether --enable-dependency-tracking was given.
4293 if test "${enable_dependency_tracking+set}" = set; then :
4294   enableval=$enable_dependency_tracking;
4295 fi
4296
4297 if test "x$enable_dependency_tracking" != xno; then
4298   am_depcomp="$ac_aux_dir/depcomp"
4299   AMDEPBACKSLASH='\'
4300   am__nodep='_no'
4301 fi
4302  if test "x$enable_dependency_tracking" != xno; then
4303   AMDEP_TRUE=
4304   AMDEP_FALSE='#'
4305 else
4306   AMDEP_TRUE='#'
4307   AMDEP_FALSE=
4308 fi
4309
4310
4311 # Check whether --enable-silent-rules was given.
4312 if test "${enable_silent_rules+set}" = set; then :
4313   enableval=$enable_silent_rules;
4314 fi
4315
4316 case $enable_silent_rules in # (((
4317   yes) AM_DEFAULT_VERBOSITY=0;;
4318    no) AM_DEFAULT_VERBOSITY=1;;
4319     *) AM_DEFAULT_VERBOSITY=1;;
4320 esac
4321 am_make=${MAKE-make}
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4323 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4324 if ${am_cv_make_support_nested_variables+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   if $as_echo 'TRUE=$(BAR$(V))
4328 BAR0=false
4329 BAR1=true
4330 V=1
4331 am__doit:
4332         @$(TRUE)
4333 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4334   am_cv_make_support_nested_variables=yes
4335 else
4336   am_cv_make_support_nested_variables=no
4337 fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4340 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4341 if test $am_cv_make_support_nested_variables = yes; then
4342     AM_V='$(V)'
4343   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4344 else
4345   AM_V=$AM_DEFAULT_VERBOSITY
4346   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4347 fi
4348 AM_BACKSLASH='\'
4349
4350 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4351   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4352   # is not polluted with repeated "-I."
4353   am__isrc=' -I$(srcdir)'
4354   # test to see if srcdir already configured
4355   if test -f $srcdir/config.status; then
4356     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4357   fi
4358 fi
4359
4360 # test whether we have cygpath
4361 if test -z "$CYGPATH_W"; then
4362   if (cygpath --version) >/dev/null 2>/dev/null; then
4363     CYGPATH_W='cygpath -w'
4364   else
4365     CYGPATH_W=echo
4366   fi
4367 fi
4368
4369
4370 # Define the identity of the package.
4371  PACKAGE='mech_eap'
4372  VERSION='1.0.1'
4373
4374
4375 cat >>confdefs.h <<_ACEOF
4376 #define PACKAGE "$PACKAGE"
4377 _ACEOF
4378
4379
4380 cat >>confdefs.h <<_ACEOF
4381 #define VERSION "$VERSION"
4382 _ACEOF
4383
4384 # Some tools Automake needs.
4385
4386 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4387
4388
4389 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4390
4391
4392 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4393
4394
4395 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4396
4397
4398 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4399
4400 # For better backward compatibility.  To be removed once Automake 1.9.x
4401 # dies out for good.  For more background, see:
4402 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4403 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4404 mkdir_p='$(MKDIR_P)'
4405
4406 # We need awk for the "check" target (and possibly the TAP driver).  The
4407 # system "awk" is bad on some platforms.
4408 # Always define AMTAR for backward compatibility.  Yes, it's still used
4409 # in the wild :-(  We should find a proper way to deprecate it ...
4410 AMTAR='$${TAR-tar}'
4411
4412
4413 # We'll loop over all known methods to create a tar archive until one works.
4414 _am_tools='gnutar  pax cpio none'
4415
4416 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4417
4418
4419
4420
4421
4422 depcc="$CC"   am_compiler_list=
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4425 $as_echo_n "checking dependency style of $depcc... " >&6; }
4426 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4430   # We make a subdir and do the tests there.  Otherwise we can end up
4431   # making bogus files that we don't know about and never remove.  For
4432   # instance it was reported that on HP-UX the gcc test will end up
4433   # making a dummy file named 'D' -- because '-MD' means "put the output
4434   # in D".
4435   rm -rf conftest.dir
4436   mkdir conftest.dir
4437   # Copy depcomp to subdir because otherwise we won't find it if we're
4438   # using a relative directory.
4439   cp "$am_depcomp" conftest.dir
4440   cd conftest.dir
4441   # We will build objects and dependencies in a subdirectory because
4442   # it helps to detect inapplicable dependency modes.  For instance
4443   # both Tru64's cc and ICC support -MD to output dependencies as a
4444   # side effect of compilation, but ICC will put the dependencies in
4445   # the current directory while Tru64 will put them in the object
4446   # directory.
4447   mkdir sub
4448
4449   am_cv_CC_dependencies_compiler_type=none
4450   if test "$am_compiler_list" = ""; then
4451      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452   fi
4453   am__universal=false
4454   case " $depcc " in #(
4455      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456      esac
4457
4458   for depmode in $am_compiler_list; do
4459     # Setup a source with many dependencies, because some compilers
4460     # like to wrap large dependency lists on column 80 (with \), and
4461     # we should not choose a depcomp mode which is confused by this.
4462     #
4463     # We need to recreate these files for each test, as the compiler may
4464     # overwrite some of them when testing with obscure command lines.
4465     # This happens at least with the AIX C compiler.
4466     : > sub/conftest.c
4467     for i in 1 2 3 4 5 6; do
4468       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4469       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4470       # Solaris 10 /bin/sh.
4471       echo '/* dummy */' > sub/conftst$i.h
4472     done
4473     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474
4475     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4476     # mode.  It turns out that the SunPro C++ compiler does not properly
4477     # handle '-M -o', and we need to detect this.  Also, some Intel
4478     # versions had trouble with output in subdirs.
4479     am__obj=sub/conftest.${OBJEXT-o}
4480     am__minus_obj="-o $am__obj"
4481     case $depmode in
4482     gcc)
4483       # This depmode causes a compiler race in universal mode.
4484       test "$am__universal" = false || continue
4485       ;;
4486     nosideeffect)
4487       # After this tag, mechanisms are not by side-effect, so they'll
4488       # only be used when explicitly requested.
4489       if test "x$enable_dependency_tracking" = xyes; then
4490         continue
4491       else
4492         break
4493       fi
4494       ;;
4495     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4496       # This compiler won't grok '-c -o', but also, the minuso test has
4497       # not run yet.  These depmodes are late enough in the game, and
4498       # so weak that their functioning should not be impacted.
4499       am__obj=conftest.${OBJEXT-o}
4500       am__minus_obj=
4501       ;;
4502     none) break ;;
4503     esac
4504     if depmode=$depmode \
4505        source=sub/conftest.c object=$am__obj \
4506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4508          >/dev/null 2>conftest.err &&
4509        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4510        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4511        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4512        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4513       # icc doesn't choke on unknown options, it will just issue warnings
4514       # or remarks (even with -Werror).  So we grep stderr for any message
4515       # that says an option was ignored or not supported.
4516       # When given -MP, icc 7.0 and 7.1 complain thusly:
4517       #   icc: Command line warning: ignoring option '-M'; no argument required
4518       # The diagnosis changed in icc 8.0:
4519       #   icc: Command line remark: option '-MP' not supported
4520       if (grep 'ignoring option' conftest.err ||
4521           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4522         am_cv_CC_dependencies_compiler_type=$depmode
4523         break
4524       fi
4525     fi
4526   done
4527
4528   cd ..
4529   rm -rf conftest.dir
4530 else
4531   am_cv_CC_dependencies_compiler_type=none
4532 fi
4533
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4536 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4538
4539  if
4540   test "x$enable_dependency_tracking" != xno \
4541   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4542   am__fastdepCC_TRUE=
4543   am__fastdepCC_FALSE='#'
4544 else
4545   am__fastdepCC_TRUE='#'
4546   am__fastdepCC_FALSE=
4547 fi
4548
4549
4550
4551 # POSIX will say in a future version that running "rm -f" with no argument
4552 # is OK; and we want to be able to make that assumption in our Makefile
4553 # recipes.  So use an aggressive probe to check that the usage we want is
4554 # actually supported "in the wild" to an acceptable degree.
4555 # See automake bug#10828.
4556 # To make any issue more visible, cause the running configure to be aborted
4557 # by default if the 'rm' program in use doesn't match our expectations; the
4558 # user can still override this though.
4559 if rm -f && rm -fr && rm -rf; then : OK; else
4560   cat >&2 <<'END'
4561 Oops!
4562
4563 Your 'rm' program seems unable to run without file operands specified
4564 on the command line, even when the '-f' option is present.  This is contrary
4565 to the behaviour of most rm programs out there, and not conforming with
4566 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4567
4568 Please tell bug-automake@gnu.org about your system, including the value
4569 of your $PATH and any error possibly output before this message.  This
4570 can help us improve future automake versions.
4571
4572 END
4573   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4574     echo 'Configuration will proceed anyway, since you have set the' >&2
4575     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4576     echo >&2
4577   else
4578     cat >&2 <<'END'
4579 Aborting the configuration process, to ensure you take notice of the issue.
4580
4581 You can download and install GNU coreutils to get an 'rm' implementation
4582 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4583
4584 If you want to complete the configuration process using your problematic
4585 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4586 to "yes", and re-run configure.
4587
4588 END
4589     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4590   fi
4591 fi
4592
4593 if test "x$CC" != xcc; then
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4595 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4596 else
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4598 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4599 fi
4600 set dummy $CC; ac_cc=`$as_echo "$2" |
4601                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4602 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607
4608 int
4609 main ()
4610 {
4611
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 # Make sure it works both with $CC and with simple cc.
4617 # We do the test twice because some compilers refuse to overwrite an
4618 # existing .o file with -o, though they will create one.
4619 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4620 rm -f conftest2.*
4621 if { { case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630   test $ac_status = 0; } &&
4631    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637   (eval "$ac_try") 2>&5
4638   ac_status=$?
4639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640   test $ac_status = 0; };
4641 then
4642   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4643   if test "x$CC" != xcc; then
4644     # Test first that cc exists at all.
4645     if { ac_try='cc -c conftest.$ac_ext >&5'
4646   { { case "(($ac_try" in
4647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648   *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 $as_echo "$ac_try_echo"; } >&5
4652   (eval "$ac_try") 2>&5
4653   ac_status=$?
4654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655   test $ac_status = 0; }; }; then
4656       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4657       rm -f conftest2.*
4658       if { { case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664   (eval "$ac_try") 2>&5
4665   ac_status=$?
4666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667   test $ac_status = 0; } &&
4668          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674   (eval "$ac_try") 2>&5
4675   ac_status=$?
4676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677   test $ac_status = 0; };
4678       then
4679         # cc works too.
4680         :
4681       else
4682         # cc exists but doesn't like -o.
4683         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4684       fi
4685     fi
4686   fi
4687 else
4688   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4689 fi
4690 rm -f core conftest*
4691
4692 fi
4693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695 $as_echo "yes" >&6; }
4696 else
4697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699
4700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4701
4702 fi
4703
4704 # FIXME: we rely on the cache variable name because
4705 # there is no other way.
4706 set dummy $CC
4707 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4708 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4709 if test "$am_t" != yes; then
4710    # Losing compiler, so override with the script.
4711    # FIXME: It is wrong to rewrite CC.
4712    # But if we don't then we get into trouble of one sort or another.
4713    # A longer-term fix would be to have automake use am__CC in this case,
4714    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4715    CC="$am_aux_dir/compile $CC"
4716 fi
4717
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4721 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4722     # Check whether --enable-maintainer-mode was given.
4723 if test "${enable_maintainer_mode+set}" = set; then :
4724   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4725 else
4726   USE_MAINTAINER_MODE=no
4727 fi
4728
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4730 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4731    if test $USE_MAINTAINER_MODE = yes; then
4732   MAINTAINER_MODE_TRUE=
4733   MAINTAINER_MODE_FALSE='#'
4734 else
4735   MAINTAINER_MODE_TRUE='#'
4736   MAINTAINER_MODE_FALSE=
4737 fi
4738
4739   MAINT=$MAINTAINER_MODE_TRUE
4740
4741
4742
4743 case `pwd` in
4744   *\ * | *\     *)
4745     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4746 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4747 esac
4748
4749
4750
4751 macro_version='2.4.6'
4752 macro_revision='2.4.6'
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766 ltmain=$ac_aux_dir/ltmain.sh
4767
4768 # Make sure we can run config.sub.
4769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4770   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4773 $as_echo_n "checking build system type... " >&6; }
4774 if ${ac_cv_build+:} false; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   ac_build_alias=$build_alias
4778 test "x$ac_build_alias" = x &&
4779   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4780 test "x$ac_build_alias" = x &&
4781   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4783   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4784
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4787 $as_echo "$ac_cv_build" >&6; }
4788 case $ac_cv_build in
4789 *-*-*) ;;
4790 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4791 esac
4792 build=$ac_cv_build
4793 ac_save_IFS=$IFS; IFS='-'
4794 set x $ac_cv_build
4795 shift
4796 build_cpu=$1
4797 build_vendor=$2
4798 shift; shift
4799 # Remember, the first character of IFS is used to create $*,
4800 # except with old shells:
4801 build_os=$*
4802 IFS=$ac_save_IFS
4803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4804
4805
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4807 $as_echo_n "checking host system type... " >&6; }
4808 if ${ac_cv_host+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   if test "x$host_alias" = x; then
4812   ac_cv_host=$ac_cv_build
4813 else
4814   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4815     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4816 fi
4817
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4820 $as_echo "$ac_cv_host" >&6; }
4821 case $ac_cv_host in
4822 *-*-*) ;;
4823 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4824 esac
4825 host=$ac_cv_host
4826 ac_save_IFS=$IFS; IFS='-'
4827 set x $ac_cv_host
4828 shift
4829 host_cpu=$1
4830 host_vendor=$2
4831 shift; shift
4832 # Remember, the first character of IFS is used to create $*,
4833 # except with old shells:
4834 host_os=$*
4835 IFS=$ac_save_IFS
4836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4837
4838
4839 # Backslashify metacharacters that are still active within
4840 # double-quoted strings.
4841 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4842
4843 # Same as above, but do not quote variable references.
4844 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4845
4846 # Sed substitution to delay expansion of an escaped shell variable in a
4847 # double_quote_subst'ed string.
4848 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4849
4850 # Sed substitution to delay expansion of an escaped single quote.
4851 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4852
4853 # Sed substitution to avoid accidental globbing in evaled expressions
4854 no_glob_subst='s/\*/\\\*/g'
4855
4856 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4857 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4858 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4861 $as_echo_n "checking how to print strings... " >&6; }
4862 # Test print first, because it will be a builtin if present.
4863 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4864    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4865   ECHO='print -r --'
4866 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4867   ECHO='printf %s\n'
4868 else
4869   # Use this function as a fallback that always works.
4870   func_fallback_echo ()
4871   {
4872     eval 'cat <<_LTECHO_EOF
4873 $1
4874 _LTECHO_EOF'
4875   }
4876   ECHO='func_fallback_echo'
4877 fi
4878
4879 # func_echo_all arg...
4880 # Invoke $ECHO with all args, space-separated.
4881 func_echo_all ()
4882 {
4883     $ECHO ""
4884 }
4885
4886 case $ECHO in
4887   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4888 $as_echo "printf" >&6; } ;;
4889   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4890 $as_echo "print -r" >&6; } ;;
4891   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4892 $as_echo "cat" >&6; } ;;
4893 esac
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4909 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4910 if ${ac_cv_path_SED+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4914      for ac_i in 1 2 3 4 5 6 7; do
4915        ac_script="$ac_script$as_nl$ac_script"
4916      done
4917      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4918      { ac_script=; unset ac_script;}
4919      if test -z "$SED"; then
4920   ac_path_SED_found=false
4921   # Loop through the user's path and test for each of PROGNAME-LIST
4922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927     for ac_prog in sed gsed; do
4928     for ac_exec_ext in '' $ac_executable_extensions; do
4929       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4930       as_fn_executable_p "$ac_path_SED" || continue
4931 # Check for GNU ac_path_SED and select it if it is found.
4932   # Check for GNU $ac_path_SED
4933 case `"$ac_path_SED" --version 2>&1` in
4934 *GNU*)
4935   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4936 *)
4937   ac_count=0
4938   $as_echo_n 0123456789 >"conftest.in"
4939   while :
4940   do
4941     cat "conftest.in" "conftest.in" >"conftest.tmp"
4942     mv "conftest.tmp" "conftest.in"
4943     cp "conftest.in" "conftest.nl"
4944     $as_echo '' >> "conftest.nl"
4945     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4946     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4947     as_fn_arith $ac_count + 1 && ac_count=$as_val
4948     if test $ac_count -gt ${ac_path_SED_max-0}; then
4949       # Best one so far, save it but keep looking for a better one
4950       ac_cv_path_SED="$ac_path_SED"
4951       ac_path_SED_max=$ac_count
4952     fi
4953     # 10*(2^10) chars as input seems more than enough
4954     test $ac_count -gt 10 && break
4955   done
4956   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957 esac
4958
4959       $ac_path_SED_found && break 3
4960     done
4961   done
4962   done
4963 IFS=$as_save_IFS
4964   if test -z "$ac_cv_path_SED"; then
4965     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4966   fi
4967 else
4968   ac_cv_path_SED=$SED
4969 fi
4970
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4973 $as_echo "$ac_cv_path_SED" >&6; }
4974  SED="$ac_cv_path_SED"
4975   rm -f conftest.sed
4976
4977 test -z "$SED" && SED=sed
4978 Xsed="$SED -e 1s/^X//"
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4991 $as_echo_n "checking for fgrep... " >&6; }
4992 if ${ac_cv_path_FGREP+:} false; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4996    then ac_cv_path_FGREP="$GREP -F"
4997    else
4998      if test -z "$FGREP"; then
4999   ac_path_FGREP_found=false
5000   # Loop through the user's path and test for each of PROGNAME-LIST
5001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006     for ac_prog in fgrep; do
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5009       as_fn_executable_p "$ac_path_FGREP" || continue
5010 # Check for GNU ac_path_FGREP and select it if it is found.
5011   # Check for GNU $ac_path_FGREP
5012 case `"$ac_path_FGREP" --version 2>&1` in
5013 *GNU*)
5014   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5015 *)
5016   ac_count=0
5017   $as_echo_n 0123456789 >"conftest.in"
5018   while :
5019   do
5020     cat "conftest.in" "conftest.in" >"conftest.tmp"
5021     mv "conftest.tmp" "conftest.in"
5022     cp "conftest.in" "conftest.nl"
5023     $as_echo 'FGREP' >> "conftest.nl"
5024     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026     as_fn_arith $ac_count + 1 && ac_count=$as_val
5027     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5028       # Best one so far, save it but keep looking for a better one
5029       ac_cv_path_FGREP="$ac_path_FGREP"
5030       ac_path_FGREP_max=$ac_count
5031     fi
5032     # 10*(2^10) chars as input seems more than enough
5033     test $ac_count -gt 10 && break
5034   done
5035   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5036 esac
5037
5038       $ac_path_FGREP_found && break 3
5039     done
5040   done
5041   done
5042 IFS=$as_save_IFS
5043   if test -z "$ac_cv_path_FGREP"; then
5044     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5045   fi
5046 else
5047   ac_cv_path_FGREP=$FGREP
5048 fi
5049
5050    fi
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5053 $as_echo "$ac_cv_path_FGREP" >&6; }
5054  FGREP="$ac_cv_path_FGREP"
5055
5056
5057 test -z "$GREP" && GREP=grep
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 # Check whether --with-gnu-ld was given.
5078 if test "${with_gnu_ld+set}" = set; then :
5079   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5080 else
5081   with_gnu_ld=no
5082 fi
5083
5084 ac_prog=ld
5085 if test yes = "$GCC"; then
5086   # Check if gcc -print-prog-name=ld gives a path.
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5088 $as_echo_n "checking for ld used by $CC... " >&6; }
5089   case $host in
5090   *-*-mingw*)
5091     # gcc leaves a trailing carriage return, which upsets mingw
5092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5093   *)
5094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5095   esac
5096   case $ac_prog in
5097     # Accept absolute paths.
5098     [\\/]* | ?:[\\/]*)
5099       re_direlt='/[^/][^/]*/\.\./'
5100       # Canonicalize the pathname of ld
5101       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5102       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5103         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5104       done
5105       test -z "$LD" && LD=$ac_prog
5106       ;;
5107   "")
5108     # If it fails, then pretend we aren't using GCC.
5109     ac_prog=ld
5110     ;;
5111   *)
5112     # If it is relative, then search for the first ld in PATH.
5113     with_gnu_ld=unknown
5114     ;;
5115   esac
5116 elif test yes = "$with_gnu_ld"; then
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5118 $as_echo_n "checking for GNU ld... " >&6; }
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5121 $as_echo_n "checking for non-GNU ld... " >&6; }
5122 fi
5123 if ${lt_cv_path_LD+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -z "$LD"; then
5127   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5128   for ac_dir in $PATH; do
5129     IFS=$lt_save_ifs
5130     test -z "$ac_dir" && ac_dir=.
5131     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5132       lt_cv_path_LD=$ac_dir/$ac_prog
5133       # Check to see if the program is GNU ld.  I'd rather use --version,
5134       # but apparently some variants of GNU ld only accept -v.
5135       # Break only if it was the GNU/non-GNU ld that we prefer.
5136       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5137       *GNU* | *'with BFD'*)
5138         test no != "$with_gnu_ld" && break
5139         ;;
5140       *)
5141         test yes != "$with_gnu_ld" && break
5142         ;;
5143       esac
5144     fi
5145   done
5146   IFS=$lt_save_ifs
5147 else
5148   lt_cv_path_LD=$LD # Let the user override the test with a path.
5149 fi
5150 fi
5151
5152 LD=$lt_cv_path_LD
5153 if test -n "$LD"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5155 $as_echo "$LD" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5162 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5163 if ${lt_cv_prog_gnu_ld+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5167 case `$LD -v 2>&1 </dev/null` in
5168 *GNU* | *'with BFD'*)
5169   lt_cv_prog_gnu_ld=yes
5170   ;;
5171 *)
5172   lt_cv_prog_gnu_ld=no
5173   ;;
5174 esac
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5177 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5178 with_gnu_ld=$lt_cv_prog_gnu_ld
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5189 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5190 if ${lt_cv_path_NM+:} false; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   if test -n "$NM"; then
5194   # Let the user override the test.
5195   lt_cv_path_NM=$NM
5196 else
5197   lt_nm_to_check=${ac_tool_prefix}nm
5198   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5199     lt_nm_to_check="$lt_nm_to_check nm"
5200   fi
5201   for lt_tmp_nm in $lt_nm_to_check; do
5202     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5203     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5204       IFS=$lt_save_ifs
5205       test -z "$ac_dir" && ac_dir=.
5206       tmp_nm=$ac_dir/$lt_tmp_nm
5207       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5208         # Check to see if the nm accepts a BSD-compat flag.
5209         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5210         #   nm: unknown option "B" ignored
5211         # Tru64's nm complains that /dev/null is an invalid object file
5212         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5213         case $build_os in
5214         mingw*) lt_bad_file=conftest.nm/nofile ;;
5215         *) lt_bad_file=/dev/null ;;
5216         esac
5217         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5218         *$lt_bad_file* | *'Invalid file or object type'*)
5219           lt_cv_path_NM="$tmp_nm -B"
5220           break 2
5221           ;;
5222         *)
5223           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5224           */dev/null*)
5225             lt_cv_path_NM="$tmp_nm -p"
5226             break 2
5227             ;;
5228           *)
5229             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5230             continue # so that we can try to find one that supports BSD flags
5231             ;;
5232           esac
5233           ;;
5234         esac
5235       fi
5236     done
5237     IFS=$lt_save_ifs
5238   done
5239   : ${lt_cv_path_NM=no}
5240 fi
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5243 $as_echo "$lt_cv_path_NM" >&6; }
5244 if test no != "$lt_cv_path_NM"; then
5245   NM=$lt_cv_path_NM
5246 else
5247   # Didn't find any BSD compatible name lister, look for dumpbin.
5248   if test -n "$DUMPBIN"; then :
5249     # Let the user override the test.
5250   else
5251     if test -n "$ac_tool_prefix"; then
5252   for ac_prog in dumpbin "link -dump"
5253   do
5254     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_DUMPBIN+:} false; then :
5259   $as_echo_n "(cached) " >&6
5260 else
5261   if test -n "$DUMPBIN"; then
5262   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269     for ac_exec_ext in '' $ac_executable_extensions; do
5270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276   done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 DUMPBIN=$ac_cv_prog_DUMPBIN
5282 if test -n "$DUMPBIN"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5284 $as_echo "$DUMPBIN" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290
5291     test -n "$DUMPBIN" && break
5292   done
5293 fi
5294 if test -z "$DUMPBIN"; then
5295   ac_ct_DUMPBIN=$DUMPBIN
5296   for ac_prog in dumpbin "link -dump"
5297 do
5298   # Extract the first word of "$ac_prog", so it can be a program name with args.
5299 set dummy $ac_prog; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   if test -n "$ac_ct_DUMPBIN"; then
5306   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320   done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5326 if test -n "$ac_ct_DUMPBIN"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5328 $as_echo "$ac_ct_DUMPBIN" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335   test -n "$ac_ct_DUMPBIN" && break
5336 done
5337
5338   if test "x$ac_ct_DUMPBIN" = x; then
5339     DUMPBIN=":"
5340   else
5341     case $cross_compiling:$ac_tool_warned in
5342 yes:)
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345 ac_tool_warned=yes ;;
5346 esac
5347     DUMPBIN=$ac_ct_DUMPBIN
5348   fi
5349 fi
5350
5351     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5352     *COFF*)
5353       DUMPBIN="$DUMPBIN -symbols -headers"
5354       ;;
5355     *)
5356       DUMPBIN=:
5357       ;;
5358     esac
5359   fi
5360
5361   if test : != "$DUMPBIN"; then
5362     NM=$DUMPBIN
5363   fi
5364 fi
5365 test -z "$NM" && NM=nm
5366
5367
5368
5369
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5373 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5374 if ${lt_cv_nm_interface+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   lt_cv_nm_interface="BSD nm"
5378   echo "int some_variable = 0;" > conftest.$ac_ext
5379   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5380   (eval "$ac_compile" 2>conftest.err)
5381   cat conftest.err >&5
5382   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5383   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5384   cat conftest.err >&5
5385   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5386   cat conftest.out >&5
5387   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5388     lt_cv_nm_interface="MS dumpbin"
5389   fi
5390   rm -f conftest*
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5393 $as_echo "$lt_cv_nm_interface" >&6; }
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5396 $as_echo_n "checking whether ln -s works... " >&6; }
5397 LN_S=$as_ln_s
5398 if test "$LN_S" = "ln -s"; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5403 $as_echo "no, using $LN_S" >&6; }
5404 fi
5405
5406 # find the maximum length of command line arguments
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5408 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5409 if ${lt_cv_sys_max_cmd_len+:} false; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412     i=0
5413   teststring=ABCD
5414
5415   case $build_os in
5416   msdosdjgpp*)
5417     # On DJGPP, this test can blow up pretty badly due to problems in libc
5418     # (any single argument exceeding 2000 bytes causes a buffer overrun
5419     # during glob expansion).  Even if it were fixed, the result of this
5420     # check would be larger than it should be.
5421     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5422     ;;
5423
5424   gnu*)
5425     # Under GNU Hurd, this test is not required because there is
5426     # no limit to the length of command line arguments.
5427     # Libtool will interpret -1 as no limit whatsoever
5428     lt_cv_sys_max_cmd_len=-1;
5429     ;;
5430
5431   cygwin* | mingw* | cegcc*)
5432     # On Win9x/ME, this test blows up -- it succeeds, but takes
5433     # about 5 minutes as the teststring grows exponentially.
5434     # Worse, since 9x/ME are not pre-emptively multitasking,
5435     # you end up with a "frozen" computer, even though with patience
5436     # the test eventually succeeds (with a max line length of 256k).
5437     # Instead, let's just punt: use the minimum linelength reported by
5438     # all of the supported platforms: 8192 (on NT/2K/XP).
5439     lt_cv_sys_max_cmd_len=8192;
5440     ;;
5441
5442   mint*)
5443     # On MiNT this can take a long time and run out of memory.
5444     lt_cv_sys_max_cmd_len=8192;
5445     ;;
5446
5447   amigaos*)
5448     # On AmigaOS with pdksh, this test takes hours, literally.
5449     # So we just punt and use a minimum line length of 8192.
5450     lt_cv_sys_max_cmd_len=8192;
5451     ;;
5452
5453   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5454     # This has been around since 386BSD, at least.  Likely further.
5455     if test -x /sbin/sysctl; then
5456       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5457     elif test -x /usr/sbin/sysctl; then
5458       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5459     else
5460       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5461     fi
5462     # And add a safety zone
5463     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5464     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5465     ;;
5466
5467   interix*)
5468     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5469     lt_cv_sys_max_cmd_len=196608
5470     ;;
5471
5472   os2*)
5473     # The test takes a long time on OS/2.
5474     lt_cv_sys_max_cmd_len=8192
5475     ;;
5476
5477   osf*)
5478     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5479     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5480     # nice to cause kernel panics so lets avoid the loop below.
5481     # First set a reasonable default.
5482     lt_cv_sys_max_cmd_len=16384
5483     #
5484     if test -x /sbin/sysconfig; then
5485       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5486         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5487       esac
5488     fi
5489     ;;
5490   sco3.2v5*)
5491     lt_cv_sys_max_cmd_len=102400
5492     ;;
5493   sysv5* | sco5v6* | sysv4.2uw2*)
5494     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5495     if test -n "$kargmax"; then
5496       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5497     else
5498       lt_cv_sys_max_cmd_len=32768
5499     fi
5500     ;;
5501   *)
5502     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5503     if test -n "$lt_cv_sys_max_cmd_len" && \
5504        test undefined != "$lt_cv_sys_max_cmd_len"; then
5505       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5506       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5507     else
5508       # Make teststring a little bigger before we do anything with it.
5509       # a 1K string should be a reasonable start.
5510       for i in 1 2 3 4 5 6 7 8; do
5511         teststring=$teststring$teststring
5512       done
5513       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5514       # If test is not a shell built-in, we'll probably end up computing a
5515       # maximum length that is only half of the actual maximum length, but
5516       # we can't tell.
5517       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5518                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5519               test 17 != "$i" # 1/2 MB should be enough
5520       do
5521         i=`expr $i + 1`
5522         teststring=$teststring$teststring
5523       done
5524       # Only check the string length outside the loop.
5525       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5526       teststring=
5527       # Add a significant safety factor because C++ compilers can tack on
5528       # massive amounts of additional arguments before passing them to the
5529       # linker.  It appears as though 1/2 is a usable value.
5530       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5531     fi
5532     ;;
5533   esac
5534
5535 fi
5536
5537 if test -n "$lt_cv_sys_max_cmd_len"; then
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5539 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5540 else
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5542 $as_echo "none" >&6; }
5543 fi
5544 max_cmd_len=$lt_cv_sys_max_cmd_len
5545
5546
5547
5548
5549
5550
5551 : ${CP="cp -f"}
5552 : ${MV="mv -f"}
5553 : ${RM="rm -f"}
5554
5555 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5556   lt_unset=unset
5557 else
5558   lt_unset=false
5559 fi
5560
5561
5562
5563
5564
5565 # test EBCDIC or ASCII
5566 case `echo X|tr X '\101'` in
5567  A) # ASCII based system
5568     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5569   lt_SP2NL='tr \040 \012'
5570   lt_NL2SP='tr \015\012 \040\040'
5571   ;;
5572  *) # EBCDIC based system
5573   lt_SP2NL='tr \100 \n'
5574   lt_NL2SP='tr \r\n \100\100'
5575   ;;
5576 esac
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5587 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5588 if ${lt_cv_to_host_file_cmd+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   case $host in
5592   *-*-mingw* )
5593     case $build in
5594       *-*-mingw* ) # actually msys
5595         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5596         ;;
5597       *-*-cygwin* )
5598         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5599         ;;
5600       * ) # otherwise, assume *nix
5601         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5602         ;;
5603     esac
5604     ;;
5605   *-*-cygwin* )
5606     case $build in
5607       *-*-mingw* ) # actually msys
5608         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5609         ;;
5610       *-*-cygwin* )
5611         lt_cv_to_host_file_cmd=func_convert_file_noop
5612         ;;
5613       * ) # otherwise, assume *nix
5614         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5615         ;;
5616     esac
5617     ;;
5618   * ) # unhandled hosts (and "normal" native builds)
5619     lt_cv_to_host_file_cmd=func_convert_file_noop
5620     ;;
5621 esac
5622
5623 fi
5624
5625 to_host_file_cmd=$lt_cv_to_host_file_cmd
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5627 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5628
5629
5630
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5634 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5635 if ${lt_cv_to_tool_file_cmd+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   #assume ordinary cross tools, or native build.
5639 lt_cv_to_tool_file_cmd=func_convert_file_noop
5640 case $host in
5641   *-*-mingw* )
5642     case $build in
5643       *-*-mingw* ) # actually msys
5644         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5645         ;;
5646     esac
5647     ;;
5648 esac
5649
5650 fi
5651
5652 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5654 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5655
5656
5657
5658
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5661 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5662 if ${lt_cv_ld_reload_flag+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   lt_cv_ld_reload_flag='-r'
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5668 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5669 reload_flag=$lt_cv_ld_reload_flag
5670 case $reload_flag in
5671 "" | " "*) ;;
5672 *) reload_flag=" $reload_flag" ;;
5673 esac
5674 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5675 case $host_os in
5676   cygwin* | mingw* | pw32* | cegcc*)
5677     if test yes != "$GCC"; then
5678       reload_cmds=false
5679     fi
5680     ;;
5681   darwin*)
5682     if test yes = "$GCC"; then
5683       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5684     else
5685       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5686     fi
5687     ;;
5688 esac
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 if test -n "$ac_tool_prefix"; then
5699   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_OBJDUMP+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if test -n "$OBJDUMP"; then
5707   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714     for ac_exec_ext in '' $ac_executable_extensions; do
5715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721   done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 OBJDUMP=$ac_cv_prog_OBJDUMP
5727 if test -n "$OBJDUMP"; then
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5729 $as_echo "$OBJDUMP" >&6; }
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735
5736 fi
5737 if test -z "$ac_cv_prog_OBJDUMP"; then
5738   ac_ct_OBJDUMP=$OBJDUMP
5739   # Extract the first word of "objdump", so it can be a program name with args.
5740 set dummy objdump; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$ac_ct_OBJDUMP"; then
5747   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5767 if test -n "$ac_ct_OBJDUMP"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5769 $as_echo "$ac_ct_OBJDUMP" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775   if test "x$ac_ct_OBJDUMP" = x; then
5776     OBJDUMP="false"
5777   else
5778     case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784     OBJDUMP=$ac_ct_OBJDUMP
5785   fi
5786 else
5787   OBJDUMP="$ac_cv_prog_OBJDUMP"
5788 fi
5789
5790 test -z "$OBJDUMP" && OBJDUMP=objdump
5791
5792
5793
5794
5795
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5798 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5799 if ${lt_cv_deplibs_check_method+:} false; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   lt_cv_file_magic_cmd='$MAGIC_CMD'
5803 lt_cv_file_magic_test_file=
5804 lt_cv_deplibs_check_method='unknown'
5805 # Need to set the preceding variable on all platforms that support
5806 # interlibrary dependencies.
5807 # 'none' -- dependencies not supported.
5808 # 'unknown' -- same as none, but documents that we really don't know.
5809 # 'pass_all' -- all dependencies passed with no checks.
5810 # 'test_compile' -- check by making test program.
5811 # 'file_magic [[regex]]' -- check by looking for files in library path
5812 # that responds to the $file_magic_cmd with a given extended regex.
5813 # If you have 'file' or equivalent on your system and you're not sure
5814 # whether 'pass_all' will *always* work, you probably want this one.
5815
5816 case $host_os in
5817 aix[4-9]*)
5818   lt_cv_deplibs_check_method=pass_all
5819   ;;
5820
5821 beos*)
5822   lt_cv_deplibs_check_method=pass_all
5823   ;;
5824
5825 bsdi[45]*)
5826   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5827   lt_cv_file_magic_cmd='/usr/bin/file -L'
5828   lt_cv_file_magic_test_file=/shlib/libc.so
5829   ;;
5830
5831 cygwin*)
5832   # func_win32_libid is a shell function defined in ltmain.sh
5833   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834   lt_cv_file_magic_cmd='func_win32_libid'
5835   ;;
5836
5837 mingw* | pw32*)
5838   # Base MSYS/MinGW do not provide the 'file' command needed by
5839   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5840   # unless we find 'file', for example because we are cross-compiling.
5841   if ( file / ) >/dev/null 2>&1; then
5842     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5843     lt_cv_file_magic_cmd='func_win32_libid'
5844   else
5845     # Keep this pattern in sync with the one in func_win32_libid.
5846     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5847     lt_cv_file_magic_cmd='$OBJDUMP -f'
5848   fi
5849   ;;
5850
5851 cegcc*)
5852   # use the weaker test based on 'objdump'. See mingw*.
5853   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5854   lt_cv_file_magic_cmd='$OBJDUMP -f'
5855   ;;
5856
5857 darwin* | rhapsody*)
5858   lt_cv_deplibs_check_method=pass_all
5859   ;;
5860
5861 freebsd* | dragonfly*)
5862   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5863     case $host_cpu in
5864     i*86 )
5865       # Not sure whether the presence of OpenBSD here was a mistake.
5866       # Let's accept both of them until this is cleared up.
5867       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5868       lt_cv_file_magic_cmd=/usr/bin/file
5869       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5870       ;;
5871     esac
5872   else
5873     lt_cv_deplibs_check_method=pass_all
5874   fi
5875   ;;
5876
5877 haiku*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 hpux10.20* | hpux11*)
5882   lt_cv_file_magic_cmd=/usr/bin/file
5883   case $host_cpu in
5884   ia64*)
5885     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5886     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5887     ;;
5888   hppa*64*)
5889     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]'
5890     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5891     ;;
5892   *)
5893     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5894     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5895     ;;
5896   esac
5897   ;;
5898
5899 interix[3-9]*)
5900   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5901   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5902   ;;
5903
5904 irix5* | irix6* | nonstopux*)
5905   case $LD in
5906   *-32|*"-32 ") libmagic=32-bit;;
5907   *-n32|*"-n32 ") libmagic=N32;;
5908   *-64|*"-64 ") libmagic=64-bit;;
5909   *) libmagic=never-match;;
5910   esac
5911   lt_cv_deplibs_check_method=pass_all
5912   ;;
5913
5914 # This must be glibc/ELF.
5915 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5916   lt_cv_deplibs_check_method=pass_all
5917   ;;
5918
5919 netbsd* | netbsdelf*-gnu)
5920   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5921     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5922   else
5923     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5924   fi
5925   ;;
5926
5927 newos6*)
5928   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5929   lt_cv_file_magic_cmd=/usr/bin/file
5930   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5931   ;;
5932
5933 *nto* | *qnx*)
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936
5937 openbsd* | bitrig*)
5938   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5939     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5940   else
5941     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5942   fi
5943   ;;
5944
5945 osf3* | osf4* | osf5*)
5946   lt_cv_deplibs_check_method=pass_all
5947   ;;
5948
5949 rdos*)
5950   lt_cv_deplibs_check_method=pass_all
5951   ;;
5952
5953 solaris*)
5954   lt_cv_deplibs_check_method=pass_all
5955   ;;
5956
5957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5958   lt_cv_deplibs_check_method=pass_all
5959   ;;
5960
5961 sysv4 | sysv4.3*)
5962   case $host_vendor in
5963   motorola)
5964     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]'
5965     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5966     ;;
5967   ncr)
5968     lt_cv_deplibs_check_method=pass_all
5969     ;;
5970   sequent)
5971     lt_cv_file_magic_cmd='/bin/file'
5972     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5973     ;;
5974   sni)
5975     lt_cv_file_magic_cmd='/bin/file'
5976     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5977     lt_cv_file_magic_test_file=/lib/libc.so
5978     ;;
5979   siemens)
5980     lt_cv_deplibs_check_method=pass_all
5981     ;;
5982   pc)
5983     lt_cv_deplibs_check_method=pass_all
5984     ;;
5985   esac
5986   ;;
5987
5988 tpf*)
5989   lt_cv_deplibs_check_method=pass_all
5990   ;;
5991 os2*)
5992   lt_cv_deplibs_check_method=pass_all
5993   ;;
5994 esac
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5999
6000 file_magic_glob=
6001 want_nocaseglob=no
6002 if test "$build" = "$host"; then
6003   case $host_os in
6004   mingw* | pw32*)
6005     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6006       want_nocaseglob=yes
6007     else
6008       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6009     fi
6010     ;;
6011   esac
6012 fi
6013
6014 file_magic_cmd=$lt_cv_file_magic_cmd
6015 deplibs_check_method=$lt_cv_deplibs_check_method
6016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 if test -n "$ac_tool_prefix"; then
6040   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_prog_DLLTOOL+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   if test -n "$DLLTOOL"; then
6048   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062   done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 DLLTOOL=$ac_cv_prog_DLLTOOL
6068 if test -n "$DLLTOOL"; then
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6070 $as_echo "$DLLTOOL" >&6; }
6071 else
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6074 fi
6075
6076
6077 fi
6078 if test -z "$ac_cv_prog_DLLTOOL"; then
6079   ac_ct_DLLTOOL=$DLLTOOL
6080   # Extract the first word of "dlltool", so it can be a program name with args.
6081 set dummy dlltool; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   if test -n "$ac_ct_DLLTOOL"; then
6088   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095     for ac_exec_ext in '' $ac_executable_extensions; do
6096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102   done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6108 if test -n "$ac_ct_DLLTOOL"; then
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6110 $as_echo "$ac_ct_DLLTOOL" >&6; }
6111 else
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116   if test "x$ac_ct_DLLTOOL" = x; then
6117     DLLTOOL="false"
6118   else
6119     case $cross_compiling:$ac_tool_warned in
6120 yes:)
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6123 ac_tool_warned=yes ;;
6124 esac
6125     DLLTOOL=$ac_ct_DLLTOOL
6126   fi
6127 else
6128   DLLTOOL="$ac_cv_prog_DLLTOOL"
6129 fi
6130
6131 test -z "$DLLTOOL" && DLLTOOL=dlltool
6132
6133
6134
6135
6136
6137
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6140 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6141 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   lt_cv_sharedlib_from_linklib_cmd='unknown'
6145
6146 case $host_os in
6147 cygwin* | mingw* | pw32* | cegcc*)
6148   # two different shell functions defined in ltmain.sh;
6149   # decide which one to use based on capabilities of $DLLTOOL
6150   case `$DLLTOOL --help 2>&1` in
6151   *--identify-strict*)
6152     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6153     ;;
6154   *)
6155     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6156     ;;
6157   esac
6158   ;;
6159 *)
6160   # fallback: assume linklib IS sharedlib
6161   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6162   ;;
6163 esac
6164
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6167 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6168 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6169 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6170
6171
6172
6173
6174
6175
6176
6177 if test -n "$ac_tool_prefix"; then
6178   for ac_prog in ar
6179   do
6180     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_AR+:} false; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   if test -n "$AR"; then
6188   ac_cv_prog_AR="$AR" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195     for ac_exec_ext in '' $ac_executable_extensions; do
6196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202   done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 AR=$ac_cv_prog_AR
6208 if test -n "$AR"; then
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6210 $as_echo "$AR" >&6; }
6211 else
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217     test -n "$AR" && break
6218   done
6219 fi
6220 if test -z "$AR"; then
6221   ac_ct_AR=$AR
6222   for ac_prog in ar
6223 do
6224   # Extract the first word of "$ac_prog", so it can be a program name with args.
6225 set dummy $ac_prog; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   if test -n "$ac_ct_AR"; then
6232   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239     for ac_exec_ext in '' $ac_executable_extensions; do
6240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241     ac_cv_prog_ac_ct_AR="$ac_prog"
6242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246   done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6252 if test -n "$ac_ct_AR"; then
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6254 $as_echo "$ac_ct_AR" >&6; }
6255 else
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260
6261   test -n "$ac_ct_AR" && break
6262 done
6263
6264   if test "x$ac_ct_AR" = x; then
6265     AR="false"
6266   else
6267     case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271 ac_tool_warned=yes ;;
6272 esac
6273     AR=$ac_ct_AR
6274   fi
6275 fi
6276
6277 : ${AR=ar}
6278 : ${AR_FLAGS=cru}
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6291 $as_echo_n "checking for archiver @FILE support... " >&6; }
6292 if ${lt_cv_ar_at_file+:} false; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   lt_cv_ar_at_file=no
6296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h.  */
6298
6299 int
6300 main ()
6301 {
6302
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308   echo conftest.$ac_objext > conftest.lst
6309       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6310       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6311   (eval $lt_ar_try) 2>&5
6312   ac_status=$?
6313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314   test $ac_status = 0; }
6315       if test 0 -eq "$ac_status"; then
6316         # Ensure the archiver fails upon bogus file names.
6317         rm -f conftest.$ac_objext libconftest.a
6318         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6319   (eval $lt_ar_try) 2>&5
6320   ac_status=$?
6321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322   test $ac_status = 0; }
6323         if test 0 -ne "$ac_status"; then
6324           lt_cv_ar_at_file=@
6325         fi
6326       fi
6327       rm -f conftest.* libconftest.a
6328
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331
6332 fi
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6334 $as_echo "$lt_cv_ar_at_file" >&6; }
6335
6336 if test no = "$lt_cv_ar_at_file"; then
6337   archiver_list_spec=
6338 else
6339   archiver_list_spec=$lt_cv_ar_at_file
6340 fi
6341
6342
6343
6344
6345
6346
6347
6348 if test -n "$ac_tool_prefix"; then
6349   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6350 set dummy ${ac_tool_prefix}strip; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_STRIP+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -n "$STRIP"; then
6357   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371   done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 STRIP=$ac_cv_prog_STRIP
6377 if test -n "$STRIP"; then
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6379 $as_echo "$STRIP" >&6; }
6380 else
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385
6386 fi
6387 if test -z "$ac_cv_prog_STRIP"; then
6388   ac_ct_STRIP=$STRIP
6389   # Extract the first word of "strip", so it can be a program name with args.
6390 set dummy strip; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   if test -n "$ac_ct_STRIP"; then
6397   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404     for ac_exec_ext in '' $ac_executable_extensions; do
6405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406     ac_cv_prog_ac_ct_STRIP="strip"
6407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411   done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6417 if test -n "$ac_ct_STRIP"; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6419 $as_echo "$ac_ct_STRIP" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425   if test "x$ac_ct_STRIP" = x; then
6426     STRIP=":"
6427   else
6428     case $cross_compiling:$ac_tool_warned in
6429 yes:)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6432 ac_tool_warned=yes ;;
6433 esac
6434     STRIP=$ac_ct_STRIP
6435   fi
6436 else
6437   STRIP="$ac_cv_prog_STRIP"
6438 fi
6439
6440 test -z "$STRIP" && STRIP=:
6441
6442
6443
6444
6445
6446
6447 if test -n "$ac_tool_prefix"; then
6448   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_RANLIB+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$RANLIB"; then
6456   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 RANLIB=$ac_cv_prog_RANLIB
6476 if test -n "$RANLIB"; then
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6478 $as_echo "$RANLIB" >&6; }
6479 else
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485 fi
6486 if test -z "$ac_cv_prog_RANLIB"; then
6487   ac_ct_RANLIB=$RANLIB
6488   # Extract the first word of "ranlib", so it can be a program name with args.
6489 set dummy ranlib; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$ac_ct_RANLIB"; then
6496   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505     ac_cv_prog_ac_ct_RANLIB="ranlib"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6516 if test -n "$ac_ct_RANLIB"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6518 $as_echo "$ac_ct_RANLIB" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524   if test "x$ac_ct_RANLIB" = x; then
6525     RANLIB=":"
6526   else
6527     case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533     RANLIB=$ac_ct_RANLIB
6534   fi
6535 else
6536   RANLIB="$ac_cv_prog_RANLIB"
6537 fi
6538
6539 test -z "$RANLIB" && RANLIB=:
6540
6541
6542
6543
6544
6545
6546 # Determine commands to create old-style static archives.
6547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6548 old_postinstall_cmds='chmod 644 $oldlib'
6549 old_postuninstall_cmds=
6550
6551 if test -n "$RANLIB"; then
6552   case $host_os in
6553   bitrig* | openbsd*)
6554     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6555     ;;
6556   *)
6557     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6558     ;;
6559   esac
6560   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6561 fi
6562
6563 case $host_os in
6564   darwin*)
6565     lock_old_archive_extraction=yes ;;
6566   *)
6567     lock_old_archive_extraction=no ;;
6568 esac
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 # If no C compiler was specified, use CC.
6609 LTCC=${LTCC-"$CC"}
6610
6611 # If no C compiler flags were specified, use CFLAGS.
6612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
6614 # Allow CC to be a program name with arguments.
6615 compiler=$CC
6616
6617
6618 # Check for command to grab the raw symbol name followed by C symbol from nm.
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6620 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6621 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6622   $as_echo_n "(cached) " >&6
6623 else
6624
6625 # These are sane defaults that work on at least a few old systems.
6626 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6627
6628 # Character class describing NM global symbol codes.
6629 symcode='[BCDEGRST]'
6630
6631 # Regexp to match symbols that can be accessed directly from C.
6632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6633
6634 # Define system-specific variables.
6635 case $host_os in
6636 aix*)
6637   symcode='[BCDT]'
6638   ;;
6639 cygwin* | mingw* | pw32* | cegcc*)
6640   symcode='[ABCDGISTW]'
6641   ;;
6642 hpux*)
6643   if test ia64 = "$host_cpu"; then
6644     symcode='[ABCDEGRST]'
6645   fi
6646   ;;
6647 irix* | nonstopux*)
6648   symcode='[BCDEGRST]'
6649   ;;
6650 osf*)
6651   symcode='[BCDEGQRST]'
6652   ;;
6653 solaris*)
6654   symcode='[BDRT]'
6655   ;;
6656 sco3.2v5*)
6657   symcode='[DT]'
6658   ;;
6659 sysv4.2uw2*)
6660   symcode='[DT]'
6661   ;;
6662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6663   symcode='[ABDT]'
6664   ;;
6665 sysv4)
6666   symcode='[DFNSTU]'
6667   ;;
6668 esac
6669
6670 # If we're using GNU nm, then use its standard symbol codes.
6671 case `$NM -V 2>&1` in
6672 *GNU* | *'with BFD'*)
6673   symcode='[ABCDGIRSTW]' ;;
6674 esac
6675
6676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6677   # Gets list of data symbols to import.
6678   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6679   # Adjust the below global symbol transforms to fixup imported variables.
6680   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6681   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6682   lt_c_name_lib_hook="\
6683   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6684   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6685 else
6686   # Disable hooks by default.
6687   lt_cv_sys_global_symbol_to_import=
6688   lt_cdecl_hook=
6689   lt_c_name_hook=
6690   lt_c_name_lib_hook=
6691 fi
6692
6693 # Transform an extracted symbol line into a proper C declaration.
6694 # Some systems (esp. on ia64) link data and code symbols differently,
6695 # so use this general approach.
6696 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6697 $lt_cdecl_hook\
6698 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6699 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6700
6701 # Transform an extracted symbol line into symbol name and symbol address
6702 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6703 $lt_c_name_hook\
6704 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6705 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6706
6707 # Transform an extracted symbol line into symbol name with lib prefix and
6708 # symbol address.
6709 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6710 $lt_c_name_lib_hook\
6711 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6712 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6713 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6714
6715 # Handle CRLF in mingw tool chain
6716 opt_cr=
6717 case $build_os in
6718 mingw*)
6719   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6720   ;;
6721 esac
6722
6723 # Try without a prefix underscore, then with it.
6724 for ac_symprfx in "" "_"; do
6725
6726   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727   symxfrm="\\1 $ac_symprfx\\2 \\2"
6728
6729   # Write the raw and C identifiers.
6730   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731     # Fake it for dumpbin and say T for any non-static function,
6732     # D for any global variable and I for any imported variable.
6733     # Also find C++ and __fastcall symbols from MSVC++,
6734     # which start with @ or ?.
6735     lt_cv_sys_global_symbol_pipe="$AWK '"\
6736 "     {last_section=section; section=\$ 3};"\
6737 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6738 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6739 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6740 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6741 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6742 "     \$ 0!~/External *\|/{next};"\
6743 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6744 "     {if(hide[section]) next};"\
6745 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6746 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6747 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6748 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6749 "     ' prfx=^$ac_symprfx"
6750   else
6751     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6752   fi
6753   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6754
6755   # Check to see that the pipe works correctly.
6756   pipe_works=no
6757
6758   rm -f conftest*
6759   cat > conftest.$ac_ext <<_LT_EOF
6760 #ifdef __cplusplus
6761 extern "C" {
6762 #endif
6763 char nm_test_var;
6764 void nm_test_func(void);
6765 void nm_test_func(void){}
6766 #ifdef __cplusplus
6767 }
6768 #endif
6769 int main(){nm_test_var='a';nm_test_func();return(0);}
6770 _LT_EOF
6771
6772   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773   (eval $ac_compile) 2>&5
6774   ac_status=$?
6775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776   test $ac_status = 0; }; then
6777     # Now try to grab the symbols.
6778     nlist=conftest.nm
6779     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6780   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6781   ac_status=$?
6782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783   test $ac_status = 0; } && test -s "$nlist"; then
6784       # Try sorting and uniquifying the output.
6785       if sort "$nlist" | uniq > "$nlist"T; then
6786         mv -f "$nlist"T "$nlist"
6787       else
6788         rm -f "$nlist"T
6789       fi
6790
6791       # Make sure that we snagged all the symbols we need.
6792       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6793         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6794           cat <<_LT_EOF > conftest.$ac_ext
6795 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6796 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6797 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6798    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6799 # define LT_DLSYM_CONST
6800 #elif defined __osf__
6801 /* This system does not cope well with relocations in const data.  */
6802 # define LT_DLSYM_CONST
6803 #else
6804 # define LT_DLSYM_CONST const
6805 #endif
6806
6807 #ifdef __cplusplus
6808 extern "C" {
6809 #endif
6810
6811 _LT_EOF
6812           # Now generate the symbol file.
6813           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6814
6815           cat <<_LT_EOF >> conftest.$ac_ext
6816
6817 /* The mapping between symbol names and symbols.  */
6818 LT_DLSYM_CONST struct {
6819   const char *name;
6820   void       *address;
6821 }
6822 lt__PROGRAM__LTX_preloaded_symbols[] =
6823 {
6824   { "@PROGRAM@", (void *) 0 },
6825 _LT_EOF
6826           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6827           cat <<\_LT_EOF >> conftest.$ac_ext
6828   {0, (void *) 0}
6829 };
6830
6831 /* This works around a problem in FreeBSD linker */
6832 #ifdef FREEBSD_WORKAROUND
6833 static const void *lt_preloaded_setup() {
6834   return lt__PROGRAM__LTX_preloaded_symbols;
6835 }
6836 #endif
6837
6838 #ifdef __cplusplus
6839 }
6840 #endif
6841 _LT_EOF
6842           # Now try linking the two files.
6843           mv conftest.$ac_objext conftstm.$ac_objext
6844           lt_globsym_save_LIBS=$LIBS
6845           lt_globsym_save_CFLAGS=$CFLAGS
6846           LIBS=conftstm.$ac_objext
6847           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6848           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6849   (eval $ac_link) 2>&5
6850   ac_status=$?
6851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6853             pipe_works=yes
6854           fi
6855           LIBS=$lt_globsym_save_LIBS
6856           CFLAGS=$lt_globsym_save_CFLAGS
6857         else
6858           echo "cannot find nm_test_func in $nlist" >&5
6859         fi
6860       else
6861         echo "cannot find nm_test_var in $nlist" >&5
6862       fi
6863     else
6864       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6865     fi
6866   else
6867     echo "$progname: failed program was:" >&5
6868     cat conftest.$ac_ext >&5
6869   fi
6870   rm -rf conftest* conftst*
6871
6872   # Do not use the global_symbol_pipe unless it works.
6873   if test yes = "$pipe_works"; then
6874     break
6875   else
6876     lt_cv_sys_global_symbol_pipe=
6877   fi
6878 done
6879
6880 fi
6881
6882 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6883   lt_cv_sys_global_symbol_to_cdecl=
6884 fi
6885 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6887 $as_echo "failed" >&6; }
6888 else
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6890 $as_echo "ok" >&6; }
6891 fi
6892
6893 # Response file support.
6894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6895   nm_file_list_spec='@'
6896 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6897   nm_file_list_spec='@'
6898 fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6937 $as_echo_n "checking for sysroot... " >&6; }
6938
6939 # Check whether --with-sysroot was given.
6940 if test "${with_sysroot+set}" = set; then :
6941   withval=$with_sysroot;
6942 else
6943   with_sysroot=no
6944 fi
6945
6946
6947 lt_sysroot=
6948 case $with_sysroot in #(
6949  yes)
6950    if test yes = "$GCC"; then
6951      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6952    fi
6953    ;; #(
6954  /*)
6955    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6956    ;; #(
6957  no|'')
6958    ;; #(
6959  *)
6960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6961 $as_echo "$with_sysroot" >&6; }
6962    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6963    ;;
6964 esac
6965
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6967 $as_echo "${lt_sysroot:-no}" >&6; }
6968
6969
6970
6971
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6974 $as_echo_n "checking for a working dd... " >&6; }
6975 if ${ac_cv_path_lt_DD+:} false; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   printf 0123456789abcdef0123456789abcdef >conftest.i
6979 cat conftest.i conftest.i >conftest2.i
6980 : ${lt_DD:=$DD}
6981 if test -z "$lt_DD"; then
6982   ac_path_lt_DD_found=false
6983   # Loop through the user's path and test for each of PROGNAME-LIST
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989     for ac_prog in dd; do
6990     for ac_exec_ext in '' $ac_executable_extensions; do
6991       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6992       as_fn_executable_p "$ac_path_lt_DD" || continue
6993 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6994   cmp -s conftest.i conftest.out \
6995   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6996 fi
6997       $ac_path_lt_DD_found && break 3
6998     done
6999   done
7000   done
7001 IFS=$as_save_IFS
7002   if test -z "$ac_cv_path_lt_DD"; then
7003     :
7004   fi
7005 else
7006   ac_cv_path_lt_DD=$lt_DD
7007 fi
7008
7009 rm -f conftest.i conftest2.i conftest.out
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7012 $as_echo "$ac_cv_path_lt_DD" >&6; }
7013
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7016 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7017 if ${lt_cv_truncate_bin+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   printf 0123456789abcdef0123456789abcdef >conftest.i
7021 cat conftest.i conftest.i >conftest2.i
7022 lt_cv_truncate_bin=
7023 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7024   cmp -s conftest.i conftest.out \
7025   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7026 fi
7027 rm -f conftest.i conftest2.i conftest.out
7028 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7031 $as_echo "$lt_cv_truncate_bin" >&6; }
7032
7033
7034
7035
7036
7037
7038
7039 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7040 func_cc_basename ()
7041 {
7042     for cc_temp in $*""; do
7043       case $cc_temp in
7044         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7045         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7046         \-*) ;;
7047         *) break;;
7048       esac
7049     done
7050     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7051 }
7052
7053 # Check whether --enable-libtool-lock was given.
7054 if test "${enable_libtool_lock+set}" = set; then :
7055   enableval=$enable_libtool_lock;
7056 fi
7057
7058 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7059
7060 # Some flags need to be propagated to the compiler or linker for good
7061 # libtool support.
7062 case $host in
7063 ia64-*-hpux*)
7064   # Find out what ABI is being produced by ac_compile, and set mode
7065   # options accordingly.
7066   echo 'int i;' > conftest.$ac_ext
7067   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7068   (eval $ac_compile) 2>&5
7069   ac_status=$?
7070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071   test $ac_status = 0; }; then
7072     case `/usr/bin/file conftest.$ac_objext` in
7073       *ELF-32*)
7074         HPUX_IA64_MODE=32
7075         ;;
7076       *ELF-64*)
7077         HPUX_IA64_MODE=64
7078         ;;
7079     esac
7080   fi
7081   rm -rf conftest*
7082   ;;
7083 *-*-irix6*)
7084   # Find out what ABI is being produced by ac_compile, and set linker
7085   # options accordingly.
7086   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7087   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088   (eval $ac_compile) 2>&5
7089   ac_status=$?
7090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091   test $ac_status = 0; }; then
7092     if test yes = "$lt_cv_prog_gnu_ld"; then
7093       case `/usr/bin/file conftest.$ac_objext` in
7094         *32-bit*)
7095           LD="${LD-ld} -melf32bsmip"
7096           ;;
7097         *N32*)
7098           LD="${LD-ld} -melf32bmipn32"
7099           ;;
7100         *64-bit*)
7101           LD="${LD-ld} -melf64bmip"
7102         ;;
7103       esac
7104     else
7105       case `/usr/bin/file conftest.$ac_objext` in
7106         *32-bit*)
7107           LD="${LD-ld} -32"
7108           ;;
7109         *N32*)
7110           LD="${LD-ld} -n32"
7111           ;;
7112         *64-bit*)
7113           LD="${LD-ld} -64"
7114           ;;
7115       esac
7116     fi
7117   fi
7118   rm -rf conftest*
7119   ;;
7120
7121 mips64*-*linux*)
7122   # Find out what ABI is being produced by ac_compile, and set linker
7123   # options accordingly.
7124   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126   (eval $ac_compile) 2>&5
7127   ac_status=$?
7128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129   test $ac_status = 0; }; then
7130     emul=elf
7131     case `/usr/bin/file conftest.$ac_objext` in
7132       *32-bit*)
7133         emul="${emul}32"
7134         ;;
7135       *64-bit*)
7136         emul="${emul}64"
7137         ;;
7138     esac
7139     case `/usr/bin/file conftest.$ac_objext` in
7140       *MSB*)
7141         emul="${emul}btsmip"
7142         ;;
7143       *LSB*)
7144         emul="${emul}ltsmip"
7145         ;;
7146     esac
7147     case `/usr/bin/file conftest.$ac_objext` in
7148       *N32*)
7149         emul="${emul}n32"
7150         ;;
7151     esac
7152     LD="${LD-ld} -m $emul"
7153   fi
7154   rm -rf conftest*
7155   ;;
7156
7157 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7158 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7159   # Find out what ABI is being produced by ac_compile, and set linker
7160   # options accordingly.  Note that the listed cases only cover the
7161   # situations where additional linker options are needed (such as when
7162   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7163   # vice versa); the common cases where no linker options are needed do
7164   # not appear in the list.
7165   echo 'int i;' > conftest.$ac_ext
7166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170   test $ac_status = 0; }; then
7171     case `/usr/bin/file conftest.o` in
7172       *32-bit*)
7173         case $host in
7174           x86_64-*kfreebsd*-gnu)
7175             LD="${LD-ld} -m elf_i386_fbsd"
7176             ;;
7177           x86_64-*linux*)
7178             case `/usr/bin/file conftest.o` in
7179               *x86-64*)
7180                 LD="${LD-ld} -m elf32_x86_64"
7181                 ;;
7182               *)
7183                 LD="${LD-ld} -m elf_i386"
7184                 ;;
7185             esac
7186             ;;
7187           powerpc64le-*linux*)
7188             LD="${LD-ld} -m elf32lppclinux"
7189             ;;
7190           powerpc64-*linux*)
7191             LD="${LD-ld} -m elf32ppclinux"
7192             ;;
7193           s390x-*linux*)
7194             LD="${LD-ld} -m elf_s390"
7195             ;;
7196           sparc64-*linux*)
7197             LD="${LD-ld} -m elf32_sparc"
7198             ;;
7199         esac
7200         ;;
7201       *64-bit*)
7202         case $host in
7203           x86_64-*kfreebsd*-gnu)
7204             LD="${LD-ld} -m elf_x86_64_fbsd"
7205             ;;
7206           x86_64-*linux*)
7207             LD="${LD-ld} -m elf_x86_64"
7208             ;;
7209           powerpcle-*linux*)
7210             LD="${LD-ld} -m elf64lppc"
7211             ;;
7212           powerpc-*linux*)
7213             LD="${LD-ld} -m elf64ppc"
7214             ;;
7215           s390*-*linux*|s390*-*tpf*)
7216             LD="${LD-ld} -m elf64_s390"
7217             ;;
7218           sparc*-*linux*)
7219             LD="${LD-ld} -m elf64_sparc"
7220             ;;
7221         esac
7222         ;;
7223     esac
7224   fi
7225   rm -rf conftest*
7226   ;;
7227
7228 *-*-sco3.2v5*)
7229   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7230   SAVE_CFLAGS=$CFLAGS
7231   CFLAGS="$CFLAGS -belf"
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7233 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7234 if ${lt_cv_cc_needs_belf+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   ac_ext=c
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7242
7243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h.  */
7245
7246 int
7247 main ()
7248 {
7249
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_c_try_link "$LINENO"; then :
7255   lt_cv_cc_needs_belf=yes
7256 else
7257   lt_cv_cc_needs_belf=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext \
7260     conftest$ac_exeext conftest.$ac_ext
7261      ac_ext=c
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7269 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7270   if test yes != "$lt_cv_cc_needs_belf"; then
7271     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7272     CFLAGS=$SAVE_CFLAGS
7273   fi
7274   ;;
7275 *-*solaris*)
7276   # Find out what ABI is being produced by ac_compile, and set linker
7277   # options accordingly.
7278   echo 'int i;' > conftest.$ac_ext
7279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7280   (eval $ac_compile) 2>&5
7281   ac_status=$?
7282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283   test $ac_status = 0; }; then
7284     case `/usr/bin/file conftest.o` in
7285     *64-bit*)
7286       case $lt_cv_prog_gnu_ld in
7287       yes*)
7288         case $host in
7289         i?86-*-solaris*|x86_64-*-solaris*)
7290           LD="${LD-ld} -m elf_x86_64"
7291           ;;
7292         sparc*-*-solaris*)
7293           LD="${LD-ld} -m elf64_sparc"
7294           ;;
7295         esac
7296         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7297         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7298           LD=${LD-ld}_sol2
7299         fi
7300         ;;
7301       *)
7302         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7303           LD="${LD-ld} -64"
7304         fi
7305         ;;
7306       esac
7307       ;;
7308     esac
7309   fi
7310   rm -rf conftest*
7311   ;;
7312 esac
7313
7314 need_locks=$enable_libtool_lock
7315
7316 if test -n "$ac_tool_prefix"; then
7317   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7318 set dummy ${ac_tool_prefix}mt; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7322   $as_echo_n "(cached) " >&6
7323 else
7324   if test -n "$MANIFEST_TOOL"; then
7325   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332     for ac_exec_ext in '' $ac_executable_extensions; do
7333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339   done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7345 if test -n "$MANIFEST_TOOL"; then
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7347 $as_echo "$MANIFEST_TOOL" >&6; }
7348 else
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353
7354 fi
7355 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7356   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7357   # Extract the first word of "mt", so it can be a program name with args.
7358 set dummy mt; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7362   $as_echo_n "(cached) " >&6
7363 else
7364   if test -n "$ac_ct_MANIFEST_TOOL"; then
7365   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372     for ac_exec_ext in '' $ac_executable_extensions; do
7373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379   done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7385 if test -n "$ac_ct_MANIFEST_TOOL"; then
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7387 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7388 else
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7394     MANIFEST_TOOL=":"
7395   else
7396     case $cross_compiling:$ac_tool_warned in
7397 yes:)
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400 ac_tool_warned=yes ;;
7401 esac
7402     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7403   fi
7404 else
7405   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7406 fi
7407
7408 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7410 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7411 if ${lt_cv_path_mainfest_tool+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   lt_cv_path_mainfest_tool=no
7415   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7416   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7417   cat conftest.err >&5
7418   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7419     lt_cv_path_mainfest_tool=yes
7420   fi
7421   rm -f conftest*
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7424 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7425 if test yes != "$lt_cv_path_mainfest_tool"; then
7426   MANIFEST_TOOL=:
7427 fi
7428
7429
7430
7431
7432
7433
7434   case $host_os in
7435     rhapsody* | darwin*)
7436     if test -n "$ac_tool_prefix"; then
7437   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   if test -n "$DSYMUTIL"; then
7445   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452     for ac_exec_ext in '' $ac_executable_extensions; do
7453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459   done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7465 if test -n "$DSYMUTIL"; then
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7467 $as_echo "$DSYMUTIL" >&6; }
7468 else
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_DSYMUTIL"; then
7476   ac_ct_DSYMUTIL=$DSYMUTIL
7477   # Extract the first word of "dsymutil", so it can be a program name with args.
7478 set dummy dsymutil; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   if test -n "$ac_ct_DSYMUTIL"; then
7485   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492     for ac_exec_ext in '' $ac_executable_extensions; do
7493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499   done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7505 if test -n "$ac_ct_DSYMUTIL"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7507 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513   if test "x$ac_ct_DSYMUTIL" = x; then
7514     DSYMUTIL=":"
7515   else
7516     case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522     DSYMUTIL=$ac_ct_DSYMUTIL
7523   fi
7524 else
7525   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7526 fi
7527
7528     if test -n "$ac_tool_prefix"; then
7529   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_NMEDIT+:} false; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   if test -n "$NMEDIT"; then
7537   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544     for ac_exec_ext in '' $ac_executable_extensions; do
7545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551   done
7552 IFS=$as_save_IFS
7553
7554 fi
7555 fi
7556 NMEDIT=$ac_cv_prog_NMEDIT
7557 if test -n "$NMEDIT"; then
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7559 $as_echo "$NMEDIT" >&6; }
7560 else
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566 fi
7567 if test -z "$ac_cv_prog_NMEDIT"; then
7568   ac_ct_NMEDIT=$NMEDIT
7569   # Extract the first word of "nmedit", so it can be a program name with args.
7570 set dummy nmedit; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$ac_ct_NMEDIT"; then
7577   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7597 if test -n "$ac_ct_NMEDIT"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7599 $as_echo "$ac_ct_NMEDIT" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605   if test "x$ac_ct_NMEDIT" = x; then
7606     NMEDIT=":"
7607   else
7608     case $cross_compiling:$ac_tool_warned in
7609 yes:)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7613 esac
7614     NMEDIT=$ac_ct_NMEDIT
7615   fi
7616 else
7617   NMEDIT="$ac_cv_prog_NMEDIT"
7618 fi
7619
7620     if test -n "$ac_tool_prefix"; then
7621   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7622 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_LIPO+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -n "$LIPO"; then
7629   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 LIPO=$ac_cv_prog_LIPO
7649 if test -n "$LIPO"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7651 $as_echo "$LIPO" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658 fi
7659 if test -z "$ac_cv_prog_LIPO"; then
7660   ac_ct_LIPO=$LIPO
7661   # Extract the first word of "lipo", so it can be a program name with args.
7662 set dummy lipo; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   if test -n "$ac_ct_LIPO"; then
7669   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_ac_ct_LIPO="lipo"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7689 if test -n "$ac_ct_LIPO"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7691 $as_echo "$ac_ct_LIPO" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697   if test "x$ac_ct_LIPO" = x; then
7698     LIPO=":"
7699   else
7700     case $cross_compiling:$ac_tool_warned in
7701 yes:)
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704 ac_tool_warned=yes ;;
7705 esac
7706     LIPO=$ac_ct_LIPO
7707   fi
7708 else
7709   LIPO="$ac_cv_prog_LIPO"
7710 fi
7711
7712     if test -n "$ac_tool_prefix"; then
7713   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}otool; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_OTOOL+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   if test -n "$OTOOL"; then
7721   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728     for ac_exec_ext in '' $ac_executable_extensions; do
7729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735   done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 OTOOL=$ac_cv_prog_OTOOL
7741 if test -n "$OTOOL"; then
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7743 $as_echo "$OTOOL" >&6; }
7744 else
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_OTOOL"; then
7752   ac_ct_OTOOL=$OTOOL
7753   # Extract the first word of "otool", so it can be a program name with args.
7754 set dummy otool; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -n "$ac_ct_OTOOL"; then
7761   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770     ac_cv_prog_ac_ct_OTOOL="otool"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7781 if test -n "$ac_ct_OTOOL"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7783 $as_echo "$ac_ct_OTOOL" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789   if test "x$ac_ct_OTOOL" = x; then
7790     OTOOL=":"
7791   else
7792     case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798     OTOOL=$ac_ct_OTOOL
7799   fi
7800 else
7801   OTOOL="$ac_cv_prog_OTOOL"
7802 fi
7803
7804     if test -n "$ac_tool_prefix"; then
7805   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_OTOOL64+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   if test -n "$OTOOL64"; then
7813   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 OTOOL64=$ac_cv_prog_OTOOL64
7833 if test -n "$OTOOL64"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7835 $as_echo "$OTOOL64" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_OTOOL64"; then
7844   ac_ct_OTOOL64=$OTOOL64
7845   # Extract the first word of "otool64", so it can be a program name with args.
7846 set dummy otool64; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   if test -n "$ac_ct_OTOOL64"; then
7853   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860     for ac_exec_ext in '' $ac_executable_extensions; do
7861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862     ac_cv_prog_ac_ct_OTOOL64="otool64"
7863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867   done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7873 if test -n "$ac_ct_OTOOL64"; then
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7875 $as_echo "$ac_ct_OTOOL64" >&6; }
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881   if test "x$ac_ct_OTOOL64" = x; then
7882     OTOOL64=":"
7883   else
7884     case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890     OTOOL64=$ac_ct_OTOOL64
7891   fi
7892 else
7893   OTOOL64="$ac_cv_prog_OTOOL64"
7894 fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7923 $as_echo_n "checking for -single_module linker flag... " >&6; }
7924 if ${lt_cv_apple_cc_single_mod+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   lt_cv_apple_cc_single_mod=no
7928       if test -z "$LT_MULTI_MODULE"; then
7929         # By default we will add the -single_module flag. You can override
7930         # by either setting the environment variable LT_MULTI_MODULE
7931         # non-empty at configure time, or by adding -multi_module to the
7932         # link flags.
7933         rm -rf libconftest.dylib*
7934         echo "int foo(void){return 1;}" > conftest.c
7935         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936 -dynamiclib -Wl,-single_module conftest.c" >&5
7937         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7938           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7939         _lt_result=$?
7940         # If there is a non-empty error log, and "single_module"
7941         # appears in it, assume the flag caused a linker warning
7942         if test -s conftest.err && $GREP single_module conftest.err; then
7943           cat conftest.err >&5
7944         # Otherwise, if the output was created with a 0 exit code from
7945         # the compiler, it worked.
7946         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7947           lt_cv_apple_cc_single_mod=yes
7948         else
7949           cat conftest.err >&5
7950         fi
7951         rm -rf libconftest.dylib*
7952         rm -f conftest.*
7953       fi
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7956 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7957
7958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7959 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7960 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   lt_cv_ld_exported_symbols_list=no
7964       save_LDFLAGS=$LDFLAGS
7965       echo "_main" > conftest.sym
7966       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7967       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969
7970 int
7971 main ()
7972 {
7973
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 if ac_fn_c_try_link "$LINENO"; then :
7979   lt_cv_ld_exported_symbols_list=yes
7980 else
7981   lt_cv_ld_exported_symbols_list=no
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext \
7984     conftest$ac_exeext conftest.$ac_ext
7985         LDFLAGS=$save_LDFLAGS
7986
7987 fi
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7989 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7990
7991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7992 $as_echo_n "checking for -force_load linker flag... " >&6; }
7993 if ${lt_cv_ld_force_load+:} false; then :
7994   $as_echo_n "(cached) " >&6
7995 else
7996   lt_cv_ld_force_load=no
7997       cat > conftest.c << _LT_EOF
7998 int forced_loaded() { return 2;}
7999 _LT_EOF
8000       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8001       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8002       echo "$AR cru libconftest.a conftest.o" >&5
8003       $AR cru libconftest.a conftest.o 2>&5
8004       echo "$RANLIB libconftest.a" >&5
8005       $RANLIB libconftest.a 2>&5
8006       cat > conftest.c << _LT_EOF
8007 int main() { return 0;}
8008 _LT_EOF
8009       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8010       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8011       _lt_result=$?
8012       if test -s conftest.err && $GREP force_load conftest.err; then
8013         cat conftest.err >&5
8014       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8015         lt_cv_ld_force_load=yes
8016       else
8017         cat conftest.err >&5
8018       fi
8019         rm -f conftest.err libconftest.a conftest conftest.c
8020         rm -rf conftest.dSYM
8021
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8024 $as_echo "$lt_cv_ld_force_load" >&6; }
8025     case $host_os in
8026     rhapsody* | darwin1.[012])
8027       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8028     darwin1.*)
8029       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8030     darwin*) # darwin 5.x on
8031       # if running on 10.5 or later, the deployment target defaults
8032       # to the OS version, if on x86, and 10.4, the deployment
8033       # target defaults to 10.4. Don't you love it?
8034       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8035         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8036           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8037         10.[012][,.]*)
8038           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8039         10.*)
8040           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8041       esac
8042     ;;
8043   esac
8044     if test yes = "$lt_cv_apple_cc_single_mod"; then
8045       _lt_dar_single_mod='$single_module'
8046     fi
8047     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8048       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8049     else
8050       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8051     fi
8052     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8053       _lt_dsymutil='~$DSYMUTIL $lib || :'
8054     else
8055       _lt_dsymutil=
8056     fi
8057     ;;
8058   esac
8059
8060 # func_munge_path_list VARIABLE PATH
8061 # -----------------------------------
8062 # VARIABLE is name of variable containing _space_ separated list of
8063 # directories to be munged by the contents of PATH, which is string
8064 # having a format:
8065 # "DIR[:DIR]:"
8066 #       string "DIR[ DIR]" will be prepended to VARIABLE
8067 # ":DIR[:DIR]"
8068 #       string "DIR[ DIR]" will be appended to VARIABLE
8069 # "DIRP[:DIRP]::[DIRA:]DIRA"
8070 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8071 #       "DIRA[ DIRA]" will be appended to VARIABLE
8072 # "DIR[:DIR]"
8073 #       VARIABLE will be replaced by "DIR[ DIR]"
8074 func_munge_path_list ()
8075 {
8076     case x$2 in
8077     x)
8078         ;;
8079     *:)
8080         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8081         ;;
8082     x:*)
8083         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8084         ;;
8085     *::*)
8086         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8087         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8088         ;;
8089     *)
8090         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8091         ;;
8092     esac
8093 }
8094
8095 for ac_header in dlfcn.h
8096 do :
8097   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8098 "
8099 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8100   cat >>confdefs.h <<_ACEOF
8101 #define HAVE_DLFCN_H 1
8102 _ACEOF
8103
8104 fi
8105
8106 done
8107
8108
8109
8110
8111
8112 # Set options
8113 enable_dlopen=yes
8114 # Check whether --enable-static was given.
8115 if test "${enable_static+set}" = set; then :
8116   enableval=$enable_static; p=${PACKAGE-default}
8117     case $enableval in
8118     yes) enable_static=yes ;;
8119     no) enable_static=no ;;
8120     *)
8121      enable_static=no
8122       # Look at the argument we got.  We use all the common list separators.
8123       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8124       for pkg in $enableval; do
8125         IFS=$lt_save_ifs
8126         if test "X$pkg" = "X$p"; then
8127           enable_static=yes
8128         fi
8129       done
8130       IFS=$lt_save_ifs
8131       ;;
8132     esac
8133 else
8134   enable_static=no
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143 enable_win32_dll=yes
8144
8145 case $host in
8146 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8147   if test -n "$ac_tool_prefix"; then
8148   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8149 set dummy ${ac_tool_prefix}as; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if ${ac_cv_prog_AS+:} false; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   if test -n "$AS"; then
8156   ac_cv_prog_AS="$AS" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165     ac_cv_prog_AS="${ac_tool_prefix}as"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 AS=$ac_cv_prog_AS
8176 if test -n "$AS"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8178 $as_echo "$AS" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185 fi
8186 if test -z "$ac_cv_prog_AS"; then
8187   ac_ct_AS=$AS
8188   # Extract the first word of "as", so it can be a program name with args.
8189 set dummy as; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   if test -n "$ac_ct_AS"; then
8196   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201   IFS=$as_save_IFS
8202   test -z "$as_dir" && as_dir=.
8203     for ac_exec_ext in '' $ac_executable_extensions; do
8204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205     ac_cv_prog_ac_ct_AS="as"
8206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207     break 2
8208   fi
8209 done
8210   done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8216 if test -n "$ac_ct_AS"; then
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8218 $as_echo "$ac_ct_AS" >&6; }
8219 else
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224   if test "x$ac_ct_AS" = x; then
8225     AS="false"
8226   else
8227     case $cross_compiling:$ac_tool_warned in
8228 yes:)
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231 ac_tool_warned=yes ;;
8232 esac
8233     AS=$ac_ct_AS
8234   fi
8235 else
8236   AS="$ac_cv_prog_AS"
8237 fi
8238
8239   if test -n "$ac_tool_prefix"; then
8240   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8241 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if ${ac_cv_prog_DLLTOOL+:} false; then :
8245   $as_echo_n "(cached) " >&6
8246 else
8247   if test -n "$DLLTOOL"; then
8248   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255     for ac_exec_ext in '' $ac_executable_extensions; do
8256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262   done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 DLLTOOL=$ac_cv_prog_DLLTOOL
8268 if test -n "$DLLTOOL"; then
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8270 $as_echo "$DLLTOOL" >&6; }
8271 else
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277 fi
8278 if test -z "$ac_cv_prog_DLLTOOL"; then
8279   ac_ct_DLLTOOL=$DLLTOOL
8280   # Extract the first word of "dlltool", so it can be a program name with args.
8281 set dummy dlltool; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   if test -n "$ac_ct_DLLTOOL"; then
8288   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295     for ac_exec_ext in '' $ac_executable_extensions; do
8296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302   done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8308 if test -n "$ac_ct_DLLTOOL"; then
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8310 $as_echo "$ac_ct_DLLTOOL" >&6; }
8311 else
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316   if test "x$ac_ct_DLLTOOL" = x; then
8317     DLLTOOL="false"
8318   else
8319     case $cross_compiling:$ac_tool_warned in
8320 yes:)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8324 esac
8325     DLLTOOL=$ac_ct_DLLTOOL
8326   fi
8327 else
8328   DLLTOOL="$ac_cv_prog_DLLTOOL"
8329 fi
8330
8331   if test -n "$ac_tool_prefix"; then
8332   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8333 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if ${ac_cv_prog_OBJDUMP+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   if test -n "$OBJDUMP"; then
8340   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345   IFS=$as_save_IFS
8346   test -z "$as_dir" && as_dir=.
8347     for ac_exec_ext in '' $ac_executable_extensions; do
8348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351     break 2
8352   fi
8353 done
8354   done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 OBJDUMP=$ac_cv_prog_OBJDUMP
8360 if test -n "$OBJDUMP"; then
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8362 $as_echo "$OBJDUMP" >&6; }
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369 fi
8370 if test -z "$ac_cv_prog_OBJDUMP"; then
8371   ac_ct_OBJDUMP=$OBJDUMP
8372   # Extract the first word of "objdump", so it can be a program name with args.
8373 set dummy objdump; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   if test -n "$ac_ct_OBJDUMP"; then
8380   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385   IFS=$as_save_IFS
8386   test -z "$as_dir" && as_dir=.
8387     for ac_exec_ext in '' $ac_executable_extensions; do
8388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391     break 2
8392   fi
8393 done
8394   done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8400 if test -n "$ac_ct_OBJDUMP"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8402 $as_echo "$ac_ct_OBJDUMP" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408   if test "x$ac_ct_OBJDUMP" = x; then
8409     OBJDUMP="false"
8410   else
8411     case $cross_compiling:$ac_tool_warned in
8412 yes:)
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415 ac_tool_warned=yes ;;
8416 esac
8417     OBJDUMP=$ac_ct_OBJDUMP
8418   fi
8419 else
8420   OBJDUMP="$ac_cv_prog_OBJDUMP"
8421 fi
8422
8423   ;;
8424 esac
8425
8426 test -z "$AS" && AS=as
8427
8428
8429
8430
8431
8432 test -z "$DLLTOOL" && DLLTOOL=dlltool
8433
8434
8435
8436
8437
8438 test -z "$OBJDUMP" && OBJDUMP=objdump
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448             # Check whether --enable-shared was given.
8449 if test "${enable_shared+set}" = set; then :
8450   enableval=$enable_shared; p=${PACKAGE-default}
8451     case $enableval in
8452     yes) enable_shared=yes ;;
8453     no) enable_shared=no ;;
8454     *)
8455       enable_shared=no
8456       # Look at the argument we got.  We use all the common list separators.
8457       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8458       for pkg in $enableval; do
8459         IFS=$lt_save_ifs
8460         if test "X$pkg" = "X$p"; then
8461           enable_shared=yes
8462         fi
8463       done
8464       IFS=$lt_save_ifs
8465       ;;
8466     esac
8467 else
8468   enable_shared=yes
8469 fi
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483   withval=$with_pic; lt_p=${PACKAGE-default}
8484     case $withval in
8485     yes|no) pic_mode=$withval ;;
8486     *)
8487       pic_mode=default
8488       # Look at the argument we got.  We use all the common list separators.
8489       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490       for lt_pkg in $withval; do
8491         IFS=$lt_save_ifs
8492         if test "X$lt_pkg" = "X$lt_p"; then
8493           pic_mode=yes
8494         fi
8495       done
8496       IFS=$lt_save_ifs
8497       ;;
8498     esac
8499 else
8500   pic_mode=default
8501 fi
8502
8503
8504
8505
8506
8507
8508
8509
8510   # Check whether --enable-fast-install was given.
8511 if test "${enable_fast_install+set}" = set; then :
8512   enableval=$enable_fast_install; p=${PACKAGE-default}
8513     case $enableval in
8514     yes) enable_fast_install=yes ;;
8515     no) enable_fast_install=no ;;
8516     *)
8517       enable_fast_install=no
8518       # Look at the argument we got.  We use all the common list separators.
8519       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8520       for pkg in $enableval; do
8521         IFS=$lt_save_ifs
8522         if test "X$pkg" = "X$p"; then
8523           enable_fast_install=yes
8524         fi
8525       done
8526       IFS=$lt_save_ifs
8527       ;;
8528     esac
8529 else
8530   enable_fast_install=yes
8531 fi
8532
8533
8534
8535
8536
8537
8538
8539
8540   shared_archive_member_spec=
8541 case $host,$enable_shared in
8542 power*-*-aix[5-9]*,yes)
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8544 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8545
8546 # Check whether --with-aix-soname was given.
8547 if test "${with_aix_soname+set}" = set; then :
8548   withval=$with_aix_soname; case $withval in
8549     aix|svr4|both)
8550       ;;
8551     *)
8552       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8553       ;;
8554     esac
8555     lt_cv_with_aix_soname=$with_aix_soname
8556 else
8557   if ${lt_cv_with_aix_soname+:} false; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   lt_cv_with_aix_soname=aix
8561 fi
8562
8563     with_aix_soname=$lt_cv_with_aix_soname
8564 fi
8565
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8567 $as_echo "$with_aix_soname" >&6; }
8568   if test aix != "$with_aix_soname"; then
8569     # For the AIX way of multilib, we name the shared archive member
8570     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8571     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8572     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8573     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8574     if test 64 = "${OBJECT_MODE-32}"; then
8575       shared_archive_member_spec=shr_64
8576     else
8577       shared_archive_member_spec=shr
8578     fi
8579   fi
8580   ;;
8581 *)
8582   with_aix_soname=aix
8583   ;;
8584 esac
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 # This can be used to rebuild libtool when needed
8596 LIBTOOL_DEPS=$ltmain
8597
8598 # Always use our own libtool.
8599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 test -z "$LN_S" && LN_S="ln -s"
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 if test -n "${ZSH_VERSION+set}"; then
8646    setopt NO_GLOB_SUBST
8647 fi
8648
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8650 $as_echo_n "checking for objdir... " >&6; }
8651 if ${lt_cv_objdir+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   rm -f .libs 2>/dev/null
8655 mkdir .libs 2>/dev/null
8656 if test -d .libs; then
8657   lt_cv_objdir=.libs
8658 else
8659   # MS-DOS does not allow filenames that begin with a dot.
8660   lt_cv_objdir=_libs
8661 fi
8662 rmdir .libs 2>/dev/null
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8665 $as_echo "$lt_cv_objdir" >&6; }
8666 objdir=$lt_cv_objdir
8667
8668
8669
8670
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define LT_OBJDIR "$lt_cv_objdir/"
8674 _ACEOF
8675
8676
8677
8678
8679 case $host_os in
8680 aix3*)
8681   # AIX sometimes has problems with the GCC collect2 program.  For some
8682   # reason, if we set the COLLECT_NAMES environment variable, the problems
8683   # vanish in a puff of smoke.
8684   if test set != "${COLLECT_NAMES+set}"; then
8685     COLLECT_NAMES=
8686     export COLLECT_NAMES
8687   fi
8688   ;;
8689 esac
8690
8691 # Global variables:
8692 ofile=libtool
8693 can_build_shared=yes
8694
8695 # All known linkers require a '.a' archive for static linking (except MSVC,
8696 # which needs '.lib').
8697 libext=a
8698
8699 with_gnu_ld=$lt_cv_prog_gnu_ld
8700
8701 old_CC=$CC
8702 old_CFLAGS=$CFLAGS
8703
8704 # Set sane defaults for various variables
8705 test -z "$CC" && CC=cc
8706 test -z "$LTCC" && LTCC=$CC
8707 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8708 test -z "$LD" && LD=ld
8709 test -z "$ac_objext" && ac_objext=o
8710
8711 func_cc_basename $compiler
8712 cc_basename=$func_cc_basename_result
8713
8714
8715 # Only perform the check for file, if the check method requires it
8716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8717 case $deplibs_check_method in
8718 file_magic*)
8719   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8721 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8722 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   case $MAGIC_CMD in
8726 [\\/*] |  ?:[\\/]*)
8727   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8728   ;;
8729 *)
8730   lt_save_MAGIC_CMD=$MAGIC_CMD
8731   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8732   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8733   for ac_dir in $ac_dummy; do
8734     IFS=$lt_save_ifs
8735     test -z "$ac_dir" && ac_dir=.
8736     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8737       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8738       if test -n "$file_magic_test_file"; then
8739         case $deplibs_check_method in
8740         "file_magic "*)
8741           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8742           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8743           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8744             $EGREP "$file_magic_regex" > /dev/null; then
8745             :
8746           else
8747             cat <<_LT_EOF 1>&2
8748
8749 *** Warning: the command libtool uses to detect shared libraries,
8750 *** $file_magic_cmd, produces output that libtool cannot recognize.
8751 *** The result is that libtool may fail to recognize shared libraries
8752 *** as such.  This will affect the creation of libtool libraries that
8753 *** depend on shared libraries, but programs linked with such libtool
8754 *** libraries will work regardless of this problem.  Nevertheless, you
8755 *** may want to report the problem to your system manager and/or to
8756 *** bug-libtool@gnu.org
8757
8758 _LT_EOF
8759           fi ;;
8760         esac
8761       fi
8762       break
8763     fi
8764   done
8765   IFS=$lt_save_ifs
8766   MAGIC_CMD=$lt_save_MAGIC_CMD
8767   ;;
8768 esac
8769 fi
8770
8771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8772 if test -n "$MAGIC_CMD"; then
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8774 $as_echo "$MAGIC_CMD" >&6; }
8775 else
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 fi
8779
8780
8781
8782
8783
8784 if test -z "$lt_cv_path_MAGIC_CMD"; then
8785   if test -n "$ac_tool_prefix"; then
8786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8787 $as_echo_n "checking for file... " >&6; }
8788 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8789   $as_echo_n "(cached) " >&6
8790 else
8791   case $MAGIC_CMD in
8792 [\\/*] |  ?:[\\/]*)
8793   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8794   ;;
8795 *)
8796   lt_save_MAGIC_CMD=$MAGIC_CMD
8797   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8798   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8799   for ac_dir in $ac_dummy; do
8800     IFS=$lt_save_ifs
8801     test -z "$ac_dir" && ac_dir=.
8802     if test -f "$ac_dir/file"; then
8803       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8804       if test -n "$file_magic_test_file"; then
8805         case $deplibs_check_method in
8806         "file_magic "*)
8807           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8808           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8809           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8810             $EGREP "$file_magic_regex" > /dev/null; then
8811             :
8812           else
8813             cat <<_LT_EOF 1>&2
8814
8815 *** Warning: the command libtool uses to detect shared libraries,
8816 *** $file_magic_cmd, produces output that libtool cannot recognize.
8817 *** The result is that libtool may fail to recognize shared libraries
8818 *** as such.  This will affect the creation of libtool libraries that
8819 *** depend on shared libraries, but programs linked with such libtool
8820 *** libraries will work regardless of this problem.  Nevertheless, you
8821 *** may want to report the problem to your system manager and/or to
8822 *** bug-libtool@gnu.org
8823
8824 _LT_EOF
8825           fi ;;
8826         esac
8827       fi
8828       break
8829     fi
8830   done
8831   IFS=$lt_save_ifs
8832   MAGIC_CMD=$lt_save_MAGIC_CMD
8833   ;;
8834 esac
8835 fi
8836
8837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8838 if test -n "$MAGIC_CMD"; then
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8840 $as_echo "$MAGIC_CMD" >&6; }
8841 else
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8844 fi
8845
8846
8847   else
8848     MAGIC_CMD=:
8849   fi
8850 fi
8851
8852   fi
8853   ;;
8854 esac
8855
8856 # Use C for the default configuration in the libtool script
8857
8858 lt_save_CC=$CC
8859 ac_ext=c
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864
8865
8866 # Source file extension for C test sources.
8867 ac_ext=c
8868
8869 # Object file extension for compiled C test sources.
8870 objext=o
8871 objext=$objext
8872
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;"
8875
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}'
8878
8879
8880
8881
8882
8883
8884
8885 # If no C compiler was specified, use CC.
8886 LTCC=${LTCC-"$CC"}
8887
8888 # If no C compiler flags were specified, use CFLAGS.
8889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8890
8891 # Allow CC to be a program name with arguments.
8892 compiler=$CC
8893
8894 # Save the default compiler, since it gets overwritten when the other
8895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8896 compiler_DEFAULT=$CC
8897
8898 # save warnings/boilerplate of simple test code
8899 ac_outfile=conftest.$ac_objext
8900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902 _lt_compiler_boilerplate=`cat conftest.err`
8903 $RM conftest*
8904
8905 ac_outfile=conftest.$ac_objext
8906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8908 _lt_linker_boilerplate=`cat conftest.err`
8909 $RM -r conftest*
8910
8911
8912 ## CAVEAT EMPTOR:
8913 ## There is no encapsulation within the following macros, do not change
8914 ## the running order or otherwise move them around unless you know exactly
8915 ## what you are doing...
8916 if test -n "$compiler"; then
8917
8918 lt_prog_compiler_no_builtin_flag=
8919
8920 if test yes = "$GCC"; then
8921   case $cc_basename in
8922   nvcc*)
8923     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8924   *)
8925     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8926   esac
8927
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8929 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8930 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   lt_cv_prog_compiler_rtti_exceptions=no
8934    ac_outfile=conftest.$ac_objext
8935    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8937    # Insert the option either (1) after the last *FLAGS variable, or
8938    # (2) before a word containing "conftest.", or (3) at the end.
8939    # Note that $ac_compile itself does not contain backslashes and begins
8940    # with a dollar sign (not a hyphen), so the echo should work correctly.
8941    # The option is referenced via a variable to avoid confusing sed.
8942    lt_compile=`echo "$ac_compile" | $SED \
8943    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945    -e 's:$: $lt_compiler_flag:'`
8946    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947    (eval "$lt_compile" 2>conftest.err)
8948    ac_status=$?
8949    cat conftest.err >&5
8950    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951    if (exit $ac_status) && test -s "$ac_outfile"; then
8952      # The compiler can only warn and ignore the option if not recognized
8953      # So say no if there are warnings other than the usual output.
8954      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8955      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8956      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8957        lt_cv_prog_compiler_rtti_exceptions=yes
8958      fi
8959    fi
8960    $RM conftest*
8961
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8964 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8965
8966 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8967     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8968 else
8969     :
8970 fi
8971
8972 fi
8973
8974
8975
8976
8977
8978
8979   lt_prog_compiler_wl=
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_static=
8982
8983
8984   if test yes = "$GCC"; then
8985     lt_prog_compiler_wl='-Wl,'
8986     lt_prog_compiler_static='-static'
8987
8988     case $host_os in
8989       aix*)
8990       # All AIX code is PIC.
8991       if test ia64 = "$host_cpu"; then
8992         # AIX 5 now supports IA64 processor
8993         lt_prog_compiler_static='-Bstatic'
8994       fi
8995       lt_prog_compiler_pic='-fPIC'
8996       ;;
8997
8998     amigaos*)
8999       case $host_cpu in
9000       powerpc)
9001             # see comment about AmigaOS4 .so support
9002             lt_prog_compiler_pic='-fPIC'
9003         ;;
9004       m68k)
9005             # FIXME: we need at least 68020 code to build shared libraries, but
9006             # adding the '-m68020' flag to GCC prevents building anything better,
9007             # like '-m68040'.
9008             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9009         ;;
9010       esac
9011       ;;
9012
9013     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9014       # PIC is the default for these OSes.
9015       ;;
9016
9017     mingw* | cygwin* | pw32* | os2* | cegcc*)
9018       # This hack is so that the source file can tell whether it is being
9019       # built for inclusion in a dll (and should export symbols for example).
9020       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9021       # (--disable-auto-import) libraries
9022       lt_prog_compiler_pic='-DDLL_EXPORT'
9023       case $host_os in
9024       os2*)
9025         lt_prog_compiler_static='$wl-static'
9026         ;;
9027       esac
9028       ;;
9029
9030     darwin* | rhapsody*)
9031       # PIC is the default on this platform
9032       # Common symbols not allowed in MH_DYLIB files
9033       lt_prog_compiler_pic='-fno-common'
9034       ;;
9035
9036     haiku*)
9037       # PIC is the default for Haiku.
9038       # The "-static" flag exists, but is broken.
9039       lt_prog_compiler_static=
9040       ;;
9041
9042     hpux*)
9043       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9044       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9045       # sets the default TLS model and affects inlining.
9046       case $host_cpu in
9047       hppa*64*)
9048         # +Z the default
9049         ;;
9050       *)
9051         lt_prog_compiler_pic='-fPIC'
9052         ;;
9053       esac
9054       ;;
9055
9056     interix[3-9]*)
9057       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9058       # Instead, we relocate shared libraries at runtime.
9059       ;;
9060
9061     msdosdjgpp*)
9062       # Just because we use GCC doesn't mean we suddenly get shared libraries
9063       # on systems that don't support them.
9064       lt_prog_compiler_can_build_shared=no
9065       enable_shared=no
9066       ;;
9067
9068     *nto* | *qnx*)
9069       # QNX uses GNU C++, but need to define -shared option too, otherwise
9070       # it will coredump.
9071       lt_prog_compiler_pic='-fPIC -shared'
9072       ;;
9073
9074     sysv4*MP*)
9075       if test -d /usr/nec; then
9076         lt_prog_compiler_pic=-Kconform_pic
9077       fi
9078       ;;
9079
9080     *)
9081       lt_prog_compiler_pic='-fPIC'
9082       ;;
9083     esac
9084
9085     case $cc_basename in
9086     nvcc*) # Cuda Compiler Driver 2.2
9087       lt_prog_compiler_wl='-Xlinker '
9088       if test -n "$lt_prog_compiler_pic"; then
9089         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9090       fi
9091       ;;
9092     esac
9093   else
9094     # PORTME Check for flag to pass linker flags through the system compiler.
9095     case $host_os in
9096     aix*)
9097       lt_prog_compiler_wl='-Wl,'
9098       if test ia64 = "$host_cpu"; then
9099         # AIX 5 now supports IA64 processor
9100         lt_prog_compiler_static='-Bstatic'
9101       else
9102         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9103       fi
9104       ;;
9105
9106     darwin* | rhapsody*)
9107       # PIC is the default on this platform
9108       # Common symbols not allowed in MH_DYLIB files
9109       lt_prog_compiler_pic='-fno-common'
9110       case $cc_basename in
9111       nagfor*)
9112         # NAG Fortran compiler
9113         lt_prog_compiler_wl='-Wl,-Wl,,'
9114         lt_prog_compiler_pic='-PIC'
9115         lt_prog_compiler_static='-Bstatic'
9116         ;;
9117       esac
9118       ;;
9119
9120     mingw* | cygwin* | pw32* | os2* | cegcc*)
9121       # This hack is so that the source file can tell whether it is being
9122       # built for inclusion in a dll (and should export symbols for example).
9123       lt_prog_compiler_pic='-DDLL_EXPORT'
9124       case $host_os in
9125       os2*)
9126         lt_prog_compiler_static='$wl-static'
9127         ;;
9128       esac
9129       ;;
9130
9131     hpux9* | hpux10* | hpux11*)
9132       lt_prog_compiler_wl='-Wl,'
9133       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9134       # not for PA HP-UX.
9135       case $host_cpu in
9136       hppa*64*|ia64*)
9137         # +Z the default
9138         ;;
9139       *)
9140         lt_prog_compiler_pic='+Z'
9141         ;;
9142       esac
9143       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144       lt_prog_compiler_static='$wl-a ${wl}archive'
9145       ;;
9146
9147     irix5* | irix6* | nonstopux*)
9148       lt_prog_compiler_wl='-Wl,'
9149       # PIC (with -KPIC) is the default.
9150       lt_prog_compiler_static='-non_shared'
9151       ;;
9152
9153     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9154       case $cc_basename in
9155       # old Intel for x86_64, which still supported -KPIC.
9156       ecc*)
9157         lt_prog_compiler_wl='-Wl,'
9158         lt_prog_compiler_pic='-KPIC'
9159         lt_prog_compiler_static='-static'
9160         ;;
9161       # icc used to be incompatible with GCC.
9162       # ICC 10 doesn't accept -KPIC any more.
9163       icc* | ifort*)
9164         lt_prog_compiler_wl='-Wl,'
9165         lt_prog_compiler_pic='-fPIC'
9166         lt_prog_compiler_static='-static'
9167         ;;
9168       # Lahey Fortran 8.1.
9169       lf95*)
9170         lt_prog_compiler_wl='-Wl,'
9171         lt_prog_compiler_pic='--shared'
9172         lt_prog_compiler_static='--static'
9173         ;;
9174       nagfor*)
9175         # NAG Fortran compiler
9176         lt_prog_compiler_wl='-Wl,-Wl,,'
9177         lt_prog_compiler_pic='-PIC'
9178         lt_prog_compiler_static='-Bstatic'
9179         ;;
9180       tcc*)
9181         # Fabrice Bellard et al's Tiny C Compiler
9182         lt_prog_compiler_wl='-Wl,'
9183         lt_prog_compiler_pic='-fPIC'
9184         lt_prog_compiler_static='-static'
9185         ;;
9186       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9187         # Portland Group compilers (*not* the Pentium gcc compiler,
9188         # which looks to be a dead project)
9189         lt_prog_compiler_wl='-Wl,'
9190         lt_prog_compiler_pic='-fpic'
9191         lt_prog_compiler_static='-Bstatic'
9192         ;;
9193       ccc*)
9194         lt_prog_compiler_wl='-Wl,'
9195         # All Alpha code is PIC.
9196         lt_prog_compiler_static='-non_shared'
9197         ;;
9198       xl* | bgxl* | bgf* | mpixl*)
9199         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9200         lt_prog_compiler_wl='-Wl,'
9201         lt_prog_compiler_pic='-qpic'
9202         lt_prog_compiler_static='-qstaticlink'
9203         ;;
9204       *)
9205         case `$CC -V 2>&1 | sed 5q` in
9206         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9207           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9208           lt_prog_compiler_pic='-KPIC'
9209           lt_prog_compiler_static='-Bstatic'
9210           lt_prog_compiler_wl=''
9211           ;;
9212         *Sun\ F* | *Sun*Fortran*)
9213           lt_prog_compiler_pic='-KPIC'
9214           lt_prog_compiler_static='-Bstatic'
9215           lt_prog_compiler_wl='-Qoption ld '
9216           ;;
9217         *Sun\ C*)
9218           # Sun C 5.9
9219           lt_prog_compiler_pic='-KPIC'
9220           lt_prog_compiler_static='-Bstatic'
9221           lt_prog_compiler_wl='-Wl,'
9222           ;;
9223         *Intel*\ [CF]*Compiler*)
9224           lt_prog_compiler_wl='-Wl,'
9225           lt_prog_compiler_pic='-fPIC'
9226           lt_prog_compiler_static='-static'
9227           ;;
9228         *Portland\ Group*)
9229           lt_prog_compiler_wl='-Wl,'
9230           lt_prog_compiler_pic='-fpic'
9231           lt_prog_compiler_static='-Bstatic'
9232           ;;
9233         esac
9234         ;;
9235       esac
9236       ;;
9237
9238     newsos6)
9239       lt_prog_compiler_pic='-KPIC'
9240       lt_prog_compiler_static='-Bstatic'
9241       ;;
9242
9243     *nto* | *qnx*)
9244       # QNX uses GNU C++, but need to define -shared option too, otherwise
9245       # it will coredump.
9246       lt_prog_compiler_pic='-fPIC -shared'
9247       ;;
9248
9249     osf3* | osf4* | osf5*)
9250       lt_prog_compiler_wl='-Wl,'
9251       # All OSF/1 code is PIC.
9252       lt_prog_compiler_static='-non_shared'
9253       ;;
9254
9255     rdos*)
9256       lt_prog_compiler_static='-non_shared'
9257       ;;
9258
9259     solaris*)
9260       lt_prog_compiler_pic='-KPIC'
9261       lt_prog_compiler_static='-Bstatic'
9262       case $cc_basename in
9263       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9264         lt_prog_compiler_wl='-Qoption ld ';;
9265       *)
9266         lt_prog_compiler_wl='-Wl,';;
9267       esac
9268       ;;
9269
9270     sunos4*)
9271       lt_prog_compiler_wl='-Qoption ld '
9272       lt_prog_compiler_pic='-PIC'
9273       lt_prog_compiler_static='-Bstatic'
9274       ;;
9275
9276     sysv4 | sysv4.2uw2* | sysv4.3*)
9277       lt_prog_compiler_wl='-Wl,'
9278       lt_prog_compiler_pic='-KPIC'
9279       lt_prog_compiler_static='-Bstatic'
9280       ;;
9281
9282     sysv4*MP*)
9283       if test -d /usr/nec; then
9284         lt_prog_compiler_pic='-Kconform_pic'
9285         lt_prog_compiler_static='-Bstatic'
9286       fi
9287       ;;
9288
9289     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9290       lt_prog_compiler_wl='-Wl,'
9291       lt_prog_compiler_pic='-KPIC'
9292       lt_prog_compiler_static='-Bstatic'
9293       ;;
9294
9295     unicos*)
9296       lt_prog_compiler_wl='-Wl,'
9297       lt_prog_compiler_can_build_shared=no
9298       ;;
9299
9300     uts4*)
9301       lt_prog_compiler_pic='-pic'
9302       lt_prog_compiler_static='-Bstatic'
9303       ;;
9304
9305     *)
9306       lt_prog_compiler_can_build_shared=no
9307       ;;
9308     esac
9309   fi
9310
9311 case $host_os in
9312   # For platforms that do not support PIC, -DPIC is meaningless:
9313   *djgpp*)
9314     lt_prog_compiler_pic=
9315     ;;
9316   *)
9317     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9318     ;;
9319 esac
9320
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9323 if ${lt_cv_prog_compiler_pic+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9329 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9330 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9331
9332 #
9333 # Check to make sure the PIC flag actually works.
9334 #
9335 if test -n "$lt_prog_compiler_pic"; then
9336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9337 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9338 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9339   $as_echo_n "(cached) " >&6
9340 else
9341   lt_cv_prog_compiler_pic_works=no
9342    ac_outfile=conftest.$ac_objext
9343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9344    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9345    # Insert the option either (1) after the last *FLAGS variable, or
9346    # (2) before a word containing "conftest.", or (3) at the end.
9347    # Note that $ac_compile itself does not contain backslashes and begins
9348    # with a dollar sign (not a hyphen), so the echo should work correctly.
9349    # The option is referenced via a variable to avoid confusing sed.
9350    lt_compile=`echo "$ac_compile" | $SED \
9351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9353    -e 's:$: $lt_compiler_flag:'`
9354    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9355    (eval "$lt_compile" 2>conftest.err)
9356    ac_status=$?
9357    cat conftest.err >&5
9358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359    if (exit $ac_status) && test -s "$ac_outfile"; then
9360      # The compiler can only warn and ignore the option if not recognized
9361      # So say no if there are warnings other than the usual output.
9362      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9363      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9364      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9365        lt_cv_prog_compiler_pic_works=yes
9366      fi
9367    fi
9368    $RM conftest*
9369
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9372 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9373
9374 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9375     case $lt_prog_compiler_pic in
9376      "" | " "*) ;;
9377      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9378      esac
9379 else
9380     lt_prog_compiler_pic=
9381      lt_prog_compiler_can_build_shared=no
9382 fi
9383
9384 fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396 #
9397 # Check to make sure the static flag actually works.
9398 #
9399 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9401 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9402 if ${lt_cv_prog_compiler_static_works+:} false; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   lt_cv_prog_compiler_static_works=no
9406    save_LDFLAGS=$LDFLAGS
9407    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9408    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9409    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9410      # The linker can only warn and ignore the option if not recognized
9411      # So say no if there are warnings
9412      if test -s conftest.err; then
9413        # Append any errors to the config.log.
9414        cat conftest.err 1>&5
9415        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9416        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417        if diff conftest.exp conftest.er2 >/dev/null; then
9418          lt_cv_prog_compiler_static_works=yes
9419        fi
9420      else
9421        lt_cv_prog_compiler_static_works=yes
9422      fi
9423    fi
9424    $RM -r conftest*
9425    LDFLAGS=$save_LDFLAGS
9426
9427 fi
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9429 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9430
9431 if test yes = "$lt_cv_prog_compiler_static_works"; then
9432     :
9433 else
9434     lt_prog_compiler_static=
9435 fi
9436
9437
9438
9439
9440
9441
9442
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9444 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9445 if ${lt_cv_prog_compiler_c_o+:} false; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   lt_cv_prog_compiler_c_o=no
9449    $RM -r conftest 2>/dev/null
9450    mkdir conftest
9451    cd conftest
9452    mkdir out
9453    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9454
9455    lt_compiler_flag="-o out/conftest2.$ac_objext"
9456    # Insert the option either (1) after the last *FLAGS variable, or
9457    # (2) before a word containing "conftest.", or (3) at the end.
9458    # Note that $ac_compile itself does not contain backslashes and begins
9459    # with a dollar sign (not a hyphen), so the echo should work correctly.
9460    lt_compile=`echo "$ac_compile" | $SED \
9461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9463    -e 's:$: $lt_compiler_flag:'`
9464    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9465    (eval "$lt_compile" 2>out/conftest.err)
9466    ac_status=$?
9467    cat out/conftest.err >&5
9468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9470    then
9471      # The compiler can only warn and ignore the option if not recognized
9472      # So say no if there are warnings
9473      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9474      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9475      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9476        lt_cv_prog_compiler_c_o=yes
9477      fi
9478    fi
9479    chmod u+w . 2>&5
9480    $RM conftest*
9481    # SGI C++ compiler will create directory out/ii_files/ for
9482    # template instantiation
9483    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9484    $RM out/* && rmdir out
9485    cd ..
9486    $RM -r conftest
9487    $RM conftest*
9488
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9492
9493
9494
9495
9496
9497
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9499 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9500 if ${lt_cv_prog_compiler_c_o+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   lt_cv_prog_compiler_c_o=no
9504    $RM -r conftest 2>/dev/null
9505    mkdir conftest
9506    cd conftest
9507    mkdir out
9508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9509
9510    lt_compiler_flag="-o out/conftest2.$ac_objext"
9511    # Insert the option either (1) after the last *FLAGS variable, or
9512    # (2) before a word containing "conftest.", or (3) at the end.
9513    # Note that $ac_compile itself does not contain backslashes and begins
9514    # with a dollar sign (not a hyphen), so the echo should work correctly.
9515    lt_compile=`echo "$ac_compile" | $SED \
9516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9518    -e 's:$: $lt_compiler_flag:'`
9519    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9520    (eval "$lt_compile" 2>out/conftest.err)
9521    ac_status=$?
9522    cat out/conftest.err >&5
9523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9525    then
9526      # The compiler can only warn and ignore the option if not recognized
9527      # So say no if there are warnings
9528      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9529      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9530      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9531        lt_cv_prog_compiler_c_o=yes
9532      fi
9533    fi
9534    chmod u+w . 2>&5
9535    $RM conftest*
9536    # SGI C++ compiler will create directory out/ii_files/ for
9537    # template instantiation
9538    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9539    $RM out/* && rmdir out
9540    cd ..
9541    $RM -r conftest
9542    $RM conftest*
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9546 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9547
9548
9549
9550
9551 hard_links=nottested
9552 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9553   # do not overwrite the value of need_locks provided by the user
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9555 $as_echo_n "checking if we can lock with hard links... " >&6; }
9556   hard_links=yes
9557   $RM conftest*
9558   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9559   touch conftest.a
9560   ln conftest.a conftest.b 2>&5 || hard_links=no
9561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9563 $as_echo "$hard_links" >&6; }
9564   if test no = "$hard_links"; then
9565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9566 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9567     need_locks=warn
9568   fi
9569 else
9570   need_locks=no
9571 fi
9572
9573
9574
9575
9576
9577
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9579 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9580
9581   runpath_var=
9582   allow_undefined_flag=
9583   always_export_symbols=no
9584   archive_cmds=
9585   archive_expsym_cmds=
9586   compiler_needs_object=no
9587   enable_shared_with_static_runtimes=no
9588   export_dynamic_flag_spec=
9589   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9590   hardcode_automatic=no
9591   hardcode_direct=no
9592   hardcode_direct_absolute=no
9593   hardcode_libdir_flag_spec=
9594   hardcode_libdir_separator=
9595   hardcode_minus_L=no
9596   hardcode_shlibpath_var=unsupported
9597   inherit_rpath=no
9598   link_all_deplibs=unknown
9599   module_cmds=
9600   module_expsym_cmds=
9601   old_archive_from_new_cmds=
9602   old_archive_from_expsyms_cmds=
9603   thread_safe_flag_spec=
9604   whole_archive_flag_spec=
9605   # include_expsyms should be a list of space-separated symbols to be *always*
9606   # included in the symbol list
9607   include_expsyms=
9608   # exclude_expsyms can be an extended regexp of symbols to exclude
9609   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9610   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9611   # as well as any symbol that contains 'd'.
9612   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9613   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9614   # platforms (ab)use it in PIC code, but their linkers get confused if
9615   # the symbol is explicitly referenced.  Since portable code cannot
9616   # rely on this symbol name, it's probably fine to never include it in
9617   # preloaded symbol tables.
9618   # Exclude shared library initialization/finalization symbols.
9619   extract_expsyms_cmds=
9620
9621   case $host_os in
9622   cygwin* | mingw* | pw32* | cegcc*)
9623     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9624     # When not using gcc, we currently assume that we are using
9625     # Microsoft Visual C++.
9626     if test yes != "$GCC"; then
9627       with_gnu_ld=no
9628     fi
9629     ;;
9630   interix*)
9631     # we just hope/assume this is gcc and not c89 (= MSVC++)
9632     with_gnu_ld=yes
9633     ;;
9634   openbsd* | bitrig*)
9635     with_gnu_ld=no
9636     ;;
9637   linux* | k*bsd*-gnu | gnu*)
9638     link_all_deplibs=no
9639     ;;
9640   esac
9641
9642   ld_shlibs=yes
9643
9644   # On some targets, GNU ld is compatible enough with the native linker
9645   # that we're better off using the native interface for both.
9646   lt_use_gnu_ld_interface=no
9647   if test yes = "$with_gnu_ld"; then
9648     case $host_os in
9649       aix*)
9650         # The AIX port of GNU ld has always aspired to compatibility
9651         # with the native linker.  However, as the warning in the GNU ld
9652         # block says, versions before 2.19.5* couldn't really create working
9653         # shared libraries, regardless of the interface used.
9654         case `$LD -v 2>&1` in
9655           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9656           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9657           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9658           *)
9659             lt_use_gnu_ld_interface=yes
9660             ;;
9661         esac
9662         ;;
9663       *)
9664         lt_use_gnu_ld_interface=yes
9665         ;;
9666     esac
9667   fi
9668
9669   if test yes = "$lt_use_gnu_ld_interface"; then
9670     # If archive_cmds runs LD, not CC, wlarc should be empty
9671     wlarc='$wl'
9672
9673     # Set some defaults for GNU ld with shared library support. These
9674     # are reset later if shared libraries are not supported. Putting them
9675     # here allows them to be overridden if necessary.
9676     runpath_var=LD_RUN_PATH
9677     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9678     export_dynamic_flag_spec='$wl--export-dynamic'
9679     # ancient GNU ld didn't support --whole-archive et. al.
9680     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9681       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9682     else
9683       whole_archive_flag_spec=
9684     fi
9685     supports_anon_versioning=no
9686     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9687       *GNU\ gold*) supports_anon_versioning=yes ;;
9688       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9689       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9690       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9691       *\ 2.11.*) ;; # other 2.11 versions
9692       *) supports_anon_versioning=yes ;;
9693     esac
9694
9695     # See if GNU ld supports shared libraries.
9696     case $host_os in
9697     aix[3-9]*)
9698       # On AIX/PPC, the GNU linker is very broken
9699       if test ia64 != "$host_cpu"; then
9700         ld_shlibs=no
9701         cat <<_LT_EOF 1>&2
9702
9703 *** Warning: the GNU linker, at least up to release 2.19, is reported
9704 *** to be unable to reliably create shared libraries on AIX.
9705 *** Therefore, libtool is disabling shared libraries support.  If you
9706 *** really care for shared libraries, you may want to install binutils
9707 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9708 *** You will then need to restart the configuration process.
9709
9710 _LT_EOF
9711       fi
9712       ;;
9713
9714     amigaos*)
9715       case $host_cpu in
9716       powerpc)
9717             # see comment about AmigaOS4 .so support
9718             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9719             archive_expsym_cmds=''
9720         ;;
9721       m68k)
9722             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)'
9723             hardcode_libdir_flag_spec='-L$libdir'
9724             hardcode_minus_L=yes
9725         ;;
9726       esac
9727       ;;
9728
9729     beos*)
9730       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731         allow_undefined_flag=unsupported
9732         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9733         # support --undefined.  This deserves some investigation.  FIXME
9734         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735       else
9736         ld_shlibs=no
9737       fi
9738       ;;
9739
9740     cygwin* | mingw* | pw32* | cegcc*)
9741       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9742       # as there is no search path for DLLs.
9743       hardcode_libdir_flag_spec='-L$libdir'
9744       export_dynamic_flag_spec='$wl--export-all-symbols'
9745       allow_undefined_flag=unsupported
9746       always_export_symbols=no
9747       enable_shared_with_static_runtimes=yes
9748       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'
9749       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9750
9751       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9753         # If the export-symbols file already is a .def file, use it as
9754         # is; otherwise, prepend EXPORTS...
9755         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9756           cp $export_symbols $output_objdir/$soname.def;
9757         else
9758           echo EXPORTS > $output_objdir/$soname.def;
9759           cat $export_symbols >> $output_objdir/$soname.def;
9760         fi~
9761         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9762       else
9763         ld_shlibs=no
9764       fi
9765       ;;
9766
9767     haiku*)
9768       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769       link_all_deplibs=yes
9770       ;;
9771
9772     os2*)
9773       hardcode_libdir_flag_spec='-L$libdir'
9774       hardcode_minus_L=yes
9775       allow_undefined_flag=unsupported
9776       shrext_cmds=.dll
9777       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9778         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9779         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9780         $ECHO EXPORTS >> $output_objdir/$libname.def~
9781         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9782         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9783         emximp -o $lib $output_objdir/$libname.def'
9784       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9785         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9786         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9787         $ECHO EXPORTS >> $output_objdir/$libname.def~
9788         prefix_cmds="$SED"~
9789         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9790           prefix_cmds="$prefix_cmds -e 1d";
9791         fi~
9792         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9793         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9794         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9795         emximp -o $lib $output_objdir/$libname.def'
9796       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9797       enable_shared_with_static_runtimes=yes
9798       ;;
9799
9800     interix[3-9]*)
9801       hardcode_direct=no
9802       hardcode_shlibpath_var=no
9803       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9804       export_dynamic_flag_spec='$wl-E'
9805       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9806       # Instead, shared libraries are loaded at an image base (0x10000000 by
9807       # default) and relocated if they conflict, which is a slow very memory
9808       # consuming and fragmenting process.  To avoid this, we pick a random,
9809       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9810       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9811       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9812       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'
9813       ;;
9814
9815     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9816       tmp_diet=no
9817       if test linux-dietlibc = "$host_os"; then
9818         case $cc_basename in
9819           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9820         esac
9821       fi
9822       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9823          && test no = "$tmp_diet"
9824       then
9825         tmp_addflag=' $pic_flag'
9826         tmp_sharedflag='-shared'
9827         case $cc_basename,$host_cpu in
9828         pgcc*)                          # Portland Group C compiler
9829           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'
9830           tmp_addflag=' $pic_flag'
9831           ;;
9832         pgf77* | pgf90* | pgf95* | pgfortran*)
9833                                         # Portland Group f77 and f90 compilers
9834           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'
9835           tmp_addflag=' $pic_flag -Mnomain' ;;
9836         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9837           tmp_addflag=' -i_dynamic' ;;
9838         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9839           tmp_addflag=' -i_dynamic -nofor_main' ;;
9840         ifc* | ifort*)                  # Intel Fortran compiler
9841           tmp_addflag=' -nofor_main' ;;
9842         lf95*)                          # Lahey Fortran 8.1
9843           whole_archive_flag_spec=
9844           tmp_sharedflag='--shared' ;;
9845         nagfor*)                        # NAGFOR 5.3
9846           tmp_sharedflag='-Wl,-shared' ;;
9847         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9848           tmp_sharedflag='-qmkshrobj'
9849           tmp_addflag= ;;
9850         nvcc*)  # Cuda Compiler Driver 2.2
9851           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'
9852           compiler_needs_object=yes
9853           ;;
9854         esac
9855         case `$CC -V 2>&1 | sed 5q` in
9856         *Sun\ C*)                       # Sun C 5.9
9857           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'
9858           compiler_needs_object=yes
9859           tmp_sharedflag='-G' ;;
9860         *Sun\ F*)                       # Sun Fortran 8.3
9861           tmp_sharedflag='-G' ;;
9862         esac
9863         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9864
9865         if test yes = "$supports_anon_versioning"; then
9866           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9867             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9868             echo "local: *; };" >> $output_objdir/$libname.ver~
9869             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9870         fi
9871
9872         case $cc_basename in
9873         tcc*)
9874           export_dynamic_flag_spec='-rdynamic'
9875           ;;
9876         xlf* | bgf* | bgxlf* | mpixlf*)
9877           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9878           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9879           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9881           if test yes = "$supports_anon_versioning"; then
9882             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9883               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9884               echo "local: *; };" >> $output_objdir/$libname.ver~
9885               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9886           fi
9887           ;;
9888         esac
9889       else
9890         ld_shlibs=no
9891       fi
9892       ;;
9893
9894     netbsd* | netbsdelf*-gnu)
9895       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9897         wlarc=
9898       else
9899         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9900         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9901       fi
9902       ;;
9903
9904     solaris*)
9905       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9906         ld_shlibs=no
9907         cat <<_LT_EOF 1>&2
9908
9909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9910 *** create shared libraries on Solaris systems.  Therefore, libtool
9911 *** is disabling shared libraries support.  We urge you to upgrade GNU
9912 *** binutils to release 2.9.1 or newer.  Another option is to modify
9913 *** your PATH or compiler configuration so that the native linker is
9914 *** used, and then restart.
9915
9916 _LT_EOF
9917       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920       else
9921         ld_shlibs=no
9922       fi
9923       ;;
9924
9925     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9926       case `$LD -v 2>&1` in
9927         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9928         ld_shlibs=no
9929         cat <<_LT_EOF 1>&2
9930
9931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9932 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9933 *** is disabling shared libraries support.  We urge you to upgrade GNU
9934 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9935 *** your PATH or compiler configuration so that the native linker is
9936 *** used, and then restart.
9937
9938 _LT_EOF
9939         ;;
9940         *)
9941           # For security reasons, it is highly recommended that you always
9942           # use absolute paths for naming shared libraries, and exclude the
9943           # DT_RUNPATH tag from executables and libraries.  But doing so
9944           # requires that you compile everything twice, which is a pain.
9945           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9946             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9948             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9949           else
9950             ld_shlibs=no
9951           fi
9952         ;;
9953       esac
9954       ;;
9955
9956     sunos4*)
9957       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958       wlarc=
9959       hardcode_direct=yes
9960       hardcode_shlibpath_var=no
9961       ;;
9962
9963     *)
9964       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9965         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9966         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9967       else
9968         ld_shlibs=no
9969       fi
9970       ;;
9971     esac
9972
9973     if test no = "$ld_shlibs"; then
9974       runpath_var=
9975       hardcode_libdir_flag_spec=
9976       export_dynamic_flag_spec=
9977       whole_archive_flag_spec=
9978     fi
9979   else
9980     # PORTME fill in a description of your system's linker (not GNU ld)
9981     case $host_os in
9982     aix3*)
9983       allow_undefined_flag=unsupported
9984       always_export_symbols=yes
9985       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'
9986       # Note: this linker hardcodes the directories in LIBPATH if there
9987       # are no directories specified by -L.
9988       hardcode_minus_L=yes
9989       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9990         # Neither direct hardcoding nor static linking is supported with a
9991         # broken collect2.
9992         hardcode_direct=unsupported
9993       fi
9994       ;;
9995
9996     aix[4-9]*)
9997       if test ia64 = "$host_cpu"; then
9998         # On IA64, the linker does run time linking by default, so we don't
9999         # have to do anything special.
10000         aix_use_runtimelinking=no
10001         exp_sym_flag='-Bexport'
10002         no_entry_flag=
10003       else
10004         # If we're using GNU nm, then we don't want the "-C" option.
10005         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10006         # Without the "-l" option, or with the "-B" option, AIX nm treats
10007         # weak defined symbols like other global defined symbols, whereas
10008         # GNU nm marks them as "W".
10009         # While the 'weak' keyword is ignored in the Export File, we need
10010         # it in the Import File for the 'aix-soname' feature, so we have
10011         # to replace the "-B" option with "-P" for AIX nm.
10012         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10013           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10014         else
10015           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10016         fi
10017         aix_use_runtimelinking=no
10018
10019         # Test if we are trying to use run time linking or normal
10020         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021         # have runtime linking enabled, and use it for executables.
10022         # For shared libraries, we enable/disable runtime linking
10023         # depending on the kind of the shared library created -
10024         # when "with_aix_soname,aix_use_runtimelinking" is:
10025         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10026         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10027         #            lib.a           static archive
10028         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10029         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10030         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10031         #            lib.a(lib.so.V) shared, rtl:no
10032         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10033         #            lib.a           static archive
10034         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10035           for ld_flag in $LDFLAGS; do
10036           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10037             aix_use_runtimelinking=yes
10038             break
10039           fi
10040           done
10041           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10042             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10043             # so we don't have lib.a shared libs to link our executables.
10044             # We have to force runtime linking in this case.
10045             aix_use_runtimelinking=yes
10046             LDFLAGS="$LDFLAGS -Wl,-brtl"
10047           fi
10048           ;;
10049         esac
10050
10051         exp_sym_flag='-bexport'
10052         no_entry_flag='-bnoentry'
10053       fi
10054
10055       # When large executables or shared objects are built, AIX ld can
10056       # have problems creating the table of contents.  If linking a library
10057       # or program results in "error TOC overflow" add -mminimal-toc to
10058       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10059       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10060
10061       archive_cmds=''
10062       hardcode_direct=yes
10063       hardcode_direct_absolute=yes
10064       hardcode_libdir_separator=':'
10065       link_all_deplibs=yes
10066       file_list_spec='$wl-f,'
10067       case $with_aix_soname,$aix_use_runtimelinking in
10068       aix,*) ;; # traditional, no import file
10069       svr4,* | *,yes) # use import file
10070         # The Import File defines what to hardcode.
10071         hardcode_direct=no
10072         hardcode_direct_absolute=no
10073         ;;
10074       esac
10075
10076       if test yes = "$GCC"; then
10077         case $host_os in aix4.[012]|aix4.[012].*)
10078         # We only want to do this on AIX 4.2 and lower, the check
10079         # below for broken collect2 doesn't work under 4.3+
10080           collect2name=`$CC -print-prog-name=collect2`
10081           if test -f "$collect2name" &&
10082            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10083           then
10084           # We have reworked collect2
10085           :
10086           else
10087           # We have old collect2
10088           hardcode_direct=unsupported
10089           # It fails to find uninstalled libraries when the uninstalled
10090           # path is not listed in the libpath.  Setting hardcode_minus_L
10091           # to unsupported forces relinking
10092           hardcode_minus_L=yes
10093           hardcode_libdir_flag_spec='-L$libdir'
10094           hardcode_libdir_separator=
10095           fi
10096           ;;
10097         esac
10098         shared_flag='-shared'
10099         if test yes = "$aix_use_runtimelinking"; then
10100           shared_flag="$shared_flag "'$wl-G'
10101         fi
10102         # Need to ensure runtime linking is disabled for the traditional
10103         # shared library, or the linker may eventually find shared libraries
10104         # /with/ Import File - we do not want to mix them.
10105         shared_flag_aix='-shared'
10106         shared_flag_svr4='-shared $wl-G'
10107       else
10108         # not using gcc
10109         if test ia64 = "$host_cpu"; then
10110         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10111         # chokes on -Wl,-G. The following line is correct:
10112           shared_flag='-G'
10113         else
10114           if test yes = "$aix_use_runtimelinking"; then
10115             shared_flag='$wl-G'
10116           else
10117             shared_flag='$wl-bM:SRE'
10118           fi
10119           shared_flag_aix='$wl-bM:SRE'
10120           shared_flag_svr4='$wl-G'
10121         fi
10122       fi
10123
10124       export_dynamic_flag_spec='$wl-bexpall'
10125       # It seems that -bexpall does not export symbols beginning with
10126       # underscore (_), so it is better to generate a list of symbols to export.
10127       always_export_symbols=yes
10128       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10129         # Warning - without using the other runtime loading flags (-brtl),
10130         # -berok will link without error, but may produce a broken library.
10131         allow_undefined_flag='-berok'
10132         # Determine the default libpath from the value encoded in an
10133         # empty executable.
10134         if test set = "${lt_cv_aix_libpath+set}"; then
10135   aix_libpath=$lt_cv_aix_libpath
10136 else
10137   if ${lt_cv_aix_libpath_+:} false; then :
10138   $as_echo_n "(cached) " >&6
10139 else
10140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h.  */
10142
10143 int
10144 main ()
10145 {
10146
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_c_try_link "$LINENO"; then :
10152
10153   lt_aix_libpath_sed='
10154       /Import File Strings/,/^$/ {
10155           /^0/ {
10156               s/^0  *\([^ ]*\) *$/\1/
10157               p
10158           }
10159       }'
10160   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10161   # Check for a 64-bit object if we didn't find anything.
10162   if test -z "$lt_cv_aix_libpath_"; then
10163     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10164   fi
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext \
10167     conftest$ac_exeext conftest.$ac_ext
10168   if test -z "$lt_cv_aix_libpath_"; then
10169     lt_cv_aix_libpath_=/usr/lib:/lib
10170   fi
10171
10172 fi
10173
10174   aix_libpath=$lt_cv_aix_libpath_
10175 fi
10176
10177         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10178         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10179       else
10180         if test ia64 = "$host_cpu"; then
10181           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10182           allow_undefined_flag="-z nodefs"
10183           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"
10184         else
10185          # Determine the default libpath from the value encoded in an
10186          # empty executable.
10187          if test set = "${lt_cv_aix_libpath+set}"; then
10188   aix_libpath=$lt_cv_aix_libpath
10189 else
10190   if ${lt_cv_aix_libpath_+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h.  */
10195
10196 int
10197 main ()
10198 {
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205
10206   lt_aix_libpath_sed='
10207       /Import File Strings/,/^$/ {
10208           /^0/ {
10209               s/^0  *\([^ ]*\) *$/\1/
10210               p
10211           }
10212       }'
10213   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10214   # Check for a 64-bit object if we didn't find anything.
10215   if test -z "$lt_cv_aix_libpath_"; then
10216     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217   fi
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext \
10220     conftest$ac_exeext conftest.$ac_ext
10221   if test -z "$lt_cv_aix_libpath_"; then
10222     lt_cv_aix_libpath_=/usr/lib:/lib
10223   fi
10224
10225 fi
10226
10227   aix_libpath=$lt_cv_aix_libpath_
10228 fi
10229
10230          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10231           # Warning - without using the other run time loading flags,
10232           # -berok will link without error, but may produce a broken library.
10233           no_undefined_flag=' $wl-bernotok'
10234           allow_undefined_flag=' $wl-berok'
10235           if test yes = "$with_gnu_ld"; then
10236             # We only use this code for GNU lds that support --whole-archive.
10237             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10238           else
10239             # Exported symbols can be pulled into shared objects from archives
10240             whole_archive_flag_spec='$convenience'
10241           fi
10242           archive_cmds_need_lc=yes
10243           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10244           # -brtl affects multiple linker settings, -berok does not and is overridden later
10245           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10246           if test svr4 != "$with_aix_soname"; then
10247             # This is similar to how AIX traditionally builds its shared libraries.
10248             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10249           fi
10250           if test aix != "$with_aix_soname"; then
10251             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10252           else
10253             # used by -dlpreopen to get the symbols
10254             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10255           fi
10256           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10257         fi
10258       fi
10259       ;;
10260
10261     amigaos*)
10262       case $host_cpu in
10263       powerpc)
10264             # see comment about AmigaOS4 .so support
10265             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10266             archive_expsym_cmds=''
10267         ;;
10268       m68k)
10269             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)'
10270             hardcode_libdir_flag_spec='-L$libdir'
10271             hardcode_minus_L=yes
10272         ;;
10273       esac
10274       ;;
10275
10276     bsdi[45]*)
10277       export_dynamic_flag_spec=-rdynamic
10278       ;;
10279
10280     cygwin* | mingw* | pw32* | cegcc*)
10281       # When not using gcc, we currently assume that we are using
10282       # Microsoft Visual C++.
10283       # hardcode_libdir_flag_spec is actually meaningless, as there is
10284       # no search path for DLLs.
10285       case $cc_basename in
10286       cl*)
10287         # Native MSVC
10288         hardcode_libdir_flag_spec=' '
10289         allow_undefined_flag=unsupported
10290         always_export_symbols=yes
10291         file_list_spec='@'
10292         # Tell ltmain to make .lib files, not .a files.
10293         libext=lib
10294         # Tell ltmain to make .dll files, not .so files.
10295         shrext_cmds=.dll
10296         # FIXME: Setting linknames here is a bad hack.
10297         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10298         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10299             cp "$export_symbols" "$output_objdir/$soname.def";
10300             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10301           else
10302             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10303           fi~
10304           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10305           linknames='
10306         # The linker will not automatically build a static lib if we build a DLL.
10307         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10308         enable_shared_with_static_runtimes=yes
10309         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10310         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10311         # Don't use ranlib
10312         old_postinstall_cmds='chmod 644 $oldlib'
10313         postlink_cmds='lt_outputfile="@OUTPUT@"~
10314           lt_tool_outputfile="@TOOL_OUTPUT@"~
10315           case $lt_outputfile in
10316             *.exe|*.EXE) ;;
10317             *)
10318               lt_outputfile=$lt_outputfile.exe
10319               lt_tool_outputfile=$lt_tool_outputfile.exe
10320               ;;
10321           esac~
10322           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10323             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10324             $RM "$lt_outputfile.manifest";
10325           fi'
10326         ;;
10327       *)
10328         # Assume MSVC wrapper
10329         hardcode_libdir_flag_spec=' '
10330         allow_undefined_flag=unsupported
10331         # Tell ltmain to make .lib files, not .a files.
10332         libext=lib
10333         # Tell ltmain to make .dll files, not .so files.
10334         shrext_cmds=.dll
10335         # FIXME: Setting linknames here is a bad hack.
10336         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10337         # The linker will automatically build a .lib file if we build a DLL.
10338         old_archive_from_new_cmds='true'
10339         # FIXME: Should let the user specify the lib program.
10340         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10341         enable_shared_with_static_runtimes=yes
10342         ;;
10343       esac
10344       ;;
10345
10346     darwin* | rhapsody*)
10347
10348
10349   archive_cmds_need_lc=no
10350   hardcode_direct=no
10351   hardcode_automatic=yes
10352   hardcode_shlibpath_var=unsupported
10353   if test yes = "$lt_cv_ld_force_load"; then
10354     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\"`'
10355
10356   else
10357     whole_archive_flag_spec=''
10358   fi
10359   link_all_deplibs=yes
10360   allow_undefined_flag=$_lt_dar_allow_undefined
10361   case $cc_basename in
10362      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10363      *) _lt_dar_can_shared=$GCC ;;
10364   esac
10365   if test yes = "$_lt_dar_can_shared"; then
10366     output_verbose_link_cmd=func_echo_all
10367     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10368     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10369     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"
10370     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"
10371
10372   else
10373   ld_shlibs=no
10374   fi
10375
10376       ;;
10377
10378     dgux*)
10379       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380       hardcode_libdir_flag_spec='-L$libdir'
10381       hardcode_shlibpath_var=no
10382       ;;
10383
10384     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10385     # support.  Future versions do this automatically, but an explicit c++rt0.o
10386     # does not break anything, and helps significantly (at the cost of a little
10387     # extra space).
10388     freebsd2.2*)
10389       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10390       hardcode_libdir_flag_spec='-R$libdir'
10391       hardcode_direct=yes
10392       hardcode_shlibpath_var=no
10393       ;;
10394
10395     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10396     freebsd2.*)
10397       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398       hardcode_direct=yes
10399       hardcode_minus_L=yes
10400       hardcode_shlibpath_var=no
10401       ;;
10402
10403     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10404     freebsd* | dragonfly*)
10405       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406       hardcode_libdir_flag_spec='-R$libdir'
10407       hardcode_direct=yes
10408       hardcode_shlibpath_var=no
10409       ;;
10410
10411     hpux9*)
10412       if test yes = "$GCC"; then
10413         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10414       else
10415         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10416       fi
10417       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10418       hardcode_libdir_separator=:
10419       hardcode_direct=yes
10420
10421       # hardcode_minus_L: Not really in the search PATH,
10422       # but as the default location of the library.
10423       hardcode_minus_L=yes
10424       export_dynamic_flag_spec='$wl-E'
10425       ;;
10426
10427     hpux10*)
10428       if test yes,no = "$GCC,$with_gnu_ld"; then
10429         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430       else
10431         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10432       fi
10433       if test no = "$with_gnu_ld"; then
10434         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10435         hardcode_libdir_separator=:
10436         hardcode_direct=yes
10437         hardcode_direct_absolute=yes
10438         export_dynamic_flag_spec='$wl-E'
10439         # hardcode_minus_L: Not really in the search PATH,
10440         # but as the default location of the library.
10441         hardcode_minus_L=yes
10442       fi
10443       ;;
10444
10445     hpux11*)
10446       if test yes,no = "$GCC,$with_gnu_ld"; then
10447         case $host_cpu in
10448         hppa*64*)
10449           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10450           ;;
10451         ia64*)
10452           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10453           ;;
10454         *)
10455           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456           ;;
10457         esac
10458       else
10459         case $host_cpu in
10460         hppa*64*)
10461           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10462           ;;
10463         ia64*)
10464           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465           ;;
10466         *)
10467
10468           # Older versions of the 11.00 compiler do not understand -b yet
10469           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10471 $as_echo_n "checking if $CC understands -b... " >&6; }
10472 if ${lt_cv_prog_compiler__b+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   lt_cv_prog_compiler__b=no
10476    save_LDFLAGS=$LDFLAGS
10477    LDFLAGS="$LDFLAGS -b"
10478    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10480      # The linker can only warn and ignore the option if not recognized
10481      # So say no if there are warnings
10482      if test -s conftest.err; then
10483        # Append any errors to the config.log.
10484        cat conftest.err 1>&5
10485        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10486        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10487        if diff conftest.exp conftest.er2 >/dev/null; then
10488          lt_cv_prog_compiler__b=yes
10489        fi
10490      else
10491        lt_cv_prog_compiler__b=yes
10492      fi
10493    fi
10494    $RM -r conftest*
10495    LDFLAGS=$save_LDFLAGS
10496
10497 fi
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10500
10501 if test yes = "$lt_cv_prog_compiler__b"; then
10502     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10503 else
10504     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505 fi
10506
10507           ;;
10508         esac
10509       fi
10510       if test no = "$with_gnu_ld"; then
10511         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10512         hardcode_libdir_separator=:
10513
10514         case $host_cpu in
10515         hppa*64*|ia64*)
10516           hardcode_direct=no
10517           hardcode_shlibpath_var=no
10518           ;;
10519         *)
10520           hardcode_direct=yes
10521           hardcode_direct_absolute=yes
10522           export_dynamic_flag_spec='$wl-E'
10523
10524           # hardcode_minus_L: Not really in the search PATH,
10525           # but as the default location of the library.
10526           hardcode_minus_L=yes
10527           ;;
10528         esac
10529       fi
10530       ;;
10531
10532     irix5* | irix6* | nonstopux*)
10533       if test yes = "$GCC"; then
10534         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'
10535         # Try to use the -exported_symbol ld option, if it does not
10536         # work, assume that -exports_file does not work either and
10537         # implicitly export all symbols.
10538         # This should be the same for all languages, so no per-tag cache variable.
10539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10540 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10541 if ${lt_cv_irix_exported_symbol+:} false; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   save_LDFLAGS=$LDFLAGS
10545            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10546            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h.  */
10548 int foo (void) { return 0; }
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551   lt_cv_irix_exported_symbol=yes
10552 else
10553   lt_cv_irix_exported_symbol=no
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext \
10556     conftest$ac_exeext conftest.$ac_ext
10557            LDFLAGS=$save_LDFLAGS
10558 fi
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10560 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10561         if test yes = "$lt_cv_irix_exported_symbol"; then
10562           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'
10563         fi
10564         link_all_deplibs=no
10565       else
10566         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'
10567         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'
10568       fi
10569       archive_cmds_need_lc='no'
10570       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10571       hardcode_libdir_separator=:
10572       inherit_rpath=yes
10573       link_all_deplibs=yes
10574       ;;
10575
10576     linux*)
10577       case $cc_basename in
10578       tcc*)
10579         # Fabrice Bellard et al's Tiny C Compiler
10580         ld_shlibs=yes
10581         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582         ;;
10583       esac
10584       ;;
10585
10586     netbsd* | netbsdelf*-gnu)
10587       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10588         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10589       else
10590         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10591       fi
10592       hardcode_libdir_flag_spec='-R$libdir'
10593       hardcode_direct=yes
10594       hardcode_shlibpath_var=no
10595       ;;
10596
10597     newsos6)
10598       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599       hardcode_direct=yes
10600       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10601       hardcode_libdir_separator=:
10602       hardcode_shlibpath_var=no
10603       ;;
10604
10605     *nto* | *qnx*)
10606       ;;
10607
10608     openbsd* | bitrig*)
10609       if test -f /usr/libexec/ld.so; then
10610         hardcode_direct=yes
10611         hardcode_shlibpath_var=no
10612         hardcode_direct_absolute=yes
10613         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10614           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10616           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10617           export_dynamic_flag_spec='$wl-E'
10618         else
10619           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10620           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10621         fi
10622       else
10623         ld_shlibs=no
10624       fi
10625       ;;
10626
10627     os2*)
10628       hardcode_libdir_flag_spec='-L$libdir'
10629       hardcode_minus_L=yes
10630       allow_undefined_flag=unsupported
10631       shrext_cmds=.dll
10632       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10633         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10634         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10635         $ECHO EXPORTS >> $output_objdir/$libname.def~
10636         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10637         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10638         emximp -o $lib $output_objdir/$libname.def'
10639       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10640         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10641         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10642         $ECHO EXPORTS >> $output_objdir/$libname.def~
10643         prefix_cmds="$SED"~
10644         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10645           prefix_cmds="$prefix_cmds -e 1d";
10646         fi~
10647         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10648         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10649         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10650         emximp -o $lib $output_objdir/$libname.def'
10651       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10652       enable_shared_with_static_runtimes=yes
10653       ;;
10654
10655     osf3*)
10656       if test yes = "$GCC"; then
10657         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10658         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'
10659       else
10660         allow_undefined_flag=' -expect_unresolved \*'
10661         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'
10662       fi
10663       archive_cmds_need_lc='no'
10664       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665       hardcode_libdir_separator=:
10666       ;;
10667
10668     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10669       if test yes = "$GCC"; then
10670         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10671         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'
10672         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10673       else
10674         allow_undefined_flag=' -expect_unresolved \*'
10675         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'
10676         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~
10677           $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'
10678
10679         # Both c and cxx compiler support -rpath directly
10680         hardcode_libdir_flag_spec='-rpath $libdir'
10681       fi
10682       archive_cmds_need_lc='no'
10683       hardcode_libdir_separator=:
10684       ;;
10685
10686     solaris*)
10687       no_undefined_flag=' -z defs'
10688       if test yes = "$GCC"; then
10689         wlarc='$wl'
10690         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10691         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692           $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'
10693       else
10694         case `$CC -V 2>&1` in
10695         *"Compilers 5.0"*)
10696           wlarc=''
10697           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10700           ;;
10701         *)
10702           wlarc='$wl'
10703           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10704           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10706           ;;
10707         esac
10708       fi
10709       hardcode_libdir_flag_spec='-R$libdir'
10710       hardcode_shlibpath_var=no
10711       case $host_os in
10712       solaris2.[0-5] | solaris2.[0-5].*) ;;
10713       *)
10714         # The compiler driver will combine and reorder linker options,
10715         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10716         # but is careful enough not to reorder.
10717         # Supported since Solaris 2.6 (maybe 2.5.1?)
10718         if test yes = "$GCC"; then
10719           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10720         else
10721           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10722         fi
10723         ;;
10724       esac
10725       link_all_deplibs=yes
10726       ;;
10727
10728     sunos4*)
10729       if test sequent = "$host_vendor"; then
10730         # Use $CC to link under sequent, because it throws in some extra .o
10731         # files that make .init and .fini sections work.
10732         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733       else
10734         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10735       fi
10736       hardcode_libdir_flag_spec='-L$libdir'
10737       hardcode_direct=yes
10738       hardcode_minus_L=yes
10739       hardcode_shlibpath_var=no
10740       ;;
10741
10742     sysv4)
10743       case $host_vendor in
10744         sni)
10745           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746           hardcode_direct=yes # is this really true???
10747         ;;
10748         siemens)
10749           ## LD is ld it makes a PLAMLIB
10750           ## CC just makes a GrossModule.
10751           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10752           reload_cmds='$CC -r -o $output$reload_objs'
10753           hardcode_direct=no
10754         ;;
10755         motorola)
10756           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10758         ;;
10759       esac
10760       runpath_var='LD_RUN_PATH'
10761       hardcode_shlibpath_var=no
10762       ;;
10763
10764     sysv4.3*)
10765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766       hardcode_shlibpath_var=no
10767       export_dynamic_flag_spec='-Bexport'
10768       ;;
10769
10770     sysv4*MP*)
10771       if test -d /usr/nec; then
10772         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773         hardcode_shlibpath_var=no
10774         runpath_var=LD_RUN_PATH
10775         hardcode_runpath_var=yes
10776         ld_shlibs=yes
10777       fi
10778       ;;
10779
10780     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781       no_undefined_flag='$wl-z,text'
10782       archive_cmds_need_lc=no
10783       hardcode_shlibpath_var=no
10784       runpath_var='LD_RUN_PATH'
10785
10786       if test yes = "$GCC"; then
10787         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789       else
10790         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792       fi
10793       ;;
10794
10795     sysv5* | sco3.2v5* | sco5v6*)
10796       # Note: We CANNOT use -z defs as we might desire, because we do not
10797       # link with -lc, and that would cause any symbols used from libc to
10798       # always be unresolved, which means just about no library would
10799       # ever link correctly.  If we're not using GNU ld we use -z text
10800       # though, which does catch some bad symbols but isn't as heavy-handed
10801       # as -z defs.
10802       no_undefined_flag='$wl-z,text'
10803       allow_undefined_flag='$wl-z,nodefs'
10804       archive_cmds_need_lc=no
10805       hardcode_shlibpath_var=no
10806       hardcode_libdir_flag_spec='$wl-R,$libdir'
10807       hardcode_libdir_separator=':'
10808       link_all_deplibs=yes
10809       export_dynamic_flag_spec='$wl-Bexport'
10810       runpath_var='LD_RUN_PATH'
10811
10812       if test yes = "$GCC"; then
10813         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815       else
10816         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818       fi
10819       ;;
10820
10821     uts4*)
10822       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823       hardcode_libdir_flag_spec='-L$libdir'
10824       hardcode_shlibpath_var=no
10825       ;;
10826
10827     *)
10828       ld_shlibs=no
10829       ;;
10830     esac
10831
10832     if test sni = "$host_vendor"; then
10833       case $host in
10834       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10835         export_dynamic_flag_spec='$wl-Blargedynsym'
10836         ;;
10837       esac
10838     fi
10839   fi
10840
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10842 $as_echo "$ld_shlibs" >&6; }
10843 test no = "$ld_shlibs" && can_build_shared=no
10844
10845 with_gnu_ld=$with_gnu_ld
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 #
10862 # Do we need to explicitly link libc?
10863 #
10864 case "x$archive_cmds_need_lc" in
10865 x|xyes)
10866   # Assume -lc should be added
10867   archive_cmds_need_lc=yes
10868
10869   if test yes,yes = "$GCC,$enable_shared"; then
10870     case $archive_cmds in
10871     *'~'*)
10872       # FIXME: we may have to deal with multi-command sequences.
10873       ;;
10874     '$CC '*)
10875       # Test whether the compiler implicitly links with -lc since on some
10876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877       # to ld, don't add -lc before -lgcc.
10878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10880 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   $RM conftest*
10884         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10885
10886         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10887   (eval $ac_compile) 2>&5
10888   ac_status=$?
10889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890   test $ac_status = 0; } 2>conftest.err; then
10891           soname=conftest
10892           lib=conftest
10893           libobjs=conftest.$ac_objext
10894           deplibs=
10895           wl=$lt_prog_compiler_wl
10896           pic_flag=$lt_prog_compiler_pic
10897           compiler_flags=-v
10898           linker_flags=-v
10899           verstring=
10900           output_objdir=.
10901           libname=conftest
10902           lt_save_allow_undefined_flag=$allow_undefined_flag
10903           allow_undefined_flag=
10904           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10905   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10906   ac_status=$?
10907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908   test $ac_status = 0; }
10909           then
10910             lt_cv_archive_cmds_need_lc=no
10911           else
10912             lt_cv_archive_cmds_need_lc=yes
10913           fi
10914           allow_undefined_flag=$lt_save_allow_undefined_flag
10915         else
10916           cat conftest.err 1>&5
10917         fi
10918         $RM conftest*
10919
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10922 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10923       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10924       ;;
10925     esac
10926   fi
10927   ;;
10928 esac
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11083
11084 if test yes = "$GCC"; then
11085   case $host_os in
11086     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11087     *) lt_awk_arg='/^libraries:/' ;;
11088   esac
11089   case $host_os in
11090     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11091     *) lt_sed_strip_eq='s|=/|/|g' ;;
11092   esac
11093   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11094   case $lt_search_path_spec in
11095   *\;*)
11096     # if the path contains ";" then we assume it to be the separator
11097     # otherwise default to the standard path separator (i.e. ":") - it is
11098     # assumed that no part of a normal pathname contains ";" but that should
11099     # okay in the real world where ";" in dirpaths is itself problematic.
11100     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11101     ;;
11102   *)
11103     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11104     ;;
11105   esac
11106   # Ok, now we have the path, separated by spaces, we can step through it
11107   # and add multilib dir if necessary...
11108   lt_tmp_lt_search_path_spec=
11109   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11110   # ...but if some path component already ends with the multilib dir we assume
11111   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11112   case "$lt_multi_os_dir; $lt_search_path_spec " in
11113   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11114     lt_multi_os_dir=
11115     ;;
11116   esac
11117   for lt_sys_path in $lt_search_path_spec; do
11118     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11119       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11120     elif test -n "$lt_multi_os_dir"; then
11121       test -d "$lt_sys_path" && \
11122         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11123     fi
11124   done
11125   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11126 BEGIN {RS = " "; FS = "/|\n";} {
11127   lt_foo = "";
11128   lt_count = 0;
11129   for (lt_i = NF; lt_i > 0; lt_i--) {
11130     if ($lt_i != "" && $lt_i != ".") {
11131       if ($lt_i == "..") {
11132         lt_count++;
11133       } else {
11134         if (lt_count == 0) {
11135           lt_foo = "/" $lt_i lt_foo;
11136         } else {
11137           lt_count--;
11138         }
11139       }
11140     }
11141   }
11142   if (lt_foo != "") { lt_freq[lt_foo]++; }
11143   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11144 }'`
11145   # AWK program above erroneously prepends '/' to C:/dos/paths
11146   # for these hosts.
11147   case $host_os in
11148     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11149       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11150   esac
11151   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11152 else
11153   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11154 fi
11155 library_names_spec=
11156 libname_spec='lib$name'
11157 soname_spec=
11158 shrext_cmds=.so
11159 postinstall_cmds=
11160 postuninstall_cmds=
11161 finish_cmds=
11162 finish_eval=
11163 shlibpath_var=
11164 shlibpath_overrides_runpath=unknown
11165 version_type=none
11166 dynamic_linker="$host_os ld.so"
11167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11168 need_lib_prefix=unknown
11169 hardcode_into_libs=no
11170
11171 # when you set need_version to no, make sure it does not cause -set_version
11172 # flags to be left without arguments
11173 need_version=unknown
11174
11175
11176
11177 case $host_os in
11178 aix3*)
11179   version_type=linux # correct to gnu/linux during the next big refactor
11180   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11181   shlibpath_var=LIBPATH
11182
11183   # AIX 3 has no versioning support, so we append a major version to the name.
11184   soname_spec='$libname$release$shared_ext$major'
11185   ;;
11186
11187 aix[4-9]*)
11188   version_type=linux # correct to gnu/linux during the next big refactor
11189   need_lib_prefix=no
11190   need_version=no
11191   hardcode_into_libs=yes
11192   if test ia64 = "$host_cpu"; then
11193     # AIX 5 supports IA64
11194     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11195     shlibpath_var=LD_LIBRARY_PATH
11196   else
11197     # With GCC up to 2.95.x, collect2 would create an import file
11198     # for dependence libraries.  The import file would start with
11199     # the line '#! .'.  This would cause the generated library to
11200     # depend on '.', always an invalid library.  This was fixed in
11201     # development snapshots of GCC prior to 3.0.
11202     case $host_os in
11203       aix4 | aix4.[01] | aix4.[01].*)
11204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11205            echo ' yes '
11206            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11207         :
11208       else
11209         can_build_shared=no
11210       fi
11211       ;;
11212     esac
11213     # Using Import Files as archive members, it is possible to support
11214     # filename-based versioning of shared library archives on AIX. While
11215     # this would work for both with and without runtime linking, it will
11216     # prevent static linking of such archives. So we do filename-based
11217     # shared library versioning with .so extension only, which is used
11218     # when both runtime linking and shared linking is enabled.
11219     # Unfortunately, runtime linking may impact performance, so we do
11220     # not want this to be the default eventually. Also, we use the
11221     # versioned .so libs for executables only if there is the -brtl
11222     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11223     # To allow for filename-based versioning support, we need to create
11224     # libNAME.so.V as an archive file, containing:
11225     # *) an Import File, referring to the versioned filename of the
11226     #    archive as well as the shared archive member, telling the
11227     #    bitwidth (32 or 64) of that shared object, and providing the
11228     #    list of exported symbols of that shared object, eventually
11229     #    decorated with the 'weak' keyword
11230     # *) the shared object with the F_LOADONLY flag set, to really avoid
11231     #    it being seen by the linker.
11232     # At run time we better use the real file rather than another symlink,
11233     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11234
11235     case $with_aix_soname,$aix_use_runtimelinking in
11236     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11237     # soname into executable. Probably we can add versioning support to
11238     # collect2, so additional links can be useful in future.
11239     aix,yes) # traditional libtool
11240       dynamic_linker='AIX unversionable lib.so'
11241       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11242       # instead of lib<name>.a to let people know that these are not
11243       # typical AIX shared libraries.
11244       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245       ;;
11246     aix,no) # traditional AIX only
11247       dynamic_linker='AIX lib.a(lib.so.V)'
11248       # We preserve .a as extension for shared libraries through AIX4.2
11249       # and later when we are not doing run time linking.
11250       library_names_spec='$libname$release.a $libname.a'
11251       soname_spec='$libname$release$shared_ext$major'
11252       ;;
11253     svr4,*) # full svr4 only
11254       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11255       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11256       # We do not specify a path in Import Files, so LIBPATH fires.
11257       shlibpath_overrides_runpath=yes
11258       ;;
11259     *,yes) # both, prefer svr4
11260       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11261       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11262       # unpreferred sharedlib libNAME.a needs extra handling
11263       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11264       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11265       # We do not specify a path in Import Files, so LIBPATH fires.
11266       shlibpath_overrides_runpath=yes
11267       ;;
11268     *,no) # both, prefer aix
11269       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11270       library_names_spec='$libname$release.a $libname.a'
11271       soname_spec='$libname$release$shared_ext$major'
11272       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11273       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11274       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11275       ;;
11276     esac
11277     shlibpath_var=LIBPATH
11278   fi
11279   ;;
11280
11281 amigaos*)
11282   case $host_cpu in
11283   powerpc)
11284     # Since July 2007 AmigaOS4 officially supports .so libraries.
11285     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11286     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11287     ;;
11288   m68k)
11289     library_names_spec='$libname.ixlibrary $libname.a'
11290     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11291     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11292     ;;
11293   esac
11294   ;;
11295
11296 beos*)
11297   library_names_spec='$libname$shared_ext'
11298   dynamic_linker="$host_os ld.so"
11299   shlibpath_var=LIBRARY_PATH
11300   ;;
11301
11302 bsdi[45]*)
11303   version_type=linux # correct to gnu/linux during the next big refactor
11304   need_version=no
11305   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306   soname_spec='$libname$release$shared_ext$major'
11307   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11310   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11311   # the default ld.so.conf also contains /usr/contrib/lib and
11312   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11313   # libtool to hard-code these into programs
11314   ;;
11315
11316 cygwin* | mingw* | pw32* | cegcc*)
11317   version_type=windows
11318   shrext_cmds=.dll
11319   need_version=no
11320   need_lib_prefix=no
11321
11322   case $GCC,$cc_basename in
11323   yes,*)
11324     # gcc
11325     library_names_spec='$libname.dll.a'
11326     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11327     postinstall_cmds='base_file=`basename \$file`~
11328       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11329       dldir=$destdir/`dirname \$dlpath`~
11330       test -d \$dldir || mkdir -p \$dldir~
11331       $install_prog $dir/$dlname \$dldir/$dlname~
11332       chmod a+x \$dldir/$dlname~
11333       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11334         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11335       fi'
11336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11337       dlpath=$dir/\$dldll~
11338        $RM \$dlpath'
11339     shlibpath_overrides_runpath=yes
11340
11341     case $host_os in
11342     cygwin*)
11343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11344       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11345
11346       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11347       ;;
11348     mingw* | cegcc*)
11349       # MinGW DLLs use traditional 'lib' prefix
11350       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11351       ;;
11352     pw32*)
11353       # pw32 DLLs use 'pw' prefix rather than 'lib'
11354       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11355       ;;
11356     esac
11357     dynamic_linker='Win32 ld.exe'
11358     ;;
11359
11360   *,cl*)
11361     # Native MSVC
11362     libname_spec='$name'
11363     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11364     library_names_spec='$libname.dll.lib'
11365
11366     case $build_os in
11367     mingw*)
11368       sys_lib_search_path_spec=
11369       lt_save_ifs=$IFS
11370       IFS=';'
11371       for lt_path in $LIB
11372       do
11373         IFS=$lt_save_ifs
11374         # Let DOS variable expansion print the short 8.3 style file name.
11375         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11376         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11377       done
11378       IFS=$lt_save_ifs
11379       # Convert to MSYS style.
11380       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11381       ;;
11382     cygwin*)
11383       # Convert to unix form, then to dos form, then back to unix form
11384       # but this time dos style (no spaces!) so that the unix form looks
11385       # like /cygdrive/c/PROGRA~1:/cygdr...
11386       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11387       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11388       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11389       ;;
11390     *)
11391       sys_lib_search_path_spec=$LIB
11392       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11393         # It is most probably a Windows format PATH.
11394         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11395       else
11396         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11397       fi
11398       # FIXME: find the short name or the path components, as spaces are
11399       # common. (e.g. "Program Files" -> "PROGRA~1")
11400       ;;
11401     esac
11402
11403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11404     postinstall_cmds='base_file=`basename \$file`~
11405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11406       dldir=$destdir/`dirname \$dlpath`~
11407       test -d \$dldir || mkdir -p \$dldir~
11408       $install_prog $dir/$dlname \$dldir/$dlname'
11409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11410       dlpath=$dir/\$dldll~
11411        $RM \$dlpath'
11412     shlibpath_overrides_runpath=yes
11413     dynamic_linker='Win32 link.exe'
11414     ;;
11415
11416   *)
11417     # Assume MSVC wrapper
11418     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11419     dynamic_linker='Win32 ld.exe'
11420     ;;
11421   esac
11422   # FIXME: first we should search . and the directory the executable is in
11423   shlibpath_var=PATH
11424   ;;
11425
11426 darwin* | rhapsody*)
11427   dynamic_linker="$host_os dyld"
11428   version_type=darwin
11429   need_lib_prefix=no
11430   need_version=no
11431   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11432   soname_spec='$libname$release$major$shared_ext'
11433   shlibpath_overrides_runpath=yes
11434   shlibpath_var=DYLD_LIBRARY_PATH
11435   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11436
11437   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11438   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11439   ;;
11440
11441 dgux*)
11442   version_type=linux # correct to gnu/linux during the next big refactor
11443   need_lib_prefix=no
11444   need_version=no
11445   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446   soname_spec='$libname$release$shared_ext$major'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   ;;
11449
11450 freebsd* | dragonfly*)
11451   # DragonFly does not have aout.  When/if they implement a new
11452   # versioning mechanism, adjust this.
11453   if test -x /usr/bin/objformat; then
11454     objformat=`/usr/bin/objformat`
11455   else
11456     case $host_os in
11457     freebsd[23].*) objformat=aout ;;
11458     *) objformat=elf ;;
11459     esac
11460   fi
11461   version_type=freebsd-$objformat
11462   case $version_type in
11463     freebsd-elf*)
11464       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465       soname_spec='$libname$release$shared_ext$major'
11466       need_version=no
11467       need_lib_prefix=no
11468       ;;
11469     freebsd-*)
11470       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11471       need_version=yes
11472       ;;
11473   esac
11474   shlibpath_var=LD_LIBRARY_PATH
11475   case $host_os in
11476   freebsd2.*)
11477     shlibpath_overrides_runpath=yes
11478     ;;
11479   freebsd3.[01]* | freebsdelf3.[01]*)
11480     shlibpath_overrides_runpath=yes
11481     hardcode_into_libs=yes
11482     ;;
11483   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11484   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11485     shlibpath_overrides_runpath=no
11486     hardcode_into_libs=yes
11487     ;;
11488   *) # from 4.6 on, and DragonFly
11489     shlibpath_overrides_runpath=yes
11490     hardcode_into_libs=yes
11491     ;;
11492   esac
11493   ;;
11494
11495 haiku*)
11496   version_type=linux # correct to gnu/linux during the next big refactor
11497   need_lib_prefix=no
11498   need_version=no
11499   dynamic_linker="$host_os runtime_loader"
11500   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501   soname_spec='$libname$release$shared_ext$major'
11502   shlibpath_var=LIBRARY_PATH
11503   shlibpath_overrides_runpath=no
11504   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11505   hardcode_into_libs=yes
11506   ;;
11507
11508 hpux9* | hpux10* | hpux11*)
11509   # Give a soname corresponding to the major version so that dld.sl refuses to
11510   # link against other versions.
11511   version_type=sunos
11512   need_lib_prefix=no
11513   need_version=no
11514   case $host_cpu in
11515   ia64*)
11516     shrext_cmds='.so'
11517     hardcode_into_libs=yes
11518     dynamic_linker="$host_os dld.so"
11519     shlibpath_var=LD_LIBRARY_PATH
11520     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11521     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522     soname_spec='$libname$release$shared_ext$major'
11523     if test 32 = "$HPUX_IA64_MODE"; then
11524       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11525       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11526     else
11527       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11528       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11529     fi
11530     ;;
11531   hppa*64*)
11532     shrext_cmds='.sl'
11533     hardcode_into_libs=yes
11534     dynamic_linker="$host_os dld.sl"
11535     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538     soname_spec='$libname$release$shared_ext$major'
11539     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11541     ;;
11542   *)
11543     shrext_cmds='.sl'
11544     dynamic_linker="$host_os dld.sl"
11545     shlibpath_var=SHLIB_PATH
11546     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11547     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548     soname_spec='$libname$release$shared_ext$major'
11549     ;;
11550   esac
11551   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11552   postinstall_cmds='chmod 555 $lib'
11553   # or fails outright, so override atomically:
11554   install_override_mode=555
11555   ;;
11556
11557 interix[3-9]*)
11558   version_type=linux # correct to gnu/linux during the next big refactor
11559   need_lib_prefix=no
11560   need_version=no
11561   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562   soname_spec='$libname$release$shared_ext$major'
11563   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11564   shlibpath_var=LD_LIBRARY_PATH
11565   shlibpath_overrides_runpath=no
11566   hardcode_into_libs=yes
11567   ;;
11568
11569 irix5* | irix6* | nonstopux*)
11570   case $host_os in
11571     nonstopux*) version_type=nonstopux ;;
11572     *)
11573         if test yes = "$lt_cv_prog_gnu_ld"; then
11574                 version_type=linux # correct to gnu/linux during the next big refactor
11575         else
11576                 version_type=irix
11577         fi ;;
11578   esac
11579   need_lib_prefix=no
11580   need_version=no
11581   soname_spec='$libname$release$shared_ext$major'
11582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11583   case $host_os in
11584   irix5* | nonstopux*)
11585     libsuff= shlibsuff=
11586     ;;
11587   *)
11588     case $LD in # libtool.m4 will add one of these switches to LD
11589     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590       libsuff= shlibsuff= libmagic=32-bit;;
11591     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592       libsuff=32 shlibsuff=N32 libmagic=N32;;
11593     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595     *) libsuff= shlibsuff= libmagic=never-match;;
11596     esac
11597     ;;
11598   esac
11599   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600   shlibpath_overrides_runpath=no
11601   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11602   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11603   hardcode_into_libs=yes
11604   ;;
11605
11606 # No shared lib support for Linux oldld, aout, or coff.
11607 linux*oldld* | linux*aout* | linux*coff*)
11608   dynamic_linker=no
11609   ;;
11610
11611 linux*android*)
11612   version_type=none # Android doesn't support versioned libraries.
11613   need_lib_prefix=no
11614   need_version=no
11615   library_names_spec='$libname$release$shared_ext'
11616   soname_spec='$libname$release$shared_ext'
11617   finish_cmds=
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=yes
11620
11621   # This implies no fast_install, which is unacceptable.
11622   # Some rework will be needed to allow for fast_install
11623   # before this can be enabled.
11624   hardcode_into_libs=yes
11625
11626   dynamic_linker='Android linker'
11627   # Don't embed -rpath directories since the linker doesn't support them.
11628   hardcode_libdir_flag_spec='-L$libdir'
11629   ;;
11630
11631 # This must be glibc/ELF.
11632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11633   version_type=linux # correct to gnu/linux during the next big refactor
11634   need_lib_prefix=no
11635   need_version=no
11636   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637   soname_spec='$libname$release$shared_ext$major'
11638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639   shlibpath_var=LD_LIBRARY_PATH
11640   shlibpath_overrides_runpath=no
11641
11642   # Some binutils ld are patched to set DT_RUNPATH
11643   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   lt_cv_shlibpath_overrides_runpath=no
11647     save_LDFLAGS=$LDFLAGS
11648     save_libdir=$libdir
11649     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11650          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h.  */
11653
11654 int
11655 main ()
11656 {
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664   lt_cv_shlibpath_overrides_runpath=yes
11665 fi
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669     LDFLAGS=$save_LDFLAGS
11670     libdir=$save_libdir
11671
11672 fi
11673
11674   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11675
11676   # This implies no fast_install, which is unacceptable.
11677   # Some rework will be needed to allow for fast_install
11678   # before this can be enabled.
11679   hardcode_into_libs=yes
11680
11681   # Ideally, we could use ldconfig to report *all* directores which are
11682   # searched for libraries, however this is still not possible.  Aside from not
11683   # being certain /sbin/ldconfig is available, command
11684   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11685   # even though it is searched at run-time.  Try to do the best guess by
11686   # appending ld.so.conf contents (and includes) to the search path.
11687   if test -f /etc/ld.so.conf; then
11688     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' ' '`
11689     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11690   fi
11691
11692   # We used to test for /lib/ld.so.1 and disable shared libraries on
11693   # powerpc, because MkLinux only supported shared libraries with the
11694   # GNU dynamic linker.  Since this was broken with cross compilers,
11695   # most powerpc-linux boxes support dynamic linking these days and
11696   # people can always --disable-shared, the test was removed, and we
11697   # assume the GNU/Linux dynamic linker is in use.
11698   dynamic_linker='GNU/Linux ld.so'
11699   ;;
11700
11701 netbsdelf*-gnu)
11702   version_type=linux
11703   need_lib_prefix=no
11704   need_version=no
11705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11706   soname_spec='${libname}${release}${shared_ext}$major'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   shlibpath_overrides_runpath=no
11709   hardcode_into_libs=yes
11710   dynamic_linker='NetBSD ld.elf_so'
11711   ;;
11712
11713 netbsd*)
11714   version_type=sunos
11715   need_lib_prefix=no
11716   need_version=no
11717   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11718     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720     dynamic_linker='NetBSD (a.out) ld.so'
11721   else
11722     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723     soname_spec='$libname$release$shared_ext$major'
11724     dynamic_linker='NetBSD ld.elf_so'
11725   fi
11726   shlibpath_var=LD_LIBRARY_PATH
11727   shlibpath_overrides_runpath=yes
11728   hardcode_into_libs=yes
11729   ;;
11730
11731 newsos6)
11732   version_type=linux # correct to gnu/linux during the next big refactor
11733   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734   shlibpath_var=LD_LIBRARY_PATH
11735   shlibpath_overrides_runpath=yes
11736   ;;
11737
11738 *nto* | *qnx*)
11739   version_type=qnx
11740   need_lib_prefix=no
11741   need_version=no
11742   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743   soname_spec='$libname$release$shared_ext$major'
11744   shlibpath_var=LD_LIBRARY_PATH
11745   shlibpath_overrides_runpath=no
11746   hardcode_into_libs=yes
11747   dynamic_linker='ldqnx.so'
11748   ;;
11749
11750 openbsd* | bitrig*)
11751   version_type=sunos
11752   sys_lib_dlsearch_path_spec=/usr/lib
11753   need_lib_prefix=no
11754   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11755     need_version=no
11756   else
11757     need_version=yes
11758   fi
11759   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   shlibpath_overrides_runpath=yes
11763   ;;
11764
11765 os2*)
11766   libname_spec='$name'
11767   version_type=windows
11768   shrext_cmds=.dll
11769   need_version=no
11770   need_lib_prefix=no
11771   # OS/2 can only load a DLL with a base name of 8 characters or less.
11772   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11773     v=$($ECHO $release$versuffix | tr -d .-);
11774     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11775     $ECHO $n$v`$shared_ext'
11776   library_names_spec='${libname}_dll.$libext'
11777   dynamic_linker='OS/2 ld.exe'
11778   shlibpath_var=BEGINLIBPATH
11779   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11780   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11781   postinstall_cmds='base_file=`basename \$file`~
11782     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11783     dldir=$destdir/`dirname \$dlpath`~
11784     test -d \$dldir || mkdir -p \$dldir~
11785     $install_prog $dir/$dlname \$dldir/$dlname~
11786     chmod a+x \$dldir/$dlname~
11787     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11788       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11789     fi'
11790   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11791     dlpath=$dir/\$dldll~
11792     $RM \$dlpath'
11793   ;;
11794
11795 osf3* | osf4* | osf5*)
11796   version_type=osf
11797   need_lib_prefix=no
11798   need_version=no
11799   soname_spec='$libname$release$shared_ext$major'
11800   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11804   ;;
11805
11806 rdos*)
11807   dynamic_linker=no
11808   ;;
11809
11810 solaris*)
11811   version_type=linux # correct to gnu/linux during the next big refactor
11812   need_lib_prefix=no
11813   need_version=no
11814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815   soname_spec='$libname$release$shared_ext$major'
11816   shlibpath_var=LD_LIBRARY_PATH
11817   shlibpath_overrides_runpath=yes
11818   hardcode_into_libs=yes
11819   # ldd complains unless libraries are executable
11820   postinstall_cmds='chmod +x $lib'
11821   ;;
11822
11823 sunos4*)
11824   version_type=sunos
11825   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11827   shlibpath_var=LD_LIBRARY_PATH
11828   shlibpath_overrides_runpath=yes
11829   if test yes = "$with_gnu_ld"; then
11830     need_lib_prefix=no
11831   fi
11832   need_version=yes
11833   ;;
11834
11835 sysv4 | sysv4.3*)
11836   version_type=linux # correct to gnu/linux during the next big refactor
11837   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838   soname_spec='$libname$release$shared_ext$major'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   case $host_vendor in
11841     sni)
11842       shlibpath_overrides_runpath=no
11843       need_lib_prefix=no
11844       runpath_var=LD_RUN_PATH
11845       ;;
11846     siemens)
11847       need_lib_prefix=no
11848       ;;
11849     motorola)
11850       need_lib_prefix=no
11851       need_version=no
11852       shlibpath_overrides_runpath=no
11853       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11854       ;;
11855   esac
11856   ;;
11857
11858 sysv4*MP*)
11859   if test -d /usr/nec; then
11860     version_type=linux # correct to gnu/linux during the next big refactor
11861     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11862     soname_spec='$libname$shared_ext.$major'
11863     shlibpath_var=LD_LIBRARY_PATH
11864   fi
11865   ;;
11866
11867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11868   version_type=sco
11869   need_lib_prefix=no
11870   need_version=no
11871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11872   soname_spec='$libname$release$shared_ext$major'
11873   shlibpath_var=LD_LIBRARY_PATH
11874   shlibpath_overrides_runpath=yes
11875   hardcode_into_libs=yes
11876   if test yes = "$with_gnu_ld"; then
11877     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11878   else
11879     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11880     case $host_os in
11881       sco3.2v5*)
11882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11883         ;;
11884     esac
11885   fi
11886   sys_lib_dlsearch_path_spec='/usr/lib'
11887   ;;
11888
11889 tpf*)
11890   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11891   version_type=linux # correct to gnu/linux during the next big refactor
11892   need_lib_prefix=no
11893   need_version=no
11894   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895   shlibpath_var=LD_LIBRARY_PATH
11896   shlibpath_overrides_runpath=no
11897   hardcode_into_libs=yes
11898   ;;
11899
11900 uts4*)
11901   version_type=linux # correct to gnu/linux during the next big refactor
11902   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903   soname_spec='$libname$release$shared_ext$major'
11904   shlibpath_var=LD_LIBRARY_PATH
11905   ;;
11906
11907 *)
11908   dynamic_linker=no
11909   ;;
11910 esac
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11912 $as_echo "$dynamic_linker" >&6; }
11913 test no = "$dynamic_linker" && can_build_shared=no
11914
11915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11916 if test yes = "$GCC"; then
11917   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11918 fi
11919
11920 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11921   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11922 fi
11923
11924 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11925   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11926 fi
11927
11928 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11929 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11930
11931 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11932 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11933
11934 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11935 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12035 hardcode_action=
12036 if test -n "$hardcode_libdir_flag_spec" ||
12037    test -n "$runpath_var" ||
12038    test yes = "$hardcode_automatic"; then
12039
12040   # We can hardcode non-existent directories.
12041   if test no != "$hardcode_direct" &&
12042      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12043      # have to relink, otherwise we might link with an installed library
12044      # when we should be linking with a yet-to-be-installed one
12045      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12046      test no != "$hardcode_minus_L"; then
12047     # Linking always hardcodes the temporary library directory.
12048     hardcode_action=relink
12049   else
12050     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12051     hardcode_action=immediate
12052   fi
12053 else
12054   # We cannot hardcode anything, or else we can only hardcode existing
12055   # directories.
12056   hardcode_action=unsupported
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12059 $as_echo "$hardcode_action" >&6; }
12060
12061 if test relink = "$hardcode_action" ||
12062    test yes = "$inherit_rpath"; then
12063   # Fast installation is not supported
12064   enable_fast_install=no
12065 elif test yes = "$shlibpath_overrides_runpath" ||
12066      test no = "$enable_shared"; then
12067   # Fast installation is not necessary
12068   enable_fast_install=needless
12069 fi
12070
12071
12072
12073
12074
12075
12076   if test yes != "$enable_dlopen"; then
12077   enable_dlopen=unknown
12078   enable_dlopen_self=unknown
12079   enable_dlopen_self_static=unknown
12080 else
12081   lt_cv_dlopen=no
12082   lt_cv_dlopen_libs=
12083
12084   case $host_os in
12085   beos*)
12086     lt_cv_dlopen=load_add_on
12087     lt_cv_dlopen_libs=
12088     lt_cv_dlopen_self=yes
12089     ;;
12090
12091   mingw* | pw32* | cegcc*)
12092     lt_cv_dlopen=LoadLibrary
12093     lt_cv_dlopen_libs=
12094     ;;
12095
12096   cygwin*)
12097     lt_cv_dlopen=dlopen
12098     lt_cv_dlopen_libs=
12099     ;;
12100
12101   darwin*)
12102     # if libdl is installed we need to link against it
12103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12105 if ${ac_cv_lib_dl_dlopen+:} false; then :
12106   $as_echo_n "(cached) " >&6
12107 else
12108   ac_check_lib_save_LIBS=$LIBS
12109 LIBS="-ldl  $LIBS"
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h.  */
12112
12113 /* Override any GCC internal prototype to avoid an error.
12114    Use char because int might match the return type of a GCC
12115    builtin and then its argument prototype would still apply.  */
12116 #ifdef __cplusplus
12117 extern "C"
12118 #endif
12119 char dlopen ();
12120 int
12121 main ()
12122 {
12123 return dlopen ();
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 if ac_fn_c_try_link "$LINENO"; then :
12129   ac_cv_lib_dl_dlopen=yes
12130 else
12131   ac_cv_lib_dl_dlopen=no
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext \
12134     conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12140   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12141 else
12142
12143     lt_cv_dlopen=dyld
12144     lt_cv_dlopen_libs=
12145     lt_cv_dlopen_self=yes
12146
12147 fi
12148
12149     ;;
12150
12151   tpf*)
12152     # Don't try to run any link tests for TPF.  We know it's impossible
12153     # because TPF is a cross-compiler, and we know how we open DSOs.
12154     lt_cv_dlopen=dlopen
12155     lt_cv_dlopen_libs=
12156     lt_cv_dlopen_self=no
12157     ;;
12158
12159   *)
12160     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12161 if test "x$ac_cv_func_shl_load" = xyes; then :
12162   lt_cv_dlopen=shl_load
12163 else
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12166 if ${ac_cv_lib_dld_shl_load+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-ldld  $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h.  */
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175    Use char because int might match the return type of a GCC
12176    builtin and then its argument prototype would still apply.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char shl_load ();
12181 int
12182 main ()
12183 {
12184 return shl_load ();
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190   ac_cv_lib_dld_shl_load=yes
12191 else
12192   ac_cv_lib_dld_shl_load=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195     conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12200 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12201   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12202 else
12203   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12204 if test "x$ac_cv_func_dlopen" = xyes; then :
12205   lt_cv_dlopen=dlopen
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12209 if ${ac_cv_lib_dl_dlopen+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldl  $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char dlopen ();
12224 int
12225 main ()
12226 {
12227 return dlopen ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233   ac_cv_lib_dl_dlopen=yes
12234 else
12235   ac_cv_lib_dl_dlopen=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238     conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12243 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12244   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12248 if ${ac_cv_lib_svld_dlopen+:} false; then :
12249   $as_echo_n "(cached) " >&6
12250 else
12251   ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld  $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h.  */
12255
12256 /* Override any GCC internal prototype to avoid an error.
12257    Use char because int might match the return type of a GCC
12258    builtin and then its argument prototype would still apply.  */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char dlopen ();
12263 int
12264 main ()
12265 {
12266 return dlopen ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272   ac_cv_lib_svld_dlopen=yes
12273 else
12274   ac_cv_lib_svld_dlopen=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277     conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12282 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12283   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12287 if ${ac_cv_lib_dld_dld_link+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-ldld  $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296    Use char because int might match the return type of a GCC
12297    builtin and then its argument prototype would still apply.  */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char dld_link ();
12302 int
12303 main ()
12304 {
12305 return dld_link ();
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311   ac_cv_lib_dld_dld_link=yes
12312 else
12313   ac_cv_lib_dld_dld_link=no
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316     conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12322   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12323 fi
12324
12325
12326 fi
12327
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340     ;;
12341   esac
12342
12343   if test no = "$lt_cv_dlopen"; then
12344     enable_dlopen=no
12345   else
12346     enable_dlopen=yes
12347   fi
12348
12349   case $lt_cv_dlopen in
12350   dlopen)
12351     save_CPPFLAGS=$CPPFLAGS
12352     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12353
12354     save_LDFLAGS=$LDFLAGS
12355     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12356
12357     save_LIBS=$LIBS
12358     LIBS="$lt_cv_dlopen_libs $LIBS"
12359
12360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12362 if ${lt_cv_dlopen_self+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365           if test yes = "$cross_compiling"; then :
12366   lt_cv_dlopen_self=cross
12367 else
12368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369   lt_status=$lt_dlunknown
12370   cat > conftest.$ac_ext <<_LT_EOF
12371 #line $LINENO "configure"
12372 #include "confdefs.h"
12373
12374 #if HAVE_DLFCN_H
12375 #include <dlfcn.h>
12376 #endif
12377
12378 #include <stdio.h>
12379
12380 #ifdef RTLD_GLOBAL
12381 #  define LT_DLGLOBAL           RTLD_GLOBAL
12382 #else
12383 #  ifdef DL_GLOBAL
12384 #    define LT_DLGLOBAL         DL_GLOBAL
12385 #  else
12386 #    define LT_DLGLOBAL         0
12387 #  endif
12388 #endif
12389
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391    find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12393 #  ifdef RTLD_LAZY
12394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12395 #  else
12396 #    ifdef DL_LAZY
12397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12398 #    else
12399 #      ifdef RTLD_NOW
12400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12401 #      else
12402 #        ifdef DL_NOW
12403 #          define LT_DLLAZY_OR_NOW      DL_NOW
12404 #        else
12405 #          define LT_DLLAZY_OR_NOW      0
12406 #        endif
12407 #      endif
12408 #    endif
12409 #  endif
12410 #endif
12411
12412 /* When -fvisibility=hidden is used, assume the code has been annotated
12413    correspondingly for the symbols needed.  */
12414 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12415 int fnord () __attribute__((visibility("default")));
12416 #endif
12417
12418 int fnord () { return 42; }
12419 int main ()
12420 {
12421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12422   int status = $lt_dlunknown;
12423
12424   if (self)
12425     {
12426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12427       else
12428         {
12429           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12430           else puts (dlerror ());
12431         }
12432       /* dlclose (self); */
12433     }
12434   else
12435     puts (dlerror ());
12436
12437   return status;
12438 }
12439 _LT_EOF
12440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12441   (eval $ac_link) 2>&5
12442   ac_status=$?
12443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12445     (./conftest; exit; ) >&5 2>/dev/null
12446     lt_status=$?
12447     case x$lt_status in
12448       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12449       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12450       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12451     esac
12452   else :
12453     # compilation failed
12454     lt_cv_dlopen_self=no
12455   fi
12456 fi
12457 rm -fr conftest*
12458
12459
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12462 $as_echo "$lt_cv_dlopen_self" >&6; }
12463
12464     if test yes = "$lt_cv_dlopen_self"; then
12465       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12467 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12468 if ${lt_cv_dlopen_self_static+:} false; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471           if test yes = "$cross_compiling"; then :
12472   lt_cv_dlopen_self_static=cross
12473 else
12474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475   lt_status=$lt_dlunknown
12476   cat > conftest.$ac_ext <<_LT_EOF
12477 #line $LINENO "configure"
12478 #include "confdefs.h"
12479
12480 #if HAVE_DLFCN_H
12481 #include <dlfcn.h>
12482 #endif
12483
12484 #include <stdio.h>
12485
12486 #ifdef RTLD_GLOBAL
12487 #  define LT_DLGLOBAL           RTLD_GLOBAL
12488 #else
12489 #  ifdef DL_GLOBAL
12490 #    define LT_DLGLOBAL         DL_GLOBAL
12491 #  else
12492 #    define LT_DLGLOBAL         0
12493 #  endif
12494 #endif
12495
12496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497    find out it does not work in some platform. */
12498 #ifndef LT_DLLAZY_OR_NOW
12499 #  ifdef RTLD_LAZY
12500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12501 #  else
12502 #    ifdef DL_LAZY
12503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12504 #    else
12505 #      ifdef RTLD_NOW
12506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12507 #      else
12508 #        ifdef DL_NOW
12509 #          define LT_DLLAZY_OR_NOW      DL_NOW
12510 #        else
12511 #          define LT_DLLAZY_OR_NOW      0
12512 #        endif
12513 #      endif
12514 #    endif
12515 #  endif
12516 #endif
12517
12518 /* When -fvisibility=hidden is used, assume the code has been annotated
12519    correspondingly for the symbols needed.  */
12520 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12521 int fnord () __attribute__((visibility("default")));
12522 #endif
12523
12524 int fnord () { return 42; }
12525 int main ()
12526 {
12527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528   int status = $lt_dlunknown;
12529
12530   if (self)
12531     {
12532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12533       else
12534         {
12535           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12536           else puts (dlerror ());
12537         }
12538       /* dlclose (self); */
12539     }
12540   else
12541     puts (dlerror ());
12542
12543   return status;
12544 }
12545 _LT_EOF
12546   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547   (eval $ac_link) 2>&5
12548   ac_status=$?
12549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12551     (./conftest; exit; ) >&5 2>/dev/null
12552     lt_status=$?
12553     case x$lt_status in
12554       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12555       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12556       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12557     esac
12558   else :
12559     # compilation failed
12560     lt_cv_dlopen_self_static=no
12561   fi
12562 fi
12563 rm -fr conftest*
12564
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12568 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12569     fi
12570
12571     CPPFLAGS=$save_CPPFLAGS
12572     LDFLAGS=$save_LDFLAGS
12573     LIBS=$save_LIBS
12574     ;;
12575   esac
12576
12577   case $lt_cv_dlopen_self in
12578   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12579   *) enable_dlopen_self=unknown ;;
12580   esac
12581
12582   case $lt_cv_dlopen_self_static in
12583   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12584   *) enable_dlopen_self_static=unknown ;;
12585   esac
12586 fi
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604 striplib=
12605 old_striplib=
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12607 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12608 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12609   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12610   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12613 else
12614 # FIXME - insert some real tests, host_os isn't really good enough
12615   case $host_os in
12616   darwin*)
12617     if test -n "$STRIP"; then
12618       striplib="$STRIP -x"
12619       old_striplib="$STRIP -S"
12620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12621 $as_echo "yes" >&6; }
12622     else
12623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625     fi
12626     ;;
12627   *)
12628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630     ;;
12631   esac
12632 fi
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645   # Report what library types will actually be built
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12647 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12649 $as_echo "$can_build_shared" >&6; }
12650
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12652 $as_echo_n "checking whether to build shared libraries... " >&6; }
12653   test no = "$can_build_shared" && enable_shared=no
12654
12655   # On AIX, shared libraries and static libraries use the same namespace, and
12656   # are all built from PIC.
12657   case $host_os in
12658   aix3*)
12659     test yes = "$enable_shared" && enable_static=no
12660     if test -n "$RANLIB"; then
12661       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662       postinstall_cmds='$RANLIB $lib'
12663     fi
12664     ;;
12665
12666   aix[4-9]*)
12667     if test ia64 != "$host_cpu"; then
12668       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12669       yes,aix,yes) ;;                   # shared object as lib.so file only
12670       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12671       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12672       esac
12673     fi
12674     ;;
12675   esac
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12677 $as_echo "$enable_shared" >&6; }
12678
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12680 $as_echo_n "checking whether to build static libraries... " >&6; }
12681   # Make sure either enable_shared or enable_static is yes.
12682   test yes = "$enable_shared" || enable_static=yes
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12684 $as_echo "$enable_static" >&6; }
12685
12686
12687
12688
12689 fi
12690 ac_ext=c
12691 ac_cpp='$CPP $CPPFLAGS'
12692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12695
12696 CC=$lt_save_CC
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712         ac_config_commands="$ac_config_commands libtool"
12713
12714
12715
12716
12717 # Only expand once:
12718
12719
12720
12721 ac_ext=cpp
12722 ac_cpp='$CXXCPP $CPPFLAGS'
12723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12726 if test -z "$CXX"; then
12727   if test -n "$CCC"; then
12728     CXX=$CCC
12729   else
12730     if test -n "$ac_tool_prefix"; then
12731   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12732   do
12733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_prog_CXX+:} false; then :
12738   $as_echo_n "(cached) " >&6
12739 else
12740   if test -n "$CXX"; then
12741   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746   IFS=$as_save_IFS
12747   test -z "$as_dir" && as_dir=.
12748     for ac_exec_ext in '' $ac_executable_extensions; do
12749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752     break 2
12753   fi
12754 done
12755   done
12756 IFS=$as_save_IFS
12757
12758 fi
12759 fi
12760 CXX=$ac_cv_prog_CXX
12761 if test -n "$CXX"; then
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12763 $as_echo "$CXX" >&6; }
12764 else
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770     test -n "$CXX" && break
12771   done
12772 fi
12773 if test -z "$CXX"; then
12774   ac_ct_CXX=$CXX
12775   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12776 do
12777   # Extract the first word of "$ac_prog", so it can be a program name with args.
12778 set dummy $ac_prog; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784   if test -n "$ac_ct_CXX"; then
12785   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12786 else
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH
12789 do
12790   IFS=$as_save_IFS
12791   test -z "$as_dir" && as_dir=.
12792     for ac_exec_ext in '' $ac_executable_extensions; do
12793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12794     ac_cv_prog_ac_ct_CXX="$ac_prog"
12795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796     break 2
12797   fi
12798 done
12799   done
12800 IFS=$as_save_IFS
12801
12802 fi
12803 fi
12804 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12805 if test -n "$ac_ct_CXX"; then
12806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12807 $as_echo "$ac_ct_CXX" >&6; }
12808 else
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12811 fi
12812
12813
12814   test -n "$ac_ct_CXX" && break
12815 done
12816
12817   if test "x$ac_ct_CXX" = x; then
12818     CXX="g++"
12819   else
12820     case $cross_compiling:$ac_tool_warned in
12821 yes:)
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12824 ac_tool_warned=yes ;;
12825 esac
12826     CXX=$ac_ct_CXX
12827   fi
12828 fi
12829
12830   fi
12831 fi
12832 # Provide some information about the compiler.
12833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12834 set X $ac_compile
12835 ac_compiler=$2
12836 for ac_option in --version -v -V -qversion; do
12837   { { ac_try="$ac_compiler $ac_option >&5"
12838 case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12843 $as_echo "$ac_try_echo"; } >&5
12844   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12845   ac_status=$?
12846   if test -s conftest.err; then
12847     sed '10a\
12848 ... rest of stderr output deleted ...
12849          10q' conftest.err >conftest.er1
12850     cat conftest.er1 >&5
12851   fi
12852   rm -f conftest.er1 conftest.err
12853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854   test $ac_status = 0; }
12855 done
12856
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12858 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12859 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h.  */
12864
12865 int
12866 main ()
12867 {
12868 #ifndef __GNUC__
12869        choke me
12870 #endif
12871
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_cxx_try_compile "$LINENO"; then :
12877   ac_compiler_gnu=yes
12878 else
12879   ac_compiler_gnu=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12883
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12886 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12887 if test $ac_compiler_gnu = yes; then
12888   GXX=yes
12889 else
12890   GXX=
12891 fi
12892 ac_test_CXXFLAGS=${CXXFLAGS+set}
12893 ac_save_CXXFLAGS=$CXXFLAGS
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12895 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12896 if ${ac_cv_prog_cxx_g+:} false; then :
12897   $as_echo_n "(cached) " >&6
12898 else
12899   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12900    ac_cxx_werror_flag=yes
12901    ac_cv_prog_cxx_g=no
12902    CXXFLAGS="-g"
12903    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h.  */
12905
12906 int
12907 main ()
12908 {
12909
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_cxx_try_compile "$LINENO"; then :
12915   ac_cv_prog_cxx_g=yes
12916 else
12917   CXXFLAGS=""
12918       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h.  */
12920
12921 int
12922 main ()
12923 {
12924
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 if ac_fn_cxx_try_compile "$LINENO"; then :
12930
12931 else
12932   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12933          CXXFLAGS="-g"
12934          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h.  */
12936
12937 int
12938 main ()
12939 {
12940
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_cxx_try_compile "$LINENO"; then :
12946   ac_cv_prog_cxx_g=yes
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12956 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12957 if test "$ac_test_CXXFLAGS" = set; then
12958   CXXFLAGS=$ac_save_CXXFLAGS
12959 elif test $ac_cv_prog_cxx_g = yes; then
12960   if test "$GXX" = yes; then
12961     CXXFLAGS="-g -O2"
12962   else
12963     CXXFLAGS="-g"
12964   fi
12965 else
12966   if test "$GXX" = yes; then
12967     CXXFLAGS="-O2"
12968   else
12969     CXXFLAGS=
12970   fi
12971 fi
12972 ac_ext=c
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978 depcc="$CXX"  am_compiler_list=
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12981 $as_echo_n "checking dependency style of $depcc... " >&6; }
12982 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12986   # We make a subdir and do the tests there.  Otherwise we can end up
12987   # making bogus files that we don't know about and never remove.  For
12988   # instance it was reported that on HP-UX the gcc test will end up
12989   # making a dummy file named 'D' -- because '-MD' means "put the output
12990   # in D".
12991   rm -rf conftest.dir
12992   mkdir conftest.dir
12993   # Copy depcomp to subdir because otherwise we won't find it if we're
12994   # using a relative directory.
12995   cp "$am_depcomp" conftest.dir
12996   cd conftest.dir
12997   # We will build objects and dependencies in a subdirectory because
12998   # it helps to detect inapplicable dependency modes.  For instance
12999   # both Tru64's cc and ICC support -MD to output dependencies as a
13000   # side effect of compilation, but ICC will put the dependencies in
13001   # the current directory while Tru64 will put them in the object
13002   # directory.
13003   mkdir sub
13004
13005   am_cv_CXX_dependencies_compiler_type=none
13006   if test "$am_compiler_list" = ""; then
13007      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13008   fi
13009   am__universal=false
13010   case " $depcc " in #(
13011      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13012      esac
13013
13014   for depmode in $am_compiler_list; do
13015     # Setup a source with many dependencies, because some compilers
13016     # like to wrap large dependency lists on column 80 (with \), and
13017     # we should not choose a depcomp mode which is confused by this.
13018     #
13019     # We need to recreate these files for each test, as the compiler may
13020     # overwrite some of them when testing with obscure command lines.
13021     # This happens at least with the AIX C compiler.
13022     : > sub/conftest.c
13023     for i in 1 2 3 4 5 6; do
13024       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13025       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13026       # Solaris 10 /bin/sh.
13027       echo '/* dummy */' > sub/conftst$i.h
13028     done
13029     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13030
13031     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13032     # mode.  It turns out that the SunPro C++ compiler does not properly
13033     # handle '-M -o', and we need to detect this.  Also, some Intel
13034     # versions had trouble with output in subdirs.
13035     am__obj=sub/conftest.${OBJEXT-o}
13036     am__minus_obj="-o $am__obj"
13037     case $depmode in
13038     gcc)
13039       # This depmode causes a compiler race in universal mode.
13040       test "$am__universal" = false || continue
13041       ;;
13042     nosideeffect)
13043       # After this tag, mechanisms are not by side-effect, so they'll
13044       # only be used when explicitly requested.
13045       if test "x$enable_dependency_tracking" = xyes; then
13046         continue
13047       else
13048         break
13049       fi
13050       ;;
13051     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13052       # This compiler won't grok '-c -o', but also, the minuso test has
13053       # not run yet.  These depmodes are late enough in the game, and
13054       # so weak that their functioning should not be impacted.
13055       am__obj=conftest.${OBJEXT-o}
13056       am__minus_obj=
13057       ;;
13058     none) break ;;
13059     esac
13060     if depmode=$depmode \
13061        source=sub/conftest.c object=$am__obj \
13062        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13063        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13064          >/dev/null 2>conftest.err &&
13065        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13066        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13067        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13068        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13069       # icc doesn't choke on unknown options, it will just issue warnings
13070       # or remarks (even with -Werror).  So we grep stderr for any message
13071       # that says an option was ignored or not supported.
13072       # When given -MP, icc 7.0 and 7.1 complain thusly:
13073       #   icc: Command line warning: ignoring option '-M'; no argument required
13074       # The diagnosis changed in icc 8.0:
13075       #   icc: Command line remark: option '-MP' not supported
13076       if (grep 'ignoring option' conftest.err ||
13077           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13078         am_cv_CXX_dependencies_compiler_type=$depmode
13079         break
13080       fi
13081     fi
13082   done
13083
13084   cd ..
13085   rm -rf conftest.dir
13086 else
13087   am_cv_CXX_dependencies_compiler_type=none
13088 fi
13089
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13092 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13093 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13094
13095  if
13096   test "x$enable_dependency_tracking" != xno \
13097   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13098   am__fastdepCXX_TRUE=
13099   am__fastdepCXX_FALSE='#'
13100 else
13101   am__fastdepCXX_TRUE='#'
13102   am__fastdepCXX_FALSE=
13103 fi
13104
13105
13106
13107
13108 func_stripname_cnf ()
13109 {
13110   case $2 in
13111   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13112   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13113   esac
13114 } # func_stripname_cnf
13115
13116       if test -n "$CXX" && ( test no != "$CXX" &&
13117     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13118     (test g++ != "$CXX"))); then
13119   ac_ext=cpp
13120 ac_cpp='$CXXCPP $CPPFLAGS'
13121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13125 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13126 if test -z "$CXXCPP"; then
13127   if ${ac_cv_prog_CXXCPP+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130       # Double quotes because CXXCPP needs to be expanded
13131     for CXXCPP in "$CXX -E" "/lib/cpp"
13132     do
13133       ac_preproc_ok=false
13134 for ac_cxx_preproc_warn_flag in '' yes
13135 do
13136   # Use a header file that comes with gcc, so configuring glibc
13137   # with a fresh cross-compiler works.
13138   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13139   # <limits.h> exists even on freestanding compilers.
13140   # On the NeXT, cc -E runs the code through the compiler's parser,
13141   # not just through cpp. "Syntax error" is here to catch this case.
13142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h.  */
13144 #ifdef __STDC__
13145 # include <limits.h>
13146 #else
13147 # include <assert.h>
13148 #endif
13149                      Syntax error
13150 _ACEOF
13151 if ac_fn_cxx_try_cpp "$LINENO"; then :
13152
13153 else
13154   # Broken: fails on valid input.
13155 continue
13156 fi
13157 rm -f conftest.err conftest.i conftest.$ac_ext
13158
13159   # OK, works on sane cases.  Now check whether nonexistent headers
13160   # can be detected and how.
13161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h.  */
13163 #include <ac_nonexistent.h>
13164 _ACEOF
13165 if ac_fn_cxx_try_cpp "$LINENO"; then :
13166   # Broken: success on invalid input.
13167 continue
13168 else
13169   # Passes both tests.
13170 ac_preproc_ok=:
13171 break
13172 fi
13173 rm -f conftest.err conftest.i conftest.$ac_ext
13174
13175 done
13176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13177 rm -f conftest.i conftest.err conftest.$ac_ext
13178 if $ac_preproc_ok; then :
13179   break
13180 fi
13181
13182     done
13183     ac_cv_prog_CXXCPP=$CXXCPP
13184
13185 fi
13186   CXXCPP=$ac_cv_prog_CXXCPP
13187 else
13188   ac_cv_prog_CXXCPP=$CXXCPP
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13191 $as_echo "$CXXCPP" >&6; }
13192 ac_preproc_ok=false
13193 for ac_cxx_preproc_warn_flag in '' yes
13194 do
13195   # Use a header file that comes with gcc, so configuring glibc
13196   # with a fresh cross-compiler works.
13197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13198   # <limits.h> exists even on freestanding compilers.
13199   # On the NeXT, cc -E runs the code through the compiler's parser,
13200   # not just through cpp. "Syntax error" is here to catch this case.
13201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h.  */
13203 #ifdef __STDC__
13204 # include <limits.h>
13205 #else
13206 # include <assert.h>
13207 #endif
13208                      Syntax error
13209 _ACEOF
13210 if ac_fn_cxx_try_cpp "$LINENO"; then :
13211
13212 else
13213   # Broken: fails on valid input.
13214 continue
13215 fi
13216 rm -f conftest.err conftest.i conftest.$ac_ext
13217
13218   # OK, works on sane cases.  Now check whether nonexistent headers
13219   # can be detected and how.
13220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h.  */
13222 #include <ac_nonexistent.h>
13223 _ACEOF
13224 if ac_fn_cxx_try_cpp "$LINENO"; then :
13225   # Broken: success on invalid input.
13226 continue
13227 else
13228   # Passes both tests.
13229 ac_preproc_ok=:
13230 break
13231 fi
13232 rm -f conftest.err conftest.i conftest.$ac_ext
13233
13234 done
13235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13236 rm -f conftest.i conftest.err conftest.$ac_ext
13237 if $ac_preproc_ok; then :
13238
13239 else
13240   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13242 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13243 See \`config.log' for more details" "$LINENO" 5; }
13244 fi
13245
13246 ac_ext=c
13247 ac_cpp='$CPP $CPPFLAGS'
13248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13251
13252 else
13253   _lt_caught_CXX_error=yes
13254 fi
13255
13256 ac_ext=cpp
13257 ac_cpp='$CXXCPP $CPPFLAGS'
13258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13261
13262 archive_cmds_need_lc_CXX=no
13263 allow_undefined_flag_CXX=
13264 always_export_symbols_CXX=no
13265 archive_expsym_cmds_CXX=
13266 compiler_needs_object_CXX=no
13267 export_dynamic_flag_spec_CXX=
13268 hardcode_direct_CXX=no
13269 hardcode_direct_absolute_CXX=no
13270 hardcode_libdir_flag_spec_CXX=
13271 hardcode_libdir_separator_CXX=
13272 hardcode_minus_L_CXX=no
13273 hardcode_shlibpath_var_CXX=unsupported
13274 hardcode_automatic_CXX=no
13275 inherit_rpath_CXX=no
13276 module_cmds_CXX=
13277 module_expsym_cmds_CXX=
13278 link_all_deplibs_CXX=unknown
13279 old_archive_cmds_CXX=$old_archive_cmds
13280 reload_flag_CXX=$reload_flag
13281 reload_cmds_CXX=$reload_cmds
13282 no_undefined_flag_CXX=
13283 whole_archive_flag_spec_CXX=
13284 enable_shared_with_static_runtimes_CXX=no
13285
13286 # Source file extension for C++ test sources.
13287 ac_ext=cpp
13288
13289 # Object file extension for compiled C++ test sources.
13290 objext=o
13291 objext_CXX=$objext
13292
13293 # No sense in running all these tests if we already determined that
13294 # the CXX compiler isn't working.  Some variables (like enable_shared)
13295 # are currently assumed to apply to all compilers on this platform,
13296 # and will be corrupted by setting them based on a non-working compiler.
13297 if test yes != "$_lt_caught_CXX_error"; then
13298   # Code to be used in simple compile tests
13299   lt_simple_compile_test_code="int some_variable = 0;"
13300
13301   # Code to be used in simple link tests
13302   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13303
13304   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13305
13306
13307
13308
13309
13310
13311 # If no C compiler was specified, use CC.
13312 LTCC=${LTCC-"$CC"}
13313
13314 # If no C compiler flags were specified, use CFLAGS.
13315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13316
13317 # Allow CC to be a program name with arguments.
13318 compiler=$CC
13319
13320
13321   # save warnings/boilerplate of simple test code
13322   ac_outfile=conftest.$ac_objext
13323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13325 _lt_compiler_boilerplate=`cat conftest.err`
13326 $RM conftest*
13327
13328   ac_outfile=conftest.$ac_objext
13329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13331 _lt_linker_boilerplate=`cat conftest.err`
13332 $RM -r conftest*
13333
13334
13335   # Allow CC to be a program name with arguments.
13336   lt_save_CC=$CC
13337   lt_save_CFLAGS=$CFLAGS
13338   lt_save_LD=$LD
13339   lt_save_GCC=$GCC
13340   GCC=$GXX
13341   lt_save_with_gnu_ld=$with_gnu_ld
13342   lt_save_path_LD=$lt_cv_path_LD
13343   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13344     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13345   else
13346     $as_unset lt_cv_prog_gnu_ld
13347   fi
13348   if test -n "${lt_cv_path_LDCXX+set}"; then
13349     lt_cv_path_LD=$lt_cv_path_LDCXX
13350   else
13351     $as_unset lt_cv_path_LD
13352   fi
13353   test -z "${LDCXX+set}" || LD=$LDCXX
13354   CC=${CXX-"c++"}
13355   CFLAGS=$CXXFLAGS
13356   compiler=$CC
13357   compiler_CXX=$CC
13358   func_cc_basename $compiler
13359 cc_basename=$func_cc_basename_result
13360
13361
13362   if test -n "$compiler"; then
13363     # We don't want -fno-exception when compiling C++ code, so set the
13364     # no_builtin_flag separately
13365     if test yes = "$GXX"; then
13366       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13367     else
13368       lt_prog_compiler_no_builtin_flag_CXX=
13369     fi
13370
13371     if test yes = "$GXX"; then
13372       # Set up default GNU C++ configuration
13373
13374
13375
13376 # Check whether --with-gnu-ld was given.
13377 if test "${with_gnu_ld+set}" = set; then :
13378   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13379 else
13380   with_gnu_ld=no
13381 fi
13382
13383 ac_prog=ld
13384 if test yes = "$GCC"; then
13385   # Check if gcc -print-prog-name=ld gives a path.
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13387 $as_echo_n "checking for ld used by $CC... " >&6; }
13388   case $host in
13389   *-*-mingw*)
13390     # gcc leaves a trailing carriage return, which upsets mingw
13391     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13392   *)
13393     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13394   esac
13395   case $ac_prog in
13396     # Accept absolute paths.
13397     [\\/]* | ?:[\\/]*)
13398       re_direlt='/[^/][^/]*/\.\./'
13399       # Canonicalize the pathname of ld
13400       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13401       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13402         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13403       done
13404       test -z "$LD" && LD=$ac_prog
13405       ;;
13406   "")
13407     # If it fails, then pretend we aren't using GCC.
13408     ac_prog=ld
13409     ;;
13410   *)
13411     # If it is relative, then search for the first ld in PATH.
13412     with_gnu_ld=unknown
13413     ;;
13414   esac
13415 elif test yes = "$with_gnu_ld"; then
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13417 $as_echo_n "checking for GNU ld... " >&6; }
13418 else
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13420 $as_echo_n "checking for non-GNU ld... " >&6; }
13421 fi
13422 if ${lt_cv_path_LD+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   if test -z "$LD"; then
13426   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13427   for ac_dir in $PATH; do
13428     IFS=$lt_save_ifs
13429     test -z "$ac_dir" && ac_dir=.
13430     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13431       lt_cv_path_LD=$ac_dir/$ac_prog
13432       # Check to see if the program is GNU ld.  I'd rather use --version,
13433       # but apparently some variants of GNU ld only accept -v.
13434       # Break only if it was the GNU/non-GNU ld that we prefer.
13435       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13436       *GNU* | *'with BFD'*)
13437         test no != "$with_gnu_ld" && break
13438         ;;
13439       *)
13440         test yes != "$with_gnu_ld" && break
13441         ;;
13442       esac
13443     fi
13444   done
13445   IFS=$lt_save_ifs
13446 else
13447   lt_cv_path_LD=$LD # Let the user override the test with a path.
13448 fi
13449 fi
13450
13451 LD=$lt_cv_path_LD
13452 if test -n "$LD"; then
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13454 $as_echo "$LD" >&6; }
13455 else
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13461 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13462 if ${lt_cv_prog_gnu_ld+:} false; then :
13463   $as_echo_n "(cached) " >&6
13464 else
13465   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13466 case `$LD -v 2>&1 </dev/null` in
13467 *GNU* | *'with BFD'*)
13468   lt_cv_prog_gnu_ld=yes
13469   ;;
13470 *)
13471   lt_cv_prog_gnu_ld=no
13472   ;;
13473 esac
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13476 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13477 with_gnu_ld=$lt_cv_prog_gnu_ld
13478
13479
13480
13481
13482
13483
13484
13485       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13486       # archiving commands below assume that GNU ld is being used.
13487       if test yes = "$with_gnu_ld"; then
13488         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13489         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'
13490
13491         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13492         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13493
13494         # If archive_cmds runs LD, not CC, wlarc should be empty
13495         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13496         #     investigate it a little bit more. (MM)
13497         wlarc='$wl'
13498
13499         # ancient GNU ld didn't support --whole-archive et. al.
13500         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13501           $GREP 'no-whole-archive' > /dev/null; then
13502           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13503         else
13504           whole_archive_flag_spec_CXX=
13505         fi
13506       else
13507         with_gnu_ld=no
13508         wlarc=
13509
13510         # A generic and very simple default shared library creation
13511         # command for GNU C++ for the case where it uses the native
13512         # linker, instead of GNU ld.  If possible, this setting should
13513         # overridden to take advantage of the native linker features on
13514         # the platform it is being used on.
13515         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13516       fi
13517
13518       # Commands to make compiler produce verbose output that lists
13519       # what "hidden" libraries, object files and flags are used when
13520       # linking a shared library.
13521       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13522
13523     else
13524       GXX=no
13525       with_gnu_ld=no
13526       wlarc=
13527     fi
13528
13529     # PORTME: fill in a description of your system's C++ link characteristics
13530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13531 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13532     ld_shlibs_CXX=yes
13533     case $host_os in
13534       aix3*)
13535         # FIXME: insert proper C++ library support
13536         ld_shlibs_CXX=no
13537         ;;
13538       aix[4-9]*)
13539         if test ia64 = "$host_cpu"; then
13540           # On IA64, the linker does run time linking by default, so we don't
13541           # have to do anything special.
13542           aix_use_runtimelinking=no
13543           exp_sym_flag='-Bexport'
13544           no_entry_flag=
13545         else
13546           aix_use_runtimelinking=no
13547
13548           # Test if we are trying to use run time linking or normal
13549           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13550           # have runtime linking enabled, and use it for executables.
13551           # For shared libraries, we enable/disable runtime linking
13552           # depending on the kind of the shared library created -
13553           # when "with_aix_soname,aix_use_runtimelinking" is:
13554           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13555           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13556           #            lib.a           static archive
13557           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13558           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13559           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13560           #            lib.a(lib.so.V) shared, rtl:no
13561           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13562           #            lib.a           static archive
13563           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13564             for ld_flag in $LDFLAGS; do
13565               case $ld_flag in
13566               *-brtl*)
13567                 aix_use_runtimelinking=yes
13568                 break
13569                 ;;
13570               esac
13571             done
13572             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13573               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13574               # so we don't have lib.a shared libs to link our executables.
13575               # We have to force runtime linking in this case.
13576               aix_use_runtimelinking=yes
13577               LDFLAGS="$LDFLAGS -Wl,-brtl"
13578             fi
13579             ;;
13580           esac
13581
13582           exp_sym_flag='-bexport'
13583           no_entry_flag='-bnoentry'
13584         fi
13585
13586         # When large executables or shared objects are built, AIX ld can
13587         # have problems creating the table of contents.  If linking a library
13588         # or program results in "error TOC overflow" add -mminimal-toc to
13589         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13590         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13591
13592         archive_cmds_CXX=''
13593         hardcode_direct_CXX=yes
13594         hardcode_direct_absolute_CXX=yes
13595         hardcode_libdir_separator_CXX=':'
13596         link_all_deplibs_CXX=yes
13597         file_list_spec_CXX='$wl-f,'
13598         case $with_aix_soname,$aix_use_runtimelinking in
13599         aix,*) ;;       # no import file
13600         svr4,* | *,yes) # use import file
13601           # The Import File defines what to hardcode.
13602           hardcode_direct_CXX=no
13603           hardcode_direct_absolute_CXX=no
13604           ;;
13605         esac
13606
13607         if test yes = "$GXX"; then
13608           case $host_os in aix4.[012]|aix4.[012].*)
13609           # We only want to do this on AIX 4.2 and lower, the check
13610           # below for broken collect2 doesn't work under 4.3+
13611           collect2name=`$CC -print-prog-name=collect2`
13612           if test -f "$collect2name" &&
13613              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13614           then
13615             # We have reworked collect2
13616             :
13617           else
13618             # We have old collect2
13619             hardcode_direct_CXX=unsupported
13620             # It fails to find uninstalled libraries when the uninstalled
13621             # path is not listed in the libpath.  Setting hardcode_minus_L
13622             # to unsupported forces relinking
13623             hardcode_minus_L_CXX=yes
13624             hardcode_libdir_flag_spec_CXX='-L$libdir'
13625             hardcode_libdir_separator_CXX=
13626           fi
13627           esac
13628           shared_flag='-shared'
13629           if test yes = "$aix_use_runtimelinking"; then
13630             shared_flag=$shared_flag' $wl-G'
13631           fi
13632           # Need to ensure runtime linking is disabled for the traditional
13633           # shared library, or the linker may eventually find shared libraries
13634           # /with/ Import File - we do not want to mix them.
13635           shared_flag_aix='-shared'
13636           shared_flag_svr4='-shared $wl-G'
13637         else
13638           # not using gcc
13639           if test ia64 = "$host_cpu"; then
13640           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13641           # chokes on -Wl,-G. The following line is correct:
13642           shared_flag='-G'
13643           else
13644             if test yes = "$aix_use_runtimelinking"; then
13645               shared_flag='$wl-G'
13646             else
13647               shared_flag='$wl-bM:SRE'
13648             fi
13649             shared_flag_aix='$wl-bM:SRE'
13650             shared_flag_svr4='$wl-G'
13651           fi
13652         fi
13653
13654         export_dynamic_flag_spec_CXX='$wl-bexpall'
13655         # It seems that -bexpall does not export symbols beginning with
13656         # underscore (_), so it is better to generate a list of symbols to
13657         # export.
13658         always_export_symbols_CXX=yes
13659         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13660           # Warning - without using the other runtime loading flags (-brtl),
13661           # -berok will link without error, but may produce a broken library.
13662           # The "-G" linker flag allows undefined symbols.
13663           no_undefined_flag_CXX='-bernotok'
13664           # Determine the default libpath from the value encoded in an empty
13665           # executable.
13666           if test set = "${lt_cv_aix_libpath+set}"; then
13667   aix_libpath=$lt_cv_aix_libpath
13668 else
13669   if ${lt_cv_aix_libpath__CXX+:} false; then :
13670   $as_echo_n "(cached) " >&6
13671 else
13672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h.  */
13674
13675 int
13676 main ()
13677 {
13678
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_cxx_try_link "$LINENO"; then :
13684
13685   lt_aix_libpath_sed='
13686       /Import File Strings/,/^$/ {
13687           /^0/ {
13688               s/^0  *\([^ ]*\) *$/\1/
13689               p
13690           }
13691       }'
13692   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13693   # Check for a 64-bit object if we didn't find anything.
13694   if test -z "$lt_cv_aix_libpath__CXX"; then
13695     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13696   fi
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext \
13699     conftest$ac_exeext conftest.$ac_ext
13700   if test -z "$lt_cv_aix_libpath__CXX"; then
13701     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13702   fi
13703
13704 fi
13705
13706   aix_libpath=$lt_cv_aix_libpath__CXX
13707 fi
13708
13709           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13710
13711           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13712         else
13713           if test ia64 = "$host_cpu"; then
13714             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13715             allow_undefined_flag_CXX="-z nodefs"
13716             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"
13717           else
13718             # Determine the default libpath from the value encoded in an
13719             # empty executable.
13720             if test set = "${lt_cv_aix_libpath+set}"; then
13721   aix_libpath=$lt_cv_aix_libpath
13722 else
13723   if ${lt_cv_aix_libpath__CXX+:} false; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h.  */
13728
13729 int
13730 main ()
13731 {
13732
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 if ac_fn_cxx_try_link "$LINENO"; then :
13738
13739   lt_aix_libpath_sed='
13740       /Import File Strings/,/^$/ {
13741           /^0/ {
13742               s/^0  *\([^ ]*\) *$/\1/
13743               p
13744           }
13745       }'
13746   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13747   # Check for a 64-bit object if we didn't find anything.
13748   if test -z "$lt_cv_aix_libpath__CXX"; then
13749     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13750   fi
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext \
13753     conftest$ac_exeext conftest.$ac_ext
13754   if test -z "$lt_cv_aix_libpath__CXX"; then
13755     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13756   fi
13757
13758 fi
13759
13760   aix_libpath=$lt_cv_aix_libpath__CXX
13761 fi
13762
13763             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13764             # Warning - without using the other run time loading flags,
13765             # -berok will link without error, but may produce a broken library.
13766             no_undefined_flag_CXX=' $wl-bernotok'
13767             allow_undefined_flag_CXX=' $wl-berok'
13768             if test yes = "$with_gnu_ld"; then
13769               # We only use this code for GNU lds that support --whole-archive.
13770               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13771             else
13772               # Exported symbols can be pulled into shared objects from archives
13773               whole_archive_flag_spec_CXX='$convenience'
13774             fi
13775             archive_cmds_need_lc_CXX=yes
13776             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13777             # -brtl affects multiple linker settings, -berok does not and is overridden later
13778             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13779             if test svr4 != "$with_aix_soname"; then
13780               # This is similar to how AIX traditionally builds its shared
13781               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13782               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13783             fi
13784             if test aix != "$with_aix_soname"; then
13785               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13786             else
13787               # used by -dlpreopen to get the symbols
13788               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13789             fi
13790             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13791           fi
13792         fi
13793         ;;
13794
13795       beos*)
13796         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13797           allow_undefined_flag_CXX=unsupported
13798           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13799           # support --undefined.  This deserves some investigation.  FIXME
13800           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13801         else
13802           ld_shlibs_CXX=no
13803         fi
13804         ;;
13805
13806       chorus*)
13807         case $cc_basename in
13808           *)
13809           # FIXME: insert proper C++ library support
13810           ld_shlibs_CXX=no
13811           ;;
13812         esac
13813         ;;
13814
13815       cygwin* | mingw* | pw32* | cegcc*)
13816         case $GXX,$cc_basename in
13817         ,cl* | no,cl*)
13818           # Native MSVC
13819           # hardcode_libdir_flag_spec is actually meaningless, as there is
13820           # no search path for DLLs.
13821           hardcode_libdir_flag_spec_CXX=' '
13822           allow_undefined_flag_CXX=unsupported
13823           always_export_symbols_CXX=yes
13824           file_list_spec_CXX='@'
13825           # Tell ltmain to make .lib files, not .a files.
13826           libext=lib
13827           # Tell ltmain to make .dll files, not .so files.
13828           shrext_cmds=.dll
13829           # FIXME: Setting linknames here is a bad hack.
13830           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13831           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13832               cp "$export_symbols" "$output_objdir/$soname.def";
13833               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13834             else
13835               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13836             fi~
13837             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13838             linknames='
13839           # The linker will not automatically build a static lib if we build a DLL.
13840           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13841           enable_shared_with_static_runtimes_CXX=yes
13842           # Don't use ranlib
13843           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13844           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13845             lt_tool_outputfile="@TOOL_OUTPUT@"~
13846             case $lt_outputfile in
13847               *.exe|*.EXE) ;;
13848               *)
13849                 lt_outputfile=$lt_outputfile.exe
13850                 lt_tool_outputfile=$lt_tool_outputfile.exe
13851                 ;;
13852             esac~
13853             func_to_tool_file "$lt_outputfile"~
13854             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13855               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13856               $RM "$lt_outputfile.manifest";
13857             fi'
13858           ;;
13859         *)
13860           # g++
13861           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13862           # as there is no search path for DLLs.
13863           hardcode_libdir_flag_spec_CXX='-L$libdir'
13864           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13865           allow_undefined_flag_CXX=unsupported
13866           always_export_symbols_CXX=no
13867           enable_shared_with_static_runtimes_CXX=yes
13868
13869           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13870             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'
13871             # If the export-symbols file already is a .def file, use it as
13872             # is; otherwise, prepend EXPORTS...
13873             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13874               cp $export_symbols $output_objdir/$soname.def;
13875             else
13876               echo EXPORTS > $output_objdir/$soname.def;
13877               cat $export_symbols >> $output_objdir/$soname.def;
13878             fi~
13879             $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'
13880           else
13881             ld_shlibs_CXX=no
13882           fi
13883           ;;
13884         esac
13885         ;;
13886       darwin* | rhapsody*)
13887
13888
13889   archive_cmds_need_lc_CXX=no
13890   hardcode_direct_CXX=no
13891   hardcode_automatic_CXX=yes
13892   hardcode_shlibpath_var_CXX=unsupported
13893   if test yes = "$lt_cv_ld_force_load"; then
13894     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\"`'
13895
13896   else
13897     whole_archive_flag_spec_CXX=''
13898   fi
13899   link_all_deplibs_CXX=yes
13900   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13901   case $cc_basename in
13902      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13903      *) _lt_dar_can_shared=$GCC ;;
13904   esac
13905   if test yes = "$_lt_dar_can_shared"; then
13906     output_verbose_link_cmd=func_echo_all
13907     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"
13908     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13909     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"
13910     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"
13911        if test yes != "$lt_cv_apple_cc_single_mod"; then
13912       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"
13913       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"
13914     fi
13915
13916   else
13917   ld_shlibs_CXX=no
13918   fi
13919
13920         ;;
13921
13922       os2*)
13923         hardcode_libdir_flag_spec_CXX='-L$libdir'
13924         hardcode_minus_L_CXX=yes
13925         allow_undefined_flag_CXX=unsupported
13926         shrext_cmds=.dll
13927         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13928           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13929           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13930           $ECHO EXPORTS >> $output_objdir/$libname.def~
13931           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13932           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13933           emximp -o $lib $output_objdir/$libname.def'
13934         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13935           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13936           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13937           $ECHO EXPORTS >> $output_objdir/$libname.def~
13938           prefix_cmds="$SED"~
13939           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13940             prefix_cmds="$prefix_cmds -e 1d";
13941           fi~
13942           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13943           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13944           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13945           emximp -o $lib $output_objdir/$libname.def'
13946         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13947         enable_shared_with_static_runtimes_CXX=yes
13948         ;;
13949
13950       dgux*)
13951         case $cc_basename in
13952           ec++*)
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           ghcx*)
13957             # Green Hills C++ Compiler
13958             # FIXME: insert proper C++ library support
13959             ld_shlibs_CXX=no
13960             ;;
13961           *)
13962             # FIXME: insert proper C++ library support
13963             ld_shlibs_CXX=no
13964             ;;
13965         esac
13966         ;;
13967
13968       freebsd2.*)
13969         # C++ shared libraries reported to be fairly broken before
13970         # switch to ELF
13971         ld_shlibs_CXX=no
13972         ;;
13973
13974       freebsd-elf*)
13975         archive_cmds_need_lc_CXX=no
13976         ;;
13977
13978       freebsd* | dragonfly*)
13979         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13980         # conventions
13981         ld_shlibs_CXX=yes
13982         ;;
13983
13984       haiku*)
13985         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13986         link_all_deplibs_CXX=yes
13987         ;;
13988
13989       hpux9*)
13990         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13991         hardcode_libdir_separator_CXX=:
13992         export_dynamic_flag_spec_CXX='$wl-E'
13993         hardcode_direct_CXX=yes
13994         hardcode_minus_L_CXX=yes # Not in the search PATH,
13995                                              # but as the default
13996                                              # location of the library.
13997
13998         case $cc_basename in
13999           CC*)
14000             # FIXME: insert proper C++ library support
14001             ld_shlibs_CXX=no
14002             ;;
14003           aCC*)
14004             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14005             # Commands to make compiler produce verbose output that lists
14006             # what "hidden" libraries, object files and flags are used when
14007             # linking a shared library.
14008             #
14009             # There doesn't appear to be a way to prevent this compiler from
14010             # explicitly linking system object files so we need to strip them
14011             # from the output so that they don't get included in the library
14012             # dependencies.
14013             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"'
14014             ;;
14015           *)
14016             if test yes = "$GXX"; then
14017               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14018             else
14019               # FIXME: insert proper C++ library support
14020               ld_shlibs_CXX=no
14021             fi
14022             ;;
14023         esac
14024         ;;
14025
14026       hpux10*|hpux11*)
14027         if test no = "$with_gnu_ld"; then
14028           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14029           hardcode_libdir_separator_CXX=:
14030
14031           case $host_cpu in
14032             hppa*64*|ia64*)
14033               ;;
14034             *)
14035               export_dynamic_flag_spec_CXX='$wl-E'
14036               ;;
14037           esac
14038         fi
14039         case $host_cpu in
14040           hppa*64*|ia64*)
14041             hardcode_direct_CXX=no
14042             hardcode_shlibpath_var_CXX=no
14043             ;;
14044           *)
14045             hardcode_direct_CXX=yes
14046             hardcode_direct_absolute_CXX=yes
14047             hardcode_minus_L_CXX=yes # Not in the search PATH,
14048                                                  # but as the default
14049                                                  # location of the library.
14050             ;;
14051         esac
14052
14053         case $cc_basename in
14054           CC*)
14055             # FIXME: insert proper C++ library support
14056             ld_shlibs_CXX=no
14057             ;;
14058           aCC*)
14059             case $host_cpu in
14060               hppa*64*)
14061                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062                 ;;
14063               ia64*)
14064                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065                 ;;
14066               *)
14067                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068                 ;;
14069             esac
14070             # Commands to make compiler produce verbose output that lists
14071             # what "hidden" libraries, object files and flags are used when
14072             # linking a shared library.
14073             #
14074             # There doesn't appear to be a way to prevent this compiler from
14075             # explicitly linking system object files so we need to strip them
14076             # from the output so that they don't get included in the library
14077             # dependencies.
14078             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"'
14079             ;;
14080           *)
14081             if test yes = "$GXX"; then
14082               if test no = "$with_gnu_ld"; then
14083                 case $host_cpu in
14084                   hppa*64*)
14085                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14086                     ;;
14087                   ia64*)
14088                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14089                     ;;
14090                   *)
14091                     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'
14092                     ;;
14093                 esac
14094               fi
14095             else
14096               # FIXME: insert proper C++ library support
14097               ld_shlibs_CXX=no
14098             fi
14099             ;;
14100         esac
14101         ;;
14102
14103       interix[3-9]*)
14104         hardcode_direct_CXX=no
14105         hardcode_shlibpath_var_CXX=no
14106         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14107         export_dynamic_flag_spec_CXX='$wl-E'
14108         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14109         # Instead, shared libraries are loaded at an image base (0x10000000 by
14110         # default) and relocated if they conflict, which is a slow very memory
14111         # consuming and fragmenting process.  To avoid this, we pick a random,
14112         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14113         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14114         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'
14115         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'
14116         ;;
14117       irix5* | irix6*)
14118         case $cc_basename in
14119           CC*)
14120             # SGI C++
14121             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'
14122
14123             # Archives containing C++ object files must be created using
14124             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14125             # necessary to make sure instantiated templates are included
14126             # in the archive.
14127             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14128             ;;
14129           *)
14130             if test yes = "$GXX"; then
14131               if test no = "$with_gnu_ld"; then
14132                 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'
14133               else
14134                 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'
14135               fi
14136             fi
14137             link_all_deplibs_CXX=yes
14138             ;;
14139         esac
14140         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14141         hardcode_libdir_separator_CXX=:
14142         inherit_rpath_CXX=yes
14143         ;;
14144
14145       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14146         case $cc_basename in
14147           KCC*)
14148             # Kuck and Associates, Inc. (KAI) C++ Compiler
14149
14150             # KCC will only create a shared library if the output file
14151             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14152             # to its proper name (with version) after linking.
14153             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'
14154             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'
14155             # Commands to make compiler produce verbose output that lists
14156             # what "hidden" libraries, object files and flags are used when
14157             # linking a shared library.
14158             #
14159             # There doesn't appear to be a way to prevent this compiler from
14160             # explicitly linking system object files so we need to strip them
14161             # from the output so that they don't get included in the library
14162             # dependencies.
14163             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"'
14164
14165             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14166             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14167
14168             # Archives containing C++ object files must be created using
14169             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14170             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14171             ;;
14172           icpc* | ecpc* )
14173             # Intel C++
14174             with_gnu_ld=yes
14175             # version 8.0 and above of icpc choke on multiply defined symbols
14176             # if we add $predep_objects and $postdep_objects, however 7.1 and
14177             # earlier do not add the objects themselves.
14178             case `$CC -V 2>&1` in
14179               *"Version 7."*)
14180                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14181                 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'
14182                 ;;
14183               *)  # Version 8.0 or newer
14184                 tmp_idyn=
14185                 case $host_cpu in
14186                   ia64*) tmp_idyn=' -i_dynamic';;
14187                 esac
14188                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14189                 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'
14190                 ;;
14191             esac
14192             archive_cmds_need_lc_CXX=no
14193             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14194             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14195             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14196             ;;
14197           pgCC* | pgcpp*)
14198             # Portland Group C++ compiler
14199             case `$CC -V` in
14200             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14201               prelink_cmds_CXX='tpldir=Template.dir~
14202                rm -rf $tpldir~
14203                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14204                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14205               old_archive_cmds_CXX='tpldir=Template.dir~
14206                 rm -rf $tpldir~
14207                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14208                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14209                 $RANLIB $oldlib'
14210               archive_cmds_CXX='tpldir=Template.dir~
14211                 rm -rf $tpldir~
14212                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14213                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14214               archive_expsym_cmds_CXX='tpldir=Template.dir~
14215                 rm -rf $tpldir~
14216                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14217                 $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'
14218               ;;
14219             *) # Version 6 and above use weak symbols
14220               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14221               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'
14222               ;;
14223             esac
14224
14225             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14226             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14227             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'
14228             ;;
14229           cxx*)
14230             # Compaq C++
14231             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14232             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'
14233
14234             runpath_var=LD_RUN_PATH
14235             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14236             hardcode_libdir_separator_CXX=:
14237
14238             # Commands to make compiler produce verbose output that lists
14239             # what "hidden" libraries, object files and flags are used when
14240             # linking a shared library.
14241             #
14242             # There doesn't appear to be a way to prevent this compiler from
14243             # explicitly linking system object files so we need to strip them
14244             # from the output so that they don't get included in the library
14245             # dependencies.
14246             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'
14247             ;;
14248           xl* | mpixl* | bgxl*)
14249             # IBM XL 8.0 on PPC, with GNU ld
14250             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14251             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14252             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14253             if test yes = "$supports_anon_versioning"; then
14254               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14255                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14256                 echo "local: *; };" >> $output_objdir/$libname.ver~
14257                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14258             fi
14259             ;;
14260           *)
14261             case `$CC -V 2>&1 | sed 5q` in
14262             *Sun\ C*)
14263               # Sun C++ 5.9
14264               no_undefined_flag_CXX=' -zdefs'
14265               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14266               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'
14267               hardcode_libdir_flag_spec_CXX='-R$libdir'
14268               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'
14269               compiler_needs_object_CXX=yes
14270
14271               # Not sure whether something based on
14272               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14273               # would be better.
14274               output_verbose_link_cmd='func_echo_all'
14275
14276               # Archives containing C++ object files must be created using
14277               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14278               # necessary to make sure instantiated templates are included
14279               # in the archive.
14280               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14281               ;;
14282             esac
14283             ;;
14284         esac
14285         ;;
14286
14287       lynxos*)
14288         # FIXME: insert proper C++ library support
14289         ld_shlibs_CXX=no
14290         ;;
14291
14292       m88k*)
14293         # FIXME: insert proper C++ library support
14294         ld_shlibs_CXX=no
14295         ;;
14296
14297       mvs*)
14298         case $cc_basename in
14299           cxx*)
14300             # FIXME: insert proper C++ library support
14301             ld_shlibs_CXX=no
14302             ;;
14303           *)
14304             # FIXME: insert proper C++ library support
14305             ld_shlibs_CXX=no
14306             ;;
14307         esac
14308         ;;
14309
14310       netbsd*)
14311         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14313           wlarc=
14314           hardcode_libdir_flag_spec_CXX='-R$libdir'
14315           hardcode_direct_CXX=yes
14316           hardcode_shlibpath_var_CXX=no
14317         fi
14318         # Workaround some broken pre-1.5 toolchains
14319         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14320         ;;
14321
14322       *nto* | *qnx*)
14323         ld_shlibs_CXX=yes
14324         ;;
14325
14326       openbsd* | bitrig*)
14327         if test -f /usr/libexec/ld.so; then
14328           hardcode_direct_CXX=yes
14329           hardcode_shlibpath_var_CXX=no
14330           hardcode_direct_absolute_CXX=yes
14331           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14332           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14333           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14334             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14335             export_dynamic_flag_spec_CXX='$wl-E'
14336             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14337           fi
14338           output_verbose_link_cmd=func_echo_all
14339         else
14340           ld_shlibs_CXX=no
14341         fi
14342         ;;
14343
14344       osf3* | osf4* | osf5*)
14345         case $cc_basename in
14346           KCC*)
14347             # Kuck and Associates, Inc. (KAI) C++ Compiler
14348
14349             # KCC will only create a shared library if the output file
14350             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14351             # to its proper name (with version) after linking.
14352             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'
14353
14354             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14355             hardcode_libdir_separator_CXX=:
14356
14357             # Archives containing C++ object files must be created using
14358             # the KAI C++ compiler.
14359             case $host in
14360               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14361               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14362             esac
14363             ;;
14364           RCC*)
14365             # Rational C++ 2.4.1
14366             # FIXME: insert proper C++ library support
14367             ld_shlibs_CXX=no
14368             ;;
14369           cxx*)
14370             case $host in
14371               osf3*)
14372                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14373                 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'
14374                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14375                 ;;
14376               *)
14377                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14378                 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'
14379                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14380                   echo "-hidden">> $lib.exp~
14381                   $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~
14382                   $RM $lib.exp'
14383                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14384                 ;;
14385             esac
14386
14387             hardcode_libdir_separator_CXX=:
14388
14389             # Commands to make compiler produce verbose output that lists
14390             # what "hidden" libraries, object files and flags are used when
14391             # linking a shared library.
14392             #
14393             # There doesn't appear to be a way to prevent this compiler from
14394             # explicitly linking system object files so we need to strip them
14395             # from the output so that they don't get included in the library
14396             # dependencies.
14397             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"'
14398             ;;
14399           *)
14400             if test yes,no = "$GXX,$with_gnu_ld"; then
14401               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14402               case $host in
14403                 osf3*)
14404                   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'
14405                   ;;
14406                 *)
14407                   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'
14408                   ;;
14409               esac
14410
14411               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14412               hardcode_libdir_separator_CXX=:
14413
14414               # Commands to make compiler produce verbose output that lists
14415               # what "hidden" libraries, object files and flags are used when
14416               # linking a shared library.
14417               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14418
14419             else
14420               # FIXME: insert proper C++ library support
14421               ld_shlibs_CXX=no
14422             fi
14423             ;;
14424         esac
14425         ;;
14426
14427       psos*)
14428         # FIXME: insert proper C++ library support
14429         ld_shlibs_CXX=no
14430         ;;
14431
14432       sunos4*)
14433         case $cc_basename in
14434           CC*)
14435             # Sun C++ 4.x
14436             # FIXME: insert proper C++ library support
14437             ld_shlibs_CXX=no
14438             ;;
14439           lcc*)
14440             # Lucid
14441             # FIXME: insert proper C++ library support
14442             ld_shlibs_CXX=no
14443             ;;
14444           *)
14445             # FIXME: insert proper C++ library support
14446             ld_shlibs_CXX=no
14447             ;;
14448         esac
14449         ;;
14450
14451       solaris*)
14452         case $cc_basename in
14453           CC* | sunCC*)
14454             # Sun C++ 4.2, 5.x and Centerline C++
14455             archive_cmds_need_lc_CXX=yes
14456             no_undefined_flag_CXX=' -zdefs'
14457             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14458             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14459               $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'
14460
14461             hardcode_libdir_flag_spec_CXX='-R$libdir'
14462             hardcode_shlibpath_var_CXX=no
14463             case $host_os in
14464               solaris2.[0-5] | solaris2.[0-5].*) ;;
14465               *)
14466                 # The compiler driver will combine and reorder linker options,
14467                 # but understands '-z linker_flag'.
14468                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14469                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14470                 ;;
14471             esac
14472             link_all_deplibs_CXX=yes
14473
14474             output_verbose_link_cmd='func_echo_all'
14475
14476             # Archives containing C++ object files must be created using
14477             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14478             # necessary to make sure instantiated templates are included
14479             # in the archive.
14480             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14481             ;;
14482           gcx*)
14483             # Green Hills C++ Compiler
14484             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14485
14486             # The C++ compiler must be used to create the archive.
14487             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14488             ;;
14489           *)
14490             # GNU C++ compiler with Solaris linker
14491             if test yes,no = "$GXX,$with_gnu_ld"; then
14492               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14493               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14494                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14495                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14496                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14497
14498                 # Commands to make compiler produce verbose output that lists
14499                 # what "hidden" libraries, object files and flags are used when
14500                 # linking a shared library.
14501                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14502               else
14503                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14504                 # platform.
14505                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14506                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14507                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14508
14509                 # Commands to make compiler produce verbose output that lists
14510                 # what "hidden" libraries, object files and flags are used when
14511                 # linking a shared library.
14512                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14513               fi
14514
14515               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14516               case $host_os in
14517                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14518                 *)
14519                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14520                   ;;
14521               esac
14522             fi
14523             ;;
14524         esac
14525         ;;
14526
14527     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14528       no_undefined_flag_CXX='$wl-z,text'
14529       archive_cmds_need_lc_CXX=no
14530       hardcode_shlibpath_var_CXX=no
14531       runpath_var='LD_RUN_PATH'
14532
14533       case $cc_basename in
14534         CC*)
14535           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537           ;;
14538         *)
14539           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541           ;;
14542       esac
14543       ;;
14544
14545       sysv5* | sco3.2v5* | sco5v6*)
14546         # Note: We CANNOT use -z defs as we might desire, because we do not
14547         # link with -lc, and that would cause any symbols used from libc to
14548         # always be unresolved, which means just about no library would
14549         # ever link correctly.  If we're not using GNU ld we use -z text
14550         # though, which does catch some bad symbols but isn't as heavy-handed
14551         # as -z defs.
14552         no_undefined_flag_CXX='$wl-z,text'
14553         allow_undefined_flag_CXX='$wl-z,nodefs'
14554         archive_cmds_need_lc_CXX=no
14555         hardcode_shlibpath_var_CXX=no
14556         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14557         hardcode_libdir_separator_CXX=':'
14558         link_all_deplibs_CXX=yes
14559         export_dynamic_flag_spec_CXX='$wl-Bexport'
14560         runpath_var='LD_RUN_PATH'
14561
14562         case $cc_basename in
14563           CC*)
14564             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14567               '"$old_archive_cmds_CXX"
14568             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14569               '"$reload_cmds_CXX"
14570             ;;
14571           *)
14572             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14573             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574             ;;
14575         esac
14576       ;;
14577
14578       tandem*)
14579         case $cc_basename in
14580           NCC*)
14581             # NonStop-UX NCC 3.20
14582             # FIXME: insert proper C++ library support
14583             ld_shlibs_CXX=no
14584             ;;
14585           *)
14586             # FIXME: insert proper C++ library support
14587             ld_shlibs_CXX=no
14588             ;;
14589         esac
14590         ;;
14591
14592       vxworks*)
14593         # FIXME: insert proper C++ library support
14594         ld_shlibs_CXX=no
14595         ;;
14596
14597       *)
14598         # FIXME: insert proper C++ library support
14599         ld_shlibs_CXX=no
14600         ;;
14601     esac
14602
14603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14604 $as_echo "$ld_shlibs_CXX" >&6; }
14605     test no = "$ld_shlibs_CXX" && can_build_shared=no
14606
14607     GCC_CXX=$GXX
14608     LD_CXX=$LD
14609
14610     ## CAVEAT EMPTOR:
14611     ## There is no encapsulation within the following macros, do not change
14612     ## the running order or otherwise move them around unless you know exactly
14613     ## what you are doing...
14614     # Dependencies to place before and after the object being linked:
14615 predep_objects_CXX=
14616 postdep_objects_CXX=
14617 predeps_CXX=
14618 postdeps_CXX=
14619 compiler_lib_search_path_CXX=
14620
14621 cat > conftest.$ac_ext <<_LT_EOF
14622 class Foo
14623 {
14624 public:
14625   Foo (void) { a = 0; }
14626 private:
14627   int a;
14628 };
14629 _LT_EOF
14630
14631
14632 _lt_libdeps_save_CFLAGS=$CFLAGS
14633 case "$CC $CFLAGS " in #(
14634 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14635 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14636 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14637 esac
14638
14639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14640   (eval $ac_compile) 2>&5
14641   ac_status=$?
14642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643   test $ac_status = 0; }; then
14644   # Parse the compiler output and extract the necessary
14645   # objects, libraries and library flags.
14646
14647   # Sentinel used to keep track of whether or not we are before
14648   # the conftest object file.
14649   pre_test_object_deps_done=no
14650
14651   for p in `eval "$output_verbose_link_cmd"`; do
14652     case $prev$p in
14653
14654     -L* | -R* | -l*)
14655        # Some compilers place space between "-{L,R}" and the path.
14656        # Remove the space.
14657        if test x-L = "$p" ||
14658           test x-R = "$p"; then
14659          prev=$p
14660          continue
14661        fi
14662
14663        # Expand the sysroot to ease extracting the directories later.
14664        if test -z "$prev"; then
14665          case $p in
14666          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14667          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14668          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14669          esac
14670        fi
14671        case $p in
14672        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14673        esac
14674        if test no = "$pre_test_object_deps_done"; then
14675          case $prev in
14676          -L | -R)
14677            # Internal compiler library paths should come after those
14678            # provided the user.  The postdeps already come after the
14679            # user supplied libs so there is no need to process them.
14680            if test -z "$compiler_lib_search_path_CXX"; then
14681              compiler_lib_search_path_CXX=$prev$p
14682            else
14683              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14684            fi
14685            ;;
14686          # The "-l" case would never come before the object being
14687          # linked, so don't bother handling this case.
14688          esac
14689        else
14690          if test -z "$postdeps_CXX"; then
14691            postdeps_CXX=$prev$p
14692          else
14693            postdeps_CXX="${postdeps_CXX} $prev$p"
14694          fi
14695        fi
14696        prev=
14697        ;;
14698
14699     *.lto.$objext) ;; # Ignore GCC LTO objects
14700     *.$objext)
14701        # This assumes that the test object file only shows up
14702        # once in the compiler output.
14703        if test "$p" = "conftest.$objext"; then
14704          pre_test_object_deps_done=yes
14705          continue
14706        fi
14707
14708        if test no = "$pre_test_object_deps_done"; then
14709          if test -z "$predep_objects_CXX"; then
14710            predep_objects_CXX=$p
14711          else
14712            predep_objects_CXX="$predep_objects_CXX $p"
14713          fi
14714        else
14715          if test -z "$postdep_objects_CXX"; then
14716            postdep_objects_CXX=$p
14717          else
14718            postdep_objects_CXX="$postdep_objects_CXX $p"
14719          fi
14720        fi
14721        ;;
14722
14723     *) ;; # Ignore the rest.
14724
14725     esac
14726   done
14727
14728   # Clean up.
14729   rm -f a.out a.exe
14730 else
14731   echo "libtool.m4: error: problem compiling CXX test program"
14732 fi
14733
14734 $RM -f confest.$objext
14735 CFLAGS=$_lt_libdeps_save_CFLAGS
14736
14737 # PORTME: override above test on systems where it is broken
14738 case $host_os in
14739 interix[3-9]*)
14740   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14741   # hack all around it, let's just trust "g++" to DTRT.
14742   predep_objects_CXX=
14743   postdep_objects_CXX=
14744   postdeps_CXX=
14745   ;;
14746 esac
14747
14748
14749 case " $postdeps_CXX " in
14750 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14751 esac
14752  compiler_lib_search_dirs_CXX=
14753 if test -n "${compiler_lib_search_path_CXX}"; then
14754  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14755 fi
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787     lt_prog_compiler_wl_CXX=
14788 lt_prog_compiler_pic_CXX=
14789 lt_prog_compiler_static_CXX=
14790
14791
14792   # C++ specific cases for pic, static, wl, etc.
14793   if test yes = "$GXX"; then
14794     lt_prog_compiler_wl_CXX='-Wl,'
14795     lt_prog_compiler_static_CXX='-static'
14796
14797     case $host_os in
14798     aix*)
14799       # All AIX code is PIC.
14800       if test ia64 = "$host_cpu"; then
14801         # AIX 5 now supports IA64 processor
14802         lt_prog_compiler_static_CXX='-Bstatic'
14803       fi
14804       lt_prog_compiler_pic_CXX='-fPIC'
14805       ;;
14806
14807     amigaos*)
14808       case $host_cpu in
14809       powerpc)
14810             # see comment about AmigaOS4 .so support
14811             lt_prog_compiler_pic_CXX='-fPIC'
14812         ;;
14813       m68k)
14814             # FIXME: we need at least 68020 code to build shared libraries, but
14815             # adding the '-m68020' flag to GCC prevents building anything better,
14816             # like '-m68040'.
14817             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14818         ;;
14819       esac
14820       ;;
14821
14822     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14823       # PIC is the default for these OSes.
14824       ;;
14825     mingw* | cygwin* | os2* | pw32* | cegcc*)
14826       # This hack is so that the source file can tell whether it is being
14827       # built for inclusion in a dll (and should export symbols for example).
14828       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14829       # (--disable-auto-import) libraries
14830       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14831       case $host_os in
14832       os2*)
14833         lt_prog_compiler_static_CXX='$wl-static'
14834         ;;
14835       esac
14836       ;;
14837     darwin* | rhapsody*)
14838       # PIC is the default on this platform
14839       # Common symbols not allowed in MH_DYLIB files
14840       lt_prog_compiler_pic_CXX='-fno-common'
14841       ;;
14842     *djgpp*)
14843       # DJGPP does not support shared libraries at all
14844       lt_prog_compiler_pic_CXX=
14845       ;;
14846     haiku*)
14847       # PIC is the default for Haiku.
14848       # The "-static" flag exists, but is broken.
14849       lt_prog_compiler_static_CXX=
14850       ;;
14851     interix[3-9]*)
14852       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14853       # Instead, we relocate shared libraries at runtime.
14854       ;;
14855     sysv4*MP*)
14856       if test -d /usr/nec; then
14857         lt_prog_compiler_pic_CXX=-Kconform_pic
14858       fi
14859       ;;
14860     hpux*)
14861       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14862       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14863       # sets the default TLS model and affects inlining.
14864       case $host_cpu in
14865       hppa*64*)
14866         ;;
14867       *)
14868         lt_prog_compiler_pic_CXX='-fPIC'
14869         ;;
14870       esac
14871       ;;
14872     *qnx* | *nto*)
14873       # QNX uses GNU C++, but need to define -shared option too, otherwise
14874       # it will coredump.
14875       lt_prog_compiler_pic_CXX='-fPIC -shared'
14876       ;;
14877     *)
14878       lt_prog_compiler_pic_CXX='-fPIC'
14879       ;;
14880     esac
14881   else
14882     case $host_os in
14883       aix[4-9]*)
14884         # All AIX code is PIC.
14885         if test ia64 = "$host_cpu"; then
14886           # AIX 5 now supports IA64 processor
14887           lt_prog_compiler_static_CXX='-Bstatic'
14888         else
14889           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14890         fi
14891         ;;
14892       chorus*)
14893         case $cc_basename in
14894         cxch68*)
14895           # Green Hills C++ Compiler
14896           # _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"
14897           ;;
14898         esac
14899         ;;
14900       mingw* | cygwin* | os2* | pw32* | cegcc*)
14901         # This hack is so that the source file can tell whether it is being
14902         # built for inclusion in a dll (and should export symbols for example).
14903         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14904         ;;
14905       dgux*)
14906         case $cc_basename in
14907           ec++*)
14908             lt_prog_compiler_pic_CXX='-KPIC'
14909             ;;
14910           ghcx*)
14911             # Green Hills C++ Compiler
14912             lt_prog_compiler_pic_CXX='-pic'
14913             ;;
14914           *)
14915             ;;
14916         esac
14917         ;;
14918       freebsd* | dragonfly*)
14919         # FreeBSD uses GNU C++
14920         ;;
14921       hpux9* | hpux10* | hpux11*)
14922         case $cc_basename in
14923           CC*)
14924             lt_prog_compiler_wl_CXX='-Wl,'
14925             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14926             if test ia64 != "$host_cpu"; then
14927               lt_prog_compiler_pic_CXX='+Z'
14928             fi
14929             ;;
14930           aCC*)
14931             lt_prog_compiler_wl_CXX='-Wl,'
14932             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14933             case $host_cpu in
14934             hppa*64*|ia64*)
14935               # +Z the default
14936               ;;
14937             *)
14938               lt_prog_compiler_pic_CXX='+Z'
14939               ;;
14940             esac
14941             ;;
14942           *)
14943             ;;
14944         esac
14945         ;;
14946       interix*)
14947         # This is c89, which is MS Visual C++ (no shared libs)
14948         # Anyone wants to do a port?
14949         ;;
14950       irix5* | irix6* | nonstopux*)
14951         case $cc_basename in
14952           CC*)
14953             lt_prog_compiler_wl_CXX='-Wl,'
14954             lt_prog_compiler_static_CXX='-non_shared'
14955             # CC pic flag -KPIC is the default.
14956             ;;
14957           *)
14958             ;;
14959         esac
14960         ;;
14961       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14962         case $cc_basename in
14963           KCC*)
14964             # KAI C++ Compiler
14965             lt_prog_compiler_wl_CXX='--backend -Wl,'
14966             lt_prog_compiler_pic_CXX='-fPIC'
14967             ;;
14968           ecpc* )
14969             # old Intel C++ for x86_64, which still supported -KPIC.
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_pic_CXX='-KPIC'
14972             lt_prog_compiler_static_CXX='-static'
14973             ;;
14974           icpc* )
14975             # Intel C++, used to be incompatible with GCC.
14976             # ICC 10 doesn't accept -KPIC any more.
14977             lt_prog_compiler_wl_CXX='-Wl,'
14978             lt_prog_compiler_pic_CXX='-fPIC'
14979             lt_prog_compiler_static_CXX='-static'
14980             ;;
14981           pgCC* | pgcpp*)
14982             # Portland Group C++ compiler
14983             lt_prog_compiler_wl_CXX='-Wl,'
14984             lt_prog_compiler_pic_CXX='-fpic'
14985             lt_prog_compiler_static_CXX='-Bstatic'
14986             ;;
14987           cxx*)
14988             # Compaq C++
14989             # Make sure the PIC flag is empty.  It appears that all Alpha
14990             # Linux and Compaq Tru64 Unix objects are PIC.
14991             lt_prog_compiler_pic_CXX=
14992             lt_prog_compiler_static_CXX='-non_shared'
14993             ;;
14994           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14995             # IBM XL 8.0, 9.0 on PPC and BlueGene
14996             lt_prog_compiler_wl_CXX='-Wl,'
14997             lt_prog_compiler_pic_CXX='-qpic'
14998             lt_prog_compiler_static_CXX='-qstaticlink'
14999             ;;
15000           *)
15001             case `$CC -V 2>&1 | sed 5q` in
15002             *Sun\ C*)
15003               # Sun C++ 5.9
15004               lt_prog_compiler_pic_CXX='-KPIC'
15005               lt_prog_compiler_static_CXX='-Bstatic'
15006               lt_prog_compiler_wl_CXX='-Qoption ld '
15007               ;;
15008             esac
15009             ;;
15010         esac
15011         ;;
15012       lynxos*)
15013         ;;
15014       m88k*)
15015         ;;
15016       mvs*)
15017         case $cc_basename in
15018           cxx*)
15019             lt_prog_compiler_pic_CXX='-W c,exportall'
15020             ;;
15021           *)
15022             ;;
15023         esac
15024         ;;
15025       netbsd* | netbsdelf*-gnu)
15026         ;;
15027       *qnx* | *nto*)
15028         # QNX uses GNU C++, but need to define -shared option too, otherwise
15029         # it will coredump.
15030         lt_prog_compiler_pic_CXX='-fPIC -shared'
15031         ;;
15032       osf3* | osf4* | osf5*)
15033         case $cc_basename in
15034           KCC*)
15035             lt_prog_compiler_wl_CXX='--backend -Wl,'
15036             ;;
15037           RCC*)
15038             # Rational C++ 2.4.1
15039             lt_prog_compiler_pic_CXX='-pic'
15040             ;;
15041           cxx*)
15042             # Digital/Compaq C++
15043             lt_prog_compiler_wl_CXX='-Wl,'
15044             # Make sure the PIC flag is empty.  It appears that all Alpha
15045             # Linux and Compaq Tru64 Unix objects are PIC.
15046             lt_prog_compiler_pic_CXX=
15047             lt_prog_compiler_static_CXX='-non_shared'
15048             ;;
15049           *)
15050             ;;
15051         esac
15052         ;;
15053       psos*)
15054         ;;
15055       solaris*)
15056         case $cc_basename in
15057           CC* | sunCC*)
15058             # Sun C++ 4.2, 5.x and Centerline C++
15059             lt_prog_compiler_pic_CXX='-KPIC'
15060             lt_prog_compiler_static_CXX='-Bstatic'
15061             lt_prog_compiler_wl_CXX='-Qoption ld '
15062             ;;
15063           gcx*)
15064             # Green Hills C++ Compiler
15065             lt_prog_compiler_pic_CXX='-PIC'
15066             ;;
15067           *)
15068             ;;
15069         esac
15070         ;;
15071       sunos4*)
15072         case $cc_basename in
15073           CC*)
15074             # Sun C++ 4.x
15075             lt_prog_compiler_pic_CXX='-pic'
15076             lt_prog_compiler_static_CXX='-Bstatic'
15077             ;;
15078           lcc*)
15079             # Lucid
15080             lt_prog_compiler_pic_CXX='-pic'
15081             ;;
15082           *)
15083             ;;
15084         esac
15085         ;;
15086       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087         case $cc_basename in
15088           CC*)
15089             lt_prog_compiler_wl_CXX='-Wl,'
15090             lt_prog_compiler_pic_CXX='-KPIC'
15091             lt_prog_compiler_static_CXX='-Bstatic'
15092             ;;
15093         esac
15094         ;;
15095       tandem*)
15096         case $cc_basename in
15097           NCC*)
15098             # NonStop-UX NCC 3.20
15099             lt_prog_compiler_pic_CXX='-KPIC'
15100             ;;
15101           *)
15102             ;;
15103         esac
15104         ;;
15105       vxworks*)
15106         ;;
15107       *)
15108         lt_prog_compiler_can_build_shared_CXX=no
15109         ;;
15110     esac
15111   fi
15112
15113 case $host_os in
15114   # For platforms that do not support PIC, -DPIC is meaningless:
15115   *djgpp*)
15116     lt_prog_compiler_pic_CXX=
15117     ;;
15118   *)
15119     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15120     ;;
15121 esac
15122
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15124 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15125 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15126   $as_echo_n "(cached) " >&6
15127 else
15128   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15129 fi
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15131 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15132 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15133
15134 #
15135 # Check to make sure the PIC flag actually works.
15136 #
15137 if test -n "$lt_prog_compiler_pic_CXX"; then
15138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15139 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15140 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   lt_cv_prog_compiler_pic_works_CXX=no
15144    ac_outfile=conftest.$ac_objext
15145    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15146    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15147    # Insert the option either (1) after the last *FLAGS variable, or
15148    # (2) before a word containing "conftest.", or (3) at the end.
15149    # Note that $ac_compile itself does not contain backslashes and begins
15150    # with a dollar sign (not a hyphen), so the echo should work correctly.
15151    # The option is referenced via a variable to avoid confusing sed.
15152    lt_compile=`echo "$ac_compile" | $SED \
15153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15155    -e 's:$: $lt_compiler_flag:'`
15156    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15157    (eval "$lt_compile" 2>conftest.err)
15158    ac_status=$?
15159    cat conftest.err >&5
15160    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161    if (exit $ac_status) && test -s "$ac_outfile"; then
15162      # The compiler can only warn and ignore the option if not recognized
15163      # So say no if there are warnings other than the usual output.
15164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15165      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15166      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15167        lt_cv_prog_compiler_pic_works_CXX=yes
15168      fi
15169    fi
15170    $RM conftest*
15171
15172 fi
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15174 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15175
15176 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15177     case $lt_prog_compiler_pic_CXX in
15178      "" | " "*) ;;
15179      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15180      esac
15181 else
15182     lt_prog_compiler_pic_CXX=
15183      lt_prog_compiler_can_build_shared_CXX=no
15184 fi
15185
15186 fi
15187
15188
15189
15190
15191
15192 #
15193 # Check to make sure the static flag actually works.
15194 #
15195 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15197 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15198 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201   lt_cv_prog_compiler_static_works_CXX=no
15202    save_LDFLAGS=$LDFLAGS
15203    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15204    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15205    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15206      # The linker can only warn and ignore the option if not recognized
15207      # So say no if there are warnings
15208      if test -s conftest.err; then
15209        # Append any errors to the config.log.
15210        cat conftest.err 1>&5
15211        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15212        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15213        if diff conftest.exp conftest.er2 >/dev/null; then
15214          lt_cv_prog_compiler_static_works_CXX=yes
15215        fi
15216      else
15217        lt_cv_prog_compiler_static_works_CXX=yes
15218      fi
15219    fi
15220    $RM -r conftest*
15221    LDFLAGS=$save_LDFLAGS
15222
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15225 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15226
15227 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15228     :
15229 else
15230     lt_prog_compiler_static_CXX=
15231 fi
15232
15233
15234
15235
15236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15238 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15239   $as_echo_n "(cached) " >&6
15240 else
15241   lt_cv_prog_compiler_c_o_CXX=no
15242    $RM -r conftest 2>/dev/null
15243    mkdir conftest
15244    cd conftest
15245    mkdir out
15246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15247
15248    lt_compiler_flag="-o out/conftest2.$ac_objext"
15249    # Insert the option either (1) after the last *FLAGS variable, or
15250    # (2) before a word containing "conftest.", or (3) at the end.
15251    # Note that $ac_compile itself does not contain backslashes and begins
15252    # with a dollar sign (not a hyphen), so the echo should work correctly.
15253    lt_compile=`echo "$ac_compile" | $SED \
15254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15256    -e 's:$: $lt_compiler_flag:'`
15257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15258    (eval "$lt_compile" 2>out/conftest.err)
15259    ac_status=$?
15260    cat out/conftest.err >&5
15261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15263    then
15264      # The compiler can only warn and ignore the option if not recognized
15265      # So say no if there are warnings
15266      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15269        lt_cv_prog_compiler_c_o_CXX=yes
15270      fi
15271    fi
15272    chmod u+w . 2>&5
15273    $RM conftest*
15274    # SGI C++ compiler will create directory out/ii_files/ for
15275    # template instantiation
15276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15277    $RM out/* && rmdir out
15278    cd ..
15279    $RM -r conftest
15280    $RM conftest*
15281
15282 fi
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15284 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15285
15286
15287
15288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15290 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15291   $as_echo_n "(cached) " >&6
15292 else
15293   lt_cv_prog_compiler_c_o_CXX=no
15294    $RM -r conftest 2>/dev/null
15295    mkdir conftest
15296    cd conftest
15297    mkdir out
15298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15299
15300    lt_compiler_flag="-o out/conftest2.$ac_objext"
15301    # Insert the option either (1) after the last *FLAGS variable, or
15302    # (2) before a word containing "conftest.", or (3) at the end.
15303    # Note that $ac_compile itself does not contain backslashes and begins
15304    # with a dollar sign (not a hyphen), so the echo should work correctly.
15305    lt_compile=`echo "$ac_compile" | $SED \
15306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308    -e 's:$: $lt_compiler_flag:'`
15309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15310    (eval "$lt_compile" 2>out/conftest.err)
15311    ac_status=$?
15312    cat out/conftest.err >&5
15313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15315    then
15316      # The compiler can only warn and ignore the option if not recognized
15317      # So say no if there are warnings
15318      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15321        lt_cv_prog_compiler_c_o_CXX=yes
15322      fi
15323    fi
15324    chmod u+w . 2>&5
15325    $RM conftest*
15326    # SGI C++ compiler will create directory out/ii_files/ for
15327    # template instantiation
15328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15329    $RM out/* && rmdir out
15330    cd ..
15331    $RM -r conftest
15332    $RM conftest*
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15337
15338
15339
15340
15341 hard_links=nottested
15342 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15343   # do not overwrite the value of need_locks provided by the user
15344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15345 $as_echo_n "checking if we can lock with hard links... " >&6; }
15346   hard_links=yes
15347   $RM conftest*
15348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15349   touch conftest.a
15350   ln conftest.a conftest.b 2>&5 || hard_links=no
15351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15353 $as_echo "$hard_links" >&6; }
15354   if test no = "$hard_links"; then
15355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15356 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15357     need_locks=warn
15358   fi
15359 else
15360   need_locks=no
15361 fi
15362
15363
15364
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15367
15368   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15369   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15370   case $host_os in
15371   aix[4-9]*)
15372     # If we're using GNU nm, then we don't want the "-C" option.
15373     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15374     # Without the "-l" option, or with the "-B" option, AIX nm treats
15375     # weak defined symbols like other global defined symbols, whereas
15376     # GNU nm marks them as "W".
15377     # While the 'weak' keyword is ignored in the Export File, we need
15378     # it in the Import File for the 'aix-soname' feature, so we have
15379     # to replace the "-B" option with "-P" for AIX nm.
15380     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15381       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15382     else
15383       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15384     fi
15385     ;;
15386   pw32*)
15387     export_symbols_cmds_CXX=$ltdll_cmds
15388     ;;
15389   cygwin* | mingw* | cegcc*)
15390     case $cc_basename in
15391     cl*)
15392       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15393       ;;
15394     *)
15395       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'
15396       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15397       ;;
15398     esac
15399     ;;
15400   linux* | k*bsd*-gnu | gnu*)
15401     link_all_deplibs_CXX=no
15402     ;;
15403   *)
15404     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15405     ;;
15406   esac
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15409 $as_echo "$ld_shlibs_CXX" >&6; }
15410 test no = "$ld_shlibs_CXX" && can_build_shared=no
15411
15412 with_gnu_ld_CXX=$with_gnu_ld
15413
15414
15415
15416
15417
15418
15419 #
15420 # Do we need to explicitly link libc?
15421 #
15422 case "x$archive_cmds_need_lc_CXX" in
15423 x|xyes)
15424   # Assume -lc should be added
15425   archive_cmds_need_lc_CXX=yes
15426
15427   if test yes,yes = "$GCC,$enable_shared"; then
15428     case $archive_cmds_CXX in
15429     *'~'*)
15430       # FIXME: we may have to deal with multi-command sequences.
15431       ;;
15432     '$CC '*)
15433       # Test whether the compiler implicitly links with -lc since on some
15434       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15435       # to ld, don't add -lc before -lgcc.
15436       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15437 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15438 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15439   $as_echo_n "(cached) " >&6
15440 else
15441   $RM conftest*
15442         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15443
15444         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15445   (eval $ac_compile) 2>&5
15446   ac_status=$?
15447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15448   test $ac_status = 0; } 2>conftest.err; then
15449           soname=conftest
15450           lib=conftest
15451           libobjs=conftest.$ac_objext
15452           deplibs=
15453           wl=$lt_prog_compiler_wl_CXX
15454           pic_flag=$lt_prog_compiler_pic_CXX
15455           compiler_flags=-v
15456           linker_flags=-v
15457           verstring=
15458           output_objdir=.
15459           libname=conftest
15460           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15461           allow_undefined_flag_CXX=
15462           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15463   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15464   ac_status=$?
15465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15466   test $ac_status = 0; }
15467           then
15468             lt_cv_archive_cmds_need_lc_CXX=no
15469           else
15470             lt_cv_archive_cmds_need_lc_CXX=yes
15471           fi
15472           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15473         else
15474           cat conftest.err 1>&5
15475         fi
15476         $RM conftest*
15477
15478 fi
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15480 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15481       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15482       ;;
15483     esac
15484   fi
15485   ;;
15486 esac
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15550 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15551
15552 library_names_spec=
15553 libname_spec='lib$name'
15554 soname_spec=
15555 shrext_cmds=.so
15556 postinstall_cmds=
15557 postuninstall_cmds=
15558 finish_cmds=
15559 finish_eval=
15560 shlibpath_var=
15561 shlibpath_overrides_runpath=unknown
15562 version_type=none
15563 dynamic_linker="$host_os ld.so"
15564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15565 need_lib_prefix=unknown
15566 hardcode_into_libs=no
15567
15568 # when you set need_version to no, make sure it does not cause -set_version
15569 # flags to be left without arguments
15570 need_version=unknown
15571
15572
15573
15574 case $host_os in
15575 aix3*)
15576   version_type=linux # correct to gnu/linux during the next big refactor
15577   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15578   shlibpath_var=LIBPATH
15579
15580   # AIX 3 has no versioning support, so we append a major version to the name.
15581   soname_spec='$libname$release$shared_ext$major'
15582   ;;
15583
15584 aix[4-9]*)
15585   version_type=linux # correct to gnu/linux during the next big refactor
15586   need_lib_prefix=no
15587   need_version=no
15588   hardcode_into_libs=yes
15589   if test ia64 = "$host_cpu"; then
15590     # AIX 5 supports IA64
15591     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15592     shlibpath_var=LD_LIBRARY_PATH
15593   else
15594     # With GCC up to 2.95.x, collect2 would create an import file
15595     # for dependence libraries.  The import file would start with
15596     # the line '#! .'.  This would cause the generated library to
15597     # depend on '.', always an invalid library.  This was fixed in
15598     # development snapshots of GCC prior to 3.0.
15599     case $host_os in
15600       aix4 | aix4.[01] | aix4.[01].*)
15601       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15602            echo ' yes '
15603            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15604         :
15605       else
15606         can_build_shared=no
15607       fi
15608       ;;
15609     esac
15610     # Using Import Files as archive members, it is possible to support
15611     # filename-based versioning of shared library archives on AIX. While
15612     # this would work for both with and without runtime linking, it will
15613     # prevent static linking of such archives. So we do filename-based
15614     # shared library versioning with .so extension only, which is used
15615     # when both runtime linking and shared linking is enabled.
15616     # Unfortunately, runtime linking may impact performance, so we do
15617     # not want this to be the default eventually. Also, we use the
15618     # versioned .so libs for executables only if there is the -brtl
15619     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15620     # To allow for filename-based versioning support, we need to create
15621     # libNAME.so.V as an archive file, containing:
15622     # *) an Import File, referring to the versioned filename of the
15623     #    archive as well as the shared archive member, telling the
15624     #    bitwidth (32 or 64) of that shared object, and providing the
15625     #    list of exported symbols of that shared object, eventually
15626     #    decorated with the 'weak' keyword
15627     # *) the shared object with the F_LOADONLY flag set, to really avoid
15628     #    it being seen by the linker.
15629     # At run time we better use the real file rather than another symlink,
15630     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15631
15632     case $with_aix_soname,$aix_use_runtimelinking in
15633     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15634     # soname into executable. Probably we can add versioning support to
15635     # collect2, so additional links can be useful in future.
15636     aix,yes) # traditional libtool
15637       dynamic_linker='AIX unversionable lib.so'
15638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639       # instead of lib<name>.a to let people know that these are not
15640       # typical AIX shared libraries.
15641       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15642       ;;
15643     aix,no) # traditional AIX only
15644       dynamic_linker='AIX lib.a(lib.so.V)'
15645       # We preserve .a as extension for shared libraries through AIX4.2
15646       # and later when we are not doing run time linking.
15647       library_names_spec='$libname$release.a $libname.a'
15648       soname_spec='$libname$release$shared_ext$major'
15649       ;;
15650     svr4,*) # full svr4 only
15651       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15652       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15653       # We do not specify a path in Import Files, so LIBPATH fires.
15654       shlibpath_overrides_runpath=yes
15655       ;;
15656     *,yes) # both, prefer svr4
15657       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15658       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15659       # unpreferred sharedlib libNAME.a needs extra handling
15660       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15661       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15662       # We do not specify a path in Import Files, so LIBPATH fires.
15663       shlibpath_overrides_runpath=yes
15664       ;;
15665     *,no) # both, prefer aix
15666       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15667       library_names_spec='$libname$release.a $libname.a'
15668       soname_spec='$libname$release$shared_ext$major'
15669       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15670       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15671       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15672       ;;
15673     esac
15674     shlibpath_var=LIBPATH
15675   fi
15676   ;;
15677
15678 amigaos*)
15679   case $host_cpu in
15680   powerpc)
15681     # Since July 2007 AmigaOS4 officially supports .so libraries.
15682     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15683     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15684     ;;
15685   m68k)
15686     library_names_spec='$libname.ixlibrary $libname.a'
15687     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15688     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15689     ;;
15690   esac
15691   ;;
15692
15693 beos*)
15694   library_names_spec='$libname$shared_ext'
15695   dynamic_linker="$host_os ld.so"
15696   shlibpath_var=LIBRARY_PATH
15697   ;;
15698
15699 bsdi[45]*)
15700   version_type=linux # correct to gnu/linux during the next big refactor
15701   need_version=no
15702   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15703   soname_spec='$libname$release$shared_ext$major'
15704   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15705   shlibpath_var=LD_LIBRARY_PATH
15706   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15707   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15708   # the default ld.so.conf also contains /usr/contrib/lib and
15709   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15710   # libtool to hard-code these into programs
15711   ;;
15712
15713 cygwin* | mingw* | pw32* | cegcc*)
15714   version_type=windows
15715   shrext_cmds=.dll
15716   need_version=no
15717   need_lib_prefix=no
15718
15719   case $GCC,$cc_basename in
15720   yes,*)
15721     # gcc
15722     library_names_spec='$libname.dll.a'
15723     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15724     postinstall_cmds='base_file=`basename \$file`~
15725       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15726       dldir=$destdir/`dirname \$dlpath`~
15727       test -d \$dldir || mkdir -p \$dldir~
15728       $install_prog $dir/$dlname \$dldir/$dlname~
15729       chmod a+x \$dldir/$dlname~
15730       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15731         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15732       fi'
15733     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15734       dlpath=$dir/\$dldll~
15735        $RM \$dlpath'
15736     shlibpath_overrides_runpath=yes
15737
15738     case $host_os in
15739     cygwin*)
15740       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15741       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15742
15743       ;;
15744     mingw* | cegcc*)
15745       # MinGW DLLs use traditional 'lib' prefix
15746       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15747       ;;
15748     pw32*)
15749       # pw32 DLLs use 'pw' prefix rather than 'lib'
15750       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15751       ;;
15752     esac
15753     dynamic_linker='Win32 ld.exe'
15754     ;;
15755
15756   *,cl*)
15757     # Native MSVC
15758     libname_spec='$name'
15759     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15760     library_names_spec='$libname.dll.lib'
15761
15762     case $build_os in
15763     mingw*)
15764       sys_lib_search_path_spec=
15765       lt_save_ifs=$IFS
15766       IFS=';'
15767       for lt_path in $LIB
15768       do
15769         IFS=$lt_save_ifs
15770         # Let DOS variable expansion print the short 8.3 style file name.
15771         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15772         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15773       done
15774       IFS=$lt_save_ifs
15775       # Convert to MSYS style.
15776       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15777       ;;
15778     cygwin*)
15779       # Convert to unix form, then to dos form, then back to unix form
15780       # but this time dos style (no spaces!) so that the unix form looks
15781       # like /cygdrive/c/PROGRA~1:/cygdr...
15782       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15783       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15784       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15785       ;;
15786     *)
15787       sys_lib_search_path_spec=$LIB
15788       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15789         # It is most probably a Windows format PATH.
15790         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15791       else
15792         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15793       fi
15794       # FIXME: find the short name or the path components, as spaces are
15795       # common. (e.g. "Program Files" -> "PROGRA~1")
15796       ;;
15797     esac
15798
15799     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15800     postinstall_cmds='base_file=`basename \$file`~
15801       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15802       dldir=$destdir/`dirname \$dlpath`~
15803       test -d \$dldir || mkdir -p \$dldir~
15804       $install_prog $dir/$dlname \$dldir/$dlname'
15805     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15806       dlpath=$dir/\$dldll~
15807        $RM \$dlpath'
15808     shlibpath_overrides_runpath=yes
15809     dynamic_linker='Win32 link.exe'
15810     ;;
15811
15812   *)
15813     # Assume MSVC wrapper
15814     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15815     dynamic_linker='Win32 ld.exe'
15816     ;;
15817   esac
15818   # FIXME: first we should search . and the directory the executable is in
15819   shlibpath_var=PATH
15820   ;;
15821
15822 darwin* | rhapsody*)
15823   dynamic_linker="$host_os dyld"
15824   version_type=darwin
15825   need_lib_prefix=no
15826   need_version=no
15827   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15828   soname_spec='$libname$release$major$shared_ext'
15829   shlibpath_overrides_runpath=yes
15830   shlibpath_var=DYLD_LIBRARY_PATH
15831   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15832
15833   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15834   ;;
15835
15836 dgux*)
15837   version_type=linux # correct to gnu/linux during the next big refactor
15838   need_lib_prefix=no
15839   need_version=no
15840   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15841   soname_spec='$libname$release$shared_ext$major'
15842   shlibpath_var=LD_LIBRARY_PATH
15843   ;;
15844
15845 freebsd* | dragonfly*)
15846   # DragonFly does not have aout.  When/if they implement a new
15847   # versioning mechanism, adjust this.
15848   if test -x /usr/bin/objformat; then
15849     objformat=`/usr/bin/objformat`
15850   else
15851     case $host_os in
15852     freebsd[23].*) objformat=aout ;;
15853     *) objformat=elf ;;
15854     esac
15855   fi
15856   version_type=freebsd-$objformat
15857   case $version_type in
15858     freebsd-elf*)
15859       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15860       soname_spec='$libname$release$shared_ext$major'
15861       need_version=no
15862       need_lib_prefix=no
15863       ;;
15864     freebsd-*)
15865       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15866       need_version=yes
15867       ;;
15868   esac
15869   shlibpath_var=LD_LIBRARY_PATH
15870   case $host_os in
15871   freebsd2.*)
15872     shlibpath_overrides_runpath=yes
15873     ;;
15874   freebsd3.[01]* | freebsdelf3.[01]*)
15875     shlibpath_overrides_runpath=yes
15876     hardcode_into_libs=yes
15877     ;;
15878   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15879   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15880     shlibpath_overrides_runpath=no
15881     hardcode_into_libs=yes
15882     ;;
15883   *) # from 4.6 on, and DragonFly
15884     shlibpath_overrides_runpath=yes
15885     hardcode_into_libs=yes
15886     ;;
15887   esac
15888   ;;
15889
15890 haiku*)
15891   version_type=linux # correct to gnu/linux during the next big refactor
15892   need_lib_prefix=no
15893   need_version=no
15894   dynamic_linker="$host_os runtime_loader"
15895   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15896   soname_spec='$libname$release$shared_ext$major'
15897   shlibpath_var=LIBRARY_PATH
15898   shlibpath_overrides_runpath=no
15899   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15900   hardcode_into_libs=yes
15901   ;;
15902
15903 hpux9* | hpux10* | hpux11*)
15904   # Give a soname corresponding to the major version so that dld.sl refuses to
15905   # link against other versions.
15906   version_type=sunos
15907   need_lib_prefix=no
15908   need_version=no
15909   case $host_cpu in
15910   ia64*)
15911     shrext_cmds='.so'
15912     hardcode_into_libs=yes
15913     dynamic_linker="$host_os dld.so"
15914     shlibpath_var=LD_LIBRARY_PATH
15915     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15916     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15917     soname_spec='$libname$release$shared_ext$major'
15918     if test 32 = "$HPUX_IA64_MODE"; then
15919       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15920       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15921     else
15922       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15923       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15924     fi
15925     ;;
15926   hppa*64*)
15927     shrext_cmds='.sl'
15928     hardcode_into_libs=yes
15929     dynamic_linker="$host_os dld.sl"
15930     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15931     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15932     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15933     soname_spec='$libname$release$shared_ext$major'
15934     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15935     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15936     ;;
15937   *)
15938     shrext_cmds='.sl'
15939     dynamic_linker="$host_os dld.sl"
15940     shlibpath_var=SHLIB_PATH
15941     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15942     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15943     soname_spec='$libname$release$shared_ext$major'
15944     ;;
15945   esac
15946   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15947   postinstall_cmds='chmod 555 $lib'
15948   # or fails outright, so override atomically:
15949   install_override_mode=555
15950   ;;
15951
15952 interix[3-9]*)
15953   version_type=linux # correct to gnu/linux during the next big refactor
15954   need_lib_prefix=no
15955   need_version=no
15956   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15957   soname_spec='$libname$release$shared_ext$major'
15958   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15959   shlibpath_var=LD_LIBRARY_PATH
15960   shlibpath_overrides_runpath=no
15961   hardcode_into_libs=yes
15962   ;;
15963
15964 irix5* | irix6* | nonstopux*)
15965   case $host_os in
15966     nonstopux*) version_type=nonstopux ;;
15967     *)
15968         if test yes = "$lt_cv_prog_gnu_ld"; then
15969                 version_type=linux # correct to gnu/linux during the next big refactor
15970         else
15971                 version_type=irix
15972         fi ;;
15973   esac
15974   need_lib_prefix=no
15975   need_version=no
15976   soname_spec='$libname$release$shared_ext$major'
15977   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15978   case $host_os in
15979   irix5* | nonstopux*)
15980     libsuff= shlibsuff=
15981     ;;
15982   *)
15983     case $LD in # libtool.m4 will add one of these switches to LD
15984     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15985       libsuff= shlibsuff= libmagic=32-bit;;
15986     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15987       libsuff=32 shlibsuff=N32 libmagic=N32;;
15988     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15989       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15990     *) libsuff= shlibsuff= libmagic=never-match;;
15991     esac
15992     ;;
15993   esac
15994   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15995   shlibpath_overrides_runpath=no
15996   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15997   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15998   hardcode_into_libs=yes
15999   ;;
16000
16001 # No shared lib support for Linux oldld, aout, or coff.
16002 linux*oldld* | linux*aout* | linux*coff*)
16003   dynamic_linker=no
16004   ;;
16005
16006 linux*android*)
16007   version_type=none # Android doesn't support versioned libraries.
16008   need_lib_prefix=no
16009   need_version=no
16010   library_names_spec='$libname$release$shared_ext'
16011   soname_spec='$libname$release$shared_ext'
16012   finish_cmds=
16013   shlibpath_var=LD_LIBRARY_PATH
16014   shlibpath_overrides_runpath=yes
16015
16016   # This implies no fast_install, which is unacceptable.
16017   # Some rework will be needed to allow for fast_install
16018   # before this can be enabled.
16019   hardcode_into_libs=yes
16020
16021   dynamic_linker='Android linker'
16022   # Don't embed -rpath directories since the linker doesn't support them.
16023   hardcode_libdir_flag_spec_CXX='-L$libdir'
16024   ;;
16025
16026 # This must be glibc/ELF.
16027 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16028   version_type=linux # correct to gnu/linux during the next big refactor
16029   need_lib_prefix=no
16030   need_version=no
16031   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032   soname_spec='$libname$release$shared_ext$major'
16033   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16034   shlibpath_var=LD_LIBRARY_PATH
16035   shlibpath_overrides_runpath=no
16036
16037   # Some binutils ld are patched to set DT_RUNPATH
16038   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   lt_cv_shlibpath_overrides_runpath=no
16042     save_LDFLAGS=$LDFLAGS
16043     save_libdir=$libdir
16044     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16045          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h.  */
16048
16049 int
16050 main ()
16051 {
16052
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 if ac_fn_cxx_try_link "$LINENO"; then :
16058   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16059   lt_cv_shlibpath_overrides_runpath=yes
16060 fi
16061 fi
16062 rm -f core conftest.err conftest.$ac_objext \
16063     conftest$ac_exeext conftest.$ac_ext
16064     LDFLAGS=$save_LDFLAGS
16065     libdir=$save_libdir
16066
16067 fi
16068
16069   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16070
16071   # This implies no fast_install, which is unacceptable.
16072   # Some rework will be needed to allow for fast_install
16073   # before this can be enabled.
16074   hardcode_into_libs=yes
16075
16076   # Ideally, we could use ldconfig to report *all* directores which are
16077   # searched for libraries, however this is still not possible.  Aside from not
16078   # being certain /sbin/ldconfig is available, command
16079   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16080   # even though it is searched at run-time.  Try to do the best guess by
16081   # appending ld.so.conf contents (and includes) to the search path.
16082   if test -f /etc/ld.so.conf; then
16083     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' ' '`
16084     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16085   fi
16086
16087   # We used to test for /lib/ld.so.1 and disable shared libraries on
16088   # powerpc, because MkLinux only supported shared libraries with the
16089   # GNU dynamic linker.  Since this was broken with cross compilers,
16090   # most powerpc-linux boxes support dynamic linking these days and
16091   # people can always --disable-shared, the test was removed, and we
16092   # assume the GNU/Linux dynamic linker is in use.
16093   dynamic_linker='GNU/Linux ld.so'
16094   ;;
16095
16096 netbsdelf*-gnu)
16097   version_type=linux
16098   need_lib_prefix=no
16099   need_version=no
16100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16101   soname_spec='${libname}${release}${shared_ext}$major'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   shlibpath_overrides_runpath=no
16104   hardcode_into_libs=yes
16105   dynamic_linker='NetBSD ld.elf_so'
16106   ;;
16107
16108 netbsd*)
16109   version_type=sunos
16110   need_lib_prefix=no
16111   need_version=no
16112   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16113     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16114     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16115     dynamic_linker='NetBSD (a.out) ld.so'
16116   else
16117     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16118     soname_spec='$libname$release$shared_ext$major'
16119     dynamic_linker='NetBSD ld.elf_so'
16120   fi
16121   shlibpath_var=LD_LIBRARY_PATH
16122   shlibpath_overrides_runpath=yes
16123   hardcode_into_libs=yes
16124   ;;
16125
16126 newsos6)
16127   version_type=linux # correct to gnu/linux during the next big refactor
16128   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   shlibpath_overrides_runpath=yes
16131   ;;
16132
16133 *nto* | *qnx*)
16134   version_type=qnx
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16138   soname_spec='$libname$release$shared_ext$major'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   shlibpath_overrides_runpath=no
16141   hardcode_into_libs=yes
16142   dynamic_linker='ldqnx.so'
16143   ;;
16144
16145 openbsd* | bitrig*)
16146   version_type=sunos
16147   sys_lib_dlsearch_path_spec=/usr/lib
16148   need_lib_prefix=no
16149   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16150     need_version=no
16151   else
16152     need_version=yes
16153   fi
16154   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=yes
16158   ;;
16159
16160 os2*)
16161   libname_spec='$name'
16162   version_type=windows
16163   shrext_cmds=.dll
16164   need_version=no
16165   need_lib_prefix=no
16166   # OS/2 can only load a DLL with a base name of 8 characters or less.
16167   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16168     v=$($ECHO $release$versuffix | tr -d .-);
16169     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16170     $ECHO $n$v`$shared_ext'
16171   library_names_spec='${libname}_dll.$libext'
16172   dynamic_linker='OS/2 ld.exe'
16173   shlibpath_var=BEGINLIBPATH
16174   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16175   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16176   postinstall_cmds='base_file=`basename \$file`~
16177     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16178     dldir=$destdir/`dirname \$dlpath`~
16179     test -d \$dldir || mkdir -p \$dldir~
16180     $install_prog $dir/$dlname \$dldir/$dlname~
16181     chmod a+x \$dldir/$dlname~
16182     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16183       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16184     fi'
16185   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16186     dlpath=$dir/\$dldll~
16187     $RM \$dlpath'
16188   ;;
16189
16190 osf3* | osf4* | osf5*)
16191   version_type=osf
16192   need_lib_prefix=no
16193   need_version=no
16194   soname_spec='$libname$release$shared_ext$major'
16195   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16198   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16199   ;;
16200
16201 rdos*)
16202   dynamic_linker=no
16203   ;;
16204
16205 solaris*)
16206   version_type=linux # correct to gnu/linux during the next big refactor
16207   need_lib_prefix=no
16208   need_version=no
16209   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16210   soname_spec='$libname$release$shared_ext$major'
16211   shlibpath_var=LD_LIBRARY_PATH
16212   shlibpath_overrides_runpath=yes
16213   hardcode_into_libs=yes
16214   # ldd complains unless libraries are executable
16215   postinstall_cmds='chmod +x $lib'
16216   ;;
16217
16218 sunos4*)
16219   version_type=sunos
16220   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16221   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16222   shlibpath_var=LD_LIBRARY_PATH
16223   shlibpath_overrides_runpath=yes
16224   if test yes = "$with_gnu_ld"; then
16225     need_lib_prefix=no
16226   fi
16227   need_version=yes
16228   ;;
16229
16230 sysv4 | sysv4.3*)
16231   version_type=linux # correct to gnu/linux during the next big refactor
16232   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16233   soname_spec='$libname$release$shared_ext$major'
16234   shlibpath_var=LD_LIBRARY_PATH
16235   case $host_vendor in
16236     sni)
16237       shlibpath_overrides_runpath=no
16238       need_lib_prefix=no
16239       runpath_var=LD_RUN_PATH
16240       ;;
16241     siemens)
16242       need_lib_prefix=no
16243       ;;
16244     motorola)
16245       need_lib_prefix=no
16246       need_version=no
16247       shlibpath_overrides_runpath=no
16248       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16249       ;;
16250   esac
16251   ;;
16252
16253 sysv4*MP*)
16254   if test -d /usr/nec; then
16255     version_type=linux # correct to gnu/linux during the next big refactor
16256     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16257     soname_spec='$libname$shared_ext.$major'
16258     shlibpath_var=LD_LIBRARY_PATH
16259   fi
16260   ;;
16261
16262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16263   version_type=sco
16264   need_lib_prefix=no
16265   need_version=no
16266   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16267   soname_spec='$libname$release$shared_ext$major'
16268   shlibpath_var=LD_LIBRARY_PATH
16269   shlibpath_overrides_runpath=yes
16270   hardcode_into_libs=yes
16271   if test yes = "$with_gnu_ld"; then
16272     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16273   else
16274     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16275     case $host_os in
16276       sco3.2v5*)
16277         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16278         ;;
16279     esac
16280   fi
16281   sys_lib_dlsearch_path_spec='/usr/lib'
16282   ;;
16283
16284 tpf*)
16285   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16286   version_type=linux # correct to gnu/linux during the next big refactor
16287   need_lib_prefix=no
16288   need_version=no
16289   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   shlibpath_overrides_runpath=no
16292   hardcode_into_libs=yes
16293   ;;
16294
16295 uts4*)
16296   version_type=linux # correct to gnu/linux during the next big refactor
16297   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16298   soname_spec='$libname$release$shared_ext$major'
16299   shlibpath_var=LD_LIBRARY_PATH
16300   ;;
16301
16302 *)
16303   dynamic_linker=no
16304   ;;
16305 esac
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16307 $as_echo "$dynamic_linker" >&6; }
16308 test no = "$dynamic_linker" && can_build_shared=no
16309
16310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16311 if test yes = "$GCC"; then
16312   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16313 fi
16314
16315 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16316   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16317 fi
16318
16319 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16320   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16321 fi
16322
16323 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16324 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16325
16326 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16327 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16328
16329 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16330 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16372 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16373 hardcode_action_CXX=
16374 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16375    test -n "$runpath_var_CXX" ||
16376    test yes = "$hardcode_automatic_CXX"; then
16377
16378   # We can hardcode non-existent directories.
16379   if test no != "$hardcode_direct_CXX" &&
16380      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16381      # have to relink, otherwise we might link with an installed library
16382      # when we should be linking with a yet-to-be-installed one
16383      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16384      test no != "$hardcode_minus_L_CXX"; then
16385     # Linking always hardcodes the temporary library directory.
16386     hardcode_action_CXX=relink
16387   else
16388     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16389     hardcode_action_CXX=immediate
16390   fi
16391 else
16392   # We cannot hardcode anything, or else we can only hardcode existing
16393   # directories.
16394   hardcode_action_CXX=unsupported
16395 fi
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16397 $as_echo "$hardcode_action_CXX" >&6; }
16398
16399 if test relink = "$hardcode_action_CXX" ||
16400    test yes = "$inherit_rpath_CXX"; then
16401   # Fast installation is not supported
16402   enable_fast_install=no
16403 elif test yes = "$shlibpath_overrides_runpath" ||
16404      test no = "$enable_shared"; then
16405   # Fast installation is not necessary
16406   enable_fast_install=needless
16407 fi
16408
16409
16410
16411
16412
16413
16414
16415   fi # test -n "$compiler"
16416
16417   CC=$lt_save_CC
16418   CFLAGS=$lt_save_CFLAGS
16419   LDCXX=$LD
16420   LD=$lt_save_LD
16421   GCC=$lt_save_GCC
16422   with_gnu_ld=$lt_save_with_gnu_ld
16423   lt_cv_path_LDCXX=$lt_cv_path_LD
16424   lt_cv_path_LD=$lt_save_path_LD
16425   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16426   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16427 fi # test yes != "$_lt_caught_CXX_error"
16428
16429 ac_ext=c
16430 ac_cpp='$CPP $CPPFLAGS'
16431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434
16435
16436 ac_config_headers="$ac_config_headers config.h"
16437
16438 for ac_header in stdarg.h stdio.h stdint.h sys/param.h stdlib.h
16439 do :
16440   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16441 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16443   cat >>confdefs.h <<_ACEOF
16444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16445 _ACEOF
16446
16447 fi
16448
16449 done
16450
16451 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
16452 if test "x$ac_cv_func_vasprintf" = xyes; then :
16453   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
16454
16455 else
16456   case " $LIBOBJS " in
16457   *" vasprintf.$ac_objext "* ) ;;
16458   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
16459  ;;
16460 esac
16461
16462 fi
16463
16464
16465 for ac_func in  secure_getenv
16466 do :
16467   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16469 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16470   cat >>confdefs.h <<_ACEOF
16471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16472 _ACEOF
16473
16474 fi
16475 done
16476
16477
16478
16479 reauth=no
16480 # Check whether --enable-reauth was given.
16481 if test "${enable_reauth+set}" = set; then :
16482   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
16483       reauth=$enableval
16484     else
16485       echo "--enable-reauth argument must be yes or no"
16486       exit -1
16487     fi
16488
16489 fi
16490
16491
16492 if test "x$reauth" = "xyes" ; then
16493   echo "Fast reauthentication protocol enabled"
16494   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
16495 fi
16496  if test "x$reauth" != "xno"; then
16497   GSSEAP_ENABLE_REAUTH_TRUE=
16498   GSSEAP_ENABLE_REAUTH_FALSE='#'
16499 else
16500   GSSEAP_ENABLE_REAUTH_TRUE='#'
16501   GSSEAP_ENABLE_REAUTH_FALSE=
16502 fi
16503
16504
16505 acceptor=yes
16506 # Check whether --enable-acceptor was given.
16507 if test "${enable_acceptor+set}" = set; then :
16508   enableval=$enable_acceptor;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
16509       acceptor=$enableval
16510     else
16511       echo "--enable-acceptor argument must be yes or no"
16512       exit -1
16513     fi
16514
16515 fi
16516
16517
16518 if test "x$acceptor" = "xyes" ; then
16519   echo "acceptor enabled"
16520   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
16521 fi
16522  if test "x$acceptor" != "xno"; then
16523   GSSEAP_ENABLE_ACCEPTOR_TRUE=
16524   GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
16525 else
16526   GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
16527   GSSEAP_ENABLE_ACCEPTOR_FALSE=
16528 fi
16529
16530
16531
16532
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
16534 $as_echo_n "checking for windows... " >&6; }
16535 target_windows="no"
16536 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
16537 if test "x$ac_cv_header_windows_h" = xyes; then :
16538   target_windows="yes"
16539 else
16540   target_windows="no"
16541 fi
16542
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
16545 $as_echo "$target_windows" >&6; }
16546  if test "x$target_windows" = "xyes"; then
16547   TARGET_WINDOWS_TRUE=
16548   TARGET_WINDOWS_FALSE='#'
16549 else
16550   TARGET_WINDOWS_TRUE='#'
16551   TARGET_WINDOWS_FALSE=
16552 fi
16553
16554
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
16556 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
16557 KRB5_DIR=
16558 found_krb5="no"
16559
16560 # Check whether --with-krb5 was given.
16561 if test "${with_krb5+set}" = set; then :
16562   withval=$with_krb5; check_krb5_dir="$withval"
16563 else
16564   check_krb5_dir=
16565 fi
16566
16567 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
16568    krb5dir="$dir"
16569    if test -x "$dir/bin/krb5-config"; then
16570      found_krb5="yes";
16571      if test "x$target_windows" = "xyes"; then
16572         KRB5_CFLAGS=-I"$check_krb5_dir/include";
16573         KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
16574         KRB5_LIBS="-lkrb5_32 -lgssapi32";
16575         COMPILE_ET="$check_krb5_dir/bin/compile_et";
16576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16577 $as_echo "yes" >&6; }
16578      else
16579         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
16580         KRB5_LDFLAGS="-L$dir/lib";
16581         KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16583 $as_echo "yes" >&6; }
16584         # Extract the first word of "compile_et", so it can be a program name with args.
16585 set dummy compile_et; ac_word=$2
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16587 $as_echo_n "checking for $ac_word... " >&6; }
16588 if ${ac_cv_path_COMPILE_ET+:} false; then :
16589   $as_echo_n "(cached) " >&6
16590 else
16591   case $COMPILE_ET in
16592   [\\/]* | ?:[\\/]*)
16593   ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
16594   ;;
16595   *)
16596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $dir/bin$PATH_SEPARATOr
16598 do
16599   IFS=$as_save_IFS
16600   test -z "$as_dir" && as_dir=.
16601     for ac_exec_ext in '' $ac_executable_extensions; do
16602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603     ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
16604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16605     break 2
16606   fi
16607 done
16608   done
16609 IFS=$as_save_IFS
16610
16611   test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
16612   ;;
16613 esac
16614 fi
16615 COMPILE_ET=$ac_cv_path_COMPILE_ET
16616 if test -n "$COMPILE_ET"; then
16617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
16618 $as_echo "$COMPILE_ET" >&6; }
16619 else
16620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 $as_echo "no" >&6; }
16622 fi
16623
16624
16625      fi
16626      break;
16627    fi
16628 done
16629 if test x_$found_krb5 != x_yes; then
16630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
16631 $as_echo "$found_krb5" >&6; }
16632    as_fn_error $? "
16633 ----------------------------------------------------------------------
16634   Cannot find GSS-API/Kerberos libraries.
16635
16636   Please install MIT or Heimdal or specify installation directory with
16637   --with-krb5=(dir).
16638 ----------------------------------------------------------------------
16639 " "$LINENO" 5
16640 else
16641         printf "Kerberos found in $krb5dir\n";
16642
16643
16644
16645
16646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
16647 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
16648 if ${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+:} false; then :
16649   $as_echo_n "(cached) " >&6
16650 else
16651   ac_check_lib_save_LIBS=$LIBS
16652 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h.  */
16655
16656 /* Override any GCC internal prototype to avoid an error.
16657    Use char because int might match the return type of a GCC
16658    builtin and then its argument prototype would still apply.  */
16659 #ifdef __cplusplus
16660 extern "C"
16661 #endif
16662 char GSS_C_NT_COMPOSITE_EXPORT ();
16663 int
16664 main ()
16665 {
16666 return GSS_C_NT_COMPOSITE_EXPORT ();
16667   ;
16668   return 0;
16669 }
16670 _ACEOF
16671 if ac_fn_c_try_link "$LINENO"; then :
16672   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
16673 else
16674   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext \
16677     conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16679 fi
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
16681 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
16682 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = xyes; then :
16683
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
16686 _ACEOF
16687
16688 fi
16689
16690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
16691 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
16692 if ${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+:} false; then :
16693   $as_echo_n "(cached) " >&6
16694 else
16695   ac_check_lib_save_LIBS=$LIBS
16696 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h.  */
16699
16700 /* Override any GCC internal prototype to avoid an error.
16701    Use char because int might match the return type of a GCC
16702    builtin and then its argument prototype would still apply.  */
16703 #ifdef __cplusplus
16704 extern "C"
16705 #endif
16706 char gss_inquire_attrs_for_mech ();
16707 int
16708 main ()
16709 {
16710 return gss_inquire_attrs_for_mech ();
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_link "$LINENO"; then :
16716   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
16717 else
16718   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext \
16721     conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16723 fi
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
16725 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
16726 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = xyes; then :
16727
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
16730 _ACEOF
16731
16732 fi
16733
16734         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
16735 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
16736 if ${ac_cv_lib_krb5_gss_krb5_import_cred+:} false; then :
16737   $as_echo_n "(cached) " >&6
16738 else
16739   ac_check_lib_save_LIBS=$LIBS
16740 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h.  */
16743
16744 /* Override any GCC internal prototype to avoid an error.
16745    Use char because int might match the return type of a GCC
16746    builtin and then its argument prototype would still apply.  */
16747 #ifdef __cplusplus
16748 extern "C"
16749 #endif
16750 char gss_krb5_import_cred ();
16751 int
16752 main ()
16753 {
16754 return gss_krb5_import_cred ();
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 if ac_fn_c_try_link "$LINENO"; then :
16760   ac_cv_lib_krb5_gss_krb5_import_cred=yes
16761 else
16762   ac_cv_lib_krb5_gss_krb5_import_cred=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext \
16765     conftest$ac_exeext conftest.$ac_ext
16766 LIBS=$ac_check_lib_save_LIBS
16767 fi
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
16769 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
16770 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = xyes; then :
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_GSS_KRB5_IMPORT_CRED 1
16774 _ACEOF
16775
16776 fi
16777
16778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
16779 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
16780 if ${ac_cv_lib_krb5_heimdal_version+:} false; then :
16781   $as_echo_n "(cached) " >&6
16782 else
16783   ac_check_lib_save_LIBS=$LIBS
16784 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h.  */
16787
16788 /* Override any GCC internal prototype to avoid an error.
16789    Use char because int might match the return type of a GCC
16790    builtin and then its argument prototype would still apply.  */
16791 #ifdef __cplusplus
16792 extern "C"
16793 #endif
16794 char heimdal_version ();
16795 int
16796 main ()
16797 {
16798 return heimdal_version ();
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_link "$LINENO"; then :
16804   ac_cv_lib_krb5_heimdal_version=yes
16805 else
16806   ac_cv_lib_krb5_heimdal_version=no
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809     conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16811 fi
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
16813 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
16814 if test "x$ac_cv_lib_krb5_heimdal_version" = xyes; then :
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define HAVE_HEIMDAL_VERSION 1
16818 _ACEOF
16819   heimdal=yes
16820 else
16821   heimdal=no
16822 fi
16823
16824    if test "x$heimdal" != "xno"; then
16825   HEIMDAL_TRUE=
16826   HEIMDAL_FALSE='#'
16827 else
16828   HEIMDAL_TRUE='#'
16829   HEIMDAL_FALSE=
16830 fi
16831
16832   ac_fn_c_check_type "$LINENO" "gss_const_name_t" "ac_cv_type_gss_const_name_t" "#include <gssapi/gssapi.h>\"
16833 "
16834 if test "x$ac_cv_type_gss_const_name_t" = xyes; then :
16835
16836 $as_echo "#define MECHEAP_GSS_CONST_NAME_T_IS_POINTER 1" >>confdefs.h
16837
16838 fi
16839
16840 fi
16841
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
16843 $as_echo_n "checking for OpenSAML implementation... " >&6; }
16844 OPENSAML_DIR=
16845 found_opensaml="no"
16846
16847 # Check whether --with-opensaml was given.
16848 if test "${with_opensaml+set}" = set; then :
16849   withval=$with_opensaml; check_opensaml_dir="$withval"
16850 else
16851   check_opensaml_dir=
16852 fi
16853
16854 if test x_$check_opensaml_dir != x_no; then
16855 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
16856    opensamldir="$dir"
16857    if test -f "$dir/include/saml/Assertion.h"; then
16858      found_opensaml="yes";
16859      OPENSAML_DIR="${opensamldir}"
16860      OPENSAML_CXXFLAGS="-I$opensamldir/include";
16861      break;
16862    fi
16863 done
16864 fi
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
16866 $as_echo "$found_opensaml" >&6; }
16867 if test x_$check_opensaml_dir != x_no; then
16868 if test x_$found_opensaml != x_yes; then
16869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16870 ----------------------------------------------------------------------
16871   Cannot find OpenSAML libraries, building without OpenSAML support.
16872
16873   Please install OpenSAML or specify installation directory with
16874   --with-opensaml=(dir).
16875 ----------------------------------------------------------------------
16876 " >&5
16877 $as_echo "$as_me: WARNING:
16878 ----------------------------------------------------------------------
16879   Cannot find OpenSAML libraries, building without OpenSAML support.
16880
16881   Please install OpenSAML or specify installation directory with
16882   --with-opensaml=(dir).
16883 ----------------------------------------------------------------------
16884 " >&2;}
16885 else
16886         printf "OpenSAML found in $opensamldir\n";
16887         OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
16888         OPENSAML_LDFLAGS="-L$opensamldir/lib";
16889
16890
16891
16892
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_OPENSAML 1
16895 _ACEOF
16896
16897 fi
16898 fi
16899
16900  if test "x_$check_opensaml_dir" != "x_no"; then
16901   OPENSAML_TRUE=
16902   OPENSAML_FALSE='#'
16903 else
16904   OPENSAML_TRUE='#'
16905   OPENSAML_FALSE=
16906 fi
16907
16908
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
16910 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
16911 SHIBRESOLVER_DIR=
16912 found_shibresolver="no"
16913
16914 # Check whether --with-shibresolver was given.
16915 if test "${with_shibresolver+set}" = set; then :
16916   withval=$with_shibresolver; check_shibresolver_dir="$withval"
16917 else
16918   check_shibresolver_dir=
16919 fi
16920
16921 if test x_$check_shibresolver_dir != x_no; then
16922 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
16923    shibresolverdir="$dir"
16924    if test -f "$dir/include/shibresolver/resolver.h"; then
16925      found_shibresolver="yes";
16926      SHIBRESOLVER_DIR="${shibresolverdir}"
16927      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
16928      break;
16929    fi
16930 done
16931 fi
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
16933 $as_echo "$found_shibresolver" >&6; }
16934 if test x_$check_shibresolver_dir != x_no; then
16935 if test x_$found_shibresolver != x_yes; then
16936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16937 ----------------------------------------------------------------------
16938   Cannot find Shibboleth resolver libraries, building without
16939   Shibboleth support.
16940
16941   Please install Shibboleth or specify installation directory with
16942   --with-shibresolver=(dir).
16943 ----------------------------------------------------------------------
16944 " >&5
16945 $as_echo "$as_me: WARNING:
16946 ----------------------------------------------------------------------
16947   Cannot find Shibboleth resolver libraries, building without
16948   Shibboleth support.
16949
16950   Please install Shibboleth or specify installation directory with
16951   --with-shibresolver=(dir).
16952 ----------------------------------------------------------------------
16953 " >&2;}
16954 else
16955         printf "Shibboleth resolver found in $shibresolverdir\n";
16956         SHIBRESOLVER_LIBS="-lshibresolver";
16957         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
16958
16959
16960
16961
16962 cat >>confdefs.h <<_ACEOF
16963 #define HAVE_SHIBRESOLVER 1
16964 _ACEOF
16965
16966 fi
16967 fi
16968
16969  if test "x_$check_shibresolver_dir" != "x_no"; then
16970   SHIBRESOLVER_TRUE=
16971   SHIBRESOLVER_FALSE='#'
16972 else
16973   SHIBRESOLVER_TRUE='#'
16974   SHIBRESOLVER_FALSE=
16975 fi
16976
16977 if test x_$found_shibresolver = x_yes; then
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
16979 $as_echo_n "checking for Shibboleth implementation... " >&6; }
16980 SHIBSP_DIR=
16981 found_shibsp="no"
16982
16983 # Check whether --with-shibsp was given.
16984 if test "${with_shibsp+set}" = set; then :
16985   withval=$with_shibsp; check_shibsp_dir="$withval"
16986 else
16987   check_shibsp_dir=
16988 fi
16989
16990 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
16991    shibspdir="$dir"
16992    if test -f "$dir/include/shibsp/SPConfig.h"; then
16993      found_shibsp="yes";
16994      SHIBSP_DIR="${shibspdir}"
16995      SHIBSP_CXXFLAGS="-I$shibspdir/include";
16996      break;
16997    fi
16998 done
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
17000 $as_echo "$found_shibsp" >&6; }
17001 if test x_$found_shibsp != x_yes; then
17002    as_fn_error $? "
17003 ----------------------------------------------------------------------
17004   Cannot find Shibboleth libraries.
17005
17006   Please install Shibboleth or specify installation directory with
17007   --with-shibsp=(dir).
17008 ----------------------------------------------------------------------
17009 " "$LINENO" 5
17010 else
17011         printf "Shibboleth found in $shibspdir\n";
17012         SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
17013         SHIBSP_LDFLAGS="-L$shibspdir/lib";
17014
17015
17016
17017
17018 cat >>confdefs.h <<_ACEOF
17019 #define HAVE_SHIBSP 1
17020 _ACEOF
17021
17022 fi
17023
17024 fi
17025
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
17027 $as_echo_n "checking for OpenSSL... " >&6; }
17028 OPENSSL_DIR=
17029 found_openssl="no"
17030
17031 # Check whether --with-openssl was given.
17032 if test "${with_openssl+set}" = set; then :
17033   withval=$with_openssl; check_openssl_dir="$withval"
17034 else
17035   check_openssl_dir=
17036 fi
17037
17038 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
17039    openssldir="$dir"
17040    if test -f "$dir/include/openssl/opensslv.h"; then
17041      found_openssl="yes";
17042      OPENSSL_DIR="${openssldir}"
17043      OPENSSL_CFLAGS="-I$openssldir/include";
17044      break;
17045    fi
17046 done
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
17048 $as_echo "$found_openssl" >&6; }
17049 if test x_$found_openssl != x_yes; then
17050    as_fn_error $? "
17051 ----------------------------------------------------------------------
17052   Cannot find OpenSSL libraries.
17053
17054   Please install libssl or specify installation directory with
17055   --with-openssl=(dir).
17056 ----------------------------------------------------------------------
17057 " "$LINENO" 5
17058 else
17059         printf "OpenSSL found in $openssldir\n";
17060         OPENSSL_LIBS="-lssl -lcrypto";
17061         OPENSSL_LDFLAGS="-L$openssldir/lib";
17062
17063
17064
17065 fi
17066
17067
17068 if test "x$acceptor" = "xyes" ; then
17069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
17070 $as_echo_n "checking for radsec... " >&6; }
17071 RADSEC_DIR=
17072 found_radsec="no"
17073
17074 # Check whether --with-radsec was given.
17075 if test "${with_radsec+set}" = set; then :
17076   withval=$with_radsec; check_radsec_dir="$withval"
17077 else
17078   check_radsec_dir=
17079 fi
17080
17081 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
17082    radsecdir="$dir"
17083    if test -f "$dir/include/radsec/radsec.h"; then
17084      found_radsec="yes";
17085      RADSEC_DIR="${radsecdir}"
17086      RADSEC_CFLAGS="-I$radsecdir/include";
17087      break;
17088    fi
17089 done
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
17091 $as_echo "$found_radsec" >&6; }
17092 if test x_$found_radsec != x_yes; then
17093    as_fn_error $? "
17094 ----------------------------------------------------------------------
17095   Cannot find radsec libraries.
17096
17097   Please install libradsec or specify installation directory with
17098   --with-radsec=(dir).
17099 ----------------------------------------------------------------------
17100 " "$LINENO" 5
17101 else
17102         printf "radsec found in $radsecdir\n";
17103         RADSEC_LIBS="-lradsec";
17104         RADSEC_LDFLAGS="-L$radsecdir/lib";
17105
17106
17107
17108 fi
17109
17110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
17111 $as_echo_n "checking for jansson... " >&6; }
17112 JANSSON_DIR=
17113 found_jansson="no"
17114
17115 # Check whether --with-jansson was given.
17116 if test "${with_jansson+set}" = set; then :
17117   withval=$with_jansson; check_jansson_dir="$withval"
17118 else
17119   check_jansson_dir=
17120 fi
17121
17122 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
17123    janssondir="$dir"
17124    if test -f "$dir/include/jansson.h"; then
17125      found_jansson="yes";
17126      JANSSON_DIR="${janssondir}"
17127      JANSSON_CFLAGS="-I$janssondir/include";
17128      break;
17129    fi
17130 done
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
17132 $as_echo "$found_jansson" >&6; }
17133 if test x_$found_jansson != x_yes; then
17134    as_fn_error $? "
17135 ----------------------------------------------------------------------
17136   Cannot find jansson libraries.
17137
17138   Please install libjansson or specify installation directory with
17139   --with-jansson=(dir).
17140 ----------------------------------------------------------------------
17141 " "$LINENO" 5
17142 else
17143         printf "jansson found in $janssondir\n";
17144         JANSSON_LIBS="-ljansson";
17145         JANSSON_LDFLAGS="-L$janssondir/lib";
17146
17147
17148
17149 fi
17150
17151 fi
17152
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
17154 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
17155 LIBMOONSHOT_DIR=
17156 LIBMOONSHOT_CFLAGS=
17157 LIBMOONSHOT_LDFLAGS=
17158 LIBMOONSHOT_LIBS=
17159 found_libmoonshot="no"
17160
17161 # Check whether --with-libmoonshot was given.
17162 if test "${with_libmoonshot+set}" = set; then :
17163   withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
17164 else
17165   check_libmoonshot_dir=
17166 fi
17167
17168 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
17169    libmoonshotdir="$dir"
17170    if test -f "$dir/include/libmoonshot.h"; then
17171      found_libmoonshot="yes";
17172      LIBMOONSHOT_DIR="${libmoonshotdir}"
17173      LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
17174      break;
17175    fi
17176 done
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
17178 $as_echo "$found_libmoonshot" >&6; }
17179 if test x_$found_libmoonshot = x_yes; then
17180     printf "libmoonshot found in $libmoonshotdir\n";
17181     LIBMOONSHOT_LIBS="-lmoonshot";
17182     LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
17183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
17184 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
17185 if ${ac_cv_lib_moonshot_moonshot_get_identity+:} false; then :
17186   $as_echo_n "(cached) " >&6
17187 else
17188   ac_check_lib_save_LIBS=$LIBS
17189 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h.  */
17192
17193 /* Override any GCC internal prototype to avoid an error.
17194    Use char because int might match the return type of a GCC
17195    builtin and then its argument prototype would still apply.  */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 char moonshot_get_identity ();
17200 int
17201 main ()
17202 {
17203 return moonshot_get_identity ();
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 if ac_fn_c_try_link "$LINENO"; then :
17209   ac_cv_lib_moonshot_moonshot_get_identity=yes
17210 else
17211   ac_cv_lib_moonshot_moonshot_get_identity=no
17212 fi
17213 rm -f core conftest.err conftest.$ac_objext \
17214     conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17216 fi
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
17218 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
17219 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = xyes; then :
17220
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_MOONSHOT_GET_IDENTITY 1
17223 _ACEOF
17224
17225 fi
17226
17227 fi
17228
17229
17230
17231      if test "x$found_libmoonshot" != "xno"; then
17232   LIBMOONSHOT_TRUE=
17233   LIBMOONSHOT_FALSE='#'
17234 else
17235   LIBMOONSHOT_TRUE='#'
17236   LIBMOONSHOT_FALSE=
17237 fi
17238
17239
17240 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
17241
17242 cat >confcache <<\_ACEOF
17243 # This file is a shell script that caches the results of configure
17244 # tests run on this system so they can be shared between configure
17245 # scripts and configure runs, see configure's option --config-cache.
17246 # It is not useful on other systems.  If it contains results you don't
17247 # want to keep, you may remove or edit it.
17248 #
17249 # config.status only pays attention to the cache file if you give it
17250 # the --recheck option to rerun configure.
17251 #
17252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17254 # following values.
17255
17256 _ACEOF
17257
17258 # The following way of writing the cache mishandles newlines in values,
17259 # but we know of no workaround that is simple, portable, and efficient.
17260 # So, we kill variables containing newlines.
17261 # Ultrix sh set writes to stderr and can't be redirected directly,
17262 # and sets the high bit in the cache file unless we assign to the vars.
17263 (
17264   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17265     eval ac_val=\$$ac_var
17266     case $ac_val in #(
17267     *${as_nl}*)
17268       case $ac_var in #(
17269       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17271       esac
17272       case $ac_var in #(
17273       _ | IFS | as_nl) ;; #(
17274       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17275       *) { eval $ac_var=; unset $ac_var;} ;;
17276       esac ;;
17277     esac
17278   done
17279
17280   (set) 2>&1 |
17281     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17282     *${as_nl}ac_space=\ *)
17283       # `set' does not quote correctly, so add quotes: double-quote
17284       # substitution turns \\\\ into \\, and sed turns \\ into \.
17285       sed -n \
17286         "s/'/'\\\\''/g;
17287           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17288       ;; #(
17289     *)
17290       # `set' quotes correctly as required by POSIX, so do not add quotes.
17291       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17292       ;;
17293     esac |
17294     sort
17295 ) |
17296   sed '
17297      /^ac_cv_env_/b end
17298      t clear
17299      :clear
17300      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17301      t end
17302      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17303      :end' >>confcache
17304 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17305   if test -w "$cache_file"; then
17306     if test "x$cache_file" != "x/dev/null"; then
17307       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17308 $as_echo "$as_me: updating cache $cache_file" >&6;}
17309       if test ! -f "$cache_file" || test -h "$cache_file"; then
17310         cat confcache >"$cache_file"
17311       else
17312         case $cache_file in #(
17313         */* | ?:*)
17314           mv -f confcache "$cache_file"$$ &&
17315           mv -f "$cache_file"$$ "$cache_file" ;; #(
17316         *)
17317           mv -f confcache "$cache_file" ;;
17318         esac
17319       fi
17320     fi
17321   else
17322     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17323 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17324   fi
17325 fi
17326 rm -f confcache
17327
17328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17329 # Let make expand exec_prefix.
17330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17331
17332 DEFS=-DHAVE_CONFIG_H
17333
17334 ac_libobjs=
17335 ac_ltlibobjs=
17336 U=
17337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17338   # 1. Remove the extension, and $U if already installed.
17339   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17340   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17341   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17342   #    will be set to the directory where LIBOBJS objects are built.
17343   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17344   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17345 done
17346 LIBOBJS=$ac_libobjs
17347
17348 LTLIBOBJS=$ac_ltlibobjs
17349
17350
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17352 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17353    if test -n "$am_sleep_pid"; then
17354      # Hide warnings about reused PIDs.
17355      wait $am_sleep_pid 2>/dev/null
17356    fi
17357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17358 $as_echo "done" >&6; }
17359 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17360   as_fn_error $? "conditional \"AMDEP\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17362 fi
17363 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17364   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17366 fi
17367  if test -n "$EXEEXT"; then
17368   am__EXEEXT_TRUE=
17369   am__EXEEXT_FALSE='#'
17370 else
17371   am__EXEEXT_TRUE='#'
17372   am__EXEEXT_FALSE=
17373 fi
17374
17375 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17376   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17378 fi
17379 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17380   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17382 fi
17383 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
17384   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
17385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17386 fi
17387 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
17388   as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
17389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17390 fi
17391 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
17392   as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
17393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17394 fi
17395 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
17396   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
17397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17398 fi
17399 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
17400   as_fn_error $? "conditional \"OPENSAML\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17402 fi
17403 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
17404   as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17406 fi
17407 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
17408   as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17410 fi
17411
17412 : "${CONFIG_STATUS=./config.status}"
17413 ac_write_fail=0
17414 ac_clean_files_save=$ac_clean_files
17415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17418 as_write_fail=0
17419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17420 #! $SHELL
17421 # Generated by $as_me.
17422 # Run this file to recreate the current configuration.
17423 # Compiler output produced by configure, useful for debugging
17424 # configure, is in config.log if it exists.
17425
17426 debug=false
17427 ac_cs_recheck=false
17428 ac_cs_silent=false
17429
17430 SHELL=\${CONFIG_SHELL-$SHELL}
17431 export SHELL
17432 _ASEOF
17433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17434 ## -------------------- ##
17435 ## M4sh Initialization. ##
17436 ## -------------------- ##
17437
17438 # Be more Bourne compatible
17439 DUALCASE=1; export DUALCASE # for MKS sh
17440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17441   emulate sh
17442   NULLCMD=:
17443   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17444   # is contrary to our usage.  Disable this feature.
17445   alias -g '${1+"$@"}'='"$@"'
17446   setopt NO_GLOB_SUBST
17447 else
17448   case `(set -o) 2>/dev/null` in #(
17449   *posix*) :
17450     set -o posix ;; #(
17451   *) :
17452      ;;
17453 esac
17454 fi
17455
17456
17457 as_nl='
17458 '
17459 export as_nl
17460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17464 # Prefer a ksh shell builtin over an external printf program on Solaris,
17465 # but without wasting forks for bash or zsh.
17466 if test -z "$BASH_VERSION$ZSH_VERSION" \
17467     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17468   as_echo='print -r --'
17469   as_echo_n='print -rn --'
17470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17471   as_echo='printf %s\n'
17472   as_echo_n='printf %s'
17473 else
17474   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17475     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17476     as_echo_n='/usr/ucb/echo -n'
17477   else
17478     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17479     as_echo_n_body='eval
17480       arg=$1;
17481       case $arg in #(
17482       *"$as_nl"*)
17483         expr "X$arg" : "X\\(.*\\)$as_nl";
17484         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17485       esac;
17486       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17487     '
17488     export as_echo_n_body
17489     as_echo_n='sh -c $as_echo_n_body as_echo'
17490   fi
17491   export as_echo_body
17492   as_echo='sh -c $as_echo_body as_echo'
17493 fi
17494
17495 # The user is always right.
17496 if test "${PATH_SEPARATOR+set}" != set; then
17497   PATH_SEPARATOR=:
17498   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17499     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17500       PATH_SEPARATOR=';'
17501   }
17502 fi
17503
17504
17505 # IFS
17506 # We need space, tab and new line, in precisely that order.  Quoting is
17507 # there to prevent editors from complaining about space-tab.
17508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17509 # splitting by setting IFS to empty value.)
17510 IFS=" ""        $as_nl"
17511
17512 # Find who we are.  Look in the path if we contain no directory separator.
17513 as_myself=
17514 case $0 in #((
17515   *[\\/]* ) as_myself=$0 ;;
17516   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17517 for as_dir in $PATH
17518 do
17519   IFS=$as_save_IFS
17520   test -z "$as_dir" && as_dir=.
17521     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17522   done
17523 IFS=$as_save_IFS
17524
17525      ;;
17526 esac
17527 # We did not find ourselves, most probably we were run as `sh COMMAND'
17528 # in which case we are not to be found in the path.
17529 if test "x$as_myself" = x; then
17530   as_myself=$0
17531 fi
17532 if test ! -f "$as_myself"; then
17533   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17534   exit 1
17535 fi
17536
17537 # Unset variables that we do not need and which cause bugs (e.g. in
17538 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17539 # suppresses any "Segmentation fault" message there.  '((' could
17540 # trigger a bug in pdksh 5.2.14.
17541 for as_var in BASH_ENV ENV MAIL MAILPATH
17542 do eval test x\${$as_var+set} = xset \
17543   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17544 done
17545 PS1='$ '
17546 PS2='> '
17547 PS4='+ '
17548
17549 # NLS nuisances.
17550 LC_ALL=C
17551 export LC_ALL
17552 LANGUAGE=C
17553 export LANGUAGE
17554
17555 # CDPATH.
17556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17557
17558
17559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17560 # ----------------------------------------
17561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17563 # script with STATUS, using 1 if that was 0.
17564 as_fn_error ()
17565 {
17566   as_status=$1; test $as_status -eq 0 && as_status=1
17567   if test "$4"; then
17568     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17569     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17570   fi
17571   $as_echo "$as_me: error: $2" >&2
17572   as_fn_exit $as_status
17573 } # as_fn_error
17574
17575
17576 # as_fn_set_status STATUS
17577 # -----------------------
17578 # Set $? to STATUS, without forking.
17579 as_fn_set_status ()
17580 {
17581   return $1
17582 } # as_fn_set_status
17583
17584 # as_fn_exit STATUS
17585 # -----------------
17586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17587 as_fn_exit ()
17588 {
17589   set +e
17590   as_fn_set_status $1
17591   exit $1
17592 } # as_fn_exit
17593
17594 # as_fn_unset VAR
17595 # ---------------
17596 # Portably unset VAR.
17597 as_fn_unset ()
17598 {
17599   { eval $1=; unset $1;}
17600 }
17601 as_unset=as_fn_unset
17602 # as_fn_append VAR VALUE
17603 # ----------------------
17604 # Append the text in VALUE to the end of the definition contained in VAR. Take
17605 # advantage of any shell optimizations that allow amortized linear growth over
17606 # repeated appends, instead of the typical quadratic growth present in naive
17607 # implementations.
17608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17609   eval 'as_fn_append ()
17610   {
17611     eval $1+=\$2
17612   }'
17613 else
17614   as_fn_append ()
17615   {
17616     eval $1=\$$1\$2
17617   }
17618 fi # as_fn_append
17619
17620 # as_fn_arith ARG...
17621 # ------------------
17622 # Perform arithmetic evaluation on the ARGs, and store the result in the
17623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17624 # must be portable across $(()) and expr.
17625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17626   eval 'as_fn_arith ()
17627   {
17628     as_val=$(( $* ))
17629   }'
17630 else
17631   as_fn_arith ()
17632   {
17633     as_val=`expr "$@" || test $? -eq 1`
17634   }
17635 fi # as_fn_arith
17636
17637
17638 if expr a : '\(a\)' >/dev/null 2>&1 &&
17639    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17640   as_expr=expr
17641 else
17642   as_expr=false
17643 fi
17644
17645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17646   as_basename=basename
17647 else
17648   as_basename=false
17649 fi
17650
17651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17652   as_dirname=dirname
17653 else
17654   as_dirname=false
17655 fi
17656
17657 as_me=`$as_basename -- "$0" ||
17658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17659          X"$0" : 'X\(//\)$' \| \
17660          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17661 $as_echo X/"$0" |
17662     sed '/^.*\/\([^/][^/]*\)\/*$/{
17663             s//\1/
17664             q
17665           }
17666           /^X\/\(\/\/\)$/{
17667             s//\1/
17668             q
17669           }
17670           /^X\/\(\/\).*/{
17671             s//\1/
17672             q
17673           }
17674           s/.*/./; q'`
17675
17676 # Avoid depending upon Character Ranges.
17677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17680 as_cr_digits='0123456789'
17681 as_cr_alnum=$as_cr_Letters$as_cr_digits
17682
17683 ECHO_C= ECHO_N= ECHO_T=
17684 case `echo -n x` in #(((((
17685 -n*)
17686   case `echo 'xy\c'` in
17687   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17688   xy)  ECHO_C='\c';;
17689   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17690        ECHO_T=' ';;
17691   esac;;
17692 *)
17693   ECHO_N='-n';;
17694 esac
17695
17696 rm -f conf$$ conf$$.exe conf$$.file
17697 if test -d conf$$.dir; then
17698   rm -f conf$$.dir/conf$$.file
17699 else
17700   rm -f conf$$.dir
17701   mkdir conf$$.dir 2>/dev/null
17702 fi
17703 if (echo >conf$$.file) 2>/dev/null; then
17704   if ln -s conf$$.file conf$$ 2>/dev/null; then
17705     as_ln_s='ln -s'
17706     # ... but there are two gotchas:
17707     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17708     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17709     # In both cases, we have to default to `cp -pR'.
17710     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17711       as_ln_s='cp -pR'
17712   elif ln conf$$.file conf$$ 2>/dev/null; then
17713     as_ln_s=ln
17714   else
17715     as_ln_s='cp -pR'
17716   fi
17717 else
17718   as_ln_s='cp -pR'
17719 fi
17720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17721 rmdir conf$$.dir 2>/dev/null
17722
17723
17724 # as_fn_mkdir_p
17725 # -------------
17726 # Create "$as_dir" as a directory, including parents if necessary.
17727 as_fn_mkdir_p ()
17728 {
17729
17730   case $as_dir in #(
17731   -*) as_dir=./$as_dir;;
17732   esac
17733   test -d "$as_dir" || eval $as_mkdir_p || {
17734     as_dirs=
17735     while :; do
17736       case $as_dir in #(
17737       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17738       *) as_qdir=$as_dir;;
17739       esac
17740       as_dirs="'$as_qdir' $as_dirs"
17741       as_dir=`$as_dirname -- "$as_dir" ||
17742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17743          X"$as_dir" : 'X\(//\)[^/]' \| \
17744          X"$as_dir" : 'X\(//\)$' \| \
17745          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17746 $as_echo X"$as_dir" |
17747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17748             s//\1/
17749             q
17750           }
17751           /^X\(\/\/\)[^/].*/{
17752             s//\1/
17753             q
17754           }
17755           /^X\(\/\/\)$/{
17756             s//\1/
17757             q
17758           }
17759           /^X\(\/\).*/{
17760             s//\1/
17761             q
17762           }
17763           s/.*/./; q'`
17764       test -d "$as_dir" && break
17765     done
17766     test -z "$as_dirs" || eval "mkdir $as_dirs"
17767   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17768
17769
17770 } # as_fn_mkdir_p
17771 if mkdir -p . 2>/dev/null; then
17772   as_mkdir_p='mkdir -p "$as_dir"'
17773 else
17774   test -d ./-p && rmdir ./-p
17775   as_mkdir_p=false
17776 fi
17777
17778
17779 # as_fn_executable_p FILE
17780 # -----------------------
17781 # Test if FILE is an executable regular file.
17782 as_fn_executable_p ()
17783 {
17784   test -f "$1" && test -x "$1"
17785 } # as_fn_executable_p
17786 as_test_x='test -x'
17787 as_executable_p=as_fn_executable_p
17788
17789 # Sed expression to map a string onto a valid CPP name.
17790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17791
17792 # Sed expression to map a string onto a valid variable name.
17793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17794
17795
17796 exec 6>&1
17797 ## ----------------------------------- ##
17798 ## Main body of $CONFIG_STATUS script. ##
17799 ## ----------------------------------- ##
17800 _ASEOF
17801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17802
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 # Save the log message, to keep $0 and so on meaningful, and to
17805 # report actual input values of CONFIG_FILES etc. instead of their
17806 # values after options handling.
17807 ac_log="
17808 This file was extended by mech_eap $as_me 1.0.1, which was
17809 generated by GNU Autoconf 2.69.  Invocation command line was
17810
17811   CONFIG_FILES    = $CONFIG_FILES
17812   CONFIG_HEADERS  = $CONFIG_HEADERS
17813   CONFIG_LINKS    = $CONFIG_LINKS
17814   CONFIG_COMMANDS = $CONFIG_COMMANDS
17815   $ $0 $@
17816
17817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17818 "
17819
17820 _ACEOF
17821
17822 case $ac_config_files in *"
17823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17824 esac
17825
17826 case $ac_config_headers in *"
17827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17828 esac
17829
17830
17831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17832 # Files that config.status was made for.
17833 config_files="$ac_config_files"
17834 config_headers="$ac_config_headers"
17835 config_commands="$ac_config_commands"
17836
17837 _ACEOF
17838
17839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17840 ac_cs_usage="\
17841 \`$as_me' instantiates files and other configuration actions
17842 from templates according to the current configuration.  Unless the files
17843 and actions are specified as TAGs, all are instantiated by default.
17844
17845 Usage: $0 [OPTION]... [TAG]...
17846
17847   -h, --help       print this help, then exit
17848   -V, --version    print version number and configuration settings, then exit
17849       --config     print configuration, then exit
17850   -q, --quiet, --silent
17851                    do not print progress messages
17852   -d, --debug      don't remove temporary files
17853       --recheck    update $as_me by reconfiguring in the same conditions
17854       --file=FILE[:TEMPLATE]
17855                    instantiate the configuration file FILE
17856       --header=FILE[:TEMPLATE]
17857                    instantiate the configuration header FILE
17858
17859 Configuration files:
17860 $config_files
17861
17862 Configuration headers:
17863 $config_headers
17864
17865 Configuration commands:
17866 $config_commands
17867
17868 Report bugs to <bugs@project-moonshot.org>."
17869
17870 _ACEOF
17871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17873 ac_cs_version="\\
17874 mech_eap config.status 1.0.1
17875 configured by $0, generated by GNU Autoconf 2.69,
17876   with options \\"\$ac_cs_config\\"
17877
17878 Copyright (C) 2012 Free Software Foundation, Inc.
17879 This config.status script is free software; the Free Software Foundation
17880 gives unlimited permission to copy, distribute and modify it."
17881
17882 ac_pwd='$ac_pwd'
17883 srcdir='$srcdir'
17884 INSTALL='$INSTALL'
17885 MKDIR_P='$MKDIR_P'
17886 AWK='$AWK'
17887 test -n "\$AWK" || AWK=awk
17888 _ACEOF
17889
17890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17891 # The default lists apply if the user does not specify any file.
17892 ac_need_defaults=:
17893 while test $# != 0
17894 do
17895   case $1 in
17896   --*=?*)
17897     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17898     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17899     ac_shift=:
17900     ;;
17901   --*=)
17902     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17903     ac_optarg=
17904     ac_shift=:
17905     ;;
17906   *)
17907     ac_option=$1
17908     ac_optarg=$2
17909     ac_shift=shift
17910     ;;
17911   esac
17912
17913   case $ac_option in
17914   # Handling of the options.
17915   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17916     ac_cs_recheck=: ;;
17917   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17918     $as_echo "$ac_cs_version"; exit ;;
17919   --config | --confi | --conf | --con | --co | --c )
17920     $as_echo "$ac_cs_config"; exit ;;
17921   --debug | --debu | --deb | --de | --d | -d )
17922     debug=: ;;
17923   --file | --fil | --fi | --f )
17924     $ac_shift
17925     case $ac_optarg in
17926     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17927     '') as_fn_error $? "missing file argument" ;;
17928     esac
17929     as_fn_append CONFIG_FILES " '$ac_optarg'"
17930     ac_need_defaults=false;;
17931   --header | --heade | --head | --hea )
17932     $ac_shift
17933     case $ac_optarg in
17934     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17935     esac
17936     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17937     ac_need_defaults=false;;
17938   --he | --h)
17939     # Conflict between --help and --header
17940     as_fn_error $? "ambiguous option: \`$1'
17941 Try \`$0 --help' for more information.";;
17942   --help | --hel | -h )
17943     $as_echo "$ac_cs_usage"; exit ;;
17944   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17945   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17946     ac_cs_silent=: ;;
17947
17948   # This is an error.
17949   -*) as_fn_error $? "unrecognized option: \`$1'
17950 Try \`$0 --help' for more information." ;;
17951
17952   *) as_fn_append ac_config_targets " $1"
17953      ac_need_defaults=false ;;
17954
17955   esac
17956   shift
17957 done
17958
17959 ac_configure_extra_args=
17960
17961 if $ac_cs_silent; then
17962   exec 6>/dev/null
17963   ac_configure_extra_args="$ac_configure_extra_args --silent"
17964 fi
17965
17966 _ACEOF
17967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17968 if \$ac_cs_recheck; then
17969   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17970   shift
17971   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17972   CONFIG_SHELL='$SHELL'
17973   export CONFIG_SHELL
17974   exec "\$@"
17975 fi
17976
17977 _ACEOF
17978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17979 exec 5>>config.log
17980 {
17981   echo
17982   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17983 ## Running $as_me. ##
17984 _ASBOX
17985   $as_echo "$ac_log"
17986 } >&5
17987
17988 _ACEOF
17989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17990 #
17991 # INIT-COMMANDS
17992 #
17993 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17994
17995
17996 # The HP-UX ksh and POSIX shell print the target directory to stdout
17997 # if CDPATH is set.
17998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17999
18000 sed_quote_subst='$sed_quote_subst'
18001 double_quote_subst='$double_quote_subst'
18002 delay_variable_subst='$delay_variable_subst'
18003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18005 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18006 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18007 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18008 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18009 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18010 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18011 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18012 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18013 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18014 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18015 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18016 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18017 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18018 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18019 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18020 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18021 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18022 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18023 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18024 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18025 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18026 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18027 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18028 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18029 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18030 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18031 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18032 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18033 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18034 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18035 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18036 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18037 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18038 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18039 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18040 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18041 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18042 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18043 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18046 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18047 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18060 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18061 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18062 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"`'
18063 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18064 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18065 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18066 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18067 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18068 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18069 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18070 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18071 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18072 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18073 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18074 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18075 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18076 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18077 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18078 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18079 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18080 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18081 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18082 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18083 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18084 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18085 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18086 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18087 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18088 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18089 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18090 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18091 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18092 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18093 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18094 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18095 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18096 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18097 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18098 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18099 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18100 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18101 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18102 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18103 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18104 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18105 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18106 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18107 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18108 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18109 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18110 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18111 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18112 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18113 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18114 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18115 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18116 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18117 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18118 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18119 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18120 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18121 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18122 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18123 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18124 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18125 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18126 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18127 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18128 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18129 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18130 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18131 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18132 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18133 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18134 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18135 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18136 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18137 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18138 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18139 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18140 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18141 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18142 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18143 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18144 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18145 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18146 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18147 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18148 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18149 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18150 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18151 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18152 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18153 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18154 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18155 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18156 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18157 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18158 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18159 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18160 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18161 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18162 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18163 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18164 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18165 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18166 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18167 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18168 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18169 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18170 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18171 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18172 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18173 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18174 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18175 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18176 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18177 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18178 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18179 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18180 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18181 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18182 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18183 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18184 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18185 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18186 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18187 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18188 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18189 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18190 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18191 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18192 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18193
18194 LTCC='$LTCC'
18195 LTCFLAGS='$LTCFLAGS'
18196 compiler='$compiler_DEFAULT'
18197
18198 # A function that is used when there is no print builtin or printf.
18199 func_fallback_echo ()
18200 {
18201   eval 'cat <<_LTECHO_EOF
18202 \$1
18203 _LTECHO_EOF'
18204 }
18205
18206 # Quote evaled strings.
18207 for var in AS \
18208 DLLTOOL \
18209 OBJDUMP \
18210 SHELL \
18211 ECHO \
18212 PATH_SEPARATOR \
18213 SED \
18214 GREP \
18215 EGREP \
18216 FGREP \
18217 LD \
18218 NM \
18219 LN_S \
18220 lt_SP2NL \
18221 lt_NL2SP \
18222 reload_flag \
18223 deplibs_check_method \
18224 file_magic_cmd \
18225 file_magic_glob \
18226 want_nocaseglob \
18227 sharedlib_from_linklib_cmd \
18228 AR \
18229 AR_FLAGS \
18230 archiver_list_spec \
18231 STRIP \
18232 RANLIB \
18233 CC \
18234 CFLAGS \
18235 compiler \
18236 lt_cv_sys_global_symbol_pipe \
18237 lt_cv_sys_global_symbol_to_cdecl \
18238 lt_cv_sys_global_symbol_to_import \
18239 lt_cv_sys_global_symbol_to_c_name_address \
18240 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18241 lt_cv_nm_interface \
18242 nm_file_list_spec \
18243 lt_cv_truncate_bin \
18244 lt_prog_compiler_no_builtin_flag \
18245 lt_prog_compiler_pic \
18246 lt_prog_compiler_wl \
18247 lt_prog_compiler_static \
18248 lt_cv_prog_compiler_c_o \
18249 need_locks \
18250 MANIFEST_TOOL \
18251 DSYMUTIL \
18252 NMEDIT \
18253 LIPO \
18254 OTOOL \
18255 OTOOL64 \
18256 shrext_cmds \
18257 export_dynamic_flag_spec \
18258 whole_archive_flag_spec \
18259 compiler_needs_object \
18260 with_gnu_ld \
18261 allow_undefined_flag \
18262 no_undefined_flag \
18263 hardcode_libdir_flag_spec \
18264 hardcode_libdir_separator \
18265 exclude_expsyms \
18266 include_expsyms \
18267 file_list_spec \
18268 variables_saved_for_relink \
18269 libname_spec \
18270 library_names_spec \
18271 soname_spec \
18272 install_override_mode \
18273 finish_eval \
18274 old_striplib \
18275 striplib \
18276 compiler_lib_search_dirs \
18277 predep_objects \
18278 postdep_objects \
18279 predeps \
18280 postdeps \
18281 compiler_lib_search_path \
18282 LD_CXX \
18283 reload_flag_CXX \
18284 compiler_CXX \
18285 lt_prog_compiler_no_builtin_flag_CXX \
18286 lt_prog_compiler_pic_CXX \
18287 lt_prog_compiler_wl_CXX \
18288 lt_prog_compiler_static_CXX \
18289 lt_cv_prog_compiler_c_o_CXX \
18290 export_dynamic_flag_spec_CXX \
18291 whole_archive_flag_spec_CXX \
18292 compiler_needs_object_CXX \
18293 with_gnu_ld_CXX \
18294 allow_undefined_flag_CXX \
18295 no_undefined_flag_CXX \
18296 hardcode_libdir_flag_spec_CXX \
18297 hardcode_libdir_separator_CXX \
18298 exclude_expsyms_CXX \
18299 include_expsyms_CXX \
18300 file_list_spec_CXX \
18301 compiler_lib_search_dirs_CXX \
18302 predep_objects_CXX \
18303 postdep_objects_CXX \
18304 predeps_CXX \
18305 postdeps_CXX \
18306 compiler_lib_search_path_CXX; do
18307     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18308     *[\\\\\\\`\\"\\\$]*)
18309       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18310       ;;
18311     *)
18312       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18313       ;;
18314     esac
18315 done
18316
18317 # Double-quote double-evaled strings.
18318 for var in reload_cmds \
18319 old_postinstall_cmds \
18320 old_postuninstall_cmds \
18321 old_archive_cmds \
18322 extract_expsyms_cmds \
18323 old_archive_from_new_cmds \
18324 old_archive_from_expsyms_cmds \
18325 archive_cmds \
18326 archive_expsym_cmds \
18327 module_cmds \
18328 module_expsym_cmds \
18329 export_symbols_cmds \
18330 prelink_cmds \
18331 postlink_cmds \
18332 postinstall_cmds \
18333 postuninstall_cmds \
18334 finish_cmds \
18335 sys_lib_search_path_spec \
18336 configure_time_dlsearch_path \
18337 configure_time_lt_sys_library_path \
18338 reload_cmds_CXX \
18339 old_archive_cmds_CXX \
18340 old_archive_from_new_cmds_CXX \
18341 old_archive_from_expsyms_cmds_CXX \
18342 archive_cmds_CXX \
18343 archive_expsym_cmds_CXX \
18344 module_cmds_CXX \
18345 module_expsym_cmds_CXX \
18346 export_symbols_cmds_CXX \
18347 prelink_cmds_CXX \
18348 postlink_cmds_CXX; do
18349     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18350     *[\\\\\\\`\\"\\\$]*)
18351       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18352       ;;
18353     *)
18354       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18355       ;;
18356     esac
18357 done
18358
18359 ac_aux_dir='$ac_aux_dir'
18360
18361 # See if we are running on zsh, and set the options that allow our
18362 # commands through without removal of \ escapes INIT.
18363 if test -n "\${ZSH_VERSION+set}"; then
18364    setopt NO_GLOB_SUBST
18365 fi
18366
18367
18368     PACKAGE='$PACKAGE'
18369     VERSION='$VERSION'
18370     RM='$RM'
18371     ofile='$ofile'
18372
18373
18374
18375
18376
18377
18378 _ACEOF
18379
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381
18382 # Handling of arguments.
18383 for ac_config_target in $ac_config_targets
18384 do
18385   case $ac_config_target in
18386     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18387     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18388     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18389     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18390     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
18391     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
18392     "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
18393
18394   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18395   esac
18396 done
18397
18398
18399 # If the user did not use the arguments to specify the items to instantiate,
18400 # then the envvar interface is used.  Set only those that are not.
18401 # We use the long form for the default assignment because of an extremely
18402 # bizarre bug on SunOS 4.1.3.
18403 if $ac_need_defaults; then
18404   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18405   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18406   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18407 fi
18408
18409 # Have a temporary directory for convenience.  Make it in the build tree
18410 # simply because there is no reason against having it here, and in addition,
18411 # creating and moving files from /tmp can sometimes cause problems.
18412 # Hook for its removal unless debugging.
18413 # Note that there is a small window in which the directory will not be cleaned:
18414 # after its creation but before its name has been assigned to `$tmp'.
18415 $debug ||
18416 {
18417   tmp= ac_tmp=
18418   trap 'exit_status=$?
18419   : "${ac_tmp:=$tmp}"
18420   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18421 ' 0
18422   trap 'as_fn_exit 1' 1 2 13 15
18423 }
18424 # Create a (secure) tmp directory for tmp files.
18425
18426 {
18427   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18428   test -d "$tmp"
18429 }  ||
18430 {
18431   tmp=./conf$$-$RANDOM
18432   (umask 077 && mkdir "$tmp")
18433 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18434 ac_tmp=$tmp
18435
18436 # Set up the scripts for CONFIG_FILES section.
18437 # No need to generate them if there are no CONFIG_FILES.
18438 # This happens for instance with `./config.status config.h'.
18439 if test -n "$CONFIG_FILES"; then
18440
18441
18442 ac_cr=`echo X | tr X '\015'`
18443 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18444 # But we know of no other shell where ac_cr would be empty at this
18445 # point, so we can use a bashism as a fallback.
18446 if test "x$ac_cr" = x; then
18447   eval ac_cr=\$\'\\r\'
18448 fi
18449 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18450 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18451   ac_cs_awk_cr='\\r'
18452 else
18453   ac_cs_awk_cr=$ac_cr
18454 fi
18455
18456 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18457 _ACEOF
18458
18459
18460 {
18461   echo "cat >conf$$subs.awk <<_ACEOF" &&
18462   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18463   echo "_ACEOF"
18464 } >conf$$subs.sh ||
18465   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18466 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18467 ac_delim='%!_!# '
18468 for ac_last_try in false false false false false :; do
18469   . ./conf$$subs.sh ||
18470     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18471
18472   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18473   if test $ac_delim_n = $ac_delim_num; then
18474     break
18475   elif $ac_last_try; then
18476     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18477   else
18478     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18479   fi
18480 done
18481 rm -f conf$$subs.sh
18482
18483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18484 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18485 _ACEOF
18486 sed -n '
18487 h
18488 s/^/S["/; s/!.*/"]=/
18489 p
18490 g
18491 s/^[^!]*!//
18492 :repl
18493 t repl
18494 s/'"$ac_delim"'$//
18495 t delim
18496 :nl
18497 h
18498 s/\(.\{148\}\)..*/\1/
18499 t more1
18500 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18501 p
18502 n
18503 b repl
18504 :more1
18505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18506 p
18507 g
18508 s/.\{148\}//
18509 t nl
18510 :delim
18511 h
18512 s/\(.\{148\}\)..*/\1/
18513 t more2
18514 s/["\\]/\\&/g; s/^/"/; s/$/"/
18515 p
18516 b
18517 :more2
18518 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18519 p
18520 g
18521 s/.\{148\}//
18522 t delim
18523 ' <conf$$subs.awk | sed '
18524 /^[^""]/{
18525   N
18526   s/\n//
18527 }
18528 ' >>$CONFIG_STATUS || ac_write_fail=1
18529 rm -f conf$$subs.awk
18530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18531 _ACAWK
18532 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18533   for (key in S) S_is_set[key] = 1
18534   FS = "\a"
18535
18536 }
18537 {
18538   line = $ 0
18539   nfields = split(line, field, "@")
18540   substed = 0
18541   len = length(field[1])
18542   for (i = 2; i < nfields; i++) {
18543     key = field[i]
18544     keylen = length(key)
18545     if (S_is_set[key]) {
18546       value = S[key]
18547       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18548       len += length(value) + length(field[++i])
18549       substed = 1
18550     } else
18551       len += 1 + keylen
18552   }
18553
18554   print line
18555 }
18556
18557 _ACAWK
18558 _ACEOF
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18561   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18562 else
18563   cat
18564 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18565   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18566 _ACEOF
18567
18568 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18569 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18570 # trailing colons and then remove the whole line if VPATH becomes empty
18571 # (actually we leave an empty line to preserve line numbers).
18572 if test "x$srcdir" = x.; then
18573   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18574 h
18575 s///
18576 s/^/:/
18577 s/[      ]*$/:/
18578 s/:\$(srcdir):/:/g
18579 s/:\${srcdir}:/:/g
18580 s/:@srcdir@:/:/g
18581 s/^:*//
18582 s/:*$//
18583 x
18584 s/\(=[   ]*\).*/\1/
18585 G
18586 s/\n//
18587 s/^[^=]*=[       ]*$//
18588 }'
18589 fi
18590
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 fi # test -n "$CONFIG_FILES"
18593
18594 # Set up the scripts for CONFIG_HEADERS section.
18595 # No need to generate them if there are no CONFIG_HEADERS.
18596 # This happens for instance with `./config.status Makefile'.
18597 if test -n "$CONFIG_HEADERS"; then
18598 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18599 BEGIN {
18600 _ACEOF
18601
18602 # Transform confdefs.h into an awk script `defines.awk', embedded as
18603 # here-document in config.status, that substitutes the proper values into
18604 # config.h.in to produce config.h.
18605
18606 # Create a delimiter string that does not exist in confdefs.h, to ease
18607 # handling of long lines.
18608 ac_delim='%!_!# '
18609 for ac_last_try in false false :; do
18610   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18611   if test -z "$ac_tt"; then
18612     break
18613   elif $ac_last_try; then
18614     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18615   else
18616     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18617   fi
18618 done
18619
18620 # For the awk script, D is an array of macro values keyed by name,
18621 # likewise P contains macro parameters if any.  Preserve backslash
18622 # newline sequences.
18623
18624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18625 sed -n '
18626 s/.\{148\}/&'"$ac_delim"'/g
18627 t rset
18628 :rset
18629 s/^[     ]*#[    ]*define[       ][      ]*/ /
18630 t def
18631 d
18632 :def
18633 s/\\$//
18634 t bsnl
18635 s/["\\]/\\&/g
18636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18637 D["\1"]=" \3"/p
18638 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18639 d
18640 :bsnl
18641 s/["\\]/\\&/g
18642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18643 D["\1"]=" \3\\\\\\n"\\/p
18644 t cont
18645 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18646 t cont
18647 d
18648 :cont
18649 n
18650 s/.\{148\}/&'"$ac_delim"'/g
18651 t clear
18652 :clear
18653 s/\\$//
18654 t bsnlc
18655 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18656 d
18657 :bsnlc
18658 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18659 b cont
18660 ' <confdefs.h | sed '
18661 s/'"$ac_delim"'/"\\\
18662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18663
18664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18665   for (key in D) D_is_set[key] = 1
18666   FS = "\a"
18667 }
18668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18669   line = \$ 0
18670   split(line, arg, " ")
18671   if (arg[1] == "#") {
18672     defundef = arg[2]
18673     mac1 = arg[3]
18674   } else {
18675     defundef = substr(arg[1], 2)
18676     mac1 = arg[2]
18677   }
18678   split(mac1, mac2, "(") #)
18679   macro = mac2[1]
18680   prefix = substr(line, 1, index(line, defundef) - 1)
18681   if (D_is_set[macro]) {
18682     # Preserve the white space surrounding the "#".
18683     print prefix "define", macro P[macro] D[macro]
18684     next
18685   } else {
18686     # Replace #undef with comments.  This is necessary, for example,
18687     # in the case of _POSIX_SOURCE, which is predefined and required
18688     # on some systems where configure will not decide to define it.
18689     if (defundef == "undef") {
18690       print "/*", prefix defundef, macro, "*/"
18691       next
18692     }
18693   }
18694 }
18695 { print }
18696 _ACAWK
18697 _ACEOF
18698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18700 fi # test -n "$CONFIG_HEADERS"
18701
18702
18703 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18704 shift
18705 for ac_tag
18706 do
18707   case $ac_tag in
18708   :[FHLC]) ac_mode=$ac_tag; continue;;
18709   esac
18710   case $ac_mode$ac_tag in
18711   :[FHL]*:*);;
18712   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18713   :[FH]-) ac_tag=-:-;;
18714   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18715   esac
18716   ac_save_IFS=$IFS
18717   IFS=:
18718   set x $ac_tag
18719   IFS=$ac_save_IFS
18720   shift
18721   ac_file=$1
18722   shift
18723
18724   case $ac_mode in
18725   :L) ac_source=$1;;
18726   :[FH])
18727     ac_file_inputs=
18728     for ac_f
18729     do
18730       case $ac_f in
18731       -) ac_f="$ac_tmp/stdin";;
18732       *) # Look for the file first in the build tree, then in the source tree
18733          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18734          # because $ac_f cannot contain `:'.
18735          test -f "$ac_f" ||
18736            case $ac_f in
18737            [\\/$]*) false;;
18738            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18739            esac ||
18740            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18741       esac
18742       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18743       as_fn_append ac_file_inputs " '$ac_f'"
18744     done
18745
18746     # Let's still pretend it is `configure' which instantiates (i.e., don't
18747     # use $as_me), people would be surprised to read:
18748     #    /* config.h.  Generated by config.status.  */
18749     configure_input='Generated from '`
18750           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18751         `' by configure.'
18752     if test x"$ac_file" != x-; then
18753       configure_input="$ac_file.  $configure_input"
18754       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18755 $as_echo "$as_me: creating $ac_file" >&6;}
18756     fi
18757     # Neutralize special characters interpreted by sed in replacement strings.
18758     case $configure_input in #(
18759     *\&* | *\|* | *\\* )
18760        ac_sed_conf_input=`$as_echo "$configure_input" |
18761        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18762     *) ac_sed_conf_input=$configure_input;;
18763     esac
18764
18765     case $ac_tag in
18766     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18767       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18768     esac
18769     ;;
18770   esac
18771
18772   ac_dir=`$as_dirname -- "$ac_file" ||
18773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18774          X"$ac_file" : 'X\(//\)[^/]' \| \
18775          X"$ac_file" : 'X\(//\)$' \| \
18776          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18777 $as_echo X"$ac_file" |
18778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18779             s//\1/
18780             q
18781           }
18782           /^X\(\/\/\)[^/].*/{
18783             s//\1/
18784             q
18785           }
18786           /^X\(\/\/\)$/{
18787             s//\1/
18788             q
18789           }
18790           /^X\(\/\).*/{
18791             s//\1/
18792             q
18793           }
18794           s/.*/./; q'`
18795   as_dir="$ac_dir"; as_fn_mkdir_p
18796   ac_builddir=.
18797
18798 case "$ac_dir" in
18799 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18800 *)
18801   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18802   # A ".." for each directory in $ac_dir_suffix.
18803   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18804   case $ac_top_builddir_sub in
18805   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18806   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18807   esac ;;
18808 esac
18809 ac_abs_top_builddir=$ac_pwd
18810 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18811 # for backward compatibility:
18812 ac_top_builddir=$ac_top_build_prefix
18813
18814 case $srcdir in
18815   .)  # We are building in place.
18816     ac_srcdir=.
18817     ac_top_srcdir=$ac_top_builddir_sub
18818     ac_abs_top_srcdir=$ac_pwd ;;
18819   [\\/]* | ?:[\\/]* )  # Absolute name.
18820     ac_srcdir=$srcdir$ac_dir_suffix;
18821     ac_top_srcdir=$srcdir
18822     ac_abs_top_srcdir=$srcdir ;;
18823   *) # Relative name.
18824     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18825     ac_top_srcdir=$ac_top_build_prefix$srcdir
18826     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18827 esac
18828 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18829
18830
18831   case $ac_mode in
18832   :F)
18833   #
18834   # CONFIG_FILE
18835   #
18836
18837   case $INSTALL in
18838   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18839   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18840   esac
18841   ac_MKDIR_P=$MKDIR_P
18842   case $MKDIR_P in
18843   [\\/$]* | ?:[\\/]* ) ;;
18844   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18845   esac
18846 _ACEOF
18847
18848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18849 # If the template does not know about datarootdir, expand it.
18850 # FIXME: This hack should be removed a few years after 2.60.
18851 ac_datarootdir_hack=; ac_datarootdir_seen=
18852 ac_sed_dataroot='
18853 /datarootdir/ {
18854   p
18855   q
18856 }
18857 /@datadir@/p
18858 /@docdir@/p
18859 /@infodir@/p
18860 /@localedir@/p
18861 /@mandir@/p'
18862 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18863 *datarootdir*) ac_datarootdir_seen=yes;;
18864 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18866 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18867 _ACEOF
18868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18869   ac_datarootdir_hack='
18870   s&@datadir@&$datadir&g
18871   s&@docdir@&$docdir&g
18872   s&@infodir@&$infodir&g
18873   s&@localedir@&$localedir&g
18874   s&@mandir@&$mandir&g
18875   s&\\\${datarootdir}&$datarootdir&g' ;;
18876 esac
18877 _ACEOF
18878
18879 # Neutralize VPATH when `$srcdir' = `.'.
18880 # Shell code in configure.ac might set extrasub.
18881 # FIXME: do we really want to maintain this feature?
18882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18883 ac_sed_extra="$ac_vpsub
18884 $extrasub
18885 _ACEOF
18886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18887 :t
18888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18889 s|@configure_input@|$ac_sed_conf_input|;t t
18890 s&@top_builddir@&$ac_top_builddir_sub&;t t
18891 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18892 s&@srcdir@&$ac_srcdir&;t t
18893 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18894 s&@top_srcdir@&$ac_top_srcdir&;t t
18895 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18896 s&@builddir@&$ac_builddir&;t t
18897 s&@abs_builddir@&$ac_abs_builddir&;t t
18898 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18899 s&@INSTALL@&$ac_INSTALL&;t t
18900 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18901 $ac_datarootdir_hack
18902 "
18903 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18904   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18905
18906 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18907   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18908   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18909       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18910   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18911 which seems to be undefined.  Please make sure it is defined" >&5
18912 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18913 which seems to be undefined.  Please make sure it is defined" >&2;}
18914
18915   rm -f "$ac_tmp/stdin"
18916   case $ac_file in
18917   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18918   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18919   esac \
18920   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18921  ;;
18922   :H)
18923   #
18924   # CONFIG_HEADER
18925   #
18926   if test x"$ac_file" != x-; then
18927     {
18928       $as_echo "/* $configure_input  */" \
18929       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18930     } >"$ac_tmp/config.h" \
18931       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18932     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18933       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18934 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18935     else
18936       rm -f "$ac_file"
18937       mv "$ac_tmp/config.h" "$ac_file" \
18938         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18939     fi
18940   else
18941     $as_echo "/* $configure_input  */" \
18942       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18943       || as_fn_error $? "could not create -" "$LINENO" 5
18944   fi
18945 # Compute "$ac_file"'s index in $config_headers.
18946 _am_arg="$ac_file"
18947 _am_stamp_count=1
18948 for _am_header in $config_headers :; do
18949   case $_am_header in
18950     $_am_arg | $_am_arg:* )
18951       break ;;
18952     * )
18953       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18954   esac
18955 done
18956 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18957 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18958          X"$_am_arg" : 'X\(//\)[^/]' \| \
18959          X"$_am_arg" : 'X\(//\)$' \| \
18960          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18961 $as_echo X"$_am_arg" |
18962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18963             s//\1/
18964             q
18965           }
18966           /^X\(\/\/\)[^/].*/{
18967             s//\1/
18968             q
18969           }
18970           /^X\(\/\/\)$/{
18971             s//\1/
18972             q
18973           }
18974           /^X\(\/\).*/{
18975             s//\1/
18976             q
18977           }
18978           s/.*/./; q'`/stamp-h$_am_stamp_count
18979  ;;
18980
18981   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18982 $as_echo "$as_me: executing $ac_file commands" >&6;}
18983  ;;
18984   esac
18985
18986
18987   case $ac_file$ac_mode in
18988     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18989   # Older Autoconf quotes --file arguments for eval, but not when files
18990   # are listed without --file.  Let's play safe and only enable the eval
18991   # if we detect the quoting.
18992   case $CONFIG_FILES in
18993   *\'*) eval set x "$CONFIG_FILES" ;;
18994   *)   set x $CONFIG_FILES ;;
18995   esac
18996   shift
18997   for mf
18998   do
18999     # Strip MF so we end up with the name of the file.
19000     mf=`echo "$mf" | sed -e 's/:.*$//'`
19001     # Check whether this is an Automake generated Makefile or not.
19002     # We used to match only the files named 'Makefile.in', but
19003     # some people rename them; so instead we look at the file content.
19004     # Grep'ing the first line is not enough: some people post-process
19005     # each Makefile.in and add a new line on top of each file to say so.
19006     # Grep'ing the whole file is not good either: AIX grep has a line
19007     # limit of 2048, but all sed's we know have understand at least 4000.
19008     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19009       dirpart=`$as_dirname -- "$mf" ||
19010 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19011          X"$mf" : 'X\(//\)[^/]' \| \
19012          X"$mf" : 'X\(//\)$' \| \
19013          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19014 $as_echo X"$mf" |
19015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19016             s//\1/
19017             q
19018           }
19019           /^X\(\/\/\)[^/].*/{
19020             s//\1/
19021             q
19022           }
19023           /^X\(\/\/\)$/{
19024             s//\1/
19025             q
19026           }
19027           /^X\(\/\).*/{
19028             s//\1/
19029             q
19030           }
19031           s/.*/./; q'`
19032     else
19033       continue
19034     fi
19035     # Extract the definition of DEPDIR, am__include, and am__quote
19036     # from the Makefile without running 'make'.
19037     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19038     test -z "$DEPDIR" && continue
19039     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19040     test -z "$am__include" && continue
19041     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19042     # Find all dependency output files, they are included files with
19043     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19044     # simplest approach to changing $(DEPDIR) to its actual value in the
19045     # expansion.
19046     for file in `sed -n "
19047       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19048          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19049       # Make sure the directory exists.
19050       test -f "$dirpart/$file" && continue
19051       fdir=`$as_dirname -- "$file" ||
19052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19053          X"$file" : 'X\(//\)[^/]' \| \
19054          X"$file" : 'X\(//\)$' \| \
19055          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19056 $as_echo X"$file" |
19057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19058             s//\1/
19059             q
19060           }
19061           /^X\(\/\/\)[^/].*/{
19062             s//\1/
19063             q
19064           }
19065           /^X\(\/\/\)$/{
19066             s//\1/
19067             q
19068           }
19069           /^X\(\/\).*/{
19070             s//\1/
19071             q
19072           }
19073           s/.*/./; q'`
19074       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19075       # echo "creating $dirpart/$file"
19076       echo '# dummy' > "$dirpart/$file"
19077     done
19078   done
19079 }
19080  ;;
19081     "libtool":C)
19082
19083     # See if we are running on zsh, and set the options that allow our
19084     # commands through without removal of \ escapes.
19085     if test -n "${ZSH_VERSION+set}"; then
19086       setopt NO_GLOB_SUBST
19087     fi
19088
19089     cfgfile=${ofile}T
19090     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19091     $RM "$cfgfile"
19092
19093     cat <<_LT_EOF >> "$cfgfile"
19094 #! $SHELL
19095 # Generated automatically by $as_me ($PACKAGE) $VERSION
19096 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19097
19098 # Provide generalized library-building support services.
19099 # Written by Gordon Matzigkeit, 1996
19100
19101 # Copyright (C) 2014 Free Software Foundation, Inc.
19102 # This is free software; see the source for copying conditions.  There is NO
19103 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19104
19105 # GNU Libtool is free software; you can redistribute it and/or modify
19106 # it under the terms of the GNU General Public License as published by
19107 # the Free Software Foundation; either version 2 of of the License, or
19108 # (at your option) any later version.
19109 #
19110 # As a special exception to the GNU General Public License, if you
19111 # distribute this file as part of a program or library that is built
19112 # using GNU Libtool, you may include this file under the  same
19113 # distribution terms that you use for the rest of that program.
19114 #
19115 # GNU Libtool is distributed in the hope that it will be useful, but
19116 # WITHOUT ANY WARRANTY; without even the implied warranty of
19117 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19118 # GNU General Public License for more details.
19119 #
19120 # You should have received a copy of the GNU General Public License
19121 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19122
19123
19124 # The names of the tagged configurations supported by this script.
19125 available_tags='CXX '
19126
19127 # Configured defaults for sys_lib_dlsearch_path munging.
19128 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19129
19130 # ### BEGIN LIBTOOL CONFIG
19131
19132 # Which release of libtool.m4 was used?
19133 macro_version=$macro_version
19134 macro_revision=$macro_revision
19135
19136 # Whether or not to build static libraries.
19137 build_old_libs=$enable_static
19138
19139 # Assembler program.
19140 AS=$lt_AS
19141
19142 # DLL creation program.
19143 DLLTOOL=$lt_DLLTOOL
19144
19145 # Object dumper program.
19146 OBJDUMP=$lt_OBJDUMP
19147
19148 # Whether or not to build shared libraries.
19149 build_libtool_libs=$enable_shared
19150
19151 # What type of objects to build.
19152 pic_mode=$pic_mode
19153
19154 # Whether or not to optimize for fast installation.
19155 fast_install=$enable_fast_install
19156
19157 # Shared archive member basename,for filename based shared library versioning on AIX.
19158 shared_archive_member_spec=$shared_archive_member_spec
19159
19160 # Shell to use when invoking shell scripts.
19161 SHELL=$lt_SHELL
19162
19163 # An echo program that protects backslashes.
19164 ECHO=$lt_ECHO
19165
19166 # The PATH separator for the build system.
19167 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19168
19169 # The host system.
19170 host_alias=$host_alias
19171 host=$host
19172 host_os=$host_os
19173
19174 # The build system.
19175 build_alias=$build_alias
19176 build=$build
19177 build_os=$build_os
19178
19179 # A sed program that does not truncate output.
19180 SED=$lt_SED
19181
19182 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19183 Xsed="\$SED -e 1s/^X//"
19184
19185 # A grep program that handles long lines.
19186 GREP=$lt_GREP
19187
19188 # An ERE matcher.
19189 EGREP=$lt_EGREP
19190
19191 # A literal string matcher.
19192 FGREP=$lt_FGREP
19193
19194 # A BSD- or MS-compatible name lister.
19195 NM=$lt_NM
19196
19197 # Whether we need soft or hard links.
19198 LN_S=$lt_LN_S
19199
19200 # What is the maximum length of a command?
19201 max_cmd_len=$max_cmd_len
19202
19203 # Object file suffix (normally "o").
19204 objext=$ac_objext
19205
19206 # Executable file suffix (normally "").
19207 exeext=$exeext
19208
19209 # whether the shell understands "unset".
19210 lt_unset=$lt_unset
19211
19212 # turn spaces into newlines.
19213 SP2NL=$lt_lt_SP2NL
19214
19215 # turn newlines into spaces.
19216 NL2SP=$lt_lt_NL2SP
19217
19218 # convert \$build file names to \$host format.
19219 to_host_file_cmd=$lt_cv_to_host_file_cmd
19220
19221 # convert \$build files to toolchain format.
19222 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19223
19224 # Method to check whether dependent libraries are shared objects.
19225 deplibs_check_method=$lt_deplibs_check_method
19226
19227 # Command to use when deplibs_check_method = "file_magic".
19228 file_magic_cmd=$lt_file_magic_cmd
19229
19230 # How to find potential files when deplibs_check_method = "file_magic".
19231 file_magic_glob=$lt_file_magic_glob
19232
19233 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19234 want_nocaseglob=$lt_want_nocaseglob
19235
19236 # Command to associate shared and link libraries.
19237 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19238
19239 # The archiver.
19240 AR=$lt_AR
19241
19242 # Flags to create an archive.
19243 AR_FLAGS=$lt_AR_FLAGS
19244
19245 # How to feed a file listing to the archiver.
19246 archiver_list_spec=$lt_archiver_list_spec
19247
19248 # A symbol stripping program.
19249 STRIP=$lt_STRIP
19250
19251 # Commands used to install an old-style archive.
19252 RANLIB=$lt_RANLIB
19253 old_postinstall_cmds=$lt_old_postinstall_cmds
19254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19255
19256 # Whether to use a lock for old archive extraction.
19257 lock_old_archive_extraction=$lock_old_archive_extraction
19258
19259 # A C compiler.
19260 LTCC=$lt_CC
19261
19262 # LTCC compiler flags.
19263 LTCFLAGS=$lt_CFLAGS
19264
19265 # Take the output of nm and produce a listing of raw symbols and C names.
19266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19267
19268 # Transform the output of nm in a proper C declaration.
19269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19270
19271 # Transform the output of nm into a list of symbols to manually relocate.
19272 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19273
19274 # Transform the output of nm in a C name address pair.
19275 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19276
19277 # Transform the output of nm in a C name address pair when lib prefix is needed.
19278 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19279
19280 # The name lister interface.
19281 nm_interface=$lt_lt_cv_nm_interface
19282
19283 # Specify filename containing input files for \$NM.
19284 nm_file_list_spec=$lt_nm_file_list_spec
19285
19286 # The root where to search for dependent libraries,and where our libraries should be installed.
19287 lt_sysroot=$lt_sysroot
19288
19289 # Command to truncate a binary pipe.
19290 lt_truncate_bin=$lt_lt_cv_truncate_bin
19291
19292 # The name of the directory that contains temporary libtool files.
19293 objdir=$objdir
19294
19295 # Used to examine libraries when file_magic_cmd begins with "file".
19296 MAGIC_CMD=$MAGIC_CMD
19297
19298 # Must we lock files when doing compilation?
19299 need_locks=$lt_need_locks
19300
19301 # Manifest tool.
19302 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19303
19304 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19305 DSYMUTIL=$lt_DSYMUTIL
19306
19307 # Tool to change global to local symbols on Mac OS X.
19308 NMEDIT=$lt_NMEDIT
19309
19310 # Tool to manipulate fat objects and archives on Mac OS X.
19311 LIPO=$lt_LIPO
19312
19313 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19314 OTOOL=$lt_OTOOL
19315
19316 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19317 OTOOL64=$lt_OTOOL64
19318
19319 # Old archive suffix (normally "a").
19320 libext=$libext
19321
19322 # Shared library suffix (normally ".so").
19323 shrext_cmds=$lt_shrext_cmds
19324
19325 # The commands to extract the exported symbol list from a shared archive.
19326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19327
19328 # Variables whose values should be saved in libtool wrapper scripts and
19329 # restored at link time.
19330 variables_saved_for_relink=$lt_variables_saved_for_relink
19331
19332 # Do we need the "lib" prefix for modules?
19333 need_lib_prefix=$need_lib_prefix
19334
19335 # Do we need a version for libraries?
19336 need_version=$need_version
19337
19338 # Library versioning type.
19339 version_type=$version_type
19340
19341 # Shared library runtime path variable.
19342 runpath_var=$runpath_var
19343
19344 # Shared library path variable.
19345 shlibpath_var=$shlibpath_var
19346
19347 # Is shlibpath searched before the hard-coded library search path?
19348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19349
19350 # Format of library name prefix.
19351 libname_spec=$lt_libname_spec
19352
19353 # List of archive names.  First name is the real one, the rest are links.
19354 # The last name is the one that the linker finds with -lNAME
19355 library_names_spec=$lt_library_names_spec
19356
19357 # The coded name of the library, if different from the real name.
19358 soname_spec=$lt_soname_spec
19359
19360 # Permission mode override for installation of shared libraries.
19361 install_override_mode=$lt_install_override_mode
19362
19363 # Command to use after installation of a shared archive.
19364 postinstall_cmds=$lt_postinstall_cmds
19365
19366 # Command to use after uninstallation of a shared archive.
19367 postuninstall_cmds=$lt_postuninstall_cmds
19368
19369 # Commands used to finish a libtool library installation in a directory.
19370 finish_cmds=$lt_finish_cmds
19371
19372 # As "finish_cmds", except a single script fragment to be evaled but
19373 # not shown.
19374 finish_eval=$lt_finish_eval
19375
19376 # Whether we should hardcode library paths into libraries.
19377 hardcode_into_libs=$hardcode_into_libs
19378
19379 # Compile-time system search path for libraries.
19380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19381
19382 # Detected run-time system search path for libraries.
19383 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19384
19385 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19386 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19387
19388 # Whether dlopen is supported.
19389 dlopen_support=$enable_dlopen
19390
19391 # Whether dlopen of programs is supported.
19392 dlopen_self=$enable_dlopen_self
19393
19394 # Whether dlopen of statically linked programs is supported.
19395 dlopen_self_static=$enable_dlopen_self_static
19396
19397 # Commands to strip libraries.
19398 old_striplib=$lt_old_striplib
19399 striplib=$lt_striplib
19400
19401
19402 # The linker used to build libraries.
19403 LD=$lt_LD
19404
19405 # How to create reloadable object files.
19406 reload_flag=$lt_reload_flag
19407 reload_cmds=$lt_reload_cmds
19408
19409 # Commands used to build an old-style archive.
19410 old_archive_cmds=$lt_old_archive_cmds
19411
19412 # A language specific compiler.
19413 CC=$lt_compiler
19414
19415 # Is the compiler the GNU compiler?
19416 with_gcc=$GCC
19417
19418 # Compiler flag to turn off builtin functions.
19419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19420
19421 # Additional compiler flags for building library objects.
19422 pic_flag=$lt_lt_prog_compiler_pic
19423
19424 # How to pass a linker flag through the compiler.
19425 wl=$lt_lt_prog_compiler_wl
19426
19427 # Compiler flag to prevent dynamic linking.
19428 link_static_flag=$lt_lt_prog_compiler_static
19429
19430 # Does compiler simultaneously support -c and -o options?
19431 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19432
19433 # Whether or not to add -lc for building shared libraries.
19434 build_libtool_need_lc=$archive_cmds_need_lc
19435
19436 # Whether or not to disallow shared libs when runtime libs are static.
19437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19438
19439 # Compiler flag to allow reflexive dlopens.
19440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19441
19442 # Compiler flag to generate shared objects directly from archives.
19443 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19444
19445 # Whether the compiler copes with passing no objects directly.
19446 compiler_needs_object=$lt_compiler_needs_object
19447
19448 # Create an old-style archive from a shared archive.
19449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19450
19451 # Create a temporary old-style archive to link instead of a shared archive.
19452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19453
19454 # Commands used to build a shared archive.
19455 archive_cmds=$lt_archive_cmds
19456 archive_expsym_cmds=$lt_archive_expsym_cmds
19457
19458 # Commands used to build a loadable module if different from building
19459 # a shared archive.
19460 module_cmds=$lt_module_cmds
19461 module_expsym_cmds=$lt_module_expsym_cmds
19462
19463 # Whether we are building with GNU ld or not.
19464 with_gnu_ld=$lt_with_gnu_ld
19465
19466 # Flag that allows shared libraries with undefined symbols to be built.
19467 allow_undefined_flag=$lt_allow_undefined_flag
19468
19469 # Flag that enforces no undefined symbols.
19470 no_undefined_flag=$lt_no_undefined_flag
19471
19472 # Flag to hardcode \$libdir into a binary during linking.
19473 # This must work even if \$libdir does not exist
19474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19475
19476 # Whether we need a single "-rpath" flag with a separated argument.
19477 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19478
19479 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19480 # DIR into the resulting binary.
19481 hardcode_direct=$hardcode_direct
19482
19483 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19484 # DIR into the resulting binary and the resulting library dependency is
19485 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19486 # library is relocated.
19487 hardcode_direct_absolute=$hardcode_direct_absolute
19488
19489 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19490 # into the resulting binary.
19491 hardcode_minus_L=$hardcode_minus_L
19492
19493 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19494 # into the resulting binary.
19495 hardcode_shlibpath_var=$hardcode_shlibpath_var
19496
19497 # Set to "yes" if building a shared library automatically hardcodes DIR
19498 # into the library and all subsequent libraries and executables linked
19499 # against it.
19500 hardcode_automatic=$hardcode_automatic
19501
19502 # Set to yes if linker adds runtime paths of dependent libraries
19503 # to runtime path list.
19504 inherit_rpath=$inherit_rpath
19505
19506 # Whether libtool must link a program against all its dependency libraries.
19507 link_all_deplibs=$link_all_deplibs
19508
19509 # Set to "yes" if exported symbols are required.
19510 always_export_symbols=$always_export_symbols
19511
19512 # The commands to list exported symbols.
19513 export_symbols_cmds=$lt_export_symbols_cmds
19514
19515 # Symbols that should not be listed in the preloaded symbols.
19516 exclude_expsyms=$lt_exclude_expsyms
19517
19518 # Symbols that must always be exported.
19519 include_expsyms=$lt_include_expsyms
19520
19521 # Commands necessary for linking programs (against libraries) with templates.
19522 prelink_cmds=$lt_prelink_cmds
19523
19524 # Commands necessary for finishing linking programs.
19525 postlink_cmds=$lt_postlink_cmds
19526
19527 # Specify filename containing input files.
19528 file_list_spec=$lt_file_list_spec
19529
19530 # How to hardcode a shared library path into an executable.
19531 hardcode_action=$hardcode_action
19532
19533 # The directories searched by this compiler when creating a shared library.
19534 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19535
19536 # Dependencies to place before and after the objects being linked to
19537 # create a shared library.
19538 predep_objects=$lt_predep_objects
19539 postdep_objects=$lt_postdep_objects
19540 predeps=$lt_predeps
19541 postdeps=$lt_postdeps
19542
19543 # The library search path used internally by the compiler when linking
19544 # a shared library.
19545 compiler_lib_search_path=$lt_compiler_lib_search_path
19546
19547 # ### END LIBTOOL CONFIG
19548
19549 _LT_EOF
19550
19551     cat <<'_LT_EOF' >> "$cfgfile"
19552
19553 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19554
19555 # func_munge_path_list VARIABLE PATH
19556 # -----------------------------------
19557 # VARIABLE is name of variable containing _space_ separated list of
19558 # directories to be munged by the contents of PATH, which is string
19559 # having a format:
19560 # "DIR[:DIR]:"
19561 #       string "DIR[ DIR]" will be prepended to VARIABLE
19562 # ":DIR[:DIR]"
19563 #       string "DIR[ DIR]" will be appended to VARIABLE
19564 # "DIRP[:DIRP]::[DIRA:]DIRA"
19565 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19566 #       "DIRA[ DIRA]" will be appended to VARIABLE
19567 # "DIR[:DIR]"
19568 #       VARIABLE will be replaced by "DIR[ DIR]"
19569 func_munge_path_list ()
19570 {
19571     case x$2 in
19572     x)
19573         ;;
19574     *:)
19575         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19576         ;;
19577     x:*)
19578         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19579         ;;
19580     *::*)
19581         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19582         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19583         ;;
19584     *)
19585         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19586         ;;
19587     esac
19588 }
19589
19590
19591 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19592 func_cc_basename ()
19593 {
19594     for cc_temp in $*""; do
19595       case $cc_temp in
19596         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19597         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19598         \-*) ;;
19599         *) break;;
19600       esac
19601     done
19602     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19603 }
19604
19605
19606 # ### END FUNCTIONS SHARED WITH CONFIGURE
19607
19608 _LT_EOF
19609
19610   case $host_os in
19611   aix3*)
19612     cat <<\_LT_EOF >> "$cfgfile"
19613 # AIX sometimes has problems with the GCC collect2 program.  For some
19614 # reason, if we set the COLLECT_NAMES environment variable, the problems
19615 # vanish in a puff of smoke.
19616 if test set != "${COLLECT_NAMES+set}"; then
19617   COLLECT_NAMES=
19618   export COLLECT_NAMES
19619 fi
19620 _LT_EOF
19621     ;;
19622   esac
19623
19624
19625 ltmain=$ac_aux_dir/ltmain.sh
19626
19627
19628   # We use sed instead of cat because bash on DJGPP gets confused if
19629   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19630   # text mode, it properly converts lines to CR/LF.  This bash problem
19631   # is reportedly fixed, but why not run on old versions too?
19632   sed '$q' "$ltmain" >> "$cfgfile" \
19633      || (rm -f "$cfgfile"; exit 1)
19634
19635    mv -f "$cfgfile" "$ofile" ||
19636     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19637   chmod +x "$ofile"
19638
19639
19640     cat <<_LT_EOF >> "$ofile"
19641
19642 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19643
19644 # The linker used to build libraries.
19645 LD=$lt_LD_CXX
19646
19647 # How to create reloadable object files.
19648 reload_flag=$lt_reload_flag_CXX
19649 reload_cmds=$lt_reload_cmds_CXX
19650
19651 # Commands used to build an old-style archive.
19652 old_archive_cmds=$lt_old_archive_cmds_CXX
19653
19654 # A language specific compiler.
19655 CC=$lt_compiler_CXX
19656
19657 # Is the compiler the GNU compiler?
19658 with_gcc=$GCC_CXX
19659
19660 # Compiler flag to turn off builtin functions.
19661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19662
19663 # Additional compiler flags for building library objects.
19664 pic_flag=$lt_lt_prog_compiler_pic_CXX
19665
19666 # How to pass a linker flag through the compiler.
19667 wl=$lt_lt_prog_compiler_wl_CXX
19668
19669 # Compiler flag to prevent dynamic linking.
19670 link_static_flag=$lt_lt_prog_compiler_static_CXX
19671
19672 # Does compiler simultaneously support -c and -o options?
19673 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19674
19675 # Whether or not to add -lc for building shared libraries.
19676 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19677
19678 # Whether or not to disallow shared libs when runtime libs are static.
19679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19680
19681 # Compiler flag to allow reflexive dlopens.
19682 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19683
19684 # Compiler flag to generate shared objects directly from archives.
19685 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19686
19687 # Whether the compiler copes with passing no objects directly.
19688 compiler_needs_object=$lt_compiler_needs_object_CXX
19689
19690 # Create an old-style archive from a shared archive.
19691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19692
19693 # Create a temporary old-style archive to link instead of a shared archive.
19694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19695
19696 # Commands used to build a shared archive.
19697 archive_cmds=$lt_archive_cmds_CXX
19698 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19699
19700 # Commands used to build a loadable module if different from building
19701 # a shared archive.
19702 module_cmds=$lt_module_cmds_CXX
19703 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19704
19705 # Whether we are building with GNU ld or not.
19706 with_gnu_ld=$lt_with_gnu_ld_CXX
19707
19708 # Flag that allows shared libraries with undefined symbols to be built.
19709 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19710
19711 # Flag that enforces no undefined symbols.
19712 no_undefined_flag=$lt_no_undefined_flag_CXX
19713
19714 # Flag to hardcode \$libdir into a binary during linking.
19715 # This must work even if \$libdir does not exist
19716 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19717
19718 # Whether we need a single "-rpath" flag with a separated argument.
19719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19720
19721 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19722 # DIR into the resulting binary.
19723 hardcode_direct=$hardcode_direct_CXX
19724
19725 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19726 # DIR into the resulting binary and the resulting library dependency is
19727 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19728 # library is relocated.
19729 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19730
19731 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19732 # into the resulting binary.
19733 hardcode_minus_L=$hardcode_minus_L_CXX
19734
19735 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19736 # into the resulting binary.
19737 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19738
19739 # Set to "yes" if building a shared library automatically hardcodes DIR
19740 # into the library and all subsequent libraries and executables linked
19741 # against it.
19742 hardcode_automatic=$hardcode_automatic_CXX
19743
19744 # Set to yes if linker adds runtime paths of dependent libraries
19745 # to runtime path list.
19746 inherit_rpath=$inherit_rpath_CXX
19747
19748 # Whether libtool must link a program against all its dependency libraries.
19749 link_all_deplibs=$link_all_deplibs_CXX
19750
19751 # Set to "yes" if exported symbols are required.
19752 always_export_symbols=$always_export_symbols_CXX
19753
19754 # The commands to list exported symbols.
19755 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19756
19757 # Symbols that should not be listed in the preloaded symbols.
19758 exclude_expsyms=$lt_exclude_expsyms_CXX
19759
19760 # Symbols that must always be exported.
19761 include_expsyms=$lt_include_expsyms_CXX
19762
19763 # Commands necessary for linking programs (against libraries) with templates.
19764 prelink_cmds=$lt_prelink_cmds_CXX
19765
19766 # Commands necessary for finishing linking programs.
19767 postlink_cmds=$lt_postlink_cmds_CXX
19768
19769 # Specify filename containing input files.
19770 file_list_spec=$lt_file_list_spec_CXX
19771
19772 # How to hardcode a shared library path into an executable.
19773 hardcode_action=$hardcode_action_CXX
19774
19775 # The directories searched by this compiler when creating a shared library.
19776 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19777
19778 # Dependencies to place before and after the objects being linked to
19779 # create a shared library.
19780 predep_objects=$lt_predep_objects_CXX
19781 postdep_objects=$lt_postdep_objects_CXX
19782 predeps=$lt_predeps_CXX
19783 postdeps=$lt_postdeps_CXX
19784
19785 # The library search path used internally by the compiler when linking
19786 # a shared library.
19787 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19788
19789 # ### END LIBTOOL TAG CONFIG: CXX
19790 _LT_EOF
19791
19792  ;;
19793
19794   esac
19795 done # for ac_tag
19796
19797
19798 as_fn_exit 0
19799 _ACEOF
19800 ac_clean_files=$ac_clean_files_save
19801
19802 test $ac_write_fail = 0 ||
19803   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19804
19805
19806 # configure is writing to config.log, and then calls config.status.
19807 # config.status does its own redirection, appending to config.log.
19808 # Unfortunately, on DOS this fails, as config.log is still kept open
19809 # by configure, so config.status won't be able to write to it; its
19810 # output is simply discarded.  So we exec the FD to /dev/null,
19811 # effectively closing config.log, so it can be properly (re)opened and
19812 # appended to by config.status.  When coming back to configure, we
19813 # need to make the FD available again.
19814 if test "$no_create" != yes; then
19815   ac_cs_success=:
19816   ac_config_status_args=
19817   test "$silent" = yes &&
19818     ac_config_status_args="$ac_config_status_args --quiet"
19819   exec 5>/dev/null
19820   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19821   exec 5>>config.log
19822   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19823   # would make configure fail if this is the last instruction.
19824   $ac_cs_success || as_fn_exit 1
19825 fi
19826 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19828 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19829 fi
19830