48e328d9337c65031036709f76d47ff2f523941e
[mech_eap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for mech_eap 0.1.
4 #
5 # Report bugs to <bugs@project-moonshot.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: bugs@project-moonshot.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='mech_eap'
703 PACKAGE_TARNAME='mech_eap'
704 PACKAGE_VERSION='0.1'
705 PACKAGE_STRING='mech_eap 0.1'
706 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 JANSSON_LIBS
750 JANSSON_LDFLAGS
751 JANSSON_CFLAGS
752 RADSEC_LIBS
753 RADSEC_LDFLAGS
754 RADSEC_CFLAGS
755 SHIBRESOLVER_LIBS
756 SHIBRESOLVER_LDFLAGS
757 SHIBRESOLVER_CXXFLAGS
758 SHIBSP_LIBS
759 SHIBSP_LDFLAGS
760 SHIBSP_CXXFLAGS
761 HEIMDAL_FALSE
762 HEIMDAL_TRUE
763 COMPILE_ET
764 KRB5_LIBS
765 KRB5_CFLAGS
766 TARGET_LDFLAGS
767 TARGET_CFLAGS
768 GSSEAP_ENABLE_REAUTH_FALSE
769 GSSEAP_ENABLE_REAUTH_TRUE
770 CXXCPP
771 am__fastdepCXX_FALSE
772 am__fastdepCXX_TRUE
773 CXXDEPMODE
774 ac_ct_CXX
775 CXXFLAGS
776 CXX
777 CPP
778 OTOOL64
779 OTOOL
780 LIPO
781 NMEDIT
782 DSYMUTIL
783 lt_ECHO
784 RANLIB
785 AR
786 OBJDUMP
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 EGREP
794 GREP
795 SED
796 am__fastdepCC_FALSE
797 am__fastdepCC_TRUE
798 CCDEPMODE
799 AMDEPBACKSLASH
800 AMDEP_FALSE
801 AMDEP_TRUE
802 am__quote
803 am__include
804 DEPDIR
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
811 CC
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 LIBTOOL
821 AM_BACKSLASH
822 AM_DEFAULT_VERBOSITY
823 am__untar
824 am__tar
825 AMTAR
826 am__leading_dot
827 SET_MAKE
828 AWK
829 mkdir_p
830 MKDIR_P
831 INSTALL_STRIP_PROGRAM
832 STRIP
833 install_sh
834 MAKEINFO
835 AUTOHEADER
836 AUTOMAKE
837 AUTOCONF
838 ACLOCAL
839 VERSION
840 PACKAGE
841 CYGPATH_W
842 am__isrc
843 INSTALL_DATA
844 INSTALL_SCRIPT
845 INSTALL_PROGRAM
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 localstatedir
866 sharedstatedir
867 sysconfdir
868 datadir
869 datarootdir
870 libexecdir
871 sbindir
872 bindir
873 program_transform_name
874 prefix
875 exec_prefix
876 PACKAGE_URL
877 PACKAGE_BUGREPORT
878 PACKAGE_STRING
879 PACKAGE_VERSION
880 PACKAGE_TARNAME
881 PACKAGE_NAME
882 PATH_SEPARATOR
883 SHELL'
884 ac_subst_files=''
885 ac_user_opts='
886 enable_option_checking
887 enable_silent_rules
888 enable_static
889 enable_shared
890 with_pic
891 enable_fast_install
892 enable_dependency_tracking
893 with_gnu_ld
894 enable_libtool_lock
895 enable_reauth
896 with_krb5
897 with_shibsp
898 with_shibresolver
899 with_radsec
900 with_jansson
901 '
902       ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CC
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 CPP
911 CXX
912 CXXFLAGS
913 CCC
914 CXXCPP'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 ac_unrecognized_opts=
921 ac_unrecognized_sep=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
924 cache_file=/dev/null
925 exec_prefix=NONE
926 no_create=
927 no_recursion=
928 prefix=NONE
929 program_prefix=NONE
930 program_suffix=NONE
931 program_transform_name=s,x,x,
932 silent=
933 site=
934 srcdir=
935 verbose=
936 x_includes=NONE
937 x_libraries=NONE
938
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
957 htmldir='${docdir}'
958 dvidir='${docdir}'
959 pdfdir='${docdir}'
960 psdir='${docdir}'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
964
965 ac_prev=
966 ac_dashdash=
967 for ac_option
968 do
969   # If the previous option needs an argument, assign it.
970   if test -n "$ac_prev"; then
971     eval $ac_prev=\$ac_option
972     ac_prev=
973     continue
974   fi
975
976   case $ac_option in
977   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978   *=)   ac_optarg= ;;
979   *)    ac_optarg=yes ;;
980   esac
981
982   # Accept the important Cygnus configure options, so we can diagnose typos.
983
984   case $ac_dashdash$ac_option in
985   --)
986     ac_dashdash=yes ;;
987
988   -bindir | --bindir | --bindi | --bind | --bin | --bi)
989     ac_prev=bindir ;;
990   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991     bindir=$ac_optarg ;;
992
993   -build | --build | --buil | --bui | --bu)
994     ac_prev=build_alias ;;
995   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996     build_alias=$ac_optarg ;;
997
998   -cache-file | --cache-file | --cache-fil | --cache-fi \
999   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000     ac_prev=cache_file ;;
1001   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003     cache_file=$ac_optarg ;;
1004
1005   --config-cache | -C)
1006     cache_file=config.cache ;;
1007
1008   -datadir | --datadir | --datadi | --datad)
1009     ac_prev=datadir ;;
1010   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011     datadir=$ac_optarg ;;
1012
1013   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014   | --dataroo | --dataro | --datar)
1015     ac_prev=datarootdir ;;
1016   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018     datarootdir=$ac_optarg ;;
1019
1020   -disable-* | --disable-*)
1021     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024       as_fn_error $? "invalid feature name: $ac_useropt"
1025     ac_useropt_orig=$ac_useropt
1026     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027     case $ac_user_opts in
1028       *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval enable_$ac_useropt=no ;;
1035
1036   -docdir | --docdir | --docdi | --doc | --do)
1037     ac_prev=docdir ;;
1038   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039     docdir=$ac_optarg ;;
1040
1041   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042     ac_prev=dvidir ;;
1043   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044     dvidir=$ac_optarg ;;
1045
1046   -enable-* | --enable-*)
1047     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048     # Reject names that are not valid shell variable names.
1049     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050       as_fn_error $? "invalid feature name: $ac_useropt"
1051     ac_useropt_orig=$ac_useropt
1052     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053     case $ac_user_opts in
1054       *"
1055 "enable_$ac_useropt"
1056 "*) ;;
1057       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058          ac_unrecognized_sep=', ';;
1059     esac
1060     eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064   | --exec | --exe | --ex)
1065     ac_prev=exec_prefix ;;
1066   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068   | --exec=* | --exe=* | --ex=*)
1069     exec_prefix=$ac_optarg ;;
1070
1071   -gas | --gas | --ga | --g)
1072     # Obsolete; use --with-gas.
1073     with_gas=yes ;;
1074
1075   -help | --help | --hel | --he | -h)
1076     ac_init_help=long ;;
1077   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078     ac_init_help=recursive ;;
1079   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080     ac_init_help=short ;;
1081
1082   -host | --host | --hos | --ho)
1083     ac_prev=host_alias ;;
1084   -host=* | --host=* | --hos=* | --ho=*)
1085     host_alias=$ac_optarg ;;
1086
1087   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088     ac_prev=htmldir ;;
1089   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090   | --ht=*)
1091     htmldir=$ac_optarg ;;
1092
1093   -includedir | --includedir | --includedi | --included | --include \
1094   | --includ | --inclu | --incl | --inc)
1095     ac_prev=includedir ;;
1096   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097   | --includ=* | --inclu=* | --incl=* | --inc=*)
1098     includedir=$ac_optarg ;;
1099
1100   -infodir | --infodir | --infodi | --infod | --info | --inf)
1101     ac_prev=infodir ;;
1102   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103     infodir=$ac_optarg ;;
1104
1105   -libdir | --libdir | --libdi | --libd)
1106     ac_prev=libdir ;;
1107   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108     libdir=$ac_optarg ;;
1109
1110   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111   | --libexe | --libex | --libe)
1112     ac_prev=libexecdir ;;
1113   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114   | --libexe=* | --libex=* | --libe=*)
1115     libexecdir=$ac_optarg ;;
1116
1117   -localedir | --localedir | --localedi | --localed | --locale)
1118     ac_prev=localedir ;;
1119   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120     localedir=$ac_optarg ;;
1121
1122   -localstatedir | --localstatedir | --localstatedi | --localstated \
1123   | --localstate | --localstat | --localsta | --localst | --locals)
1124     ac_prev=localstatedir ;;
1125   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127     localstatedir=$ac_optarg ;;
1128
1129   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130     ac_prev=mandir ;;
1131   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132     mandir=$ac_optarg ;;
1133
1134   -nfp | --nfp | --nf)
1135     # Obsolete; use --without-fp.
1136     with_fp=no ;;
1137
1138   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139   | --no-cr | --no-c | -n)
1140     no_create=yes ;;
1141
1142   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144     no_recursion=yes ;;
1145
1146   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148   | --oldin | --oldi | --old | --ol | --o)
1149     ac_prev=oldincludedir ;;
1150   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153     oldincludedir=$ac_optarg ;;
1154
1155   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156     ac_prev=prefix ;;
1157   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158     prefix=$ac_optarg ;;
1159
1160   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161   | --program-pre | --program-pr | --program-p)
1162     ac_prev=program_prefix ;;
1163   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165     program_prefix=$ac_optarg ;;
1166
1167   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168   | --program-suf | --program-su | --program-s)
1169     ac_prev=program_suffix ;;
1170   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172     program_suffix=$ac_optarg ;;
1173
1174   -program-transform-name | --program-transform-name \
1175   | --program-transform-nam | --program-transform-na \
1176   | --program-transform-n | --program-transform- \
1177   | --program-transform | --program-transfor \
1178   | --program-transfo | --program-transf \
1179   | --program-trans | --program-tran \
1180   | --progr-tra | --program-tr | --program-t)
1181     ac_prev=program_transform_name ;;
1182   -program-transform-name=* | --program-transform-name=* \
1183   | --program-transform-nam=* | --program-transform-na=* \
1184   | --program-transform-n=* | --program-transform-=* \
1185   | --program-transform=* | --program-transfor=* \
1186   | --program-transfo=* | --program-transf=* \
1187   | --program-trans=* | --program-tran=* \
1188   | --progr-tra=* | --program-tr=* | --program-t=*)
1189     program_transform_name=$ac_optarg ;;
1190
1191   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192     ac_prev=pdfdir ;;
1193   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194     pdfdir=$ac_optarg ;;
1195
1196   -psdir | --psdir | --psdi | --psd | --ps)
1197     ac_prev=psdir ;;
1198   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199     psdir=$ac_optarg ;;
1200
1201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202   | -silent | --silent | --silen | --sile | --sil)
1203     silent=yes ;;
1204
1205   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206     ac_prev=sbindir ;;
1207   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208   | --sbi=* | --sb=*)
1209     sbindir=$ac_optarg ;;
1210
1211   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213   | --sharedst | --shareds | --shared | --share | --shar \
1214   | --sha | --sh)
1215     ac_prev=sharedstatedir ;;
1216   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219   | --sha=* | --sh=*)
1220     sharedstatedir=$ac_optarg ;;
1221
1222   -site | --site | --sit)
1223     ac_prev=site ;;
1224   -site=* | --site=* | --sit=*)
1225     site=$ac_optarg ;;
1226
1227   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228     ac_prev=srcdir ;;
1229   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230     srcdir=$ac_optarg ;;
1231
1232   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233   | --syscon | --sysco | --sysc | --sys | --sy)
1234     ac_prev=sysconfdir ;;
1235   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237     sysconfdir=$ac_optarg ;;
1238
1239   -target | --target | --targe | --targ | --tar | --ta | --t)
1240     ac_prev=target_alias ;;
1241   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242     target_alias=$ac_optarg ;;
1243
1244   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245     verbose=yes ;;
1246
1247   -version | --version | --versio | --versi | --vers | -V)
1248     ac_init_version=: ;;
1249
1250   -with-* | --with-*)
1251     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254       as_fn_error $? "invalid package name: $ac_useropt"
1255     ac_useropt_orig=$ac_useropt
1256     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257     case $ac_user_opts in
1258       *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262          ac_unrecognized_sep=', ';;
1263     esac
1264     eval with_$ac_useropt=\$ac_optarg ;;
1265
1266   -without-* | --without-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error $? "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=no ;;
1281
1282   --x)
1283     # Obsolete; use --with-x.
1284     with_x=yes ;;
1285
1286   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287   | --x-incl | --x-inc | --x-in | --x-i)
1288     ac_prev=x_includes ;;
1289   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291     x_includes=$ac_optarg ;;
1292
1293   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295     ac_prev=x_libraries ;;
1296   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298     x_libraries=$ac_optarg ;;
1299
1300   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1302     ;;
1303
1304   *=*)
1305     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306     # Reject names that are not valid shell variable names.
1307     case $ac_envvar in #(
1308       '' | [0-9]* | *[!_$as_cr_alnum]* )
1309       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310     esac
1311     eval $ac_envvar=\$ac_optarg
1312     export $ac_envvar ;;
1313
1314   *)
1315     # FIXME: should be removed in autoconf 3.0.
1316     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320     ;;
1321
1322   esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327   as_fn_error $? "missing argument to $ac_option"
1328 fi
1329
1330 if test -n "$ac_unrecognized_opts"; then
1331   case $enable_option_checking in
1332     no) ;;
1333     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335   esac
1336 fi
1337
1338 # Check all directory arguments for consistency.
1339 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340                 datadir sysconfdir sharedstatedir localstatedir includedir \
1341                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342                 libdir localedir mandir
1343 do
1344   eval ac_val=\$$ac_var
1345   # Remove trailing slashes.
1346   case $ac_val in
1347     */ )
1348       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349       eval $ac_var=\$ac_val;;
1350   esac
1351   # Be sure to have absolute directory names.
1352   case $ac_val in
1353     [\\/$]* | ?:[\\/]* )  continue;;
1354     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355   esac
1356   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368   if test "x$build_alias" = x; then
1369     cross_compiling=maybe
1370     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1371     If a cross compiler is detected then cross compile mode will be used" >&2
1372   elif test "x$build_alias" != "x$host_alias"; then
1373     cross_compiling=yes
1374   fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386   as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$as_myself" : 'X\(//\)[^/]' \| \
1398          X"$as_myself" : 'X\(//\)$' \| \
1399          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432         pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435   srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_env_${ac_var}_value=\$${ac_var}
1446   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454   # Omit some internal or obsolete options to make the list less imposing.
1455   # This message is too long to be a string in the A/UX 3.1 sh.
1456   cat <<_ACEOF
1457 \`configure' configures mech_eap 0.1 to adapt to many kinds of systems.
1458
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464 Defaults for the options are specified in brackets.
1465
1466 Configuration:
1467   -h, --help              display this help and exit
1468       --help=short        display options specific to this package
1469       --help=recursive    display the short help of all the included packages
1470   -V, --version           display version information and exit
1471   -q, --quiet, --silent   do not print \`checking ...' messages
1472       --cache-file=FILE   cache test results in FILE [disabled]
1473   -C, --config-cache      alias for \`--cache-file=config.cache'
1474   -n, --no-create         do not create output files
1475       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477 Installation directories:
1478   --prefix=PREFIX         install architecture-independent files in PREFIX
1479                           [$ac_default_prefix]
1480   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                           [PREFIX]
1482
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1487
1488 For better control, use the options below.
1489
1490 Fine tuning of the installation directories:
1491   --bindir=DIR            user executables [EPREFIX/bin]
1492   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493   --libexecdir=DIR        program executables [EPREFIX/libexec]
1494   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497   --libdir=DIR            object code libraries [EPREFIX/lib]
1498   --includedir=DIR        C header files [PREFIX/include]
1499   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502   --infodir=DIR           info documentation [DATAROOTDIR/info]
1503   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504   --mandir=DIR            man documentation [DATAROOTDIR/man]
1505   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1506   --htmldir=DIR           html documentation [DOCDIR]
1507   --dvidir=DIR            dvi documentation [DOCDIR]
1508   --pdfdir=DIR            pdf documentation [DOCDIR]
1509   --psdir=DIR             ps documentation [DOCDIR]
1510 _ACEOF
1511
1512   cat <<\_ACEOF
1513
1514 Program names:
1515   --program-prefix=PREFIX            prepend PREFIX to installed program names
1516   --program-suffix=SUFFIX            append SUFFIX to installed program names
1517   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1518
1519 System types:
1520   --build=BUILD     configure for building on BUILD [guessed]
1521   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526   case $ac_init_help in
1527      short | recursive ) echo "Configuration of mech_eap 0.1:";;
1528    esac
1529   cat <<\_ACEOF
1530
1531 Optional Features:
1532   --disable-option-checking  ignore unrecognized --enable/--with options
1533   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1534   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1535   --enable-silent-rules          less verbose build output (undo: `make V=1')
1536   --disable-silent-rules         verbose build output (undo: `make V=0')
1537   --enable-static[=PKGS]  build static libraries [default=no]
1538   --enable-shared[=PKGS]  build shared libraries [default=yes]
1539   --enable-fast-install[=PKGS]
1540                           optimize for fast installation [default=yes]
1541   --disable-dependency-tracking  speeds up one-time build
1542   --enable-dependency-tracking   do not reject slow dependency extractors
1543   --disable-libtool-lock  avoid locking (might break parallel builds)
1544   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1545
1546 Optional Packages:
1547   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1548   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1549   --with-pic              try to use only PIC/non-PIC objects [default=use
1550                           both]
1551   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1552   --with-krb5             Use krb5 (in specified installation directory)
1553   --with-shibsp           Use shibspboleth (in specified installation
1554                           directory)
1555   --with-shibresolver     Use Shibboleth resolver (in specified installation
1556                           directory)
1557   --with-radsec           Use radsec (in specified installation directory)
1558   --with-jansson          Use jansson (in specified installation directory)
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CPP         C preprocessor
1569   CXX         C++ compiler command
1570   CXXFLAGS    C++ compiler flags
1571   CXXCPP      C++ preprocessor
1572
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1575
1576 Report bugs to <bugs@project-moonshot.org>.
1577 _ACEOF
1578 ac_status=$?
1579 fi
1580
1581 if test "$ac_init_help" = "recursive"; then
1582   # If there are subdirs, report their specific --help.
1583   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584     test -d "$ac_dir" ||
1585       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586       continue
1587     ac_builddir=.
1588
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *)
1592   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593   # A ".." for each directory in $ac_dir_suffix.
1594   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595   case $ac_top_builddir_sub in
1596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598   esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1604
1605 case $srcdir in
1606   .)  # We are building in place.
1607     ac_srcdir=.
1608     ac_top_srcdir=$ac_top_builddir_sub
1609     ac_abs_top_srcdir=$ac_pwd ;;
1610   [\\/]* | ?:[\\/]* )  # Absolute name.
1611     ac_srcdir=$srcdir$ac_dir_suffix;
1612     ac_top_srcdir=$srcdir
1613     ac_abs_top_srcdir=$srcdir ;;
1614   *) # Relative name.
1615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616     ac_top_srcdir=$ac_top_build_prefix$srcdir
1617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621     cd "$ac_dir" || { ac_status=$?; continue; }
1622     # Check for guested configure.
1623     if test -f "$ac_srcdir/configure.gnu"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626     elif test -f "$ac_srcdir/configure"; then
1627       echo &&
1628       $SHELL "$ac_srcdir/configure" --help=recursive
1629     else
1630       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631     fi || ac_status=$?
1632     cd "$ac_pwd" || { ac_status=$?; break; }
1633   done
1634 fi
1635
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638   cat <<\_ACEOF
1639 mech_eap configure 0.1
1640 generated by GNU Autoconf 2.67
1641
1642 Copyright (C) 2010 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1645 _ACEOF
1646   exit
1647 fi
1648
1649 ## ------------------------ ##
1650 ## Autoconf initialization. ##
1651 ## ------------------------ ##
1652
1653 # ac_fn_c_try_compile LINENO
1654 # --------------------------
1655 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_compile ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   rm -f conftest.$ac_objext
1660   if { { ac_try="$ac_compile"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_compile") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && {
1676          test -z "$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        } && test -s conftest.$ac_objext; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684         ac_retval=1
1685 fi
1686   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687   as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_compile
1690
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   rm -f conftest.$ac_objext conftest$ac_exeext
1698   if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_link") 2>conftest.err
1706   ac_status=$?
1707   if test -s conftest.err; then
1708     grep -v '^ *+' conftest.err >conftest.er1
1709     cat conftest.er1 >&5
1710     mv -f conftest.er1 conftest.err
1711   fi
1712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713   test $ac_status = 0; } && {
1714          test -z "$ac_c_werror_flag" ||
1715          test ! -s conftest.err
1716        } && test -s conftest$ac_exeext && {
1717          test "$cross_compiling" = yes ||
1718          $as_test_x conftest$ac_exeext
1719        }; then :
1720   ac_retval=0
1721 else
1722   $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725         ac_retval=1
1726 fi
1727   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729   # interfere with the next link command; also delete a directory that is
1730   # left behind by Apple's compiler.  We do this before executing the actions.
1731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733   as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval "test \"\${$3+set}\"" = set; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755   eval "$3=yes"
1756 else
1757   eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_cpp ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782   ac_status=$?
1783   if test -s conftest.err; then
1784     grep -v '^ *+' conftest.err >conftest.er1
1785     cat conftest.er1 >&5
1786     mv -f conftest.er1 conftest.err
1787   fi
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; } > conftest.i && {
1790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791          test ! -s conftest.err
1792        }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798     ac_retval=1
1799 fi
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801   as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_cpp
1804
1805 # ac_fn_c_try_run LINENO
1806 # ----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1808 # that executables *can* be run.
1809 ac_fn_c_try_run ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_link") 2>&5
1820   ac_status=$?
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1823   { { case "(($ac_try" in
1824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825   *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829   (eval "$ac_try") 2>&5
1830   ac_status=$?
1831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832   test $ac_status = 0; }; }; then :
1833   ac_retval=0
1834 else
1835   $as_echo "$as_me: program exited with status $ac_status" >&5
1836        $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839        ac_retval=$ac_status
1840 fi
1841   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843   as_fn_set_status $ac_retval
1844
1845 } # ac_fn_c_try_run
1846
1847 # ac_fn_c_check_func LINENO FUNC VAR
1848 # ----------------------------------
1849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1850 ac_fn_c_check_func ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval "test \"\${$3+set}\"" = set; then :
1856   $as_echo_n "(cached) " >&6
1857 else
1858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h.  */
1860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1862 #define $2 innocuous_$2
1863
1864 /* System header to define __stub macros and hopefully few prototypes,
1865     which can conflict with char $2 (); below.
1866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867     <limits.h> exists even on freestanding compilers.  */
1868
1869 #ifdef __STDC__
1870 # include <limits.h>
1871 #else
1872 # include <assert.h>
1873 #endif
1874
1875 #undef $2
1876
1877 /* Override any GCC internal prototype to avoid an error.
1878    Use char because int might match the return type of a GCC
1879    builtin and then its argument prototype would still apply.  */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885     to always fail with ENOSYS.  Some functions are actually named
1886     something starting with __ and the normal name is an alias.  */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1890
1891 int
1892 main ()
1893 {
1894 return $2 ();
1895   ;
1896   return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"; then :
1900   eval "$3=yes"
1901 else
1902   eval "$3=no"
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext \
1905     conftest$ac_exeext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911
1912 } # ac_fn_c_check_func
1913
1914 # ac_fn_cxx_try_compile LINENO
1915 # ----------------------------
1916 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_compile ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   rm -f conftest.$ac_objext
1921   if { { ac_try="$ac_compile"
1922 case "(($ac_try" in
1923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924   *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928   (eval "$ac_compile") 2>conftest.err
1929   ac_status=$?
1930   if test -s conftest.err; then
1931     grep -v '^ *+' conftest.err >conftest.er1
1932     cat conftest.er1 >&5
1933     mv -f conftest.er1 conftest.err
1934   fi
1935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936   test $ac_status = 0; } && {
1937          test -z "$ac_cxx_werror_flag" ||
1938          test ! -s conftest.err
1939        } && test -s conftest.$ac_objext; then :
1940   ac_retval=0
1941 else
1942   $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945         ac_retval=1
1946 fi
1947   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948   as_fn_set_status $ac_retval
1949
1950 } # ac_fn_cxx_try_compile
1951
1952 # ac_fn_cxx_try_cpp LINENO
1953 # ------------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_cpp ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if { { ac_try="$ac_cpp conftest.$ac_ext"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966   ac_status=$?
1967   if test -s conftest.err; then
1968     grep -v '^ *+' conftest.err >conftest.er1
1969     cat conftest.er1 >&5
1970     mv -f conftest.er1 conftest.err
1971   fi
1972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } > conftest.i && {
1974          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975          test ! -s conftest.err
1976        }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982     ac_retval=1
1983 fi
1984   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_cxx_try_cpp
1988
1989 # ac_fn_cxx_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_cxx_try_link ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   rm -f conftest.$ac_objext conftest$ac_exeext
1996   if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003   (eval "$ac_link") 2>conftest.err
2004   ac_status=$?
2005   if test -s conftest.err; then
2006     grep -v '^ *+' conftest.err >conftest.er1
2007     cat conftest.er1 >&5
2008     mv -f conftest.er1 conftest.err
2009   fi
2010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; } && {
2012          test -z "$ac_cxx_werror_flag" ||
2013          test ! -s conftest.err
2014        } && test -s conftest$ac_exeext && {
2015          test "$cross_compiling" = yes ||
2016          $as_test_x conftest$ac_exeext
2017        }; then :
2018   ac_retval=0
2019 else
2020   $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023         ac_retval=1
2024 fi
2025   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027   # interfere with the next link command; also delete a directory that is
2028   # left behind by Apple's compiler.  We do this before executing the actions.
2029   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031   as_fn_set_status $ac_retval
2032
2033 } # ac_fn_cxx_try_link
2034
2035 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038 # the include files in INCLUDES and setting the cache variable VAR
2039 # accordingly.
2040 ac_fn_c_check_header_mongrel ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   if eval "test \"\${$3+set}\"" = set; then :
2044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval "test \"\${$3+set}\"" = set; then :
2047   $as_echo_n "(cached) " >&6
2048 fi
2049 eval ac_res=\$$3
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 else
2053   # Is the header compilable?
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055 $as_echo_n "checking $2 usability... " >&6; }
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062   ac_header_compiler=yes
2063 else
2064   ac_header_compiler=no
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068 $as_echo "$ac_header_compiler" >&6; }
2069
2070 # Is the header present?
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072 $as_echo_n "checking $2 presence... " >&6; }
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 #include <$2>
2076 _ACEOF
2077 if ac_fn_c_try_cpp "$LINENO"; then :
2078   ac_header_preproc=yes
2079 else
2080   ac_header_preproc=no
2081 fi
2082 rm -f conftest.err conftest.i conftest.$ac_ext
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084 $as_echo "$ac_header_preproc" >&6; }
2085
2086 # So?  What about this header?
2087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2088   yes:no: )
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093     ;;
2094   no:yes:* )
2095     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2098 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2099     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2102 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2103     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 ( $as_echo "## ---------------------------------------- ##
2106 ## Report this to bugs@project-moonshot.org ##
2107 ## ---------------------------------------- ##"
2108      ) | sed "s/^/$as_me: WARNING:     /" >&2
2109     ;;
2110 esac
2111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval "test \"\${$3+set}\"" = set; then :
2114   $as_echo_n "(cached) " >&6
2115 else
2116   eval "$3=\$ac_header_compiler"
2117 fi
2118 eval ac_res=\$$3
2119                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 fi
2122   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123
2124 } # ac_fn_c_check_header_mongrel
2125 cat >config.log <<_ACEOF
2126 This file contains any messages produced by compilers while
2127 running configure, to aid debugging if configure makes a mistake.
2128
2129 It was created by mech_eap $as_me 0.1, which was
2130 generated by GNU Autoconf 2.67.  Invocation command line was
2131
2132   $ $0 $@
2133
2134 _ACEOF
2135 exec 5>>config.log
2136 {
2137 cat <<_ASUNAME
2138 ## --------- ##
2139 ## Platform. ##
2140 ## --------- ##
2141
2142 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2143 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2144 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2145 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2146 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2147
2148 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2149 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2150
2151 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2152 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2153 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2154 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2155 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2156 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2157 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2158
2159 _ASUNAME
2160
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166     $as_echo "PATH: $as_dir"
2167   done
2168 IFS=$as_save_IFS
2169
2170 } >&5
2171
2172 cat >&5 <<_ACEOF
2173
2174
2175 ## ----------- ##
2176 ## Core tests. ##
2177 ## ----------- ##
2178
2179 _ACEOF
2180
2181
2182 # Keep a trace of the command line.
2183 # Strip out --no-create and --no-recursion so they do not pile up.
2184 # Strip out --silent because we don't want to record it for future runs.
2185 # Also quote any args containing shell meta-characters.
2186 # Make two passes to allow for proper duplicate-argument suppression.
2187 ac_configure_args=
2188 ac_configure_args0=
2189 ac_configure_args1=
2190 ac_must_keep_next=false
2191 for ac_pass in 1 2
2192 do
2193   for ac_arg
2194   do
2195     case $ac_arg in
2196     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2197     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2198     | -silent | --silent | --silen | --sile | --sil)
2199       continue ;;
2200     *\'*)
2201       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2202     esac
2203     case $ac_pass in
2204     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205     2)
2206       as_fn_append ac_configure_args1 " '$ac_arg'"
2207       if test $ac_must_keep_next = true; then
2208         ac_must_keep_next=false # Got value, back to normal.
2209       else
2210         case $ac_arg in
2211           *=* | --config-cache | -C | -disable-* | --disable-* \
2212           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2213           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2214           | -with-* | --with-* | -without-* | --without-* | --x)
2215             case "$ac_configure_args0 " in
2216               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2217             esac
2218             ;;
2219           -* ) ac_must_keep_next=true ;;
2220         esac
2221       fi
2222       as_fn_append ac_configure_args " '$ac_arg'"
2223       ;;
2224     esac
2225   done
2226 done
2227 { ac_configure_args0=; unset ac_configure_args0;}
2228 { ac_configure_args1=; unset ac_configure_args1;}
2229
2230 # When interrupted or exit'd, cleanup temporary files, and complete
2231 # config.log.  We remove comments because anyway the quotes in there
2232 # would cause problems or look ugly.
2233 # WARNING: Use '\'' to represent an apostrophe within the trap.
2234 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2235 trap 'exit_status=$?
2236   # Save into config.log some information that might help in debugging.
2237   {
2238     echo
2239
2240     $as_echo "## ---------------- ##
2241 ## Cache variables. ##
2242 ## ---------------- ##"
2243     echo
2244     # The following way of writing the cache mishandles newlines in values,
2245 (
2246   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2247     eval ac_val=\$$ac_var
2248     case $ac_val in #(
2249     *${as_nl}*)
2250       case $ac_var in #(
2251       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2253       esac
2254       case $ac_var in #(
2255       _ | IFS | as_nl) ;; #(
2256       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2257       *) { eval $ac_var=; unset $ac_var;} ;;
2258       esac ;;
2259     esac
2260   done
2261   (set) 2>&1 |
2262     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2263     *${as_nl}ac_space=\ *)
2264       sed -n \
2265         "s/'\''/'\''\\\\'\'''\''/g;
2266           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2267       ;; #(
2268     *)
2269       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2270       ;;
2271     esac |
2272     sort
2273 )
2274     echo
2275
2276     $as_echo "## ----------------- ##
2277 ## Output variables. ##
2278 ## ----------------- ##"
2279     echo
2280     for ac_var in $ac_subst_vars
2281     do
2282       eval ac_val=\$$ac_var
2283       case $ac_val in
2284       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285       esac
2286       $as_echo "$ac_var='\''$ac_val'\''"
2287     done | sort
2288     echo
2289
2290     if test -n "$ac_subst_files"; then
2291       $as_echo "## ------------------- ##
2292 ## File substitutions. ##
2293 ## ------------------- ##"
2294       echo
2295       for ac_var in $ac_subst_files
2296       do
2297         eval ac_val=\$$ac_var
2298         case $ac_val in
2299         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300         esac
2301         $as_echo "$ac_var='\''$ac_val'\''"
2302       done | sort
2303       echo
2304     fi
2305
2306     if test -s confdefs.h; then
2307       $as_echo "## ----------- ##
2308 ## confdefs.h. ##
2309 ## ----------- ##"
2310       echo
2311       cat confdefs.h
2312       echo
2313     fi
2314     test "$ac_signal" != 0 &&
2315       $as_echo "$as_me: caught signal $ac_signal"
2316     $as_echo "$as_me: exit $exit_status"
2317   } >&5
2318   rm -f core *.core core.conftest.* &&
2319     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320     exit $exit_status
2321 ' 0
2322 for ac_signal in 1 2 13 15; do
2323   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2324 done
2325 ac_signal=0
2326
2327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2328 rm -f -r conftest* confdefs.h
2329
2330 $as_echo "/* confdefs.h */" > confdefs.h
2331
2332 # Predefined preprocessor variables.
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_NAME "$PACKAGE_NAME"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_URL "$PACKAGE_URL"
2356 _ACEOF
2357
2358
2359 # Let the site file select an alternate cache file if it wants to.
2360 # Prefer an explicitly selected file to automatically selected ones.
2361 ac_site_file1=NONE
2362 ac_site_file2=NONE
2363 if test -n "$CONFIG_SITE"; then
2364   # We do not want a PATH search for config.site.
2365   case $CONFIG_SITE in #((
2366     -*)  ac_site_file1=./$CONFIG_SITE;;
2367     */*) ac_site_file1=$CONFIG_SITE;;
2368     *)   ac_site_file1=./$CONFIG_SITE;;
2369   esac
2370 elif test "x$prefix" != xNONE; then
2371   ac_site_file1=$prefix/share/config.site
2372   ac_site_file2=$prefix/etc/config.site
2373 else
2374   ac_site_file1=$ac_default_prefix/share/config.site
2375   ac_site_file2=$ac_default_prefix/etc/config.site
2376 fi
2377 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2378 do
2379   test "x$ac_site_file" = xNONE && continue
2380   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2382 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2383     sed 's/^/| /' "$ac_site_file" >&5
2384     . "$ac_site_file" \
2385       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 as_fn_error $? "failed to load site script $ac_site_file
2388 See \`config.log' for more details" "$LINENO" 5 ; }
2389   fi
2390 done
2391
2392 if test -r "$cache_file"; then
2393   # Some versions of bash will fail to source /dev/null (special files
2394   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2395   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2397 $as_echo "$as_me: loading cache $cache_file" >&6;}
2398     case $cache_file in
2399       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2400       *)                      . "./$cache_file";;
2401     esac
2402   fi
2403 else
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2405 $as_echo "$as_me: creating cache $cache_file" >&6;}
2406   >$cache_file
2407 fi
2408
2409 # Check that the precious variables saved in the cache have kept the same
2410 # value.
2411 ac_cache_corrupted=false
2412 for ac_var in $ac_precious_vars; do
2413   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2414   eval ac_new_set=\$ac_env_${ac_var}_set
2415   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2416   eval ac_new_val=\$ac_env_${ac_var}_value
2417   case $ac_old_set,$ac_new_set in
2418     set,)
2419       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2420 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2421       ac_cache_corrupted=: ;;
2422     ,set)
2423       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,);;
2427     *)
2428       if test "x$ac_old_val" != "x$ac_new_val"; then
2429         # differences in whitespace do not lead to failure.
2430         ac_old_val_w=`echo x $ac_old_val`
2431         ac_new_val_w=`echo x $ac_new_val`
2432         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2433           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2434 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435           ac_cache_corrupted=:
2436         else
2437           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2438 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2439           eval $ac_var=\$ac_old_val
2440         fi
2441         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2442 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2443         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2444 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2445       fi;;
2446   esac
2447   # Pass precious variables to config.status.
2448   if test "$ac_new_set" = set; then
2449     case $ac_new_val in
2450     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2451     *) ac_arg=$ac_var=$ac_new_val ;;
2452     esac
2453     case " $ac_configure_args " in
2454       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2455       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456     esac
2457   fi
2458 done
2459 if $ac_cache_corrupted; then
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2463 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2464   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2465 fi
2466 ## -------------------- ##
2467 ## Main body of script. ##
2468 ## -------------------- ##
2469
2470 ac_ext=c
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476
2477 am__api_version='1.11'
2478
2479 ac_aux_dir=
2480 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2481   if test -f "$ac_dir/install-sh"; then
2482     ac_aux_dir=$ac_dir
2483     ac_install_sh="$ac_aux_dir/install-sh -c"
2484     break
2485   elif test -f "$ac_dir/install.sh"; then
2486     ac_aux_dir=$ac_dir
2487     ac_install_sh="$ac_aux_dir/install.sh -c"
2488     break
2489   elif test -f "$ac_dir/shtool"; then
2490     ac_aux_dir=$ac_dir
2491     ac_install_sh="$ac_aux_dir/shtool install -c"
2492     break
2493   fi
2494 done
2495 if test -z "$ac_aux_dir"; then
2496   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2497 fi
2498
2499 # These three variables are undocumented and unsupported,
2500 # and are intended to be withdrawn in a future Autoconf release.
2501 # They can cause serious problems if a builder's source tree is in a directory
2502 # whose full name contains unusual characters.
2503 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2504 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2505 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2506
2507
2508 # Find a good install program.  We prefer a C program (faster),
2509 # so one script is as good as another.  But avoid the broken or
2510 # incompatible versions:
2511 # SysV /etc/install, /usr/sbin/install
2512 # SunOS /usr/etc/install
2513 # IRIX /sbin/install
2514 # AIX /bin/install
2515 # AmigaOS /C/install, which installs bootblocks on floppy discs
2516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2519 # OS/2's system install, which has a completely different semantic
2520 # ./install, which can be erroneously created by make from ./install.sh.
2521 # Reject install programs that cannot install multiple files.
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2524 if test -z "$INSTALL"; then
2525 if test "${ac_cv_path_install+set}" = set; then :
2526   $as_echo_n "(cached) " >&6
2527 else
2528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     # Account for people who put trailing slashes in PATH elements.
2534 case $as_dir/ in #((
2535   ./ | .// | /[cC]/* | \
2536   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538   /usr/ucb/* ) ;;
2539   *)
2540     # OSF1 and SCO ODT 3.0 have their own names for install.
2541     # Don't use installbsd from OSF since it installs stuff as root
2542     # by default.
2543     for ac_prog in ginstall scoinst install; do
2544       for ac_exec_ext in '' $ac_executable_extensions; do
2545         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2546           if test $ac_prog = install &&
2547             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548             # AIX install.  It has an incompatible calling convention.
2549             :
2550           elif test $ac_prog = install &&
2551             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552             # program-specific install script used by HP pwplus--don't use.
2553             :
2554           else
2555             rm -rf conftest.one conftest.two conftest.dir
2556             echo one > conftest.one
2557             echo two > conftest.two
2558             mkdir conftest.dir
2559             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560               test -s conftest.one && test -s conftest.two &&
2561               test -s conftest.dir/conftest.one &&
2562               test -s conftest.dir/conftest.two
2563             then
2564               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565               break 3
2566             fi
2567           fi
2568         fi
2569       done
2570     done
2571     ;;
2572 esac
2573
2574   done
2575 IFS=$as_save_IFS
2576
2577 rm -rf conftest.one conftest.two conftest.dir
2578
2579 fi
2580   if test "${ac_cv_path_install+set}" = set; then
2581     INSTALL=$ac_cv_path_install
2582   else
2583     # As a last resort, use the slow shell script.  Don't cache a
2584     # value for INSTALL within a source directory, because that will
2585     # break other packages using the cache if that directory is
2586     # removed, or if the value is a relative name.
2587     INSTALL=$ac_install_sh
2588   fi
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591 $as_echo "$INSTALL" >&6; }
2592
2593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594 # It thinks the first close brace ends the variable substitution.
2595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2602 $as_echo_n "checking whether build environment is sane... " >&6; }
2603 # Just in case
2604 sleep 1
2605 echo timestamp > conftest.file
2606 # Reject unsafe characters in $srcdir or the absolute working directory
2607 # name.  Accept space and tab only in the latter.
2608 am_lf='
2609 '
2610 case `pwd` in
2611   *[\\\"\#\$\&\'\`$am_lf]*)
2612     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2613 esac
2614 case $srcdir in
2615   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2616     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2617 esac
2618
2619 # Do `set' in a subshell so we don't clobber the current shell's
2620 # arguments.  Must try -L first in case configure is actually a
2621 # symlink; some systems play weird games with the mod time of symlinks
2622 # (eg FreeBSD returns the mod time of the symlink's containing
2623 # directory).
2624 if (
2625    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2626    if test "$*" = "X"; then
2627       # -L didn't work.
2628       set X `ls -t "$srcdir/configure" conftest.file`
2629    fi
2630    rm -f conftest.file
2631    if test "$*" != "X $srcdir/configure conftest.file" \
2632       && test "$*" != "X conftest.file $srcdir/configure"; then
2633
2634       # If neither matched, then we have a broken ls.  This can happen
2635       # if, for instance, CONFIG_SHELL is bash and it inherits a
2636       # broken ls alias from the environment.  This has actually
2637       # happened.  Such a system could not be considered "sane".
2638       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2639 alias in your environment" "$LINENO" 5
2640    fi
2641
2642    test "$2" = conftest.file
2643    )
2644 then
2645    # Ok.
2646    :
2647 else
2648    as_fn_error $? "newly created file is older than distributed files!
2649 Check your system clock" "$LINENO" 5
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 test "$program_prefix" != NONE &&
2654   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655 # Use a double $ so make ignores it.
2656 test "$program_suffix" != NONE &&
2657   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658 # Double any \ or $.
2659 # By default was `s,x,x', remove it if useless.
2660 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2662
2663 # expand $ac_aux_dir to an absolute path
2664 am_aux_dir=`cd $ac_aux_dir && pwd`
2665
2666 if test x"${MISSING+set}" != xset; then
2667   case $am_aux_dir in
2668   *\ * | *\     *)
2669     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670   *)
2671     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672   esac
2673 fi
2674 # Use eval to expand $SHELL
2675 if eval "$MISSING --run true"; then
2676   am_missing_run="$MISSING --run "
2677 else
2678   am_missing_run=
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2680 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2681 fi
2682
2683 if test x"${install_sh}" != xset; then
2684   case $am_aux_dir in
2685   *\ * | *\     *)
2686     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687   *)
2688     install_sh="\${SHELL} $am_aux_dir/install-sh"
2689   esac
2690 fi
2691
2692 # Installed binaries are usually stripped using `strip' when the user
2693 # run `make install-strip'.  However `strip' might not be the right
2694 # tool to use in cross-compilation environments, therefore Automake
2695 # will honor the `STRIP' environment variable to overrule this program.
2696 if test "$cross_compiling" != no; then
2697   if test -n "$ac_tool_prefix"; then
2698   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}strip; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_STRIP+set}" = set; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$STRIP"; then
2706   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713     for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720   done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 STRIP=$ac_cv_prog_STRIP
2726 if test -n "$STRIP"; then
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2728 $as_echo "$STRIP" >&6; }
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735 fi
2736 if test -z "$ac_cv_prog_STRIP"; then
2737   ac_ct_STRIP=$STRIP
2738   # Extract the first word of "strip", so it can be a program name with args.
2739 set dummy strip; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   if test -n "$ac_ct_STRIP"; then
2746   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753     for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_ac_ct_STRIP="strip"
2756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760   done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766 if test -n "$ac_ct_STRIP"; then
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2768 $as_echo "$ac_ct_STRIP" >&6; }
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774   if test "x$ac_ct_STRIP" = x; then
2775     STRIP=":"
2776   else
2777     case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783     STRIP=$ac_ct_STRIP
2784   fi
2785 else
2786   STRIP="$ac_cv_prog_STRIP"
2787 fi
2788
2789 fi
2790 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2793 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794 if test -z "$MKDIR_P"; then
2795   if test "${ac_cv_path_mkdir+set}" = set; then :
2796   $as_echo_n "(cached) " >&6
2797 else
2798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803     for ac_prog in mkdir gmkdir; do
2804          for ac_exec_ext in '' $ac_executable_extensions; do
2805            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2806            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807              'mkdir (GNU coreutils) '* | \
2808              'mkdir (coreutils) '* | \
2809              'mkdir (fileutils) '4.1*)
2810                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811                break 3;;
2812            esac
2813          done
2814        done
2815   done
2816 IFS=$as_save_IFS
2817
2818 fi
2819
2820   test -d ./--version && rmdir ./--version
2821   if test "${ac_cv_path_mkdir+set}" = set; then
2822     MKDIR_P="$ac_cv_path_mkdir -p"
2823   else
2824     # As a last resort, use the slow shell script.  Don't cache a
2825     # value for MKDIR_P within a source directory, because that will
2826     # break other packages using the cache if that directory is
2827     # removed, or if the value is a relative name.
2828     MKDIR_P="$ac_install_sh -d"
2829   fi
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2832 $as_echo "$MKDIR_P" >&6; }
2833
2834 mkdir_p="$MKDIR_P"
2835 case $mkdir_p in
2836   [\\/$]* | ?:[\\/]*) ;;
2837   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2838 esac
2839
2840 for ac_prog in gawk mawk nawk awk
2841 do
2842   # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_AWK+set}" = set; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$AWK"; then
2850   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_AWK="$ac_prog"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 AWK=$ac_cv_prog_AWK
2870 if test -n "$AWK"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2872 $as_echo "$AWK" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879   test -n "$AWK" && break
2880 done
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884 set x ${MAKE-make}
2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2887   $as_echo_n "(cached) " >&6
2888 else
2889   cat >conftest.make <<\_ACEOF
2890 SHELL = /bin/sh
2891 all:
2892         @echo '@@@%%%=$(MAKE)=@@@%%%'
2893 _ACEOF
2894 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896   *@@@%%%=?*=@@@%%%*)
2897     eval ac_cv_prog_make_${ac_make}_set=yes;;
2898   *)
2899     eval ac_cv_prog_make_${ac_make}_set=no;;
2900 esac
2901 rm -f conftest.make
2902 fi
2903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2905 $as_echo "yes" >&6; }
2906   SET_MAKE=
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910   SET_MAKE="MAKE=${MAKE-make}"
2911 fi
2912
2913 rm -rf .tst 2>/dev/null
2914 mkdir .tst 2>/dev/null
2915 if test -d .tst; then
2916   am__leading_dot=.
2917 else
2918   am__leading_dot=_
2919 fi
2920 rmdir .tst 2>/dev/null
2921
2922 # Check whether --enable-silent-rules was given.
2923 if test "${enable_silent_rules+set}" = set; then :
2924   enableval=$enable_silent_rules;
2925 fi
2926
2927 case $enable_silent_rules in
2928 yes) AM_DEFAULT_VERBOSITY=0;;
2929 no)  AM_DEFAULT_VERBOSITY=1;;
2930 *)   AM_DEFAULT_VERBOSITY=1;;
2931 esac
2932 AM_BACKSLASH='\'
2933
2934 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2935   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2936   # is not polluted with repeated "-I."
2937   am__isrc=' -I$(srcdir)'
2938   # test to see if srcdir already configured
2939   if test -f $srcdir/config.status; then
2940     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2941   fi
2942 fi
2943
2944 # test whether we have cygpath
2945 if test -z "$CYGPATH_W"; then
2946   if (cygpath --version) >/dev/null 2>/dev/null; then
2947     CYGPATH_W='cygpath -w'
2948   else
2949     CYGPATH_W=echo
2950   fi
2951 fi
2952
2953
2954 # Define the identity of the package.
2955  PACKAGE='mech_eap'
2956  VERSION='0.1'
2957
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE "$PACKAGE"
2961 _ACEOF
2962
2963
2964 cat >>confdefs.h <<_ACEOF
2965 #define VERSION "$VERSION"
2966 _ACEOF
2967
2968 # Some tools Automake needs.
2969
2970 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2971
2972
2973 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2974
2975
2976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2977
2978
2979 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2980
2981
2982 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2983
2984 # We need awk for the "check" target.  The system "awk" is bad on
2985 # some platforms.
2986 # Always define AMTAR for backward compatibility.
2987
2988 AMTAR=${AMTAR-"${am_missing_run}tar"}
2989
2990 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2991
2992
2993
2994
2995
2996
2997 case `pwd` in
2998   *\ * | *\     *)
2999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3000 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3001 esac
3002
3003
3004
3005 macro_version='2.2.6b'
3006 macro_revision='1.3017'
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020 ltmain="$ac_aux_dir/ltmain.sh"
3021
3022 # Make sure we can run config.sub.
3023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3024   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3027 $as_echo_n "checking build system type... " >&6; }
3028 if test "${ac_cv_build+set}" = set; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   ac_build_alias=$build_alias
3032 test "x$ac_build_alias" = x &&
3033   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3034 test "x$ac_build_alias" = x &&
3035   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3036 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3037   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3038
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3041 $as_echo "$ac_cv_build" >&6; }
3042 case $ac_cv_build in
3043 *-*-*) ;;
3044 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3045 esac
3046 build=$ac_cv_build
3047 ac_save_IFS=$IFS; IFS='-'
3048 set x $ac_cv_build
3049 shift
3050 build_cpu=$1
3051 build_vendor=$2
3052 shift; shift
3053 # Remember, the first character of IFS is used to create $*,
3054 # except with old shells:
3055 build_os=$*
3056 IFS=$ac_save_IFS
3057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3058
3059
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3061 $as_echo_n "checking host system type... " >&6; }
3062 if test "${ac_cv_host+set}" = set; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   if test "x$host_alias" = x; then
3066   ac_cv_host=$ac_cv_build
3067 else
3068   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3069     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3070 fi
3071
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3074 $as_echo "$ac_cv_host" >&6; }
3075 case $ac_cv_host in
3076 *-*-*) ;;
3077 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3078 esac
3079 host=$ac_cv_host
3080 ac_save_IFS=$IFS; IFS='-'
3081 set x $ac_cv_host
3082 shift
3083 host_cpu=$1
3084 host_vendor=$2
3085 shift; shift
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3088 host_os=$*
3089 IFS=$ac_save_IFS
3090 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3091
3092
3093 DEPDIR="${am__leading_dot}deps"
3094
3095 ac_config_commands="$ac_config_commands depfiles"
3096
3097
3098 am_make=${MAKE-make}
3099 cat > confinc << 'END'
3100 am__doit:
3101         @echo this is the am__doit target
3102 .PHONY: am__doit
3103 END
3104 # If we don't find an include directive, just comment out the code.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3106 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3107 am__include="#"
3108 am__quote=
3109 _am_result=none
3110 # First try GNU make style include.
3111 echo "include confinc" > confmf
3112 # Ignore all kinds of additional output from `make'.
3113 case `$am_make -s -f confmf 2> /dev/null` in #(
3114 *the\ am__doit\ target*)
3115   am__include=include
3116   am__quote=
3117   _am_result=GNU
3118   ;;
3119 esac
3120 # Now try BSD make style include.
3121 if test "$am__include" = "#"; then
3122    echo '.include "confinc"' > confmf
3123    case `$am_make -s -f confmf 2> /dev/null` in #(
3124    *the\ am__doit\ target*)
3125      am__include=.include
3126      am__quote="\""
3127      _am_result=BSD
3128      ;;
3129    esac
3130 fi
3131
3132
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3134 $as_echo "$_am_result" >&6; }
3135 rm -f confinc confmf
3136
3137 # Check whether --enable-dependency-tracking was given.
3138 if test "${enable_dependency_tracking+set}" = set; then :
3139   enableval=$enable_dependency_tracking;
3140 fi
3141
3142 if test "x$enable_dependency_tracking" != xno; then
3143   am_depcomp="$ac_aux_dir/depcomp"
3144   AMDEPBACKSLASH='\'
3145 fi
3146  if test "x$enable_dependency_tracking" != xno; then
3147   AMDEP_TRUE=
3148   AMDEP_FALSE='#'
3149 else
3150   AMDEP_TRUE='#'
3151   AMDEP_FALSE=
3152 fi
3153
3154
3155 ac_ext=c
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   if test -n "$CC"; then
3169   ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 if test -z "$ac_cv_prog_CC"; then
3200   ac_ct_CC=$CC
3201   # Extract the first word of "gcc", so it can be a program name with args.
3202 set dummy gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$ac_ct_CC"; then
3209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_ac_ct_CC="gcc"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237   if test "x$ac_ct_CC" = x; then
3238     CC=""
3239   else
3240     case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246     CC=$ac_ct_CC
3247   fi
3248 else
3249   CC="$ac_cv_prog_CC"
3250 fi
3251
3252 if test -z "$CC"; then
3253           if test -n "$ac_tool_prefix"; then
3254     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   if test -n "$CC"; then
3262   ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267   IFS=$as_save_IFS
3268   test -z "$as_dir" && as_dir=.
3269     for ac_exec_ext in '' $ac_executable_extensions; do
3270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271     ac_cv_prog_CC="${ac_tool_prefix}cc"
3272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273     break 2
3274   fi
3275 done
3276   done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291   fi
3292 fi
3293 if test -z "$CC"; then
3294   # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   if test -n "$CC"; then
3302   ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304   ac_prog_rejected=no
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310     for ac_exec_ext in '' $ac_executable_extensions; do
3311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313        ac_prog_rejected=yes
3314        continue
3315      fi
3316     ac_cv_prog_CC="cc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 if test $ac_prog_rejected = yes; then
3325   # We found a bogon in the path, so make sure we never use it.
3326   set dummy $ac_cv_prog_CC
3327   shift
3328   if test $# != 0; then
3329     # We chose a different compiler from the bogus one.
3330     # However, it has the same basename, so the bogon will be chosen
3331     # first if we set CC to just the basename; use the full file name.
3332     shift
3333     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3334   fi
3335 fi
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$CC"; then
3350   if test -n "$ac_tool_prefix"; then
3351   for ac_prog in cl.exe
3352   do
3353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   if test -n "$CC"; then
3361   ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_exec_ext in '' $ac_executable_extensions; do
3369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375   done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3384 else
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390     test -n "$CC" && break
3391   done
3392 fi
3393 if test -z "$CC"; then
3394   ac_ct_CC=$CC
3395   for ac_prog in cl.exe
3396 do
3397   # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   if test -n "$ac_ct_CC"; then
3405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410   IFS=$as_save_IFS
3411   test -z "$as_dir" && as_dir=.
3412     for ac_exec_ext in '' $ac_executable_extensions; do
3413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414     ac_cv_prog_ac_ct_CC="$ac_prog"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3427 $as_echo "$ac_ct_CC" >&6; }
3428 else
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434   test -n "$ac_ct_CC" && break
3435 done
3436
3437   if test "x$ac_ct_CC" = x; then
3438     CC=""
3439   else
3440     case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446     CC=$ac_ct_CC
3447   fi
3448 fi
3449
3450 fi
3451
3452
3453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details" "$LINENO" 5 ; }
3457
3458 # Provide some information about the compiler.
3459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3460 set X $ac_compile
3461 ac_compiler=$2
3462 for ac_option in --version -v -V -qversion; do
3463   { { ac_try="$ac_compiler $ac_option >&5"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3471   ac_status=$?
3472   if test -s conftest.err; then
3473     sed '10a\
3474 ... rest of stderr output deleted ...
3475          10q' conftest.err >conftest.er1
3476     cat conftest.er1 >&5
3477   fi
3478   rm -f conftest.er1 conftest.err
3479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480   test $ac_status = 0; }
3481 done
3482
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3498 # of exeext.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3502
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3505
3506 ac_rmfiles=
3507 for ac_file in $ac_files
3508 do
3509   case $ac_file in
3510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3512   esac
3513 done
3514 rm -f $ac_rmfiles
3515
3516 if { { ac_try="$ac_link_default"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523   (eval "$ac_link_default") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526   test $ac_status = 0; }; then :
3527   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3531 # Autoconf.
3532 for ac_file in $ac_files ''
3533 do
3534   test -f "$ac_file" || continue
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3537         ;;
3538     [ab].out )
3539         # We found the default executable, but exeext='' is most
3540         # certainly right.
3541         break;;
3542     *.* )
3543         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3544         then :; else
3545            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546         fi
3547         # We set ac_cv_exeext here because the later test for it is not
3548         # safe: cross compilers may not add the suffix if given an `-o'
3549         # argument, so we may need to know it at that point already.
3550         # Even if this section looks crufty: it has the advantage of
3551         # actually working.
3552         break;;
3553     * )
3554         break;;
3555   esac
3556 done
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3558
3559 else
3560   ac_file=''
3561 fi
3562 if test -z "$ac_file"; then :
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error 77 "C compiler cannot create executables
3571 See \`config.log' for more details" "$LINENO" 5 ; }
3572 else
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3577 $as_echo_n "checking for C compiler default output file name... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3579 $as_echo "$ac_file" >&6; }
3580 ac_exeext=$ac_cv_exeext
3581
3582 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3585 $as_echo_n "checking for suffix of executables... " >&6; }
3586 if { { ac_try="$ac_link"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593   (eval "$ac_link") 2>&5
3594   ac_status=$?
3595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596   test $ac_status = 0; }; then :
3597   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3598 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3599 # work properly (i.e., refer to `conftest.exe'), while it won't with
3600 # `rm'.
3601 for ac_file in conftest.exe conftest conftest.*; do
3602   test -f "$ac_file" || continue
3603   case $ac_file in
3604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3605     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3606           break;;
3607     * ) break;;
3608   esac
3609 done
3610 else
3611   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3614 See \`config.log' for more details" "$LINENO" 5 ; }
3615 fi
3616 rm -f conftest conftest$ac_cv_exeext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3618 $as_echo "$ac_cv_exeext" >&6; }
3619
3620 rm -f conftest.$ac_ext
3621 EXEEXT=$ac_cv_exeext
3622 ac_exeext=$EXEEXT
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625 #include <stdio.h>
3626 int
3627 main ()
3628 {
3629 FILE *f = fopen ("conftest.out", "w");
3630  return ferror (f) || fclose (f) != 0;
3631
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 ac_clean_files="$ac_clean_files conftest.out"
3637 # Check that the compiler produces executables we can run.  If not, either
3638 # the compiler is broken, or we cross compile.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3640 $as_echo_n "checking whether we are cross compiling... " >&6; }
3641 if test "$cross_compiling" != yes; then
3642   { { ac_try="$ac_link"
3643 case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649   (eval "$ac_link") 2>&5
3650   ac_status=$?
3651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652   test $ac_status = 0; }
3653   if { ac_try='./conftest$ac_cv_exeext'
3654   { { case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660   (eval "$ac_try") 2>&5
3661   ac_status=$?
3662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663   test $ac_status = 0; }; }; then
3664     cross_compiling=no
3665   else
3666     if test "$cross_compiling" = maybe; then
3667         cross_compiling=yes
3668     else
3669         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot run C compiled programs.
3672 If you meant to cross compile, use \`--host'.
3673 See \`config.log' for more details" "$LINENO" 5 ; }
3674     fi
3675   fi
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3678 $as_echo "$cross_compiling" >&6; }
3679
3680 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3683 $as_echo_n "checking for suffix of object files... " >&6; }
3684 if test "${ac_cv_objext+set}" = set; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h.  */
3689
3690 int
3691 main ()
3692 {
3693
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.o conftest.obj
3699 if { { ac_try="$ac_compile"
3700 case "(($ac_try" in
3701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702   *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706   (eval "$ac_compile") 2>&5
3707   ac_status=$?
3708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709   test $ac_status = 0; }; then :
3710   for ac_file in conftest.o conftest.obj conftest.*; do
3711   test -f "$ac_file" || continue;
3712   case $ac_file in
3713     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3714     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3715        break;;
3716   esac
3717 done
3718 else
3719   $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot compute suffix of object files: cannot compile
3725 See \`config.log' for more details" "$LINENO" 5 ; }
3726 fi
3727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3730 $as_echo "$ac_cv_objext" >&6; }
3731 OBJEXT=$ac_cv_objext
3732 ac_objext=$OBJEXT
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3735 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h.  */
3740
3741 int
3742 main ()
3743 {
3744 #ifndef __GNUC__
3745        choke me
3746 #endif
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753   ac_compiler_gnu=yes
3754 else
3755   ac_compiler_gnu=no
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3759
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3764   GCC=yes
3765 else
3766   GCC=
3767 fi
3768 ac_test_CFLAGS=${CFLAGS+set}
3769 ac_save_CFLAGS=$CFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3772 if test "${ac_cv_prog_cc_g+set}" = set; then :
3773   $as_echo_n "(cached) " >&6
3774 else
3775   ac_save_c_werror_flag=$ac_c_werror_flag
3776    ac_c_werror_flag=yes
3777    ac_cv_prog_cc_g=no
3778    CFLAGS="-g"
3779    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791   ac_cv_prog_cc_g=yes
3792 else
3793   CFLAGS=""
3794       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h.  */
3796
3797 int
3798 main ()
3799 {
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806
3807 else
3808   ac_c_werror_flag=$ac_save_c_werror_flag
3809          CFLAGS="-g"
3810          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822   ac_cv_prog_cc_g=yes
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829    ac_c_werror_flag=$ac_save_c_werror_flag
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3832 $as_echo "$ac_cv_prog_cc_g" >&6; }
3833 if test "$ac_test_CFLAGS" = set; then
3834   CFLAGS=$ac_save_CFLAGS
3835 elif test $ac_cv_prog_cc_g = yes; then
3836   if test "$GCC" = yes; then
3837     CFLAGS="-g -O2"
3838   else
3839     CFLAGS="-g"
3840   fi
3841 else
3842   if test "$GCC" = yes; then
3843     CFLAGS="-O2"
3844   else
3845     CFLAGS=
3846   fi
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3850 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   ac_cv_prog_cc_c89=no
3854 ac_save_CC=$CC
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h.  */
3857 #include <stdarg.h>
3858 #include <stdio.h>
3859 #include <sys/types.h>
3860 #include <sys/stat.h>
3861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3862 struct buf { int x; };
3863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3864 static char *e (p, i)
3865      char **p;
3866      int i;
3867 {
3868   return p[i];
3869 }
3870 static char *f (char * (*g) (char **, int), char **p, ...)
3871 {
3872   char *s;
3873   va_list v;
3874   va_start (v,p);
3875   s = g (p, va_arg (v,int));
3876   va_end (v);
3877   return s;
3878 }
3879
3880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3881    function prototypes and stuff, but not '\xHH' hex character constants.
3882    These don't provoke an error unfortunately, instead are silently treated
3883    as 'x'.  The following induces an error, until -std is added to get
3884    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3885    array size at least.  It's necessary to write '\x00'==0 to get something
3886    that's true only with -std.  */
3887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888
3889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3890    inside strings and character constants.  */
3891 #define FOO(x) 'x'
3892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3898 int argc;
3899 char **argv;
3900 int
3901 main ()
3902 {
3903 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3909         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 do
3911   CC="$ac_save_CC $ac_arg"
3912   if ac_fn_c_try_compile "$LINENO"; then :
3913   ac_cv_prog_cc_c89=$ac_arg
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext
3916   test "x$ac_cv_prog_cc_c89" != "xno" && break
3917 done
3918 rm -f conftest.$ac_ext
3919 CC=$ac_save_CC
3920
3921 fi
3922 # AC_CACHE_VAL
3923 case "x$ac_cv_prog_cc_c89" in
3924   x)
3925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3926 $as_echo "none needed" >&6; } ;;
3927   xno)
3928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3929 $as_echo "unsupported" >&6; } ;;
3930   *)
3931     CC="$CC $ac_cv_prog_cc_c89"
3932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3934 esac
3935 if test "x$ac_cv_prog_cc_c89" != xno; then :
3936
3937 fi
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945 depcc="$CC"   am_compiler_list=
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3948 $as_echo_n "checking dependency style of $depcc... " >&6; }
3949 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3953   # We make a subdir and do the tests there.  Otherwise we can end up
3954   # making bogus files that we don't know about and never remove.  For
3955   # instance it was reported that on HP-UX the gcc test will end up
3956   # making a dummy file named `D' -- because `-MD' means `put the output
3957   # in D'.
3958   mkdir conftest.dir
3959   # Copy depcomp to subdir because otherwise we won't find it if we're
3960   # using a relative directory.
3961   cp "$am_depcomp" conftest.dir
3962   cd conftest.dir
3963   # We will build objects and dependencies in a subdirectory because
3964   # it helps to detect inapplicable dependency modes.  For instance
3965   # both Tru64's cc and ICC support -MD to output dependencies as a
3966   # side effect of compilation, but ICC will put the dependencies in
3967   # the current directory while Tru64 will put them in the object
3968   # directory.
3969   mkdir sub
3970
3971   am_cv_CC_dependencies_compiler_type=none
3972   if test "$am_compiler_list" = ""; then
3973      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3974   fi
3975   am__universal=false
3976   case " $depcc " in #(
3977      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3978      esac
3979
3980   for depmode in $am_compiler_list; do
3981     # Setup a source with many dependencies, because some compilers
3982     # like to wrap large dependency lists on column 80 (with \), and
3983     # we should not choose a depcomp mode which is confused by this.
3984     #
3985     # We need to recreate these files for each test, as the compiler may
3986     # overwrite some of them when testing with obscure command lines.
3987     # This happens at least with the AIX C compiler.
3988     : > sub/conftest.c
3989     for i in 1 2 3 4 5 6; do
3990       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992       # Solaris 8's {/usr,}/bin/sh.
3993       touch sub/conftst$i.h
3994     done
3995     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3996
3997     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3998     # mode.  It turns out that the SunPro C++ compiler does not properly
3999     # handle `-M -o', and we need to detect this.  Also, some Intel
4000     # versions had trouble with output in subdirs
4001     am__obj=sub/conftest.${OBJEXT-o}
4002     am__minus_obj="-o $am__obj"
4003     case $depmode in
4004     gcc)
4005       # This depmode causes a compiler race in universal mode.
4006       test "$am__universal" = false || continue
4007       ;;
4008     nosideeffect)
4009       # after this tag, mechanisms are not by side-effect, so they'll
4010       # only be used when explicitly requested
4011       if test "x$enable_dependency_tracking" = xyes; then
4012         continue
4013       else
4014         break
4015       fi
4016       ;;
4017     msvisualcpp | msvcmsys)
4018       # This compiler won't grok `-c -o', but also, the minuso test has
4019       # not run yet.  These depmodes are late enough in the game, and
4020       # so weak that their functioning should not be impacted.
4021       am__obj=conftest.${OBJEXT-o}
4022       am__minus_obj=
4023       ;;
4024     none) break ;;
4025     esac
4026     if depmode=$depmode \
4027        source=sub/conftest.c object=$am__obj \
4028        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4029        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4030          >/dev/null 2>conftest.err &&
4031        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4032        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4033        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4034        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4035       # icc doesn't choke on unknown options, it will just issue warnings
4036       # or remarks (even with -Werror).  So we grep stderr for any message
4037       # that says an option was ignored or not supported.
4038       # When given -MP, icc 7.0 and 7.1 complain thusly:
4039       #   icc: Command line warning: ignoring option '-M'; no argument required
4040       # The diagnosis changed in icc 8.0:
4041       #   icc: Command line remark: option '-MP' not supported
4042       if (grep 'ignoring option' conftest.err ||
4043           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4044         am_cv_CC_dependencies_compiler_type=$depmode
4045         break
4046       fi
4047     fi
4048   done
4049
4050   cd ..
4051   rm -rf conftest.dir
4052 else
4053   am_cv_CC_dependencies_compiler_type=none
4054 fi
4055
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4058 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4060
4061  if
4062   test "x$enable_dependency_tracking" != xno \
4063   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4064   am__fastdepCC_TRUE=
4065   am__fastdepCC_FALSE='#'
4066 else
4067   am__fastdepCC_TRUE='#'
4068   am__fastdepCC_FALSE=
4069 fi
4070
4071
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4073 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4074 if test "${ac_cv_path_SED+set}" = set; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4078      for ac_i in 1 2 3 4 5 6 7; do
4079        ac_script="$ac_script$as_nl$ac_script"
4080      done
4081      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4082      { ac_script=; unset ac_script;}
4083      if test -z "$SED"; then
4084   ac_path_SED_found=false
4085   # Loop through the user's path and test for each of PROGNAME-LIST
4086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089   IFS=$as_save_IFS
4090   test -z "$as_dir" && as_dir=.
4091     for ac_prog in sed gsed; do
4092     for ac_exec_ext in '' $ac_executable_extensions; do
4093       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4094       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4095 # Check for GNU ac_path_SED and select it if it is found.
4096   # Check for GNU $ac_path_SED
4097 case `"$ac_path_SED" --version 2>&1` in
4098 *GNU*)
4099   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4100 *)
4101   ac_count=0
4102   $as_echo_n 0123456789 >"conftest.in"
4103   while :
4104   do
4105     cat "conftest.in" "conftest.in" >"conftest.tmp"
4106     mv "conftest.tmp" "conftest.in"
4107     cp "conftest.in" "conftest.nl"
4108     $as_echo '' >> "conftest.nl"
4109     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111     as_fn_arith $ac_count + 1 && ac_count=$as_val
4112     if test $ac_count -gt ${ac_path_SED_max-0}; then
4113       # Best one so far, save it but keep looking for a better one
4114       ac_cv_path_SED="$ac_path_SED"
4115       ac_path_SED_max=$ac_count
4116     fi
4117     # 10*(2^10) chars as input seems more than enough
4118     test $ac_count -gt 10 && break
4119   done
4120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121 esac
4122
4123       $ac_path_SED_found && break 3
4124     done
4125   done
4126   done
4127 IFS=$as_save_IFS
4128   if test -z "$ac_cv_path_SED"; then
4129     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4130   fi
4131 else
4132   ac_cv_path_SED=$SED
4133 fi
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4137 $as_echo "$ac_cv_path_SED" >&6; }
4138  SED="$ac_cv_path_SED"
4139   rm -f conftest.sed
4140
4141 test -z "$SED" && SED=sed
4142 Xsed="$SED -e 1s/^X//"
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4155 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4156 if test "${ac_cv_path_GREP+set}" = set; then :
4157   $as_echo_n "(cached) " >&6
4158 else
4159   if test -z "$GREP"; then
4160   ac_path_GREP_found=false
4161   # Loop through the user's path and test for each of PROGNAME-LIST
4162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167     for ac_prog in grep ggrep; do
4168     for ac_exec_ext in '' $ac_executable_extensions; do
4169       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172   # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4174 *GNU*)
4175   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4176 *)
4177   ac_count=0
4178   $as_echo_n 0123456789 >"conftest.in"
4179   while :
4180   do
4181     cat "conftest.in" "conftest.in" >"conftest.tmp"
4182     mv "conftest.tmp" "conftest.in"
4183     cp "conftest.in" "conftest.nl"
4184     $as_echo 'GREP' >> "conftest.nl"
4185     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187     as_fn_arith $ac_count + 1 && ac_count=$as_val
4188     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189       # Best one so far, save it but keep looking for a better one
4190       ac_cv_path_GREP="$ac_path_GREP"
4191       ac_path_GREP_max=$ac_count
4192     fi
4193     # 10*(2^10) chars as input seems more than enough
4194     test $ac_count -gt 10 && break
4195   done
4196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4198
4199       $ac_path_GREP_found && break 3
4200     done
4201   done
4202   done
4203 IFS=$as_save_IFS
4204   if test -z "$ac_cv_path_GREP"; then
4205     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206   fi
4207 else
4208   ac_cv_path_GREP=$GREP
4209 fi
4210
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4213 $as_echo "$ac_cv_path_GREP" >&6; }
4214  GREP="$ac_cv_path_GREP"
4215
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4218 $as_echo_n "checking for egrep... " >&6; }
4219 if test "${ac_cv_path_EGREP+set}" = set; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4223    then ac_cv_path_EGREP="$GREP -E"
4224    else
4225      if test -z "$EGREP"; then
4226   ac_path_EGREP_found=false
4227   # Loop through the user's path and test for each of PROGNAME-LIST
4228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233     for ac_prog in egrep; do
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4236       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4237 # Check for GNU ac_path_EGREP and select it if it is found.
4238   # Check for GNU $ac_path_EGREP
4239 case `"$ac_path_EGREP" --version 2>&1` in
4240 *GNU*)
4241   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4242 *)
4243   ac_count=0
4244   $as_echo_n 0123456789 >"conftest.in"
4245   while :
4246   do
4247     cat "conftest.in" "conftest.in" >"conftest.tmp"
4248     mv "conftest.tmp" "conftest.in"
4249     cp "conftest.in" "conftest.nl"
4250     $as_echo 'EGREP' >> "conftest.nl"
4251     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253     as_fn_arith $ac_count + 1 && ac_count=$as_val
4254     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4255       # Best one so far, save it but keep looking for a better one
4256       ac_cv_path_EGREP="$ac_path_EGREP"
4257       ac_path_EGREP_max=$ac_count
4258     fi
4259     # 10*(2^10) chars as input seems more than enough
4260     test $ac_count -gt 10 && break
4261   done
4262   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263 esac
4264
4265       $ac_path_EGREP_found && break 3
4266     done
4267   done
4268   done
4269 IFS=$as_save_IFS
4270   if test -z "$ac_cv_path_EGREP"; then
4271     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4272   fi
4273 else
4274   ac_cv_path_EGREP=$EGREP
4275 fi
4276
4277    fi
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4280 $as_echo "$ac_cv_path_EGREP" >&6; }
4281  EGREP="$ac_cv_path_EGREP"
4282
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4285 $as_echo_n "checking for fgrep... " >&6; }
4286 if test "${ac_cv_path_FGREP+set}" = set; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4290    then ac_cv_path_FGREP="$GREP -F"
4291    else
4292      if test -z "$FGREP"; then
4293   ac_path_FGREP_found=false
4294   # Loop through the user's path and test for each of PROGNAME-LIST
4295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300     for ac_prog in fgrep; do
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4303       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4304 # Check for GNU ac_path_FGREP and select it if it is found.
4305   # Check for GNU $ac_path_FGREP
4306 case `"$ac_path_FGREP" --version 2>&1` in
4307 *GNU*)
4308   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4309 *)
4310   ac_count=0
4311   $as_echo_n 0123456789 >"conftest.in"
4312   while :
4313   do
4314     cat "conftest.in" "conftest.in" >"conftest.tmp"
4315     mv "conftest.tmp" "conftest.in"
4316     cp "conftest.in" "conftest.nl"
4317     $as_echo 'FGREP' >> "conftest.nl"
4318     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320     as_fn_arith $ac_count + 1 && ac_count=$as_val
4321     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4322       # Best one so far, save it but keep looking for a better one
4323       ac_cv_path_FGREP="$ac_path_FGREP"
4324       ac_path_FGREP_max=$ac_count
4325     fi
4326     # 10*(2^10) chars as input seems more than enough
4327     test $ac_count -gt 10 && break
4328   done
4329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 esac
4331
4332       $ac_path_FGREP_found && break 3
4333     done
4334   done
4335   done
4336 IFS=$as_save_IFS
4337   if test -z "$ac_cv_path_FGREP"; then
4338     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4339   fi
4340 else
4341   ac_cv_path_FGREP=$FGREP
4342 fi
4343
4344    fi
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4347 $as_echo "$ac_cv_path_FGREP" >&6; }
4348  FGREP="$ac_cv_path_FGREP"
4349
4350
4351 test -z "$GREP" && GREP=grep
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371 # Check whether --with-gnu-ld was given.
4372 if test "${with_gnu_ld+set}" = set; then :
4373   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4374 else
4375   with_gnu_ld=no
4376 fi
4377
4378 ac_prog=ld
4379 if test "$GCC" = yes; then
4380   # Check if gcc -print-prog-name=ld gives a path.
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4382 $as_echo_n "checking for ld used by $CC... " >&6; }
4383   case $host in
4384   *-*-mingw*)
4385     # gcc leaves a trailing carriage return which upsets mingw
4386     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4387   *)
4388     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4389   esac
4390   case $ac_prog in
4391     # Accept absolute paths.
4392     [\\/]* | ?:[\\/]*)
4393       re_direlt='/[^/][^/]*/\.\./'
4394       # Canonicalize the pathname of ld
4395       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4396       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4397         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4398       done
4399       test -z "$LD" && LD="$ac_prog"
4400       ;;
4401   "")
4402     # If it fails, then pretend we aren't using GCC.
4403     ac_prog=ld
4404     ;;
4405   *)
4406     # If it is relative, then search for the first ld in PATH.
4407     with_gnu_ld=unknown
4408     ;;
4409   esac
4410 elif test "$with_gnu_ld" = yes; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4412 $as_echo_n "checking for GNU ld... " >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4415 $as_echo_n "checking for non-GNU ld... " >&6; }
4416 fi
4417 if test "${lt_cv_path_LD+set}" = set; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -z "$LD"; then
4421   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422   for ac_dir in $PATH; do
4423     IFS="$lt_save_ifs"
4424     test -z "$ac_dir" && ac_dir=.
4425     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4426       lt_cv_path_LD="$ac_dir/$ac_prog"
4427       # Check to see if the program is GNU ld.  I'd rather use --version,
4428       # but apparently some variants of GNU ld only accept -v.
4429       # Break only if it was the GNU/non-GNU ld that we prefer.
4430       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4431       *GNU* | *'with BFD'*)
4432         test "$with_gnu_ld" != no && break
4433         ;;
4434       *)
4435         test "$with_gnu_ld" != yes && break
4436         ;;
4437       esac
4438     fi
4439   done
4440   IFS="$lt_save_ifs"
4441 else
4442   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4443 fi
4444 fi
4445
4446 LD="$lt_cv_path_LD"
4447 if test -n "$LD"; then
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4449 $as_echo "$LD" >&6; }
4450 else
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4453 fi
4454 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4456 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4457 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4461 case `$LD -v 2>&1 </dev/null` in
4462 *GNU* | *'with BFD'*)
4463   lt_cv_prog_gnu_ld=yes
4464   ;;
4465 *)
4466   lt_cv_prog_gnu_ld=no
4467   ;;
4468 esac
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4471 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4472 with_gnu_ld=$lt_cv_prog_gnu_ld
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4483 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4484 if test "${lt_cv_path_NM+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   if test -n "$NM"; then
4488   # Let the user override the test.
4489   lt_cv_path_NM="$NM"
4490 else
4491   lt_nm_to_check="${ac_tool_prefix}nm"
4492   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4493     lt_nm_to_check="$lt_nm_to_check nm"
4494   fi
4495   for lt_tmp_nm in $lt_nm_to_check; do
4496     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4497     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4498       IFS="$lt_save_ifs"
4499       test -z "$ac_dir" && ac_dir=.
4500       tmp_nm="$ac_dir/$lt_tmp_nm"
4501       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4502         # Check to see if the nm accepts a BSD-compat flag.
4503         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4504         #   nm: unknown option "B" ignored
4505         # Tru64's nm complains that /dev/null is an invalid object file
4506         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4507         */dev/null* | *'Invalid file or object type'*)
4508           lt_cv_path_NM="$tmp_nm -B"
4509           break
4510           ;;
4511         *)
4512           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4513           */dev/null*)
4514             lt_cv_path_NM="$tmp_nm -p"
4515             break
4516             ;;
4517           *)
4518             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4519             continue # so that we can try to find one that supports BSD flags
4520             ;;
4521           esac
4522           ;;
4523         esac
4524       fi
4525     done
4526     IFS="$lt_save_ifs"
4527   done
4528   : ${lt_cv_path_NM=no}
4529 fi
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4532 $as_echo "$lt_cv_path_NM" >&6; }
4533 if test "$lt_cv_path_NM" != "no"; then
4534   NM="$lt_cv_path_NM"
4535 else
4536   # Didn't find any BSD compatible name lister, look for dumpbin.
4537   if test -n "$ac_tool_prefix"; then
4538   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4539   do
4540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4545   $as_echo_n "(cached) " >&6
4546 else
4547   if test -n "$DUMPBIN"; then
4548   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4549 else
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555     for ac_exec_ext in '' $ac_executable_extensions; do
4556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562   done
4563 IFS=$as_save_IFS
4564
4565 fi
4566 fi
4567 DUMPBIN=$ac_cv_prog_DUMPBIN
4568 if test -n "$DUMPBIN"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4570 $as_echo "$DUMPBIN" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575
4576
4577     test -n "$DUMPBIN" && break
4578   done
4579 fi
4580 if test -z "$DUMPBIN"; then
4581   ac_ct_DUMPBIN=$DUMPBIN
4582   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4583 do
4584   # Extract the first word of "$ac_prog", so it can be a program name with args.
4585 set dummy $ac_prog; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test -n "$ac_ct_DUMPBIN"; then
4592   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599     for ac_exec_ext in '' $ac_executable_extensions; do
4600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603     break 2
4604   fi
4605 done
4606   done
4607 IFS=$as_save_IFS
4608
4609 fi
4610 fi
4611 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4612 if test -n "$ac_ct_DUMPBIN"; then
4613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4614 $as_echo "$ac_ct_DUMPBIN" >&6; }
4615 else
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 fi
4619
4620
4621   test -n "$ac_ct_DUMPBIN" && break
4622 done
4623
4624   if test "x$ac_ct_DUMPBIN" = x; then
4625     DUMPBIN=":"
4626   else
4627     case $cross_compiling:$ac_tool_warned in
4628 yes:)
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631 ac_tool_warned=yes ;;
4632 esac
4633     DUMPBIN=$ac_ct_DUMPBIN
4634   fi
4635 fi
4636
4637
4638   if test "$DUMPBIN" != ":"; then
4639     NM="$DUMPBIN"
4640   fi
4641 fi
4642 test -z "$NM" && NM=nm
4643
4644
4645
4646
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4650 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4651 if test "${lt_cv_nm_interface+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   lt_cv_nm_interface="BSD nm"
4655   echo "int some_variable = 0;" > conftest.$ac_ext
4656   (eval echo "\"\$as_me:4656: $ac_compile\"" >&5)
4657   (eval "$ac_compile" 2>conftest.err)
4658   cat conftest.err >&5
4659   (eval echo "\"\$as_me:4659: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4660   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4661   cat conftest.err >&5
4662   (eval echo "\"\$as_me:4662: output\"" >&5)
4663   cat conftest.out >&5
4664   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4665     lt_cv_nm_interface="MS dumpbin"
4666   fi
4667   rm -f conftest*
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4670 $as_echo "$lt_cv_nm_interface" >&6; }
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4673 $as_echo_n "checking whether ln -s works... " >&6; }
4674 LN_S=$as_ln_s
4675 if test "$LN_S" = "ln -s"; then
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4677 $as_echo "yes" >&6; }
4678 else
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4680 $as_echo "no, using $LN_S" >&6; }
4681 fi
4682
4683 # find the maximum length of command line arguments
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4685 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689     i=0
4690   teststring="ABCD"
4691
4692   case $build_os in
4693   msdosdjgpp*)
4694     # On DJGPP, this test can blow up pretty badly due to problems in libc
4695     # (any single argument exceeding 2000 bytes causes a buffer overrun
4696     # during glob expansion).  Even if it were fixed, the result of this
4697     # check would be larger than it should be.
4698     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4699     ;;
4700
4701   gnu*)
4702     # Under GNU Hurd, this test is not required because there is
4703     # no limit to the length of command line arguments.
4704     # Libtool will interpret -1 as no limit whatsoever
4705     lt_cv_sys_max_cmd_len=-1;
4706     ;;
4707
4708   cygwin* | mingw* | cegcc*)
4709     # On Win9x/ME, this test blows up -- it succeeds, but takes
4710     # about 5 minutes as the teststring grows exponentially.
4711     # Worse, since 9x/ME are not pre-emptively multitasking,
4712     # you end up with a "frozen" computer, even though with patience
4713     # the test eventually succeeds (with a max line length of 256k).
4714     # Instead, let's just punt: use the minimum linelength reported by
4715     # all of the supported platforms: 8192 (on NT/2K/XP).
4716     lt_cv_sys_max_cmd_len=8192;
4717     ;;
4718
4719   amigaos*)
4720     # On AmigaOS with pdksh, this test takes hours, literally.
4721     # So we just punt and use a minimum line length of 8192.
4722     lt_cv_sys_max_cmd_len=8192;
4723     ;;
4724
4725   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4726     # This has been around since 386BSD, at least.  Likely further.
4727     if test -x /sbin/sysctl; then
4728       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4729     elif test -x /usr/sbin/sysctl; then
4730       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4731     else
4732       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4733     fi
4734     # And add a safety zone
4735     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4736     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4737     ;;
4738
4739   interix*)
4740     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4741     lt_cv_sys_max_cmd_len=196608
4742     ;;
4743
4744   osf*)
4745     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4746     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4747     # nice to cause kernel panics so lets avoid the loop below.
4748     # First set a reasonable default.
4749     lt_cv_sys_max_cmd_len=16384
4750     #
4751     if test -x /sbin/sysconfig; then
4752       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4753         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4754       esac
4755     fi
4756     ;;
4757   sco3.2v5*)
4758     lt_cv_sys_max_cmd_len=102400
4759     ;;
4760   sysv5* | sco5v6* | sysv4.2uw2*)
4761     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4762     if test -n "$kargmax"; then
4763       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4764     else
4765       lt_cv_sys_max_cmd_len=32768
4766     fi
4767     ;;
4768   *)
4769     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4770     if test -n "$lt_cv_sys_max_cmd_len"; then
4771       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4772       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4773     else
4774       # Make teststring a little bigger before we do anything with it.
4775       # a 1K string should be a reasonable start.
4776       for i in 1 2 3 4 5 6 7 8 ; do
4777         teststring=$teststring$teststring
4778       done
4779       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4780       # If test is not a shell built-in, we'll probably end up computing a
4781       # maximum length that is only half of the actual maximum length, but
4782       # we can't tell.
4783       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4784                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4785               test $i != 17 # 1/2 MB should be enough
4786       do
4787         i=`expr $i + 1`
4788         teststring=$teststring$teststring
4789       done
4790       # Only check the string length outside the loop.
4791       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4792       teststring=
4793       # Add a significant safety factor because C++ compilers can tack on
4794       # massive amounts of additional arguments before passing them to the
4795       # linker.  It appears as though 1/2 is a usable value.
4796       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4797     fi
4798     ;;
4799   esac
4800
4801 fi
4802
4803 if test -n $lt_cv_sys_max_cmd_len ; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4805 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4808 $as_echo "none" >&6; }
4809 fi
4810 max_cmd_len=$lt_cv_sys_max_cmd_len
4811
4812
4813
4814
4815
4816
4817 : ${CP="cp -f"}
4818 : ${MV="mv -f"}
4819 : ${RM="rm -f"}
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4822 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4823 # Try some XSI features
4824 xsi_shell=no
4825 ( _lt_dummy="a/b/c"
4826   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4827       = c,a/b,, \
4828     && eval 'test $(( 1 + 1 )) -eq 2 \
4829     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4830   && xsi_shell=yes
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4832 $as_echo "$xsi_shell" >&6; }
4833
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4836 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4837 lt_shell_append=no
4838 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4839     >/dev/null 2>&1 \
4840   && lt_shell_append=yes
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4842 $as_echo "$lt_shell_append" >&6; }
4843
4844
4845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4846   lt_unset=unset
4847 else
4848   lt_unset=false
4849 fi
4850
4851
4852
4853
4854
4855 # test EBCDIC or ASCII
4856 case `echo X|tr X '\101'` in
4857  A) # ASCII based system
4858     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4859   lt_SP2NL='tr \040 \012'
4860   lt_NL2SP='tr \015\012 \040\040'
4861   ;;
4862  *) # EBCDIC based system
4863   lt_SP2NL='tr \100 \n'
4864   lt_NL2SP='tr \r\n \100\100'
4865   ;;
4866 esac
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4877 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4878 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4879   $as_echo_n "(cached) " >&6
4880 else
4881   lt_cv_ld_reload_flag='-r'
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4884 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4885 reload_flag=$lt_cv_ld_reload_flag
4886 case $reload_flag in
4887 "" | " "*) ;;
4888 *) reload_flag=" $reload_flag" ;;
4889 esac
4890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4891 case $host_os in
4892   darwin*)
4893     if test "$GCC" = yes; then
4894       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4895     else
4896       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4897     fi
4898     ;;
4899 esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909 if test -n "$ac_tool_prefix"; then
4910   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$OBJDUMP"; then
4918   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 OBJDUMP=$ac_cv_prog_OBJDUMP
4938 if test -n "$OBJDUMP"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4940 $as_echo "$OBJDUMP" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_prog_OBJDUMP"; then
4949   ac_ct_OBJDUMP=$OBJDUMP
4950   # Extract the first word of "objdump", so it can be a program name with args.
4951 set dummy objdump; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$ac_ct_OBJDUMP"; then
4958   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4978 if test -n "$ac_ct_OBJDUMP"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4980 $as_echo "$ac_ct_OBJDUMP" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986   if test "x$ac_ct_OBJDUMP" = x; then
4987     OBJDUMP="false"
4988   else
4989     case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995     OBJDUMP=$ac_ct_OBJDUMP
4996   fi
4997 else
4998   OBJDUMP="$ac_cv_prog_OBJDUMP"
4999 fi
5000
5001 test -z "$OBJDUMP" && OBJDUMP=objdump
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5012 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5013 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   lt_cv_file_magic_cmd='$MAGIC_CMD'
5017 lt_cv_file_magic_test_file=
5018 lt_cv_deplibs_check_method='unknown'
5019 # Need to set the preceding variable on all platforms that support
5020 # interlibrary dependencies.
5021 # 'none' -- dependencies not supported.
5022 # `unknown' -- same as none, but documents that we really don't know.
5023 # 'pass_all' -- all dependencies passed with no checks.
5024 # 'test_compile' -- check by making test program.
5025 # 'file_magic [[regex]]' -- check by looking for files in library path
5026 # which responds to the $file_magic_cmd with a given extended regex.
5027 # If you have `file' or equivalent on your system and you're not sure
5028 # whether `pass_all' will *always* work, you probably want this one.
5029
5030 case $host_os in
5031 aix[4-9]*)
5032   lt_cv_deplibs_check_method=pass_all
5033   ;;
5034
5035 beos*)
5036   lt_cv_deplibs_check_method=pass_all
5037   ;;
5038
5039 bsdi[45]*)
5040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5041   lt_cv_file_magic_cmd='/usr/bin/file -L'
5042   lt_cv_file_magic_test_file=/shlib/libc.so
5043   ;;
5044
5045 cygwin*)
5046   # func_win32_libid is a shell function defined in ltmain.sh
5047   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5048   lt_cv_file_magic_cmd='func_win32_libid'
5049   ;;
5050
5051 mingw* | pw32*)
5052   # Base MSYS/MinGW do not provide the 'file' command needed by
5053   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5054   # unless we find 'file', for example because we are cross-compiling.
5055   if ( file / ) >/dev/null 2>&1; then
5056     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5057     lt_cv_file_magic_cmd='func_win32_libid'
5058   else
5059     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5060     lt_cv_file_magic_cmd='$OBJDUMP -f'
5061   fi
5062   ;;
5063
5064 cegcc)
5065   # use the weaker test based on 'objdump'. See mingw*.
5066   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5067   lt_cv_file_magic_cmd='$OBJDUMP -f'
5068   ;;
5069
5070 darwin* | rhapsody*)
5071   lt_cv_deplibs_check_method=pass_all
5072   ;;
5073
5074 freebsd* | dragonfly*)
5075   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5076     case $host_cpu in
5077     i*86 )
5078       # Not sure whether the presence of OpenBSD here was a mistake.
5079       # Let's accept both of them until this is cleared up.
5080       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5081       lt_cv_file_magic_cmd=/usr/bin/file
5082       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5083       ;;
5084     esac
5085   else
5086     lt_cv_deplibs_check_method=pass_all
5087   fi
5088   ;;
5089
5090 gnu*)
5091   lt_cv_deplibs_check_method=pass_all
5092   ;;
5093
5094 hpux10.20* | hpux11*)
5095   lt_cv_file_magic_cmd=/usr/bin/file
5096   case $host_cpu in
5097   ia64*)
5098     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5099     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5100     ;;
5101   hppa*64*)
5102     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5103     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5104     ;;
5105   *)
5106     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5107     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5108     ;;
5109   esac
5110   ;;
5111
5112 interix[3-9]*)
5113   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5114   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5115   ;;
5116
5117 irix5* | irix6* | nonstopux*)
5118   case $LD in
5119   *-32|*"-32 ") libmagic=32-bit;;
5120   *-n32|*"-n32 ") libmagic=N32;;
5121   *-64|*"-64 ") libmagic=64-bit;;
5122   *) libmagic=never-match;;
5123   esac
5124   lt_cv_deplibs_check_method=pass_all
5125   ;;
5126
5127 # This must be Linux ELF.
5128 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5129   lt_cv_deplibs_check_method=pass_all
5130   ;;
5131
5132 netbsd* | netbsdelf*-gnu)
5133   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5134     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5135   else
5136     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5137   fi
5138   ;;
5139
5140 newos6*)
5141   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5142   lt_cv_file_magic_cmd=/usr/bin/file
5143   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5144   ;;
5145
5146 *nto* | *qnx*)
5147   lt_cv_deplibs_check_method=pass_all
5148   ;;
5149
5150 openbsd*)
5151   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5152     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5153   else
5154     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5155   fi
5156   ;;
5157
5158 osf3* | osf4* | osf5*)
5159   lt_cv_deplibs_check_method=pass_all
5160   ;;
5161
5162 rdos*)
5163   lt_cv_deplibs_check_method=pass_all
5164   ;;
5165
5166 solaris*)
5167   lt_cv_deplibs_check_method=pass_all
5168   ;;
5169
5170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5171   lt_cv_deplibs_check_method=pass_all
5172   ;;
5173
5174 sysv4 | sysv4.3*)
5175   case $host_vendor in
5176   motorola)
5177     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]'
5178     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5179     ;;
5180   ncr)
5181     lt_cv_deplibs_check_method=pass_all
5182     ;;
5183   sequent)
5184     lt_cv_file_magic_cmd='/bin/file'
5185     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5186     ;;
5187   sni)
5188     lt_cv_file_magic_cmd='/bin/file'
5189     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5190     lt_cv_file_magic_test_file=/lib/libc.so
5191     ;;
5192   siemens)
5193     lt_cv_deplibs_check_method=pass_all
5194     ;;
5195   pc)
5196     lt_cv_deplibs_check_method=pass_all
5197     ;;
5198   esac
5199   ;;
5200
5201 tpf*)
5202   lt_cv_deplibs_check_method=pass_all
5203   ;;
5204 esac
5205
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5208 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5209 file_magic_cmd=$lt_cv_file_magic_cmd
5210 deplibs_check_method=$lt_cv_deplibs_check_method
5211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224 if test -n "$ac_tool_prefix"; then
5225   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}ar; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_AR+set}" = set; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   if test -n "$AR"; then
5233   ac_cv_prog_AR="$AR" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238   IFS=$as_save_IFS
5239   test -z "$as_dir" && as_dir=.
5240     for ac_exec_ext in '' $ac_executable_extensions; do
5241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242     ac_cv_prog_AR="${ac_tool_prefix}ar"
5243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244     break 2
5245   fi
5246 done
5247   done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 AR=$ac_cv_prog_AR
5253 if test -n "$AR"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5255 $as_echo "$AR" >&6; }
5256 else
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 if test -z "$ac_cv_prog_AR"; then
5264   ac_ct_AR=$AR
5265   # Extract the first word of "ar", so it can be a program name with args.
5266 set dummy ar; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   if test -n "$ac_ct_AR"; then
5273   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_prog_ac_ct_AR="ar"
5283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287   done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5293 if test -n "$ac_ct_AR"; then
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5295 $as_echo "$ac_ct_AR" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301   if test "x$ac_ct_AR" = x; then
5302     AR="false"
5303   else
5304     case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310     AR=$ac_ct_AR
5311   fi
5312 else
5313   AR="$ac_cv_prog_AR"
5314 fi
5315
5316 test -z "$AR" && AR=ar
5317 test -z "$AR_FLAGS" && AR_FLAGS=cru
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329 if test -n "$ac_tool_prefix"; then
5330   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5331 set dummy ${ac_tool_prefix}strip; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if test "${ac_cv_prog_STRIP+set}" = set; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   if test -n "$STRIP"; then
5338   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352   done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 STRIP=$ac_cv_prog_STRIP
5358 if test -n "$STRIP"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5360 $as_echo "$STRIP" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367 fi
5368 if test -z "$ac_cv_prog_STRIP"; then
5369   ac_ct_STRIP=$STRIP
5370   # Extract the first word of "strip", so it can be a program name with args.
5371 set dummy strip; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   if test -n "$ac_ct_STRIP"; then
5378   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387     ac_cv_prog_ac_ct_STRIP="strip"
5388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392   done
5393 IFS=$as_save_IFS
5394
5395 fi
5396 fi
5397 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5398 if test -n "$ac_ct_STRIP"; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5400 $as_echo "$ac_ct_STRIP" >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 fi
5405
5406   if test "x$ac_ct_STRIP" = x; then
5407     STRIP=":"
5408   else
5409     case $cross_compiling:$ac_tool_warned in
5410 yes:)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413 ac_tool_warned=yes ;;
5414 esac
5415     STRIP=$ac_ct_STRIP
5416   fi
5417 else
5418   STRIP="$ac_cv_prog_STRIP"
5419 fi
5420
5421 test -z "$STRIP" && STRIP=:
5422
5423
5424
5425
5426
5427
5428 if test -n "$ac_tool_prefix"; then
5429   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   if test -n "$RANLIB"; then
5437   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444     for ac_exec_ext in '' $ac_executable_extensions; do
5445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448     break 2
5449   fi
5450 done
5451   done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 RANLIB=$ac_cv_prog_RANLIB
5457 if test -n "$RANLIB"; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5459 $as_echo "$RANLIB" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466 fi
5467 if test -z "$ac_cv_prog_RANLIB"; then
5468   ac_ct_RANLIB=$RANLIB
5469   # Extract the first word of "ranlib", so it can be a program name with args.
5470 set dummy ranlib; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   if test -n "$ac_ct_RANLIB"; then
5477   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484     for ac_exec_ext in '' $ac_executable_extensions; do
5485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486     ac_cv_prog_ac_ct_RANLIB="ranlib"
5487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491   done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5497 if test -n "$ac_ct_RANLIB"; then
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5499 $as_echo "$ac_ct_RANLIB" >&6; }
5500 else
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505   if test "x$ac_ct_RANLIB" = x; then
5506     RANLIB=":"
5507   else
5508     case $cross_compiling:$ac_tool_warned in
5509 yes:)
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512 ac_tool_warned=yes ;;
5513 esac
5514     RANLIB=$ac_ct_RANLIB
5515   fi
5516 else
5517   RANLIB="$ac_cv_prog_RANLIB"
5518 fi
5519
5520 test -z "$RANLIB" && RANLIB=:
5521
5522
5523
5524
5525
5526
5527 # Determine commands to create old-style static archives.
5528 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5529 old_postinstall_cmds='chmod 644 $oldlib'
5530 old_postuninstall_cmds=
5531
5532 if test -n "$RANLIB"; then
5533   case $host_os in
5534   openbsd*)
5535     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5536     ;;
5537   *)
5538     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5539     ;;
5540   esac
5541   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5542 fi
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577 # If no C compiler was specified, use CC.
5578 LTCC=${LTCC-"$CC"}
5579
5580 # If no C compiler flags were specified, use CFLAGS.
5581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5582
5583 # Allow CC to be a program name with arguments.
5584 compiler=$CC
5585
5586
5587 # Check for command to grab the raw symbol name followed by C symbol from nm.
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5589 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593
5594 # These are sane defaults that work on at least a few old systems.
5595 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5596
5597 # Character class describing NM global symbol codes.
5598 symcode='[BCDEGRST]'
5599
5600 # Regexp to match symbols that can be accessed directly from C.
5601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5602
5603 # Define system-specific variables.
5604 case $host_os in
5605 aix*)
5606   symcode='[BCDT]'
5607   ;;
5608 cygwin* | mingw* | pw32* | cegcc*)
5609   symcode='[ABCDGISTW]'
5610   ;;
5611 hpux*)
5612   if test "$host_cpu" = ia64; then
5613     symcode='[ABCDEGRST]'
5614   fi
5615   ;;
5616 irix* | nonstopux*)
5617   symcode='[BCDEGRST]'
5618   ;;
5619 osf*)
5620   symcode='[BCDEGQRST]'
5621   ;;
5622 solaris*)
5623   symcode='[BDRT]'
5624   ;;
5625 sco3.2v5*)
5626   symcode='[DT]'
5627   ;;
5628 sysv4.2uw2*)
5629   symcode='[DT]'
5630   ;;
5631 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5632   symcode='[ABDT]'
5633   ;;
5634 sysv4)
5635   symcode='[DFNSTU]'
5636   ;;
5637 esac
5638
5639 # If we're using GNU nm, then use its standard symbol codes.
5640 case `$NM -V 2>&1` in
5641 *GNU* | *'with BFD'*)
5642   symcode='[ABCDGIRSTW]' ;;
5643 esac
5644
5645 # Transform an extracted symbol line into a proper C declaration.
5646 # Some systems (esp. on ia64) link data and code symbols differently,
5647 # so use this general approach.
5648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5649
5650 # Transform an extracted symbol line into symbol name and symbol address
5651 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5653
5654 # Handle CRLF in mingw tool chain
5655 opt_cr=
5656 case $build_os in
5657 mingw*)
5658   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5659   ;;
5660 esac
5661
5662 # Try without a prefix underscore, then with it.
5663 for ac_symprfx in "" "_"; do
5664
5665   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5666   symxfrm="\\1 $ac_symprfx\\2 \\2"
5667
5668   # Write the raw and C identifiers.
5669   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5670     # Fake it for dumpbin and say T for any non-static function
5671     # and D for any global variable.
5672     # Also find C++ and __fastcall symbols from MSVC++,
5673     # which start with @ or ?.
5674     lt_cv_sys_global_symbol_pipe="$AWK '"\
5675 "     {last_section=section; section=\$ 3};"\
5676 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5677 "     \$ 0!~/External *\|/{next};"\
5678 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5679 "     {if(hide[section]) next};"\
5680 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5681 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5682 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5683 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5684 "     ' prfx=^$ac_symprfx"
5685   else
5686     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5687   fi
5688
5689   # Check to see that the pipe works correctly.
5690   pipe_works=no
5691
5692   rm -f conftest*
5693   cat > conftest.$ac_ext <<_LT_EOF
5694 #ifdef __cplusplus
5695 extern "C" {
5696 #endif
5697 char nm_test_var;
5698 void nm_test_func(void);
5699 void nm_test_func(void){}
5700 #ifdef __cplusplus
5701 }
5702 #endif
5703 int main(){nm_test_var='a';nm_test_func();return(0);}
5704 _LT_EOF
5705
5706   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5707   (eval $ac_compile) 2>&5
5708   ac_status=$?
5709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710   test $ac_status = 0; }; then
5711     # Now try to grab the symbols.
5712     nlist=conftest.nm
5713     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5714   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5715   ac_status=$?
5716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5717   test $ac_status = 0; } && test -s "$nlist"; then
5718       # Try sorting and uniquifying the output.
5719       if sort "$nlist" | uniq > "$nlist"T; then
5720         mv -f "$nlist"T "$nlist"
5721       else
5722         rm -f "$nlist"T
5723       fi
5724
5725       # Make sure that we snagged all the symbols we need.
5726       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5727         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5728           cat <<_LT_EOF > conftest.$ac_ext
5729 #ifdef __cplusplus
5730 extern "C" {
5731 #endif
5732
5733 _LT_EOF
5734           # Now generate the symbol file.
5735           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5736
5737           cat <<_LT_EOF >> conftest.$ac_ext
5738
5739 /* The mapping between symbol names and symbols.  */
5740 const struct {
5741   const char *name;
5742   void       *address;
5743 }
5744 lt__PROGRAM__LTX_preloaded_symbols[] =
5745 {
5746   { "@PROGRAM@", (void *) 0 },
5747 _LT_EOF
5748           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5749           cat <<\_LT_EOF >> conftest.$ac_ext
5750   {0, (void *) 0}
5751 };
5752
5753 /* This works around a problem in FreeBSD linker */
5754 #ifdef FREEBSD_WORKAROUND
5755 static const void *lt_preloaded_setup() {
5756   return lt__PROGRAM__LTX_preloaded_symbols;
5757 }
5758 #endif
5759
5760 #ifdef __cplusplus
5761 }
5762 #endif
5763 _LT_EOF
5764           # Now try linking the two files.
5765           mv conftest.$ac_objext conftstm.$ac_objext
5766           lt_save_LIBS="$LIBS"
5767           lt_save_CFLAGS="$CFLAGS"
5768           LIBS="conftstm.$ac_objext"
5769           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5770           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5771   (eval $ac_link) 2>&5
5772   ac_status=$?
5773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5775             pipe_works=yes
5776           fi
5777           LIBS="$lt_save_LIBS"
5778           CFLAGS="$lt_save_CFLAGS"
5779         else
5780           echo "cannot find nm_test_func in $nlist" >&5
5781         fi
5782       else
5783         echo "cannot find nm_test_var in $nlist" >&5
5784       fi
5785     else
5786       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5787     fi
5788   else
5789     echo "$progname: failed program was:" >&5
5790     cat conftest.$ac_ext >&5
5791   fi
5792   rm -rf conftest* conftst*
5793
5794   # Do not use the global_symbol_pipe unless it works.
5795   if test "$pipe_works" = yes; then
5796     break
5797   else
5798     lt_cv_sys_global_symbol_pipe=
5799   fi
5800 done
5801
5802 fi
5803
5804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5805   lt_cv_sys_global_symbol_to_cdecl=
5806 fi
5807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5809 $as_echo "failed" >&6; }
5810 else
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5812 $as_echo "ok" >&6; }
5813 fi
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 # Check whether --enable-libtool-lock was given.
5838 if test "${enable_libtool_lock+set}" = set; then :
5839   enableval=$enable_libtool_lock;
5840 fi
5841
5842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5843
5844 # Some flags need to be propagated to the compiler or linker for good
5845 # libtool support.
5846 case $host in
5847 ia64-*-hpux*)
5848   # Find out which ABI we are using.
5849   echo 'int i;' > conftest.$ac_ext
5850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5851   (eval $ac_compile) 2>&5
5852   ac_status=$?
5853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854   test $ac_status = 0; }; then
5855     case `/usr/bin/file conftest.$ac_objext` in
5856       *ELF-32*)
5857         HPUX_IA64_MODE="32"
5858         ;;
5859       *ELF-64*)
5860         HPUX_IA64_MODE="64"
5861         ;;
5862     esac
5863   fi
5864   rm -rf conftest*
5865   ;;
5866 *-*-irix6*)
5867   # Find out which ABI we are using.
5868   echo '#line 5868 "configure"' > conftest.$ac_ext
5869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5870   (eval $ac_compile) 2>&5
5871   ac_status=$?
5872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873   test $ac_status = 0; }; then
5874     if test "$lt_cv_prog_gnu_ld" = yes; then
5875       case `/usr/bin/file conftest.$ac_objext` in
5876         *32-bit*)
5877           LD="${LD-ld} -melf32bsmip"
5878           ;;
5879         *N32*)
5880           LD="${LD-ld} -melf32bmipn32"
5881           ;;
5882         *64-bit*)
5883           LD="${LD-ld} -melf64bmip"
5884         ;;
5885       esac
5886     else
5887       case `/usr/bin/file conftest.$ac_objext` in
5888         *32-bit*)
5889           LD="${LD-ld} -32"
5890           ;;
5891         *N32*)
5892           LD="${LD-ld} -n32"
5893           ;;
5894         *64-bit*)
5895           LD="${LD-ld} -64"
5896           ;;
5897       esac
5898     fi
5899   fi
5900   rm -rf conftest*
5901   ;;
5902
5903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5905   # Find out which ABI we are using.
5906   echo 'int i;' > conftest.$ac_ext
5907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5908   (eval $ac_compile) 2>&5
5909   ac_status=$?
5910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5911   test $ac_status = 0; }; then
5912     case `/usr/bin/file conftest.o` in
5913       *32-bit*)
5914         case $host in
5915           x86_64-*kfreebsd*-gnu)
5916             LD="${LD-ld} -m elf_i386_fbsd"
5917             ;;
5918           x86_64-*linux*)
5919             LD="${LD-ld} -m elf_i386"
5920             ;;
5921           ppc64-*linux*|powerpc64-*linux*)
5922             LD="${LD-ld} -m elf32ppclinux"
5923             ;;
5924           s390x-*linux*)
5925             LD="${LD-ld} -m elf_s390"
5926             ;;
5927           sparc64-*linux*)
5928             LD="${LD-ld} -m elf32_sparc"
5929             ;;
5930         esac
5931         ;;
5932       *64-bit*)
5933         case $host in
5934           x86_64-*kfreebsd*-gnu)
5935             LD="${LD-ld} -m elf_x86_64_fbsd"
5936             ;;
5937           x86_64-*linux*)
5938             LD="${LD-ld} -m elf_x86_64"
5939             ;;
5940           ppc*-*linux*|powerpc*-*linux*)
5941             LD="${LD-ld} -m elf64ppc"
5942             ;;
5943           s390*-*linux*|s390*-*tpf*)
5944             LD="${LD-ld} -m elf64_s390"
5945             ;;
5946           sparc*-*linux*)
5947             LD="${LD-ld} -m elf64_sparc"
5948             ;;
5949         esac
5950         ;;
5951     esac
5952   fi
5953   rm -rf conftest*
5954   ;;
5955
5956 *-*-sco3.2v5*)
5957   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5958   SAVE_CFLAGS="$CFLAGS"
5959   CFLAGS="$CFLAGS -belf"
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5962 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   ac_ext=c
5966 ac_cpp='$CPP $CPPFLAGS'
5967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5970
5971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h.  */
5973
5974 int
5975 main ()
5976 {
5977
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_link "$LINENO"; then :
5983   lt_cv_cc_needs_belf=yes
5984 else
5985   lt_cv_cc_needs_belf=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext \
5988     conftest$ac_exeext conftest.$ac_ext
5989      ac_ext=c
5990 ac_cpp='$CPP $CPPFLAGS'
5991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5998   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5999     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6000     CFLAGS="$SAVE_CFLAGS"
6001   fi
6002   ;;
6003 sparc*-*solaris*)
6004   # Find out which ABI we are using.
6005   echo 'int i;' > conftest.$ac_ext
6006   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6007   (eval $ac_compile) 2>&5
6008   ac_status=$?
6009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6010   test $ac_status = 0; }; then
6011     case `/usr/bin/file conftest.o` in
6012     *64-bit*)
6013       case $lt_cv_prog_gnu_ld in
6014       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6015       *)
6016         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6017           LD="${LD-ld} -64"
6018         fi
6019         ;;
6020       esac
6021       ;;
6022     esac
6023   fi
6024   rm -rf conftest*
6025   ;;
6026 esac
6027
6028 need_locks="$enable_libtool_lock"
6029
6030
6031   case $host_os in
6032     rhapsody* | darwin*)
6033     if test -n "$ac_tool_prefix"; then
6034   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   if test -n "$DSYMUTIL"; then
6042   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049     for ac_exec_ext in '' $ac_executable_extensions; do
6050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056   done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6062 if test -n "$DSYMUTIL"; then
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6064 $as_echo "$DSYMUTIL" >&6; }
6065 else
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070
6071 fi
6072 if test -z "$ac_cv_prog_DSYMUTIL"; then
6073   ac_ct_DSYMUTIL=$DSYMUTIL
6074   # Extract the first word of "dsymutil", so it can be a program name with args.
6075 set dummy dsymutil; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   if test -n "$ac_ct_DSYMUTIL"; then
6082   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6102 if test -n "$ac_ct_DSYMUTIL"; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110   if test "x$ac_ct_DSYMUTIL" = x; then
6111     DSYMUTIL=":"
6112   else
6113     case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned=yes ;;
6118 esac
6119     DSYMUTIL=$ac_ct_DSYMUTIL
6120   fi
6121 else
6122   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6123 fi
6124
6125     if test -n "$ac_tool_prefix"; then
6126   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6131   $as_echo_n "(cached) " >&6
6132 else
6133   if test -n "$NMEDIT"; then
6134   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141     for ac_exec_ext in '' $ac_executable_extensions; do
6142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145     break 2
6146   fi
6147 done
6148   done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 NMEDIT=$ac_cv_prog_NMEDIT
6154 if test -n "$NMEDIT"; then
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6156 $as_echo "$NMEDIT" >&6; }
6157 else
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162
6163 fi
6164 if test -z "$ac_cv_prog_NMEDIT"; then
6165   ac_ct_NMEDIT=$NMEDIT
6166   # Extract the first word of "nmedit", so it can be a program name with args.
6167 set dummy nmedit; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$ac_ct_NMEDIT"; then
6174   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6194 if test -n "$ac_ct_NMEDIT"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6196 $as_echo "$ac_ct_NMEDIT" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202   if test "x$ac_ct_NMEDIT" = x; then
6203     NMEDIT=":"
6204   else
6205     case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211     NMEDIT=$ac_ct_NMEDIT
6212   fi
6213 else
6214   NMEDIT="$ac_cv_prog_NMEDIT"
6215 fi
6216
6217     if test -n "$ac_tool_prefix"; then
6218   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if test "${ac_cv_prog_LIPO+set}" = set; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   if test -n "$LIPO"; then
6226   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233     for ac_exec_ext in '' $ac_executable_extensions; do
6234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6235     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237     break 2
6238   fi
6239 done
6240   done
6241 IFS=$as_save_IFS
6242
6243 fi
6244 fi
6245 LIPO=$ac_cv_prog_LIPO
6246 if test -n "$LIPO"; then
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6248 $as_echo "$LIPO" >&6; }
6249 else
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6252 fi
6253
6254
6255 fi
6256 if test -z "$ac_cv_prog_LIPO"; then
6257   ac_ct_LIPO=$LIPO
6258   # Extract the first word of "lipo", so it can be a program name with args.
6259 set dummy lipo; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   if test -n "$ac_ct_LIPO"; then
6266   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271   IFS=$as_save_IFS
6272   test -z "$as_dir" && as_dir=.
6273     for ac_exec_ext in '' $ac_executable_extensions; do
6274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275     ac_cv_prog_ac_ct_LIPO="lipo"
6276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277     break 2
6278   fi
6279 done
6280   done
6281 IFS=$as_save_IFS
6282
6283 fi
6284 fi
6285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6286 if test -n "$ac_ct_LIPO"; then
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6288 $as_echo "$ac_ct_LIPO" >&6; }
6289 else
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293
6294   if test "x$ac_ct_LIPO" = x; then
6295     LIPO=":"
6296   else
6297     case $cross_compiling:$ac_tool_warned in
6298 yes:)
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303     LIPO=$ac_ct_LIPO
6304   fi
6305 else
6306   LIPO="$ac_cv_prog_LIPO"
6307 fi
6308
6309     if test -n "$ac_tool_prefix"; then
6310   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}otool; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   if test -n "$OTOOL"; then
6318   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 OTOOL=$ac_cv_prog_OTOOL
6338 if test -n "$OTOOL"; then
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6340 $as_echo "$OTOOL" >&6; }
6341 else
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_OTOOL"; then
6349   ac_ct_OTOOL=$OTOOL
6350   # Extract the first word of "otool", so it can be a program name with args.
6351 set dummy otool; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$ac_ct_OTOOL"; then
6358   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_ac_ct_OTOOL="otool"
6368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372   done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6378 if test -n "$ac_ct_OTOOL"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6380 $as_echo "$ac_ct_OTOOL" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386   if test "x$ac_ct_OTOOL" = x; then
6387     OTOOL=":"
6388   else
6389     case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395     OTOOL=$ac_ct_OTOOL
6396   fi
6397 else
6398   OTOOL="$ac_cv_prog_OTOOL"
6399 fi
6400
6401     if test -n "$ac_tool_prefix"; then
6402   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6407   $as_echo_n "(cached) " >&6
6408 else
6409   if test -n "$OTOOL64"; then
6410   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   test -z "$as_dir" && as_dir=.
6417     for ac_exec_ext in '' $ac_executable_extensions; do
6418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422   fi
6423 done
6424   done
6425 IFS=$as_save_IFS
6426
6427 fi
6428 fi
6429 OTOOL64=$ac_cv_prog_OTOOL64
6430 if test -n "$OTOOL64"; then
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6432 $as_echo "$OTOOL64" >&6; }
6433 else
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 fi
6437
6438
6439 fi
6440 if test -z "$ac_cv_prog_OTOOL64"; then
6441   ac_ct_OTOOL64=$OTOOL64
6442   # Extract the first word of "otool64", so it can be a program name with args.
6443 set dummy otool64; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   if test -n "$ac_ct_OTOOL64"; then
6450   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457     for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_prog_ac_ct_OTOOL64="otool64"
6460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464   done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6470 if test -n "$ac_ct_OTOOL64"; then
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6472 $as_echo "$ac_ct_OTOOL64" >&6; }
6473 else
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478   if test "x$ac_ct_OTOOL64" = x; then
6479     OTOOL64=":"
6480   else
6481     case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487     OTOOL64=$ac_ct_OTOOL64
6488   fi
6489 else
6490   OTOOL64="$ac_cv_prog_OTOOL64"
6491 fi
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6520 $as_echo_n "checking for -single_module linker flag... " >&6; }
6521 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   lt_cv_apple_cc_single_mod=no
6525       if test -z "${LT_MULTI_MODULE}"; then
6526         # By default we will add the -single_module flag. You can override
6527         # by either setting the environment variable LT_MULTI_MODULE
6528         # non-empty at configure time, or by adding -multi_module to the
6529         # link flags.
6530         rm -rf libconftest.dylib*
6531         echo "int foo(void){return 1;}" > conftest.c
6532         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6533 -dynamiclib -Wl,-single_module conftest.c" >&5
6534         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6535           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6536         _lt_result=$?
6537         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6538           lt_cv_apple_cc_single_mod=yes
6539         else
6540           cat conftest.err >&5
6541         fi
6542         rm -rf libconftest.dylib*
6543         rm -f conftest.*
6544       fi
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6550 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   lt_cv_ld_exported_symbols_list=no
6554       save_LDFLAGS=$LDFLAGS
6555       echo "_main" > conftest.sym
6556       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6557       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h.  */
6559
6560 int
6561 main ()
6562 {
6563
6564   ;
6565   return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_c_try_link "$LINENO"; then :
6569   lt_cv_ld_exported_symbols_list=yes
6570 else
6571   lt_cv_ld_exported_symbols_list=no
6572 fi
6573 rm -f core conftest.err conftest.$ac_objext \
6574     conftest$ac_exeext conftest.$ac_ext
6575         LDFLAGS="$save_LDFLAGS"
6576
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6580     case $host_os in
6581     rhapsody* | darwin1.[012])
6582       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6583     darwin1.*)
6584       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6585     darwin*) # darwin 5.x on
6586       # if running on 10.5 or later, the deployment target defaults
6587       # to the OS version, if on x86, and 10.4, the deployment
6588       # target defaults to 10.4. Don't you love it?
6589       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6590         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6591           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6592         10.[012]*)
6593           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6594         10.*)
6595           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6596       esac
6597     ;;
6598   esac
6599     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6600       _lt_dar_single_mod='$single_module'
6601     fi
6602     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6603       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6604     else
6605       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6606     fi
6607     if test "$DSYMUTIL" != ":"; then
6608       _lt_dsymutil='~$DSYMUTIL $lib || :'
6609     else
6610       _lt_dsymutil=
6611     fi
6612     ;;
6613   esac
6614
6615 ac_ext=c
6616 ac_cpp='$CPP $CPPFLAGS'
6617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6621 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6622 # On Suns, sometimes $CPP names a directory.
6623 if test -n "$CPP" && test -d "$CPP"; then
6624   CPP=
6625 fi
6626 if test -z "$CPP"; then
6627   if test "${ac_cv_prog_CPP+set}" = set; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630       # Double quotes because CPP needs to be expanded
6631     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6632     do
6633       ac_preproc_ok=false
6634 for ac_c_preproc_warn_flag in '' yes
6635 do
6636   # Use a header file that comes with gcc, so configuring glibc
6637   # with a fresh cross-compiler works.
6638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6639   # <limits.h> exists even on freestanding compilers.
6640   # On the NeXT, cc -E runs the code through the compiler's parser,
6641   # not just through cpp. "Syntax error" is here to catch this case.
6642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644 #ifdef __STDC__
6645 # include <limits.h>
6646 #else
6647 # include <assert.h>
6648 #endif
6649                      Syntax error
6650 _ACEOF
6651 if ac_fn_c_try_cpp "$LINENO"; then :
6652
6653 else
6654   # Broken: fails on valid input.
6655 continue
6656 fi
6657 rm -f conftest.err conftest.i conftest.$ac_ext
6658
6659   # OK, works on sane cases.  Now check whether nonexistent headers
6660   # can be detected and how.
6661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h.  */
6663 #include <ac_nonexistent.h>
6664 _ACEOF
6665 if ac_fn_c_try_cpp "$LINENO"; then :
6666   # Broken: success on invalid input.
6667 continue
6668 else
6669   # Passes both tests.
6670 ac_preproc_ok=:
6671 break
6672 fi
6673 rm -f conftest.err conftest.i conftest.$ac_ext
6674
6675 done
6676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6677 rm -f conftest.i conftest.err conftest.$ac_ext
6678 if $ac_preproc_ok; then :
6679   break
6680 fi
6681
6682     done
6683     ac_cv_prog_CPP=$CPP
6684
6685 fi
6686   CPP=$ac_cv_prog_CPP
6687 else
6688   ac_cv_prog_CPP=$CPP
6689 fi
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6691 $as_echo "$CPP" >&6; }
6692 ac_preproc_ok=false
6693 for ac_c_preproc_warn_flag in '' yes
6694 do
6695   # Use a header file that comes with gcc, so configuring glibc
6696   # with a fresh cross-compiler works.
6697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698   # <limits.h> exists even on freestanding compilers.
6699   # On the NeXT, cc -E runs the code through the compiler's parser,
6700   # not just through cpp. "Syntax error" is here to catch this case.
6701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h.  */
6703 #ifdef __STDC__
6704 # include <limits.h>
6705 #else
6706 # include <assert.h>
6707 #endif
6708                      Syntax error
6709 _ACEOF
6710 if ac_fn_c_try_cpp "$LINENO"; then :
6711
6712 else
6713   # Broken: fails on valid input.
6714 continue
6715 fi
6716 rm -f conftest.err conftest.i conftest.$ac_ext
6717
6718   # OK, works on sane cases.  Now check whether nonexistent headers
6719   # can be detected and how.
6720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h.  */
6722 #include <ac_nonexistent.h>
6723 _ACEOF
6724 if ac_fn_c_try_cpp "$LINENO"; then :
6725   # Broken: success on invalid input.
6726 continue
6727 else
6728   # Passes both tests.
6729 ac_preproc_ok=:
6730 break
6731 fi
6732 rm -f conftest.err conftest.i conftest.$ac_ext
6733
6734 done
6735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6736 rm -f conftest.i conftest.err conftest.$ac_ext
6737 if $ac_preproc_ok; then :
6738
6739 else
6740   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6742 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6743 See \`config.log' for more details" "$LINENO" 5 ; }
6744 fi
6745
6746 ac_ext=c
6747 ac_cpp='$CPP $CPPFLAGS'
6748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751
6752
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6754 $as_echo_n "checking for ANSI C header files... " >&6; }
6755 if test "${ac_cv_header_stdc+set}" = set; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h.  */
6760 #include <stdlib.h>
6761 #include <stdarg.h>
6762 #include <string.h>
6763 #include <float.h>
6764
6765 int
6766 main ()
6767 {
6768
6769   ;
6770   return 0;
6771 }
6772 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"; then :
6774   ac_cv_header_stdc=yes
6775 else
6776   ac_cv_header_stdc=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779
6780 if test $ac_cv_header_stdc = yes; then
6781   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784 #include <string.h>
6785
6786 _ACEOF
6787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788   $EGREP "memchr" >/dev/null 2>&1; then :
6789
6790 else
6791   ac_cv_header_stdc=no
6792 fi
6793 rm -f conftest*
6794
6795 fi
6796
6797 if test $ac_cv_header_stdc = yes; then
6798   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801 #include <stdlib.h>
6802
6803 _ACEOF
6804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805   $EGREP "free" >/dev/null 2>&1; then :
6806
6807 else
6808   ac_cv_header_stdc=no
6809 fi
6810 rm -f conftest*
6811
6812 fi
6813
6814 if test $ac_cv_header_stdc = yes; then
6815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6816   if test "$cross_compiling" = yes; then :
6817   :
6818 else
6819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h.  */
6821 #include <ctype.h>
6822 #include <stdlib.h>
6823 #if ((' ' & 0x0FF) == 0x020)
6824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6826 #else
6827 # define ISLOWER(c) \
6828                    (('a' <= (c) && (c) <= 'i') \
6829                      || ('j' <= (c) && (c) <= 'r') \
6830                      || ('s' <= (c) && (c) <= 'z'))
6831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6832 #endif
6833
6834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6835 int
6836 main ()
6837 {
6838   int i;
6839   for (i = 0; i < 256; i++)
6840     if (XOR (islower (i), ISLOWER (i))
6841         || toupper (i) != TOUPPER (i))
6842       return 2;
6843   return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_c_try_run "$LINENO"; then :
6847
6848 else
6849   ac_cv_header_stdc=no
6850 fi
6851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6852   conftest.$ac_objext conftest.beam conftest.$ac_ext
6853 fi
6854
6855 fi
6856 fi
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6858 $as_echo "$ac_cv_header_stdc" >&6; }
6859 if test $ac_cv_header_stdc = yes; then
6860
6861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6862
6863 fi
6864
6865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6867                   inttypes.h stdint.h unistd.h
6868 do :
6869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6871 "
6872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6873   cat >>confdefs.h <<_ACEOF
6874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 _ACEOF
6876
6877 fi
6878
6879 done
6880
6881
6882 for ac_header in dlfcn.h
6883 do :
6884   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6885 "
6886 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6887   cat >>confdefs.h <<_ACEOF
6888 #define HAVE_DLFCN_H 1
6889 _ACEOF
6890
6891 fi
6892
6893 done
6894
6895
6896
6897 # Set options
6898 enable_dlopen=yes
6899 # Check whether --enable-static was given.
6900 if test "${enable_static+set}" = set; then :
6901   enableval=$enable_static; p=${PACKAGE-default}
6902     case $enableval in
6903     yes) enable_static=yes ;;
6904     no) enable_static=no ;;
6905     *)
6906      enable_static=no
6907       # Look at the argument we got.  We use all the common list separators.
6908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6909       for pkg in $enableval; do
6910         IFS="$lt_save_ifs"
6911         if test "X$pkg" = "X$p"; then
6912           enable_static=yes
6913         fi
6914       done
6915       IFS="$lt_save_ifs"
6916       ;;
6917     esac
6918 else
6919   enable_static=no
6920 fi
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932   enable_win32_dll=no
6933
6934
6935             # Check whether --enable-shared was given.
6936 if test "${enable_shared+set}" = set; then :
6937   enableval=$enable_shared; p=${PACKAGE-default}
6938     case $enableval in
6939     yes) enable_shared=yes ;;
6940     no) enable_shared=no ;;
6941     *)
6942       enable_shared=no
6943       # Look at the argument we got.  We use all the common list separators.
6944       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6945       for pkg in $enableval; do
6946         IFS="$lt_save_ifs"
6947         if test "X$pkg" = "X$p"; then
6948           enable_shared=yes
6949         fi
6950       done
6951       IFS="$lt_save_ifs"
6952       ;;
6953     esac
6954 else
6955   enable_shared=yes
6956 fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 # Check whether --with-pic was given.
6969 if test "${with_pic+set}" = set; then :
6970   withval=$with_pic; pic_mode="$withval"
6971 else
6972   pic_mode=default
6973 fi
6974
6975
6976 test -z "$pic_mode" && pic_mode=default
6977
6978
6979
6980
6981
6982
6983
6984   # Check whether --enable-fast-install was given.
6985 if test "${enable_fast_install+set}" = set; then :
6986   enableval=$enable_fast_install; p=${PACKAGE-default}
6987     case $enableval in
6988     yes) enable_fast_install=yes ;;
6989     no) enable_fast_install=no ;;
6990     *)
6991       enable_fast_install=no
6992       # Look at the argument we got.  We use all the common list separators.
6993       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6994       for pkg in $enableval; do
6995         IFS="$lt_save_ifs"
6996         if test "X$pkg" = "X$p"; then
6997           enable_fast_install=yes
6998         fi
6999       done
7000       IFS="$lt_save_ifs"
7001       ;;
7002     esac
7003 else
7004   enable_fast_install=yes
7005 fi
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 # This can be used to rebuild libtool when needed
7018 LIBTOOL_DEPS="$ltmain"
7019
7020 # Always use our own libtool.
7021 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 test -z "$LN_S" && LN_S="ln -s"
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 if test -n "${ZSH_VERSION+set}" ; then
7063    setopt NO_GLOB_SUBST
7064 fi
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7067 $as_echo_n "checking for objdir... " >&6; }
7068 if test "${lt_cv_objdir+set}" = set; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   rm -f .libs 2>/dev/null
7072 mkdir .libs 2>/dev/null
7073 if test -d .libs; then
7074   lt_cv_objdir=.libs
7075 else
7076   # MS-DOS does not allow filenames that begin with a dot.
7077   lt_cv_objdir=_libs
7078 fi
7079 rmdir .libs 2>/dev/null
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7082 $as_echo "$lt_cv_objdir" >&6; }
7083 objdir=$lt_cv_objdir
7084
7085
7086
7087
7088
7089 cat >>confdefs.h <<_ACEOF
7090 #define LT_OBJDIR "$lt_cv_objdir/"
7091 _ACEOF
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 case $host_os in
7110 aix3*)
7111   # AIX sometimes has problems with the GCC collect2 program.  For some
7112   # reason, if we set the COLLECT_NAMES environment variable, the problems
7113   # vanish in a puff of smoke.
7114   if test "X${COLLECT_NAMES+set}" != Xset; then
7115     COLLECT_NAMES=
7116     export COLLECT_NAMES
7117   fi
7118   ;;
7119 esac
7120
7121 # Sed substitution that helps us do robust quoting.  It backslashifies
7122 # metacharacters that are still active within double-quoted strings.
7123 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7124
7125 # Same as above, but do not quote variable references.
7126 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7127
7128 # Sed substitution to delay expansion of an escaped shell variable in a
7129 # double_quote_subst'ed string.
7130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7131
7132 # Sed substitution to delay expansion of an escaped single quote.
7133 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7134
7135 # Sed substitution to avoid accidental globbing in evaled expressions
7136 no_glob_subst='s/\*/\\\*/g'
7137
7138 # Global variables:
7139 ofile=libtool
7140 can_build_shared=yes
7141
7142 # All known linkers require a `.a' archive for static linking (except MSVC,
7143 # which needs '.lib').
7144 libext=a
7145
7146 with_gnu_ld="$lt_cv_prog_gnu_ld"
7147
7148 old_CC="$CC"
7149 old_CFLAGS="$CFLAGS"
7150
7151 # Set sane defaults for various variables
7152 test -z "$CC" && CC=cc
7153 test -z "$LTCC" && LTCC=$CC
7154 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7155 test -z "$LD" && LD=ld
7156 test -z "$ac_objext" && ac_objext=o
7157
7158 for cc_temp in $compiler""; do
7159   case $cc_temp in
7160     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7161     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7162     \-*) ;;
7163     *) break;;
7164   esac
7165 done
7166 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7167
7168
7169 # Only perform the check for file, if the check method requires it
7170 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7171 case $deplibs_check_method in
7172 file_magic*)
7173   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7175 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7176 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   case $MAGIC_CMD in
7180 [\\/*] |  ?:[\\/]*)
7181   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7182   ;;
7183 *)
7184   lt_save_MAGIC_CMD="$MAGIC_CMD"
7185   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7187   for ac_dir in $ac_dummy; do
7188     IFS="$lt_save_ifs"
7189     test -z "$ac_dir" && ac_dir=.
7190     if test -f $ac_dir/${ac_tool_prefix}file; then
7191       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7192       if test -n "$file_magic_test_file"; then
7193         case $deplibs_check_method in
7194         "file_magic "*)
7195           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7196           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7198             $EGREP "$file_magic_regex" > /dev/null; then
7199             :
7200           else
7201             cat <<_LT_EOF 1>&2
7202
7203 *** Warning: the command libtool uses to detect shared libraries,
7204 *** $file_magic_cmd, produces output that libtool cannot recognize.
7205 *** The result is that libtool may fail to recognize shared libraries
7206 *** as such.  This will affect the creation of libtool libraries that
7207 *** depend on shared libraries, but programs linked with such libtool
7208 *** libraries will work regardless of this problem.  Nevertheless, you
7209 *** may want to report the problem to your system manager and/or to
7210 *** bug-libtool@gnu.org
7211
7212 _LT_EOF
7213           fi ;;
7214         esac
7215       fi
7216       break
7217     fi
7218   done
7219   IFS="$lt_save_ifs"
7220   MAGIC_CMD="$lt_save_MAGIC_CMD"
7221   ;;
7222 esac
7223 fi
7224
7225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226 if test -n "$MAGIC_CMD"; then
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7228 $as_echo "$MAGIC_CMD" >&6; }
7229 else
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234
7235
7236
7237
7238 if test -z "$lt_cv_path_MAGIC_CMD"; then
7239   if test -n "$ac_tool_prefix"; then
7240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7241 $as_echo_n "checking for file... " >&6; }
7242 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   case $MAGIC_CMD in
7246 [\\/*] |  ?:[\\/]*)
7247   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7248   ;;
7249 *)
7250   lt_save_MAGIC_CMD="$MAGIC_CMD"
7251   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7252   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7253   for ac_dir in $ac_dummy; do
7254     IFS="$lt_save_ifs"
7255     test -z "$ac_dir" && ac_dir=.
7256     if test -f $ac_dir/file; then
7257       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7258       if test -n "$file_magic_test_file"; then
7259         case $deplibs_check_method in
7260         "file_magic "*)
7261           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7262           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7263           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7264             $EGREP "$file_magic_regex" > /dev/null; then
7265             :
7266           else
7267             cat <<_LT_EOF 1>&2
7268
7269 *** Warning: the command libtool uses to detect shared libraries,
7270 *** $file_magic_cmd, produces output that libtool cannot recognize.
7271 *** The result is that libtool may fail to recognize shared libraries
7272 *** as such.  This will affect the creation of libtool libraries that
7273 *** depend on shared libraries, but programs linked with such libtool
7274 *** libraries will work regardless of this problem.  Nevertheless, you
7275 *** may want to report the problem to your system manager and/or to
7276 *** bug-libtool@gnu.org
7277
7278 _LT_EOF
7279           fi ;;
7280         esac
7281       fi
7282       break
7283     fi
7284   done
7285   IFS="$lt_save_ifs"
7286   MAGIC_CMD="$lt_save_MAGIC_CMD"
7287   ;;
7288 esac
7289 fi
7290
7291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7292 if test -n "$MAGIC_CMD"; then
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7294 $as_echo "$MAGIC_CMD" >&6; }
7295 else
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 fi
7299
7300
7301   else
7302     MAGIC_CMD=:
7303   fi
7304 fi
7305
7306   fi
7307   ;;
7308 esac
7309
7310 # Use C for the default configuration in the libtool script
7311
7312 lt_save_CC="$CC"
7313 ac_ext=c
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318
7319
7320 # Source file extension for C test sources.
7321 ac_ext=c
7322
7323 # Object file extension for compiled C test sources.
7324 objext=o
7325 objext=$objext
7326
7327 # Code to be used in simple compile tests
7328 lt_simple_compile_test_code="int some_variable = 0;"
7329
7330 # Code to be used in simple link tests
7331 lt_simple_link_test_code='int main(){return(0);}'
7332
7333
7334
7335
7336
7337
7338
7339 # If no C compiler was specified, use CC.
7340 LTCC=${LTCC-"$CC"}
7341
7342 # If no C compiler flags were specified, use CFLAGS.
7343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7344
7345 # Allow CC to be a program name with arguments.
7346 compiler=$CC
7347
7348 # Save the default compiler, since it gets overwritten when the other
7349 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7350 compiler_DEFAULT=$CC
7351
7352 # save warnings/boilerplate of simple test code
7353 ac_outfile=conftest.$ac_objext
7354 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7356 _lt_compiler_boilerplate=`cat conftest.err`
7357 $RM conftest*
7358
7359 ac_outfile=conftest.$ac_objext
7360 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7362 _lt_linker_boilerplate=`cat conftest.err`
7363 $RM -r conftest*
7364
7365
7366 if test -n "$compiler"; then
7367
7368 lt_prog_compiler_no_builtin_flag=
7369
7370 if test "$GCC" = yes; then
7371   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7372
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7374 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   lt_cv_prog_compiler_rtti_exceptions=no
7379    ac_outfile=conftest.$ac_objext
7380    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7381    lt_compiler_flag="-fno-rtti -fno-exceptions"
7382    # Insert the option either (1) after the last *FLAGS variable, or
7383    # (2) before a word containing "conftest.", or (3) at the end.
7384    # Note that $ac_compile itself does not contain backslashes and begins
7385    # with a dollar sign (not a hyphen), so the echo should work correctly.
7386    # The option is referenced via a variable to avoid confusing sed.
7387    lt_compile=`echo "$ac_compile" | $SED \
7388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7390    -e 's:$: $lt_compiler_flag:'`
7391    (eval echo "\"\$as_me:7391: $lt_compile\"" >&5)
7392    (eval "$lt_compile" 2>conftest.err)
7393    ac_status=$?
7394    cat conftest.err >&5
7395    echo "$as_me:7395: \$? = $ac_status" >&5
7396    if (exit $ac_status) && test -s "$ac_outfile"; then
7397      # The compiler can only warn and ignore the option if not recognized
7398      # So say no if there are warnings other than the usual output.
7399      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7402        lt_cv_prog_compiler_rtti_exceptions=yes
7403      fi
7404    fi
7405    $RM conftest*
7406
7407 fi
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7409 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7410
7411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7412     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7413 else
7414     :
7415 fi
7416
7417 fi
7418
7419
7420
7421
7422
7423
7424   lt_prog_compiler_wl=
7425 lt_prog_compiler_pic=
7426 lt_prog_compiler_static=
7427
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7429 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7430
7431   if test "$GCC" = yes; then
7432     lt_prog_compiler_wl='-Wl,'
7433     lt_prog_compiler_static='-static'
7434
7435     case $host_os in
7436       aix*)
7437       # All AIX code is PIC.
7438       if test "$host_cpu" = ia64; then
7439         # AIX 5 now supports IA64 processor
7440         lt_prog_compiler_static='-Bstatic'
7441       fi
7442       ;;
7443
7444     amigaos*)
7445       case $host_cpu in
7446       powerpc)
7447             # see comment about AmigaOS4 .so support
7448             lt_prog_compiler_pic='-fPIC'
7449         ;;
7450       m68k)
7451             # FIXME: we need at least 68020 code to build shared libraries, but
7452             # adding the `-m68020' flag to GCC prevents building anything better,
7453             # like `-m68040'.
7454             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7455         ;;
7456       esac
7457       ;;
7458
7459     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7460       # PIC is the default for these OSes.
7461       ;;
7462
7463     mingw* | cygwin* | pw32* | os2* | cegcc*)
7464       # This hack is so that the source file can tell whether it is being
7465       # built for inclusion in a dll (and should export symbols for example).
7466       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7467       # (--disable-auto-import) libraries
7468       lt_prog_compiler_pic='-DDLL_EXPORT'
7469       ;;
7470
7471     darwin* | rhapsody*)
7472       # PIC is the default on this platform
7473       # Common symbols not allowed in MH_DYLIB files
7474       lt_prog_compiler_pic='-fno-common'
7475       ;;
7476
7477     hpux*)
7478       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7479       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7480       # sets the default TLS model and affects inlining.
7481       case $host_cpu in
7482       hppa*64*)
7483         # +Z the default
7484         ;;
7485       *)
7486         lt_prog_compiler_pic='-fPIC'
7487         ;;
7488       esac
7489       ;;
7490
7491     interix[3-9]*)
7492       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7493       # Instead, we relocate shared libraries at runtime.
7494       ;;
7495
7496     msdosdjgpp*)
7497       # Just because we use GCC doesn't mean we suddenly get shared libraries
7498       # on systems that don't support them.
7499       lt_prog_compiler_can_build_shared=no
7500       enable_shared=no
7501       ;;
7502
7503     *nto* | *qnx*)
7504       # QNX uses GNU C++, but need to define -shared option too, otherwise
7505       # it will coredump.
7506       lt_prog_compiler_pic='-fPIC -shared'
7507       ;;
7508
7509     sysv4*MP*)
7510       if test -d /usr/nec; then
7511         lt_prog_compiler_pic=-Kconform_pic
7512       fi
7513       ;;
7514
7515     *)
7516       lt_prog_compiler_pic='-fPIC'
7517       ;;
7518     esac
7519   else
7520     # PORTME Check for flag to pass linker flags through the system compiler.
7521     case $host_os in
7522     aix*)
7523       lt_prog_compiler_wl='-Wl,'
7524       if test "$host_cpu" = ia64; then
7525         # AIX 5 now supports IA64 processor
7526         lt_prog_compiler_static='-Bstatic'
7527       else
7528         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7529       fi
7530       ;;
7531
7532     mingw* | cygwin* | pw32* | os2* | cegcc*)
7533       # This hack is so that the source file can tell whether it is being
7534       # built for inclusion in a dll (and should export symbols for example).
7535       lt_prog_compiler_pic='-DDLL_EXPORT'
7536       ;;
7537
7538     hpux9* | hpux10* | hpux11*)
7539       lt_prog_compiler_wl='-Wl,'
7540       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7541       # not for PA HP-UX.
7542       case $host_cpu in
7543       hppa*64*|ia64*)
7544         # +Z the default
7545         ;;
7546       *)
7547         lt_prog_compiler_pic='+Z'
7548         ;;
7549       esac
7550       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7551       lt_prog_compiler_static='${wl}-a ${wl}archive'
7552       ;;
7553
7554     irix5* | irix6* | nonstopux*)
7555       lt_prog_compiler_wl='-Wl,'
7556       # PIC (with -KPIC) is the default.
7557       lt_prog_compiler_static='-non_shared'
7558       ;;
7559
7560     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7561       case $cc_basename in
7562       # old Intel for x86_64 which still supported -KPIC.
7563       ecc*)
7564         lt_prog_compiler_wl='-Wl,'
7565         lt_prog_compiler_pic='-KPIC'
7566         lt_prog_compiler_static='-static'
7567         ;;
7568       # icc used to be incompatible with GCC.
7569       # ICC 10 doesn't accept -KPIC any more.
7570       icc* | ifort*)
7571         lt_prog_compiler_wl='-Wl,'
7572         lt_prog_compiler_pic='-fPIC'
7573         lt_prog_compiler_static='-static'
7574         ;;
7575       # Lahey Fortran 8.1.
7576       lf95*)
7577         lt_prog_compiler_wl='-Wl,'
7578         lt_prog_compiler_pic='--shared'
7579         lt_prog_compiler_static='--static'
7580         ;;
7581       pgcc* | pgf77* | pgf90* | pgf95*)
7582         # Portland Group compilers (*not* the Pentium gcc compiler,
7583         # which looks to be a dead project)
7584         lt_prog_compiler_wl='-Wl,'
7585         lt_prog_compiler_pic='-fpic'
7586         lt_prog_compiler_static='-Bstatic'
7587         ;;
7588       ccc*)
7589         lt_prog_compiler_wl='-Wl,'
7590         # All Alpha code is PIC.
7591         lt_prog_compiler_static='-non_shared'
7592         ;;
7593       xl*)
7594         # IBM XL C 8.0/Fortran 10.1 on PPC
7595         lt_prog_compiler_wl='-Wl,'
7596         lt_prog_compiler_pic='-qpic'
7597         lt_prog_compiler_static='-qstaticlink'
7598         ;;
7599       *)
7600         case `$CC -V 2>&1 | sed 5q` in
7601         *Sun\ C*)
7602           # Sun C 5.9
7603           lt_prog_compiler_pic='-KPIC'
7604           lt_prog_compiler_static='-Bstatic'
7605           lt_prog_compiler_wl='-Wl,'
7606           ;;
7607         *Sun\ F*)
7608           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7609           lt_prog_compiler_pic='-KPIC'
7610           lt_prog_compiler_static='-Bstatic'
7611           lt_prog_compiler_wl=''
7612           ;;
7613         esac
7614         ;;
7615       esac
7616       ;;
7617
7618     newsos6)
7619       lt_prog_compiler_pic='-KPIC'
7620       lt_prog_compiler_static='-Bstatic'
7621       ;;
7622
7623     *nto* | *qnx*)
7624       # QNX uses GNU C++, but need to define -shared option too, otherwise
7625       # it will coredump.
7626       lt_prog_compiler_pic='-fPIC -shared'
7627       ;;
7628
7629     osf3* | osf4* | osf5*)
7630       lt_prog_compiler_wl='-Wl,'
7631       # All OSF/1 code is PIC.
7632       lt_prog_compiler_static='-non_shared'
7633       ;;
7634
7635     rdos*)
7636       lt_prog_compiler_static='-non_shared'
7637       ;;
7638
7639     solaris*)
7640       lt_prog_compiler_pic='-KPIC'
7641       lt_prog_compiler_static='-Bstatic'
7642       case $cc_basename in
7643       f77* | f90* | f95*)
7644         lt_prog_compiler_wl='-Qoption ld ';;
7645       *)
7646         lt_prog_compiler_wl='-Wl,';;
7647       esac
7648       ;;
7649
7650     sunos4*)
7651       lt_prog_compiler_wl='-Qoption ld '
7652       lt_prog_compiler_pic='-PIC'
7653       lt_prog_compiler_static='-Bstatic'
7654       ;;
7655
7656     sysv4 | sysv4.2uw2* | sysv4.3*)
7657       lt_prog_compiler_wl='-Wl,'
7658       lt_prog_compiler_pic='-KPIC'
7659       lt_prog_compiler_static='-Bstatic'
7660       ;;
7661
7662     sysv4*MP*)
7663       if test -d /usr/nec ;then
7664         lt_prog_compiler_pic='-Kconform_pic'
7665         lt_prog_compiler_static='-Bstatic'
7666       fi
7667       ;;
7668
7669     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7670       lt_prog_compiler_wl='-Wl,'
7671       lt_prog_compiler_pic='-KPIC'
7672       lt_prog_compiler_static='-Bstatic'
7673       ;;
7674
7675     unicos*)
7676       lt_prog_compiler_wl='-Wl,'
7677       lt_prog_compiler_can_build_shared=no
7678       ;;
7679
7680     uts4*)
7681       lt_prog_compiler_pic='-pic'
7682       lt_prog_compiler_static='-Bstatic'
7683       ;;
7684
7685     *)
7686       lt_prog_compiler_can_build_shared=no
7687       ;;
7688     esac
7689   fi
7690
7691 case $host_os in
7692   # For platforms which do not support PIC, -DPIC is meaningless:
7693   *djgpp*)
7694     lt_prog_compiler_pic=
7695     ;;
7696   *)
7697     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7698     ;;
7699 esac
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7701 $as_echo "$lt_prog_compiler_pic" >&6; }
7702
7703
7704
7705
7706
7707
7708 #
7709 # Check to make sure the PIC flag actually works.
7710 #
7711 if test -n "$lt_prog_compiler_pic"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7713 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7714 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   lt_cv_prog_compiler_pic_works=no
7718    ac_outfile=conftest.$ac_objext
7719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7720    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7721    # Insert the option either (1) after the last *FLAGS variable, or
7722    # (2) before a word containing "conftest.", or (3) at the end.
7723    # Note that $ac_compile itself does not contain backslashes and begins
7724    # with a dollar sign (not a hyphen), so the echo should work correctly.
7725    # The option is referenced via a variable to avoid confusing sed.
7726    lt_compile=`echo "$ac_compile" | $SED \
7727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729    -e 's:$: $lt_compiler_flag:'`
7730    (eval echo "\"\$as_me:7730: $lt_compile\"" >&5)
7731    (eval "$lt_compile" 2>conftest.err)
7732    ac_status=$?
7733    cat conftest.err >&5
7734    echo "$as_me:7734: \$? = $ac_status" >&5
7735    if (exit $ac_status) && test -s "$ac_outfile"; then
7736      # The compiler can only warn and ignore the option if not recognized
7737      # So say no if there are warnings other than the usual output.
7738      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7741        lt_cv_prog_compiler_pic_works=yes
7742      fi
7743    fi
7744    $RM conftest*
7745
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7748 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7749
7750 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7751     case $lt_prog_compiler_pic in
7752      "" | " "*) ;;
7753      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7754      esac
7755 else
7756     lt_prog_compiler_pic=
7757      lt_prog_compiler_can_build_shared=no
7758 fi
7759
7760 fi
7761
7762
7763
7764
7765
7766
7767 #
7768 # Check to make sure the static flag actually works.
7769 #
7770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7772 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7773 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   lt_cv_prog_compiler_static_works=no
7777    save_LDFLAGS="$LDFLAGS"
7778    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7779    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7780    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7781      # The linker can only warn and ignore the option if not recognized
7782      # So say no if there are warnings
7783      if test -s conftest.err; then
7784        # Append any errors to the config.log.
7785        cat conftest.err 1>&5
7786        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7787        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788        if diff conftest.exp conftest.er2 >/dev/null; then
7789          lt_cv_prog_compiler_static_works=yes
7790        fi
7791      else
7792        lt_cv_prog_compiler_static_works=yes
7793      fi
7794    fi
7795    $RM -r conftest*
7796    LDFLAGS="$save_LDFLAGS"
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7800 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7801
7802 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7803     :
7804 else
7805     lt_prog_compiler_static=
7806 fi
7807
7808
7809
7810
7811
7812
7813
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   lt_cv_prog_compiler_c_o=no
7820    $RM -r conftest 2>/dev/null
7821    mkdir conftest
7822    cd conftest
7823    mkdir out
7824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7825
7826    lt_compiler_flag="-o out/conftest2.$ac_objext"
7827    # Insert the option either (1) after the last *FLAGS variable, or
7828    # (2) before a word containing "conftest.", or (3) at the end.
7829    # Note that $ac_compile itself does not contain backslashes and begins
7830    # with a dollar sign (not a hyphen), so the echo should work correctly.
7831    lt_compile=`echo "$ac_compile" | $SED \
7832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834    -e 's:$: $lt_compiler_flag:'`
7835    (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
7836    (eval "$lt_compile" 2>out/conftest.err)
7837    ac_status=$?
7838    cat out/conftest.err >&5
7839    echo "$as_me:7839: \$? = $ac_status" >&5
7840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7841    then
7842      # The compiler can only warn and ignore the option if not recognized
7843      # So say no if there are warnings
7844      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7847        lt_cv_prog_compiler_c_o=yes
7848      fi
7849    fi
7850    chmod u+w . 2>&5
7851    $RM conftest*
7852    # SGI C++ compiler will create directory out/ii_files/ for
7853    # template instantiation
7854    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7855    $RM out/* && rmdir out
7856    cd ..
7857    $RM -r conftest
7858    $RM conftest*
7859
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7862 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7863
7864
7865
7866
7867
7868
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7871 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7872   $as_echo_n "(cached) " >&6
7873 else
7874   lt_cv_prog_compiler_c_o=no
7875    $RM -r conftest 2>/dev/null
7876    mkdir conftest
7877    cd conftest
7878    mkdir out
7879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7880
7881    lt_compiler_flag="-o out/conftest2.$ac_objext"
7882    # Insert the option either (1) after the last *FLAGS variable, or
7883    # (2) before a word containing "conftest.", or (3) at the end.
7884    # Note that $ac_compile itself does not contain backslashes and begins
7885    # with a dollar sign (not a hyphen), so the echo should work correctly.
7886    lt_compile=`echo "$ac_compile" | $SED \
7887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7889    -e 's:$: $lt_compiler_flag:'`
7890    (eval echo "\"\$as_me:7890: $lt_compile\"" >&5)
7891    (eval "$lt_compile" 2>out/conftest.err)
7892    ac_status=$?
7893    cat out/conftest.err >&5
7894    echo "$as_me:7894: \$? = $ac_status" >&5
7895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7896    then
7897      # The compiler can only warn and ignore the option if not recognized
7898      # So say no if there are warnings
7899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7902        lt_cv_prog_compiler_c_o=yes
7903      fi
7904    fi
7905    chmod u+w . 2>&5
7906    $RM conftest*
7907    # SGI C++ compiler will create directory out/ii_files/ for
7908    # template instantiation
7909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7910    $RM out/* && rmdir out
7911    cd ..
7912    $RM -r conftest
7913    $RM conftest*
7914
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7918
7919
7920
7921
7922 hard_links="nottested"
7923 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7924   # do not overwrite the value of need_locks provided by the user
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7926 $as_echo_n "checking if we can lock with hard links... " >&6; }
7927   hard_links=yes
7928   $RM conftest*
7929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7930   touch conftest.a
7931   ln conftest.a conftest.b 2>&5 || hard_links=no
7932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7934 $as_echo "$hard_links" >&6; }
7935   if test "$hard_links" = no; then
7936     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7937 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7938     need_locks=warn
7939   fi
7940 else
7941   need_locks=no
7942 fi
7943
7944
7945
7946
7947
7948
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7950 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7951
7952   runpath_var=
7953   allow_undefined_flag=
7954   always_export_symbols=no
7955   archive_cmds=
7956   archive_expsym_cmds=
7957   compiler_needs_object=no
7958   enable_shared_with_static_runtimes=no
7959   export_dynamic_flag_spec=
7960   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7961   hardcode_automatic=no
7962   hardcode_direct=no
7963   hardcode_direct_absolute=no
7964   hardcode_libdir_flag_spec=
7965   hardcode_libdir_flag_spec_ld=
7966   hardcode_libdir_separator=
7967   hardcode_minus_L=no
7968   hardcode_shlibpath_var=unsupported
7969   inherit_rpath=no
7970   link_all_deplibs=unknown
7971   module_cmds=
7972   module_expsym_cmds=
7973   old_archive_from_new_cmds=
7974   old_archive_from_expsyms_cmds=
7975   thread_safe_flag_spec=
7976   whole_archive_flag_spec=
7977   # include_expsyms should be a list of space-separated symbols to be *always*
7978   # included in the symbol list
7979   include_expsyms=
7980   # exclude_expsyms can be an extended regexp of symbols to exclude
7981   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7982   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7983   # as well as any symbol that contains `d'.
7984   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7985   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7986   # platforms (ab)use it in PIC code, but their linkers get confused if
7987   # the symbol is explicitly referenced.  Since portable code cannot
7988   # rely on this symbol name, it's probably fine to never include it in
7989   # preloaded symbol tables.
7990   # Exclude shared library initialization/finalization symbols.
7991   extract_expsyms_cmds=
7992
7993   case $host_os in
7994   cygwin* | mingw* | pw32* | cegcc*)
7995     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7996     # When not using gcc, we currently assume that we are using
7997     # Microsoft Visual C++.
7998     if test "$GCC" != yes; then
7999       with_gnu_ld=no
8000     fi
8001     ;;
8002   interix*)
8003     # we just hope/assume this is gcc and not c89 (= MSVC++)
8004     with_gnu_ld=yes
8005     ;;
8006   openbsd*)
8007     with_gnu_ld=no
8008     ;;
8009   linux* | k*bsd*-gnu)
8010     link_all_deplibs=no
8011     ;;
8012   esac
8013
8014   ld_shlibs=yes
8015   if test "$with_gnu_ld" = yes; then
8016     # If archive_cmds runs LD, not CC, wlarc should be empty
8017     wlarc='${wl}'
8018
8019     # Set some defaults for GNU ld with shared library support. These
8020     # are reset later if shared libraries are not supported. Putting them
8021     # here allows them to be overridden if necessary.
8022     runpath_var=LD_RUN_PATH
8023     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8024     export_dynamic_flag_spec='${wl}--export-dynamic'
8025     # ancient GNU ld didn't support --whole-archive et. al.
8026     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8027       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8028     else
8029       whole_archive_flag_spec=
8030     fi
8031     supports_anon_versioning=no
8032     case `$LD -v 2>&1` in
8033       *GNU\ gold*) supports_anon_versioning=yes ;;
8034       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8035       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8036       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8037       *\ 2.11.*) ;; # other 2.11 versions
8038       *) supports_anon_versioning=yes ;;
8039     esac
8040
8041     # See if GNU ld supports shared libraries.
8042     case $host_os in
8043     aix[3-9]*)
8044       # On AIX/PPC, the GNU linker is very broken
8045       if test "$host_cpu" != ia64; then
8046         ld_shlibs=no
8047         cat <<_LT_EOF 1>&2
8048
8049 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8050 *** to be unable to reliably create shared libraries on AIX.
8051 *** Therefore, libtool is disabling shared libraries support.  If you
8052 *** really care for shared libraries, you may want to modify your PATH
8053 *** so that a non-GNU linker is found, and then restart.
8054
8055 _LT_EOF
8056       fi
8057       ;;
8058
8059     amigaos*)
8060       case $host_cpu in
8061       powerpc)
8062             # see comment about AmigaOS4 .so support
8063             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8064             archive_expsym_cmds=''
8065         ;;
8066       m68k)
8067             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)'
8068             hardcode_libdir_flag_spec='-L$libdir'
8069             hardcode_minus_L=yes
8070         ;;
8071       esac
8072       ;;
8073
8074     beos*)
8075       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8076         allow_undefined_flag=unsupported
8077         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8078         # support --undefined.  This deserves some investigation.  FIXME
8079         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8080       else
8081         ld_shlibs=no
8082       fi
8083       ;;
8084
8085     cygwin* | mingw* | pw32* | cegcc*)
8086       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8087       # as there is no search path for DLLs.
8088       hardcode_libdir_flag_spec='-L$libdir'
8089       allow_undefined_flag=unsupported
8090       always_export_symbols=no
8091       enable_shared_with_static_runtimes=yes
8092       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8093
8094       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8095         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8096         # If the export-symbols file already is a .def file (1st line
8097         # is EXPORTS), use it as is; otherwise, prepend...
8098         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8099           cp $export_symbols $output_objdir/$soname.def;
8100         else
8101           echo EXPORTS > $output_objdir/$soname.def;
8102           cat $export_symbols >> $output_objdir/$soname.def;
8103         fi~
8104         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8105       else
8106         ld_shlibs=no
8107       fi
8108       ;;
8109
8110     interix[3-9]*)
8111       hardcode_direct=no
8112       hardcode_shlibpath_var=no
8113       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8114       export_dynamic_flag_spec='${wl}-E'
8115       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8116       # Instead, shared libraries are loaded at an image base (0x10000000 by
8117       # default) and relocated if they conflict, which is a slow very memory
8118       # consuming and fragmenting process.  To avoid this, we pick a random,
8119       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8120       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8121       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8122       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'
8123       ;;
8124
8125     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8126       tmp_diet=no
8127       if test "$host_os" = linux-dietlibc; then
8128         case $cc_basename in
8129           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8130         esac
8131       fi
8132       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8133          && test "$tmp_diet" = no
8134       then
8135         tmp_addflag=
8136         tmp_sharedflag='-shared'
8137         case $cc_basename,$host_cpu in
8138         pgcc*)                          # Portland Group C compiler
8139           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8140           tmp_addflag=' $pic_flag'
8141           ;;
8142         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8143           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8144           tmp_addflag=' $pic_flag -Mnomain' ;;
8145         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8146           tmp_addflag=' -i_dynamic' ;;
8147         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8148           tmp_addflag=' -i_dynamic -nofor_main' ;;
8149         ifc* | ifort*)                  # Intel Fortran compiler
8150           tmp_addflag=' -nofor_main' ;;
8151         lf95*)                          # Lahey Fortran 8.1
8152           whole_archive_flag_spec=
8153           tmp_sharedflag='--shared' ;;
8154         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8155           tmp_sharedflag='-qmkshrobj'
8156           tmp_addflag= ;;
8157         esac
8158         case `$CC -V 2>&1 | sed 5q` in
8159         *Sun\ C*)                       # Sun C 5.9
8160           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8161           compiler_needs_object=yes
8162           tmp_sharedflag='-G' ;;
8163         *Sun\ F*)                       # Sun Fortran 8.3
8164           tmp_sharedflag='-G' ;;
8165         esac
8166         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167
8168         if test "x$supports_anon_versioning" = xyes; then
8169           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8170             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8171             echo "local: *; };" >> $output_objdir/$libname.ver~
8172             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8173         fi
8174
8175         case $cc_basename in
8176         xlf*)
8177           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8178           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8179           hardcode_libdir_flag_spec=
8180           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8181           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8182           if test "x$supports_anon_versioning" = xyes; then
8183             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8184               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8185               echo "local: *; };" >> $output_objdir/$libname.ver~
8186               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8187           fi
8188           ;;
8189         esac
8190       else
8191         ld_shlibs=no
8192       fi
8193       ;;
8194
8195     netbsd* | netbsdelf*-gnu)
8196       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8197         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8198         wlarc=
8199       else
8200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202       fi
8203       ;;
8204
8205     solaris*)
8206       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8207         ld_shlibs=no
8208         cat <<_LT_EOF 1>&2
8209
8210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8211 *** create shared libraries on Solaris systems.  Therefore, libtool
8212 *** is disabling shared libraries support.  We urge you to upgrade GNU
8213 *** binutils to release 2.9.1 or newer.  Another option is to modify
8214 *** your PATH or compiler configuration so that the native linker is
8215 *** used, and then restart.
8216
8217 _LT_EOF
8218       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221       else
8222         ld_shlibs=no
8223       fi
8224       ;;
8225
8226     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8227       case `$LD -v 2>&1` in
8228         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8229         ld_shlibs=no
8230         cat <<_LT_EOF 1>&2
8231
8232 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8233 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8234 *** is disabling shared libraries support.  We urge you to upgrade GNU
8235 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8236 *** your PATH or compiler configuration so that the native linker is
8237 *** used, and then restart.
8238
8239 _LT_EOF
8240         ;;
8241         *)
8242           # For security reasons, it is highly recommended that you always
8243           # use absolute paths for naming shared libraries, and exclude the
8244           # DT_RUNPATH tag from executables and libraries.  But doing so
8245           # requires that you compile everything twice, which is a pain.
8246           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8247             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250           else
8251             ld_shlibs=no
8252           fi
8253         ;;
8254       esac
8255       ;;
8256
8257     sunos4*)
8258       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8259       wlarc=
8260       hardcode_direct=yes
8261       hardcode_shlibpath_var=no
8262       ;;
8263
8264     *)
8265       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268       else
8269         ld_shlibs=no
8270       fi
8271       ;;
8272     esac
8273
8274     if test "$ld_shlibs" = no; then
8275       runpath_var=
8276       hardcode_libdir_flag_spec=
8277       export_dynamic_flag_spec=
8278       whole_archive_flag_spec=
8279     fi
8280   else
8281     # PORTME fill in a description of your system's linker (not GNU ld)
8282     case $host_os in
8283     aix3*)
8284       allow_undefined_flag=unsupported
8285       always_export_symbols=yes
8286       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'
8287       # Note: this linker hardcodes the directories in LIBPATH if there
8288       # are no directories specified by -L.
8289       hardcode_minus_L=yes
8290       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8291         # Neither direct hardcoding nor static linking is supported with a
8292         # broken collect2.
8293         hardcode_direct=unsupported
8294       fi
8295       ;;
8296
8297     aix[4-9]*)
8298       if test "$host_cpu" = ia64; then
8299         # On IA64, the linker does run time linking by default, so we don't
8300         # have to do anything special.
8301         aix_use_runtimelinking=no
8302         exp_sym_flag='-Bexport'
8303         no_entry_flag=""
8304       else
8305         # If we're using GNU nm, then we don't want the "-C" option.
8306         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8307         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8308           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8309         else
8310           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8311         fi
8312         aix_use_runtimelinking=no
8313
8314         # Test if we are trying to use run time linking or normal
8315         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8316         # need to do runtime linking.
8317         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8318           for ld_flag in $LDFLAGS; do
8319           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8320             aix_use_runtimelinking=yes
8321             break
8322           fi
8323           done
8324           ;;
8325         esac
8326
8327         exp_sym_flag='-bexport'
8328         no_entry_flag='-bnoentry'
8329       fi
8330
8331       # When large executables or shared objects are built, AIX ld can
8332       # have problems creating the table of contents.  If linking a library
8333       # or program results in "error TOC overflow" add -mminimal-toc to
8334       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8335       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8336
8337       archive_cmds=''
8338       hardcode_direct=yes
8339       hardcode_direct_absolute=yes
8340       hardcode_libdir_separator=':'
8341       link_all_deplibs=yes
8342       file_list_spec='${wl}-f,'
8343
8344       if test "$GCC" = yes; then
8345         case $host_os in aix4.[012]|aix4.[012].*)
8346         # We only want to do this on AIX 4.2 and lower, the check
8347         # below for broken collect2 doesn't work under 4.3+
8348           collect2name=`${CC} -print-prog-name=collect2`
8349           if test -f "$collect2name" &&
8350            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8351           then
8352           # We have reworked collect2
8353           :
8354           else
8355           # We have old collect2
8356           hardcode_direct=unsupported
8357           # It fails to find uninstalled libraries when the uninstalled
8358           # path is not listed in the libpath.  Setting hardcode_minus_L
8359           # to unsupported forces relinking
8360           hardcode_minus_L=yes
8361           hardcode_libdir_flag_spec='-L$libdir'
8362           hardcode_libdir_separator=
8363           fi
8364           ;;
8365         esac
8366         shared_flag='-shared'
8367         if test "$aix_use_runtimelinking" = yes; then
8368           shared_flag="$shared_flag "'${wl}-G'
8369         fi
8370         link_all_deplibs=no
8371       else
8372         # not using gcc
8373         if test "$host_cpu" = ia64; then
8374         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8375         # chokes on -Wl,-G. The following line is correct:
8376           shared_flag='-G'
8377         else
8378           if test "$aix_use_runtimelinking" = yes; then
8379             shared_flag='${wl}-G'
8380           else
8381             shared_flag='${wl}-bM:SRE'
8382           fi
8383         fi
8384       fi
8385
8386       export_dynamic_flag_spec='${wl}-bexpall'
8387       # It seems that -bexpall does not export symbols beginning with
8388       # underscore (_), so it is better to generate a list of symbols to export.
8389       always_export_symbols=yes
8390       if test "$aix_use_runtimelinking" = yes; then
8391         # Warning - without using the other runtime loading flags (-brtl),
8392         # -berok will link without error, but may produce a broken library.
8393         allow_undefined_flag='-berok'
8394         # Determine the default libpath from the value encoded in an
8395         # empty executable.
8396         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h.  */
8398
8399 int
8400 main ()
8401 {
8402
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 if ac_fn_c_try_link "$LINENO"; then :
8408
8409 lt_aix_libpath_sed='
8410     /Import File Strings/,/^$/ {
8411         /^0/ {
8412             s/^0  *\(.*\)$/\1/
8413             p
8414         }
8415     }'
8416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8417 # Check for a 64-bit object if we didn't find anything.
8418 if test -z "$aix_libpath"; then
8419   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8420 fi
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext \
8423     conftest$ac_exeext conftest.$ac_ext
8424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8425
8426         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8427         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8428       else
8429         if test "$host_cpu" = ia64; then
8430           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8431           allow_undefined_flag="-z nodefs"
8432           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"
8433         else
8434          # Determine the default libpath from the value encoded in an
8435          # empty executable.
8436          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h.  */
8438
8439 int
8440 main ()
8441 {
8442
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448
8449 lt_aix_libpath_sed='
8450     /Import File Strings/,/^$/ {
8451         /^0/ {
8452             s/^0  *\(.*\)$/\1/
8453             p
8454         }
8455     }'
8456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8457 # Check for a 64-bit object if we didn't find anything.
8458 if test -z "$aix_libpath"; then
8459   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8460 fi
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext \
8463     conftest$ac_exeext conftest.$ac_ext
8464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8465
8466          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8467           # Warning - without using the other run time loading flags,
8468           # -berok will link without error, but may produce a broken library.
8469           no_undefined_flag=' ${wl}-bernotok'
8470           allow_undefined_flag=' ${wl}-berok'
8471           # Exported symbols can be pulled into shared objects from archives
8472           whole_archive_flag_spec='$convenience'
8473           archive_cmds_need_lc=yes
8474           # This is similar to how AIX traditionally builds its shared libraries.
8475           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8476         fi
8477       fi
8478       ;;
8479
8480     amigaos*)
8481       case $host_cpu in
8482       powerpc)
8483             # see comment about AmigaOS4 .so support
8484             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485             archive_expsym_cmds=''
8486         ;;
8487       m68k)
8488             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)'
8489             hardcode_libdir_flag_spec='-L$libdir'
8490             hardcode_minus_L=yes
8491         ;;
8492       esac
8493       ;;
8494
8495     bsdi[45]*)
8496       export_dynamic_flag_spec=-rdynamic
8497       ;;
8498
8499     cygwin* | mingw* | pw32* | cegcc*)
8500       # When not using gcc, we currently assume that we are using
8501       # Microsoft Visual C++.
8502       # hardcode_libdir_flag_spec is actually meaningless, as there is
8503       # no search path for DLLs.
8504       hardcode_libdir_flag_spec=' '
8505       allow_undefined_flag=unsupported
8506       # Tell ltmain to make .lib files, not .a files.
8507       libext=lib
8508       # Tell ltmain to make .dll files, not .so files.
8509       shrext_cmds=".dll"
8510       # FIXME: Setting linknames here is a bad hack.
8511       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8512       # The linker will automatically build a .lib file if we build a DLL.
8513       old_archive_from_new_cmds='true'
8514       # FIXME: Should let the user specify the lib program.
8515       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8516       fix_srcfile_path='`cygpath -w "$srcfile"`'
8517       enable_shared_with_static_runtimes=yes
8518       ;;
8519
8520     darwin* | rhapsody*)
8521
8522
8523   archive_cmds_need_lc=no
8524   hardcode_direct=no
8525   hardcode_automatic=yes
8526   hardcode_shlibpath_var=unsupported
8527   whole_archive_flag_spec=''
8528   link_all_deplibs=yes
8529   allow_undefined_flag="$_lt_dar_allow_undefined"
8530   case $cc_basename in
8531      ifort*) _lt_dar_can_shared=yes ;;
8532      *) _lt_dar_can_shared=$GCC ;;
8533   esac
8534   if test "$_lt_dar_can_shared" = "yes"; then
8535     output_verbose_link_cmd=echo
8536     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8537     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8538     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}"
8539     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}"
8540
8541   else
8542   ld_shlibs=no
8543   fi
8544
8545       ;;
8546
8547     dgux*)
8548       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549       hardcode_libdir_flag_spec='-L$libdir'
8550       hardcode_shlibpath_var=no
8551       ;;
8552
8553     freebsd1*)
8554       ld_shlibs=no
8555       ;;
8556
8557     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8558     # support.  Future versions do this automatically, but an explicit c++rt0.o
8559     # does not break anything, and helps significantly (at the cost of a little
8560     # extra space).
8561     freebsd2.2*)
8562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8563       hardcode_libdir_flag_spec='-R$libdir'
8564       hardcode_direct=yes
8565       hardcode_shlibpath_var=no
8566       ;;
8567
8568     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8569     freebsd2*)
8570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571       hardcode_direct=yes
8572       hardcode_minus_L=yes
8573       hardcode_shlibpath_var=no
8574       ;;
8575
8576     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8577     freebsd* | dragonfly*)
8578       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8579       hardcode_libdir_flag_spec='-R$libdir'
8580       hardcode_direct=yes
8581       hardcode_shlibpath_var=no
8582       ;;
8583
8584     hpux9*)
8585       if test "$GCC" = yes; then
8586         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8587       else
8588         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8589       fi
8590       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8591       hardcode_libdir_separator=:
8592       hardcode_direct=yes
8593
8594       # hardcode_minus_L: Not really in the search PATH,
8595       # but as the default location of the library.
8596       hardcode_minus_L=yes
8597       export_dynamic_flag_spec='${wl}-E'
8598       ;;
8599
8600     hpux10*)
8601       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8602         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603       else
8604         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8605       fi
8606       if test "$with_gnu_ld" = no; then
8607         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608         hardcode_libdir_flag_spec_ld='+b $libdir'
8609         hardcode_libdir_separator=:
8610         hardcode_direct=yes
8611         hardcode_direct_absolute=yes
8612         export_dynamic_flag_spec='${wl}-E'
8613         # hardcode_minus_L: Not really in the search PATH,
8614         # but as the default location of the library.
8615         hardcode_minus_L=yes
8616       fi
8617       ;;
8618
8619     hpux11*)
8620       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8621         case $host_cpu in
8622         hppa*64*)
8623           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8624           ;;
8625         ia64*)
8626           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8627           ;;
8628         *)
8629           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8630           ;;
8631         esac
8632       else
8633         case $host_cpu in
8634         hppa*64*)
8635           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8636           ;;
8637         ia64*)
8638           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8639           ;;
8640         *)
8641           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8642           ;;
8643         esac
8644       fi
8645       if test "$with_gnu_ld" = no; then
8646         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647         hardcode_libdir_separator=:
8648
8649         case $host_cpu in
8650         hppa*64*|ia64*)
8651           hardcode_direct=no
8652           hardcode_shlibpath_var=no
8653           ;;
8654         *)
8655           hardcode_direct=yes
8656           hardcode_direct_absolute=yes
8657           export_dynamic_flag_spec='${wl}-E'
8658
8659           # hardcode_minus_L: Not really in the search PATH,
8660           # but as the default location of the library.
8661           hardcode_minus_L=yes
8662           ;;
8663         esac
8664       fi
8665       ;;
8666
8667     irix5* | irix6* | nonstopux*)
8668       if test "$GCC" = yes; then
8669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8670         # Try to use the -exported_symbol ld option, if it does not
8671         # work, assume that -exports_file does not work either and
8672         # implicitly export all symbols.
8673         save_LDFLAGS="$LDFLAGS"
8674         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8675         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h.  */
8677 int foo(void) {}
8678 _ACEOF
8679 if ac_fn_c_try_link "$LINENO"; then :
8680   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8681
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext \
8684     conftest$ac_exeext conftest.$ac_ext
8685         LDFLAGS="$save_LDFLAGS"
8686       else
8687         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8688         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8689       fi
8690       archive_cmds_need_lc='no'
8691       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692       hardcode_libdir_separator=:
8693       inherit_rpath=yes
8694       link_all_deplibs=yes
8695       ;;
8696
8697     netbsd* | netbsdelf*-gnu)
8698       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8700       else
8701         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8702       fi
8703       hardcode_libdir_flag_spec='-R$libdir'
8704       hardcode_direct=yes
8705       hardcode_shlibpath_var=no
8706       ;;
8707
8708     newsos6)
8709       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710       hardcode_direct=yes
8711       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712       hardcode_libdir_separator=:
8713       hardcode_shlibpath_var=no
8714       ;;
8715
8716     *nto* | *qnx*)
8717       ;;
8718
8719     openbsd*)
8720       if test -f /usr/libexec/ld.so; then
8721         hardcode_direct=yes
8722         hardcode_shlibpath_var=no
8723         hardcode_direct_absolute=yes
8724         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8725           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8726           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8727           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728           export_dynamic_flag_spec='${wl}-E'
8729         else
8730           case $host_os in
8731            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8732              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8733              hardcode_libdir_flag_spec='-R$libdir'
8734              ;;
8735            *)
8736              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8737              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8738              ;;
8739           esac
8740         fi
8741       else
8742         ld_shlibs=no
8743       fi
8744       ;;
8745
8746     os2*)
8747       hardcode_libdir_flag_spec='-L$libdir'
8748       hardcode_minus_L=yes
8749       allow_undefined_flag=unsupported
8750       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8751       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8752       ;;
8753
8754     osf3*)
8755       if test "$GCC" = yes; then
8756         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8757         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8758       else
8759         allow_undefined_flag=' -expect_unresolved \*'
8760         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8761       fi
8762       archive_cmds_need_lc='no'
8763       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764       hardcode_libdir_separator=:
8765       ;;
8766
8767     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8768       if test "$GCC" = yes; then
8769         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8770         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8771         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8772       else
8773         allow_undefined_flag=' -expect_unresolved \*'
8774         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8775         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~
8776         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8777
8778         # Both c and cxx compiler support -rpath directly
8779         hardcode_libdir_flag_spec='-rpath $libdir'
8780       fi
8781       archive_cmds_need_lc='no'
8782       hardcode_libdir_separator=:
8783       ;;
8784
8785     solaris*)
8786       no_undefined_flag=' -z defs'
8787       if test "$GCC" = yes; then
8788         wlarc='${wl}'
8789         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8790         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8791           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8792       else
8793         case `$CC -V 2>&1` in
8794         *"Compilers 5.0"*)
8795           wlarc=''
8796           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8798           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8799           ;;
8800         *)
8801           wlarc='${wl}'
8802           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8803           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8804           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8805           ;;
8806         esac
8807       fi
8808       hardcode_libdir_flag_spec='-R$libdir'
8809       hardcode_shlibpath_var=no
8810       case $host_os in
8811       solaris2.[0-5] | solaris2.[0-5].*) ;;
8812       *)
8813         # The compiler driver will combine and reorder linker options,
8814         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8815         # but is careful enough not to reorder.
8816         # Supported since Solaris 2.6 (maybe 2.5.1?)
8817         if test "$GCC" = yes; then
8818           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8819         else
8820           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8821         fi
8822         ;;
8823       esac
8824       link_all_deplibs=yes
8825       ;;
8826
8827     sunos4*)
8828       if test "x$host_vendor" = xsequent; then
8829         # Use $CC to link under sequent, because it throws in some extra .o
8830         # files that make .init and .fini sections work.
8831         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8832       else
8833         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8834       fi
8835       hardcode_libdir_flag_spec='-L$libdir'
8836       hardcode_direct=yes
8837       hardcode_minus_L=yes
8838       hardcode_shlibpath_var=no
8839       ;;
8840
8841     sysv4)
8842       case $host_vendor in
8843         sni)
8844           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845           hardcode_direct=yes # is this really true???
8846         ;;
8847         siemens)
8848           ## LD is ld it makes a PLAMLIB
8849           ## CC just makes a GrossModule.
8850           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8851           reload_cmds='$CC -r -o $output$reload_objs'
8852           hardcode_direct=no
8853         ;;
8854         motorola)
8855           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8857         ;;
8858       esac
8859       runpath_var='LD_RUN_PATH'
8860       hardcode_shlibpath_var=no
8861       ;;
8862
8863     sysv4.3*)
8864       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865       hardcode_shlibpath_var=no
8866       export_dynamic_flag_spec='-Bexport'
8867       ;;
8868
8869     sysv4*MP*)
8870       if test -d /usr/nec; then
8871         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8872         hardcode_shlibpath_var=no
8873         runpath_var=LD_RUN_PATH
8874         hardcode_runpath_var=yes
8875         ld_shlibs=yes
8876       fi
8877       ;;
8878
8879     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8880       no_undefined_flag='${wl}-z,text'
8881       archive_cmds_need_lc=no
8882       hardcode_shlibpath_var=no
8883       runpath_var='LD_RUN_PATH'
8884
8885       if test "$GCC" = yes; then
8886         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8887         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8888       else
8889         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8890         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8891       fi
8892       ;;
8893
8894     sysv5* | sco3.2v5* | sco5v6*)
8895       # Note: We can NOT use -z defs as we might desire, because we do not
8896       # link with -lc, and that would cause any symbols used from libc to
8897       # always be unresolved, which means just about no library would
8898       # ever link correctly.  If we're not using GNU ld we use -z text
8899       # though, which does catch some bad symbols but isn't as heavy-handed
8900       # as -z defs.
8901       no_undefined_flag='${wl}-z,text'
8902       allow_undefined_flag='${wl}-z,nodefs'
8903       archive_cmds_need_lc=no
8904       hardcode_shlibpath_var=no
8905       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8906       hardcode_libdir_separator=':'
8907       link_all_deplibs=yes
8908       export_dynamic_flag_spec='${wl}-Bexport'
8909       runpath_var='LD_RUN_PATH'
8910
8911       if test "$GCC" = yes; then
8912         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8913         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8914       else
8915         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8916         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8917       fi
8918       ;;
8919
8920     uts4*)
8921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       hardcode_libdir_flag_spec='-L$libdir'
8923       hardcode_shlibpath_var=no
8924       ;;
8925
8926     *)
8927       ld_shlibs=no
8928       ;;
8929     esac
8930
8931     if test x$host_vendor = xsni; then
8932       case $host in
8933       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8934         export_dynamic_flag_spec='${wl}-Blargedynsym'
8935         ;;
8936       esac
8937     fi
8938   fi
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8941 $as_echo "$ld_shlibs" >&6; }
8942 test "$ld_shlibs" = no && can_build_shared=no
8943
8944 with_gnu_ld=$with_gnu_ld
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960 #
8961 # Do we need to explicitly link libc?
8962 #
8963 case "x$archive_cmds_need_lc" in
8964 x|xyes)
8965   # Assume -lc should be added
8966   archive_cmds_need_lc=yes
8967
8968   if test "$enable_shared" = yes && test "$GCC" = yes; then
8969     case $archive_cmds in
8970     *'~'*)
8971       # FIXME: we may have to deal with multi-command sequences.
8972       ;;
8973     '$CC '*)
8974       # Test whether the compiler implicitly links with -lc since on some
8975       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8976       # to ld, don't add -lc before -lgcc.
8977       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8978 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8979       $RM conftest*
8980       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981
8982       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8983   (eval $ac_compile) 2>&5
8984   ac_status=$?
8985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8986   test $ac_status = 0; } 2>conftest.err; then
8987         soname=conftest
8988         lib=conftest
8989         libobjs=conftest.$ac_objext
8990         deplibs=
8991         wl=$lt_prog_compiler_wl
8992         pic_flag=$lt_prog_compiler_pic
8993         compiler_flags=-v
8994         linker_flags=-v
8995         verstring=
8996         output_objdir=.
8997         libname=conftest
8998         lt_save_allow_undefined_flag=$allow_undefined_flag
8999         allow_undefined_flag=
9000         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9001   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9002   ac_status=$?
9003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9004   test $ac_status = 0; }
9005         then
9006           archive_cmds_need_lc=no
9007         else
9008           archive_cmds_need_lc=yes
9009         fi
9010         allow_undefined_flag=$lt_save_allow_undefined_flag
9011       else
9012         cat conftest.err 1>&5
9013       fi
9014       $RM conftest*
9015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9016 $as_echo "$archive_cmds_need_lc" >&6; }
9017       ;;
9018     esac
9019   fi
9020   ;;
9021 esac
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9180 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9181
9182 if test "$GCC" = yes; then
9183   case $host_os in
9184     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9185     *) lt_awk_arg="/^libraries:/" ;;
9186   esac
9187   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9188   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9189     # if the path contains ";" then we assume it to be the separator
9190     # otherwise default to the standard path separator (i.e. ":") - it is
9191     # assumed that no part of a normal pathname contains ";" but that should
9192     # okay in the real world where ";" in dirpaths is itself problematic.
9193     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9194   else
9195     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9196   fi
9197   # Ok, now we have the path, separated by spaces, we can step through it
9198   # and add multilib dir if necessary.
9199   lt_tmp_lt_search_path_spec=
9200   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9201   for lt_sys_path in $lt_search_path_spec; do
9202     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9203       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9204     else
9205       test -d "$lt_sys_path" && \
9206         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9207     fi
9208   done
9209   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9210 BEGIN {RS=" "; FS="/|\n";} {
9211   lt_foo="";
9212   lt_count=0;
9213   for (lt_i = NF; lt_i > 0; lt_i--) {
9214     if ($lt_i != "" && $lt_i != ".") {
9215       if ($lt_i == "..") {
9216         lt_count++;
9217       } else {
9218         if (lt_count == 0) {
9219           lt_foo="/" $lt_i lt_foo;
9220         } else {
9221           lt_count--;
9222         }
9223       }
9224     }
9225   }
9226   if (lt_foo != "") { lt_freq[lt_foo]++; }
9227   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9228 }'`
9229   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9230 else
9231   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9232 fi
9233 library_names_spec=
9234 libname_spec='lib$name'
9235 soname_spec=
9236 shrext_cmds=".so"
9237 postinstall_cmds=
9238 postuninstall_cmds=
9239 finish_cmds=
9240 finish_eval=
9241 shlibpath_var=
9242 shlibpath_overrides_runpath=unknown
9243 version_type=none
9244 dynamic_linker="$host_os ld.so"
9245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9246 need_lib_prefix=unknown
9247 hardcode_into_libs=no
9248
9249 # when you set need_version to no, make sure it does not cause -set_version
9250 # flags to be left without arguments
9251 need_version=unknown
9252
9253 case $host_os in
9254 aix3*)
9255   version_type=linux
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257   shlibpath_var=LIBPATH
9258
9259   # AIX 3 has no versioning support, so we append a major version to the name.
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   ;;
9262
9263 aix[4-9]*)
9264   version_type=linux
9265   need_lib_prefix=no
9266   need_version=no
9267   hardcode_into_libs=yes
9268   if test "$host_cpu" = ia64; then
9269     # AIX 5 supports IA64
9270     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271     shlibpath_var=LD_LIBRARY_PATH
9272   else
9273     # With GCC up to 2.95.x, collect2 would create an import file
9274     # for dependence libraries.  The import file would start with
9275     # the line `#! .'.  This would cause the generated library to
9276     # depend on `.', always an invalid library.  This was fixed in
9277     # development snapshots of GCC prior to 3.0.
9278     case $host_os in
9279       aix4 | aix4.[01] | aix4.[01].*)
9280       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9281            echo ' yes '
9282            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9283         :
9284       else
9285         can_build_shared=no
9286       fi
9287       ;;
9288     esac
9289     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290     # soname into executable. Probably we can add versioning support to
9291     # collect2, so additional links can be useful in future.
9292     if test "$aix_use_runtimelinking" = yes; then
9293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294       # instead of lib<name>.a to let people know that these are not
9295       # typical AIX shared libraries.
9296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297     else
9298       # We preserve .a as extension for shared libraries through AIX4.2
9299       # and later when we are not doing run time linking.
9300       library_names_spec='${libname}${release}.a $libname.a'
9301       soname_spec='${libname}${release}${shared_ext}$major'
9302     fi
9303     shlibpath_var=LIBPATH
9304   fi
9305   ;;
9306
9307 amigaos*)
9308   case $host_cpu in
9309   powerpc)
9310     # Since July 2007 AmigaOS4 officially supports .so libraries.
9311     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313     ;;
9314   m68k)
9315     library_names_spec='$libname.ixlibrary $libname.a'
9316     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9317     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9318     ;;
9319   esac
9320   ;;
9321
9322 beos*)
9323   library_names_spec='${libname}${shared_ext}'
9324   dynamic_linker="$host_os ld.so"
9325   shlibpath_var=LIBRARY_PATH
9326   ;;
9327
9328 bsdi[45]*)
9329   version_type=linux
9330   need_version=no
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332   soname_spec='${libname}${release}${shared_ext}$major'
9333   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9334   shlibpath_var=LD_LIBRARY_PATH
9335   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9336   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9337   # the default ld.so.conf also contains /usr/contrib/lib and
9338   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9339   # libtool to hard-code these into programs
9340   ;;
9341
9342 cygwin* | mingw* | pw32* | cegcc*)
9343   version_type=windows
9344   shrext_cmds=".dll"
9345   need_version=no
9346   need_lib_prefix=no
9347
9348   case $GCC,$host_os in
9349   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9350     library_names_spec='$libname.dll.a'
9351     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9352     postinstall_cmds='base_file=`basename \${file}`~
9353       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9354       dldir=$destdir/`dirname \$dlpath`~
9355       test -d \$dldir || mkdir -p \$dldir~
9356       $install_prog $dir/$dlname \$dldir/$dlname~
9357       chmod a+x \$dldir/$dlname~
9358       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9359         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9360       fi'
9361     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9362       dlpath=$dir/\$dldll~
9363        $RM \$dlpath'
9364     shlibpath_overrides_runpath=yes
9365
9366     case $host_os in
9367     cygwin*)
9368       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9369       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9370       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9371       ;;
9372     mingw* | cegcc*)
9373       # MinGW DLLs use traditional 'lib' prefix
9374       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9376       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9377         # It is most probably a Windows format PATH printed by
9378         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9379         # path with ; separators, and with drive letters. We can handle the
9380         # drive letters (cygwin fileutils understands them), so leave them,
9381         # especially as we might pass files found there to a mingw objdump,
9382         # which wouldn't understand a cygwinified path. Ahh.
9383         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9384       else
9385         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9386       fi
9387       ;;
9388     pw32*)
9389       # pw32 DLLs use 'pw' prefix rather than 'lib'
9390       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9391       ;;
9392     esac
9393     ;;
9394
9395   *)
9396     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9397     ;;
9398   esac
9399   dynamic_linker='Win32 ld.exe'
9400   # FIXME: first we should search . and the directory the executable is in
9401   shlibpath_var=PATH
9402   ;;
9403
9404 darwin* | rhapsody*)
9405   dynamic_linker="$host_os dyld"
9406   version_type=darwin
9407   need_lib_prefix=no
9408   need_version=no
9409   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9410   soname_spec='${libname}${release}${major}$shared_ext'
9411   shlibpath_overrides_runpath=yes
9412   shlibpath_var=DYLD_LIBRARY_PATH
9413   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9414
9415   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9416   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9417   ;;
9418
9419 dgux*)
9420   version_type=linux
9421   need_lib_prefix=no
9422   need_version=no
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9424   soname_spec='${libname}${release}${shared_ext}$major'
9425   shlibpath_var=LD_LIBRARY_PATH
9426   ;;
9427
9428 freebsd1*)
9429   dynamic_linker=no
9430   ;;
9431
9432 freebsd* | dragonfly*)
9433   # DragonFly does not have aout.  When/if they implement a new
9434   # versioning mechanism, adjust this.
9435   if test -x /usr/bin/objformat; then
9436     objformat=`/usr/bin/objformat`
9437   else
9438     case $host_os in
9439     freebsd[123]*) objformat=aout ;;
9440     *) objformat=elf ;;
9441     esac
9442   fi
9443   version_type=freebsd-$objformat
9444   case $version_type in
9445     freebsd-elf*)
9446       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9447       need_version=no
9448       need_lib_prefix=no
9449       ;;
9450     freebsd-*)
9451       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9452       need_version=yes
9453       ;;
9454   esac
9455   shlibpath_var=LD_LIBRARY_PATH
9456   case $host_os in
9457   freebsd2*)
9458     shlibpath_overrides_runpath=yes
9459     ;;
9460   freebsd3.[01]* | freebsdelf3.[01]*)
9461     shlibpath_overrides_runpath=yes
9462     hardcode_into_libs=yes
9463     ;;
9464   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9465   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9466     shlibpath_overrides_runpath=no
9467     hardcode_into_libs=yes
9468     ;;
9469   *) # from 4.6 on, and DragonFly
9470     shlibpath_overrides_runpath=yes
9471     hardcode_into_libs=yes
9472     ;;
9473   esac
9474   ;;
9475
9476 gnu*)
9477   version_type=linux
9478   need_lib_prefix=no
9479   need_version=no
9480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9481   soname_spec='${libname}${release}${shared_ext}$major'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   hardcode_into_libs=yes
9484   ;;
9485
9486 hpux9* | hpux10* | hpux11*)
9487   # Give a soname corresponding to the major version so that dld.sl refuses to
9488   # link against other versions.
9489   version_type=sunos
9490   need_lib_prefix=no
9491   need_version=no
9492   case $host_cpu in
9493   ia64*)
9494     shrext_cmds='.so'
9495     hardcode_into_libs=yes
9496     dynamic_linker="$host_os dld.so"
9497     shlibpath_var=LD_LIBRARY_PATH
9498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500     soname_spec='${libname}${release}${shared_ext}$major'
9501     if test "X$HPUX_IA64_MODE" = X32; then
9502       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9503     else
9504       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9505     fi
9506     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9507     ;;
9508   hppa*64*)
9509     shrext_cmds='.sl'
9510     hardcode_into_libs=yes
9511     dynamic_linker="$host_os dld.sl"
9512     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515     soname_spec='${libname}${release}${shared_ext}$major'
9516     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9518     ;;
9519   *)
9520     shrext_cmds='.sl'
9521     dynamic_linker="$host_os dld.sl"
9522     shlibpath_var=SHLIB_PATH
9523     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525     soname_spec='${libname}${release}${shared_ext}$major'
9526     ;;
9527   esac
9528   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9529   postinstall_cmds='chmod 555 $lib'
9530   ;;
9531
9532 interix[3-9]*)
9533   version_type=linux
9534   need_lib_prefix=no
9535   need_version=no
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9537   soname_spec='${libname}${release}${shared_ext}$major'
9538   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9539   shlibpath_var=LD_LIBRARY_PATH
9540   shlibpath_overrides_runpath=no
9541   hardcode_into_libs=yes
9542   ;;
9543
9544 irix5* | irix6* | nonstopux*)
9545   case $host_os in
9546     nonstopux*) version_type=nonstopux ;;
9547     *)
9548         if test "$lt_cv_prog_gnu_ld" = yes; then
9549                 version_type=linux
9550         else
9551                 version_type=irix
9552         fi ;;
9553   esac
9554   need_lib_prefix=no
9555   need_version=no
9556   soname_spec='${libname}${release}${shared_ext}$major'
9557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9558   case $host_os in
9559   irix5* | nonstopux*)
9560     libsuff= shlibsuff=
9561     ;;
9562   *)
9563     case $LD in # libtool.m4 will add one of these switches to LD
9564     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9565       libsuff= shlibsuff= libmagic=32-bit;;
9566     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9567       libsuff=32 shlibsuff=N32 libmagic=N32;;
9568     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9569       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9570     *) libsuff= shlibsuff= libmagic=never-match;;
9571     esac
9572     ;;
9573   esac
9574   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9575   shlibpath_overrides_runpath=no
9576   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9577   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9578   hardcode_into_libs=yes
9579   ;;
9580
9581 # No shared lib support for Linux oldld, aout, or coff.
9582 linux*oldld* | linux*aout* | linux*coff*)
9583   dynamic_linker=no
9584   ;;
9585
9586 # This must be Linux ELF.
9587 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9594   shlibpath_var=LD_LIBRARY_PATH
9595   shlibpath_overrides_runpath=no
9596   # Some binutils ld are patched to set DT_RUNPATH
9597   save_LDFLAGS=$LDFLAGS
9598   save_libdir=$libdir
9599   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9600        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h.  */
9603
9604 int
9605 main ()
9606 {
9607
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9614   shlibpath_overrides_runpath=yes
9615 fi
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext \
9618     conftest$ac_exeext conftest.$ac_ext
9619   LDFLAGS=$save_LDFLAGS
9620   libdir=$save_libdir
9621
9622   # This implies no fast_install, which is unacceptable.
9623   # Some rework will be needed to allow for fast_install
9624   # before this can be enabled.
9625   hardcode_into_libs=yes
9626
9627   # Append ld.so.conf contents to the search path
9628   if test -f /etc/ld.so.conf; then
9629     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9630     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631   fi
9632
9633   # We used to test for /lib/ld.so.1 and disable shared libraries on
9634   # powerpc, because MkLinux only supported shared libraries with the
9635   # GNU dynamic linker.  Since this was broken with cross compilers,
9636   # most powerpc-linux boxes support dynamic linking these days and
9637   # people can always --disable-shared, the test was removed, and we
9638   # assume the GNU/Linux dynamic linker is in use.
9639   dynamic_linker='GNU/Linux ld.so'
9640   ;;
9641
9642 netbsdelf*-gnu)
9643   version_type=linux
9644   need_lib_prefix=no
9645   need_version=no
9646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647   soname_spec='${libname}${release}${shared_ext}$major'
9648   shlibpath_var=LD_LIBRARY_PATH
9649   shlibpath_overrides_runpath=no
9650   hardcode_into_libs=yes
9651   dynamic_linker='NetBSD ld.elf_so'
9652   ;;
9653
9654 netbsd*)
9655   version_type=sunos
9656   need_lib_prefix=no
9657   need_version=no
9658   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661     dynamic_linker='NetBSD (a.out) ld.so'
9662   else
9663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664     soname_spec='${libname}${release}${shared_ext}$major'
9665     dynamic_linker='NetBSD ld.elf_so'
9666   fi
9667   shlibpath_var=LD_LIBRARY_PATH
9668   shlibpath_overrides_runpath=yes
9669   hardcode_into_libs=yes
9670   ;;
9671
9672 newsos6)
9673   version_type=linux
9674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675   shlibpath_var=LD_LIBRARY_PATH
9676   shlibpath_overrides_runpath=yes
9677   ;;
9678
9679 *nto* | *qnx*)
9680   version_type=qnx
9681   need_lib_prefix=no
9682   need_version=no
9683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684   soname_spec='${libname}${release}${shared_ext}$major'
9685   shlibpath_var=LD_LIBRARY_PATH
9686   shlibpath_overrides_runpath=no
9687   hardcode_into_libs=yes
9688   dynamic_linker='ldqnx.so'
9689   ;;
9690
9691 openbsd*)
9692   version_type=sunos
9693   sys_lib_dlsearch_path_spec="/usr/lib"
9694   need_lib_prefix=no
9695   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9696   case $host_os in
9697     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9698     *)                          need_version=no  ;;
9699   esac
9700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9702   shlibpath_var=LD_LIBRARY_PATH
9703   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9704     case $host_os in
9705       openbsd2.[89] | openbsd2.[89].*)
9706         shlibpath_overrides_runpath=no
9707         ;;
9708       *)
9709         shlibpath_overrides_runpath=yes
9710         ;;
9711       esac
9712   else
9713     shlibpath_overrides_runpath=yes
9714   fi
9715   ;;
9716
9717 os2*)
9718   libname_spec='$name'
9719   shrext_cmds=".dll"
9720   need_lib_prefix=no
9721   library_names_spec='$libname${shared_ext} $libname.a'
9722   dynamic_linker='OS/2 ld.exe'
9723   shlibpath_var=LIBPATH
9724   ;;
9725
9726 osf3* | osf4* | osf5*)
9727   version_type=osf
9728   need_lib_prefix=no
9729   need_version=no
9730   soname_spec='${libname}${release}${shared_ext}$major'
9731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732   shlibpath_var=LD_LIBRARY_PATH
9733   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9734   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9735   ;;
9736
9737 rdos*)
9738   dynamic_linker=no
9739   ;;
9740
9741 solaris*)
9742   version_type=linux
9743   need_lib_prefix=no
9744   need_version=no
9745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746   soname_spec='${libname}${release}${shared_ext}$major'
9747   shlibpath_var=LD_LIBRARY_PATH
9748   shlibpath_overrides_runpath=yes
9749   hardcode_into_libs=yes
9750   # ldd complains unless libraries are executable
9751   postinstall_cmds='chmod +x $lib'
9752   ;;
9753
9754 sunos4*)
9755   version_type=sunos
9756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9757   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9758   shlibpath_var=LD_LIBRARY_PATH
9759   shlibpath_overrides_runpath=yes
9760   if test "$with_gnu_ld" = yes; then
9761     need_lib_prefix=no
9762   fi
9763   need_version=yes
9764   ;;
9765
9766 sysv4 | sysv4.3*)
9767   version_type=linux
9768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769   soname_spec='${libname}${release}${shared_ext}$major'
9770   shlibpath_var=LD_LIBRARY_PATH
9771   case $host_vendor in
9772     sni)
9773       shlibpath_overrides_runpath=no
9774       need_lib_prefix=no
9775       runpath_var=LD_RUN_PATH
9776       ;;
9777     siemens)
9778       need_lib_prefix=no
9779       ;;
9780     motorola)
9781       need_lib_prefix=no
9782       need_version=no
9783       shlibpath_overrides_runpath=no
9784       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9785       ;;
9786   esac
9787   ;;
9788
9789 sysv4*MP*)
9790   if test -d /usr/nec ;then
9791     version_type=linux
9792     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9793     soname_spec='$libname${shared_ext}.$major'
9794     shlibpath_var=LD_LIBRARY_PATH
9795   fi
9796   ;;
9797
9798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9799   version_type=freebsd-elf
9800   need_lib_prefix=no
9801   need_version=no
9802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9803   soname_spec='${libname}${release}${shared_ext}$major'
9804   shlibpath_var=LD_LIBRARY_PATH
9805   shlibpath_overrides_runpath=yes
9806   hardcode_into_libs=yes
9807   if test "$with_gnu_ld" = yes; then
9808     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9809   else
9810     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9811     case $host_os in
9812       sco3.2v5*)
9813         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9814         ;;
9815     esac
9816   fi
9817   sys_lib_dlsearch_path_spec='/usr/lib'
9818   ;;
9819
9820 tpf*)
9821   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9822   version_type=linux
9823   need_lib_prefix=no
9824   need_version=no
9825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826   shlibpath_var=LD_LIBRARY_PATH
9827   shlibpath_overrides_runpath=no
9828   hardcode_into_libs=yes
9829   ;;
9830
9831 uts4*)
9832   version_type=linux
9833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834   soname_spec='${libname}${release}${shared_ext}$major'
9835   shlibpath_var=LD_LIBRARY_PATH
9836   ;;
9837
9838 *)
9839   dynamic_linker=no
9840   ;;
9841 esac
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9843 $as_echo "$dynamic_linker" >&6; }
9844 test "$dynamic_linker" = no && can_build_shared=no
9845
9846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9847 if test "$GCC" = yes; then
9848   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9849 fi
9850
9851 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9852   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9853 fi
9854 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9855   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9945 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9946 hardcode_action=
9947 if test -n "$hardcode_libdir_flag_spec" ||
9948    test -n "$runpath_var" ||
9949    test "X$hardcode_automatic" = "Xyes" ; then
9950
9951   # We can hardcode non-existent directories.
9952   if test "$hardcode_direct" != no &&
9953      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9954      # have to relink, otherwise we might link with an installed library
9955      # when we should be linking with a yet-to-be-installed one
9956      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9957      test "$hardcode_minus_L" != no; then
9958     # Linking always hardcodes the temporary library directory.
9959     hardcode_action=relink
9960   else
9961     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9962     hardcode_action=immediate
9963   fi
9964 else
9965   # We cannot hardcode anything, or else we can only hardcode existing
9966   # directories.
9967   hardcode_action=unsupported
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9970 $as_echo "$hardcode_action" >&6; }
9971
9972 if test "$hardcode_action" = relink ||
9973    test "$inherit_rpath" = yes; then
9974   # Fast installation is not supported
9975   enable_fast_install=no
9976 elif test "$shlibpath_overrides_runpath" = yes ||
9977      test "$enable_shared" = no; then
9978   # Fast installation is not necessary
9979   enable_fast_install=needless
9980 fi
9981
9982
9983
9984
9985
9986
9987   if test "x$enable_dlopen" != xyes; then
9988   enable_dlopen=unknown
9989   enable_dlopen_self=unknown
9990   enable_dlopen_self_static=unknown
9991 else
9992   lt_cv_dlopen=no
9993   lt_cv_dlopen_libs=
9994
9995   case $host_os in
9996   beos*)
9997     lt_cv_dlopen="load_add_on"
9998     lt_cv_dlopen_libs=
9999     lt_cv_dlopen_self=yes
10000     ;;
10001
10002   mingw* | pw32* | cegcc*)
10003     lt_cv_dlopen="LoadLibrary"
10004     lt_cv_dlopen_libs=
10005     ;;
10006
10007   cygwin*)
10008     lt_cv_dlopen="dlopen"
10009     lt_cv_dlopen_libs=
10010     ;;
10011
10012   darwin*)
10013   # if libdl is installed we need to link against it
10014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10015 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10017   $as_echo_n "(cached) " >&6
10018 else
10019   ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-ldl  $LIBS"
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h.  */
10023
10024 /* Override any GCC internal prototype to avoid an error.
10025    Use char because int might match the return type of a GCC
10026    builtin and then its argument prototype would still apply.  */
10027 #ifdef __cplusplus
10028 extern "C"
10029 #endif
10030 char dlopen ();
10031 int
10032 main ()
10033 {
10034 return dlopen ();
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 if ac_fn_c_try_link "$LINENO"; then :
10040   ac_cv_lib_dl_dlopen=yes
10041 else
10042   ac_cv_lib_dl_dlopen=no
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext \
10045     conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10049 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10050 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10051   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10052 else
10053
10054     lt_cv_dlopen="dyld"
10055     lt_cv_dlopen_libs=
10056     lt_cv_dlopen_self=yes
10057
10058 fi
10059
10060     ;;
10061
10062   *)
10063     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10064 if test "x$ac_cv_func_shl_load" = x""yes; then :
10065   lt_cv_dlopen="shl_load"
10066 else
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10068 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10069 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10070   $as_echo_n "(cached) " >&6
10071 else
10072   ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldld  $LIBS"
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h.  */
10076
10077 /* Override any GCC internal prototype to avoid an error.
10078    Use char because int might match the return type of a GCC
10079    builtin and then its argument prototype would still apply.  */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char shl_load ();
10084 int
10085 main ()
10086 {
10087 return shl_load ();
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"; then :
10093   ac_cv_lib_dld_shl_load=yes
10094 else
10095   ac_cv_lib_dld_shl_load=no
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext \
10098     conftest$ac_exeext conftest.$ac_ext
10099 LIBS=$ac_check_lib_save_LIBS
10100 fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10102 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10103 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10104   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10105 else
10106   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10107 if test "x$ac_cv_func_dlopen" = x""yes; then :
10108   lt_cv_dlopen="dlopen"
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10111 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   ac_check_lib_save_LIBS=$LIBS
10116 LIBS="-ldl  $LIBS"
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h.  */
10119
10120 /* Override any GCC internal prototype to avoid an error.
10121    Use char because int might match the return type of a GCC
10122    builtin and then its argument prototype would still apply.  */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char dlopen ();
10127 int
10128 main ()
10129 {
10130 return dlopen ();
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 if ac_fn_c_try_link "$LINENO"; then :
10136   ac_cv_lib_dl_dlopen=yes
10137 else
10138   ac_cv_lib_dl_dlopen=no
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext \
10141     conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10143 fi
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10145 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10146 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10147   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10148 else
10149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10150 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10151 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-lsvld  $LIBS"
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h.  */
10158
10159 /* Override any GCC internal prototype to avoid an error.
10160    Use char because int might match the return type of a GCC
10161    builtin and then its argument prototype would still apply.  */
10162 #ifdef __cplusplus
10163 extern "C"
10164 #endif
10165 char dlopen ();
10166 int
10167 main ()
10168 {
10169 return dlopen ();
10170   ;
10171   return 0;
10172 }
10173 _ACEOF
10174 if ac_fn_c_try_link "$LINENO"; then :
10175   ac_cv_lib_svld_dlopen=yes
10176 else
10177   ac_cv_lib_svld_dlopen=no
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext \
10180     conftest$ac_exeext conftest.$ac_ext
10181 LIBS=$ac_check_lib_save_LIBS
10182 fi
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10184 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10185 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10186   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10187 else
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10189 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10190 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-ldld  $LIBS"
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h.  */
10197
10198 /* Override any GCC internal prototype to avoid an error.
10199    Use char because int might match the return type of a GCC
10200    builtin and then its argument prototype would still apply.  */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 char dld_link ();
10205 int
10206 main ()
10207 {
10208 return dld_link ();
10209   ;
10210   return 0;
10211 }
10212 _ACEOF
10213 if ac_fn_c_try_link "$LINENO"; then :
10214   ac_cv_lib_dld_dld_link=yes
10215 else
10216   ac_cv_lib_dld_dld_link=no
10217 fi
10218 rm -f core conftest.err conftest.$ac_objext \
10219     conftest$ac_exeext conftest.$ac_ext
10220 LIBS=$ac_check_lib_save_LIBS
10221 fi
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10223 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10224 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10225   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10226 fi
10227
10228
10229 fi
10230
10231
10232 fi
10233
10234
10235 fi
10236
10237
10238 fi
10239
10240
10241 fi
10242
10243     ;;
10244   esac
10245
10246   if test "x$lt_cv_dlopen" != xno; then
10247     enable_dlopen=yes
10248   else
10249     enable_dlopen=no
10250   fi
10251
10252   case $lt_cv_dlopen in
10253   dlopen)
10254     save_CPPFLAGS="$CPPFLAGS"
10255     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10256
10257     save_LDFLAGS="$LDFLAGS"
10258     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10259
10260     save_LIBS="$LIBS"
10261     LIBS="$lt_cv_dlopen_libs $LIBS"
10262
10263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10264 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10265 if test "${lt_cv_dlopen_self+set}" = set; then :
10266   $as_echo_n "(cached) " >&6
10267 else
10268           if test "$cross_compiling" = yes; then :
10269   lt_cv_dlopen_self=cross
10270 else
10271   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10272   lt_status=$lt_dlunknown
10273   cat > conftest.$ac_ext <<_LT_EOF
10274 #line 10274 "configure"
10275 #include "confdefs.h"
10276
10277 #if HAVE_DLFCN_H
10278 #include <dlfcn.h>
10279 #endif
10280
10281 #include <stdio.h>
10282
10283 #ifdef RTLD_GLOBAL
10284 #  define LT_DLGLOBAL           RTLD_GLOBAL
10285 #else
10286 #  ifdef DL_GLOBAL
10287 #    define LT_DLGLOBAL         DL_GLOBAL
10288 #  else
10289 #    define LT_DLGLOBAL         0
10290 #  endif
10291 #endif
10292
10293 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10294    find out it does not work in some platform. */
10295 #ifndef LT_DLLAZY_OR_NOW
10296 #  ifdef RTLD_LAZY
10297 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10298 #  else
10299 #    ifdef DL_LAZY
10300 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10301 #    else
10302 #      ifdef RTLD_NOW
10303 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10304 #      else
10305 #        ifdef DL_NOW
10306 #          define LT_DLLAZY_OR_NOW      DL_NOW
10307 #        else
10308 #          define LT_DLLAZY_OR_NOW      0
10309 #        endif
10310 #      endif
10311 #    endif
10312 #  endif
10313 #endif
10314
10315 void fnord() { int i=42;}
10316 int main ()
10317 {
10318   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10319   int status = $lt_dlunknown;
10320
10321   if (self)
10322     {
10323       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10324       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10325       /* dlclose (self); */
10326     }
10327   else
10328     puts (dlerror ());
10329
10330   return status;
10331 }
10332 _LT_EOF
10333   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10334   (eval $ac_link) 2>&5
10335   ac_status=$?
10336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10338     (./conftest; exit; ) >&5 2>/dev/null
10339     lt_status=$?
10340     case x$lt_status in
10341       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10342       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10343       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10344     esac
10345   else :
10346     # compilation failed
10347     lt_cv_dlopen_self=no
10348   fi
10349 fi
10350 rm -fr conftest*
10351
10352
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10355 $as_echo "$lt_cv_dlopen_self" >&6; }
10356
10357     if test "x$lt_cv_dlopen_self" = xyes; then
10358       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10359       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10360 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10361 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10362   $as_echo_n "(cached) " >&6
10363 else
10364           if test "$cross_compiling" = yes; then :
10365   lt_cv_dlopen_self_static=cross
10366 else
10367   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10368   lt_status=$lt_dlunknown
10369   cat > conftest.$ac_ext <<_LT_EOF
10370 #line 10370 "configure"
10371 #include "confdefs.h"
10372
10373 #if HAVE_DLFCN_H
10374 #include <dlfcn.h>
10375 #endif
10376
10377 #include <stdio.h>
10378
10379 #ifdef RTLD_GLOBAL
10380 #  define LT_DLGLOBAL           RTLD_GLOBAL
10381 #else
10382 #  ifdef DL_GLOBAL
10383 #    define LT_DLGLOBAL         DL_GLOBAL
10384 #  else
10385 #    define LT_DLGLOBAL         0
10386 #  endif
10387 #endif
10388
10389 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10390    find out it does not work in some platform. */
10391 #ifndef LT_DLLAZY_OR_NOW
10392 #  ifdef RTLD_LAZY
10393 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10394 #  else
10395 #    ifdef DL_LAZY
10396 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10397 #    else
10398 #      ifdef RTLD_NOW
10399 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10400 #      else
10401 #        ifdef DL_NOW
10402 #          define LT_DLLAZY_OR_NOW      DL_NOW
10403 #        else
10404 #          define LT_DLLAZY_OR_NOW      0
10405 #        endif
10406 #      endif
10407 #    endif
10408 #  endif
10409 #endif
10410
10411 void fnord() { int i=42;}
10412 int main ()
10413 {
10414   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10415   int status = $lt_dlunknown;
10416
10417   if (self)
10418     {
10419       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10420       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421       /* dlclose (self); */
10422     }
10423   else
10424     puts (dlerror ());
10425
10426   return status;
10427 }
10428 _LT_EOF
10429   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10430   (eval $ac_link) 2>&5
10431   ac_status=$?
10432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10433   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10434     (./conftest; exit; ) >&5 2>/dev/null
10435     lt_status=$?
10436     case x$lt_status in
10437       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10438       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10439       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10440     esac
10441   else :
10442     # compilation failed
10443     lt_cv_dlopen_self_static=no
10444   fi
10445 fi
10446 rm -fr conftest*
10447
10448
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10451 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10452     fi
10453
10454     CPPFLAGS="$save_CPPFLAGS"
10455     LDFLAGS="$save_LDFLAGS"
10456     LIBS="$save_LIBS"
10457     ;;
10458   esac
10459
10460   case $lt_cv_dlopen_self in
10461   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10462   *) enable_dlopen_self=unknown ;;
10463   esac
10464
10465   case $lt_cv_dlopen_self_static in
10466   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10467   *) enable_dlopen_self_static=unknown ;;
10468   esac
10469 fi
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 striplib=
10488 old_striplib=
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10490 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10491 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10492   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10493   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10495 $as_echo "yes" >&6; }
10496 else
10497 # FIXME - insert some real tests, host_os isn't really good enough
10498   case $host_os in
10499   darwin*)
10500     if test -n "$STRIP" ; then
10501       striplib="$STRIP -x"
10502       old_striplib="$STRIP -S"
10503       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10504 $as_echo "yes" >&6; }
10505     else
10506       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10508     fi
10509     ;;
10510   *)
10511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513     ;;
10514   esac
10515 fi
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528   # Report which library types will actually be built
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10530 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10532 $as_echo "$can_build_shared" >&6; }
10533
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10535 $as_echo_n "checking whether to build shared libraries... " >&6; }
10536   test "$can_build_shared" = "no" && enable_shared=no
10537
10538   # On AIX, shared libraries and static libraries use the same namespace, and
10539   # are all built from PIC.
10540   case $host_os in
10541   aix3*)
10542     test "$enable_shared" = yes && enable_static=no
10543     if test -n "$RANLIB"; then
10544       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10545       postinstall_cmds='$RANLIB $lib'
10546     fi
10547     ;;
10548
10549   aix[4-9]*)
10550     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10551       test "$enable_shared" = yes && enable_static=no
10552     fi
10553     ;;
10554   esac
10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10556 $as_echo "$enable_shared" >&6; }
10557
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10559 $as_echo_n "checking whether to build static libraries... " >&6; }
10560   # Make sure either enable_shared or enable_static is yes.
10561   test "$enable_shared" = yes || enable_static=yes
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10563 $as_echo "$enable_static" >&6; }
10564
10565
10566
10567
10568 fi
10569 ac_ext=c
10570 ac_cpp='$CPP $CPPFLAGS'
10571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10574
10575 CC="$lt_save_CC"
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589         ac_config_commands="$ac_config_commands libtool"
10590
10591
10592
10593
10594 # Only expand once:
10595
10596
10597
10598 ac_ext=c
10599 ac_cpp='$CPP $CPPFLAGS'
10600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603 if test -n "$ac_tool_prefix"; then
10604   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if test "${ac_cv_prog_CC+set}" = set; then :
10609   $as_echo_n "(cached) " >&6
10610 else
10611   if test -n "$CC"; then
10612   ac_cv_prog_CC="$CC" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10616 do
10617   IFS=$as_save_IFS
10618   test -z "$as_dir" && as_dir=.
10619     for ac_exec_ext in '' $ac_executable_extensions; do
10620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10621     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623     break 2
10624   fi
10625 done
10626   done
10627 IFS=$as_save_IFS
10628
10629 fi
10630 fi
10631 CC=$ac_cv_prog_CC
10632 if test -n "$CC"; then
10633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10634 $as_echo "$CC" >&6; }
10635 else
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638 fi
10639
10640
10641 fi
10642 if test -z "$ac_cv_prog_CC"; then
10643   ac_ct_CC=$CC
10644   # Extract the first word of "gcc", so it can be a program name with args.
10645 set dummy gcc; ac_word=$2
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10647 $as_echo_n "checking for $ac_word... " >&6; }
10648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10649   $as_echo_n "(cached) " >&6
10650 else
10651   if test -n "$ac_ct_CC"; then
10652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10653 else
10654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655 for as_dir in $PATH
10656 do
10657   IFS=$as_save_IFS
10658   test -z "$as_dir" && as_dir=.
10659     for ac_exec_ext in '' $ac_executable_extensions; do
10660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10661     ac_cv_prog_ac_ct_CC="gcc"
10662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663     break 2
10664   fi
10665 done
10666   done
10667 IFS=$as_save_IFS
10668
10669 fi
10670 fi
10671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10672 if test -n "$ac_ct_CC"; then
10673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10674 $as_echo "$ac_ct_CC" >&6; }
10675 else
10676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677 $as_echo "no" >&6; }
10678 fi
10679
10680   if test "x$ac_ct_CC" = x; then
10681     CC=""
10682   else
10683     case $cross_compiling:$ac_tool_warned in
10684 yes:)
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10687 ac_tool_warned=yes ;;
10688 esac
10689     CC=$ac_ct_CC
10690   fi
10691 else
10692   CC="$ac_cv_prog_CC"
10693 fi
10694
10695 if test -z "$CC"; then
10696           if test -n "$ac_tool_prefix"; then
10697     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10698 set dummy ${ac_tool_prefix}cc; ac_word=$2
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if test "${ac_cv_prog_CC+set}" = set; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   if test -n "$CC"; then
10705   ac_cv_prog_CC="$CC" # Let the user override the test.
10706 else
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10709 do
10710   IFS=$as_save_IFS
10711   test -z "$as_dir" && as_dir=.
10712     for ac_exec_ext in '' $ac_executable_extensions; do
10713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714     ac_cv_prog_CC="${ac_tool_prefix}cc"
10715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716     break 2
10717   fi
10718 done
10719   done
10720 IFS=$as_save_IFS
10721
10722 fi
10723 fi
10724 CC=$ac_cv_prog_CC
10725 if test -n "$CC"; then
10726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10727 $as_echo "$CC" >&6; }
10728 else
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10731 fi
10732
10733
10734   fi
10735 fi
10736 if test -z "$CC"; then
10737   # Extract the first word of "cc", so it can be a program name with args.
10738 set dummy cc; ac_word=$2
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740 $as_echo_n "checking for $ac_word... " >&6; }
10741 if test "${ac_cv_prog_CC+set}" = set; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744   if test -n "$CC"; then
10745   ac_cv_prog_CC="$CC" # Let the user override the test.
10746 else
10747   ac_prog_rejected=no
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10750 do
10751   IFS=$as_save_IFS
10752   test -z "$as_dir" && as_dir=.
10753     for ac_exec_ext in '' $ac_executable_extensions; do
10754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10756        ac_prog_rejected=yes
10757        continue
10758      fi
10759     ac_cv_prog_CC="cc"
10760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761     break 2
10762   fi
10763 done
10764   done
10765 IFS=$as_save_IFS
10766
10767 if test $ac_prog_rejected = yes; then
10768   # We found a bogon in the path, so make sure we never use it.
10769   set dummy $ac_cv_prog_CC
10770   shift
10771   if test $# != 0; then
10772     # We chose a different compiler from the bogus one.
10773     # However, it has the same basename, so the bogon will be chosen
10774     # first if we set CC to just the basename; use the full file name.
10775     shift
10776     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10777   fi
10778 fi
10779 fi
10780 fi
10781 CC=$ac_cv_prog_CC
10782 if test -n "$CC"; then
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10784 $as_echo "$CC" >&6; }
10785 else
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789
10790
10791 fi
10792 if test -z "$CC"; then
10793   if test -n "$ac_tool_prefix"; then
10794   for ac_prog in cl.exe
10795   do
10796     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if test "${ac_cv_prog_CC+set}" = set; then :
10801   $as_echo_n "(cached) " >&6
10802 else
10803   if test -n "$CC"; then
10804   ac_cv_prog_CC="$CC" # Let the user override the test.
10805 else
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10808 do
10809   IFS=$as_save_IFS
10810   test -z "$as_dir" && as_dir=.
10811     for ac_exec_ext in '' $ac_executable_extensions; do
10812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815     break 2
10816   fi
10817 done
10818   done
10819 IFS=$as_save_IFS
10820
10821 fi
10822 fi
10823 CC=$ac_cv_prog_CC
10824 if test -n "$CC"; then
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10826 $as_echo "$CC" >&6; }
10827 else
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 fi
10831
10832
10833     test -n "$CC" && break
10834   done
10835 fi
10836 if test -z "$CC"; then
10837   ac_ct_CC=$CC
10838   for ac_prog in cl.exe
10839 do
10840   # Extract the first word of "$ac_prog", so it can be a program name with args.
10841 set dummy $ac_prog; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10845   $as_echo_n "(cached) " >&6
10846 else
10847   if test -n "$ac_ct_CC"; then
10848   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10849 else
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10852 do
10853   IFS=$as_save_IFS
10854   test -z "$as_dir" && as_dir=.
10855     for ac_exec_ext in '' $ac_executable_extensions; do
10856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857     ac_cv_prog_ac_ct_CC="$ac_prog"
10858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859     break 2
10860   fi
10861 done
10862   done
10863 IFS=$as_save_IFS
10864
10865 fi
10866 fi
10867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10868 if test -n "$ac_ct_CC"; then
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10870 $as_echo "$ac_ct_CC" >&6; }
10871 else
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 fi
10875
10876
10877   test -n "$ac_ct_CC" && break
10878 done
10879
10880   if test "x$ac_ct_CC" = x; then
10881     CC=""
10882   else
10883     case $cross_compiling:$ac_tool_warned in
10884 yes:)
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10887 ac_tool_warned=yes ;;
10888 esac
10889     CC=$ac_ct_CC
10890   fi
10891 fi
10892
10893 fi
10894
10895
10896 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10898 as_fn_error $? "no acceptable C compiler found in \$PATH
10899 See \`config.log' for more details" "$LINENO" 5 ; }
10900
10901 # Provide some information about the compiler.
10902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10903 set X $ac_compile
10904 ac_compiler=$2
10905 for ac_option in --version -v -V -qversion; do
10906   { { ac_try="$ac_compiler $ac_option >&5"
10907 case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10912 $as_echo "$ac_try_echo"; } >&5
10913   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10914   ac_status=$?
10915   if test -s conftest.err; then
10916     sed '10a\
10917 ... rest of stderr output deleted ...
10918          10q' conftest.err >conftest.er1
10919     cat conftest.er1 >&5
10920   fi
10921   rm -f conftest.er1 conftest.err
10922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923   test $ac_status = 0; }
10924 done
10925
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10928 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h.  */
10933
10934 int
10935 main ()
10936 {
10937 #ifndef __GNUC__
10938        choke me
10939 #endif
10940
10941   ;
10942   return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_compile "$LINENO"; then :
10946   ac_compiler_gnu=yes
10947 else
10948   ac_compiler_gnu=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10952
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10956 if test $ac_compiler_gnu = yes; then
10957   GCC=yes
10958 else
10959   GCC=
10960 fi
10961 ac_test_CFLAGS=${CFLAGS+set}
10962 ac_save_CFLAGS=$CFLAGS
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10965 if test "${ac_cv_prog_cc_g+set}" = set; then :
10966   $as_echo_n "(cached) " >&6
10967 else
10968   ac_save_c_werror_flag=$ac_c_werror_flag
10969    ac_c_werror_flag=yes
10970    ac_cv_prog_cc_g=no
10971    CFLAGS="-g"
10972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h.  */
10974
10975 int
10976 main ()
10977 {
10978
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 if ac_fn_c_try_compile "$LINENO"; then :
10984   ac_cv_prog_cc_g=yes
10985 else
10986   CFLAGS=""
10987       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h.  */
10989
10990 int
10991 main ()
10992 {
10993
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999
11000 else
11001   ac_c_werror_flag=$ac_save_c_werror_flag
11002          CFLAGS="-g"
11003          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h.  */
11005
11006 int
11007 main ()
11008 {
11009
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_compile "$LINENO"; then :
11015   ac_cv_prog_cc_g=yes
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022    ac_c_werror_flag=$ac_save_c_werror_flag
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11025 $as_echo "$ac_cv_prog_cc_g" >&6; }
11026 if test "$ac_test_CFLAGS" = set; then
11027   CFLAGS=$ac_save_CFLAGS
11028 elif test $ac_cv_prog_cc_g = yes; then
11029   if test "$GCC" = yes; then
11030     CFLAGS="-g -O2"
11031   else
11032     CFLAGS="-g"
11033   fi
11034 else
11035   if test "$GCC" = yes; then
11036     CFLAGS="-O2"
11037   else
11038     CFLAGS=
11039   fi
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11043 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11044   $as_echo_n "(cached) " >&6
11045 else
11046   ac_cv_prog_cc_c89=no
11047 ac_save_CC=$CC
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h.  */
11050 #include <stdarg.h>
11051 #include <stdio.h>
11052 #include <sys/types.h>
11053 #include <sys/stat.h>
11054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11055 struct buf { int x; };
11056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11057 static char *e (p, i)
11058      char **p;
11059      int i;
11060 {
11061   return p[i];
11062 }
11063 static char *f (char * (*g) (char **, int), char **p, ...)
11064 {
11065   char *s;
11066   va_list v;
11067   va_start (v,p);
11068   s = g (p, va_arg (v,int));
11069   va_end (v);
11070   return s;
11071 }
11072
11073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11074    function prototypes and stuff, but not '\xHH' hex character constants.
11075    These don't provoke an error unfortunately, instead are silently treated
11076    as 'x'.  The following induces an error, until -std is added to get
11077    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11078    array size at least.  It's necessary to write '\x00'==0 to get something
11079    that's true only with -std.  */
11080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11081
11082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11083    inside strings and character constants.  */
11084 #define FOO(x) 'x'
11085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11086
11087 int test (int i, double x);
11088 struct s1 {int (*f) (int a);};
11089 struct s2 {int (*f) (double a);};
11090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11091 int argc;
11092 char **argv;
11093 int
11094 main ()
11095 {
11096 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11102         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11103 do
11104   CC="$ac_save_CC $ac_arg"
11105   if ac_fn_c_try_compile "$LINENO"; then :
11106   ac_cv_prog_cc_c89=$ac_arg
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext
11109   test "x$ac_cv_prog_cc_c89" != "xno" && break
11110 done
11111 rm -f conftest.$ac_ext
11112 CC=$ac_save_CC
11113
11114 fi
11115 # AC_CACHE_VAL
11116 case "x$ac_cv_prog_cc_c89" in
11117   x)
11118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11119 $as_echo "none needed" >&6; } ;;
11120   xno)
11121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11122 $as_echo "unsupported" >&6; } ;;
11123   *)
11124     CC="$CC $ac_cv_prog_cc_c89"
11125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11127 esac
11128 if test "x$ac_cv_prog_cc_c89" != xno; then :
11129
11130 fi
11131
11132 ac_ext=c
11133 ac_cpp='$CPP $CPPFLAGS'
11134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11137
11138 depcc="$CC"   am_compiler_list=
11139
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11141 $as_echo_n "checking dependency style of $depcc... " >&6; }
11142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11146   # We make a subdir and do the tests there.  Otherwise we can end up
11147   # making bogus files that we don't know about and never remove.  For
11148   # instance it was reported that on HP-UX the gcc test will end up
11149   # making a dummy file named `D' -- because `-MD' means `put the output
11150   # in D'.
11151   mkdir conftest.dir
11152   # Copy depcomp to subdir because otherwise we won't find it if we're
11153   # using a relative directory.
11154   cp "$am_depcomp" conftest.dir
11155   cd conftest.dir
11156   # We will build objects and dependencies in a subdirectory because
11157   # it helps to detect inapplicable dependency modes.  For instance
11158   # both Tru64's cc and ICC support -MD to output dependencies as a
11159   # side effect of compilation, but ICC will put the dependencies in
11160   # the current directory while Tru64 will put them in the object
11161   # directory.
11162   mkdir sub
11163
11164   am_cv_CC_dependencies_compiler_type=none
11165   if test "$am_compiler_list" = ""; then
11166      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11167   fi
11168   am__universal=false
11169   case " $depcc " in #(
11170      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11171      esac
11172
11173   for depmode in $am_compiler_list; do
11174     # Setup a source with many dependencies, because some compilers
11175     # like to wrap large dependency lists on column 80 (with \), and
11176     # we should not choose a depcomp mode which is confused by this.
11177     #
11178     # We need to recreate these files for each test, as the compiler may
11179     # overwrite some of them when testing with obscure command lines.
11180     # This happens at least with the AIX C compiler.
11181     : > sub/conftest.c
11182     for i in 1 2 3 4 5 6; do
11183       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11184       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11185       # Solaris 8's {/usr,}/bin/sh.
11186       touch sub/conftst$i.h
11187     done
11188     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11189
11190     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11191     # mode.  It turns out that the SunPro C++ compiler does not properly
11192     # handle `-M -o', and we need to detect this.  Also, some Intel
11193     # versions had trouble with output in subdirs
11194     am__obj=sub/conftest.${OBJEXT-o}
11195     am__minus_obj="-o $am__obj"
11196     case $depmode in
11197     gcc)
11198       # This depmode causes a compiler race in universal mode.
11199       test "$am__universal" = false || continue
11200       ;;
11201     nosideeffect)
11202       # after this tag, mechanisms are not by side-effect, so they'll
11203       # only be used when explicitly requested
11204       if test "x$enable_dependency_tracking" = xyes; then
11205         continue
11206       else
11207         break
11208       fi
11209       ;;
11210     msvisualcpp | msvcmsys)
11211       # This compiler won't grok `-c -o', but also, the minuso test has
11212       # not run yet.  These depmodes are late enough in the game, and
11213       # so weak that their functioning should not be impacted.
11214       am__obj=conftest.${OBJEXT-o}
11215       am__minus_obj=
11216       ;;
11217     none) break ;;
11218     esac
11219     if depmode=$depmode \
11220        source=sub/conftest.c object=$am__obj \
11221        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11222        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11223          >/dev/null 2>conftest.err &&
11224        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11226        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11228       # icc doesn't choke on unknown options, it will just issue warnings
11229       # or remarks (even with -Werror).  So we grep stderr for any message
11230       # that says an option was ignored or not supported.
11231       # When given -MP, icc 7.0 and 7.1 complain thusly:
11232       #   icc: Command line warning: ignoring option '-M'; no argument required
11233       # The diagnosis changed in icc 8.0:
11234       #   icc: Command line remark: option '-MP' not supported
11235       if (grep 'ignoring option' conftest.err ||
11236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11237         am_cv_CC_dependencies_compiler_type=$depmode
11238         break
11239       fi
11240     fi
11241   done
11242
11243   cd ..
11244   rm -rf conftest.dir
11245 else
11246   am_cv_CC_dependencies_compiler_type=none
11247 fi
11248
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11253
11254  if
11255   test "x$enable_dependency_tracking" != xno \
11256   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11257   am__fastdepCC_TRUE=
11258   am__fastdepCC_FALSE='#'
11259 else
11260   am__fastdepCC_TRUE='#'
11261   am__fastdepCC_FALSE=
11262 fi
11263
11264
11265 ac_ext=cpp
11266 ac_cpp='$CXXCPP $CPPFLAGS'
11267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11270 if test -z "$CXX"; then
11271   if test -n "$CCC"; then
11272     CXX=$CCC
11273   else
11274     if test -n "$ac_tool_prefix"; then
11275   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11276   do
11277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if test "${ac_cv_prog_CXX+set}" = set; then :
11282   $as_echo_n "(cached) " >&6
11283 else
11284   if test -n "$CXX"; then
11285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11286 else
11287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288 for as_dir in $PATH
11289 do
11290   IFS=$as_save_IFS
11291   test -z "$as_dir" && as_dir=.
11292     for ac_exec_ext in '' $ac_executable_extensions; do
11293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296     break 2
11297   fi
11298 done
11299   done
11300 IFS=$as_save_IFS
11301
11302 fi
11303 fi
11304 CXX=$ac_cv_prog_CXX
11305 if test -n "$CXX"; then
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11307 $as_echo "$CXX" >&6; }
11308 else
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311 fi
11312
11313
11314     test -n "$CXX" && break
11315   done
11316 fi
11317 if test -z "$CXX"; then
11318   ac_ct_CXX=$CXX
11319   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11320 do
11321   # Extract the first word of "$ac_prog", so it can be a program name with args.
11322 set dummy $ac_prog; ac_word=$2
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324 $as_echo_n "checking for $ac_word... " >&6; }
11325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11326   $as_echo_n "(cached) " >&6
11327 else
11328   if test -n "$ac_ct_CXX"; then
11329   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11330 else
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11333 do
11334   IFS=$as_save_IFS
11335   test -z "$as_dir" && as_dir=.
11336     for ac_exec_ext in '' $ac_executable_extensions; do
11337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338     ac_cv_prog_ac_ct_CXX="$ac_prog"
11339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340     break 2
11341   fi
11342 done
11343   done
11344 IFS=$as_save_IFS
11345
11346 fi
11347 fi
11348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11349 if test -n "$ac_ct_CXX"; then
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11351 $as_echo "$ac_ct_CXX" >&6; }
11352 else
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11355 fi
11356
11357
11358   test -n "$ac_ct_CXX" && break
11359 done
11360
11361   if test "x$ac_ct_CXX" = x; then
11362     CXX="g++"
11363   else
11364     case $cross_compiling:$ac_tool_warned in
11365 yes:)
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11368 ac_tool_warned=yes ;;
11369 esac
11370     CXX=$ac_ct_CXX
11371   fi
11372 fi
11373
11374   fi
11375 fi
11376 # Provide some information about the compiler.
11377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11378 set X $ac_compile
11379 ac_compiler=$2
11380 for ac_option in --version -v -V -qversion; do
11381   { { ac_try="$ac_compiler $ac_option >&5"
11382 case "(($ac_try" in
11383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384   *) ac_try_echo=$ac_try;;
11385 esac
11386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11387 $as_echo "$ac_try_echo"; } >&5
11388   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11389   ac_status=$?
11390   if test -s conftest.err; then
11391     sed '10a\
11392 ... rest of stderr output deleted ...
11393          10q' conftest.err >conftest.er1
11394     cat conftest.er1 >&5
11395   fi
11396   rm -f conftest.er1 conftest.err
11397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398   test $ac_status = 0; }
11399 done
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11402 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h.  */
11408
11409 int
11410 main ()
11411 {
11412 #ifndef __GNUC__
11413        choke me
11414 #endif
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_cxx_try_compile "$LINENO"; then :
11421   ac_compiler_gnu=yes
11422 else
11423   ac_compiler_gnu=no
11424 fi
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11427
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11430 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11431 if test $ac_compiler_gnu = yes; then
11432   GXX=yes
11433 else
11434   GXX=
11435 fi
11436 ac_test_CXXFLAGS=${CXXFLAGS+set}
11437 ac_save_CXXFLAGS=$CXXFLAGS
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11439 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11440 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11444    ac_cxx_werror_flag=yes
11445    ac_cv_prog_cxx_g=no
11446    CXXFLAGS="-g"
11447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h.  */
11449
11450 int
11451 main ()
11452 {
11453
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_cxx_try_compile "$LINENO"; then :
11459   ac_cv_prog_cxx_g=yes
11460 else
11461   CXXFLAGS=""
11462       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h.  */
11464
11465 int
11466 main ()
11467 {
11468
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 if ac_fn_cxx_try_compile "$LINENO"; then :
11474
11475 else
11476   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11477          CXXFLAGS="-g"
11478          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h.  */
11480
11481 int
11482 main ()
11483 {
11484
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_cxx_try_compile "$LINENO"; then :
11490   ac_cv_prog_cxx_g=yes
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 fi
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11500 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11501 if test "$ac_test_CXXFLAGS" = set; then
11502   CXXFLAGS=$ac_save_CXXFLAGS
11503 elif test $ac_cv_prog_cxx_g = yes; then
11504   if test "$GXX" = yes; then
11505     CXXFLAGS="-g -O2"
11506   else
11507     CXXFLAGS="-g"
11508   fi
11509 else
11510   if test "$GXX" = yes; then
11511     CXXFLAGS="-O2"
11512   else
11513     CXXFLAGS=
11514   fi
11515 fi
11516 ac_ext=c
11517 ac_cpp='$CPP $CPPFLAGS'
11518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11521
11522 depcc="$CXX"  am_compiler_list=
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11525 $as_echo_n "checking dependency style of $depcc... " >&6; }
11526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11530   # We make a subdir and do the tests there.  Otherwise we can end up
11531   # making bogus files that we don't know about and never remove.  For
11532   # instance it was reported that on HP-UX the gcc test will end up
11533   # making a dummy file named `D' -- because `-MD' means `put the output
11534   # in D'.
11535   mkdir conftest.dir
11536   # Copy depcomp to subdir because otherwise we won't find it if we're
11537   # using a relative directory.
11538   cp "$am_depcomp" conftest.dir
11539   cd conftest.dir
11540   # We will build objects and dependencies in a subdirectory because
11541   # it helps to detect inapplicable dependency modes.  For instance
11542   # both Tru64's cc and ICC support -MD to output dependencies as a
11543   # side effect of compilation, but ICC will put the dependencies in
11544   # the current directory while Tru64 will put them in the object
11545   # directory.
11546   mkdir sub
11547
11548   am_cv_CXX_dependencies_compiler_type=none
11549   if test "$am_compiler_list" = ""; then
11550      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11551   fi
11552   am__universal=false
11553   case " $depcc " in #(
11554      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11555      esac
11556
11557   for depmode in $am_compiler_list; do
11558     # Setup a source with many dependencies, because some compilers
11559     # like to wrap large dependency lists on column 80 (with \), and
11560     # we should not choose a depcomp mode which is confused by this.
11561     #
11562     # We need to recreate these files for each test, as the compiler may
11563     # overwrite some of them when testing with obscure command lines.
11564     # This happens at least with the AIX C compiler.
11565     : > sub/conftest.c
11566     for i in 1 2 3 4 5 6; do
11567       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11568       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11569       # Solaris 8's {/usr,}/bin/sh.
11570       touch sub/conftst$i.h
11571     done
11572     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11573
11574     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11575     # mode.  It turns out that the SunPro C++ compiler does not properly
11576     # handle `-M -o', and we need to detect this.  Also, some Intel
11577     # versions had trouble with output in subdirs
11578     am__obj=sub/conftest.${OBJEXT-o}
11579     am__minus_obj="-o $am__obj"
11580     case $depmode in
11581     gcc)
11582       # This depmode causes a compiler race in universal mode.
11583       test "$am__universal" = false || continue
11584       ;;
11585     nosideeffect)
11586       # after this tag, mechanisms are not by side-effect, so they'll
11587       # only be used when explicitly requested
11588       if test "x$enable_dependency_tracking" = xyes; then
11589         continue
11590       else
11591         break
11592       fi
11593       ;;
11594     msvisualcpp | msvcmsys)
11595       # This compiler won't grok `-c -o', but also, the minuso test has
11596       # not run yet.  These depmodes are late enough in the game, and
11597       # so weak that their functioning should not be impacted.
11598       am__obj=conftest.${OBJEXT-o}
11599       am__minus_obj=
11600       ;;
11601     none) break ;;
11602     esac
11603     if depmode=$depmode \
11604        source=sub/conftest.c object=$am__obj \
11605        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11606        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11607          >/dev/null 2>conftest.err &&
11608        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11609        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11610        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11611        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11612       # icc doesn't choke on unknown options, it will just issue warnings
11613       # or remarks (even with -Werror).  So we grep stderr for any message
11614       # that says an option was ignored or not supported.
11615       # When given -MP, icc 7.0 and 7.1 complain thusly:
11616       #   icc: Command line warning: ignoring option '-M'; no argument required
11617       # The diagnosis changed in icc 8.0:
11618       #   icc: Command line remark: option '-MP' not supported
11619       if (grep 'ignoring option' conftest.err ||
11620           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11621         am_cv_CXX_dependencies_compiler_type=$depmode
11622         break
11623       fi
11624     fi
11625   done
11626
11627   cd ..
11628   rm -rf conftest.dir
11629 else
11630   am_cv_CXX_dependencies_compiler_type=none
11631 fi
11632
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11635 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11636 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11637
11638  if
11639   test "x$enable_dependency_tracking" != xno \
11640   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11641   am__fastdepCXX_TRUE=
11642   am__fastdepCXX_FALSE='#'
11643 else
11644   am__fastdepCXX_TRUE='#'
11645   am__fastdepCXX_FALSE=
11646 fi
11647
11648
11649
11650 ac_ext=cpp
11651 ac_cpp='$CXXCPP $CPPFLAGS'
11652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11655 if test -z "$CXX"; then
11656   if test -n "$CCC"; then
11657     CXX=$CCC
11658   else
11659     if test -n "$ac_tool_prefix"; then
11660   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11661   do
11662     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if test "${ac_cv_prog_CXX+set}" = set; then :
11667   $as_echo_n "(cached) " >&6
11668 else
11669   if test -n "$CXX"; then
11670   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11671 else
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11674 do
11675   IFS=$as_save_IFS
11676   test -z "$as_dir" && as_dir=.
11677     for ac_exec_ext in '' $ac_executable_extensions; do
11678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11679     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681     break 2
11682   fi
11683 done
11684   done
11685 IFS=$as_save_IFS
11686
11687 fi
11688 fi
11689 CXX=$ac_cv_prog_CXX
11690 if test -n "$CXX"; then
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11692 $as_echo "$CXX" >&6; }
11693 else
11694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11696 fi
11697
11698
11699     test -n "$CXX" && break
11700   done
11701 fi
11702 if test -z "$CXX"; then
11703   ac_ct_CXX=$CXX
11704   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11705 do
11706   # Extract the first word of "$ac_prog", so it can be a program name with args.
11707 set dummy $ac_prog; ac_word=$2
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 $as_echo_n "checking for $ac_word... " >&6; }
11710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11711   $as_echo_n "(cached) " >&6
11712 else
11713   if test -n "$ac_ct_CXX"; then
11714   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11715 else
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11718 do
11719   IFS=$as_save_IFS
11720   test -z "$as_dir" && as_dir=.
11721     for ac_exec_ext in '' $ac_executable_extensions; do
11722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723     ac_cv_prog_ac_ct_CXX="$ac_prog"
11724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725     break 2
11726   fi
11727 done
11728   done
11729 IFS=$as_save_IFS
11730
11731 fi
11732 fi
11733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11734 if test -n "$ac_ct_CXX"; then
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11736 $as_echo "$ac_ct_CXX" >&6; }
11737 else
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741
11742
11743   test -n "$ac_ct_CXX" && break
11744 done
11745
11746   if test "x$ac_ct_CXX" = x; then
11747     CXX="g++"
11748   else
11749     case $cross_compiling:$ac_tool_warned in
11750 yes:)
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11753 ac_tool_warned=yes ;;
11754 esac
11755     CXX=$ac_ct_CXX
11756   fi
11757 fi
11758
11759   fi
11760 fi
11761 # Provide some information about the compiler.
11762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11763 set X $ac_compile
11764 ac_compiler=$2
11765 for ac_option in --version -v -V -qversion; do
11766   { { ac_try="$ac_compiler $ac_option >&5"
11767 case "(($ac_try" in
11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769   *) ac_try_echo=$ac_try;;
11770 esac
11771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11772 $as_echo "$ac_try_echo"; } >&5
11773   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11774   ac_status=$?
11775   if test -s conftest.err; then
11776     sed '10a\
11777 ... rest of stderr output deleted ...
11778          10q' conftest.err >conftest.er1
11779     cat conftest.er1 >&5
11780   fi
11781   rm -f conftest.er1 conftest.err
11782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783   test $ac_status = 0; }
11784 done
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11787 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11788 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h.  */
11793
11794 int
11795 main ()
11796 {
11797 #ifndef __GNUC__
11798        choke me
11799 #endif
11800
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_cxx_try_compile "$LINENO"; then :
11806   ac_compiler_gnu=yes
11807 else
11808   ac_compiler_gnu=no
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11812
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11815 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11816 if test $ac_compiler_gnu = yes; then
11817   GXX=yes
11818 else
11819   GXX=
11820 fi
11821 ac_test_CXXFLAGS=${CXXFLAGS+set}
11822 ac_save_CXXFLAGS=$CXXFLAGS
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11824 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11825 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11829    ac_cxx_werror_flag=yes
11830    ac_cv_prog_cxx_g=no
11831    CXXFLAGS="-g"
11832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h.  */
11834
11835 int
11836 main ()
11837 {
11838
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_cxx_try_compile "$LINENO"; then :
11844   ac_cv_prog_cxx_g=yes
11845 else
11846   CXXFLAGS=""
11847       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h.  */
11849
11850 int
11851 main ()
11852 {
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 if ac_fn_cxx_try_compile "$LINENO"; then :
11859
11860 else
11861   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11862          CXXFLAGS="-g"
11863          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865
11866 int
11867 main ()
11868 {
11869
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_cxx_try_compile "$LINENO"; then :
11875   ac_cv_prog_cxx_g=yes
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11885 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11886 if test "$ac_test_CXXFLAGS" = set; then
11887   CXXFLAGS=$ac_save_CXXFLAGS
11888 elif test $ac_cv_prog_cxx_g = yes; then
11889   if test "$GXX" = yes; then
11890     CXXFLAGS="-g -O2"
11891   else
11892     CXXFLAGS="-g"
11893   fi
11894 else
11895   if test "$GXX" = yes; then
11896     CXXFLAGS="-O2"
11897   else
11898     CXXFLAGS=
11899   fi
11900 fi
11901 ac_ext=c
11902 ac_cpp='$CPP $CPPFLAGS'
11903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11906
11907 depcc="$CXX"  am_compiler_list=
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11910 $as_echo_n "checking dependency style of $depcc... " >&6; }
11911 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11912   $as_echo_n "(cached) " >&6
11913 else
11914   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11915   # We make a subdir and do the tests there.  Otherwise we can end up
11916   # making bogus files that we don't know about and never remove.  For
11917   # instance it was reported that on HP-UX the gcc test will end up
11918   # making a dummy file named `D' -- because `-MD' means `put the output
11919   # in D'.
11920   mkdir conftest.dir
11921   # Copy depcomp to subdir because otherwise we won't find it if we're
11922   # using a relative directory.
11923   cp "$am_depcomp" conftest.dir
11924   cd conftest.dir
11925   # We will build objects and dependencies in a subdirectory because
11926   # it helps to detect inapplicable dependency modes.  For instance
11927   # both Tru64's cc and ICC support -MD to output dependencies as a
11928   # side effect of compilation, but ICC will put the dependencies in
11929   # the current directory while Tru64 will put them in the object
11930   # directory.
11931   mkdir sub
11932
11933   am_cv_CXX_dependencies_compiler_type=none
11934   if test "$am_compiler_list" = ""; then
11935      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11936   fi
11937   am__universal=false
11938   case " $depcc " in #(
11939      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11940      esac
11941
11942   for depmode in $am_compiler_list; do
11943     # Setup a source with many dependencies, because some compilers
11944     # like to wrap large dependency lists on column 80 (with \), and
11945     # we should not choose a depcomp mode which is confused by this.
11946     #
11947     # We need to recreate these files for each test, as the compiler may
11948     # overwrite some of them when testing with obscure command lines.
11949     # This happens at least with the AIX C compiler.
11950     : > sub/conftest.c
11951     for i in 1 2 3 4 5 6; do
11952       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11953       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11954       # Solaris 8's {/usr,}/bin/sh.
11955       touch sub/conftst$i.h
11956     done
11957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11958
11959     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11960     # mode.  It turns out that the SunPro C++ compiler does not properly
11961     # handle `-M -o', and we need to detect this.  Also, some Intel
11962     # versions had trouble with output in subdirs
11963     am__obj=sub/conftest.${OBJEXT-o}
11964     am__minus_obj="-o $am__obj"
11965     case $depmode in
11966     gcc)
11967       # This depmode causes a compiler race in universal mode.
11968       test "$am__universal" = false || continue
11969       ;;
11970     nosideeffect)
11971       # after this tag, mechanisms are not by side-effect, so they'll
11972       # only be used when explicitly requested
11973       if test "x$enable_dependency_tracking" = xyes; then
11974         continue
11975       else
11976         break
11977       fi
11978       ;;
11979     msvisualcpp | msvcmsys)
11980       # This compiler won't grok `-c -o', but also, the minuso test has
11981       # not run yet.  These depmodes are late enough in the game, and
11982       # so weak that their functioning should not be impacted.
11983       am__obj=conftest.${OBJEXT-o}
11984       am__minus_obj=
11985       ;;
11986     none) break ;;
11987     esac
11988     if depmode=$depmode \
11989        source=sub/conftest.c object=$am__obj \
11990        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11991        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11992          >/dev/null 2>conftest.err &&
11993        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11994        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11995        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11996        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11997       # icc doesn't choke on unknown options, it will just issue warnings
11998       # or remarks (even with -Werror).  So we grep stderr for any message
11999       # that says an option was ignored or not supported.
12000       # When given -MP, icc 7.0 and 7.1 complain thusly:
12001       #   icc: Command line warning: ignoring option '-M'; no argument required
12002       # The diagnosis changed in icc 8.0:
12003       #   icc: Command line remark: option '-MP' not supported
12004       if (grep 'ignoring option' conftest.err ||
12005           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12006         am_cv_CXX_dependencies_compiler_type=$depmode
12007         break
12008       fi
12009     fi
12010   done
12011
12012   cd ..
12013   rm -rf conftest.dir
12014 else
12015   am_cv_CXX_dependencies_compiler_type=none
12016 fi
12017
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12020 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12021 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12022
12023  if
12024   test "x$enable_dependency_tracking" != xno \
12025   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12026   am__fastdepCXX_TRUE=
12027   am__fastdepCXX_FALSE='#'
12028 else
12029   am__fastdepCXX_TRUE='#'
12030   am__fastdepCXX_FALSE=
12031 fi
12032
12033
12034 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12035     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12036     (test "X$CXX" != "Xg++"))) ; then
12037   ac_ext=cpp
12038 ac_cpp='$CXXCPP $CPPFLAGS'
12039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12043 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12044 if test -z "$CXXCPP"; then
12045   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048       # Double quotes because CXXCPP needs to be expanded
12049     for CXXCPP in "$CXX -E" "/lib/cpp"
12050     do
12051       ac_preproc_ok=false
12052 for ac_cxx_preproc_warn_flag in '' yes
12053 do
12054   # Use a header file that comes with gcc, so configuring glibc
12055   # with a fresh cross-compiler works.
12056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057   # <limits.h> exists even on freestanding compilers.
12058   # On the NeXT, cc -E runs the code through the compiler's parser,
12059   # not just through cpp. "Syntax error" is here to catch this case.
12060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h.  */
12062 #ifdef __STDC__
12063 # include <limits.h>
12064 #else
12065 # include <assert.h>
12066 #endif
12067                      Syntax error
12068 _ACEOF
12069 if ac_fn_cxx_try_cpp "$LINENO"; then :
12070
12071 else
12072   # Broken: fails on valid input.
12073 continue
12074 fi
12075 rm -f conftest.err conftest.i conftest.$ac_ext
12076
12077   # OK, works on sane cases.  Now check whether nonexistent headers
12078   # can be detected and how.
12079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081 #include <ac_nonexistent.h>
12082 _ACEOF
12083 if ac_fn_cxx_try_cpp "$LINENO"; then :
12084   # Broken: success on invalid input.
12085 continue
12086 else
12087   # Passes both tests.
12088 ac_preproc_ok=:
12089 break
12090 fi
12091 rm -f conftest.err conftest.i conftest.$ac_ext
12092
12093 done
12094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12095 rm -f conftest.i conftest.err conftest.$ac_ext
12096 if $ac_preproc_ok; then :
12097   break
12098 fi
12099
12100     done
12101     ac_cv_prog_CXXCPP=$CXXCPP
12102
12103 fi
12104   CXXCPP=$ac_cv_prog_CXXCPP
12105 else
12106   ac_cv_prog_CXXCPP=$CXXCPP
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12109 $as_echo "$CXXCPP" >&6; }
12110 ac_preproc_ok=false
12111 for ac_cxx_preproc_warn_flag in '' yes
12112 do
12113   # Use a header file that comes with gcc, so configuring glibc
12114   # with a fresh cross-compiler works.
12115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116   # <limits.h> exists even on freestanding compilers.
12117   # On the NeXT, cc -E runs the code through the compiler's parser,
12118   # not just through cpp. "Syntax error" is here to catch this case.
12119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h.  */
12121 #ifdef __STDC__
12122 # include <limits.h>
12123 #else
12124 # include <assert.h>
12125 #endif
12126                      Syntax error
12127 _ACEOF
12128 if ac_fn_cxx_try_cpp "$LINENO"; then :
12129
12130 else
12131   # Broken: fails on valid input.
12132 continue
12133 fi
12134 rm -f conftest.err conftest.i conftest.$ac_ext
12135
12136   # OK, works on sane cases.  Now check whether nonexistent headers
12137   # can be detected and how.
12138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h.  */
12140 #include <ac_nonexistent.h>
12141 _ACEOF
12142 if ac_fn_cxx_try_cpp "$LINENO"; then :
12143   # Broken: success on invalid input.
12144 continue
12145 else
12146   # Passes both tests.
12147 ac_preproc_ok=:
12148 break
12149 fi
12150 rm -f conftest.err conftest.i conftest.$ac_ext
12151
12152 done
12153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12154 rm -f conftest.i conftest.err conftest.$ac_ext
12155 if $ac_preproc_ok; then :
12156
12157 else
12158   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12160 _lt_caught_CXX_error=yes; }
12161 fi
12162
12163 ac_ext=c
12164 ac_cpp='$CPP $CPPFLAGS'
12165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12168
12169 else
12170   _lt_caught_CXX_error=yes
12171 fi
12172
12173
12174
12175
12176 ac_ext=cpp
12177 ac_cpp='$CXXCPP $CPPFLAGS'
12178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12181
12182 archive_cmds_need_lc_CXX=no
12183 allow_undefined_flag_CXX=
12184 always_export_symbols_CXX=no
12185 archive_expsym_cmds_CXX=
12186 compiler_needs_object_CXX=no
12187 export_dynamic_flag_spec_CXX=
12188 hardcode_direct_CXX=no
12189 hardcode_direct_absolute_CXX=no
12190 hardcode_libdir_flag_spec_CXX=
12191 hardcode_libdir_flag_spec_ld_CXX=
12192 hardcode_libdir_separator_CXX=
12193 hardcode_minus_L_CXX=no
12194 hardcode_shlibpath_var_CXX=unsupported
12195 hardcode_automatic_CXX=no
12196 inherit_rpath_CXX=no
12197 module_cmds_CXX=
12198 module_expsym_cmds_CXX=
12199 link_all_deplibs_CXX=unknown
12200 old_archive_cmds_CXX=$old_archive_cmds
12201 no_undefined_flag_CXX=
12202 whole_archive_flag_spec_CXX=
12203 enable_shared_with_static_runtimes_CXX=no
12204
12205 # Source file extension for C++ test sources.
12206 ac_ext=cpp
12207
12208 # Object file extension for compiled C++ test sources.
12209 objext=o
12210 objext_CXX=$objext
12211
12212 # No sense in running all these tests if we already determined that
12213 # the CXX compiler isn't working.  Some variables (like enable_shared)
12214 # are currently assumed to apply to all compilers on this platform,
12215 # and will be corrupted by setting them based on a non-working compiler.
12216 if test "$_lt_caught_CXX_error" != yes; then
12217   # Code to be used in simple compile tests
12218   lt_simple_compile_test_code="int some_variable = 0;"
12219
12220   # Code to be used in simple link tests
12221   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12222
12223   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12224
12225
12226
12227
12228
12229
12230 # If no C compiler was specified, use CC.
12231 LTCC=${LTCC-"$CC"}
12232
12233 # If no C compiler flags were specified, use CFLAGS.
12234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12235
12236 # Allow CC to be a program name with arguments.
12237 compiler=$CC
12238
12239
12240   # save warnings/boilerplate of simple test code
12241   ac_outfile=conftest.$ac_objext
12242 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12244 _lt_compiler_boilerplate=`cat conftest.err`
12245 $RM conftest*
12246
12247   ac_outfile=conftest.$ac_objext
12248 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12250 _lt_linker_boilerplate=`cat conftest.err`
12251 $RM -r conftest*
12252
12253
12254   # Allow CC to be a program name with arguments.
12255   lt_save_CC=$CC
12256   lt_save_LD=$LD
12257   lt_save_GCC=$GCC
12258   GCC=$GXX
12259   lt_save_with_gnu_ld=$with_gnu_ld
12260   lt_save_path_LD=$lt_cv_path_LD
12261   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12262     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12263   else
12264     $as_unset lt_cv_prog_gnu_ld
12265   fi
12266   if test -n "${lt_cv_path_LDCXX+set}"; then
12267     lt_cv_path_LD=$lt_cv_path_LDCXX
12268   else
12269     $as_unset lt_cv_path_LD
12270   fi
12271   test -z "${LDCXX+set}" || LD=$LDCXX
12272   CC=${CXX-"c++"}
12273   compiler=$CC
12274   compiler_CXX=$CC
12275   for cc_temp in $compiler""; do
12276   case $cc_temp in
12277     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12278     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12279     \-*) ;;
12280     *) break;;
12281   esac
12282 done
12283 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12284
12285
12286   if test -n "$compiler"; then
12287     # We don't want -fno-exception when compiling C++ code, so set the
12288     # no_builtin_flag separately
12289     if test "$GXX" = yes; then
12290       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12291     else
12292       lt_prog_compiler_no_builtin_flag_CXX=
12293     fi
12294
12295     if test "$GXX" = yes; then
12296       # Set up default GNU C++ configuration
12297
12298
12299
12300 # Check whether --with-gnu-ld was given.
12301 if test "${with_gnu_ld+set}" = set; then :
12302   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12303 else
12304   with_gnu_ld=no
12305 fi
12306
12307 ac_prog=ld
12308 if test "$GCC" = yes; then
12309   # Check if gcc -print-prog-name=ld gives a path.
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12311 $as_echo_n "checking for ld used by $CC... " >&6; }
12312   case $host in
12313   *-*-mingw*)
12314     # gcc leaves a trailing carriage return which upsets mingw
12315     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12316   *)
12317     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12318   esac
12319   case $ac_prog in
12320     # Accept absolute paths.
12321     [\\/]* | ?:[\\/]*)
12322       re_direlt='/[^/][^/]*/\.\./'
12323       # Canonicalize the pathname of ld
12324       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12325       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12326         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12327       done
12328       test -z "$LD" && LD="$ac_prog"
12329       ;;
12330   "")
12331     # If it fails, then pretend we aren't using GCC.
12332     ac_prog=ld
12333     ;;
12334   *)
12335     # If it is relative, then search for the first ld in PATH.
12336     with_gnu_ld=unknown
12337     ;;
12338   esac
12339 elif test "$with_gnu_ld" = yes; then
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12341 $as_echo_n "checking for GNU ld... " >&6; }
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12344 $as_echo_n "checking for non-GNU ld... " >&6; }
12345 fi
12346 if test "${lt_cv_path_LD+set}" = set; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   if test -z "$LD"; then
12350   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12351   for ac_dir in $PATH; do
12352     IFS="$lt_save_ifs"
12353     test -z "$ac_dir" && ac_dir=.
12354     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12355       lt_cv_path_LD="$ac_dir/$ac_prog"
12356       # Check to see if the program is GNU ld.  I'd rather use --version,
12357       # but apparently some variants of GNU ld only accept -v.
12358       # Break only if it was the GNU/non-GNU ld that we prefer.
12359       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12360       *GNU* | *'with BFD'*)
12361         test "$with_gnu_ld" != no && break
12362         ;;
12363       *)
12364         test "$with_gnu_ld" != yes && break
12365         ;;
12366       esac
12367     fi
12368   done
12369   IFS="$lt_save_ifs"
12370 else
12371   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12372 fi
12373 fi
12374
12375 LD="$lt_cv_path_LD"
12376 if test -n "$LD"; then
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12378 $as_echo "$LD" >&6; }
12379 else
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 fi
12383 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12385 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12386 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12387   $as_echo_n "(cached) " >&6
12388 else
12389   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12390 case `$LD -v 2>&1 </dev/null` in
12391 *GNU* | *'with BFD'*)
12392   lt_cv_prog_gnu_ld=yes
12393   ;;
12394 *)
12395   lt_cv_prog_gnu_ld=no
12396   ;;
12397 esac
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12400 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12401 with_gnu_ld=$lt_cv_prog_gnu_ld
12402
12403
12404
12405
12406
12407
12408
12409       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12410       # archiving commands below assume that GNU ld is being used.
12411       if test "$with_gnu_ld" = yes; then
12412         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12414
12415         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12416         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12417
12418         # If archive_cmds runs LD, not CC, wlarc should be empty
12419         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12420         #     investigate it a little bit more. (MM)
12421         wlarc='${wl}'
12422
12423         # ancient GNU ld didn't support --whole-archive et. al.
12424         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12425           $GREP 'no-whole-archive' > /dev/null; then
12426           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12427         else
12428           whole_archive_flag_spec_CXX=
12429         fi
12430       else
12431         with_gnu_ld=no
12432         wlarc=
12433
12434         # A generic and very simple default shared library creation
12435         # command for GNU C++ for the case where it uses the native
12436         # linker, instead of GNU ld.  If possible, this setting should
12437         # overridden to take advantage of the native linker features on
12438         # the platform it is being used on.
12439         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12440       fi
12441
12442       # Commands to make compiler produce verbose output that lists
12443       # what "hidden" libraries, object files and flags are used when
12444       # linking a shared library.
12445       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12446
12447     else
12448       GXX=no
12449       with_gnu_ld=no
12450       wlarc=
12451     fi
12452
12453     # PORTME: fill in a description of your system's C++ link characteristics
12454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12455 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12456     ld_shlibs_CXX=yes
12457     case $host_os in
12458       aix3*)
12459         # FIXME: insert proper C++ library support
12460         ld_shlibs_CXX=no
12461         ;;
12462       aix[4-9]*)
12463         if test "$host_cpu" = ia64; then
12464           # On IA64, the linker does run time linking by default, so we don't
12465           # have to do anything special.
12466           aix_use_runtimelinking=no
12467           exp_sym_flag='-Bexport'
12468           no_entry_flag=""
12469         else
12470           aix_use_runtimelinking=no
12471
12472           # Test if we are trying to use run time linking or normal
12473           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12474           # need to do runtime linking.
12475           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12476             for ld_flag in $LDFLAGS; do
12477               case $ld_flag in
12478               *-brtl*)
12479                 aix_use_runtimelinking=yes
12480                 break
12481                 ;;
12482               esac
12483             done
12484             ;;
12485           esac
12486
12487           exp_sym_flag='-bexport'
12488           no_entry_flag='-bnoentry'
12489         fi
12490
12491         # When large executables or shared objects are built, AIX ld can
12492         # have problems creating the table of contents.  If linking a library
12493         # or program results in "error TOC overflow" add -mminimal-toc to
12494         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12495         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12496
12497         archive_cmds_CXX=''
12498         hardcode_direct_CXX=yes
12499         hardcode_direct_absolute_CXX=yes
12500         hardcode_libdir_separator_CXX=':'
12501         link_all_deplibs_CXX=yes
12502         file_list_spec_CXX='${wl}-f,'
12503
12504         if test "$GXX" = yes; then
12505           case $host_os in aix4.[012]|aix4.[012].*)
12506           # We only want to do this on AIX 4.2 and lower, the check
12507           # below for broken collect2 doesn't work under 4.3+
12508           collect2name=`${CC} -print-prog-name=collect2`
12509           if test -f "$collect2name" &&
12510              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12511           then
12512             # We have reworked collect2
12513             :
12514           else
12515             # We have old collect2
12516             hardcode_direct_CXX=unsupported
12517             # It fails to find uninstalled libraries when the uninstalled
12518             # path is not listed in the libpath.  Setting hardcode_minus_L
12519             # to unsupported forces relinking
12520             hardcode_minus_L_CXX=yes
12521             hardcode_libdir_flag_spec_CXX='-L$libdir'
12522             hardcode_libdir_separator_CXX=
12523           fi
12524           esac
12525           shared_flag='-shared'
12526           if test "$aix_use_runtimelinking" = yes; then
12527             shared_flag="$shared_flag "'${wl}-G'
12528           fi
12529         else
12530           # not using gcc
12531           if test "$host_cpu" = ia64; then
12532           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12533           # chokes on -Wl,-G. The following line is correct:
12534           shared_flag='-G'
12535           else
12536             if test "$aix_use_runtimelinking" = yes; then
12537               shared_flag='${wl}-G'
12538             else
12539               shared_flag='${wl}-bM:SRE'
12540             fi
12541           fi
12542         fi
12543
12544         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12545         # It seems that -bexpall does not export symbols beginning with
12546         # underscore (_), so it is better to generate a list of symbols to
12547         # export.
12548         always_export_symbols_CXX=yes
12549         if test "$aix_use_runtimelinking" = yes; then
12550           # Warning - without using the other runtime loading flags (-brtl),
12551           # -berok will link without error, but may produce a broken library.
12552           allow_undefined_flag_CXX='-berok'
12553           # Determine the default libpath from the value encoded in an empty
12554           # executable.
12555           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h.  */
12557
12558 int
12559 main ()
12560 {
12561
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 if ac_fn_cxx_try_link "$LINENO"; then :
12567
12568 lt_aix_libpath_sed='
12569     /Import File Strings/,/^$/ {
12570         /^0/ {
12571             s/^0  *\(.*\)$/\1/
12572             p
12573         }
12574     }'
12575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12576 # Check for a 64-bit object if we didn't find anything.
12577 if test -z "$aix_libpath"; then
12578   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579 fi
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext \
12582     conftest$ac_exeext conftest.$ac_ext
12583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12584
12585           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12586
12587           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12588         else
12589           if test "$host_cpu" = ia64; then
12590             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12591             allow_undefined_flag_CXX="-z nodefs"
12592             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"
12593           else
12594             # Determine the default libpath from the value encoded in an
12595             # empty executable.
12596             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h.  */
12598
12599 int
12600 main ()
12601 {
12602
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 if ac_fn_cxx_try_link "$LINENO"; then :
12608
12609 lt_aix_libpath_sed='
12610     /Import File Strings/,/^$/ {
12611         /^0/ {
12612             s/^0  *\(.*\)$/\1/
12613             p
12614         }
12615     }'
12616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12617 # Check for a 64-bit object if we didn't find anything.
12618 if test -z "$aix_libpath"; then
12619   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12620 fi
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext \
12623     conftest$ac_exeext conftest.$ac_ext
12624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12625
12626             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12627             # Warning - without using the other run time loading flags,
12628             # -berok will link without error, but may produce a broken library.
12629             no_undefined_flag_CXX=' ${wl}-bernotok'
12630             allow_undefined_flag_CXX=' ${wl}-berok'
12631             # Exported symbols can be pulled into shared objects from archives
12632             whole_archive_flag_spec_CXX='$convenience'
12633             archive_cmds_need_lc_CXX=yes
12634             # This is similar to how AIX traditionally builds its shared
12635             # libraries.
12636             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12637           fi
12638         fi
12639         ;;
12640
12641       beos*)
12642         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12643           allow_undefined_flag_CXX=unsupported
12644           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12645           # support --undefined.  This deserves some investigation.  FIXME
12646           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12647         else
12648           ld_shlibs_CXX=no
12649         fi
12650         ;;
12651
12652       chorus*)
12653         case $cc_basename in
12654           *)
12655           # FIXME: insert proper C++ library support
12656           ld_shlibs_CXX=no
12657           ;;
12658         esac
12659         ;;
12660
12661       cygwin* | mingw* | pw32* | cegcc*)
12662         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12663         # as there is no search path for DLLs.
12664         hardcode_libdir_flag_spec_CXX='-L$libdir'
12665         allow_undefined_flag_CXX=unsupported
12666         always_export_symbols_CXX=no
12667         enable_shared_with_static_runtimes_CXX=yes
12668
12669         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12670           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'
12671           # If the export-symbols file already is a .def file (1st line
12672           # is EXPORTS), use it as is; otherwise, prepend...
12673           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12674             cp $export_symbols $output_objdir/$soname.def;
12675           else
12676             echo EXPORTS > $output_objdir/$soname.def;
12677             cat $export_symbols >> $output_objdir/$soname.def;
12678           fi~
12679           $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'
12680         else
12681           ld_shlibs_CXX=no
12682         fi
12683         ;;
12684       darwin* | rhapsody*)
12685
12686
12687   archive_cmds_need_lc_CXX=no
12688   hardcode_direct_CXX=no
12689   hardcode_automatic_CXX=yes
12690   hardcode_shlibpath_var_CXX=unsupported
12691   whole_archive_flag_spec_CXX=''
12692   link_all_deplibs_CXX=yes
12693   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12694   case $cc_basename in
12695      ifort*) _lt_dar_can_shared=yes ;;
12696      *) _lt_dar_can_shared=$GCC ;;
12697   esac
12698   if test "$_lt_dar_can_shared" = "yes"; then
12699     output_verbose_link_cmd=echo
12700     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}"
12701     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12702     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}"
12703     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}"
12704        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12705       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}"
12706       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}"
12707     fi
12708
12709   else
12710   ld_shlibs_CXX=no
12711   fi
12712
12713         ;;
12714
12715       dgux*)
12716         case $cc_basename in
12717           ec++*)
12718             # FIXME: insert proper C++ library support
12719             ld_shlibs_CXX=no
12720             ;;
12721           ghcx*)
12722             # Green Hills C++ Compiler
12723             # FIXME: insert proper C++ library support
12724             ld_shlibs_CXX=no
12725             ;;
12726           *)
12727             # FIXME: insert proper C++ library support
12728             ld_shlibs_CXX=no
12729             ;;
12730         esac
12731         ;;
12732
12733       freebsd[12]*)
12734         # C++ shared libraries reported to be fairly broken before
12735         # switch to ELF
12736         ld_shlibs_CXX=no
12737         ;;
12738
12739       freebsd-elf*)
12740         archive_cmds_need_lc_CXX=no
12741         ;;
12742
12743       freebsd* | dragonfly*)
12744         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12745         # conventions
12746         ld_shlibs_CXX=yes
12747         ;;
12748
12749       gnu*)
12750         ;;
12751
12752       hpux9*)
12753         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12754         hardcode_libdir_separator_CXX=:
12755         export_dynamic_flag_spec_CXX='${wl}-E'
12756         hardcode_direct_CXX=yes
12757         hardcode_minus_L_CXX=yes # Not in the search PATH,
12758                                              # but as the default
12759                                              # location of the library.
12760
12761         case $cc_basename in
12762           CC*)
12763             # FIXME: insert proper C++ library support
12764             ld_shlibs_CXX=no
12765             ;;
12766           aCC*)
12767             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12768             # Commands to make compiler produce verbose output that lists
12769             # what "hidden" libraries, object files and flags are used when
12770             # linking a shared library.
12771             #
12772             # There doesn't appear to be a way to prevent this compiler from
12773             # explicitly linking system object files so we need to strip them
12774             # from the output so that they don't get included in the library
12775             # dependencies.
12776             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12777             ;;
12778           *)
12779             if test "$GXX" = yes; then
12780               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12781             else
12782               # FIXME: insert proper C++ library support
12783               ld_shlibs_CXX=no
12784             fi
12785             ;;
12786         esac
12787         ;;
12788
12789       hpux10*|hpux11*)
12790         if test $with_gnu_ld = no; then
12791           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12792           hardcode_libdir_separator_CXX=:
12793
12794           case $host_cpu in
12795             hppa*64*|ia64*)
12796               ;;
12797             *)
12798               export_dynamic_flag_spec_CXX='${wl}-E'
12799               ;;
12800           esac
12801         fi
12802         case $host_cpu in
12803           hppa*64*|ia64*)
12804             hardcode_direct_CXX=no
12805             hardcode_shlibpath_var_CXX=no
12806             ;;
12807           *)
12808             hardcode_direct_CXX=yes
12809             hardcode_direct_absolute_CXX=yes
12810             hardcode_minus_L_CXX=yes # Not in the search PATH,
12811                                                  # but as the default
12812                                                  # location of the library.
12813             ;;
12814         esac
12815
12816         case $cc_basename in
12817           CC*)
12818             # FIXME: insert proper C++ library support
12819             ld_shlibs_CXX=no
12820             ;;
12821           aCC*)
12822             case $host_cpu in
12823               hppa*64*)
12824                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825                 ;;
12826               ia64*)
12827                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828                 ;;
12829               *)
12830                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12831                 ;;
12832             esac
12833             # Commands to make compiler produce verbose output that lists
12834             # what "hidden" libraries, object files and flags are used when
12835             # linking a shared library.
12836             #
12837             # There doesn't appear to be a way to prevent this compiler from
12838             # explicitly linking system object files so we need to strip them
12839             # from the output so that they don't get included in the library
12840             # dependencies.
12841             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12842             ;;
12843           *)
12844             if test "$GXX" = yes; then
12845               if test $with_gnu_ld = no; then
12846                 case $host_cpu in
12847                   hppa*64*)
12848                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849                     ;;
12850                   ia64*)
12851                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852                     ;;
12853                   *)
12854                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855                     ;;
12856                 esac
12857               fi
12858             else
12859               # FIXME: insert proper C++ library support
12860               ld_shlibs_CXX=no
12861             fi
12862             ;;
12863         esac
12864         ;;
12865
12866       interix[3-9]*)
12867         hardcode_direct_CXX=no
12868         hardcode_shlibpath_var_CXX=no
12869         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12870         export_dynamic_flag_spec_CXX='${wl}-E'
12871         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12872         # Instead, shared libraries are loaded at an image base (0x10000000 by
12873         # default) and relocated if they conflict, which is a slow very memory
12874         # consuming and fragmenting process.  To avoid this, we pick a random,
12875         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12876         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12877         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'
12878         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'
12879         ;;
12880       irix5* | irix6*)
12881         case $cc_basename in
12882           CC*)
12883             # SGI C++
12884             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12885
12886             # Archives containing C++ object files must be created using
12887             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12888             # necessary to make sure instantiated templates are included
12889             # in the archive.
12890             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12891             ;;
12892           *)
12893             if test "$GXX" = yes; then
12894               if test "$with_gnu_ld" = no; then
12895                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12896               else
12897                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12898               fi
12899             fi
12900             link_all_deplibs_CXX=yes
12901             ;;
12902         esac
12903         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12904         hardcode_libdir_separator_CXX=:
12905         inherit_rpath_CXX=yes
12906         ;;
12907
12908       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12909         case $cc_basename in
12910           KCC*)
12911             # Kuck and Associates, Inc. (KAI) C++ Compiler
12912
12913             # KCC will only create a shared library if the output file
12914             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12915             # to its proper name (with version) after linking.
12916             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'
12917             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'
12918             # Commands to make compiler produce verbose output that lists
12919             # what "hidden" libraries, object files and flags are used when
12920             # linking a shared library.
12921             #
12922             # There doesn't appear to be a way to prevent this compiler from
12923             # explicitly linking system object files so we need to strip them
12924             # from the output so that they don't get included in the library
12925             # dependencies.
12926             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12927
12928             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12929             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12930
12931             # Archives containing C++ object files must be created using
12932             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12933             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12934             ;;
12935           icpc* | ecpc* )
12936             # Intel C++
12937             with_gnu_ld=yes
12938             # version 8.0 and above of icpc choke on multiply defined symbols
12939             # if we add $predep_objects and $postdep_objects, however 7.1 and
12940             # earlier do not add the objects themselves.
12941             case `$CC -V 2>&1` in
12942               *"Version 7."*)
12943                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944                 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'
12945                 ;;
12946               *)  # Version 8.0 or newer
12947                 tmp_idyn=
12948                 case $host_cpu in
12949                   ia64*) tmp_idyn=' -i_dynamic';;
12950                 esac
12951                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12952                 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'
12953                 ;;
12954             esac
12955             archive_cmds_need_lc_CXX=no
12956             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12957             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12958             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12959             ;;
12960           pgCC* | pgcpp*)
12961             # Portland Group C++ compiler
12962             case `$CC -V` in
12963             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12964               prelink_cmds_CXX='tpldir=Template.dir~
12965                 rm -rf $tpldir~
12966                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12967                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12968               old_archive_cmds_CXX='tpldir=Template.dir~
12969                 rm -rf $tpldir~
12970                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12971                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12972                 $RANLIB $oldlib'
12973               archive_cmds_CXX='tpldir=Template.dir~
12974                 rm -rf $tpldir~
12975                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12976                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12977               archive_expsym_cmds_CXX='tpldir=Template.dir~
12978                 rm -rf $tpldir~
12979                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12980                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12981               ;;
12982             *) # Version 6 will use weak symbols
12983               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12984               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'
12985               ;;
12986             esac
12987
12988             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12989             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12990             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12991             ;;
12992           cxx*)
12993             # Compaq C++
12994             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995             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'
12996
12997             runpath_var=LD_RUN_PATH
12998             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12999             hardcode_libdir_separator_CXX=:
13000
13001             # Commands to make compiler produce verbose output that lists
13002             # what "hidden" libraries, object files and flags are used when
13003             # linking a shared library.
13004             #
13005             # There doesn't appear to be a way to prevent this compiler from
13006             # explicitly linking system object files so we need to strip them
13007             # from the output so that they don't get included in the library
13008             # dependencies.
13009             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13010             ;;
13011           xl*)
13012             # IBM XL 8.0 on PPC, with GNU ld
13013             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13014             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13015             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016             if test "x$supports_anon_versioning" = xyes; then
13017               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13018                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13019                 echo "local: *; };" >> $output_objdir/$libname.ver~
13020                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13021             fi
13022             ;;
13023           *)
13024             case `$CC -V 2>&1 | sed 5q` in
13025             *Sun\ C*)
13026               # Sun C++ 5.9
13027               no_undefined_flag_CXX=' -zdefs'
13028               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029               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'
13030               hardcode_libdir_flag_spec_CXX='-R$libdir'
13031               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13032               compiler_needs_object_CXX=yes
13033
13034               # Not sure whether something based on
13035               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13036               # would be better.
13037               output_verbose_link_cmd='echo'
13038
13039               # Archives containing C++ object files must be created using
13040               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13041               # necessary to make sure instantiated templates are included
13042               # in the archive.
13043               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13044               ;;
13045             esac
13046             ;;
13047         esac
13048         ;;
13049
13050       lynxos*)
13051         # FIXME: insert proper C++ library support
13052         ld_shlibs_CXX=no
13053         ;;
13054
13055       m88k*)
13056         # FIXME: insert proper C++ library support
13057         ld_shlibs_CXX=no
13058         ;;
13059
13060       mvs*)
13061         case $cc_basename in
13062           cxx*)
13063             # FIXME: insert proper C++ library support
13064             ld_shlibs_CXX=no
13065             ;;
13066           *)
13067             # FIXME: insert proper C++ library support
13068             ld_shlibs_CXX=no
13069             ;;
13070         esac
13071         ;;
13072
13073       netbsd*)
13074         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13075           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13076           wlarc=
13077           hardcode_libdir_flag_spec_CXX='-R$libdir'
13078           hardcode_direct_CXX=yes
13079           hardcode_shlibpath_var_CXX=no
13080         fi
13081         # Workaround some broken pre-1.5 toolchains
13082         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13083         ;;
13084
13085       *nto* | *qnx*)
13086         ld_shlibs_CXX=yes
13087         ;;
13088
13089       openbsd2*)
13090         # C++ shared libraries are fairly broken
13091         ld_shlibs_CXX=no
13092         ;;
13093
13094       openbsd*)
13095         if test -f /usr/libexec/ld.so; then
13096           hardcode_direct_CXX=yes
13097           hardcode_shlibpath_var_CXX=no
13098           hardcode_direct_absolute_CXX=yes
13099           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13100           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13101           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13102             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13103             export_dynamic_flag_spec_CXX='${wl}-E'
13104             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13105           fi
13106           output_verbose_link_cmd=echo
13107         else
13108           ld_shlibs_CXX=no
13109         fi
13110         ;;
13111
13112       osf3* | osf4* | osf5*)
13113         case $cc_basename in
13114           KCC*)
13115             # Kuck and Associates, Inc. (KAI) C++ Compiler
13116
13117             # KCC will only create a shared library if the output file
13118             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13119             # to its proper name (with version) after linking.
13120             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'
13121
13122             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13123             hardcode_libdir_separator_CXX=:
13124
13125             # Archives containing C++ object files must be created using
13126             # the KAI C++ compiler.
13127             case $host in
13128               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13129               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13130             esac
13131             ;;
13132           RCC*)
13133             # Rational C++ 2.4.1
13134             # FIXME: insert proper C++ library support
13135             ld_shlibs_CXX=no
13136             ;;
13137           cxx*)
13138             case $host in
13139               osf3*)
13140                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13141                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13142                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13143                 ;;
13144               *)
13145                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13146                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13147                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13148                   echo "-hidden">> $lib.exp~
13149                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13150                   $RM $lib.exp'
13151                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13152                 ;;
13153             esac
13154
13155             hardcode_libdir_separator_CXX=:
13156
13157             # Commands to make compiler produce verbose output that lists
13158             # what "hidden" libraries, object files and flags are used when
13159             # linking a shared library.
13160             #
13161             # There doesn't appear to be a way to prevent this compiler from
13162             # explicitly linking system object files so we need to strip them
13163             # from the output so that they don't get included in the library
13164             # dependencies.
13165             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13166             ;;
13167           *)
13168             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13169               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13170               case $host in
13171                 osf3*)
13172                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13173                   ;;
13174                 *)
13175                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13176                   ;;
13177               esac
13178
13179               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13180               hardcode_libdir_separator_CXX=:
13181
13182               # Commands to make compiler produce verbose output that lists
13183               # what "hidden" libraries, object files and flags are used when
13184               # linking a shared library.
13185               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13186
13187             else
13188               # FIXME: insert proper C++ library support
13189               ld_shlibs_CXX=no
13190             fi
13191             ;;
13192         esac
13193         ;;
13194
13195       psos*)
13196         # FIXME: insert proper C++ library support
13197         ld_shlibs_CXX=no
13198         ;;
13199
13200       sunos4*)
13201         case $cc_basename in
13202           CC*)
13203             # Sun C++ 4.x
13204             # FIXME: insert proper C++ library support
13205             ld_shlibs_CXX=no
13206             ;;
13207           lcc*)
13208             # Lucid
13209             # FIXME: insert proper C++ library support
13210             ld_shlibs_CXX=no
13211             ;;
13212           *)
13213             # FIXME: insert proper C++ library support
13214             ld_shlibs_CXX=no
13215             ;;
13216         esac
13217         ;;
13218
13219       solaris*)
13220         case $cc_basename in
13221           CC*)
13222             # Sun C++ 4.2, 5.x and Centerline C++
13223             archive_cmds_need_lc_CXX=yes
13224             no_undefined_flag_CXX=' -zdefs'
13225             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13226             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13227               $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'
13228
13229             hardcode_libdir_flag_spec_CXX='-R$libdir'
13230             hardcode_shlibpath_var_CXX=no
13231             case $host_os in
13232               solaris2.[0-5] | solaris2.[0-5].*) ;;
13233               *)
13234                 # The compiler driver will combine and reorder linker options,
13235                 # but understands `-z linker_flag'.
13236                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13237                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13238                 ;;
13239             esac
13240             link_all_deplibs_CXX=yes
13241
13242             output_verbose_link_cmd='echo'
13243
13244             # Archives containing C++ object files must be created using
13245             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13246             # necessary to make sure instantiated templates are included
13247             # in the archive.
13248             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13249             ;;
13250           gcx*)
13251             # Green Hills C++ Compiler
13252             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13253
13254             # The C++ compiler must be used to create the archive.
13255             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13256             ;;
13257           *)
13258             # GNU C++ compiler with Solaris linker
13259             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13260               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13261               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13262                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13263                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13264                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13265
13266                 # Commands to make compiler produce verbose output that lists
13267                 # what "hidden" libraries, object files and flags are used when
13268                 # linking a shared library.
13269                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13270               else
13271                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13272                 # platform.
13273                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13274                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13275                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13276
13277                 # Commands to make compiler produce verbose output that lists
13278                 # what "hidden" libraries, object files and flags are used when
13279                 # linking a shared library.
13280                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13281               fi
13282
13283               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13284               case $host_os in
13285                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13286                 *)
13287                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13288                   ;;
13289               esac
13290             fi
13291             ;;
13292         esac
13293         ;;
13294
13295     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13296       no_undefined_flag_CXX='${wl}-z,text'
13297       archive_cmds_need_lc_CXX=no
13298       hardcode_shlibpath_var_CXX=no
13299       runpath_var='LD_RUN_PATH'
13300
13301       case $cc_basename in
13302         CC*)
13303           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305           ;;
13306         *)
13307           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309           ;;
13310       esac
13311       ;;
13312
13313       sysv5* | sco3.2v5* | sco5v6*)
13314         # Note: We can NOT use -z defs as we might desire, because we do not
13315         # link with -lc, and that would cause any symbols used from libc to
13316         # always be unresolved, which means just about no library would
13317         # ever link correctly.  If we're not using GNU ld we use -z text
13318         # though, which does catch some bad symbols but isn't as heavy-handed
13319         # as -z defs.
13320         no_undefined_flag_CXX='${wl}-z,text'
13321         allow_undefined_flag_CXX='${wl}-z,nodefs'
13322         archive_cmds_need_lc_CXX=no
13323         hardcode_shlibpath_var_CXX=no
13324         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13325         hardcode_libdir_separator_CXX=':'
13326         link_all_deplibs_CXX=yes
13327         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13328         runpath_var='LD_RUN_PATH'
13329
13330         case $cc_basename in
13331           CC*)
13332             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334             ;;
13335           *)
13336             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338             ;;
13339         esac
13340       ;;
13341
13342       tandem*)
13343         case $cc_basename in
13344           NCC*)
13345             # NonStop-UX NCC 3.20
13346             # FIXME: insert proper C++ library support
13347             ld_shlibs_CXX=no
13348             ;;
13349           *)
13350             # FIXME: insert proper C++ library support
13351             ld_shlibs_CXX=no
13352             ;;
13353         esac
13354         ;;
13355
13356       vxworks*)
13357         # FIXME: insert proper C++ library support
13358         ld_shlibs_CXX=no
13359         ;;
13360
13361       *)
13362         # FIXME: insert proper C++ library support
13363         ld_shlibs_CXX=no
13364         ;;
13365     esac
13366
13367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13368 $as_echo "$ld_shlibs_CXX" >&6; }
13369     test "$ld_shlibs_CXX" = no && can_build_shared=no
13370
13371     GCC_CXX="$GXX"
13372     LD_CXX="$LD"
13373
13374     ## CAVEAT EMPTOR:
13375     ## There is no encapsulation within the following macros, do not change
13376     ## the running order or otherwise move them around unless you know exactly
13377     ## what you are doing...
13378     # Dependencies to place before and after the object being linked:
13379 predep_objects_CXX=
13380 postdep_objects_CXX=
13381 predeps_CXX=
13382 postdeps_CXX=
13383 compiler_lib_search_path_CXX=
13384
13385 cat > conftest.$ac_ext <<_LT_EOF
13386 class Foo
13387 {
13388 public:
13389   Foo (void) { a = 0; }
13390 private:
13391   int a;
13392 };
13393 _LT_EOF
13394
13395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13396   (eval $ac_compile) 2>&5
13397   ac_status=$?
13398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399   test $ac_status = 0; }; then
13400   # Parse the compiler output and extract the necessary
13401   # objects, libraries and library flags.
13402
13403   # Sentinel used to keep track of whether or not we are before
13404   # the conftest object file.
13405   pre_test_object_deps_done=no
13406
13407   for p in `eval "$output_verbose_link_cmd"`; do
13408     case $p in
13409
13410     -L* | -R* | -l*)
13411        # Some compilers place space between "-{L,R}" and the path.
13412        # Remove the space.
13413        if test $p = "-L" ||
13414           test $p = "-R"; then
13415          prev=$p
13416          continue
13417        else
13418          prev=
13419        fi
13420
13421        if test "$pre_test_object_deps_done" = no; then
13422          case $p in
13423          -L* | -R*)
13424            # Internal compiler library paths should come after those
13425            # provided the user.  The postdeps already come after the
13426            # user supplied libs so there is no need to process them.
13427            if test -z "$compiler_lib_search_path_CXX"; then
13428              compiler_lib_search_path_CXX="${prev}${p}"
13429            else
13430              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13431            fi
13432            ;;
13433          # The "-l" case would never come before the object being
13434          # linked, so don't bother handling this case.
13435          esac
13436        else
13437          if test -z "$postdeps_CXX"; then
13438            postdeps_CXX="${prev}${p}"
13439          else
13440            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13441          fi
13442        fi
13443        ;;
13444
13445     *.$objext)
13446        # This assumes that the test object file only shows up
13447        # once in the compiler output.
13448        if test "$p" = "conftest.$objext"; then
13449          pre_test_object_deps_done=yes
13450          continue
13451        fi
13452
13453        if test "$pre_test_object_deps_done" = no; then
13454          if test -z "$predep_objects_CXX"; then
13455            predep_objects_CXX="$p"
13456          else
13457            predep_objects_CXX="$predep_objects_CXX $p"
13458          fi
13459        else
13460          if test -z "$postdep_objects_CXX"; then
13461            postdep_objects_CXX="$p"
13462          else
13463            postdep_objects_CXX="$postdep_objects_CXX $p"
13464          fi
13465        fi
13466        ;;
13467
13468     *) ;; # Ignore the rest.
13469
13470     esac
13471   done
13472
13473   # Clean up.
13474   rm -f a.out a.exe
13475 else
13476   echo "libtool.m4: error: problem compiling CXX test program"
13477 fi
13478
13479 $RM -f confest.$objext
13480
13481 # PORTME: override above test on systems where it is broken
13482 case $host_os in
13483 interix[3-9]*)
13484   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13485   # hack all around it, let's just trust "g++" to DTRT.
13486   predep_objects_CXX=
13487   postdep_objects_CXX=
13488   postdeps_CXX=
13489   ;;
13490
13491 linux*)
13492   case `$CC -V 2>&1 | sed 5q` in
13493   *Sun\ C*)
13494     # Sun C++ 5.9
13495
13496     # The more standards-conforming stlport4 library is
13497     # incompatible with the Cstd library. Avoid specifying
13498     # it if it's in CXXFLAGS. Ignore libCrun as
13499     # -library=stlport4 depends on it.
13500     case " $CXX $CXXFLAGS " in
13501     *" -library=stlport4 "*)
13502       solaris_use_stlport4=yes
13503       ;;
13504     esac
13505
13506     if test "$solaris_use_stlport4" != yes; then
13507       postdeps_CXX='-library=Cstd -library=Crun'
13508     fi
13509     ;;
13510   esac
13511   ;;
13512
13513 solaris*)
13514   case $cc_basename in
13515   CC*)
13516     # The more standards-conforming stlport4 library is
13517     # incompatible with the Cstd library. Avoid specifying
13518     # it if it's in CXXFLAGS. Ignore libCrun as
13519     # -library=stlport4 depends on it.
13520     case " $CXX $CXXFLAGS " in
13521     *" -library=stlport4 "*)
13522       solaris_use_stlport4=yes
13523       ;;
13524     esac
13525
13526     # Adding this requires a known-good setup of shared libraries for
13527     # Sun compiler versions before 5.6, else PIC objects from an old
13528     # archive will be linked into the output, leading to subtle bugs.
13529     if test "$solaris_use_stlport4" != yes; then
13530       postdeps_CXX='-library=Cstd -library=Crun'
13531     fi
13532     ;;
13533   esac
13534   ;;
13535 esac
13536
13537
13538 case " $postdeps_CXX " in
13539 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13540 esac
13541  compiler_lib_search_dirs_CXX=
13542 if test -n "${compiler_lib_search_path_CXX}"; then
13543  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13544 fi
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576     lt_prog_compiler_wl_CXX=
13577 lt_prog_compiler_pic_CXX=
13578 lt_prog_compiler_static_CXX=
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13582
13583   # C++ specific cases for pic, static, wl, etc.
13584   if test "$GXX" = yes; then
13585     lt_prog_compiler_wl_CXX='-Wl,'
13586     lt_prog_compiler_static_CXX='-static'
13587
13588     case $host_os in
13589     aix*)
13590       # All AIX code is PIC.
13591       if test "$host_cpu" = ia64; then
13592         # AIX 5 now supports IA64 processor
13593         lt_prog_compiler_static_CXX='-Bstatic'
13594       fi
13595       ;;
13596
13597     amigaos*)
13598       case $host_cpu in
13599       powerpc)
13600             # see comment about AmigaOS4 .so support
13601             lt_prog_compiler_pic_CXX='-fPIC'
13602         ;;
13603       m68k)
13604             # FIXME: we need at least 68020 code to build shared libraries, but
13605             # adding the `-m68020' flag to GCC prevents building anything better,
13606             # like `-m68040'.
13607             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13608         ;;
13609       esac
13610       ;;
13611
13612     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13613       # PIC is the default for these OSes.
13614       ;;
13615     mingw* | cygwin* | os2* | pw32* | cegcc*)
13616       # This hack is so that the source file can tell whether it is being
13617       # built for inclusion in a dll (and should export symbols for example).
13618       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13619       # (--disable-auto-import) libraries
13620       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13621       ;;
13622     darwin* | rhapsody*)
13623       # PIC is the default on this platform
13624       # Common symbols not allowed in MH_DYLIB files
13625       lt_prog_compiler_pic_CXX='-fno-common'
13626       ;;
13627     *djgpp*)
13628       # DJGPP does not support shared libraries at all
13629       lt_prog_compiler_pic_CXX=
13630       ;;
13631     interix[3-9]*)
13632       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13633       # Instead, we relocate shared libraries at runtime.
13634       ;;
13635     sysv4*MP*)
13636       if test -d /usr/nec; then
13637         lt_prog_compiler_pic_CXX=-Kconform_pic
13638       fi
13639       ;;
13640     hpux*)
13641       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13642       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13643       # sets the default TLS model and affects inlining.
13644       case $host_cpu in
13645       hppa*64*)
13646         ;;
13647       *)
13648         lt_prog_compiler_pic_CXX='-fPIC'
13649         ;;
13650       esac
13651       ;;
13652     *qnx* | *nto*)
13653       # QNX uses GNU C++, but need to define -shared option too, otherwise
13654       # it will coredump.
13655       lt_prog_compiler_pic_CXX='-fPIC -shared'
13656       ;;
13657     *)
13658       lt_prog_compiler_pic_CXX='-fPIC'
13659       ;;
13660     esac
13661   else
13662     case $host_os in
13663       aix[4-9]*)
13664         # All AIX code is PIC.
13665         if test "$host_cpu" = ia64; then
13666           # AIX 5 now supports IA64 processor
13667           lt_prog_compiler_static_CXX='-Bstatic'
13668         else
13669           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13670         fi
13671         ;;
13672       chorus*)
13673         case $cc_basename in
13674         cxch68*)
13675           # Green Hills C++ Compiler
13676           # _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"
13677           ;;
13678         esac
13679         ;;
13680       dgux*)
13681         case $cc_basename in
13682           ec++*)
13683             lt_prog_compiler_pic_CXX='-KPIC'
13684             ;;
13685           ghcx*)
13686             # Green Hills C++ Compiler
13687             lt_prog_compiler_pic_CXX='-pic'
13688             ;;
13689           *)
13690             ;;
13691         esac
13692         ;;
13693       freebsd* | dragonfly*)
13694         # FreeBSD uses GNU C++
13695         ;;
13696       hpux9* | hpux10* | hpux11*)
13697         case $cc_basename in
13698           CC*)
13699             lt_prog_compiler_wl_CXX='-Wl,'
13700             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13701             if test "$host_cpu" != ia64; then
13702               lt_prog_compiler_pic_CXX='+Z'
13703             fi
13704             ;;
13705           aCC*)
13706             lt_prog_compiler_wl_CXX='-Wl,'
13707             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13708             case $host_cpu in
13709             hppa*64*|ia64*)
13710               # +Z the default
13711               ;;
13712             *)
13713               lt_prog_compiler_pic_CXX='+Z'
13714               ;;
13715             esac
13716             ;;
13717           *)
13718             ;;
13719         esac
13720         ;;
13721       interix*)
13722         # This is c89, which is MS Visual C++ (no shared libs)
13723         # Anyone wants to do a port?
13724         ;;
13725       irix5* | irix6* | nonstopux*)
13726         case $cc_basename in
13727           CC*)
13728             lt_prog_compiler_wl_CXX='-Wl,'
13729             lt_prog_compiler_static_CXX='-non_shared'
13730             # CC pic flag -KPIC is the default.
13731             ;;
13732           *)
13733             ;;
13734         esac
13735         ;;
13736       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13737         case $cc_basename in
13738           KCC*)
13739             # KAI C++ Compiler
13740             lt_prog_compiler_wl_CXX='--backend -Wl,'
13741             lt_prog_compiler_pic_CXX='-fPIC'
13742             ;;
13743           ecpc* )
13744             # old Intel C++ for x86_64 which still supported -KPIC.
13745             lt_prog_compiler_wl_CXX='-Wl,'
13746             lt_prog_compiler_pic_CXX='-KPIC'
13747             lt_prog_compiler_static_CXX='-static'
13748             ;;
13749           icpc* )
13750             # Intel C++, used to be incompatible with GCC.
13751             # ICC 10 doesn't accept -KPIC any more.
13752             lt_prog_compiler_wl_CXX='-Wl,'
13753             lt_prog_compiler_pic_CXX='-fPIC'
13754             lt_prog_compiler_static_CXX='-static'
13755             ;;
13756           pgCC* | pgcpp*)
13757             # Portland Group C++ compiler
13758             lt_prog_compiler_wl_CXX='-Wl,'
13759             lt_prog_compiler_pic_CXX='-fpic'
13760             lt_prog_compiler_static_CXX='-Bstatic'
13761             ;;
13762           cxx*)
13763             # Compaq C++
13764             # Make sure the PIC flag is empty.  It appears that all Alpha
13765             # Linux and Compaq Tru64 Unix objects are PIC.
13766             lt_prog_compiler_pic_CXX=
13767             lt_prog_compiler_static_CXX='-non_shared'
13768             ;;
13769           xlc* | xlC*)
13770             # IBM XL 8.0 on PPC
13771             lt_prog_compiler_wl_CXX='-Wl,'
13772             lt_prog_compiler_pic_CXX='-qpic'
13773             lt_prog_compiler_static_CXX='-qstaticlink'
13774             ;;
13775           *)
13776             case `$CC -V 2>&1 | sed 5q` in
13777             *Sun\ C*)
13778               # Sun C++ 5.9
13779               lt_prog_compiler_pic_CXX='-KPIC'
13780               lt_prog_compiler_static_CXX='-Bstatic'
13781               lt_prog_compiler_wl_CXX='-Qoption ld '
13782               ;;
13783             esac
13784             ;;
13785         esac
13786         ;;
13787       lynxos*)
13788         ;;
13789       m88k*)
13790         ;;
13791       mvs*)
13792         case $cc_basename in
13793           cxx*)
13794             lt_prog_compiler_pic_CXX='-W c,exportall'
13795             ;;
13796           *)
13797             ;;
13798         esac
13799         ;;
13800       netbsd* | netbsdelf*-gnu)
13801         ;;
13802       *qnx* | *nto*)
13803         # QNX uses GNU C++, but need to define -shared option too, otherwise
13804         # it will coredump.
13805         lt_prog_compiler_pic_CXX='-fPIC -shared'
13806         ;;
13807       osf3* | osf4* | osf5*)
13808         case $cc_basename in
13809           KCC*)
13810             lt_prog_compiler_wl_CXX='--backend -Wl,'
13811             ;;
13812           RCC*)
13813             # Rational C++ 2.4.1
13814             lt_prog_compiler_pic_CXX='-pic'
13815             ;;
13816           cxx*)
13817             # Digital/Compaq C++
13818             lt_prog_compiler_wl_CXX='-Wl,'
13819             # Make sure the PIC flag is empty.  It appears that all Alpha
13820             # Linux and Compaq Tru64 Unix objects are PIC.
13821             lt_prog_compiler_pic_CXX=
13822             lt_prog_compiler_static_CXX='-non_shared'
13823             ;;
13824           *)
13825             ;;
13826         esac
13827         ;;
13828       psos*)
13829         ;;
13830       solaris*)
13831         case $cc_basename in
13832           CC*)
13833             # Sun C++ 4.2, 5.x and Centerline C++
13834             lt_prog_compiler_pic_CXX='-KPIC'
13835             lt_prog_compiler_static_CXX='-Bstatic'
13836             lt_prog_compiler_wl_CXX='-Qoption ld '
13837             ;;
13838           gcx*)
13839             # Green Hills C++ Compiler
13840             lt_prog_compiler_pic_CXX='-PIC'
13841             ;;
13842           *)
13843             ;;
13844         esac
13845         ;;
13846       sunos4*)
13847         case $cc_basename in
13848           CC*)
13849             # Sun C++ 4.x
13850             lt_prog_compiler_pic_CXX='-pic'
13851             lt_prog_compiler_static_CXX='-Bstatic'
13852             ;;
13853           lcc*)
13854             # Lucid
13855             lt_prog_compiler_pic_CXX='-pic'
13856             ;;
13857           *)
13858             ;;
13859         esac
13860         ;;
13861       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13862         case $cc_basename in
13863           CC*)
13864             lt_prog_compiler_wl_CXX='-Wl,'
13865             lt_prog_compiler_pic_CXX='-KPIC'
13866             lt_prog_compiler_static_CXX='-Bstatic'
13867             ;;
13868         esac
13869         ;;
13870       tandem*)
13871         case $cc_basename in
13872           NCC*)
13873             # NonStop-UX NCC 3.20
13874             lt_prog_compiler_pic_CXX='-KPIC'
13875             ;;
13876           *)
13877             ;;
13878         esac
13879         ;;
13880       vxworks*)
13881         ;;
13882       *)
13883         lt_prog_compiler_can_build_shared_CXX=no
13884         ;;
13885     esac
13886   fi
13887
13888 case $host_os in
13889   # For platforms which do not support PIC, -DPIC is meaningless:
13890   *djgpp*)
13891     lt_prog_compiler_pic_CXX=
13892     ;;
13893   *)
13894     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13895     ;;
13896 esac
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13898 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13899
13900
13901
13902 #
13903 # Check to make sure the PIC flag actually works.
13904 #
13905 if test -n "$lt_prog_compiler_pic_CXX"; then
13906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13907 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13908 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   lt_cv_prog_compiler_pic_works_CXX=no
13912    ac_outfile=conftest.$ac_objext
13913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13914    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13915    # Insert the option either (1) after the last *FLAGS variable, or
13916    # (2) before a word containing "conftest.", or (3) at the end.
13917    # Note that $ac_compile itself does not contain backslashes and begins
13918    # with a dollar sign (not a hyphen), so the echo should work correctly.
13919    # The option is referenced via a variable to avoid confusing sed.
13920    lt_compile=`echo "$ac_compile" | $SED \
13921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13923    -e 's:$: $lt_compiler_flag:'`
13924    (eval echo "\"\$as_me:13924: $lt_compile\"" >&5)
13925    (eval "$lt_compile" 2>conftest.err)
13926    ac_status=$?
13927    cat conftest.err >&5
13928    echo "$as_me:13928: \$? = $ac_status" >&5
13929    if (exit $ac_status) && test -s "$ac_outfile"; then
13930      # The compiler can only warn and ignore the option if not recognized
13931      # So say no if there are warnings other than the usual output.
13932      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13933      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13934      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13935        lt_cv_prog_compiler_pic_works_CXX=yes
13936      fi
13937    fi
13938    $RM conftest*
13939
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13942 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13943
13944 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13945     case $lt_prog_compiler_pic_CXX in
13946      "" | " "*) ;;
13947      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13948      esac
13949 else
13950     lt_prog_compiler_pic_CXX=
13951      lt_prog_compiler_can_build_shared_CXX=no
13952 fi
13953
13954 fi
13955
13956
13957
13958 #
13959 # Check to make sure the static flag actually works.
13960 #
13961 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13963 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13964 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13965   $as_echo_n "(cached) " >&6
13966 else
13967   lt_cv_prog_compiler_static_works_CXX=no
13968    save_LDFLAGS="$LDFLAGS"
13969    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13970    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13971    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13972      # The linker can only warn and ignore the option if not recognized
13973      # So say no if there are warnings
13974      if test -s conftest.err; then
13975        # Append any errors to the config.log.
13976        cat conftest.err 1>&5
13977        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13978        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13979        if diff conftest.exp conftest.er2 >/dev/null; then
13980          lt_cv_prog_compiler_static_works_CXX=yes
13981        fi
13982      else
13983        lt_cv_prog_compiler_static_works_CXX=yes
13984      fi
13985    fi
13986    $RM -r conftest*
13987    LDFLAGS="$save_LDFLAGS"
13988
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13991 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13992
13993 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13994     :
13995 else
13996     lt_prog_compiler_static_CXX=
13997 fi
13998
13999
14000
14001
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14004 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14005   $as_echo_n "(cached) " >&6
14006 else
14007   lt_cv_prog_compiler_c_o_CXX=no
14008    $RM -r conftest 2>/dev/null
14009    mkdir conftest
14010    cd conftest
14011    mkdir out
14012    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14013
14014    lt_compiler_flag="-o out/conftest2.$ac_objext"
14015    # Insert the option either (1) after the last *FLAGS variable, or
14016    # (2) before a word containing "conftest.", or (3) at the end.
14017    # Note that $ac_compile itself does not contain backslashes and begins
14018    # with a dollar sign (not a hyphen), so the echo should work correctly.
14019    lt_compile=`echo "$ac_compile" | $SED \
14020    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14021    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14022    -e 's:$: $lt_compiler_flag:'`
14023    (eval echo "\"\$as_me:14023: $lt_compile\"" >&5)
14024    (eval "$lt_compile" 2>out/conftest.err)
14025    ac_status=$?
14026    cat out/conftest.err >&5
14027    echo "$as_me:14027: \$? = $ac_status" >&5
14028    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14029    then
14030      # The compiler can only warn and ignore the option if not recognized
14031      # So say no if there are warnings
14032      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14033      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14034      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14035        lt_cv_prog_compiler_c_o_CXX=yes
14036      fi
14037    fi
14038    chmod u+w . 2>&5
14039    $RM conftest*
14040    # SGI C++ compiler will create directory out/ii_files/ for
14041    # template instantiation
14042    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14043    $RM out/* && rmdir out
14044    cd ..
14045    $RM -r conftest
14046    $RM conftest*
14047
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14050 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14051
14052
14053
14054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14057   $as_echo_n "(cached) " >&6
14058 else
14059   lt_cv_prog_compiler_c_o_CXX=no
14060    $RM -r conftest 2>/dev/null
14061    mkdir conftest
14062    cd conftest
14063    mkdir out
14064    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14065
14066    lt_compiler_flag="-o out/conftest2.$ac_objext"
14067    # Insert the option either (1) after the last *FLAGS variable, or
14068    # (2) before a word containing "conftest.", or (3) at the end.
14069    # Note that $ac_compile itself does not contain backslashes and begins
14070    # with a dollar sign (not a hyphen), so the echo should work correctly.
14071    lt_compile=`echo "$ac_compile" | $SED \
14072    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14074    -e 's:$: $lt_compiler_flag:'`
14075    (eval echo "\"\$as_me:14075: $lt_compile\"" >&5)
14076    (eval "$lt_compile" 2>out/conftest.err)
14077    ac_status=$?
14078    cat out/conftest.err >&5
14079    echo "$as_me:14079: \$? = $ac_status" >&5
14080    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14081    then
14082      # The compiler can only warn and ignore the option if not recognized
14083      # So say no if there are warnings
14084      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14085      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14086      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14087        lt_cv_prog_compiler_c_o_CXX=yes
14088      fi
14089    fi
14090    chmod u+w . 2>&5
14091    $RM conftest*
14092    # SGI C++ compiler will create directory out/ii_files/ for
14093    # template instantiation
14094    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14095    $RM out/* && rmdir out
14096    cd ..
14097    $RM -r conftest
14098    $RM conftest*
14099
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14102 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14103
14104
14105
14106
14107 hard_links="nottested"
14108 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14109   # do not overwrite the value of need_locks provided by the user
14110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14111 $as_echo_n "checking if we can lock with hard links... " >&6; }
14112   hard_links=yes
14113   $RM conftest*
14114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14115   touch conftest.a
14116   ln conftest.a conftest.b 2>&5 || hard_links=no
14117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14119 $as_echo "$hard_links" >&6; }
14120   if test "$hard_links" = no; then
14121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14122 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14123     need_locks=warn
14124   fi
14125 else
14126   need_locks=no
14127 fi
14128
14129
14130
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14133
14134   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14135   case $host_os in
14136   aix[4-9]*)
14137     # If we're using GNU nm, then we don't want the "-C" option.
14138     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14139     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14140       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14141     else
14142       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14143     fi
14144     ;;
14145   pw32*)
14146     export_symbols_cmds_CXX="$ltdll_cmds"
14147   ;;
14148   cygwin* | mingw* | cegcc*)
14149     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14150   ;;
14151   linux* | k*bsd*-gnu)
14152     link_all_deplibs_CXX=no
14153   ;;
14154   *)
14155     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14156   ;;
14157   esac
14158   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14159
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14161 $as_echo "$ld_shlibs_CXX" >&6; }
14162 test "$ld_shlibs_CXX" = no && can_build_shared=no
14163
14164 with_gnu_ld_CXX=$with_gnu_ld
14165
14166
14167
14168
14169
14170
14171 #
14172 # Do we need to explicitly link libc?
14173 #
14174 case "x$archive_cmds_need_lc_CXX" in
14175 x|xyes)
14176   # Assume -lc should be added
14177   archive_cmds_need_lc_CXX=yes
14178
14179   if test "$enable_shared" = yes && test "$GCC" = yes; then
14180     case $archive_cmds_CXX in
14181     *'~'*)
14182       # FIXME: we may have to deal with multi-command sequences.
14183       ;;
14184     '$CC '*)
14185       # Test whether the compiler implicitly links with -lc since on some
14186       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14187       # to ld, don't add -lc before -lgcc.
14188       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14190       $RM conftest*
14191       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14192
14193       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14194   (eval $ac_compile) 2>&5
14195   ac_status=$?
14196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14197   test $ac_status = 0; } 2>conftest.err; then
14198         soname=conftest
14199         lib=conftest
14200         libobjs=conftest.$ac_objext
14201         deplibs=
14202         wl=$lt_prog_compiler_wl_CXX
14203         pic_flag=$lt_prog_compiler_pic_CXX
14204         compiler_flags=-v
14205         linker_flags=-v
14206         verstring=
14207         output_objdir=.
14208         libname=conftest
14209         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14210         allow_undefined_flag_CXX=
14211         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14212   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14213   ac_status=$?
14214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14215   test $ac_status = 0; }
14216         then
14217           archive_cmds_need_lc_CXX=no
14218         else
14219           archive_cmds_need_lc_CXX=yes
14220         fi
14221         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14222       else
14223         cat conftest.err 1>&5
14224       fi
14225       $RM conftest*
14226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14227 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14228       ;;
14229     esac
14230   fi
14231   ;;
14232 esac
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14299
14300 library_names_spec=
14301 libname_spec='lib$name'
14302 soname_spec=
14303 shrext_cmds=".so"
14304 postinstall_cmds=
14305 postuninstall_cmds=
14306 finish_cmds=
14307 finish_eval=
14308 shlibpath_var=
14309 shlibpath_overrides_runpath=unknown
14310 version_type=none
14311 dynamic_linker="$host_os ld.so"
14312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14313 need_lib_prefix=unknown
14314 hardcode_into_libs=no
14315
14316 # when you set need_version to no, make sure it does not cause -set_version
14317 # flags to be left without arguments
14318 need_version=unknown
14319
14320 case $host_os in
14321 aix3*)
14322   version_type=linux
14323   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14324   shlibpath_var=LIBPATH
14325
14326   # AIX 3 has no versioning support, so we append a major version to the name.
14327   soname_spec='${libname}${release}${shared_ext}$major'
14328   ;;
14329
14330 aix[4-9]*)
14331   version_type=linux
14332   need_lib_prefix=no
14333   need_version=no
14334   hardcode_into_libs=yes
14335   if test "$host_cpu" = ia64; then
14336     # AIX 5 supports IA64
14337     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14338     shlibpath_var=LD_LIBRARY_PATH
14339   else
14340     # With GCC up to 2.95.x, collect2 would create an import file
14341     # for dependence libraries.  The import file would start with
14342     # the line `#! .'.  This would cause the generated library to
14343     # depend on `.', always an invalid library.  This was fixed in
14344     # development snapshots of GCC prior to 3.0.
14345     case $host_os in
14346       aix4 | aix4.[01] | aix4.[01].*)
14347       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14348            echo ' yes '
14349            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14350         :
14351       else
14352         can_build_shared=no
14353       fi
14354       ;;
14355     esac
14356     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14357     # soname into executable. Probably we can add versioning support to
14358     # collect2, so additional links can be useful in future.
14359     if test "$aix_use_runtimelinking" = yes; then
14360       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14361       # instead of lib<name>.a to let people know that these are not
14362       # typical AIX shared libraries.
14363       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14364     else
14365       # We preserve .a as extension for shared libraries through AIX4.2
14366       # and later when we are not doing run time linking.
14367       library_names_spec='${libname}${release}.a $libname.a'
14368       soname_spec='${libname}${release}${shared_ext}$major'
14369     fi
14370     shlibpath_var=LIBPATH
14371   fi
14372   ;;
14373
14374 amigaos*)
14375   case $host_cpu in
14376   powerpc)
14377     # Since July 2007 AmigaOS4 officially supports .so libraries.
14378     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380     ;;
14381   m68k)
14382     library_names_spec='$libname.ixlibrary $libname.a'
14383     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14384     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14385     ;;
14386   esac
14387   ;;
14388
14389 beos*)
14390   library_names_spec='${libname}${shared_ext}'
14391   dynamic_linker="$host_os ld.so"
14392   shlibpath_var=LIBRARY_PATH
14393   ;;
14394
14395 bsdi[45]*)
14396   version_type=linux
14397   need_version=no
14398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399   soname_spec='${libname}${release}${shared_ext}$major'
14400   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14401   shlibpath_var=LD_LIBRARY_PATH
14402   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14403   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14404   # the default ld.so.conf also contains /usr/contrib/lib and
14405   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14406   # libtool to hard-code these into programs
14407   ;;
14408
14409 cygwin* | mingw* | pw32* | cegcc*)
14410   version_type=windows
14411   shrext_cmds=".dll"
14412   need_version=no
14413   need_lib_prefix=no
14414
14415   case $GCC,$host_os in
14416   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14417     library_names_spec='$libname.dll.a'
14418     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14419     postinstall_cmds='base_file=`basename \${file}`~
14420       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14421       dldir=$destdir/`dirname \$dlpath`~
14422       test -d \$dldir || mkdir -p \$dldir~
14423       $install_prog $dir/$dlname \$dldir/$dlname~
14424       chmod a+x \$dldir/$dlname~
14425       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14426         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14427       fi'
14428     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14429       dlpath=$dir/\$dldll~
14430        $RM \$dlpath'
14431     shlibpath_overrides_runpath=yes
14432
14433     case $host_os in
14434     cygwin*)
14435       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14436       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14437       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14438       ;;
14439     mingw* | cegcc*)
14440       # MinGW DLLs use traditional 'lib' prefix
14441       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14442       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14443       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14444         # It is most probably a Windows format PATH printed by
14445         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14446         # path with ; separators, and with drive letters. We can handle the
14447         # drive letters (cygwin fileutils understands them), so leave them,
14448         # especially as we might pass files found there to a mingw objdump,
14449         # which wouldn't understand a cygwinified path. Ahh.
14450         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14451       else
14452         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14453       fi
14454       ;;
14455     pw32*)
14456       # pw32 DLLs use 'pw' prefix rather than 'lib'
14457       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14458       ;;
14459     esac
14460     ;;
14461
14462   *)
14463     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14464     ;;
14465   esac
14466   dynamic_linker='Win32 ld.exe'
14467   # FIXME: first we should search . and the directory the executable is in
14468   shlibpath_var=PATH
14469   ;;
14470
14471 darwin* | rhapsody*)
14472   dynamic_linker="$host_os dyld"
14473   version_type=darwin
14474   need_lib_prefix=no
14475   need_version=no
14476   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14477   soname_spec='${libname}${release}${major}$shared_ext'
14478   shlibpath_overrides_runpath=yes
14479   shlibpath_var=DYLD_LIBRARY_PATH
14480   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14481
14482   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14483   ;;
14484
14485 dgux*)
14486   version_type=linux
14487   need_lib_prefix=no
14488   need_version=no
14489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14490   soname_spec='${libname}${release}${shared_ext}$major'
14491   shlibpath_var=LD_LIBRARY_PATH
14492   ;;
14493
14494 freebsd1*)
14495   dynamic_linker=no
14496   ;;
14497
14498 freebsd* | dragonfly*)
14499   # DragonFly does not have aout.  When/if they implement a new
14500   # versioning mechanism, adjust this.
14501   if test -x /usr/bin/objformat; then
14502     objformat=`/usr/bin/objformat`
14503   else
14504     case $host_os in
14505     freebsd[123]*) objformat=aout ;;
14506     *) objformat=elf ;;
14507     esac
14508   fi
14509   version_type=freebsd-$objformat
14510   case $version_type in
14511     freebsd-elf*)
14512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14513       need_version=no
14514       need_lib_prefix=no
14515       ;;
14516     freebsd-*)
14517       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14518       need_version=yes
14519       ;;
14520   esac
14521   shlibpath_var=LD_LIBRARY_PATH
14522   case $host_os in
14523   freebsd2*)
14524     shlibpath_overrides_runpath=yes
14525     ;;
14526   freebsd3.[01]* | freebsdelf3.[01]*)
14527     shlibpath_overrides_runpath=yes
14528     hardcode_into_libs=yes
14529     ;;
14530   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14531   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14532     shlibpath_overrides_runpath=no
14533     hardcode_into_libs=yes
14534     ;;
14535   *) # from 4.6 on, and DragonFly
14536     shlibpath_overrides_runpath=yes
14537     hardcode_into_libs=yes
14538     ;;
14539   esac
14540   ;;
14541
14542 gnu*)
14543   version_type=linux
14544   need_lib_prefix=no
14545   need_version=no
14546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14547   soname_spec='${libname}${release}${shared_ext}$major'
14548   shlibpath_var=LD_LIBRARY_PATH
14549   hardcode_into_libs=yes
14550   ;;
14551
14552 hpux9* | hpux10* | hpux11*)
14553   # Give a soname corresponding to the major version so that dld.sl refuses to
14554   # link against other versions.
14555   version_type=sunos
14556   need_lib_prefix=no
14557   need_version=no
14558   case $host_cpu in
14559   ia64*)
14560     shrext_cmds='.so'
14561     hardcode_into_libs=yes
14562     dynamic_linker="$host_os dld.so"
14563     shlibpath_var=LD_LIBRARY_PATH
14564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566     soname_spec='${libname}${release}${shared_ext}$major'
14567     if test "X$HPUX_IA64_MODE" = X32; then
14568       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14569     else
14570       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14571     fi
14572     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14573     ;;
14574   hppa*64*)
14575     shrext_cmds='.sl'
14576     hardcode_into_libs=yes
14577     dynamic_linker="$host_os dld.sl"
14578     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14579     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581     soname_spec='${libname}${release}${shared_ext}$major'
14582     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14583     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14584     ;;
14585   *)
14586     shrext_cmds='.sl'
14587     dynamic_linker="$host_os dld.sl"
14588     shlibpath_var=SHLIB_PATH
14589     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591     soname_spec='${libname}${release}${shared_ext}$major'
14592     ;;
14593   esac
14594   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14595   postinstall_cmds='chmod 555 $lib'
14596   ;;
14597
14598 interix[3-9]*)
14599   version_type=linux
14600   need_lib_prefix=no
14601   need_version=no
14602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14603   soname_spec='${libname}${release}${shared_ext}$major'
14604   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14605   shlibpath_var=LD_LIBRARY_PATH
14606   shlibpath_overrides_runpath=no
14607   hardcode_into_libs=yes
14608   ;;
14609
14610 irix5* | irix6* | nonstopux*)
14611   case $host_os in
14612     nonstopux*) version_type=nonstopux ;;
14613     *)
14614         if test "$lt_cv_prog_gnu_ld" = yes; then
14615                 version_type=linux
14616         else
14617                 version_type=irix
14618         fi ;;
14619   esac
14620   need_lib_prefix=no
14621   need_version=no
14622   soname_spec='${libname}${release}${shared_ext}$major'
14623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14624   case $host_os in
14625   irix5* | nonstopux*)
14626     libsuff= shlibsuff=
14627     ;;
14628   *)
14629     case $LD in # libtool.m4 will add one of these switches to LD
14630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14631       libsuff= shlibsuff= libmagic=32-bit;;
14632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14633       libsuff=32 shlibsuff=N32 libmagic=N32;;
14634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14636     *) libsuff= shlibsuff= libmagic=never-match;;
14637     esac
14638     ;;
14639   esac
14640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14641   shlibpath_overrides_runpath=no
14642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14644   hardcode_into_libs=yes
14645   ;;
14646
14647 # No shared lib support for Linux oldld, aout, or coff.
14648 linux*oldld* | linux*aout* | linux*coff*)
14649   dynamic_linker=no
14650   ;;
14651
14652 # This must be Linux ELF.
14653 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14654   version_type=linux
14655   need_lib_prefix=no
14656   need_version=no
14657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658   soname_spec='${libname}${release}${shared_ext}$major'
14659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=no
14662   # Some binutils ld are patched to set DT_RUNPATH
14663   save_LDFLAGS=$LDFLAGS
14664   save_libdir=$libdir
14665   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14666        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14669
14670 int
14671 main ()
14672 {
14673
14674   ;
14675   return 0;
14676 }
14677 _ACEOF
14678 if ac_fn_cxx_try_link "$LINENO"; then :
14679   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14680   shlibpath_overrides_runpath=yes
14681 fi
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext \
14684     conftest$ac_exeext conftest.$ac_ext
14685   LDFLAGS=$save_LDFLAGS
14686   libdir=$save_libdir
14687
14688   # This implies no fast_install, which is unacceptable.
14689   # Some rework will be needed to allow for fast_install
14690   # before this can be enabled.
14691   hardcode_into_libs=yes
14692
14693   # Append ld.so.conf contents to the search path
14694   if test -f /etc/ld.so.conf; then
14695     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14696     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14697   fi
14698
14699   # We used to test for /lib/ld.so.1 and disable shared libraries on
14700   # powerpc, because MkLinux only supported shared libraries with the
14701   # GNU dynamic linker.  Since this was broken with cross compilers,
14702   # most powerpc-linux boxes support dynamic linking these days and
14703   # people can always --disable-shared, the test was removed, and we
14704   # assume the GNU/Linux dynamic linker is in use.
14705   dynamic_linker='GNU/Linux ld.so'
14706   ;;
14707
14708 netbsdelf*-gnu)
14709   version_type=linux
14710   need_lib_prefix=no
14711   need_version=no
14712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   shlibpath_var=LD_LIBRARY_PATH
14715   shlibpath_overrides_runpath=no
14716   hardcode_into_libs=yes
14717   dynamic_linker='NetBSD ld.elf_so'
14718   ;;
14719
14720 netbsd*)
14721   version_type=sunos
14722   need_lib_prefix=no
14723   need_version=no
14724   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14727     dynamic_linker='NetBSD (a.out) ld.so'
14728   else
14729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14730     soname_spec='${libname}${release}${shared_ext}$major'
14731     dynamic_linker='NetBSD ld.elf_so'
14732   fi
14733   shlibpath_var=LD_LIBRARY_PATH
14734   shlibpath_overrides_runpath=yes
14735   hardcode_into_libs=yes
14736   ;;
14737
14738 newsos6)
14739   version_type=linux
14740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   shlibpath_overrides_runpath=yes
14743   ;;
14744
14745 *nto* | *qnx*)
14746   version_type=qnx
14747   need_lib_prefix=no
14748   need_version=no
14749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750   soname_spec='${libname}${release}${shared_ext}$major'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=no
14753   hardcode_into_libs=yes
14754   dynamic_linker='ldqnx.so'
14755   ;;
14756
14757 openbsd*)
14758   version_type=sunos
14759   sys_lib_dlsearch_path_spec="/usr/lib"
14760   need_lib_prefix=no
14761   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14762   case $host_os in
14763     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14764     *)                          need_version=no  ;;
14765   esac
14766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768   shlibpath_var=LD_LIBRARY_PATH
14769   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14770     case $host_os in
14771       openbsd2.[89] | openbsd2.[89].*)
14772         shlibpath_overrides_runpath=no
14773         ;;
14774       *)
14775         shlibpath_overrides_runpath=yes
14776         ;;
14777       esac
14778   else
14779     shlibpath_overrides_runpath=yes
14780   fi
14781   ;;
14782
14783 os2*)
14784   libname_spec='$name'
14785   shrext_cmds=".dll"
14786   need_lib_prefix=no
14787   library_names_spec='$libname${shared_ext} $libname.a'
14788   dynamic_linker='OS/2 ld.exe'
14789   shlibpath_var=LIBPATH
14790   ;;
14791
14792 osf3* | osf4* | osf5*)
14793   version_type=osf
14794   need_lib_prefix=no
14795   need_version=no
14796   soname_spec='${libname}${release}${shared_ext}$major'
14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14800   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14801   ;;
14802
14803 rdos*)
14804   dynamic_linker=no
14805   ;;
14806
14807 solaris*)
14808   version_type=linux
14809   need_lib_prefix=no
14810   need_version=no
14811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812   soname_spec='${libname}${release}${shared_ext}$major'
14813   shlibpath_var=LD_LIBRARY_PATH
14814   shlibpath_overrides_runpath=yes
14815   hardcode_into_libs=yes
14816   # ldd complains unless libraries are executable
14817   postinstall_cmds='chmod +x $lib'
14818   ;;
14819
14820 sunos4*)
14821   version_type=sunos
14822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14823   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14824   shlibpath_var=LD_LIBRARY_PATH
14825   shlibpath_overrides_runpath=yes
14826   if test "$with_gnu_ld" = yes; then
14827     need_lib_prefix=no
14828   fi
14829   need_version=yes
14830   ;;
14831
14832 sysv4 | sysv4.3*)
14833   version_type=linux
14834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835   soname_spec='${libname}${release}${shared_ext}$major'
14836   shlibpath_var=LD_LIBRARY_PATH
14837   case $host_vendor in
14838     sni)
14839       shlibpath_overrides_runpath=no
14840       need_lib_prefix=no
14841       runpath_var=LD_RUN_PATH
14842       ;;
14843     siemens)
14844       need_lib_prefix=no
14845       ;;
14846     motorola)
14847       need_lib_prefix=no
14848       need_version=no
14849       shlibpath_overrides_runpath=no
14850       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14851       ;;
14852   esac
14853   ;;
14854
14855 sysv4*MP*)
14856   if test -d /usr/nec ;then
14857     version_type=linux
14858     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14859     soname_spec='$libname${shared_ext}.$major'
14860     shlibpath_var=LD_LIBRARY_PATH
14861   fi
14862   ;;
14863
14864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14865   version_type=freebsd-elf
14866   need_lib_prefix=no
14867   need_version=no
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14869   soname_spec='${libname}${release}${shared_ext}$major'
14870   shlibpath_var=LD_LIBRARY_PATH
14871   shlibpath_overrides_runpath=yes
14872   hardcode_into_libs=yes
14873   if test "$with_gnu_ld" = yes; then
14874     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14875   else
14876     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14877     case $host_os in
14878       sco3.2v5*)
14879         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14880         ;;
14881     esac
14882   fi
14883   sys_lib_dlsearch_path_spec='/usr/lib'
14884   ;;
14885
14886 tpf*)
14887   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14888   version_type=linux
14889   need_lib_prefix=no
14890   need_version=no
14891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892   shlibpath_var=LD_LIBRARY_PATH
14893   shlibpath_overrides_runpath=no
14894   hardcode_into_libs=yes
14895   ;;
14896
14897 uts4*)
14898   version_type=linux
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900   soname_spec='${libname}${release}${shared_ext}$major'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   ;;
14903
14904 *)
14905   dynamic_linker=no
14906   ;;
14907 esac
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14909 $as_echo "$dynamic_linker" >&6; }
14910 test "$dynamic_linker" = no && can_build_shared=no
14911
14912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14913 if test "$GCC" = yes; then
14914   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14915 fi
14916
14917 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14918   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14919 fi
14920 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14921   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14922 fi
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14960 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14961 hardcode_action_CXX=
14962 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14963    test -n "$runpath_var_CXX" ||
14964    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14965
14966   # We can hardcode non-existent directories.
14967   if test "$hardcode_direct_CXX" != no &&
14968      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14969      # have to relink, otherwise we might link with an installed library
14970      # when we should be linking with a yet-to-be-installed one
14971      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14972      test "$hardcode_minus_L_CXX" != no; then
14973     # Linking always hardcodes the temporary library directory.
14974     hardcode_action_CXX=relink
14975   else
14976     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14977     hardcode_action_CXX=immediate
14978   fi
14979 else
14980   # We cannot hardcode anything, or else we can only hardcode existing
14981   # directories.
14982   hardcode_action_CXX=unsupported
14983 fi
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14985 $as_echo "$hardcode_action_CXX" >&6; }
14986
14987 if test "$hardcode_action_CXX" = relink ||
14988    test "$inherit_rpath_CXX" = yes; then
14989   # Fast installation is not supported
14990   enable_fast_install=no
14991 elif test "$shlibpath_overrides_runpath" = yes ||
14992      test "$enable_shared" = no; then
14993   # Fast installation is not necessary
14994   enable_fast_install=needless
14995 fi
14996
14997
14998
14999
15000
15001
15002
15003   fi # test -n "$compiler"
15004
15005   CC=$lt_save_CC
15006   LDCXX=$LD
15007   LD=$lt_save_LD
15008   GCC=$lt_save_GCC
15009   with_gnu_ld=$lt_save_with_gnu_ld
15010   lt_cv_path_LDCXX=$lt_cv_path_LD
15011   lt_cv_path_LD=$lt_save_path_LD
15012   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15013   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15014 fi # test "$_lt_caught_CXX_error" != yes
15015
15016 ac_ext=c
15017 ac_cpp='$CPP $CPPFLAGS'
15018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15021
15022
15023 ac_config_headers="$ac_config_headers config.h"
15024
15025
15026   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
15027 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
15028   MINIX=yes
15029 else
15030   MINIX=
15031 fi
15032
15033
15034   if test "$MINIX" = yes; then
15035
15036 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
15037
15038
15039 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
15040
15041
15042 $as_echo "#define _MINIX 1" >>confdefs.h
15043
15044   fi
15045
15046
15047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
15048 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
15049 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
15050   $as_echo_n "(cached) " >&6
15051 else
15052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h.  */
15054
15055 #         define __EXTENSIONS__ 1
15056           $ac_includes_default
15057 int
15058 main ()
15059 {
15060
15061   ;
15062   return 0;
15063 }
15064 _ACEOF
15065 if ac_fn_c_try_compile "$LINENO"; then :
15066   ac_cv_safe_to_define___extensions__=yes
15067 else
15068   ac_cv_safe_to_define___extensions__=no
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
15073 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
15074   test $ac_cv_safe_to_define___extensions__ = yes &&
15075     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
15076
15077   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
15078
15079   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
15080
15081   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15082
15083   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
15084
15085
15086
15087
15088
15089 reauth=no
15090 # Check whether --enable-reauth was given.
15091 if test "${enable_reauth+set}" = set; then :
15092   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15093       reauth=$enableval
15094     else
15095       echo "--enable-reauth argument must be yes or no"
15096       exit -1
15097     fi
15098
15099 fi
15100
15101
15102 if test "x$reauth" = "xyes" ; then
15103   echo "Fast reauthentication protocol enabled"
15104   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15105 fi
15106  if test "x$reauth" != "xno"; then
15107   GSSEAP_ENABLE_REAUTH_TRUE=
15108   GSSEAP_ENABLE_REAUTH_FALSE='#'
15109 else
15110   GSSEAP_ENABLE_REAUTH_TRUE='#'
15111   GSSEAP_ENABLE_REAUTH_FALSE=
15112 fi
15113
15114
15115
15116
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15118 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15119 KRB5_DIR=
15120 found_krb5="no"
15121
15122 # Check whether --with-krb5 was given.
15123 if test "${with_krb5+set}" = set; then :
15124   withval=$with_krb5; check_krb5_dir="$withval"
15125 else
15126   check_krb5_dir=
15127 fi
15128
15129 for dir in $check_krb5_dir $prefix /usr /usr/local ; do
15130    krb5dir="$dir"
15131    if test -x "$dir/bin/krb5-config"; then
15132      found_krb5="yes";
15133      KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15134      KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`;
15135      COMPILE_ET="$dir/bin/compile_et";
15136      break;
15137    fi
15138 done
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15140 $as_echo "$found_krb5" >&6; }
15141 if test x_$found_krb5 != x_yes; then
15142    as_fn_error $? "
15143 ----------------------------------------------------------------------
15144   Cannot find GSS-API/Kerberos libraries.
15145
15146   Please install MIT or Heimdal or specify installation directory with
15147   --with-krb5=(dir).
15148 ----------------------------------------------------------------------
15149 " "$LINENO" 5
15150 else
15151         printf "Kerberos found in $krb5dir\n";
15152
15153
15154
15155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lgssapi_krb5" >&5
15156 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lgssapi_krb5... " >&6; }
15157 if test "${ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT+set}" = set; then :
15158   $as_echo_n "(cached) " >&6
15159 else
15160   ac_check_lib_save_LIBS=$LIBS
15161 LIBS="-lgssapi_krb5 "$KRB5_LIBS" $LIBS"
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h.  */
15164
15165 /* Override any GCC internal prototype to avoid an error.
15166    Use char because int might match the return type of a GCC
15167    builtin and then its argument prototype would still apply.  */
15168 #ifdef __cplusplus
15169 extern "C"
15170 #endif
15171 char GSS_C_NT_COMPOSITE_EXPORT ();
15172 int
15173 main ()
15174 {
15175 return GSS_C_NT_COMPOSITE_EXPORT ();
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 if ac_fn_c_try_link "$LINENO"; then :
15181   ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15182 else
15183   ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15184 fi
15185 rm -f core conftest.err conftest.$ac_objext \
15186     conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15188 fi
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15190 $as_echo "$ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15191 if test "x$ac_cv_lib_gssapi_krb5_GSS_C_NT_COMPOSITE_EXPORT" = x""yes; then :
15192
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15195 _ACEOF
15196
15197 fi
15198
15199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lgssapi_krb5" >&5
15200 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lgssapi_krb5... " >&6; }
15201 if test "${ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech+set}" = set; then :
15202   $as_echo_n "(cached) " >&6
15203 else
15204   ac_check_lib_save_LIBS=$LIBS
15205 LIBS="-lgssapi_krb5 "$KRB5_LIBS" $LIBS"
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h.  */
15208
15209 /* Override any GCC internal prototype to avoid an error.
15210    Use char because int might match the return type of a GCC
15211    builtin and then its argument prototype would still apply.  */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 char gss_inquire_attrs_for_mech ();
15216 int
15217 main ()
15218 {
15219 return gss_inquire_attrs_for_mech ();
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 if ac_fn_c_try_link "$LINENO"; then :
15225   ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech=yes
15226 else
15227   ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech=no
15228 fi
15229 rm -f core conftest.err conftest.$ac_objext \
15230     conftest$ac_exeext conftest.$ac_ext
15231 LIBS=$ac_check_lib_save_LIBS
15232 fi
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech" >&5
15234 $as_echo "$ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech" >&6; }
15235 if test "x$ac_cv_lib_gssapi_krb5_gss_inquire_attrs_for_mech" = x""yes; then :
15236
15237 cat >>confdefs.h <<_ACEOF
15238 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
15239 _ACEOF
15240
15241 fi
15242
15243         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lgssapi_krb5" >&5
15244 $as_echo_n "checking for gss_krb5_import_cred in -lgssapi_krb5... " >&6; }
15245 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_import_cred+set}" = set; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   ac_check_lib_save_LIBS=$LIBS
15249 LIBS="-lgssapi_krb5 "$KRB5_LIBS" $LIBS"
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h.  */
15252
15253 /* Override any GCC internal prototype to avoid an error.
15254    Use char because int might match the return type of a GCC
15255    builtin and then its argument prototype would still apply.  */
15256 #ifdef __cplusplus
15257 extern "C"
15258 #endif
15259 char gss_krb5_import_cred ();
15260 int
15261 main ()
15262 {
15263 return gss_krb5_import_cred ();
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_link "$LINENO"; then :
15269   ac_cv_lib_gssapi_krb5_gss_krb5_import_cred=yes
15270 else
15271   ac_cv_lib_gssapi_krb5_gss_krb5_import_cred=no
15272 fi
15273 rm -f core conftest.err conftest.$ac_objext \
15274     conftest$ac_exeext conftest.$ac_ext
15275 LIBS=$ac_check_lib_save_LIBS
15276 fi
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_import_cred" >&5
15278 $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_import_cred" >&6; }
15279 if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_import_cred" = x""yes; then :
15280
15281 cat >>confdefs.h <<_ACEOF
15282 #define HAVE_GSS_KRB5_IMPORT_CRED 1
15283 _ACEOF
15284
15285 fi
15286
15287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
15288 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
15289 if test "${ac_cv_lib_krb5_heimdal_version+set}" = set; then :
15290   $as_echo_n "(cached) " >&6
15291 else
15292   ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h.  */
15296
15297 /* Override any GCC internal prototype to avoid an error.
15298    Use char because int might match the return type of a GCC
15299    builtin and then its argument prototype would still apply.  */
15300 #ifdef __cplusplus
15301 extern "C"
15302 #endif
15303 char heimdal_version ();
15304 int
15305 main ()
15306 {
15307 return heimdal_version ();
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313   ac_cv_lib_krb5_heimdal_version=yes
15314 else
15315   ac_cv_lib_krb5_heimdal_version=no
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext \
15318     conftest$ac_exeext conftest.$ac_ext
15319 LIBS=$ac_check_lib_save_LIBS
15320 fi
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
15322 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
15323 if test "x$ac_cv_lib_krb5_heimdal_version" = x""yes; then :
15324
15325 cat >>confdefs.h <<_ACEOF
15326 #define HAVE_HEIMDAL_VERSION 1
15327 _ACEOF
15328 , heimdal=yes
15329 else
15330   heimdal=no
15331 fi
15332
15333          if test "x$heimdal" != "xno"; then
15334   HEIMDAL_TRUE=
15335   HEIMDAL_FALSE='#'
15336 else
15337   HEIMDAL_TRUE='#'
15338   HEIMDAL_FALSE=
15339 fi
15340
15341 fi
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
15344 $as_echo_n "checking for Shibboleth implementation... " >&6; }
15345 SHIBSP_DIR=
15346 found_shibsp="no"
15347
15348 # Check whether --with-shibsp was given.
15349 if test "${with_shibsp+set}" = set; then :
15350   withval=$with_shibsp; check_shibsp_dir="$withval"
15351 else
15352   check_shibsp_dir=
15353 fi
15354
15355 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
15356    shibspdir="$dir"
15357    if test -f "$dir/include/shibsp/SPConfig.h"; then
15358      found_shibsp="yes";
15359      SHIBSP_DIR="${shibspdir}"
15360      SHIBSP_CXXFLAGS="-I$shibspdir/include";
15361      break;
15362    fi
15363 done
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
15365 $as_echo "$found_shibsp" >&6; }
15366 if test x_$found_shibsp != x_yes; then
15367    as_fn_error $? "
15368 ----------------------------------------------------------------------
15369   Cannot find Shibboleth/OpenSAML libraries.
15370
15371   Please install Shibboleth or specify installation directory with
15372   --with-shibsp=(dir).
15373 ----------------------------------------------------------------------
15374 " "$LINENO" 5
15375 else
15376         printf "Shibboleth found in $shibspdir\n";
15377         SHIBSP_LIBS="-lshibsp  -lsaml -lxml-security-c -lxmltooling -lxerces-c";
15378         SHIBSP_LDFLAGS="-L$shibspdir/lib";
15379
15380
15381
15382 fi
15383
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
15385 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
15386 SHIBRESOLVER_DIR=
15387 found_shibresolver="no"
15388
15389 # Check whether --with-shibresolver was given.
15390 if test "${with_shibresolver+set}" = set; then :
15391   withval=$with_shibresolver; check_shibresolver_dir="$withval"
15392 else
15393   check_shibresolver_dir=
15394 fi
15395
15396 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
15397    shibresolverdir="$dir"
15398    if test -f "$dir/include/shibresolver/resolver.h"; then
15399      found_shibresolver="yes";
15400      SHIBRESOLVER_DIR="${shibresolverdir}"
15401      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
15402      break;
15403    fi
15404 done
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
15406 $as_echo "$found_shibresolver" >&6; }
15407 if test x_$found_shibresolver != x_yes; then
15408    as_fn_error $? "
15409 ----------------------------------------------------------------------
15410   Cannot find Shibboleth resolver libraries.
15411
15412   Please install Shibboleth or specify installation directory with
15413   --with-shibresolver=(dir).
15414 ----------------------------------------------------------------------
15415 " "$LINENO" 5
15416 else
15417         printf "Shibboleth resolver found in $shibresolverdir\n";
15418         SHIBRESOLVER_LIBS="-lshibresolver";
15419         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
15420
15421
15422
15423 fi
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
15426 $as_echo_n "checking for radsec... " >&6; }
15427 RADSEC_DIR=
15428 found_radsec="no"
15429
15430 # Check whether --with-radsec was given.
15431 if test "${with_radsec+set}" = set; then :
15432   withval=$with_radsec; check_radsec_dir="$withval"
15433 else
15434   check_radsec_dir=
15435 fi
15436
15437 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
15438    radsecdir="$dir"
15439    if test -f "$dir/include/radsec/radsec.h"; then
15440      found_radsec="yes";
15441      RADSEC_DIR="${radsecdir}"
15442      RADSEC_CFLAGS="-I$radsecdir/include";
15443      break;
15444    fi
15445 done
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
15447 $as_echo "$found_radsec" >&6; }
15448 if test x_$found_radsec != x_yes; then
15449    as_fn_error $? "
15450 ----------------------------------------------------------------------
15451   Cannot find radsec libraries.
15452
15453   Please install libradsec or specify installation directory with
15454   --with-radsec=(dir).
15455 ----------------------------------------------------------------------
15456 " "$LINENO" 5
15457 else
15458         printf "radsec found in $radsecdir\n";
15459         RADSEC_LIBS="-lradsec";
15460         RADSEC_LDFLAGS="-L$radsecdir/lib";
15461
15462
15463
15464 fi
15465
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15467 $as_echo_n "checking for jansson... " >&6; }
15468 JANSSON_DIR=
15469 found_jansson="no"
15470
15471 # Check whether --with-jansson was given.
15472 if test "${with_jansson+set}" = set; then :
15473   withval=$with_jansson; check_jansson_dir="$withval"
15474 else
15475   check_jansson_dir=
15476 fi
15477
15478 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
15479    janssondir="$dir"
15480    if test -f "$dir/include/jansson.h"; then
15481      found_jansson="yes";
15482      JANSSON_DIR="${janssondir}"
15483      JANSSON_CFLAGS="-I$janssondir/include";
15484      break;
15485    fi
15486 done
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
15488 $as_echo "$found_jansson" >&6; }
15489 if test x_$found_jansson != x_yes; then
15490    as_fn_error $? "
15491 ----------------------------------------------------------------------
15492   Cannot find jansson libraries.
15493
15494   Please install libjansson or specify installation directory with
15495   --with-jansson=(dir).
15496 ----------------------------------------------------------------------
15497 " "$LINENO" 5
15498 else
15499         printf "jansson found in $janssondir\n";
15500         JANSSON_LIBS="-ljansson";
15501         JANSSON_LDFLAGS="-L$janssondir/lib";
15502
15503
15504
15505 fi
15506
15507 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile"
15508
15509 cat >confcache <<\_ACEOF
15510 # This file is a shell script that caches the results of configure
15511 # tests run on this system so they can be shared between configure
15512 # scripts and configure runs, see configure's option --config-cache.
15513 # It is not useful on other systems.  If it contains results you don't
15514 # want to keep, you may remove or edit it.
15515 #
15516 # config.status only pays attention to the cache file if you give it
15517 # the --recheck option to rerun configure.
15518 #
15519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15521 # following values.
15522
15523 _ACEOF
15524
15525 # The following way of writing the cache mishandles newlines in values,
15526 # but we know of no workaround that is simple, portable, and efficient.
15527 # So, we kill variables containing newlines.
15528 # Ultrix sh set writes to stderr and can't be redirected directly,
15529 # and sets the high bit in the cache file unless we assign to the vars.
15530 (
15531   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15532     eval ac_val=\$$ac_var
15533     case $ac_val in #(
15534     *${as_nl}*)
15535       case $ac_var in #(
15536       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15538       esac
15539       case $ac_var in #(
15540       _ | IFS | as_nl) ;; #(
15541       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15542       *) { eval $ac_var=; unset $ac_var;} ;;
15543       esac ;;
15544     esac
15545   done
15546
15547   (set) 2>&1 |
15548     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15549     *${as_nl}ac_space=\ *)
15550       # `set' does not quote correctly, so add quotes: double-quote
15551       # substitution turns \\\\ into \\, and sed turns \\ into \.
15552       sed -n \
15553         "s/'/'\\\\''/g;
15554           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15555       ;; #(
15556     *)
15557       # `set' quotes correctly as required by POSIX, so do not add quotes.
15558       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15559       ;;
15560     esac |
15561     sort
15562 ) |
15563   sed '
15564      /^ac_cv_env_/b end
15565      t clear
15566      :clear
15567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15568      t end
15569      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15570      :end' >>confcache
15571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15572   if test -w "$cache_file"; then
15573     test "x$cache_file" != "x/dev/null" &&
15574       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15575 $as_echo "$as_me: updating cache $cache_file" >&6;}
15576     cat confcache >$cache_file
15577   else
15578     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15580   fi
15581 fi
15582 rm -f confcache
15583
15584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15585 # Let make expand exec_prefix.
15586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15587
15588 DEFS=-DHAVE_CONFIG_H
15589
15590 ac_libobjs=
15591 ac_ltlibobjs=
15592 U=
15593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15594   # 1. Remove the extension, and $U if already installed.
15595   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15596   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15597   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15598   #    will be set to the directory where LIBOBJS objects are built.
15599   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15600   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15601 done
15602 LIBOBJS=$ac_libobjs
15603
15604 LTLIBOBJS=$ac_ltlibobjs
15605
15606
15607  if test -n "$EXEEXT"; then
15608   am__EXEEXT_TRUE=
15609   am__EXEEXT_FALSE='#'
15610 else
15611   am__EXEEXT_TRUE='#'
15612   am__EXEEXT_FALSE=
15613 fi
15614
15615 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15616   as_fn_error $? "conditional \"AMDEP\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 fi
15619 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15620   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 fi
15623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15624   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 fi
15627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15628   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 fi
15631 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15632   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 fi
15635 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
15636   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
15637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 fi
15639 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
15640   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 fi
15643
15644 : ${CONFIG_STATUS=./config.status}
15645 ac_write_fail=0
15646 ac_clean_files_save=$ac_clean_files
15647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15650 as_write_fail=0
15651 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15652 #! $SHELL
15653 # Generated by $as_me.
15654 # Run this file to recreate the current configuration.
15655 # Compiler output produced by configure, useful for debugging
15656 # configure, is in config.log if it exists.
15657
15658 debug=false
15659 ac_cs_recheck=false
15660 ac_cs_silent=false
15661
15662 SHELL=\${CONFIG_SHELL-$SHELL}
15663 export SHELL
15664 _ASEOF
15665 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15666 ## -------------------- ##
15667 ## M4sh Initialization. ##
15668 ## -------------------- ##
15669
15670 # Be more Bourne compatible
15671 DUALCASE=1; export DUALCASE # for MKS sh
15672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15673   emulate sh
15674   NULLCMD=:
15675   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15676   # is contrary to our usage.  Disable this feature.
15677   alias -g '${1+"$@"}'='"$@"'
15678   setopt NO_GLOB_SUBST
15679 else
15680   case `(set -o) 2>/dev/null` in #(
15681   *posix*) :
15682     set -o posix ;; #(
15683   *) :
15684      ;;
15685 esac
15686 fi
15687
15688
15689 as_nl='
15690 '
15691 export as_nl
15692 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15693 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15695 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15696 # Prefer a ksh shell builtin over an external printf program on Solaris,
15697 # but without wasting forks for bash or zsh.
15698 if test -z "$BASH_VERSION$ZSH_VERSION" \
15699     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15700   as_echo='print -r --'
15701   as_echo_n='print -rn --'
15702 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15703   as_echo='printf %s\n'
15704   as_echo_n='printf %s'
15705 else
15706   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15707     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15708     as_echo_n='/usr/ucb/echo -n'
15709   else
15710     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15711     as_echo_n_body='eval
15712       arg=$1;
15713       case $arg in #(
15714       *"$as_nl"*)
15715         expr "X$arg" : "X\\(.*\\)$as_nl";
15716         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15717       esac;
15718       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15719     '
15720     export as_echo_n_body
15721     as_echo_n='sh -c $as_echo_n_body as_echo'
15722   fi
15723   export as_echo_body
15724   as_echo='sh -c $as_echo_body as_echo'
15725 fi
15726
15727 # The user is always right.
15728 if test "${PATH_SEPARATOR+set}" != set; then
15729   PATH_SEPARATOR=:
15730   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15731     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15732       PATH_SEPARATOR=';'
15733   }
15734 fi
15735
15736
15737 # IFS
15738 # We need space, tab and new line, in precisely that order.  Quoting is
15739 # there to prevent editors from complaining about space-tab.
15740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15741 # splitting by setting IFS to empty value.)
15742 IFS=" ""        $as_nl"
15743
15744 # Find who we are.  Look in the path if we contain no directory separator.
15745 case $0 in #((
15746   *[\\/]* ) as_myself=$0 ;;
15747   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 for as_dir in $PATH
15749 do
15750   IFS=$as_save_IFS
15751   test -z "$as_dir" && as_dir=.
15752     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15753   done
15754 IFS=$as_save_IFS
15755
15756      ;;
15757 esac
15758 # We did not find ourselves, most probably we were run as `sh COMMAND'
15759 # in which case we are not to be found in the path.
15760 if test "x$as_myself" = x; then
15761   as_myself=$0
15762 fi
15763 if test ! -f "$as_myself"; then
15764   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15765   exit 1
15766 fi
15767
15768 # Unset variables that we do not need and which cause bugs (e.g. in
15769 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15770 # suppresses any "Segmentation fault" message there.  '((' could
15771 # trigger a bug in pdksh 5.2.14.
15772 for as_var in BASH_ENV ENV MAIL MAILPATH
15773 do eval test x\${$as_var+set} = xset \
15774   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15775 done
15776 PS1='$ '
15777 PS2='> '
15778 PS4='+ '
15779
15780 # NLS nuisances.
15781 LC_ALL=C
15782 export LC_ALL
15783 LANGUAGE=C
15784 export LANGUAGE
15785
15786 # CDPATH.
15787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15788
15789
15790 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15791 # ----------------------------------------
15792 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15793 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15794 # script with STATUS, using 1 if that was 0.
15795 as_fn_error ()
15796 {
15797   as_status=$1; test $as_status -eq 0 && as_status=1
15798   if test "$4"; then
15799     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15800     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15801   fi
15802   $as_echo "$as_me: error: $2" >&2
15803   as_fn_exit $as_status
15804 } # as_fn_error
15805
15806
15807 # as_fn_set_status STATUS
15808 # -----------------------
15809 # Set $? to STATUS, without forking.
15810 as_fn_set_status ()
15811 {
15812   return $1
15813 } # as_fn_set_status
15814
15815 # as_fn_exit STATUS
15816 # -----------------
15817 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15818 as_fn_exit ()
15819 {
15820   set +e
15821   as_fn_set_status $1
15822   exit $1
15823 } # as_fn_exit
15824
15825 # as_fn_unset VAR
15826 # ---------------
15827 # Portably unset VAR.
15828 as_fn_unset ()
15829 {
15830   { eval $1=; unset $1;}
15831 }
15832 as_unset=as_fn_unset
15833 # as_fn_append VAR VALUE
15834 # ----------------------
15835 # Append the text in VALUE to the end of the definition contained in VAR. Take
15836 # advantage of any shell optimizations that allow amortized linear growth over
15837 # repeated appends, instead of the typical quadratic growth present in naive
15838 # implementations.
15839 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15840   eval 'as_fn_append ()
15841   {
15842     eval $1+=\$2
15843   }'
15844 else
15845   as_fn_append ()
15846   {
15847     eval $1=\$$1\$2
15848   }
15849 fi # as_fn_append
15850
15851 # as_fn_arith ARG...
15852 # ------------------
15853 # Perform arithmetic evaluation on the ARGs, and store the result in the
15854 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15855 # must be portable across $(()) and expr.
15856 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15857   eval 'as_fn_arith ()
15858   {
15859     as_val=$(( $* ))
15860   }'
15861 else
15862   as_fn_arith ()
15863   {
15864     as_val=`expr "$@" || test $? -eq 1`
15865   }
15866 fi # as_fn_arith
15867
15868
15869 if expr a : '\(a\)' >/dev/null 2>&1 &&
15870    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15871   as_expr=expr
15872 else
15873   as_expr=false
15874 fi
15875
15876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15877   as_basename=basename
15878 else
15879   as_basename=false
15880 fi
15881
15882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15883   as_dirname=dirname
15884 else
15885   as_dirname=false
15886 fi
15887
15888 as_me=`$as_basename -- "$0" ||
15889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15890          X"$0" : 'X\(//\)$' \| \
15891          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15892 $as_echo X/"$0" |
15893     sed '/^.*\/\([^/][^/]*\)\/*$/{
15894             s//\1/
15895             q
15896           }
15897           /^X\/\(\/\/\)$/{
15898             s//\1/
15899             q
15900           }
15901           /^X\/\(\/\).*/{
15902             s//\1/
15903             q
15904           }
15905           s/.*/./; q'`
15906
15907 # Avoid depending upon Character Ranges.
15908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15911 as_cr_digits='0123456789'
15912 as_cr_alnum=$as_cr_Letters$as_cr_digits
15913
15914 ECHO_C= ECHO_N= ECHO_T=
15915 case `echo -n x` in #(((((
15916 -n*)
15917   case `echo 'xy\c'` in
15918   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15919   xy)  ECHO_C='\c';;
15920   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15921        ECHO_T=' ';;
15922   esac;;
15923 *)
15924   ECHO_N='-n';;
15925 esac
15926
15927 rm -f conf$$ conf$$.exe conf$$.file
15928 if test -d conf$$.dir; then
15929   rm -f conf$$.dir/conf$$.file
15930 else
15931   rm -f conf$$.dir
15932   mkdir conf$$.dir 2>/dev/null
15933 fi
15934 if (echo >conf$$.file) 2>/dev/null; then
15935   if ln -s conf$$.file conf$$ 2>/dev/null; then
15936     as_ln_s='ln -s'
15937     # ... but there are two gotchas:
15938     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15939     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15940     # In both cases, we have to default to `cp -p'.
15941     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15942       as_ln_s='cp -p'
15943   elif ln conf$$.file conf$$ 2>/dev/null; then
15944     as_ln_s=ln
15945   else
15946     as_ln_s='cp -p'
15947   fi
15948 else
15949   as_ln_s='cp -p'
15950 fi
15951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15952 rmdir conf$$.dir 2>/dev/null
15953
15954
15955 # as_fn_mkdir_p
15956 # -------------
15957 # Create "$as_dir" as a directory, including parents if necessary.
15958 as_fn_mkdir_p ()
15959 {
15960
15961   case $as_dir in #(
15962   -*) as_dir=./$as_dir;;
15963   esac
15964   test -d "$as_dir" || eval $as_mkdir_p || {
15965     as_dirs=
15966     while :; do
15967       case $as_dir in #(
15968       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15969       *) as_qdir=$as_dir;;
15970       esac
15971       as_dirs="'$as_qdir' $as_dirs"
15972       as_dir=`$as_dirname -- "$as_dir" ||
15973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15974          X"$as_dir" : 'X\(//\)[^/]' \| \
15975          X"$as_dir" : 'X\(//\)$' \| \
15976          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15977 $as_echo X"$as_dir" |
15978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15979             s//\1/
15980             q
15981           }
15982           /^X\(\/\/\)[^/].*/{
15983             s//\1/
15984             q
15985           }
15986           /^X\(\/\/\)$/{
15987             s//\1/
15988             q
15989           }
15990           /^X\(\/\).*/{
15991             s//\1/
15992             q
15993           }
15994           s/.*/./; q'`
15995       test -d "$as_dir" && break
15996     done
15997     test -z "$as_dirs" || eval "mkdir $as_dirs"
15998   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15999
16000
16001 } # as_fn_mkdir_p
16002 if mkdir -p . 2>/dev/null; then
16003   as_mkdir_p='mkdir -p "$as_dir"'
16004 else
16005   test -d ./-p && rmdir ./-p
16006   as_mkdir_p=false
16007 fi
16008
16009 if test -x / >/dev/null 2>&1; then
16010   as_test_x='test -x'
16011 else
16012   if ls -dL / >/dev/null 2>&1; then
16013     as_ls_L_option=L
16014   else
16015     as_ls_L_option=
16016   fi
16017   as_test_x='
16018     eval sh -c '\''
16019       if test -d "$1"; then
16020         test -d "$1/.";
16021       else
16022         case $1 in #(
16023         -*)set "./$1";;
16024         esac;
16025         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16026         ???[sx]*):;;*)false;;esac;fi
16027     '\'' sh
16028   '
16029 fi
16030 as_executable_p=$as_test_x
16031
16032 # Sed expression to map a string onto a valid CPP name.
16033 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16034
16035 # Sed expression to map a string onto a valid variable name.
16036 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16037
16038
16039 exec 6>&1
16040 ## ----------------------------------- ##
16041 ## Main body of $CONFIG_STATUS script. ##
16042 ## ----------------------------------- ##
16043 _ASEOF
16044 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16045
16046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16047 # Save the log message, to keep $0 and so on meaningful, and to
16048 # report actual input values of CONFIG_FILES etc. instead of their
16049 # values after options handling.
16050 ac_log="
16051 This file was extended by mech_eap $as_me 0.1, which was
16052 generated by GNU Autoconf 2.67.  Invocation command line was
16053
16054   CONFIG_FILES    = $CONFIG_FILES
16055   CONFIG_HEADERS  = $CONFIG_HEADERS
16056   CONFIG_LINKS    = $CONFIG_LINKS
16057   CONFIG_COMMANDS = $CONFIG_COMMANDS
16058   $ $0 $@
16059
16060 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16061 "
16062
16063 _ACEOF
16064
16065 case $ac_config_files in *"
16066 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16067 esac
16068
16069 case $ac_config_headers in *"
16070 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16071 esac
16072
16073
16074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075 # Files that config.status was made for.
16076 config_files="$ac_config_files"
16077 config_headers="$ac_config_headers"
16078 config_commands="$ac_config_commands"
16079
16080 _ACEOF
16081
16082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16083 ac_cs_usage="\
16084 \`$as_me' instantiates files and other configuration actions
16085 from templates according to the current configuration.  Unless the files
16086 and actions are specified as TAGs, all are instantiated by default.
16087
16088 Usage: $0 [OPTION]... [TAG]...
16089
16090   -h, --help       print this help, then exit
16091   -V, --version    print version number and configuration settings, then exit
16092       --config     print configuration, then exit
16093   -q, --quiet, --silent
16094                    do not print progress messages
16095   -d, --debug      don't remove temporary files
16096       --recheck    update $as_me by reconfiguring in the same conditions
16097       --file=FILE[:TEMPLATE]
16098                    instantiate the configuration file FILE
16099       --header=FILE[:TEMPLATE]
16100                    instantiate the configuration header FILE
16101
16102 Configuration files:
16103 $config_files
16104
16105 Configuration headers:
16106 $config_headers
16107
16108 Configuration commands:
16109 $config_commands
16110
16111 Report bugs to <bugs@project-moonshot.org>."
16112
16113 _ACEOF
16114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16115 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16116 ac_cs_version="\\
16117 mech_eap config.status 0.1
16118 configured by $0, generated by GNU Autoconf 2.67,
16119   with options \\"\$ac_cs_config\\"
16120
16121 Copyright (C) 2010 Free Software Foundation, Inc.
16122 This config.status script is free software; the Free Software Foundation
16123 gives unlimited permission to copy, distribute and modify it."
16124
16125 ac_pwd='$ac_pwd'
16126 srcdir='$srcdir'
16127 INSTALL='$INSTALL'
16128 MKDIR_P='$MKDIR_P'
16129 AWK='$AWK'
16130 test -n "\$AWK" || AWK=awk
16131 _ACEOF
16132
16133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134 # The default lists apply if the user does not specify any file.
16135 ac_need_defaults=:
16136 while test $# != 0
16137 do
16138   case $1 in
16139   --*=?*)
16140     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16141     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16142     ac_shift=:
16143     ;;
16144   --*=)
16145     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16146     ac_optarg=
16147     ac_shift=:
16148     ;;
16149   *)
16150     ac_option=$1
16151     ac_optarg=$2
16152     ac_shift=shift
16153     ;;
16154   esac
16155
16156   case $ac_option in
16157   # Handling of the options.
16158   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16159     ac_cs_recheck=: ;;
16160   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16161     $as_echo "$ac_cs_version"; exit ;;
16162   --config | --confi | --conf | --con | --co | --c )
16163     $as_echo "$ac_cs_config"; exit ;;
16164   --debug | --debu | --deb | --de | --d | -d )
16165     debug=: ;;
16166   --file | --fil | --fi | --f )
16167     $ac_shift
16168     case $ac_optarg in
16169     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16170     '') as_fn_error $? "missing file argument" ;;
16171     esac
16172     as_fn_append CONFIG_FILES " '$ac_optarg'"
16173     ac_need_defaults=false;;
16174   --header | --heade | --head | --hea )
16175     $ac_shift
16176     case $ac_optarg in
16177     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16178     esac
16179     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16180     ac_need_defaults=false;;
16181   --he | --h)
16182     # Conflict between --help and --header
16183     as_fn_error $? "ambiguous option: \`$1'
16184 Try \`$0 --help' for more information.";;
16185   --help | --hel | -h )
16186     $as_echo "$ac_cs_usage"; exit ;;
16187   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16188   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16189     ac_cs_silent=: ;;
16190
16191   # This is an error.
16192   -*) as_fn_error $? "unrecognized option: \`$1'
16193 Try \`$0 --help' for more information." ;;
16194
16195   *) as_fn_append ac_config_targets " $1"
16196      ac_need_defaults=false ;;
16197
16198   esac
16199   shift
16200 done
16201
16202 ac_configure_extra_args=
16203
16204 if $ac_cs_silent; then
16205   exec 6>/dev/null
16206   ac_configure_extra_args="$ac_configure_extra_args --silent"
16207 fi
16208
16209 _ACEOF
16210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16211 if \$ac_cs_recheck; then
16212   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16213   shift
16214   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16215   CONFIG_SHELL='$SHELL'
16216   export CONFIG_SHELL
16217   exec "\$@"
16218 fi
16219
16220 _ACEOF
16221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222 exec 5>>config.log
16223 {
16224   echo
16225   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16226 ## Running $as_me. ##
16227 _ASBOX
16228   $as_echo "$ac_log"
16229 } >&5
16230
16231 _ACEOF
16232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 #
16234 # INIT-COMMANDS
16235 #
16236 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16237
16238
16239 # The HP-UX ksh and POSIX shell print the target directory to stdout
16240 # if CDPATH is set.
16241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16242
16243 sed_quote_subst='$sed_quote_subst'
16244 double_quote_subst='$double_quote_subst'
16245 delay_variable_subst='$delay_variable_subst'
16246 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16247 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16248 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16249 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16250 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16251 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16252 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16253 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16254 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16255 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16256 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16257 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16258 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16259 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16260 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16261 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16262 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16263 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16264 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16265 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16266 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16267 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16268 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16269 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16270 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16271 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16272 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16273 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16274 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16275 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16276 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16277 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16278 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16279 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16280 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16281 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16282 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16283 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16284 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16285 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16286 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16287 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16288 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16289 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16290 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16291 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16292 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16293 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16294 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16295 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16296 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16297 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16298 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16299 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16300 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16301 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16302 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16303 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16304 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16305 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16306 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16307 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16308 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16309 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16310 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16311 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16312 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16313 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16314 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16315 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16316 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16317 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16318 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16319 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16320 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16321 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16322 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16323 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16324 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16325 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16326 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16327 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16328 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16329 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16330 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16331 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16332 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16333 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16334 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16335 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16336 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16337 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16338 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16339 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16340 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16341 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16342 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16343 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16344 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16345 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16346 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16347 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16348 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16349 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16350 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16351 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16352 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16353 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16354 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16355 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16356 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16357 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16358 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16359 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16360 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16361 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16362 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16363 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16364 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16365 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16366 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16367 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16368 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16369 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16370 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16371 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16372 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16373 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16374 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16375 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16376 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16377 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16378 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16379 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16380 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16381 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16382 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16383 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16384 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16385 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16386 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16387 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16388 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16389 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16390 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16391 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16392 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16393 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16394 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16395 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16396 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16397 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16398 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16399 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16400 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16401 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16402 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16403 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16404 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16405 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16406 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16407 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16408 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16409 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16410 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16411 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16412 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16413 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16414 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16415 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16416 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16417
16418 LTCC='$LTCC'
16419 LTCFLAGS='$LTCFLAGS'
16420 compiler='$compiler_DEFAULT'
16421
16422 # Quote evaled strings.
16423 for var in SED \
16424 GREP \
16425 EGREP \
16426 FGREP \
16427 LD \
16428 NM \
16429 LN_S \
16430 lt_SP2NL \
16431 lt_NL2SP \
16432 reload_flag \
16433 OBJDUMP \
16434 deplibs_check_method \
16435 file_magic_cmd \
16436 AR \
16437 AR_FLAGS \
16438 STRIP \
16439 RANLIB \
16440 CC \
16441 CFLAGS \
16442 compiler \
16443 lt_cv_sys_global_symbol_pipe \
16444 lt_cv_sys_global_symbol_to_cdecl \
16445 lt_cv_sys_global_symbol_to_c_name_address \
16446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16447 SHELL \
16448 ECHO \
16449 lt_prog_compiler_no_builtin_flag \
16450 lt_prog_compiler_wl \
16451 lt_prog_compiler_pic \
16452 lt_prog_compiler_static \
16453 lt_cv_prog_compiler_c_o \
16454 need_locks \
16455 DSYMUTIL \
16456 NMEDIT \
16457 LIPO \
16458 OTOOL \
16459 OTOOL64 \
16460 shrext_cmds \
16461 export_dynamic_flag_spec \
16462 whole_archive_flag_spec \
16463 compiler_needs_object \
16464 with_gnu_ld \
16465 allow_undefined_flag \
16466 no_undefined_flag \
16467 hardcode_libdir_flag_spec \
16468 hardcode_libdir_flag_spec_ld \
16469 hardcode_libdir_separator \
16470 fix_srcfile_path \
16471 exclude_expsyms \
16472 include_expsyms \
16473 file_list_spec \
16474 variables_saved_for_relink \
16475 libname_spec \
16476 library_names_spec \
16477 soname_spec \
16478 finish_eval \
16479 old_striplib \
16480 striplib \
16481 compiler_lib_search_dirs \
16482 predep_objects \
16483 postdep_objects \
16484 predeps \
16485 postdeps \
16486 compiler_lib_search_path \
16487 LD_CXX \
16488 compiler_CXX \
16489 lt_prog_compiler_no_builtin_flag_CXX \
16490 lt_prog_compiler_wl_CXX \
16491 lt_prog_compiler_pic_CXX \
16492 lt_prog_compiler_static_CXX \
16493 lt_cv_prog_compiler_c_o_CXX \
16494 export_dynamic_flag_spec_CXX \
16495 whole_archive_flag_spec_CXX \
16496 compiler_needs_object_CXX \
16497 with_gnu_ld_CXX \
16498 allow_undefined_flag_CXX \
16499 no_undefined_flag_CXX \
16500 hardcode_libdir_flag_spec_CXX \
16501 hardcode_libdir_flag_spec_ld_CXX \
16502 hardcode_libdir_separator_CXX \
16503 fix_srcfile_path_CXX \
16504 exclude_expsyms_CXX \
16505 include_expsyms_CXX \
16506 file_list_spec_CXX \
16507 compiler_lib_search_dirs_CXX \
16508 predep_objects_CXX \
16509 postdep_objects_CXX \
16510 predeps_CXX \
16511 postdeps_CXX \
16512 compiler_lib_search_path_CXX; do
16513     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16514     *[\\\\\\\`\\"\\\$]*)
16515       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16516       ;;
16517     *)
16518       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16519       ;;
16520     esac
16521 done
16522
16523 # Double-quote double-evaled strings.
16524 for var in reload_cmds \
16525 old_postinstall_cmds \
16526 old_postuninstall_cmds \
16527 old_archive_cmds \
16528 extract_expsyms_cmds \
16529 old_archive_from_new_cmds \
16530 old_archive_from_expsyms_cmds \
16531 archive_cmds \
16532 archive_expsym_cmds \
16533 module_cmds \
16534 module_expsym_cmds \
16535 export_symbols_cmds \
16536 prelink_cmds \
16537 postinstall_cmds \
16538 postuninstall_cmds \
16539 finish_cmds \
16540 sys_lib_search_path_spec \
16541 sys_lib_dlsearch_path_spec \
16542 old_archive_cmds_CXX \
16543 old_archive_from_new_cmds_CXX \
16544 old_archive_from_expsyms_cmds_CXX \
16545 archive_cmds_CXX \
16546 archive_expsym_cmds_CXX \
16547 module_cmds_CXX \
16548 module_expsym_cmds_CXX \
16549 export_symbols_cmds_CXX \
16550 prelink_cmds_CXX; do
16551     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16552     *[\\\\\\\`\\"\\\$]*)
16553       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16554       ;;
16555     *)
16556       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16557       ;;
16558     esac
16559 done
16560
16561 # Fix-up fallback echo if it was mangled by the above quoting rules.
16562 case \$lt_ECHO in
16563 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16564   ;;
16565 esac
16566
16567 ac_aux_dir='$ac_aux_dir'
16568 xsi_shell='$xsi_shell'
16569 lt_shell_append='$lt_shell_append'
16570
16571 # See if we are running on zsh, and set the options which allow our
16572 # commands through without removal of \ escapes INIT.
16573 if test -n "\${ZSH_VERSION+set}" ; then
16574    setopt NO_GLOB_SUBST
16575 fi
16576
16577
16578     PACKAGE='$PACKAGE'
16579     VERSION='$VERSION'
16580     TIMESTAMP='$TIMESTAMP'
16581     RM='$RM'
16582     ofile='$ofile'
16583
16584
16585
16586
16587
16588
16589 _ACEOF
16590
16591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16592
16593 # Handling of arguments.
16594 for ac_config_target in $ac_config_targets
16595 do
16596   case $ac_config_target in
16597     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16598     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16599     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16600     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16601     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
16602     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
16603
16604   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16605   esac
16606 done
16607
16608
16609 # If the user did not use the arguments to specify the items to instantiate,
16610 # then the envvar interface is used.  Set only those that are not.
16611 # We use the long form for the default assignment because of an extremely
16612 # bizarre bug on SunOS 4.1.3.
16613 if $ac_need_defaults; then
16614   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16615   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16616   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16617 fi
16618
16619 # Have a temporary directory for convenience.  Make it in the build tree
16620 # simply because there is no reason against having it here, and in addition,
16621 # creating and moving files from /tmp can sometimes cause problems.
16622 # Hook for its removal unless debugging.
16623 # Note that there is a small window in which the directory will not be cleaned:
16624 # after its creation but before its name has been assigned to `$tmp'.
16625 $debug ||
16626 {
16627   tmp=
16628   trap 'exit_status=$?
16629   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16630 ' 0
16631   trap 'as_fn_exit 1' 1 2 13 15
16632 }
16633 # Create a (secure) tmp directory for tmp files.
16634
16635 {
16636   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16637   test -n "$tmp" && test -d "$tmp"
16638 }  ||
16639 {
16640   tmp=./conf$$-$RANDOM
16641   (umask 077 && mkdir "$tmp")
16642 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16643
16644 # Set up the scripts for CONFIG_FILES section.
16645 # No need to generate them if there are no CONFIG_FILES.
16646 # This happens for instance with `./config.status config.h'.
16647 if test -n "$CONFIG_FILES"; then
16648
16649
16650 ac_cr=`echo X | tr X '\015'`
16651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16652 # But we know of no other shell where ac_cr would be empty at this
16653 # point, so we can use a bashism as a fallback.
16654 if test "x$ac_cr" = x; then
16655   eval ac_cr=\$\'\\r\'
16656 fi
16657 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16659   ac_cs_awk_cr='\\r'
16660 else
16661   ac_cs_awk_cr=$ac_cr
16662 fi
16663
16664 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16665 _ACEOF
16666
16667
16668 {
16669   echo "cat >conf$$subs.awk <<_ACEOF" &&
16670   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16671   echo "_ACEOF"
16672 } >conf$$subs.sh ||
16673   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16675 ac_delim='%!_!# '
16676 for ac_last_try in false false false false false :; do
16677   . ./conf$$subs.sh ||
16678     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16679
16680   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16681   if test $ac_delim_n = $ac_delim_num; then
16682     break
16683   elif $ac_last_try; then
16684     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16685   else
16686     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16687   fi
16688 done
16689 rm -f conf$$subs.sh
16690
16691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16692 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16693 _ACEOF
16694 sed -n '
16695 h
16696 s/^/S["/; s/!.*/"]=/
16697 p
16698 g
16699 s/^[^!]*!//
16700 :repl
16701 t repl
16702 s/'"$ac_delim"'$//
16703 t delim
16704 :nl
16705 h
16706 s/\(.\{148\}\)..*/\1/
16707 t more1
16708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16709 p
16710 n
16711 b repl
16712 :more1
16713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16714 p
16715 g
16716 s/.\{148\}//
16717 t nl
16718 :delim
16719 h
16720 s/\(.\{148\}\)..*/\1/
16721 t more2
16722 s/["\\]/\\&/g; s/^/"/; s/$/"/
16723 p
16724 b
16725 :more2
16726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16727 p
16728 g
16729 s/.\{148\}//
16730 t delim
16731 ' <conf$$subs.awk | sed '
16732 /^[^""]/{
16733   N
16734   s/\n//
16735 }
16736 ' >>$CONFIG_STATUS || ac_write_fail=1
16737 rm -f conf$$subs.awk
16738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16739 _ACAWK
16740 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16741   for (key in S) S_is_set[key] = 1
16742   FS = "\a"
16743
16744 }
16745 {
16746   line = $ 0
16747   nfields = split(line, field, "@")
16748   substed = 0
16749   len = length(field[1])
16750   for (i = 2; i < nfields; i++) {
16751     key = field[i]
16752     keylen = length(key)
16753     if (S_is_set[key]) {
16754       value = S[key]
16755       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16756       len += length(value) + length(field[++i])
16757       substed = 1
16758     } else
16759       len += 1 + keylen
16760   }
16761
16762   print line
16763 }
16764
16765 _ACAWK
16766 _ACEOF
16767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16769   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16770 else
16771   cat
16772 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16773   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16774 _ACEOF
16775
16776 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16777 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16778 # trailing colons and then remove the whole line if VPATH becomes empty
16779 # (actually we leave an empty line to preserve line numbers).
16780 if test "x$srcdir" = x.; then
16781   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16782 h
16783 s///
16784 s/^/:/
16785 s/[      ]*$/:/
16786 s/:\$(srcdir):/:/g
16787 s/:\${srcdir}:/:/g
16788 s/:@srcdir@:/:/g
16789 s/^:*//
16790 s/:*$//
16791 x
16792 s/\(=[   ]*\).*/\1/
16793 G
16794 s/\n//
16795 s/^[^=]*=[       ]*$//
16796 }'
16797 fi
16798
16799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16800 fi # test -n "$CONFIG_FILES"
16801
16802 # Set up the scripts for CONFIG_HEADERS section.
16803 # No need to generate them if there are no CONFIG_HEADERS.
16804 # This happens for instance with `./config.status Makefile'.
16805 if test -n "$CONFIG_HEADERS"; then
16806 cat >"$tmp/defines.awk" <<\_ACAWK ||
16807 BEGIN {
16808 _ACEOF
16809
16810 # Transform confdefs.h into an awk script `defines.awk', embedded as
16811 # here-document in config.status, that substitutes the proper values into
16812 # config.h.in to produce config.h.
16813
16814 # Create a delimiter string that does not exist in confdefs.h, to ease
16815 # handling of long lines.
16816 ac_delim='%!_!# '
16817 for ac_last_try in false false :; do
16818   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16819   if test -z "$ac_t"; then
16820     break
16821   elif $ac_last_try; then
16822     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16823   else
16824     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16825   fi
16826 done
16827
16828 # For the awk script, D is an array of macro values keyed by name,
16829 # likewise P contains macro parameters if any.  Preserve backslash
16830 # newline sequences.
16831
16832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16833 sed -n '
16834 s/.\{148\}/&'"$ac_delim"'/g
16835 t rset
16836 :rset
16837 s/^[     ]*#[    ]*define[       ][      ]*/ /
16838 t def
16839 d
16840 :def
16841 s/\\$//
16842 t bsnl
16843 s/["\\]/\\&/g
16844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16845 D["\1"]=" \3"/p
16846 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16847 d
16848 :bsnl
16849 s/["\\]/\\&/g
16850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16851 D["\1"]=" \3\\\\\\n"\\/p
16852 t cont
16853 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16854 t cont
16855 d
16856 :cont
16857 n
16858 s/.\{148\}/&'"$ac_delim"'/g
16859 t clear
16860 :clear
16861 s/\\$//
16862 t bsnlc
16863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16864 d
16865 :bsnlc
16866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16867 b cont
16868 ' <confdefs.h | sed '
16869 s/'"$ac_delim"'/"\\\
16870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16871
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873   for (key in D) D_is_set[key] = 1
16874   FS = "\a"
16875 }
16876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16877   line = \$ 0
16878   split(line, arg, " ")
16879   if (arg[1] == "#") {
16880     defundef = arg[2]
16881     mac1 = arg[3]
16882   } else {
16883     defundef = substr(arg[1], 2)
16884     mac1 = arg[2]
16885   }
16886   split(mac1, mac2, "(") #)
16887   macro = mac2[1]
16888   prefix = substr(line, 1, index(line, defundef) - 1)
16889   if (D_is_set[macro]) {
16890     # Preserve the white space surrounding the "#".
16891     print prefix "define", macro P[macro] D[macro]
16892     next
16893   } else {
16894     # Replace #undef with comments.  This is necessary, for example,
16895     # in the case of _POSIX_SOURCE, which is predefined and required
16896     # on some systems where configure will not decide to define it.
16897     if (defundef == "undef") {
16898       print "/*", prefix defundef, macro, "*/"
16899       next
16900     }
16901   }
16902 }
16903 { print }
16904 _ACAWK
16905 _ACEOF
16906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16907   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16908 fi # test -n "$CONFIG_HEADERS"
16909
16910
16911 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16912 shift
16913 for ac_tag
16914 do
16915   case $ac_tag in
16916   :[FHLC]) ac_mode=$ac_tag; continue;;
16917   esac
16918   case $ac_mode$ac_tag in
16919   :[FHL]*:*);;
16920   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16921   :[FH]-) ac_tag=-:-;;
16922   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16923   esac
16924   ac_save_IFS=$IFS
16925   IFS=:
16926   set x $ac_tag
16927   IFS=$ac_save_IFS
16928   shift
16929   ac_file=$1
16930   shift
16931
16932   case $ac_mode in
16933   :L) ac_source=$1;;
16934   :[FH])
16935     ac_file_inputs=
16936     for ac_f
16937     do
16938       case $ac_f in
16939       -) ac_f="$tmp/stdin";;
16940       *) # Look for the file first in the build tree, then in the source tree
16941          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16942          # because $ac_f cannot contain `:'.
16943          test -f "$ac_f" ||
16944            case $ac_f in
16945            [\\/$]*) false;;
16946            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16947            esac ||
16948            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16949       esac
16950       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16951       as_fn_append ac_file_inputs " '$ac_f'"
16952     done
16953
16954     # Let's still pretend it is `configure' which instantiates (i.e., don't
16955     # use $as_me), people would be surprised to read:
16956     #    /* config.h.  Generated by config.status.  */
16957     configure_input='Generated from '`
16958           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16959         `' by configure.'
16960     if test x"$ac_file" != x-; then
16961       configure_input="$ac_file.  $configure_input"
16962       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16963 $as_echo "$as_me: creating $ac_file" >&6;}
16964     fi
16965     # Neutralize special characters interpreted by sed in replacement strings.
16966     case $configure_input in #(
16967     *\&* | *\|* | *\\* )
16968        ac_sed_conf_input=`$as_echo "$configure_input" |
16969        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16970     *) ac_sed_conf_input=$configure_input;;
16971     esac
16972
16973     case $ac_tag in
16974     *:-:* | *:-) cat >"$tmp/stdin" \
16975       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16976     esac
16977     ;;
16978   esac
16979
16980   ac_dir=`$as_dirname -- "$ac_file" ||
16981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16982          X"$ac_file" : 'X\(//\)[^/]' \| \
16983          X"$ac_file" : 'X\(//\)$' \| \
16984          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16985 $as_echo X"$ac_file" |
16986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16987             s//\1/
16988             q
16989           }
16990           /^X\(\/\/\)[^/].*/{
16991             s//\1/
16992             q
16993           }
16994           /^X\(\/\/\)$/{
16995             s//\1/
16996             q
16997           }
16998           /^X\(\/\).*/{
16999             s//\1/
17000             q
17001           }
17002           s/.*/./; q'`
17003   as_dir="$ac_dir"; as_fn_mkdir_p
17004   ac_builddir=.
17005
17006 case "$ac_dir" in
17007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17008 *)
17009   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17010   # A ".." for each directory in $ac_dir_suffix.
17011   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17012   case $ac_top_builddir_sub in
17013   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17014   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17015   esac ;;
17016 esac
17017 ac_abs_top_builddir=$ac_pwd
17018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17019 # for backward compatibility:
17020 ac_top_builddir=$ac_top_build_prefix
17021
17022 case $srcdir in
17023   .)  # We are building in place.
17024     ac_srcdir=.
17025     ac_top_srcdir=$ac_top_builddir_sub
17026     ac_abs_top_srcdir=$ac_pwd ;;
17027   [\\/]* | ?:[\\/]* )  # Absolute name.
17028     ac_srcdir=$srcdir$ac_dir_suffix;
17029     ac_top_srcdir=$srcdir
17030     ac_abs_top_srcdir=$srcdir ;;
17031   *) # Relative name.
17032     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17033     ac_top_srcdir=$ac_top_build_prefix$srcdir
17034     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17035 esac
17036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17037
17038
17039   case $ac_mode in
17040   :F)
17041   #
17042   # CONFIG_FILE
17043   #
17044
17045   case $INSTALL in
17046   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17047   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17048   esac
17049   ac_MKDIR_P=$MKDIR_P
17050   case $MKDIR_P in
17051   [\\/$]* | ?:[\\/]* ) ;;
17052   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17053   esac
17054 _ACEOF
17055
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 # If the template does not know about datarootdir, expand it.
17058 # FIXME: This hack should be removed a few years after 2.60.
17059 ac_datarootdir_hack=; ac_datarootdir_seen=
17060 ac_sed_dataroot='
17061 /datarootdir/ {
17062   p
17063   q
17064 }
17065 /@datadir@/p
17066 /@docdir@/p
17067 /@infodir@/p
17068 /@localedir@/p
17069 /@mandir@/p'
17070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17071 *datarootdir*) ac_datarootdir_seen=yes;;
17072 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17074 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17075 _ACEOF
17076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17077   ac_datarootdir_hack='
17078   s&@datadir@&$datadir&g
17079   s&@docdir@&$docdir&g
17080   s&@infodir@&$infodir&g
17081   s&@localedir@&$localedir&g
17082   s&@mandir@&$mandir&g
17083   s&\\\${datarootdir}&$datarootdir&g' ;;
17084 esac
17085 _ACEOF
17086
17087 # Neutralize VPATH when `$srcdir' = `.'.
17088 # Shell code in configure.ac might set extrasub.
17089 # FIXME: do we really want to maintain this feature?
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17091 ac_sed_extra="$ac_vpsub
17092 $extrasub
17093 _ACEOF
17094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17095 :t
17096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17097 s|@configure_input@|$ac_sed_conf_input|;t t
17098 s&@top_builddir@&$ac_top_builddir_sub&;t t
17099 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17100 s&@srcdir@&$ac_srcdir&;t t
17101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17102 s&@top_srcdir@&$ac_top_srcdir&;t t
17103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17104 s&@builddir@&$ac_builddir&;t t
17105 s&@abs_builddir@&$ac_abs_builddir&;t t
17106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17107 s&@INSTALL@&$ac_INSTALL&;t t
17108 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17109 $ac_datarootdir_hack
17110 "
17111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17112   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17113
17114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17115   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17116   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17117   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17118 which seems to be undefined.  Please make sure it is defined" >&5
17119 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17120 which seems to be undefined.  Please make sure it is defined" >&2;}
17121
17122   rm -f "$tmp/stdin"
17123   case $ac_file in
17124   -) cat "$tmp/out" && rm -f "$tmp/out";;
17125   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17126   esac \
17127   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17128  ;;
17129   :H)
17130   #
17131   # CONFIG_HEADER
17132   #
17133   if test x"$ac_file" != x-; then
17134     {
17135       $as_echo "/* $configure_input  */" \
17136       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17137     } >"$tmp/config.h" \
17138       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17139     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17140       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17141 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17142     else
17143       rm -f "$ac_file"
17144       mv "$tmp/config.h" "$ac_file" \
17145         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17146     fi
17147   else
17148     $as_echo "/* $configure_input  */" \
17149       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17150       || as_fn_error $? "could not create -" "$LINENO" 5
17151   fi
17152 # Compute "$ac_file"'s index in $config_headers.
17153 _am_arg="$ac_file"
17154 _am_stamp_count=1
17155 for _am_header in $config_headers :; do
17156   case $_am_header in
17157     $_am_arg | $_am_arg:* )
17158       break ;;
17159     * )
17160       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17161   esac
17162 done
17163 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17164 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17165          X"$_am_arg" : 'X\(//\)[^/]' \| \
17166          X"$_am_arg" : 'X\(//\)$' \| \
17167          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17168 $as_echo X"$_am_arg" |
17169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17170             s//\1/
17171             q
17172           }
17173           /^X\(\/\/\)[^/].*/{
17174             s//\1/
17175             q
17176           }
17177           /^X\(\/\/\)$/{
17178             s//\1/
17179             q
17180           }
17181           /^X\(\/\).*/{
17182             s//\1/
17183             q
17184           }
17185           s/.*/./; q'`/stamp-h$_am_stamp_count
17186  ;;
17187
17188   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17189 $as_echo "$as_me: executing $ac_file commands" >&6;}
17190  ;;
17191   esac
17192
17193
17194   case $ac_file$ac_mode in
17195     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17196   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17197   # are listed without --file.  Let's play safe and only enable the eval
17198   # if we detect the quoting.
17199   case $CONFIG_FILES in
17200   *\'*) eval set x "$CONFIG_FILES" ;;
17201   *)   set x $CONFIG_FILES ;;
17202   esac
17203   shift
17204   for mf
17205   do
17206     # Strip MF so we end up with the name of the file.
17207     mf=`echo "$mf" | sed -e 's/:.*$//'`
17208     # Check whether this is an Automake generated Makefile or not.
17209     # We used to match only the files named `Makefile.in', but
17210     # some people rename them; so instead we look at the file content.
17211     # Grep'ing the first line is not enough: some people post-process
17212     # each Makefile.in and add a new line on top of each file to say so.
17213     # Grep'ing the whole file is not good either: AIX grep has a line
17214     # limit of 2048, but all sed's we know have understand at least 4000.
17215     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17216       dirpart=`$as_dirname -- "$mf" ||
17217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17218          X"$mf" : 'X\(//\)[^/]' \| \
17219          X"$mf" : 'X\(//\)$' \| \
17220          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17221 $as_echo X"$mf" |
17222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17223             s//\1/
17224             q
17225           }
17226           /^X\(\/\/\)[^/].*/{
17227             s//\1/
17228             q
17229           }
17230           /^X\(\/\/\)$/{
17231             s//\1/
17232             q
17233           }
17234           /^X\(\/\).*/{
17235             s//\1/
17236             q
17237           }
17238           s/.*/./; q'`
17239     else
17240       continue
17241     fi
17242     # Extract the definition of DEPDIR, am__include, and am__quote
17243     # from the Makefile without running `make'.
17244     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17245     test -z "$DEPDIR" && continue
17246     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17247     test -z "am__include" && continue
17248     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17249     # When using ansi2knr, U may be empty or an underscore; expand it
17250     U=`sed -n 's/^U = //p' < "$mf"`
17251     # Find all dependency output files, they are included files with
17252     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17253     # simplest approach to changing $(DEPDIR) to its actual value in the
17254     # expansion.
17255     for file in `sed -n "
17256       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17257          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17258       # Make sure the directory exists.
17259       test -f "$dirpart/$file" && continue
17260       fdir=`$as_dirname -- "$file" ||
17261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262          X"$file" : 'X\(//\)[^/]' \| \
17263          X"$file" : 'X\(//\)$' \| \
17264          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17265 $as_echo X"$file" |
17266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17267             s//\1/
17268             q
17269           }
17270           /^X\(\/\/\)[^/].*/{
17271             s//\1/
17272             q
17273           }
17274           /^X\(\/\/\)$/{
17275             s//\1/
17276             q
17277           }
17278           /^X\(\/\).*/{
17279             s//\1/
17280             q
17281           }
17282           s/.*/./; q'`
17283       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17284       # echo "creating $dirpart/$file"
17285       echo '# dummy' > "$dirpart/$file"
17286     done
17287   done
17288 }
17289  ;;
17290     "libtool":C)
17291
17292     # See if we are running on zsh, and set the options which allow our
17293     # commands through without removal of \ escapes.
17294     if test -n "${ZSH_VERSION+set}" ; then
17295       setopt NO_GLOB_SUBST
17296     fi
17297
17298     cfgfile="${ofile}T"
17299     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17300     $RM "$cfgfile"
17301
17302     cat <<_LT_EOF >> "$cfgfile"
17303 #! $SHELL
17304
17305 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17306 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17308 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17309 #
17310 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17311 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17312 #   Written by Gordon Matzigkeit, 1996
17313 #
17314 #   This file is part of GNU Libtool.
17315 #
17316 # GNU Libtool is free software; you can redistribute it and/or
17317 # modify it under the terms of the GNU General Public License as
17318 # published by the Free Software Foundation; either version 2 of
17319 # the License, or (at your option) any later version.
17320 #
17321 # As a special exception to the GNU General Public License,
17322 # if you distribute this file as part of a program or library that
17323 # is built using GNU Libtool, you may include this file under the
17324 # same distribution terms that you use for the rest of that program.
17325 #
17326 # GNU Libtool is distributed in the hope that it will be useful,
17327 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17328 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17329 # GNU General Public License for more details.
17330 #
17331 # You should have received a copy of the GNU General Public License
17332 # along with GNU Libtool; see the file COPYING.  If not, a copy
17333 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17334 # obtained by writing to the Free Software Foundation, Inc.,
17335 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17336
17337
17338 # The names of the tagged configurations supported by this script.
17339 available_tags="CXX "
17340
17341 # ### BEGIN LIBTOOL CONFIG
17342
17343 # Which release of libtool.m4 was used?
17344 macro_version=$macro_version
17345 macro_revision=$macro_revision
17346
17347 # Whether or not to build static libraries.
17348 build_old_libs=$enable_static
17349
17350 # Whether or not to build shared libraries.
17351 build_libtool_libs=$enable_shared
17352
17353 # What type of objects to build.
17354 pic_mode=$pic_mode
17355
17356 # Whether or not to optimize for fast installation.
17357 fast_install=$enable_fast_install
17358
17359 # The host system.
17360 host_alias=$host_alias
17361 host=$host
17362 host_os=$host_os
17363
17364 # The build system.
17365 build_alias=$build_alias
17366 build=$build
17367 build_os=$build_os
17368
17369 # A sed program that does not truncate output.
17370 SED=$lt_SED
17371
17372 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17373 Xsed="\$SED -e 1s/^X//"
17374
17375 # A grep program that handles long lines.
17376 GREP=$lt_GREP
17377
17378 # An ERE matcher.
17379 EGREP=$lt_EGREP
17380
17381 # A literal string matcher.
17382 FGREP=$lt_FGREP
17383
17384 # A BSD- or MS-compatible name lister.
17385 NM=$lt_NM
17386
17387 # Whether we need soft or hard links.
17388 LN_S=$lt_LN_S
17389
17390 # What is the maximum length of a command?
17391 max_cmd_len=$max_cmd_len
17392
17393 # Object file suffix (normally "o").
17394 objext=$ac_objext
17395
17396 # Executable file suffix (normally "").
17397 exeext=$exeext
17398
17399 # whether the shell understands "unset".
17400 lt_unset=$lt_unset
17401
17402 # turn spaces into newlines.
17403 SP2NL=$lt_lt_SP2NL
17404
17405 # turn newlines into spaces.
17406 NL2SP=$lt_lt_NL2SP
17407
17408 # How to create reloadable object files.
17409 reload_flag=$lt_reload_flag
17410 reload_cmds=$lt_reload_cmds
17411
17412 # An object symbol dumper.
17413 OBJDUMP=$lt_OBJDUMP
17414
17415 # Method to check whether dependent libraries are shared objects.
17416 deplibs_check_method=$lt_deplibs_check_method
17417
17418 # Command to use when deplibs_check_method == "file_magic".
17419 file_magic_cmd=$lt_file_magic_cmd
17420
17421 # The archiver.
17422 AR=$lt_AR
17423 AR_FLAGS=$lt_AR_FLAGS
17424
17425 # A symbol stripping program.
17426 STRIP=$lt_STRIP
17427
17428 # Commands used to install an old-style archive.
17429 RANLIB=$lt_RANLIB
17430 old_postinstall_cmds=$lt_old_postinstall_cmds
17431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17432
17433 # A C compiler.
17434 LTCC=$lt_CC
17435
17436 # LTCC compiler flags.
17437 LTCFLAGS=$lt_CFLAGS
17438
17439 # Take the output of nm and produce a listing of raw symbols and C names.
17440 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17441
17442 # Transform the output of nm in a proper C declaration.
17443 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17444
17445 # Transform the output of nm in a C name address pair.
17446 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17447
17448 # Transform the output of nm in a C name address pair when lib prefix is needed.
17449 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17450
17451 # The name of the directory that contains temporary libtool files.
17452 objdir=$objdir
17453
17454 # Shell to use when invoking shell scripts.
17455 SHELL=$lt_SHELL
17456
17457 # An echo program that does not interpret backslashes.
17458 ECHO=$lt_ECHO
17459
17460 # Used to examine libraries when file_magic_cmd begins with "file".
17461 MAGIC_CMD=$MAGIC_CMD
17462
17463 # Must we lock files when doing compilation?
17464 need_locks=$lt_need_locks
17465
17466 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17467 DSYMUTIL=$lt_DSYMUTIL
17468
17469 # Tool to change global to local symbols on Mac OS X.
17470 NMEDIT=$lt_NMEDIT
17471
17472 # Tool to manipulate fat objects and archives on Mac OS X.
17473 LIPO=$lt_LIPO
17474
17475 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17476 OTOOL=$lt_OTOOL
17477
17478 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17479 OTOOL64=$lt_OTOOL64
17480
17481 # Old archive suffix (normally "a").
17482 libext=$libext
17483
17484 # Shared library suffix (normally ".so").
17485 shrext_cmds=$lt_shrext_cmds
17486
17487 # The commands to extract the exported symbol list from a shared archive.
17488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17489
17490 # Variables whose values should be saved in libtool wrapper scripts and
17491 # restored at link time.
17492 variables_saved_for_relink=$lt_variables_saved_for_relink
17493
17494 # Do we need the "lib" prefix for modules?
17495 need_lib_prefix=$need_lib_prefix
17496
17497 # Do we need a version for libraries?
17498 need_version=$need_version
17499
17500 # Library versioning type.
17501 version_type=$version_type
17502
17503 # Shared library runtime path variable.
17504 runpath_var=$runpath_var
17505
17506 # Shared library path variable.
17507 shlibpath_var=$shlibpath_var
17508
17509 # Is shlibpath searched before the hard-coded library search path?
17510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17511
17512 # Format of library name prefix.
17513 libname_spec=$lt_libname_spec
17514
17515 # List of archive names.  First name is the real one, the rest are links.
17516 # The last name is the one that the linker finds with -lNAME
17517 library_names_spec=$lt_library_names_spec
17518
17519 # The coded name of the library, if different from the real name.
17520 soname_spec=$lt_soname_spec
17521
17522 # Command to use after installation of a shared archive.
17523 postinstall_cmds=$lt_postinstall_cmds
17524
17525 # Command to use after uninstallation of a shared archive.
17526 postuninstall_cmds=$lt_postuninstall_cmds
17527
17528 # Commands used to finish a libtool library installation in a directory.
17529 finish_cmds=$lt_finish_cmds
17530
17531 # As "finish_cmds", except a single script fragment to be evaled but
17532 # not shown.
17533 finish_eval=$lt_finish_eval
17534
17535 # Whether we should hardcode library paths into libraries.
17536 hardcode_into_libs=$hardcode_into_libs
17537
17538 # Compile-time system search path for libraries.
17539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17540
17541 # Run-time system search path for libraries.
17542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17543
17544 # Whether dlopen is supported.
17545 dlopen_support=$enable_dlopen
17546
17547 # Whether dlopen of programs is supported.
17548 dlopen_self=$enable_dlopen_self
17549
17550 # Whether dlopen of statically linked programs is supported.
17551 dlopen_self_static=$enable_dlopen_self_static
17552
17553 # Commands to strip libraries.
17554 old_striplib=$lt_old_striplib
17555 striplib=$lt_striplib
17556
17557
17558 # The linker used to build libraries.
17559 LD=$lt_LD
17560
17561 # Commands used to build an old-style archive.
17562 old_archive_cmds=$lt_old_archive_cmds
17563
17564 # A language specific compiler.
17565 CC=$lt_compiler
17566
17567 # Is the compiler the GNU compiler?
17568 with_gcc=$GCC
17569
17570 # Compiler flag to turn off builtin functions.
17571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17572
17573 # How to pass a linker flag through the compiler.
17574 wl=$lt_lt_prog_compiler_wl
17575
17576 # Additional compiler flags for building library objects.
17577 pic_flag=$lt_lt_prog_compiler_pic
17578
17579 # Compiler flag to prevent dynamic linking.
17580 link_static_flag=$lt_lt_prog_compiler_static
17581
17582 # Does compiler simultaneously support -c and -o options?
17583 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17584
17585 # Whether or not to add -lc for building shared libraries.
17586 build_libtool_need_lc=$archive_cmds_need_lc
17587
17588 # Whether or not to disallow shared libs when runtime libs are static.
17589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17590
17591 # Compiler flag to allow reflexive dlopens.
17592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17593
17594 # Compiler flag to generate shared objects directly from archives.
17595 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17596
17597 # Whether the compiler copes with passing no objects directly.
17598 compiler_needs_object=$lt_compiler_needs_object
17599
17600 # Create an old-style archive from a shared archive.
17601 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17602
17603 # Create a temporary old-style archive to link instead of a shared archive.
17604 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17605
17606 # Commands used to build a shared archive.
17607 archive_cmds=$lt_archive_cmds
17608 archive_expsym_cmds=$lt_archive_expsym_cmds
17609
17610 # Commands used to build a loadable module if different from building
17611 # a shared archive.
17612 module_cmds=$lt_module_cmds
17613 module_expsym_cmds=$lt_module_expsym_cmds
17614
17615 # Whether we are building with GNU ld or not.
17616 with_gnu_ld=$lt_with_gnu_ld
17617
17618 # Flag that allows shared libraries with undefined symbols to be built.
17619 allow_undefined_flag=$lt_allow_undefined_flag
17620
17621 # Flag that enforces no undefined symbols.
17622 no_undefined_flag=$lt_no_undefined_flag
17623
17624 # Flag to hardcode \$libdir into a binary during linking.
17625 # This must work even if \$libdir does not exist
17626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17627
17628 # If ld is used when linking, flag to hardcode \$libdir into a binary
17629 # during linking.  This must work even if \$libdir does not exist.
17630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17631
17632 # Whether we need a single "-rpath" flag with a separated argument.
17633 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17634
17635 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17636 # DIR into the resulting binary.
17637 hardcode_direct=$hardcode_direct
17638
17639 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17640 # DIR into the resulting binary and the resulting library dependency is
17641 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17642 # library is relocated.
17643 hardcode_direct_absolute=$hardcode_direct_absolute
17644
17645 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17646 # into the resulting binary.
17647 hardcode_minus_L=$hardcode_minus_L
17648
17649 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17650 # into the resulting binary.
17651 hardcode_shlibpath_var=$hardcode_shlibpath_var
17652
17653 # Set to "yes" if building a shared library automatically hardcodes DIR
17654 # into the library and all subsequent libraries and executables linked
17655 # against it.
17656 hardcode_automatic=$hardcode_automatic
17657
17658 # Set to yes if linker adds runtime paths of dependent libraries
17659 # to runtime path list.
17660 inherit_rpath=$inherit_rpath
17661
17662 # Whether libtool must link a program against all its dependency libraries.
17663 link_all_deplibs=$link_all_deplibs
17664
17665 # Fix the shell variable \$srcfile for the compiler.
17666 fix_srcfile_path=$lt_fix_srcfile_path
17667
17668 # Set to "yes" if exported symbols are required.
17669 always_export_symbols=$always_export_symbols
17670
17671 # The commands to list exported symbols.
17672 export_symbols_cmds=$lt_export_symbols_cmds
17673
17674 # Symbols that should not be listed in the preloaded symbols.
17675 exclude_expsyms=$lt_exclude_expsyms
17676
17677 # Symbols that must always be exported.
17678 include_expsyms=$lt_include_expsyms
17679
17680 # Commands necessary for linking programs (against libraries) with templates.
17681 prelink_cmds=$lt_prelink_cmds
17682
17683 # Specify filename containing input files.
17684 file_list_spec=$lt_file_list_spec
17685
17686 # How to hardcode a shared library path into an executable.
17687 hardcode_action=$hardcode_action
17688
17689 # The directories searched by this compiler when creating a shared library.
17690 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17691
17692 # Dependencies to place before and after the objects being linked to
17693 # create a shared library.
17694 predep_objects=$lt_predep_objects
17695 postdep_objects=$lt_postdep_objects
17696 predeps=$lt_predeps
17697 postdeps=$lt_postdeps
17698
17699 # The library search path used internally by the compiler when linking
17700 # a shared library.
17701 compiler_lib_search_path=$lt_compiler_lib_search_path
17702
17703 # ### END LIBTOOL CONFIG
17704
17705 _LT_EOF
17706
17707   case $host_os in
17708   aix3*)
17709     cat <<\_LT_EOF >> "$cfgfile"
17710 # AIX sometimes has problems with the GCC collect2 program.  For some
17711 # reason, if we set the COLLECT_NAMES environment variable, the problems
17712 # vanish in a puff of smoke.
17713 if test "X${COLLECT_NAMES+set}" != Xset; then
17714   COLLECT_NAMES=
17715   export COLLECT_NAMES
17716 fi
17717 _LT_EOF
17718     ;;
17719   esac
17720
17721
17722 ltmain="$ac_aux_dir/ltmain.sh"
17723
17724
17725   # We use sed instead of cat because bash on DJGPP gets confused if
17726   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17727   # text mode, it properly converts lines to CR/LF.  This bash problem
17728   # is reportedly fixed, but why not run on old versions too?
17729   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17730     || (rm -f "$cfgfile"; exit 1)
17731
17732   case $xsi_shell in
17733   yes)
17734     cat << \_LT_EOF >> "$cfgfile"
17735
17736 # func_dirname file append nondir_replacement
17737 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17738 # otherwise set result to NONDIR_REPLACEMENT.
17739 func_dirname ()
17740 {
17741   case ${1} in
17742     */*) func_dirname_result="${1%/*}${2}" ;;
17743     *  ) func_dirname_result="${3}" ;;
17744   esac
17745 }
17746
17747 # func_basename file
17748 func_basename ()
17749 {
17750   func_basename_result="${1##*/}"
17751 }
17752
17753 # func_dirname_and_basename file append nondir_replacement
17754 # perform func_basename and func_dirname in a single function
17755 # call:
17756 #   dirname:  Compute the dirname of FILE.  If nonempty,
17757 #             add APPEND to the result, otherwise set result
17758 #             to NONDIR_REPLACEMENT.
17759 #             value returned in "$func_dirname_result"
17760 #   basename: Compute filename of FILE.
17761 #             value retuned in "$func_basename_result"
17762 # Implementation must be kept synchronized with func_dirname
17763 # and func_basename. For efficiency, we do not delegate to
17764 # those functions but instead duplicate the functionality here.
17765 func_dirname_and_basename ()
17766 {
17767   case ${1} in
17768     */*) func_dirname_result="${1%/*}${2}" ;;
17769     *  ) func_dirname_result="${3}" ;;
17770   esac
17771   func_basename_result="${1##*/}"
17772 }
17773
17774 # func_stripname prefix suffix name
17775 # strip PREFIX and SUFFIX off of NAME.
17776 # PREFIX and SUFFIX must not contain globbing or regex special
17777 # characters, hashes, percent signs, but SUFFIX may contain a leading
17778 # dot (in which case that matches only a dot).
17779 func_stripname ()
17780 {
17781   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17782   # positional parameters, so assign one to ordinary parameter first.
17783   func_stripname_result=${3}
17784   func_stripname_result=${func_stripname_result#"${1}"}
17785   func_stripname_result=${func_stripname_result%"${2}"}
17786 }
17787
17788 # func_opt_split
17789 func_opt_split ()
17790 {
17791   func_opt_split_opt=${1%%=*}
17792   func_opt_split_arg=${1#*=}
17793 }
17794
17795 # func_lo2o object
17796 func_lo2o ()
17797 {
17798   case ${1} in
17799     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17800     *)    func_lo2o_result=${1} ;;
17801   esac
17802 }
17803
17804 # func_xform libobj-or-source
17805 func_xform ()
17806 {
17807   func_xform_result=${1%.*}.lo
17808 }
17809
17810 # func_arith arithmetic-term...
17811 func_arith ()
17812 {
17813   func_arith_result=$(( $* ))
17814 }
17815
17816 # func_len string
17817 # STRING may not start with a hyphen.
17818 func_len ()
17819 {
17820   func_len_result=${#1}
17821 }
17822
17823 _LT_EOF
17824     ;;
17825   *) # Bourne compatible functions.
17826     cat << \_LT_EOF >> "$cfgfile"
17827
17828 # func_dirname file append nondir_replacement
17829 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17830 # otherwise set result to NONDIR_REPLACEMENT.
17831 func_dirname ()
17832 {
17833   # Extract subdirectory from the argument.
17834   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17835   if test "X$func_dirname_result" = "X${1}"; then
17836     func_dirname_result="${3}"
17837   else
17838     func_dirname_result="$func_dirname_result${2}"
17839   fi
17840 }
17841
17842 # func_basename file
17843 func_basename ()
17844 {
17845   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17846 }
17847
17848
17849 # func_stripname prefix suffix name
17850 # strip PREFIX and SUFFIX off of NAME.
17851 # PREFIX and SUFFIX must not contain globbing or regex special
17852 # characters, hashes, percent signs, but SUFFIX may contain a leading
17853 # dot (in which case that matches only a dot).
17854 # func_strip_suffix prefix name
17855 func_stripname ()
17856 {
17857   case ${2} in
17858     .*) func_stripname_result=`$ECHO "X${3}" \
17859            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17860     *)  func_stripname_result=`$ECHO "X${3}" \
17861            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17862   esac
17863 }
17864
17865 # sed scripts:
17866 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17867 my_sed_long_arg='1s/^-[^=]*=//'
17868
17869 # func_opt_split
17870 func_opt_split ()
17871 {
17872   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17873   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17874 }
17875
17876 # func_lo2o object
17877 func_lo2o ()
17878 {
17879   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17880 }
17881
17882 # func_xform libobj-or-source
17883 func_xform ()
17884 {
17885   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17886 }
17887
17888 # func_arith arithmetic-term...
17889 func_arith ()
17890 {
17891   func_arith_result=`expr "$@"`
17892 }
17893
17894 # func_len string
17895 # STRING may not start with a hyphen.
17896 func_len ()
17897 {
17898   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17899 }
17900
17901 _LT_EOF
17902 esac
17903
17904 case $lt_shell_append in
17905   yes)
17906     cat << \_LT_EOF >> "$cfgfile"
17907
17908 # func_append var value
17909 # Append VALUE to the end of shell variable VAR.
17910 func_append ()
17911 {
17912   eval "$1+=\$2"
17913 }
17914 _LT_EOF
17915     ;;
17916   *)
17917     cat << \_LT_EOF >> "$cfgfile"
17918
17919 # func_append var value
17920 # Append VALUE to the end of shell variable VAR.
17921 func_append ()
17922 {
17923   eval "$1=\$$1\$2"
17924 }
17925
17926 _LT_EOF
17927     ;;
17928   esac
17929
17930
17931   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17932     || (rm -f "$cfgfile"; exit 1)
17933
17934   mv -f "$cfgfile" "$ofile" ||
17935     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17936   chmod +x "$ofile"
17937
17938
17939     cat <<_LT_EOF >> "$ofile"
17940
17941 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17942
17943 # The linker used to build libraries.
17944 LD=$lt_LD_CXX
17945
17946 # Commands used to build an old-style archive.
17947 old_archive_cmds=$lt_old_archive_cmds_CXX
17948
17949 # A language specific compiler.
17950 CC=$lt_compiler_CXX
17951
17952 # Is the compiler the GNU compiler?
17953 with_gcc=$GCC_CXX
17954
17955 # Compiler flag to turn off builtin functions.
17956 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17957
17958 # How to pass a linker flag through the compiler.
17959 wl=$lt_lt_prog_compiler_wl_CXX
17960
17961 # Additional compiler flags for building library objects.
17962 pic_flag=$lt_lt_prog_compiler_pic_CXX
17963
17964 # Compiler flag to prevent dynamic linking.
17965 link_static_flag=$lt_lt_prog_compiler_static_CXX
17966
17967 # Does compiler simultaneously support -c and -o options?
17968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17969
17970 # Whether or not to add -lc for building shared libraries.
17971 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17972
17973 # Whether or not to disallow shared libs when runtime libs are static.
17974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17975
17976 # Compiler flag to allow reflexive dlopens.
17977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17978
17979 # Compiler flag to generate shared objects directly from archives.
17980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17981
17982 # Whether the compiler copes with passing no objects directly.
17983 compiler_needs_object=$lt_compiler_needs_object_CXX
17984
17985 # Create an old-style archive from a shared archive.
17986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17987
17988 # Create a temporary old-style archive to link instead of a shared archive.
17989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17990
17991 # Commands used to build a shared archive.
17992 archive_cmds=$lt_archive_cmds_CXX
17993 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17994
17995 # Commands used to build a loadable module if different from building
17996 # a shared archive.
17997 module_cmds=$lt_module_cmds_CXX
17998 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17999
18000 # Whether we are building with GNU ld or not.
18001 with_gnu_ld=$lt_with_gnu_ld_CXX
18002
18003 # Flag that allows shared libraries with undefined symbols to be built.
18004 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18005
18006 # Flag that enforces no undefined symbols.
18007 no_undefined_flag=$lt_no_undefined_flag_CXX
18008
18009 # Flag to hardcode \$libdir into a binary during linking.
18010 # This must work even if \$libdir does not exist
18011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18012
18013 # If ld is used when linking, flag to hardcode \$libdir into a binary
18014 # during linking.  This must work even if \$libdir does not exist.
18015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18016
18017 # Whether we need a single "-rpath" flag with a separated argument.
18018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18019
18020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18021 # DIR into the resulting binary.
18022 hardcode_direct=$hardcode_direct_CXX
18023
18024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18025 # DIR into the resulting binary and the resulting library dependency is
18026 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18027 # library is relocated.
18028 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18029
18030 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18031 # into the resulting binary.
18032 hardcode_minus_L=$hardcode_minus_L_CXX
18033
18034 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18035 # into the resulting binary.
18036 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18037
18038 # Set to "yes" if building a shared library automatically hardcodes DIR
18039 # into the library and all subsequent libraries and executables linked
18040 # against it.
18041 hardcode_automatic=$hardcode_automatic_CXX
18042
18043 # Set to yes if linker adds runtime paths of dependent libraries
18044 # to runtime path list.
18045 inherit_rpath=$inherit_rpath_CXX
18046
18047 # Whether libtool must link a program against all its dependency libraries.
18048 link_all_deplibs=$link_all_deplibs_CXX
18049
18050 # Fix the shell variable \$srcfile for the compiler.
18051 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18052
18053 # Set to "yes" if exported symbols are required.
18054 always_export_symbols=$always_export_symbols_CXX
18055
18056 # The commands to list exported symbols.
18057 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18058
18059 # Symbols that should not be listed in the preloaded symbols.
18060 exclude_expsyms=$lt_exclude_expsyms_CXX
18061
18062 # Symbols that must always be exported.
18063 include_expsyms=$lt_include_expsyms_CXX
18064
18065 # Commands necessary for linking programs (against libraries) with templates.
18066 prelink_cmds=$lt_prelink_cmds_CXX
18067
18068 # Specify filename containing input files.
18069 file_list_spec=$lt_file_list_spec_CXX
18070
18071 # How to hardcode a shared library path into an executable.
18072 hardcode_action=$hardcode_action_CXX
18073
18074 # The directories searched by this compiler when creating a shared library.
18075 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18076
18077 # Dependencies to place before and after the objects being linked to
18078 # create a shared library.
18079 predep_objects=$lt_predep_objects_CXX
18080 postdep_objects=$lt_postdep_objects_CXX
18081 predeps=$lt_predeps_CXX
18082 postdeps=$lt_postdeps_CXX
18083
18084 # The library search path used internally by the compiler when linking
18085 # a shared library.
18086 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18087
18088 # ### END LIBTOOL TAG CONFIG: CXX
18089 _LT_EOF
18090
18091  ;;
18092
18093   esac
18094 done # for ac_tag
18095
18096
18097 as_fn_exit 0
18098 _ACEOF
18099 ac_clean_files=$ac_clean_files_save
18100
18101 test $ac_write_fail = 0 ||
18102   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18103
18104
18105 # configure is writing to config.log, and then calls config.status.
18106 # config.status does its own redirection, appending to config.log.
18107 # Unfortunately, on DOS this fails, as config.log is still kept open
18108 # by configure, so config.status won't be able to write to it; its
18109 # output is simply discarded.  So we exec the FD to /dev/null,
18110 # effectively closing config.log, so it can be properly (re)opened and
18111 # appended to by config.status.  When coming back to configure, we
18112 # need to make the FD available again.
18113 if test "$no_create" != yes; then
18114   ac_cs_success=:
18115   ac_config_status_args=
18116   test "$silent" = yes &&
18117     ac_config_status_args="$ac_config_status_args --quiet"
18118   exec 5>/dev/null
18119   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18120   exec 5>>config.log
18121   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18122   # would make configure fail if this is the last instruction.
18123   $ac_cs_success || as_fn_exit 1
18124 fi
18125 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18126   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18127 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18128 fi
18129