]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
Happy New Year
[openldap] / contrib / ldapc++ / configure
1 #! /bin/sh
2 # From configure.in Id: 03855d8ef42a83e02c2c57833127e6e5c7fdb2bf .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ldapcpplib  .
5 #
6 # Report bugs to <http://www.openldap.org/its/ >.
7 #
8 # Copyright 2000-2015 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 #
11 #
12 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # Inc.
15 #
16 #
17 # This configure script is free software; the Free Software Foundation
18 # gives unlimited permission to copy, distribute and modify it.
19 ## -------------------- ##
20 ## M4sh Initialization. ##
21 ## -------------------- ##
22
23 # Be more Bourne compatible
24 DUALCASE=1; export DUALCASE # for MKS sh
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26   emulate sh
27   NULLCMD=:
28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29   # is contrary to our usage.  Disable this feature.
30   alias -g '${1+"$@"}'='"$@"'
31   setopt NO_GLOB_SUBST
32 else
33   case `(set -o) 2>/dev/null` in #(
34   *posix*) :
35     set -o posix ;; #(
36   *) :
37      ;;
38 esac
39 fi
40
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 # Prefer a ksh shell builtin over an external printf program on Solaris,
50 # but without wasting forks for bash or zsh.
51 if test -z "$BASH_VERSION$ZSH_VERSION" \
52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='print -r --'
54   as_echo_n='print -rn --'
55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56   as_echo='printf %s\n'
57   as_echo_n='printf %s'
58 else
59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61     as_echo_n='/usr/ucb/echo -n'
62   else
63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64     as_echo_n_body='eval
65       arg=$1;
66       case $arg in #(
67       *"$as_nl"*)
68         expr "X$arg" : "X\\(.*\\)$as_nl";
69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70       esac;
71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72     '
73     export as_echo_n_body
74     as_echo_n='sh -c $as_echo_n_body as_echo'
75   fi
76   export as_echo_body
77   as_echo='sh -c $as_echo_body as_echo'
78 fi
79
80 # The user is always right.
81 if test "${PATH_SEPARATOR+set}" != set; then
82   PATH_SEPARATOR=:
83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85       PATH_SEPARATOR=';'
86   }
87 fi
88
89
90 # IFS
91 # We need space, tab and new line, in precisely that order.  Quoting is
92 # there to prevent editors from complaining about space-tab.
93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
94 # splitting by setting IFS to empty value.)
95 IFS=" ""        $as_nl"
96
97 # Find who we are.  Look in the path if we contain no directory separator.
98 case $0 in #((
99   *[\\/]* ) as_myself=$0 ;;
100   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 for as_dir in $PATH
102 do
103   IFS=$as_save_IFS
104   test -z "$as_dir" && as_dir=.
105     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106   done
107 IFS=$as_save_IFS
108
109      ;;
110 esac
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
114   as_myself=$0
115 fi
116 if test ! -f "$as_myself"; then
117   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118   exit 1
119 fi
120
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there.  '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
128 done
129 PS1='$ '
130 PS2='> '
131 PS4='+ '
132
133 # NLS nuisances.
134 LC_ALL=C
135 export LC_ALL
136 LANGUAGE=C
137 export LANGUAGE
138
139 # CDPATH.
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171
172 else
173   exitcode=1; echo positional parameters were not saved.
174 fi
175 test x\$exitcode = x0 || exit 1"
176   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org and
238 $0: http://www.openldap.org/its/ about your system,
239 $0: including any error possibly output before this
240 $0: message. Then install a modern shell, or manually run
241 $0: the script under such a shell if you do have one."
242   fi
243   exit 1
244 fi
245 fi
246 fi
247 SHELL=${CONFIG_SHELL-/bin/sh}
248 export SHELL
249 # Unset more variables known to interfere with behavior of common tools.
250 CLICOLOR_FORCE= GREP_OPTIONS=
251 unset CLICOLOR_FORCE GREP_OPTIONS
252
253 ## --------------------- ##
254 ## M4sh Shell Functions. ##
255 ## --------------------- ##
256 # as_fn_unset VAR
257 # ---------------
258 # Portably unset VAR.
259 as_fn_unset ()
260 {
261   { eval $1=; unset $1;}
262 }
263 as_unset=as_fn_unset
264
265 # as_fn_set_status STATUS
266 # -----------------------
267 # Set $? to STATUS, without forking.
268 as_fn_set_status ()
269 {
270   return $1
271 } # as_fn_set_status
272
273 # as_fn_exit STATUS
274 # -----------------
275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 as_fn_exit ()
277 {
278   set +e
279   as_fn_set_status $1
280   exit $1
281 } # as_fn_exit
282
283 # as_fn_mkdir_p
284 # -------------
285 # Create "$as_dir" as a directory, including parents if necessary.
286 as_fn_mkdir_p ()
287 {
288
289   case $as_dir in #(
290   -*) as_dir=./$as_dir;;
291   esac
292   test -d "$as_dir" || eval $as_mkdir_p || {
293     as_dirs=
294     while :; do
295       case $as_dir in #(
296       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297       *) as_qdir=$as_dir;;
298       esac
299       as_dirs="'$as_qdir' $as_dirs"
300       as_dir=`$as_dirname -- "$as_dir" ||
301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
302          X"$as_dir" : 'X\(//\)[^/]' \| \
303          X"$as_dir" : 'X\(//\)$' \| \
304          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
305 $as_echo X"$as_dir" |
306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)[^/].*/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)$/{
315             s//\1/
316             q
317           }
318           /^X\(\/\).*/{
319             s//\1/
320             q
321           }
322           s/.*/./; q'`
323       test -d "$as_dir" && break
324     done
325     test -z "$as_dirs" || eval "mkdir $as_dirs"
326   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327
328
329 } # as_fn_mkdir_p
330 # as_fn_append VAR VALUE
331 # ----------------------
332 # Append the text in VALUE to the end of the definition contained in VAR. Take
333 # advantage of any shell optimizations that allow amortized linear growth over
334 # repeated appends, instead of the typical quadratic growth present in naive
335 # implementations.
336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
337   eval 'as_fn_append ()
338   {
339     eval $1+=\$2
340   }'
341 else
342   as_fn_append ()
343   {
344     eval $1=\$$1\$2
345   }
346 fi # as_fn_append
347
348 # as_fn_arith ARG...
349 # ------------------
350 # Perform arithmetic evaluation on the ARGs, and store the result in the
351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
352 # must be portable across $(()) and expr.
353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354   eval 'as_fn_arith ()
355   {
356     as_val=$(( $* ))
357   }'
358 else
359   as_fn_arith ()
360   {
361     as_val=`expr "$@" || test $? -eq 1`
362   }
363 fi # as_fn_arith
364
365
366 # as_fn_error ERROR [LINENO LOG_FD]
367 # ---------------------------------
368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
370 # script with status $?, using 1 if that was 0.
371 as_fn_error ()
372 {
373   as_status=$?; test $as_status -eq 0 && as_status=1
374   if test "$3"; then
375     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377   fi
378   $as_echo "$as_me: error: $1" >&2
379   as_fn_exit $as_status
380 } # as_fn_error
381
382 if expr a : '\(a\)' >/dev/null 2>&1 &&
383    test "X`expr 00001 : '.*\(...\)'`" = X001; then
384   as_expr=expr
385 else
386   as_expr=false
387 fi
388
389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390   as_basename=basename
391 else
392   as_basename=false
393 fi
394
395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396   as_dirname=dirname
397 else
398   as_dirname=false
399 fi
400
401 as_me=`$as_basename -- "$0" ||
402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
403          X"$0" : 'X\(//\)$' \| \
404          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 $as_echo X/"$0" |
406     sed '/^.*\/\([^/][^/]*\)\/*$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\/\)$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\).*/{
415             s//\1/
416             q
417           }
418           s/.*/./; q'`
419
420 # Avoid depending upon Character Ranges.
421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
424 as_cr_digits='0123456789'
425 as_cr_alnum=$as_cr_Letters$as_cr_digits
426
427
428   as_lineno_1=$LINENO as_lineno_1a=$LINENO
429   as_lineno_2=$LINENO as_lineno_2a=$LINENO
430   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
431   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
432   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
433   sed -n '
434     p
435     /[$]LINENO/=
436   ' <$as_myself |
437     sed '
438       s/[$]LINENO.*/&-/
439       t lineno
440       b
441       :lineno
442       N
443       :loop
444       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445       t loop
446       s/-\n.*//
447     ' >$as_me.lineno &&
448   chmod +x "$as_me.lineno" ||
449     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459 ECHO_C= ECHO_N= ECHO_T=
460 case `echo -n x` in #(((((
461 -n*)
462   case `echo 'xy\c'` in
463   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
464   xy)  ECHO_C='\c';;
465   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
466        ECHO_T=' ';;
467   esac;;
468 *)
469   ECHO_N='-n';;
470 esac
471
472 rm -f conf$$ conf$$.exe conf$$.file
473 if test -d conf$$.dir; then
474   rm -f conf$$.dir/conf$$.file
475 else
476   rm -f conf$$.dir
477   mkdir conf$$.dir 2>/dev/null
478 fi
479 if (echo >conf$$.file) 2>/dev/null; then
480   if ln -s conf$$.file conf$$ 2>/dev/null; then
481     as_ln_s='ln -s'
482     # ... but there are two gotchas:
483     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485     # In both cases, we have to default to `cp -p'.
486     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487       as_ln_s='cp -p'
488   elif ln conf$$.file conf$$ 2>/dev/null; then
489     as_ln_s=ln
490   else
491     as_ln_s='cp -p'
492   fi
493 else
494   as_ln_s='cp -p'
495 fi
496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497 rmdir conf$$.dir 2>/dev/null
498
499 if mkdir -p . 2>/dev/null; then
500   as_mkdir_p='mkdir -p "$as_dir"'
501 else
502   test -d ./-p && rmdir ./-p
503   as_mkdir_p=false
504 fi
505
506 if test -x / >/dev/null 2>&1; then
507   as_test_x='test -x'
508 else
509   if ls -dL / >/dev/null 2>&1; then
510     as_ls_L_option=L
511   else
512     as_ls_L_option=
513   fi
514   as_test_x='
515     eval sh -c '\''
516       if test -d "$1"; then
517         test -d "$1/.";
518       else
519         case $1 in #(
520         -*)set "./$1";;
521         esac;
522         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523         ???[sx]*):;;*)false;;esac;fi
524     '\'' sh
525   '
526 fi
527 as_executable_p=$as_test_x
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 # Check that we are running under the correct shell.
538 SHELL=${CONFIG_SHELL-/bin/sh}
539
540 case X$ECHO in
541 X*--fallback-echo)
542   # Remove one level of quotation (which was required for Make).
543   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
544   ;;
545 esac
546
547 echo=${ECHO-echo}
548 if test "X$1" = X--no-reexec; then
549   # Discard the --no-reexec flag, and continue.
550   shift
551 elif test "X$1" = X--fallback-echo; then
552   # Avoid inline document here, it may be left over
553   :
554 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
555   # Yippee, $echo works!
556   :
557 else
558   # Restart under the correct shell.
559   exec $SHELL "$0" --no-reexec ${1+"$@"}
560 fi
561
562 if test "X$1" = X--fallback-echo; then
563   # used as fallback echo
564   shift
565   cat <<EOF
566 $*
567 EOF
568   exit 0
569 fi
570
571 # The HP-UX ksh and POSIX shell print the target directory to stdout
572 # if CDPATH is set.
573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
574
575 if test -z "$ECHO"; then
576 if test "X${echo_test_string+set}" != Xset; then
577 # find a string as large as possible, as long as the shell can cope with it
578   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
579     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
580     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
581        echo_test_string=`eval $cmd` &&
582        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
583     then
584       break
585     fi
586   done
587 fi
588
589 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
590    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
591    test "X$echo_testing_string" = "X$echo_test_string"; then
592   :
593 else
594   # The Solaris, AIX, and Digital Unix default echo programs unquote
595   # backslashes.  This makes it impossible to quote backslashes using
596   #   echo "$something" | sed 's/\\/\\\\/g'
597   #
598   # So, first we look for a working echo in the user's PATH.
599
600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601   for dir in $PATH /usr/ucb; do
602     IFS="$lt_save_ifs"
603     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606        test "X$echo_testing_string" = "X$echo_test_string"; then
607       echo="$dir/echo"
608       break
609     fi
610   done
611   IFS="$lt_save_ifs"
612
613   if test "X$echo" = Xecho; then
614     # We didn't find a better echo, so look for alternatives.
615     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
616        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
617        test "X$echo_testing_string" = "X$echo_test_string"; then
618       # This shell has a builtin print -r that does the trick.
619       echo='print -r'
620     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
621          test "X$CONFIG_SHELL" != X/bin/ksh; then
622       # If we have ksh, try running configure again with it.
623       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624       export ORIGINAL_CONFIG_SHELL
625       CONFIG_SHELL=/bin/ksh
626       export CONFIG_SHELL
627       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628     else
629       # Try using printf.
630       echo='printf %s\n'
631       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
632          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
633          test "X$echo_testing_string" = "X$echo_test_string"; then
634         # Cool, printf works
635         :
636       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637            test "X$echo_testing_string" = 'X\t' &&
638            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639            test "X$echo_testing_string" = "X$echo_test_string"; then
640         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641         export CONFIG_SHELL
642         SHELL="$CONFIG_SHELL"
643         export SHELL
644         echo="$CONFIG_SHELL $0 --fallback-echo"
645       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646            test "X$echo_testing_string" = 'X\t' &&
647            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       else
651         # maybe with a smaller string...
652         prev=:
653
654         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
656           then
657             break
658           fi
659           prev="$cmd"
660         done
661
662         if test "$prev" != 'sed 50q "$0"'; then
663           echo_test_string=`eval $prev`
664           export echo_test_string
665           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666         else
667           # Oops.  We lost completely, so just stick with echo.
668           echo=echo
669         fi
670       fi
671     fi
672   fi
673 fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 ECHO=$echo
679 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 tagnames=${tagnames+${tagnames},}CXX
687
688 tagnames=${tagnames+${tagnames},}F77
689
690 test -n "$DJDIR" || exec 7<&0 </dev/null
691 exec 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709
710 # Identity of this package.
711 PACKAGE_NAME='ldapcpplib'
712 PACKAGE_TARNAME='ldapcpplib'
713 PACKAGE_VERSION=' '
714 PACKAGE_STRING='ldapcpplib  '
715 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
716 PACKAGE_URL=''
717
718 ac_unique_file="src/LDAPConnection.h"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #ifdef HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #ifdef HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #ifdef STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # ifdef HAVE_STDLIB_H
733 #  include <stdlib.h>
734 # endif
735 #endif
736 #ifdef HAVE_STRING_H
737 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #  include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #ifdef HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #ifdef HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #ifdef HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #ifdef HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='LTLIBOBJS
756 LIBOBJS
757 LIBTOOL
758 ac_ct_F77
759 FFLAGS
760 F77
761 CXXCPP
762 CPP
763 NMEDIT
764 DSYMUTIL
765 RANLIB
766 AR
767 ECHO
768 LN_S
769 EGREP
770 GREP
771 SED
772 am__fastdepCC_FALSE
773 am__fastdepCC_TRUE
774 CCDEPMODE
775 ac_ct_CC
776 CFLAGS
777 CC
778 host_os
779 host_vendor
780 host_cpu
781 host
782 build_os
783 build_vendor
784 build_cpu
785 build
786 am__fastdepCXX_FALSE
787 am__fastdepCXX_TRUE
788 CXXDEPMODE
789 AMDEPBACKSLASH
790 AMDEP_FALSE
791 AMDEP_TRUE
792 am__quote
793 am__include
794 DEPDIR
795 OBJEXT
796 EXEEXT
797 ac_ct_CXX
798 CPPFLAGS
799 LDFLAGS
800 CXXFLAGS
801 CXX
802 OPENLDAP_CPP_API_VERSION
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_dependency_tracking
868 enable_shared
869 enable_static
870 enable_fast_install
871 with_gnu_ld
872 enable_libtool_lock
873 with_pic
874 with_tags
875 enable_debug
876 with_libldap
877 with_ldap_includes
878 '
879       ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CXX
883 CXXFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CCC
888 CC
889 CFLAGS
890 CPP
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 ac_unrecognized_opts=
900 ac_unrecognized_sep=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948   # If the previous option needs an argument, assign it.
949   if test -n "$ac_prev"; then
950     eval $ac_prev=\$ac_option
951     ac_prev=
952     continue
953   fi
954
955   case $ac_option in
956   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957   *)    ac_optarg=yes ;;
958   esac
959
960   # Accept the important Cygnus configure options, so we can diagnose typos.
961
962   case $ac_dashdash$ac_option in
963   --)
964     ac_dashdash=yes ;;
965
966   -bindir | --bindir | --bindi | --bind | --bin | --bi)
967     ac_prev=bindir ;;
968   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969     bindir=$ac_optarg ;;
970
971   -build | --build | --buil | --bui | --bu)
972     ac_prev=build_alias ;;
973   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974     build_alias=$ac_optarg ;;
975
976   -cache-file | --cache-file | --cache-fil | --cache-fi \
977   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978     ac_prev=cache_file ;;
979   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981     cache_file=$ac_optarg ;;
982
983   --config-cache | -C)
984     cache_file=config.cache ;;
985
986   -datadir | --datadir | --datadi | --datad)
987     ac_prev=datadir ;;
988   -datadir=* | --datadir=* | --datadi=* | --datad=*)
989     datadir=$ac_optarg ;;
990
991   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992   | --dataroo | --dataro | --datar)
993     ac_prev=datarootdir ;;
994   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996     datarootdir=$ac_optarg ;;
997
998   -disable-* | --disable-*)
999     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002       as_fn_error "invalid feature name: $ac_useropt"
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=no ;;
1013
1014   -docdir | --docdir | --docdi | --doc | --do)
1015     ac_prev=docdir ;;
1016   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017     docdir=$ac_optarg ;;
1018
1019   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020     ac_prev=dvidir ;;
1021   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022     dvidir=$ac_optarg ;;
1023
1024   -enable-* | --enable-*)
1025     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028       as_fn_error "invalid feature name: $ac_useropt"
1029     ac_useropt_orig=$ac_useropt
1030     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031     case $ac_user_opts in
1032       *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036          ac_unrecognized_sep=', ';;
1037     esac
1038     eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042   | --exec | --exe | --ex)
1043     ac_prev=exec_prefix ;;
1044   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046   | --exec=* | --exe=* | --ex=*)
1047     exec_prefix=$ac_optarg ;;
1048
1049   -gas | --gas | --ga | --g)
1050     # Obsolete; use --with-gas.
1051     with_gas=yes ;;
1052
1053   -help | --help | --hel | --he | -h)
1054     ac_init_help=long ;;
1055   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056     ac_init_help=recursive ;;
1057   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058     ac_init_help=short ;;
1059
1060   -host | --host | --hos | --ho)
1061     ac_prev=host_alias ;;
1062   -host=* | --host=* | --hos=* | --ho=*)
1063     host_alias=$ac_optarg ;;
1064
1065   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066     ac_prev=htmldir ;;
1067   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068   | --ht=*)
1069     htmldir=$ac_optarg ;;
1070
1071   -includedir | --includedir | --includedi | --included | --include \
1072   | --includ | --inclu | --incl | --inc)
1073     ac_prev=includedir ;;
1074   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075   | --includ=* | --inclu=* | --incl=* | --inc=*)
1076     includedir=$ac_optarg ;;
1077
1078   -infodir | --infodir | --infodi | --infod | --info | --inf)
1079     ac_prev=infodir ;;
1080   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081     infodir=$ac_optarg ;;
1082
1083   -libdir | --libdir | --libdi | --libd)
1084     ac_prev=libdir ;;
1085   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086     libdir=$ac_optarg ;;
1087
1088   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089   | --libexe | --libex | --libe)
1090     ac_prev=libexecdir ;;
1091   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092   | --libexe=* | --libex=* | --libe=*)
1093     libexecdir=$ac_optarg ;;
1094
1095   -localedir | --localedir | --localedi | --localed | --locale)
1096     ac_prev=localedir ;;
1097   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098     localedir=$ac_optarg ;;
1099
1100   -localstatedir | --localstatedir | --localstatedi | --localstated \
1101   | --localstate | --localstat | --localsta | --localst | --locals)
1102     ac_prev=localstatedir ;;
1103   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105     localstatedir=$ac_optarg ;;
1106
1107   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108     ac_prev=mandir ;;
1109   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110     mandir=$ac_optarg ;;
1111
1112   -nfp | --nfp | --nf)
1113     # Obsolete; use --without-fp.
1114     with_fp=no ;;
1115
1116   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117   | --no-cr | --no-c | -n)
1118     no_create=yes ;;
1119
1120   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122     no_recursion=yes ;;
1123
1124   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126   | --oldin | --oldi | --old | --ol | --o)
1127     ac_prev=oldincludedir ;;
1128   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131     oldincludedir=$ac_optarg ;;
1132
1133   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134     ac_prev=prefix ;;
1135   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136     prefix=$ac_optarg ;;
1137
1138   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139   | --program-pre | --program-pr | --program-p)
1140     ac_prev=program_prefix ;;
1141   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143     program_prefix=$ac_optarg ;;
1144
1145   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146   | --program-suf | --program-su | --program-s)
1147     ac_prev=program_suffix ;;
1148   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150     program_suffix=$ac_optarg ;;
1151
1152   -program-transform-name | --program-transform-name \
1153   | --program-transform-nam | --program-transform-na \
1154   | --program-transform-n | --program-transform- \
1155   | --program-transform | --program-transfor \
1156   | --program-transfo | --program-transf \
1157   | --program-trans | --program-tran \
1158   | --progr-tra | --program-tr | --program-t)
1159     ac_prev=program_transform_name ;;
1160   -program-transform-name=* | --program-transform-name=* \
1161   | --program-transform-nam=* | --program-transform-na=* \
1162   | --program-transform-n=* | --program-transform-=* \
1163   | --program-transform=* | --program-transfor=* \
1164   | --program-transfo=* | --program-transf=* \
1165   | --program-trans=* | --program-tran=* \
1166   | --progr-tra=* | --program-tr=* | --program-t=*)
1167     program_transform_name=$ac_optarg ;;
1168
1169   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170     ac_prev=pdfdir ;;
1171   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172     pdfdir=$ac_optarg ;;
1173
1174   -psdir | --psdir | --psdi | --psd | --ps)
1175     ac_prev=psdir ;;
1176   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177     psdir=$ac_optarg ;;
1178
1179   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180   | -silent | --silent | --silen | --sile | --sil)
1181     silent=yes ;;
1182
1183   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184     ac_prev=sbindir ;;
1185   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186   | --sbi=* | --sb=*)
1187     sbindir=$ac_optarg ;;
1188
1189   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191   | --sharedst | --shareds | --shared | --share | --shar \
1192   | --sha | --sh)
1193     ac_prev=sharedstatedir ;;
1194   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197   | --sha=* | --sh=*)
1198     sharedstatedir=$ac_optarg ;;
1199
1200   -site | --site | --sit)
1201     ac_prev=site ;;
1202   -site=* | --site=* | --sit=*)
1203     site=$ac_optarg ;;
1204
1205   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206     ac_prev=srcdir ;;
1207   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208     srcdir=$ac_optarg ;;
1209
1210   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211   | --syscon | --sysco | --sysc | --sys | --sy)
1212     ac_prev=sysconfdir ;;
1213   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215     sysconfdir=$ac_optarg ;;
1216
1217   -target | --target | --targe | --targ | --tar | --ta | --t)
1218     ac_prev=target_alias ;;
1219   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220     target_alias=$ac_optarg ;;
1221
1222   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223     verbose=yes ;;
1224
1225   -version | --version | --versio | --versi | --vers | -V)
1226     ac_init_version=: ;;
1227
1228   -with-* | --with-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=\$ac_optarg ;;
1243
1244   -without-* | --without-*)
1245     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248       as_fn_error "invalid package name: $ac_useropt"
1249     ac_useropt_orig=$ac_useropt
1250     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251     case $ac_user_opts in
1252       *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256          ac_unrecognized_sep=', ';;
1257     esac
1258     eval with_$ac_useropt=no ;;
1259
1260   --x)
1261     # Obsolete; use --with-x.
1262     with_x=yes ;;
1263
1264   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265   | --x-incl | --x-inc | --x-in | --x-i)
1266     ac_prev=x_includes ;;
1267   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269     x_includes=$ac_optarg ;;
1270
1271   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273     ac_prev=x_libraries ;;
1274   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276     x_libraries=$ac_optarg ;;
1277
1278   -*) as_fn_error "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information."
1280     ;;
1281
1282   *=*)
1283     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284     # Reject names that are not valid shell variable names.
1285     case $ac_envvar in #(
1286       '' | [0-9]* | *[!_$as_cr_alnum]* )
1287       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1288     esac
1289     eval $ac_envvar=\$ac_optarg
1290     export $ac_envvar ;;
1291
1292   *)
1293     # FIXME: should be removed in autoconf 3.0.
1294     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298     ;;
1299
1300   esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305   as_fn_error "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309   case $enable_option_checking in
1310     no) ;;
1311     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1312     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313   esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318                 datadir sysconfdir sharedstatedir localstatedir includedir \
1319                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320                 libdir localedir mandir
1321 do
1322   eval ac_val=\$$ac_var
1323   # Remove trailing slashes.
1324   case $ac_val in
1325     */ )
1326       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327       eval $ac_var=\$ac_val;;
1328   esac
1329   # Be sure to have absolute directory names.
1330   case $ac_val in
1331     [\\/$]* | ?:[\\/]* )  continue;;
1332     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333   esac
1334   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346   if test "x$build_alias" = x; then
1347     cross_compiling=maybe
1348     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349     If a cross compiler is detected then cross compile mode will be used." >&2
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   as_fn_error "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366   as_fn_error "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$as_myself" : 'X\(//\)[^/]' \| \
1376          X"$as_myself" : 'X\(//\)$' \| \
1377          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1410         pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413   srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_env_${ac_var}_value=\$${ac_var}
1424   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432   # Omit some internal or obsolete options to make the list less imposing.
1433   # This message is too long to be a string in the A/UX 3.1 sh.
1434   cat <<_ACEOF
1435 \`configure' configures ldapcpplib   to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE.  See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445   -h, --help              display this help and exit
1446       --help=short        display options specific to this package
1447       --help=recursive    display the short help of all the included packages
1448   -V, --version           display version information and exit
1449   -q, --quiet, --silent   do not print \`checking...' messages
1450       --cache-file=FILE   cache test results in FILE [disabled]
1451   -C, --config-cache      alias for \`--cache-file=config.cache'
1452   -n, --no-create         do not create output files
1453       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456   --prefix=PREFIX         install architecture-independent files in PREFIX
1457                           [$ac_default_prefix]
1458   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459                           [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469   --bindir=DIR            user executables [EPREFIX/bin]
1470   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1471   --libexecdir=DIR        program executables [EPREFIX/libexec]
1472   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1473   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1474   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1475   --libdir=DIR            object code libraries [EPREFIX/lib]
1476   --includedir=DIR        C header files [PREFIX/include]
1477   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1478   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1479   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1480   --infodir=DIR           info documentation [DATAROOTDIR/info]
1481   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1482   --mandir=DIR            man documentation [DATAROOTDIR/man]
1483   --docdir=DIR            documentation root [DATAROOTDIR/doc/ldapcpplib]
1484   --htmldir=DIR           html documentation [DOCDIR]
1485   --dvidir=DIR            dvi documentation [DOCDIR]
1486   --pdfdir=DIR            pdf documentation [DOCDIR]
1487   --psdir=DIR             ps documentation [DOCDIR]
1488 _ACEOF
1489
1490   cat <<\_ACEOF
1491
1492 Program names:
1493   --program-prefix=PREFIX            prepend PREFIX to installed program names
1494   --program-suffix=SUFFIX            append SUFFIX to installed program names
1495   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1496
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of ldapcpplib  :";;
1506    esac
1507   cat <<\_ACEOF
1508
1509 Optional Features:
1510   --disable-option-checking  ignore unrecognized --enable/--with options
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --disable-dependency-tracking  speeds up one-time build
1514   --enable-dependency-tracking   do not reject slow dependency extractors
1515   --enable-shared[=PKGS]  build shared libraries [default=yes]
1516   --enable-static[=PKGS]  build static libraries [default=yes]
1517   --enable-fast-install[=PKGS]
1518                           optimize for fast installation [default=yes]
1519   --disable-libtool-lock  avoid locking (might break parallel builds)
1520   --enable-debug
1521
1522 Optional Packages:
1523   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1526   --with-pic              try to use only PIC/non-PIC objects [default=use
1527                           both]
1528   --with-tags[=TAGS]      include additional configurations [automatic]
1529   --with-libldap=DIR          Path to the libldap library /usr/local/lib
1530   --with-ldap-includes=DIR    Path to the libldap include files /usr/local/include
1531
1532 Some influential environment variables:
1533   CXX         C++ compiler command
1534   CXXFLAGS    C++ compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   CPP         C preprocessor
1543   CXXCPP      C++ preprocessor
1544   F77         Fortran 77 compiler command
1545   FFLAGS      Fortran 77 compiler flags
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to <http://www.openldap.org/its/ >.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556   # If there are subdirs, report their specific --help.
1557   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558     test -d "$ac_dir" ||
1559       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560       continue
1561     ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567   # A ".." for each directory in $ac_dir_suffix.
1568   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569   case $ac_top_builddir_sub in
1570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572   esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580   .)  # We are building in place.
1581     ac_srcdir=.
1582     ac_top_srcdir=$ac_top_builddir_sub
1583     ac_abs_top_srcdir=$ac_pwd ;;
1584   [\\/]* | ?:[\\/]* )  # Absolute name.
1585     ac_srcdir=$srcdir$ac_dir_suffix;
1586     ac_top_srcdir=$srcdir
1587     ac_abs_top_srcdir=$srcdir ;;
1588   *) # Relative name.
1589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590     ac_top_srcdir=$ac_top_build_prefix$srcdir
1591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595     cd "$ac_dir" || { ac_status=$?; continue; }
1596     # Check for guested configure.
1597     if test -f "$ac_srcdir/configure.gnu"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600     elif test -f "$ac_srcdir/configure"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure" --help=recursive
1603     else
1604       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605     fi || ac_status=$?
1606     cd "$ac_pwd" || { ac_status=$?; break; }
1607   done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612   cat <<\_ACEOF
1613 ldapcpplib configure
1614 generated by GNU Autoconf 2.65
1615
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619
1620 Copyright 2000-2015 The OpenLDAP Foundation. All rights reserved.
1621 Restrictions apply, see COPYRIGHT and LICENSE files.
1622 _ACEOF
1623   exit
1624 fi
1625
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1629
1630 # ac_fn_cxx_try_compile LINENO
1631 # ----------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_cxx_try_compile ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   rm -f conftest.$ac_objext
1637   if { { ac_try="$ac_compile"
1638 case "(($ac_try" in
1639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640   *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644   (eval "$ac_compile") 2>conftest.err
1645   ac_status=$?
1646   if test -s conftest.err; then
1647     grep -v '^ *+' conftest.err >conftest.er1
1648     cat conftest.er1 >&5
1649     mv -f conftest.er1 conftest.err
1650   fi
1651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652   test $ac_status = 0; } && {
1653          test -z "$ac_cxx_werror_flag" ||
1654          test ! -s conftest.err
1655        } && test -s conftest.$ac_objext; then :
1656   ac_retval=0
1657 else
1658   $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661         ac_retval=1
1662 fi
1663   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664   as_fn_set_status $ac_retval
1665
1666 } # ac_fn_cxx_try_compile
1667
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   rm -f conftest.$ac_objext
1675   if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_compile") 2>conftest.err
1683   ac_status=$?
1684   if test -s conftest.err; then
1685     grep -v '^ *+' conftest.err >conftest.er1
1686     cat conftest.er1 >&5
1687     mv -f conftest.er1 conftest.err
1688   fi
1689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690   test $ac_status = 0; } && {
1691          test -z "$ac_c_werror_flag" ||
1692          test ! -s conftest.err
1693        } && test -s conftest.$ac_objext; then :
1694   ac_retval=0
1695 else
1696   $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699         ac_retval=1
1700 fi
1701   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_compile
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   rm -f conftest.$ac_objext conftest$ac_exeext
1713   if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_link") 2>conftest.err
1721   ac_status=$?
1722   if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726   fi
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } && {
1729          test -z "$ac_c_werror_flag" ||
1730          test ! -s conftest.err
1731        } && test -s conftest$ac_exeext && {
1732          test "$cross_compiling" = yes ||
1733          $as_test_x conftest$ac_exeext
1734        }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740         ac_retval=1
1741 fi
1742   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744   # interfere with the next link command; also delete a directory that is
1745   # left behind by Apple's compiler.  We do this before executing the actions.
1746   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748   as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_link
1751
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_cpp ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766   ac_status=$?
1767   if test -s conftest.err; then
1768     grep -v '^ *+' conftest.err >conftest.er1
1769     cat conftest.er1 >&5
1770     mv -f conftest.er1 conftest.err
1771   fi
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } >/dev/null && {
1774          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775          test ! -s conftest.err
1776        }; then :
1777   ac_retval=0
1778 else
1779   $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782     ac_retval=1
1783 fi
1784   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785   as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_cpp
1788
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1793 # accordingly.
1794 ac_fn_c_check_header_mongrel ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801   $as_echo_n "(cached) " >&6
1802 fi
1803 eval ac_res=\$$3
1804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 else
1807   # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 $4
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816   ac_header_compiler=yes
1817 else
1818   ac_header_compiler=no
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1823
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832   ac_header_preproc=yes
1833 else
1834   ac_header_preproc=no
1835 fi
1836 rm -f conftest.err conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1839
1840 # So?  What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842   yes:no: )
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847     ;;
1848   no:yes:* )
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ( cat <<\_ASBOX
1860 ## -------------------------------------------- ##
1861 ## Report this to http://www.openldap.org/its/  ##
1862 ## -------------------------------------------- ##
1863 _ASBOX
1864      ) | sed "s/^/$as_me: WARNING:     /" >&2
1865     ;;
1866 esac
1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870   $as_echo_n "(cached) " >&6
1871 else
1872   eval "$3=\$ac_header_compiler"
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 fi
1878   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_header_mongrel
1881
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_link") 2>&5
1897   ac_status=$?
1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900   { { case "(($ac_try" in
1901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902   *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906   (eval "$ac_try") 2>&5
1907   ac_status=$?
1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909   test $ac_status = 0; }; }; then :
1910   ac_retval=0
1911 else
1912   $as_echo "$as_me: program exited with status $ac_status" >&5
1913        $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916        ac_retval=$ac_status
1917 fi
1918   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_c_try_run
1923
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934   $as_echo_n "(cached) " >&6
1935 else
1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 $4
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942   eval "$3=yes"
1943 else
1944   eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_header_compile
1954
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964   $as_echo_n "(cached) " >&6
1965 else
1966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1970 #define $2 innocuous_$2
1971
1972 /* System header to define __stub macros and hopefully few prototypes,
1973     which can conflict with char $2 (); below.
1974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975     <limits.h> exists even on freestanding compilers.  */
1976
1977 #ifdef __STDC__
1978 # include <limits.h>
1979 #else
1980 # include <assert.h>
1981 #endif
1982
1983 #undef $2
1984
1985 /* Override any GCC internal prototype to avoid an error.
1986    Use char because int might match the return type of a GCC
1987    builtin and then its argument prototype would still apply.  */
1988 #ifdef __cplusplus
1989 extern "C"
1990 #endif
1991 char $2 ();
1992 /* The GNU C library defines this for functions which it implements
1993     to always fail with ENOSYS.  Some functions are actually named
1994     something starting with __ and the normal name is an alias.  */
1995 #if defined __stub_$2 || defined __stub___$2
1996 choke me
1997 #endif
1998
1999 int
2000 main ()
2001 {
2002 return $2 ();
2003   ;
2004   return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_link "$LINENO"; then :
2008   eval "$3=yes"
2009 else
2010   eval "$3=no"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext \
2013     conftest$ac_exeext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
2020 } # ac_fn_c_check_func
2021
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   if { { ac_try="$ac_cpp conftest.$ac_ext"
2029 case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2036   ac_status=$?
2037   if test -s conftest.err; then
2038     grep -v '^ *+' conftest.err >conftest.er1
2039     cat conftest.er1 >&5
2040     mv -f conftest.er1 conftest.err
2041   fi
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; } >/dev/null && {
2044          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045          test ! -s conftest.err
2046        }; then :
2047   ac_retval=0
2048 else
2049   $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052     ac_retval=1
2053 fi
2054   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055   as_fn_set_status $ac_retval
2056
2057 } # ac_fn_cxx_try_cpp
2058
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   rm -f conftest.$ac_objext conftest$ac_exeext
2066   if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_link") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && {
2082          test -z "$ac_cxx_werror_flag" ||
2083          test ! -s conftest.err
2084        } && test -s conftest$ac_exeext && {
2085          test "$cross_compiling" = yes ||
2086          $as_test_x conftest$ac_exeext
2087        }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093         ac_retval=1
2094 fi
2095   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097   # interfere with the next link command; also delete a directory that is
2098   # left behind by Apple's compiler.  We do this before executing the actions.
2099   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101   as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_link
2104
2105 # ac_fn_f77_try_compile LINENO
2106 # ----------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_f77_try_compile ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   rm -f conftest.$ac_objext
2112   if { { ac_try="$ac_compile"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119   (eval "$ac_compile") 2>conftest.err
2120   ac_status=$?
2121   if test -s conftest.err; then
2122     grep -v '^ *+' conftest.err >conftest.er1
2123     cat conftest.er1 >&5
2124     mv -f conftest.er1 conftest.err
2125   fi
2126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127   test $ac_status = 0; } && {
2128          test -z "$ac_f77_werror_flag" ||
2129          test ! -s conftest.err
2130        } && test -s conftest.$ac_objext; then :
2131   ac_retval=0
2132 else
2133   $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136         ac_retval=1
2137 fi
2138   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139   as_fn_set_status $ac_retval
2140
2141 } # ac_fn_f77_try_compile
2142
2143 # ac_fn_f77_try_link LINENO
2144 # -------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_f77_try_link ()
2147 {
2148   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149   rm -f conftest.$ac_objext conftest$ac_exeext
2150   if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_link") 2>conftest.err
2158   ac_status=$?
2159   if test -s conftest.err; then
2160     grep -v '^ *+' conftest.err >conftest.er1
2161     cat conftest.er1 >&5
2162     mv -f conftest.er1 conftest.err
2163   fi
2164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165   test $ac_status = 0; } && {
2166          test -z "$ac_f77_werror_flag" ||
2167          test ! -s conftest.err
2168        } && test -s conftest$ac_exeext && {
2169          test "$cross_compiling" = yes ||
2170          $as_test_x conftest$ac_exeext
2171        }; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177         ac_retval=1
2178 fi
2179   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181   # interfere with the next link command; also delete a directory that is
2182   # left behind by Apple's compiler.  We do this before executing the actions.
2183   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185   as_fn_set_status $ac_retval
2186
2187 } # ac_fn_f77_try_link
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by ldapcpplib $as_me  , which was
2193 generated by GNU Autoconf 2.65.  Invocation command line was
2194
2195   $ $0 $@
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2213
2214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229     $as_echo "PATH: $as_dir"
2230   done
2231 IFS=$as_save_IFS
2232
2233 } >&5
2234
2235 cat >&5 <<_ACEOF
2236
2237
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2241
2242 _ACEOF
2243
2244
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2255 do
2256   for ac_arg
2257   do
2258     case $ac_arg in
2259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261     | -silent | --silent | --silen | --sile | --sil)
2262       continue ;;
2263     *\'*)
2264       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265     esac
2266     case $ac_pass in
2267     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268     2)
2269       as_fn_append ac_configure_args1 " '$ac_arg'"
2270       if test $ac_must_keep_next = true; then
2271         ac_must_keep_next=false # Got value, back to normal.
2272       else
2273         case $ac_arg in
2274           *=* | --config-cache | -C | -disable-* | --disable-* \
2275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277           | -with-* | --with-* | -without-* | --without-* | --x)
2278             case "$ac_configure_args0 " in
2279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280             esac
2281             ;;
2282           -* ) ac_must_keep_next=true ;;
2283         esac
2284       fi
2285       as_fn_append ac_configure_args " '$ac_arg'"
2286       ;;
2287     esac
2288   done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2292
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log.  We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299   # Save into config.log some information that might help in debugging.
2300   {
2301     echo
2302
2303     cat <<\_ASBOX
2304 ## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##
2307 _ASBOX
2308     echo
2309     # The following way of writing the cache mishandles newlines in values,
2310 (
2311   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2312     eval ac_val=\$$ac_var
2313     case $ac_val in #(
2314     *${as_nl}*)
2315       case $ac_var in #(
2316       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2318       esac
2319       case $ac_var in #(
2320       _ | IFS | as_nl) ;; #(
2321       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2322       *) { eval $ac_var=; unset $ac_var;} ;;
2323       esac ;;
2324     esac
2325   done
2326   (set) 2>&1 |
2327     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2328     *${as_nl}ac_space=\ *)
2329       sed -n \
2330         "s/'\''/'\''\\\\'\'''\''/g;
2331           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2332       ;; #(
2333     *)
2334       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2335       ;;
2336     esac |
2337     sort
2338 )
2339     echo
2340
2341     cat <<\_ASBOX
2342 ## ----------------- ##
2343 ## Output variables. ##
2344 ## ----------------- ##
2345 _ASBOX
2346     echo
2347     for ac_var in $ac_subst_vars
2348     do
2349       eval ac_val=\$$ac_var
2350       case $ac_val in
2351       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352       esac
2353       $as_echo "$ac_var='\''$ac_val'\''"
2354     done | sort
2355     echo
2356
2357     if test -n "$ac_subst_files"; then
2358       cat <<\_ASBOX
2359 ## ------------------- ##
2360 ## File substitutions. ##
2361 ## ------------------- ##
2362 _ASBOX
2363       echo
2364       for ac_var in $ac_subst_files
2365       do
2366         eval ac_val=\$$ac_var
2367         case $ac_val in
2368         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369         esac
2370         $as_echo "$ac_var='\''$ac_val'\''"
2371       done | sort
2372       echo
2373     fi
2374
2375     if test -s confdefs.h; then
2376       cat <<\_ASBOX
2377 ## ----------- ##
2378 ## confdefs.h. ##
2379 ## ----------- ##
2380 _ASBOX
2381       echo
2382       cat confdefs.h
2383       echo
2384     fi
2385     test "$ac_signal" != 0 &&
2386       $as_echo "$as_me: caught signal $ac_signal"
2387     $as_echo "$as_me: exit $exit_status"
2388   } >&5
2389   rm -f core *.core core.conftest.* &&
2390     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2391     exit $exit_status
2392 ' 0
2393 for ac_signal in 1 2 13 15; do
2394   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2395 done
2396 ac_signal=0
2397
2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2399 rm -f -r conftest* confdefs.h
2400
2401 $as_echo "/* confdefs.h */" > confdefs.h
2402
2403 # Predefined preprocessor variables.
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_NAME "$PACKAGE_NAME"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_STRING "$PACKAGE_STRING"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_URL "$PACKAGE_URL"
2427 _ACEOF
2428
2429
2430 # Let the site file select an alternate cache file if it wants to.
2431 # Prefer an explicitly selected file to automatically selected ones.
2432 ac_site_file1=NONE
2433 ac_site_file2=NONE
2434 if test -n "$CONFIG_SITE"; then
2435   ac_site_file1=$CONFIG_SITE
2436 elif test "x$prefix" != xNONE; then
2437   ac_site_file1=$prefix/share/config.site
2438   ac_site_file2=$prefix/etc/config.site
2439 else
2440   ac_site_file1=$ac_default_prefix/share/config.site
2441   ac_site_file2=$ac_default_prefix/etc/config.site
2442 fi
2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2444 do
2445   test "x$ac_site_file" = xNONE && continue
2446   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2447     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449     sed 's/^/| /' "$ac_site_file" >&5
2450     . "$ac_site_file"
2451   fi
2452 done
2453
2454 if test -r "$cache_file"; then
2455   # Some versions of bash will fail to source /dev/null (special files
2456   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2457   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2459 $as_echo "$as_me: loading cache $cache_file" >&6;}
2460     case $cache_file in
2461       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2462       *)                      . "./$cache_file";;
2463     esac
2464   fi
2465 else
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2467 $as_echo "$as_me: creating cache $cache_file" >&6;}
2468   >$cache_file
2469 fi
2470
2471 # Check that the precious variables saved in the cache have kept the same
2472 # value.
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476   eval ac_new_set=\$ac_env_${ac_var}_set
2477   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478   eval ac_new_val=\$ac_env_${ac_var}_value
2479   case $ac_old_set,$ac_new_set in
2480     set,)
2481       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483       ac_cache_corrupted=: ;;
2484     ,set)
2485       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487       ac_cache_corrupted=: ;;
2488     ,);;
2489     *)
2490       if test "x$ac_old_val" != "x$ac_new_val"; then
2491         # differences in whitespace do not lead to failure.
2492         ac_old_val_w=`echo x $ac_old_val`
2493         ac_new_val_w=`echo x $ac_new_val`
2494         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497           ac_cache_corrupted=:
2498         else
2499           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501           eval $ac_var=\$ac_old_val
2502         fi
2503         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2504 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2505         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2507       fi;;
2508   esac
2509   # Pass precious variables to config.status.
2510   if test "$ac_new_set" = set; then
2511     case $ac_new_val in
2512     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513     *) ac_arg=$ac_var=$ac_new_val ;;
2514     esac
2515     case " $ac_configure_args " in
2516       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2517       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2518     esac
2519   fi
2520 done
2521 if $ac_cache_corrupted; then
2522   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527 fi
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2531
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539
2540 am__api_version='1.10'
2541
2542 ac_aux_dir=
2543 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544   for ac_t in install-sh install.sh shtool; do
2545     if test -f "$ac_dir/$ac_t"; then
2546       ac_aux_dir=$ac_dir
2547       ac_install_sh="$ac_aux_dir/$ac_t -c"
2548       break 2
2549     fi
2550   done
2551 done
2552 if test -z "$ac_aux_dir"; then
2553   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2554 fi
2555
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2563
2564
2565 # Find a good install program.  We prefer a C program (faster),
2566 # so one script is as good as another.  But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2571 # AIX /bin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if test "${ac_cv_path_install+set}" = set; then :
2583   $as_echo_n "(cached) " >&6
2584 else
2585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590     # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592   ./ | .// | /[cC]/* | \
2593   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595   /usr/ucb/* ) ;;
2596   *)
2597     # OSF1 and SCO ODT 3.0 have their own names for install.
2598     # Don't use installbsd from OSF since it installs stuff as root
2599     # by default.
2600     for ac_prog in ginstall scoinst install; do
2601       for ac_exec_ext in '' $ac_executable_extensions; do
2602         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2603           if test $ac_prog = install &&
2604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605             # AIX install.  It has an incompatible calling convention.
2606             :
2607           elif test $ac_prog = install &&
2608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609             # program-specific install script used by HP pwplus--don't use.
2610             :
2611           else
2612             rm -rf conftest.one conftest.two conftest.dir
2613             echo one > conftest.one
2614             echo two > conftest.two
2615             mkdir conftest.dir
2616             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617               test -s conftest.one && test -s conftest.two &&
2618               test -s conftest.dir/conftest.one &&
2619               test -s conftest.dir/conftest.two
2620             then
2621               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622               break 3
2623             fi
2624           fi
2625         fi
2626       done
2627     done
2628     ;;
2629 esac
2630
2631   done
2632 IFS=$as_save_IFS
2633
2634 rm -rf conftest.one conftest.two conftest.dir
2635
2636 fi
2637   if test "${ac_cv_path_install+set}" = set; then
2638     INSTALL=$ac_cv_path_install
2639   else
2640     # As a last resort, use the slow shell script.  Don't cache a
2641     # value for INSTALL within a source directory, because that will
2642     # break other packages using the cache if that directory is
2643     # removed, or if the value is a relative name.
2644     INSTALL=$ac_install_sh
2645   fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2649
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Just in case
2661 sleep 1
2662 echo timestamp > conftest.file
2663 # Do `set' in a subshell so we don't clobber the current shell's
2664 # arguments.  Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2667 # directory).
2668 if (
2669    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2670    if test "$*" = "X"; then
2671       # -L didn't work.
2672       set X `ls -t $srcdir/configure conftest.file`
2673    fi
2674    rm -f conftest.file
2675    if test "$*" != "X $srcdir/configure conftest.file" \
2676       && test "$*" != "X conftest.file $srcdir/configure"; then
2677
2678       # If neither matched, then we have a broken ls.  This can happen
2679       # if, for instance, CONFIG_SHELL is bash and it inherits a
2680       # broken ls alias from the environment.  This has actually
2681       # happened.  Such a system could not be considered "sane".
2682       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2684    fi
2685
2686    test "$2" = conftest.file
2687    )
2688 then
2689    # Ok.
2690    :
2691 else
2692    as_fn_error "newly created file is older than distributed files!
2693 Check your system clock" "$LINENO" 5
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 test "$program_prefix" != NONE &&
2698   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was `s,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2706
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2709
2710 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2711 # Use eval to expand $SHELL
2712 if eval "$MISSING --run true"; then
2713   am_missing_run="$MISSING --run "
2714 else
2715   am_missing_run=
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2717 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2718 fi
2719
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722 if test -z "$MKDIR_P"; then
2723   if test "${ac_cv_path_mkdir+set}" = set; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_prog in mkdir gmkdir; do
2732          for ac_exec_ext in '' $ac_executable_extensions; do
2733            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2734            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735              'mkdir (GNU coreutils) '* | \
2736              'mkdir (coreutils) '* | \
2737              'mkdir (fileutils) '4.1*)
2738                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2739                break 3;;
2740            esac
2741          done
2742        done
2743   done
2744 IFS=$as_save_IFS
2745
2746 fi
2747
2748   test -d ./--version && rmdir ./--version
2749   if test "${ac_cv_path_mkdir+set}" = set; then
2750     MKDIR_P="$ac_cv_path_mkdir -p"
2751   else
2752     # As a last resort, use the slow shell script.  Don't cache a
2753     # value for MKDIR_P within a source directory, because that will
2754     # break other packages using the cache if that directory is
2755     # removed, or if the value is a relative name.
2756     MKDIR_P="$ac_install_sh -d"
2757   fi
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760 $as_echo "$MKDIR_P" >&6; }
2761
2762 mkdir_p="$MKDIR_P"
2763 case $mkdir_p in
2764   [\\/$]* | ?:[\\/]*) ;;
2765   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2766 esac
2767
2768 for ac_prog in gawk mawk nawk awk
2769 do
2770   # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_AWK+set}" = set; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   if test -n "$AWK"; then
2778   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785     for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_prog_AWK="$ac_prog"
2788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792   done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 AWK=$ac_cv_prog_AWK
2798 if test -n "$AWK"; then
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800 $as_echo "$AWK" >&6; }
2801 else
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807   test -n "$AWK" && break
2808 done
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812 set x ${MAKE-make}
2813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   cat >conftest.make <<\_ACEOF
2818 SHELL = /bin/sh
2819 all:
2820         @echo '@@@%%%=$(MAKE)=@@@%%%'
2821 _ACEOF
2822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2824   *@@@%%%=?*=@@@%%%*)
2825     eval ac_cv_prog_make_${ac_make}_set=yes;;
2826   *)
2827     eval ac_cv_prog_make_${ac_make}_set=no;;
2828 esac
2829 rm -f conftest.make
2830 fi
2831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834   SET_MAKE=
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838   SET_MAKE="MAKE=${MAKE-make}"
2839 fi
2840
2841 rm -rf .tst 2>/dev/null
2842 mkdir .tst 2>/dev/null
2843 if test -d .tst; then
2844   am__leading_dot=.
2845 else
2846   am__leading_dot=_
2847 fi
2848 rmdir .tst 2>/dev/null
2849
2850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2851   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2852   # is not polluted with repeated "-I."
2853   am__isrc=' -I$(srcdir)'
2854   # test to see if srcdir already configured
2855   if test -f $srcdir/config.status; then
2856     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2857   fi
2858 fi
2859
2860 # test whether we have cygpath
2861 if test -z "$CYGPATH_W"; then
2862   if (cygpath --version) >/dev/null 2>/dev/null; then
2863     CYGPATH_W='cygpath -w'
2864   else
2865     CYGPATH_W=echo
2866   fi
2867 fi
2868
2869
2870 # Define the identity of the package.
2871  PACKAGE='ldapcpplib'
2872  VERSION=' '
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE "$PACKAGE"
2877 _ACEOF
2878
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define VERSION "$VERSION"
2882 _ACEOF
2883
2884 # Some tools Automake needs.
2885
2886 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2887
2888
2889 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2890
2891
2892 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2893
2894
2895 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2896
2897
2898 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2899
2900 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2901
2902 # Installed binaries are usually stripped using `strip' when the user
2903 # run `make install-strip'.  However `strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the `STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no; then
2907   if test -n "$ac_tool_prefix"; then
2908   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_STRIP+set}" = set; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$STRIP"; then
2916   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 STRIP=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 $as_echo "$STRIP" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 fi
2946 if test -z "$ac_cv_prog_STRIP"; then
2947   ac_ct_STRIP=$STRIP
2948   # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2953   $as_echo_n "(cached) " >&6
2954 else
2955   if test -n "$ac_ct_STRIP"; then
2956   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963     for ac_exec_ext in '' $ac_executable_extensions; do
2964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965     ac_cv_prog_ac_ct_STRIP="strip"
2966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967     break 2
2968   fi
2969 done
2970   done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976 if test -n "$ac_ct_STRIP"; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978 $as_echo "$ac_ct_STRIP" >&6; }
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984   if test "x$ac_ct_STRIP" = x; then
2985     STRIP=":"
2986   else
2987     case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993     STRIP=$ac_ct_STRIP
2994   fi
2995 else
2996   STRIP="$ac_cv_prog_STRIP"
2997 fi
2998
2999 fi
3000 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3001
3002 # We need awk for the "check" target.  The system "awk" is bad on
3003 # some platforms.
3004 # Always define AMTAR for backward compatibility.
3005
3006 AMTAR=${AMTAR-"${am_missing_run}tar"}
3007
3008 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3009
3010
3011
3012
3013
3014 ac_config_headers="$ac_config_headers src/config.h"
3015
3016
3017 eval `$ac_aux_dir/version.sh`
3018 if test -z "$OL_CPP_API_RELEASE"; then
3019         as_fn_error "could not determine version" "$LINENO" 5
3020 fi
3021
3022 VERSION=$OL_CPP_API_RELEASE
3023 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
3024
3025
3026
3027 ac_ext=cpp
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033   if test -n "$CCC"; then
3034     CXX=$CCC
3035   else
3036     if test -n "$ac_tool_prefix"; then
3037   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3038   do
3039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$CXX"; then
3047   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054     for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CXX=$ac_cv_prog_CXX
3067 if test -n "$CXX"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3069 $as_echo "$CXX" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076     test -n "$CXX" && break
3077   done
3078 fi
3079 if test -z "$CXX"; then
3080   ac_ct_CXX=$CXX
3081   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 do
3083   # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3088   $as_echo_n "(cached) " >&6
3089 else
3090   if test -n "$ac_ct_CXX"; then
3091   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098     for ac_exec_ext in '' $ac_executable_extensions; do
3099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100     ac_cv_prog_ac_ct_CXX="$ac_prog"
3101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105   done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3113 $as_echo "$ac_ct_CXX" >&6; }
3114 else
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120   test -n "$ac_ct_CXX" && break
3121 done
3122
3123   if test "x$ac_ct_CXX" = x; then
3124     CXX="g++"
3125   else
3126     case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132     CXX=$ac_ct_CXX
3133   fi
3134 fi
3135
3136   fi
3137 fi
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3140 set X $ac_compile
3141 ac_compiler=$2
3142 for ac_option in --version -v -V -qversion; do
3143   { { ac_try="$ac_compiler $ac_option >&5"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3151   ac_status=$?
3152   if test -s conftest.err; then
3153     sed '10a\
3154 ... rest of stderr output deleted ...
3155          10q' conftest.err >conftest.er1
3156     cat conftest.er1 >&5
3157   fi
3158   rm -f conftest.er1 conftest.err
3159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160   test $ac_status = 0; }
3161 done
3162
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3178 # of exeext.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3180 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3182
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3188 do
3189   case $ac_file in
3190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192   esac
3193 done
3194 rm -f $ac_rmfiles
3195
3196 if { { ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203   (eval "$ac_link_default") 2>&5
3204   ac_status=$?
3205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206   test $ac_status = 0; }; then :
3207   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3211 # Autoconf.
3212 for ac_file in $ac_files ''
3213 do
3214   test -f "$ac_file" || continue
3215   case $ac_file in
3216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217         ;;
3218     [ab].out )
3219         # We found the default executable, but exeext='' is most
3220         # certainly right.
3221         break;;
3222     *.* )
3223         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224         then :; else
3225            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226         fi
3227         # We set ac_cv_exeext here because the later test for it is not
3228         # safe: cross compilers may not add the suffix if given an `-o'
3229         # argument, so we may need to know it at that point already.
3230         # Even if this section looks crufty: it has the advantage of
3231         # actually working.
3232         break;;
3233     * )
3234         break;;
3235   esac
3236 done
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238
3239 else
3240   ac_file=''
3241 fi
3242 if test -z "$ac_file"; then :
3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 { as_fn_set_status 77
3251 as_fn_error "C++ compiler cannot create executables
3252 See \`config.log' for more details." "$LINENO" 5; }; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3258 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 $as_echo "$ac_file" >&6; }
3261 ac_exeext=$ac_cv_exeext
3262
3263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 $as_echo_n "checking for suffix of executables... " >&6; }
3267 if { { ac_try="$ac_link"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274   (eval "$ac_link") 2>&5
3275   ac_status=$?
3276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277   test $ac_status = 0; }; then :
3278   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3280 # work properly (i.e., refer to `conftest.exe'), while it won't with
3281 # `rm'.
3282 for ac_file in conftest.exe conftest conftest.*; do
3283   test -f "$ac_file" || continue
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287           break;;
3288     * ) break;;
3289   esac
3290 done
3291 else
3292   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error "cannot compute suffix of executables: cannot compile and link
3295 See \`config.log' for more details." "$LINENO" 5; }
3296 fi
3297 rm -f conftest conftest$ac_cv_exeext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3300
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3303 ac_exeext=$EXEEXT
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h.  */
3306 #include <stdio.h>
3307 int
3308 main ()
3309 {
3310 FILE *f = fopen ("conftest.out", "w");
3311  return ferror (f) || fclose (f) != 0;
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files="$ac_clean_files conftest.out"
3318 # Check that the compiler produces executables we can run.  If not, either
3319 # the compiler is broken, or we cross compile.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 if test "$cross_compiling" != yes; then
3323   { { ac_try="$ac_link"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330   (eval "$ac_link") 2>&5
3331   ac_status=$?
3332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333   test $ac_status = 0; }
3334   if { ac_try='./conftest$ac_cv_exeext'
3335   { { case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341   (eval "$ac_try") 2>&5
3342   ac_status=$?
3343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344   test $ac_status = 0; }; }; then
3345     cross_compiling=no
3346   else
3347     if test "$cross_compiling" = maybe; then
3348         cross_compiling=yes
3349     else
3350         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error "cannot run C++ compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details." "$LINENO" 5; }
3355     fi
3356   fi
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3360
3361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 $as_echo_n "checking for suffix of object files... " >&6; }
3365 if test "${ac_cv_objext+set}" = set; then :
3366   $as_echo_n "(cached) " >&6
3367 else
3368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.o conftest.obj
3380 if { { ac_try="$ac_compile"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387   (eval "$ac_compile") 2>&5
3388   ac_status=$?
3389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390   test $ac_status = 0; }; then :
3391   for ac_file in conftest.o conftest.obj conftest.*; do
3392   test -f "$ac_file" || continue;
3393   case $ac_file in
3394     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396        break;;
3397   esac
3398 done
3399 else
3400   $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error "cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." "$LINENO" 5; }
3407 fi
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3413 ac_objext=$OBJEXT
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3417   $as_echo_n "(cached) " >&6
3418 else
3419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h.  */
3421
3422 int
3423 main ()
3424 {
3425 #ifndef __GNUC__
3426        choke me
3427 #endif
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_cxx_try_compile "$LINENO"; then :
3434   ac_compiler_gnu=yes
3435 else
3436   ac_compiler_gnu=no
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3440
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3445   GXX=yes
3446 else
3447   GXX=
3448 fi
3449 ac_test_CXXFLAGS=${CXXFLAGS+set}
3450 ac_save_CXXFLAGS=$CXXFLAGS
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3453 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3457    ac_cxx_werror_flag=yes
3458    ac_cv_prog_cxx_g=no
3459    CXXFLAGS="-g"
3460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_cxx_try_compile "$LINENO"; then :
3472   ac_cv_prog_cxx_g=yes
3473 else
3474   CXXFLAGS=""
3475       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h.  */
3477
3478 int
3479 main ()
3480 {
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_cxx_try_compile "$LINENO"; then :
3487
3488 else
3489   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3490          CXXFLAGS="-g"
3491          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_cxx_try_compile "$LINENO"; then :
3503   ac_cv_prog_cxx_g=yes
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3514 if test "$ac_test_CXXFLAGS" = set; then
3515   CXXFLAGS=$ac_save_CXXFLAGS
3516 elif test $ac_cv_prog_cxx_g = yes; then
3517   if test "$GXX" = yes; then
3518     CXXFLAGS="-g -O2"
3519   else
3520     CXXFLAGS="-g"
3521   fi
3522 else
3523   if test "$GXX" = yes; then
3524     CXXFLAGS="-O2"
3525   else
3526     CXXFLAGS=
3527   fi
3528 fi
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 DEPDIR="${am__leading_dot}deps"
3535
3536 ac_config_commands="$ac_config_commands depfiles"
3537
3538
3539 am_make=${MAKE-make}
3540 cat > confinc << 'END'
3541 am__doit:
3542         @echo done
3543 .PHONY: am__doit
3544 END
3545 # If we don't find an include directive, just comment out the code.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3547 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3548 am__include="#"
3549 am__quote=
3550 _am_result=none
3551 # First try GNU make style include.
3552 echo "include confinc" > confmf
3553 # We grep out `Entering directory' and `Leaving directory'
3554 # messages which can occur if `w' ends up in MAKEFLAGS.
3555 # In particular we don't look at `^make:' because GNU make might
3556 # be invoked under some other name (usually "gmake"), in which
3557 # case it prints its new name instead of `make'.
3558 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3559    am__include=include
3560    am__quote=
3561    _am_result=GNU
3562 fi
3563 # Now try BSD make style include.
3564 if test "$am__include" = "#"; then
3565    echo '.include "confinc"' > confmf
3566    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3567       am__include=.include
3568       am__quote="\""
3569       _am_result=BSD
3570    fi
3571 fi
3572
3573
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3575 $as_echo "$_am_result" >&6; }
3576 rm -f confinc confmf
3577
3578 # Check whether --enable-dependency-tracking was given.
3579 if test "${enable_dependency_tracking+set}" = set; then :
3580   enableval=$enable_dependency_tracking;
3581 fi
3582
3583 if test "x$enable_dependency_tracking" != xno; then
3584   am_depcomp="$ac_aux_dir/depcomp"
3585   AMDEPBACKSLASH='\'
3586 fi
3587  if test "x$enable_dependency_tracking" != xno; then
3588   AMDEP_TRUE=
3589   AMDEP_FALSE='#'
3590 else
3591   AMDEP_TRUE='#'
3592   AMDEP_FALSE=
3593 fi
3594
3595
3596
3597 depcc="$CXX"  am_compiler_list=
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3602   $as_echo_n "(cached) " >&6
3603 else
3604   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605   # We make a subdir and do the tests there.  Otherwise we can end up
3606   # making bogus files that we don't know about and never remove.  For
3607   # instance it was reported that on HP-UX the gcc test will end up
3608   # making a dummy file named `D' -- because `-MD' means `put the output
3609   # in D'.
3610   mkdir conftest.dir
3611   # Copy depcomp to subdir because otherwise we won't find it if we're
3612   # using a relative directory.
3613   cp "$am_depcomp" conftest.dir
3614   cd conftest.dir
3615   # We will build objects and dependencies in a subdirectory because
3616   # it helps to detect inapplicable dependency modes.  For instance
3617   # both Tru64's cc and ICC support -MD to output dependencies as a
3618   # side effect of compilation, but ICC will put the dependencies in
3619   # the current directory while Tru64 will put them in the object
3620   # directory.
3621   mkdir sub
3622
3623   am_cv_CXX_dependencies_compiler_type=none
3624   if test "$am_compiler_list" = ""; then
3625      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3626   fi
3627   for depmode in $am_compiler_list; do
3628     # Setup a source with many dependencies, because some compilers
3629     # like to wrap large dependency lists on column 80 (with \), and
3630     # we should not choose a depcomp mode which is confused by this.
3631     #
3632     # We need to recreate these files for each test, as the compiler may
3633     # overwrite some of them when testing with obscure command lines.
3634     # This happens at least with the AIX C compiler.
3635     : > sub/conftest.c
3636     for i in 1 2 3 4 5 6; do
3637       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3638       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3639       # Solaris 8's {/usr,}/bin/sh.
3640       touch sub/conftst$i.h
3641     done
3642     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3643
3644     case $depmode in
3645     nosideeffect)
3646       # after this tag, mechanisms are not by side-effect, so they'll
3647       # only be used when explicitly requested
3648       if test "x$enable_dependency_tracking" = xyes; then
3649         continue
3650       else
3651         break
3652       fi
3653       ;;
3654     none) break ;;
3655     esac
3656     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3657     # mode.  It turns out that the SunPro C++ compiler does not properly
3658     # handle `-M -o', and we need to detect this.
3659     if depmode=$depmode \
3660        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3661        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3662        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3663          >/dev/null 2>conftest.err &&
3664        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3665        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3666        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3667        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668       # icc doesn't choke on unknown options, it will just issue warnings
3669       # or remarks (even with -Werror).  So we grep stderr for any message
3670       # that says an option was ignored or not supported.
3671       # When given -MP, icc 7.0 and 7.1 complain thusly:
3672       #   icc: Command line warning: ignoring option '-M'; no argument required
3673       # The diagnosis changed in icc 8.0:
3674       #   icc: Command line remark: option '-MP' not supported
3675       if (grep 'ignoring option' conftest.err ||
3676           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3677         am_cv_CXX_dependencies_compiler_type=$depmode
3678         break
3679       fi
3680     fi
3681   done
3682
3683   cd ..
3684   rm -rf conftest.dir
3685 else
3686   am_cv_CXX_dependencies_compiler_type=none
3687 fi
3688
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3693
3694  if
3695   test "x$enable_dependency_tracking" != xno \
3696   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3697   am__fastdepCXX_TRUE=
3698   am__fastdepCXX_FALSE='#'
3699 else
3700   am__fastdepCXX_TRUE='#'
3701   am__fastdepCXX_FALSE=
3702 fi
3703
3704
3705 # Check whether --enable-shared was given.
3706 if test "${enable_shared+set}" = set; then :
3707   enableval=$enable_shared; p=${PACKAGE-default}
3708     case $enableval in
3709     yes) enable_shared=yes ;;
3710     no) enable_shared=no ;;
3711     *)
3712       enable_shared=no
3713       # Look at the argument we got.  We use all the common list separators.
3714       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3715       for pkg in $enableval; do
3716         IFS="$lt_save_ifs"
3717         if test "X$pkg" = "X$p"; then
3718           enable_shared=yes
3719         fi
3720       done
3721       IFS="$lt_save_ifs"
3722       ;;
3723     esac
3724 else
3725   enable_shared=yes
3726 fi
3727
3728
3729 # Check whether --enable-static was given.
3730 if test "${enable_static+set}" = set; then :
3731   enableval=$enable_static; p=${PACKAGE-default}
3732     case $enableval in
3733     yes) enable_static=yes ;;
3734     no) enable_static=no ;;
3735     *)
3736      enable_static=no
3737       # Look at the argument we got.  We use all the common list separators.
3738       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3739       for pkg in $enableval; do
3740         IFS="$lt_save_ifs"
3741         if test "X$pkg" = "X$p"; then
3742           enable_static=yes
3743         fi
3744       done
3745       IFS="$lt_save_ifs"
3746       ;;
3747     esac
3748 else
3749   enable_static=yes
3750 fi
3751
3752
3753 # Check whether --enable-fast-install was given.
3754 if test "${enable_fast_install+set}" = set; then :
3755   enableval=$enable_fast_install; p=${PACKAGE-default}
3756     case $enableval in
3757     yes) enable_fast_install=yes ;;
3758     no) enable_fast_install=no ;;
3759     *)
3760       enable_fast_install=no
3761       # Look at the argument we got.  We use all the common list separators.
3762       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3763       for pkg in $enableval; do
3764         IFS="$lt_save_ifs"
3765         if test "X$pkg" = "X$p"; then
3766           enable_fast_install=yes
3767         fi
3768       done
3769       IFS="$lt_save_ifs"
3770       ;;
3771     esac
3772 else
3773   enable_fast_install=yes
3774 fi
3775
3776
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782 $as_echo_n "checking build system type... " >&6; }
3783 if test "${ac_cv_build+set}" = set; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   ac_build_alias=$build_alias
3787 test "x$ac_build_alias" = x &&
3788   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789 test "x$ac_build_alias" = x &&
3790   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3793
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796 $as_echo "$ac_cv_build" >&6; }
3797 case $ac_cv_build in
3798 *-*-*) ;;
3799 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3800 esac
3801 build=$ac_cv_build
3802 ac_save_IFS=$IFS; IFS='-'
3803 set x $ac_cv_build
3804 shift
3805 build_cpu=$1
3806 build_vendor=$2
3807 shift; shift
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3810 build_os=$*
3811 IFS=$ac_save_IFS
3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3813
3814
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816 $as_echo_n "checking host system type... " >&6; }
3817 if test "${ac_cv_host+set}" = set; then :
3818   $as_echo_n "(cached) " >&6
3819 else
3820   if test "x$host_alias" = x; then
3821   ac_cv_host=$ac_cv_build
3822 else
3823   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3825 fi
3826
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829 $as_echo "$ac_cv_host" >&6; }
3830 case $ac_cv_host in
3831 *-*-*) ;;
3832 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3833 esac
3834 host=$ac_cv_host
3835 ac_save_IFS=$IFS; IFS='-'
3836 set x $ac_cv_host
3837 shift
3838 host_cpu=$1
3839 host_vendor=$2
3840 shift; shift
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3843 host_os=$*
3844 IFS=$ac_save_IFS
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3846
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 if test -n "$ac_tool_prefix"; then
3854   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_CC+set}" = set; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   if test -n "$CC"; then
3862   ac_cv_prog_CC="$CC" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867   IFS=$as_save_IFS
3868   test -z "$as_dir" && as_dir=.
3869     for ac_exec_ext in '' $ac_executable_extensions; do
3870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873     break 2
3874   fi
3875 done
3876   done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 CC=$ac_cv_prog_CC
3882 if test -n "$CC"; then
3883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 $as_echo "$CC" >&6; }
3885 else
3886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889
3890
3891 fi
3892 if test -z "$ac_cv_prog_CC"; then
3893   ac_ct_CC=$CC
3894   # Extract the first word of "gcc", so it can be a program name with args.
3895 set dummy gcc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   if test -n "$ac_ct_CC"; then
3902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909     for ac_exec_ext in '' $ac_executable_extensions; do
3910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911     ac_cv_prog_ac_ct_CC="gcc"
3912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913     break 2
3914   fi
3915 done
3916   done
3917 IFS=$as_save_IFS
3918
3919 fi
3920 fi
3921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922 if test -n "$ac_ct_CC"; then
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924 $as_echo "$ac_ct_CC" >&6; }
3925 else
3926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 fi
3929
3930   if test "x$ac_ct_CC" = x; then
3931     CC=""
3932   else
3933     case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939     CC=$ac_ct_CC
3940   fi
3941 else
3942   CC="$ac_cv_prog_CC"
3943 fi
3944
3945 if test -z "$CC"; then
3946           if test -n "$ac_tool_prefix"; then
3947     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}cc; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954   if test -n "$CC"; then
3955   ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962     for ac_exec_ext in '' $ac_executable_extensions; do
3963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964     ac_cv_prog_CC="${ac_tool_prefix}cc"
3965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969   done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984   fi
3985 fi
3986 if test -z "$CC"; then
3987   # Extract the first word of "cc", so it can be a program name with args.
3988 set dummy cc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_CC+set}" = set; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   if test -n "$CC"; then
3995   ac_cv_prog_CC="$CC" # Let the user override the test.
3996 else
3997   ac_prog_rejected=no
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001   IFS=$as_save_IFS
4002   test -z "$as_dir" && as_dir=.
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006        ac_prog_rejected=yes
4007        continue
4008      fi
4009     ac_cv_prog_CC="cc"
4010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014   done
4015 IFS=$as_save_IFS
4016
4017 if test $ac_prog_rejected = yes; then
4018   # We found a bogon in the path, so make sure we never use it.
4019   set dummy $ac_cv_prog_CC
4020   shift
4021   if test $# != 0; then
4022     # We chose a different compiler from the bogus one.
4023     # However, it has the same basename, so the bogon will be chosen
4024     # first if we set CC to just the basename; use the full file name.
4025     shift
4026     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4027   fi
4028 fi
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4035 else
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041 fi
4042 if test -z "$CC"; then
4043   if test -n "$ac_tool_prefix"; then
4044   for ac_prog in cl.exe
4045   do
4046     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   if test -n "$CC"; then
4054   ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083     test -n "$CC" && break
4084   done
4085 fi
4086 if test -z "$CC"; then
4087   ac_ct_CC=$CC
4088   for ac_prog in cl.exe
4089 do
4090   # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4095   $as_echo_n "(cached) " >&6
4096 else
4097   if test -n "$ac_ct_CC"; then
4098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105     for ac_exec_ext in '' $ac_executable_extensions; do
4106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107     ac_cv_prog_ac_ct_CC="$ac_prog"
4108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109     break 2
4110   fi
4111 done
4112   done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120 $as_echo "$ac_ct_CC" >&6; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127   test -n "$ac_ct_CC" && break
4128 done
4129
4130   if test "x$ac_ct_CC" = x; then
4131     CC=""
4132   else
4133     case $cross_compiling:$ac_tool_warned in
4134 yes:)
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4137 ac_tool_warned=yes ;;
4138 esac
4139     CC=$ac_ct_CC
4140   fi
4141 fi
4142
4143 fi
4144
4145
4146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 as_fn_error "no acceptable C compiler found in \$PATH
4149 See \`config.log' for more details." "$LINENO" 5; }
4150
4151 # Provide some information about the compiler.
4152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4153 set X $ac_compile
4154 ac_compiler=$2
4155 for ac_option in --version -v -V -qversion; do
4156   { { ac_try="$ac_compiler $ac_option >&5"
4157 case "(($ac_try" in
4158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159   *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162 $as_echo "$ac_try_echo"; } >&5
4163   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4164   ac_status=$?
4165   if test -s conftest.err; then
4166     sed '10a\
4167 ... rest of stderr output deleted ...
4168          10q' conftest.err >conftest.er1
4169     cat conftest.er1 >&5
4170   fi
4171   rm -f conftest.er1 conftest.err
4172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173   test $ac_status = 0; }
4174 done
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4177 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4178 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183
4184 int
4185 main ()
4186 {
4187 #ifndef __GNUC__
4188        choke me
4189 #endif
4190
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196   ac_compiler_gnu=yes
4197 else
4198   ac_compiler_gnu=no
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4207   GCC=yes
4208 else
4209   GCC=
4210 fi
4211 ac_test_CFLAGS=${CFLAGS+set}
4212 ac_save_CFLAGS=$CFLAGS
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4215 if test "${ac_cv_prog_cc_g+set}" = set; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   ac_save_c_werror_flag=$ac_c_werror_flag
4219    ac_c_werror_flag=yes
4220    ac_cv_prog_cc_g=no
4221    CFLAGS="-g"
4222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224
4225 int
4226 main ()
4227 {
4228
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234   ac_cv_prog_cc_g=yes
4235 else
4236   CFLAGS=""
4237       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h.  */
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249
4250 else
4251   ac_c_werror_flag=$ac_save_c_werror_flag
4252          CFLAGS="-g"
4253          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265   ac_cv_prog_cc_g=yes
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272    ac_c_werror_flag=$ac_save_c_werror_flag
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4275 $as_echo "$ac_cv_prog_cc_g" >&6; }
4276 if test "$ac_test_CFLAGS" = set; then
4277   CFLAGS=$ac_save_CFLAGS
4278 elif test $ac_cv_prog_cc_g = yes; then
4279   if test "$GCC" = yes; then
4280     CFLAGS="-g -O2"
4281   else
4282     CFLAGS="-g"
4283   fi
4284 else
4285   if test "$GCC" = yes; then
4286     CFLAGS="-O2"
4287   else
4288     CFLAGS=
4289   fi
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4293 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   ac_cv_prog_cc_c89=no
4297 ac_save_CC=$CC
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300 #include <stdarg.h>
4301 #include <stdio.h>
4302 #include <sys/types.h>
4303 #include <sys/stat.h>
4304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4305 struct buf { int x; };
4306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4307 static char *e (p, i)
4308      char **p;
4309      int i;
4310 {
4311   return p[i];
4312 }
4313 static char *f (char * (*g) (char **, int), char **p, ...)
4314 {
4315   char *s;
4316   va_list v;
4317   va_start (v,p);
4318   s = g (p, va_arg (v,int));
4319   va_end (v);
4320   return s;
4321 }
4322
4323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4324    function prototypes and stuff, but not '\xHH' hex character constants.
4325    These don't provoke an error unfortunately, instead are silently treated
4326    as 'x'.  The following induces an error, until -std is added to get
4327    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4328    array size at least.  It's necessary to write '\x00'==0 to get something
4329    that's true only with -std.  */
4330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4331
4332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4333    inside strings and character constants.  */
4334 #define FOO(x) 'x'
4335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4336
4337 int test (int i, double x);
4338 struct s1 {int (*f) (int a);};
4339 struct s2 {int (*f) (double a);};
4340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4341 int argc;
4342 char **argv;
4343 int
4344 main ()
4345 {
4346 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4352         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4353 do
4354   CC="$ac_save_CC $ac_arg"
4355   if ac_fn_c_try_compile "$LINENO"; then :
4356   ac_cv_prog_cc_c89=$ac_arg
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext
4359   test "x$ac_cv_prog_cc_c89" != "xno" && break
4360 done
4361 rm -f conftest.$ac_ext
4362 CC=$ac_save_CC
4363
4364 fi
4365 # AC_CACHE_VAL
4366 case "x$ac_cv_prog_cc_c89" in
4367   x)
4368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4369 $as_echo "none needed" >&6; } ;;
4370   xno)
4371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372 $as_echo "unsupported" >&6; } ;;
4373   *)
4374     CC="$CC $ac_cv_prog_cc_c89"
4375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4377 esac
4378 if test "x$ac_cv_prog_cc_c89" != xno; then :
4379
4380 fi
4381
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388 depcc="$CC"   am_compiler_list=
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4391 $as_echo_n "checking dependency style of $depcc... " >&6; }
4392 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4396   # We make a subdir and do the tests there.  Otherwise we can end up
4397   # making bogus files that we don't know about and never remove.  For
4398   # instance it was reported that on HP-UX the gcc test will end up
4399   # making a dummy file named `D' -- because `-MD' means `put the output
4400   # in D'.
4401   mkdir conftest.dir
4402   # Copy depcomp to subdir because otherwise we won't find it if we're
4403   # using a relative directory.
4404   cp "$am_depcomp" conftest.dir
4405   cd conftest.dir
4406   # We will build objects and dependencies in a subdirectory because
4407   # it helps to detect inapplicable dependency modes.  For instance
4408   # both Tru64's cc and ICC support -MD to output dependencies as a
4409   # side effect of compilation, but ICC will put the dependencies in
4410   # the current directory while Tru64 will put them in the object
4411   # directory.
4412   mkdir sub
4413
4414   am_cv_CC_dependencies_compiler_type=none
4415   if test "$am_compiler_list" = ""; then
4416      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4417   fi
4418   for depmode in $am_compiler_list; do
4419     # Setup a source with many dependencies, because some compilers
4420     # like to wrap large dependency lists on column 80 (with \), and
4421     # we should not choose a depcomp mode which is confused by this.
4422     #
4423     # We need to recreate these files for each test, as the compiler may
4424     # overwrite some of them when testing with obscure command lines.
4425     # This happens at least with the AIX C compiler.
4426     : > sub/conftest.c
4427     for i in 1 2 3 4 5 6; do
4428       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4430       # Solaris 8's {/usr,}/bin/sh.
4431       touch sub/conftst$i.h
4432     done
4433     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4434
4435     case $depmode in
4436     nosideeffect)
4437       # after this tag, mechanisms are not by side-effect, so they'll
4438       # only be used when explicitly requested
4439       if test "x$enable_dependency_tracking" = xyes; then
4440         continue
4441       else
4442         break
4443       fi
4444       ;;
4445     none) break ;;
4446     esac
4447     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4448     # mode.  It turns out that the SunPro C++ compiler does not properly
4449     # handle `-M -o', and we need to detect this.
4450     if depmode=$depmode \
4451        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4452        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4454          >/dev/null 2>conftest.err &&
4455        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4458        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459       # icc doesn't choke on unknown options, it will just issue warnings
4460       # or remarks (even with -Werror).  So we grep stderr for any message
4461       # that says an option was ignored or not supported.
4462       # When given -MP, icc 7.0 and 7.1 complain thusly:
4463       #   icc: Command line warning: ignoring option '-M'; no argument required
4464       # The diagnosis changed in icc 8.0:
4465       #   icc: Command line remark: option '-MP' not supported
4466       if (grep 'ignoring option' conftest.err ||
4467           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468         am_cv_CC_dependencies_compiler_type=$depmode
4469         break
4470       fi
4471     fi
4472   done
4473
4474   cd ..
4475   rm -rf conftest.dir
4476 else
4477   am_cv_CC_dependencies_compiler_type=none
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4484
4485  if
4486   test "x$enable_dependency_tracking" != xno \
4487   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4488   am__fastdepCC_TRUE=
4489   am__fastdepCC_FALSE='#'
4490 else
4491   am__fastdepCC_TRUE='#'
4492   am__fastdepCC_FALSE=
4493 fi
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4497 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4498 if test "${lt_cv_path_SED+set}" = set; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   # Loop through the user's path and test for sed and gsed.
4502 # Then use that list of sed's as ones to test for truncation.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for lt_ac_prog in sed gsed; do
4509     for ac_exec_ext in '' $ac_executable_extensions; do
4510       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4511         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4512       fi
4513     done
4514   done
4515 done
4516 IFS=$as_save_IFS
4517 lt_ac_max=0
4518 lt_ac_count=0
4519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4520 # along with /bin/sed that truncates output.
4521 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4522   test ! -f $lt_ac_sed && continue
4523   cat /dev/null > conftest.in
4524   lt_ac_count=0
4525   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4526   # Check for GNU sed and select it if it is found.
4527   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4528     lt_cv_path_SED=$lt_ac_sed
4529     break
4530   fi
4531   while true; do
4532     cat conftest.in conftest.in >conftest.tmp
4533     mv conftest.tmp conftest.in
4534     cp conftest.in conftest.nl
4535     echo >>conftest.nl
4536     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4537     cmp -s conftest.out conftest.nl || break
4538     # 10000 chars as input seems more than enough
4539     test $lt_ac_count -gt 10 && break
4540     lt_ac_count=`expr $lt_ac_count + 1`
4541     if test $lt_ac_count -gt $lt_ac_max; then
4542       lt_ac_max=$lt_ac_count
4543       lt_cv_path_SED=$lt_ac_sed
4544     fi
4545   done
4546 done
4547
4548 fi
4549
4550 SED=$lt_cv_path_SED
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4553 $as_echo "$SED" >&6; }
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if test "${ac_cv_path_GREP+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   if test -z "$GREP"; then
4561   ac_path_GREP_found=false
4562   # Loop through the user's path and test for each of PROGNAME-LIST
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_prog in grep ggrep; do
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573   # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4575 *GNU*)
4576   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577 *)
4578   ac_count=0
4579   $as_echo_n 0123456789 >"conftest.in"
4580   while :
4581   do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo 'GREP' >> "conftest.nl"
4586     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588     as_fn_arith $ac_count + 1 && ac_count=$as_val
4589     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590       # Best one so far, save it but keep looking for a better one
4591       ac_cv_path_GREP="$ac_path_GREP"
4592       ac_path_GREP_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596   done
4597   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600       $ac_path_GREP_found && break 3
4601     done
4602   done
4603   done
4604 IFS=$as_save_IFS
4605   if test -z "$ac_cv_path_GREP"; then
4606     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607   fi
4608 else
4609   ac_cv_path_GREP=$GREP
4610 fi
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615  GREP="$ac_cv_path_GREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if test "${ac_cv_path_EGREP+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624    then ac_cv_path_EGREP="$GREP -E"
4625    else
4626      if test -z "$EGREP"; then
4627   ac_path_EGREP_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_prog in egrep; do
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639   # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4641 *GNU*)
4642   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4643 *)
4644   ac_count=0
4645   $as_echo_n 0123456789 >"conftest.in"
4646   while :
4647   do
4648     cat "conftest.in" "conftest.in" >"conftest.tmp"
4649     mv "conftest.tmp" "conftest.in"
4650     cp "conftest.in" "conftest.nl"
4651     $as_echo 'EGREP' >> "conftest.nl"
4652     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654     as_fn_arith $ac_count + 1 && ac_count=$as_val
4655     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656       # Best one so far, save it but keep looking for a better one
4657       ac_cv_path_EGREP="$ac_path_EGREP"
4658       ac_path_EGREP_max=$ac_count
4659     fi
4660     # 10*(2^10) chars as input seems more than enough
4661     test $ac_count -gt 10 && break
4662   done
4663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666       $ac_path_EGREP_found && break 3
4667     done
4668   done
4669   done
4670 IFS=$as_save_IFS
4671   if test -z "$ac_cv_path_EGREP"; then
4672     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673   fi
4674 else
4675   ac_cv_path_EGREP=$EGREP
4676 fi
4677
4678    fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682  EGREP="$ac_cv_path_EGREP"
4683
4684
4685
4686 # Check whether --with-gnu-ld was given.
4687 if test "${with_gnu_ld+set}" = set; then :
4688   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4689 else
4690   with_gnu_ld=no
4691 fi
4692
4693 ac_prog=ld
4694 if test "$GCC" = yes; then
4695   # Check if gcc -print-prog-name=ld gives a path.
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4697 $as_echo_n "checking for ld used by $CC... " >&6; }
4698   case $host in
4699   *-*-mingw*)
4700     # gcc leaves a trailing carriage return which upsets mingw
4701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4702   *)
4703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4704   esac
4705   case $ac_prog in
4706     # Accept absolute paths.
4707     [\\/]* | ?:[\\/]*)
4708       re_direlt='/[^/][^/]*/\.\./'
4709       # Canonicalize the pathname of ld
4710       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4711       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4712         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4713       done
4714       test -z "$LD" && LD="$ac_prog"
4715       ;;
4716   "")
4717     # If it fails, then pretend we aren't using GCC.
4718     ac_prog=ld
4719     ;;
4720   *)
4721     # If it is relative, then search for the first ld in PATH.
4722     with_gnu_ld=unknown
4723     ;;
4724   esac
4725 elif test "$with_gnu_ld" = yes; then
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4727 $as_echo_n "checking for GNU ld... " >&6; }
4728 else
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4730 $as_echo_n "checking for non-GNU ld... " >&6; }
4731 fi
4732 if test "${lt_cv_path_LD+set}" = set; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -z "$LD"; then
4736   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4737   for ac_dir in $PATH; do
4738     IFS="$lt_save_ifs"
4739     test -z "$ac_dir" && ac_dir=.
4740     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741       lt_cv_path_LD="$ac_dir/$ac_prog"
4742       # Check to see if the program is GNU ld.  I'd rather use --version,
4743       # but apparently some variants of GNU ld only accept -v.
4744       # Break only if it was the GNU/non-GNU ld that we prefer.
4745       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4746       *GNU* | *'with BFD'*)
4747         test "$with_gnu_ld" != no && break
4748         ;;
4749       *)
4750         test "$with_gnu_ld" != yes && break
4751         ;;
4752       esac
4753     fi
4754   done
4755   IFS="$lt_save_ifs"
4756 else
4757   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4758 fi
4759 fi
4760
4761 LD="$lt_cv_path_LD"
4762 if test -n "$LD"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4764 $as_echo "$LD" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4776 case `$LD -v 2>&1 </dev/null` in
4777 *GNU* | *'with BFD'*)
4778   lt_cv_prog_gnu_ld=yes
4779   ;;
4780 *)
4781   lt_cv_prog_gnu_ld=no
4782   ;;
4783 esac
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4787 with_gnu_ld=$lt_cv_prog_gnu_ld
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4791 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   lt_cv_ld_reload_flag='-r'
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4798 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799 reload_flag=$lt_cv_ld_reload_flag
4800 case $reload_flag in
4801 "" | " "*) ;;
4802 *) reload_flag=" $reload_flag" ;;
4803 esac
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4805 case $host_os in
4806   darwin*)
4807     if test "$GCC" = yes; then
4808       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4809     else
4810       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811     fi
4812     ;;
4813 esac
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4816 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4817 if test "${lt_cv_path_NM+set}" = set; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   if test -n "$NM"; then
4821   # Let the user override the test.
4822   lt_cv_path_NM="$NM"
4823 else
4824   lt_nm_to_check="${ac_tool_prefix}nm"
4825   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826     lt_nm_to_check="$lt_nm_to_check nm"
4827   fi
4828   for lt_tmp_nm in $lt_nm_to_check; do
4829     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4831       IFS="$lt_save_ifs"
4832       test -z "$ac_dir" && ac_dir=.
4833       tmp_nm="$ac_dir/$lt_tmp_nm"
4834       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4835         # Check to see if the nm accepts a BSD-compat flag.
4836         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4837         #   nm: unknown option "B" ignored
4838         # Tru64's nm complains that /dev/null is an invalid object file
4839         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4840         */dev/null* | *'Invalid file or object type'*)
4841           lt_cv_path_NM="$tmp_nm -B"
4842           break
4843           ;;
4844         *)
4845           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4846           */dev/null*)
4847             lt_cv_path_NM="$tmp_nm -p"
4848             break
4849             ;;
4850           *)
4851             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4852             continue # so that we can try to find one that supports BSD flags
4853             ;;
4854           esac
4855           ;;
4856         esac
4857       fi
4858     done
4859     IFS="$lt_save_ifs"
4860   done
4861   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4862 fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4865 $as_echo "$lt_cv_path_NM" >&6; }
4866 NM="$lt_cv_path_NM"
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4869 $as_echo_n "checking whether ln -s works... " >&6; }
4870 LN_S=$as_ln_s
4871 if test "$LN_S" = "ln -s"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4876 $as_echo "no, using $LN_S" >&6; }
4877 fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4881 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   lt_cv_file_magic_cmd='$MAGIC_CMD'
4885 lt_cv_file_magic_test_file=
4886 lt_cv_deplibs_check_method='unknown'
4887 # Need to set the preceding variable on all platforms that support
4888 # interlibrary dependencies.
4889 # 'none' -- dependencies not supported.
4890 # `unknown' -- same as none, but documents that we really don't know.
4891 # 'pass_all' -- all dependencies passed with no checks.
4892 # 'test_compile' -- check by making test program.
4893 # 'file_magic [[regex]]' -- check by looking for files in library path
4894 # which responds to the $file_magic_cmd with a given extended regex.
4895 # If you have `file' or equivalent on your system and you're not sure
4896 # whether `pass_all' will *always* work, you probably want this one.
4897
4898 case $host_os in
4899 aix[4-9]*)
4900   lt_cv_deplibs_check_method=pass_all
4901   ;;
4902
4903 beos*)
4904   lt_cv_deplibs_check_method=pass_all
4905   ;;
4906
4907 bsdi[45]*)
4908   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4909   lt_cv_file_magic_cmd='/usr/bin/file -L'
4910   lt_cv_file_magic_test_file=/shlib/libc.so
4911   ;;
4912
4913 cygwin*)
4914   # func_win32_libid is a shell function defined in ltmain.sh
4915   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916   lt_cv_file_magic_cmd='func_win32_libid'
4917   ;;
4918
4919 mingw* | pw32*)
4920   # Base MSYS/MinGW do not provide the 'file' command needed by
4921   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4922   # unless we find 'file', for example because we are cross-compiling.
4923   if ( file / ) >/dev/null 2>&1; then
4924     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925     lt_cv_file_magic_cmd='func_win32_libid'
4926   else
4927     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4928     lt_cv_file_magic_cmd='$OBJDUMP -f'
4929   fi
4930   ;;
4931
4932 darwin* | rhapsody*)
4933   lt_cv_deplibs_check_method=pass_all
4934   ;;
4935
4936 freebsd* | dragonfly*)
4937   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4938     case $host_cpu in
4939     i*86 )
4940       # Not sure whether the presence of OpenBSD here was a mistake.
4941       # Let's accept both of them until this is cleared up.
4942       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943       lt_cv_file_magic_cmd=/usr/bin/file
4944       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4945       ;;
4946     esac
4947   else
4948     lt_cv_deplibs_check_method=pass_all
4949   fi
4950   ;;
4951
4952 gnu*)
4953   lt_cv_deplibs_check_method=pass_all
4954   ;;
4955
4956 hpux10.20* | hpux11*)
4957   lt_cv_file_magic_cmd=/usr/bin/file
4958   case $host_cpu in
4959   ia64*)
4960     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4962     ;;
4963   hppa*64*)
4964     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]'
4965     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4966     ;;
4967   *)
4968     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4970     ;;
4971   esac
4972   ;;
4973
4974 interix[3-9]*)
4975   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4977   ;;
4978
4979 irix5* | irix6* | nonstopux*)
4980   case $LD in
4981   *-32|*"-32 ") libmagic=32-bit;;
4982   *-n32|*"-n32 ") libmagic=N32;;
4983   *-64|*"-64 ") libmagic=64-bit;;
4984   *) libmagic=never-match;;
4985   esac
4986   lt_cv_deplibs_check_method=pass_all
4987   ;;
4988
4989 # This must be Linux ELF.
4990 linux* | k*bsd*-gnu)
4991   lt_cv_deplibs_check_method=pass_all
4992   ;;
4993
4994 netbsd*)
4995   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4996     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4997   else
4998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4999   fi
5000   ;;
5001
5002 newos6*)
5003   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004   lt_cv_file_magic_cmd=/usr/bin/file
5005   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5006   ;;
5007
5008 nto-qnx*)
5009   lt_cv_deplibs_check_method=unknown
5010   ;;
5011
5012 openbsd*)
5013   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5015   else
5016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5017   fi
5018   ;;
5019
5020 osf3* | osf4* | osf5*)
5021   lt_cv_deplibs_check_method=pass_all
5022   ;;
5023
5024 rdos*)
5025   lt_cv_deplibs_check_method=pass_all
5026   ;;
5027
5028 solaris*)
5029   lt_cv_deplibs_check_method=pass_all
5030   ;;
5031
5032 sysv4 | sysv4.3*)
5033   case $host_vendor in
5034   motorola)
5035     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]'
5036     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5037     ;;
5038   ncr)
5039     lt_cv_deplibs_check_method=pass_all
5040     ;;
5041   sequent)
5042     lt_cv_file_magic_cmd='/bin/file'
5043     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5044     ;;
5045   sni)
5046     lt_cv_file_magic_cmd='/bin/file'
5047     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5048     lt_cv_file_magic_test_file=/lib/libc.so
5049     ;;
5050   siemens)
5051     lt_cv_deplibs_check_method=pass_all
5052     ;;
5053   pc)
5054     lt_cv_deplibs_check_method=pass_all
5055     ;;
5056   esac
5057   ;;
5058
5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5060   lt_cv_deplibs_check_method=pass_all
5061   ;;
5062 esac
5063
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5066 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5067 file_magic_cmd=$lt_cv_file_magic_cmd
5068 deplibs_check_method=$lt_cv_deplibs_check_method
5069 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5070
5071
5072
5073
5074 # If no C compiler was specified, use CC.
5075 LTCC=${LTCC-"$CC"}
5076
5077 # If no C compiler flags were specified, use CFLAGS.
5078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5079
5080 # Allow CC to be a program name with arguments.
5081 compiler=$CC
5082
5083
5084 # Check whether --enable-libtool-lock was given.
5085 if test "${enable_libtool_lock+set}" = set; then :
5086   enableval=$enable_libtool_lock;
5087 fi
5088
5089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5090
5091 # Some flags need to be propagated to the compiler or linker for good
5092 # libtool support.
5093 case $host in
5094 ia64-*-hpux*)
5095   # Find out which ABI we are using.
5096   echo 'int i;' > conftest.$ac_ext
5097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5098   (eval $ac_compile) 2>&5
5099   ac_status=$?
5100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101   test $ac_status = 0; }; then
5102     case `/usr/bin/file conftest.$ac_objext` in
5103     *ELF-32*)
5104       HPUX_IA64_MODE="32"
5105       ;;
5106     *ELF-64*)
5107       HPUX_IA64_MODE="64"
5108       ;;
5109     esac
5110   fi
5111   rm -rf conftest*
5112   ;;
5113 *-*-irix6*)
5114   # Find out which ABI we are using.
5115   echo '#line 5115 "configure"' > conftest.$ac_ext
5116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5117   (eval $ac_compile) 2>&5
5118   ac_status=$?
5119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120   test $ac_status = 0; }; then
5121    if test "$lt_cv_prog_gnu_ld" = yes; then
5122     case `/usr/bin/file conftest.$ac_objext` in
5123     *32-bit*)
5124       LD="${LD-ld} -melf32bsmip"
5125       ;;
5126     *N32*)
5127       LD="${LD-ld} -melf32bmipn32"
5128       ;;
5129     *64-bit*)
5130       LD="${LD-ld} -melf64bmip"
5131       ;;
5132     esac
5133    else
5134     case `/usr/bin/file conftest.$ac_objext` in
5135     *32-bit*)
5136       LD="${LD-ld} -32"
5137       ;;
5138     *N32*)
5139       LD="${LD-ld} -n32"
5140       ;;
5141     *64-bit*)
5142       LD="${LD-ld} -64"
5143       ;;
5144     esac
5145    fi
5146   fi
5147   rm -rf conftest*
5148   ;;
5149
5150 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5151 s390*-*linux*|sparc*-*linux*)
5152   # Find out which ABI we are using.
5153   echo 'int i;' > conftest.$ac_ext
5154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5155   (eval $ac_compile) 2>&5
5156   ac_status=$?
5157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158   test $ac_status = 0; }; then
5159     case `/usr/bin/file conftest.o` in
5160     *32-bit*)
5161       case $host in
5162         x86_64-*kfreebsd*-gnu)
5163           LD="${LD-ld} -m elf_i386_fbsd"
5164           ;;
5165         x86_64-*linux*)
5166           LD="${LD-ld} -m elf_i386"
5167           ;;
5168         ppc64-*linux*|powerpc64-*linux*)
5169           LD="${LD-ld} -m elf32ppclinux"
5170           ;;
5171         s390x-*linux*)
5172           LD="${LD-ld} -m elf_s390"
5173           ;;
5174         sparc64-*linux*)
5175           LD="${LD-ld} -m elf32_sparc"
5176           ;;
5177       esac
5178       ;;
5179     *64-bit*)
5180       case $host in
5181         x86_64-*kfreebsd*-gnu)
5182           LD="${LD-ld} -m elf_x86_64_fbsd"
5183           ;;
5184         x86_64-*linux*)
5185           LD="${LD-ld} -m elf_x86_64"
5186           ;;
5187         ppc*-*linux*|powerpc*-*linux*)
5188           LD="${LD-ld} -m elf64ppc"
5189           ;;
5190         s390*-*linux*)
5191           LD="${LD-ld} -m elf64_s390"
5192           ;;
5193         sparc*-*linux*)
5194           LD="${LD-ld} -m elf64_sparc"
5195           ;;
5196       esac
5197       ;;
5198     esac
5199   fi
5200   rm -rf conftest*
5201   ;;
5202
5203 *-*-sco3.2v5*)
5204   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5205   SAVE_CFLAGS="$CFLAGS"
5206   CFLAGS="$CFLAGS -belf"
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5208 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5209 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220
5221 int
5222 main ()
5223 {
5224
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_link "$LINENO"; then :
5230   lt_cv_cc_needs_belf=yes
5231 else
5232   lt_cv_cc_needs_belf=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext \
5235     conftest$ac_exeext conftest.$ac_ext
5236      ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5244 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5245   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5246     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5247     CFLAGS="$SAVE_CFLAGS"
5248   fi
5249   ;;
5250 sparc*-*solaris*)
5251   # Find out which ABI we are using.
5252   echo 'int i;' > conftest.$ac_ext
5253   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5254   (eval $ac_compile) 2>&5
5255   ac_status=$?
5256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257   test $ac_status = 0; }; then
5258     case `/usr/bin/file conftest.o` in
5259     *64-bit*)
5260       case $lt_cv_prog_gnu_ld in
5261       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5262       *)
5263         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5264           LD="${LD-ld} -64"
5265         fi
5266         ;;
5267       esac
5268       ;;
5269     esac
5270   fi
5271   rm -rf conftest*
5272   ;;
5273
5274
5275 esac
5276
5277 need_locks="$enable_libtool_lock"
5278
5279
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5287 # On Suns, sometimes $CPP names a directory.
5288 if test -n "$CPP" && test -d "$CPP"; then
5289   CPP=
5290 fi
5291 if test -z "$CPP"; then
5292   if test "${ac_cv_prog_CPP+set}" = set; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295       # Double quotes because CPP needs to be expanded
5296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5297     do
5298       ac_preproc_ok=false
5299 for ac_c_preproc_warn_flag in '' yes
5300 do
5301   # Use a header file that comes with gcc, so configuring glibc
5302   # with a fresh cross-compiler works.
5303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304   # <limits.h> exists even on freestanding compilers.
5305   # On the NeXT, cc -E runs the code through the compiler's parser,
5306   # not just through cpp. "Syntax error" is here to catch this case.
5307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h.  */
5309 #ifdef __STDC__
5310 # include <limits.h>
5311 #else
5312 # include <assert.h>
5313 #endif
5314                      Syntax error
5315 _ACEOF
5316 if ac_fn_c_try_cpp "$LINENO"; then :
5317
5318 else
5319   # Broken: fails on valid input.
5320 continue
5321 fi
5322 rm -f conftest.err conftest.$ac_ext
5323
5324   # OK, works on sane cases.  Now check whether nonexistent headers
5325   # can be detected and how.
5326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h.  */
5328 #include <ac_nonexistent.h>
5329 _ACEOF
5330 if ac_fn_c_try_cpp "$LINENO"; then :
5331   # Broken: success on invalid input.
5332 continue
5333 else
5334   # Passes both tests.
5335 ac_preproc_ok=:
5336 break
5337 fi
5338 rm -f conftest.err conftest.$ac_ext
5339
5340 done
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then :
5344   break
5345 fi
5346
5347     done
5348     ac_cv_prog_CPP=$CPP
5349
5350 fi
5351   CPP=$ac_cv_prog_CPP
5352 else
5353   ac_cv_prog_CPP=$CPP
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5357 ac_preproc_ok=false
5358 for ac_c_preproc_warn_flag in '' yes
5359 do
5360   # Use a header file that comes with gcc, so configuring glibc
5361   # with a fresh cross-compiler works.
5362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363   # <limits.h> exists even on freestanding compilers.
5364   # On the NeXT, cc -E runs the code through the compiler's parser,
5365   # not just through cpp. "Syntax error" is here to catch this case.
5366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h.  */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373                      Syntax error
5374 _ACEOF
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5376
5377 else
5378   # Broken: fails on valid input.
5379 continue
5380 fi
5381 rm -f conftest.err conftest.$ac_ext
5382
5383   # OK, works on sane cases.  Now check whether nonexistent headers
5384   # can be detected and how.
5385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h.  */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390   # Broken: success on invalid input.
5391 continue
5392 else
5393   # Passes both tests.
5394 ac_preproc_ok=:
5395 break
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398
5399 done
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5403
5404 else
5405   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5408 See \`config.log' for more details." "$LINENO" 5; }
5409 fi
5410
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5419 $as_echo_n "checking for ANSI C header files... " >&6; }
5420 if test "${ac_cv_header_stdc+set}" = set; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h.  */
5425 #include <stdlib.h>
5426 #include <stdarg.h>
5427 #include <string.h>
5428 #include <float.h>
5429
5430 int
5431 main ()
5432 {
5433
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439   ac_cv_header_stdc=yes
5440 else
5441   ac_cv_header_stdc=no
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445 if test $ac_cv_header_stdc = yes; then
5446   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h.  */
5449 #include <string.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453   $EGREP "memchr" >/dev/null 2>&1; then :
5454
5455 else
5456   ac_cv_header_stdc=no
5457 fi
5458 rm -f conftest*
5459
5460 fi
5461
5462 if test $ac_cv_header_stdc = yes; then
5463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h.  */
5466 #include <stdlib.h>
5467
5468 _ACEOF
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470   $EGREP "free" >/dev/null 2>&1; then :
5471
5472 else
5473   ac_cv_header_stdc=no
5474 fi
5475 rm -f conftest*
5476
5477 fi
5478
5479 if test $ac_cv_header_stdc = yes; then
5480   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5481   if test "$cross_compiling" = yes; then :
5482   :
5483 else
5484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h.  */
5486 #include <ctype.h>
5487 #include <stdlib.h>
5488 #if ((' ' & 0x0FF) == 0x020)
5489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5491 #else
5492 # define ISLOWER(c) \
5493                    (('a' <= (c) && (c) <= 'i') \
5494                      || ('j' <= (c) && (c) <= 'r') \
5495                      || ('s' <= (c) && (c) <= 'z'))
5496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5497 #endif
5498
5499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5500 int
5501 main ()
5502 {
5503   int i;
5504   for (i = 0; i < 256; i++)
5505     if (XOR (islower (i), ISLOWER (i))
5506         || toupper (i) != TOUPPER (i))
5507       return 2;
5508   return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_run "$LINENO"; then :
5512
5513 else
5514   ac_cv_header_stdc=no
5515 fi
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5517   conftest.$ac_objext conftest.beam conftest.$ac_ext
5518 fi
5519
5520 fi
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5523 $as_echo "$ac_cv_header_stdc" >&6; }
5524 if test $ac_cv_header_stdc = yes; then
5525
5526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5527
5528 fi
5529
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5532                   inttypes.h stdint.h unistd.h
5533 do :
5534   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5536 "
5537 eval as_val=\$$as_ac_Header
5538    if test "x$as_val" = x""yes; then :
5539   cat >>confdefs.h <<_ACEOF
5540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541 _ACEOF
5542
5543 fi
5544
5545 done
5546
5547
5548 for ac_header in dlfcn.h
5549 do :
5550   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5552   cat >>confdefs.h <<_ACEOF
5553 #define HAVE_DLFCN_H 1
5554 _ACEOF
5555
5556 fi
5557
5558 done
5559
5560
5561
5562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5563     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5564     (test "X$CXX" != "Xg++"))) ; then
5565   ac_ext=cpp
5566 ac_cpp='$CXXCPP $CPPFLAGS'
5567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5571 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5572 if test -z "$CXXCPP"; then
5573   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576       # Double quotes because CXXCPP needs to be expanded
5577     for CXXCPP in "$CXX -E" "/lib/cpp"
5578     do
5579       ac_preproc_ok=false
5580 for ac_cxx_preproc_warn_flag in '' yes
5581 do
5582   # Use a header file that comes with gcc, so configuring glibc
5583   # with a fresh cross-compiler works.
5584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585   # <limits.h> exists even on freestanding compilers.
5586   # On the NeXT, cc -E runs the code through the compiler's parser,
5587   # not just through cpp. "Syntax error" is here to catch this case.
5588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595                      Syntax error
5596 _ACEOF
5597 if ac_fn_cxx_try_cpp "$LINENO"; then :
5598
5599 else
5600   # Broken: fails on valid input.
5601 continue
5602 fi
5603 rm -f conftest.err conftest.$ac_ext
5604
5605   # OK, works on sane cases.  Now check whether nonexistent headers
5606   # can be detected and how.
5607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h.  */
5609 #include <ac_nonexistent.h>
5610 _ACEOF
5611 if ac_fn_cxx_try_cpp "$LINENO"; then :
5612   # Broken: success on invalid input.
5613 continue
5614 else
5615   # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5618 fi
5619 rm -f conftest.err conftest.$ac_ext
5620
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5625   break
5626 fi
5627
5628     done
5629     ac_cv_prog_CXXCPP=$CXXCPP
5630
5631 fi
5632   CXXCPP=$ac_cv_prog_CXXCPP
5633 else
5634   ac_cv_prog_CXXCPP=$CXXCPP
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5637 $as_echo "$CXXCPP" >&6; }
5638 ac_preproc_ok=false
5639 for ac_cxx_preproc_warn_flag in '' yes
5640 do
5641   # Use a header file that comes with gcc, so configuring glibc
5642   # with a fresh cross-compiler works.
5643   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644   # <limits.h> exists even on freestanding compilers.
5645   # On the NeXT, cc -E runs the code through the compiler's parser,
5646   # not just through cpp. "Syntax error" is here to catch this case.
5647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h.  */
5649 #ifdef __STDC__
5650 # include <limits.h>
5651 #else
5652 # include <assert.h>
5653 #endif
5654                      Syntax error
5655 _ACEOF
5656 if ac_fn_cxx_try_cpp "$LINENO"; then :
5657
5658 else
5659   # Broken: fails on valid input.
5660 continue
5661 fi
5662 rm -f conftest.err conftest.$ac_ext
5663
5664   # OK, works on sane cases.  Now check whether nonexistent headers
5665   # can be detected and how.
5666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668 #include <ac_nonexistent.h>
5669 _ACEOF
5670 if ac_fn_cxx_try_cpp "$LINENO"; then :
5671   # Broken: success on invalid input.
5672 continue
5673 else
5674   # Passes both tests.
5675 ac_preproc_ok=:
5676 break
5677 fi
5678 rm -f conftest.err conftest.$ac_ext
5679
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then :
5684
5685 else
5686   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5689 See \`config.log' for more details." "$LINENO" 5; }
5690 fi
5691
5692 ac_ext=cpp
5693 ac_cpp='$CXXCPP $CPPFLAGS'
5694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5697
5698 fi
5699
5700
5701 ac_ext=f
5702 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5703 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5705 if test -n "$ac_tool_prefix"; then
5706   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5707   do
5708     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_F77+set}" = set; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715   if test -n "$F77"; then
5716   ac_cv_prog_F77="$F77" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723     for ac_exec_ext in '' $ac_executable_extensions; do
5724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727     break 2
5728   fi
5729 done
5730   done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 F77=$ac_cv_prog_F77
5736 if test -n "$F77"; then
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5738 $as_echo "$F77" >&6; }
5739 else
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745     test -n "$F77" && break
5746   done
5747 fi
5748 if test -z "$F77"; then
5749   ac_ct_F77=$F77
5750   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5751 do
5752   # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5757   $as_echo_n "(cached) " >&6
5758 else
5759   if test -n "$ac_ct_F77"; then
5760   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767     for ac_exec_ext in '' $ac_executable_extensions; do
5768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769     ac_cv_prog_ac_ct_F77="$ac_prog"
5770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774   done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5780 if test -n "$ac_ct_F77"; then
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5782 $as_echo "$ac_ct_F77" >&6; }
5783 else
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789   test -n "$ac_ct_F77" && break
5790 done
5791
5792   if test "x$ac_ct_F77" = x; then
5793     F77=""
5794   else
5795     case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801     F77=$ac_ct_F77
5802   fi
5803 fi
5804
5805
5806 # Provide some information about the compiler.
5807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5808 set X $ac_compile
5809 ac_compiler=$2
5810 for ac_option in --version -v -V -qversion; do
5811   { { ac_try="$ac_compiler $ac_option >&5"
5812 case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5819   ac_status=$?
5820   if test -s conftest.err; then
5821     sed '10a\
5822 ... rest of stderr output deleted ...
5823          10q' conftest.err >conftest.er1
5824     cat conftest.er1 >&5
5825   fi
5826   rm -f conftest.er1 conftest.err
5827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828   test $ac_status = 0; }
5829 done
5830 rm -f a.out
5831
5832 # If we don't use `.F' as extension, the preprocessor is not run on the
5833 # input file.  (Note that this only needs to work for GNU compilers.)
5834 ac_save_ext=$ac_ext
5835 ac_ext=F
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5837 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5838 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   cat > conftest.$ac_ext <<_ACEOF
5842       program main
5843 #ifndef __GNUC__
5844        choke me
5845 #endif
5846
5847       end
5848 _ACEOF
5849 if ac_fn_f77_try_compile "$LINENO"; then :
5850   ac_compiler_gnu=yes
5851 else
5852   ac_compiler_gnu=no
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5859 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5860 ac_ext=$ac_save_ext
5861 ac_test_FFLAGS=${FFLAGS+set}
5862 ac_save_FFLAGS=$FFLAGS
5863 FFLAGS=
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5865 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5866 if test "${ac_cv_prog_f77_g+set}" = set; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   FFLAGS=-g
5870 cat > conftest.$ac_ext <<_ACEOF
5871       program main
5872
5873       end
5874 _ACEOF
5875 if ac_fn_f77_try_compile "$LINENO"; then :
5876   ac_cv_prog_f77_g=yes
5877 else
5878   ac_cv_prog_f77_g=no
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5884 $as_echo "$ac_cv_prog_f77_g" >&6; }
5885 if test "$ac_test_FFLAGS" = set; then
5886   FFLAGS=$ac_save_FFLAGS
5887 elif test $ac_cv_prog_f77_g = yes; then
5888   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5889     FFLAGS="-g -O2"
5890   else
5891     FFLAGS="-g"
5892   fi
5893 else
5894   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5895     FFLAGS="-O2"
5896   else
5897     FFLAGS=
5898   fi
5899 fi
5900
5901 if test $ac_compiler_gnu = yes; then
5902   G77=yes
5903 else
5904   G77=
5905 fi
5906 ac_ext=c
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911
5912
5913
5914 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5915 # find the maximum length of command line arguments
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5918 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921     i=0
5922   teststring="ABCD"
5923
5924   case $build_os in
5925   msdosdjgpp*)
5926     # On DJGPP, this test can blow up pretty badly due to problems in libc
5927     # (any single argument exceeding 2000 bytes causes a buffer overrun
5928     # during glob expansion).  Even if it were fixed, the result of this
5929     # check would be larger than it should be.
5930     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5931     ;;
5932
5933   gnu*)
5934     # Under GNU Hurd, this test is not required because there is
5935     # no limit to the length of command line arguments.
5936     # Libtool will interpret -1 as no limit whatsoever
5937     lt_cv_sys_max_cmd_len=-1;
5938     ;;
5939
5940   cygwin* | mingw*)
5941     # On Win9x/ME, this test blows up -- it succeeds, but takes
5942     # about 5 minutes as the teststring grows exponentially.
5943     # Worse, since 9x/ME are not pre-emptively multitasking,
5944     # you end up with a "frozen" computer, even though with patience
5945     # the test eventually succeeds (with a max line length of 256k).
5946     # Instead, let's just punt: use the minimum linelength reported by
5947     # all of the supported platforms: 8192 (on NT/2K/XP).
5948     lt_cv_sys_max_cmd_len=8192;
5949     ;;
5950
5951   amigaos*)
5952     # On AmigaOS with pdksh, this test takes hours, literally.
5953     # So we just punt and use a minimum line length of 8192.
5954     lt_cv_sys_max_cmd_len=8192;
5955     ;;
5956
5957   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958     # This has been around since 386BSD, at least.  Likely further.
5959     if test -x /sbin/sysctl; then
5960       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961     elif test -x /usr/sbin/sysctl; then
5962       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963     else
5964       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5965     fi
5966     # And add a safety zone
5967     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969     ;;
5970
5971   interix*)
5972     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973     lt_cv_sys_max_cmd_len=196608
5974     ;;
5975
5976   osf*)
5977     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5978     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5979     # nice to cause kernel panics so lets avoid the loop below.
5980     # First set a reasonable default.
5981     lt_cv_sys_max_cmd_len=16384
5982     #
5983     if test -x /sbin/sysconfig; then
5984       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5985         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5986       esac
5987     fi
5988     ;;
5989   sco3.2v5*)
5990     lt_cv_sys_max_cmd_len=102400
5991     ;;
5992   sysv5* | sco5v6* | sysv4.2uw2*)
5993     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5994     if test -n "$kargmax"; then
5995       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5996     else
5997       lt_cv_sys_max_cmd_len=32768
5998     fi
5999     ;;
6000   *)
6001     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6002     if test -n "$lt_cv_sys_max_cmd_len"; then
6003       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6005     else
6006       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6007       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6008                = "XX$teststring") >/dev/null 2>&1 &&
6009               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6010               lt_cv_sys_max_cmd_len=$new_result &&
6011               test $i != 17 # 1/2 MB should be enough
6012       do
6013         i=`expr $i + 1`
6014         teststring=$teststring$teststring
6015       done
6016       teststring=
6017       # Add a significant safety factor because C++ compilers can tack on massive
6018       # amounts of additional arguments before passing them to the linker.
6019       # It appears as though 1/2 is a usable value.
6020       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6021     fi
6022     ;;
6023   esac
6024
6025 fi
6026
6027 if test -n $lt_cv_sys_max_cmd_len ; then
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032 $as_echo "none" >&6; }
6033 fi
6034
6035
6036
6037
6038
6039 # Check for command to grab the raw symbol name followed by C symbol from nm.
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6041 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6042 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045
6046 # These are sane defaults that work on at least a few old systems.
6047 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6048
6049 # Character class describing NM global symbol codes.
6050 symcode='[BCDEGRST]'
6051
6052 # Regexp to match symbols that can be accessed directly from C.
6053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6054
6055 # Transform an extracted symbol line into a proper C declaration
6056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6057
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6060
6061 # Define system-specific variables.
6062 case $host_os in
6063 aix*)
6064   symcode='[BCDT]'
6065   ;;
6066 cygwin* | mingw* | pw32*)
6067   symcode='[ABCDGISTW]'
6068   ;;
6069 hpux*) # Its linker distinguishes data from code symbols
6070   if test "$host_cpu" = ia64; then
6071     symcode='[ABCDEGRST]'
6072   fi
6073   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6074   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6075   ;;
6076 linux* | k*bsd*-gnu)
6077   if test "$host_cpu" = ia64; then
6078     symcode='[ABCDGIRSTW]'
6079     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6080     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6081   fi
6082   ;;
6083 irix* | nonstopux*)
6084   symcode='[BCDEGRST]'
6085   ;;
6086 osf*)
6087   symcode='[BCDEGQRST]'
6088   ;;
6089 solaris*)
6090   symcode='[BDRT]'
6091   ;;
6092 sco3.2v5*)
6093   symcode='[DT]'
6094   ;;
6095 sysv4.2uw2*)
6096   symcode='[DT]'
6097   ;;
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6099   symcode='[ABDT]'
6100   ;;
6101 sysv4)
6102   symcode='[DFNSTU]'
6103   ;;
6104 esac
6105
6106 # Handle CRLF in mingw tool chain
6107 opt_cr=
6108 case $build_os in
6109 mingw*)
6110   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6111   ;;
6112 esac
6113
6114 # If we're using GNU nm, then use its standard symbol codes.
6115 case `$NM -V 2>&1` in
6116 *GNU* | *'with BFD'*)
6117   symcode='[ABCDGIRSTW]' ;;
6118 esac
6119
6120 # Try without a prefix undercore, then with it.
6121 for ac_symprfx in "" "_"; do
6122
6123   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6124   symxfrm="\\1 $ac_symprfx\\2 \\2"
6125
6126   # Write the raw and C identifiers.
6127   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6128
6129   # Check to see that the pipe works correctly.
6130   pipe_works=no
6131
6132   rm -f conftest*
6133   cat > conftest.$ac_ext <<EOF
6134 #ifdef __cplusplus
6135 extern "C" {
6136 #endif
6137 char nm_test_var;
6138 void nm_test_func(){}
6139 #ifdef __cplusplus
6140 }
6141 #endif
6142 int main(){nm_test_var='a';nm_test_func();return(0);}
6143 EOF
6144
6145   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6146   (eval $ac_compile) 2>&5
6147   ac_status=$?
6148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149   test $ac_status = 0; }; then
6150     # Now try to grab the symbols.
6151     nlist=conftest.nm
6152     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6153   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6154   ac_status=$?
6155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156   test $ac_status = 0; } && test -s "$nlist"; then
6157       # Try sorting and uniquifying the output.
6158       if sort "$nlist" | uniq > "$nlist"T; then
6159         mv -f "$nlist"T "$nlist"
6160       else
6161         rm -f "$nlist"T
6162       fi
6163
6164       # Make sure that we snagged all the symbols we need.
6165       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6166         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6167           cat <<EOF > conftest.$ac_ext
6168 #ifdef __cplusplus
6169 extern "C" {
6170 #endif
6171
6172 EOF
6173           # Now generate the symbol file.
6174           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6175
6176           cat <<EOF >> conftest.$ac_ext
6177 #if defined (__STDC__) && __STDC__
6178 # define lt_ptr_t void *
6179 #else
6180 # define lt_ptr_t char *
6181 # define const
6182 #endif
6183
6184 /* The mapping between symbol names and symbols. */
6185 const struct {
6186   const char *name;
6187   lt_ptr_t address;
6188 }
6189 lt_preloaded_symbols[] =
6190 {
6191 EOF
6192           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6193           cat <<\EOF >> conftest.$ac_ext
6194   {0, (lt_ptr_t) 0}
6195 };
6196
6197 #ifdef __cplusplus
6198 }
6199 #endif
6200 EOF
6201           # Now try linking the two files.
6202           mv conftest.$ac_objext conftstm.$ac_objext
6203           lt_save_LIBS="$LIBS"
6204           lt_save_CFLAGS="$CFLAGS"
6205           LIBS="conftstm.$ac_objext"
6206           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6207           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6208   (eval $ac_link) 2>&5
6209   ac_status=$?
6210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6212             pipe_works=yes
6213           fi
6214           LIBS="$lt_save_LIBS"
6215           CFLAGS="$lt_save_CFLAGS"
6216         else
6217           echo "cannot find nm_test_func in $nlist" >&5
6218         fi
6219       else
6220         echo "cannot find nm_test_var in $nlist" >&5
6221       fi
6222     else
6223       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6224     fi
6225   else
6226     echo "$progname: failed program was:" >&5
6227     cat conftest.$ac_ext >&5
6228   fi
6229   rm -rf conftest* conftst*
6230
6231   # Do not use the global_symbol_pipe unless it works.
6232   if test "$pipe_works" = yes; then
6233     break
6234   else
6235     lt_cv_sys_global_symbol_pipe=
6236   fi
6237 done
6238
6239 fi
6240
6241 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242   lt_cv_sys_global_symbol_to_cdecl=
6243 fi
6244 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246 $as_echo "failed" >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249 $as_echo "ok" >&6; }
6250 fi
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6253 $as_echo_n "checking for objdir... " >&6; }
6254 if test "${lt_cv_objdir+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   rm -f .libs 2>/dev/null
6258 mkdir .libs 2>/dev/null
6259 if test -d .libs; then
6260   lt_cv_objdir=.libs
6261 else
6262   # MS-DOS does not allow filenames that begin with a dot.
6263   lt_cv_objdir=_libs
6264 fi
6265 rmdir .libs 2>/dev/null
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6268 $as_echo "$lt_cv_objdir" >&6; }
6269 objdir=$lt_cv_objdir
6270
6271
6272
6273
6274
6275 case $host_os in
6276 aix3*)
6277   # AIX sometimes has problems with the GCC collect2 program.  For some
6278   # reason, if we set the COLLECT_NAMES environment variable, the problems
6279   # vanish in a puff of smoke.
6280   if test "X${COLLECT_NAMES+set}" != Xset; then
6281     COLLECT_NAMES=
6282     export COLLECT_NAMES
6283   fi
6284   ;;
6285 esac
6286
6287 # Sed substitution that helps us do robust quoting.  It backslashifies
6288 # metacharacters that are still active within double-quoted strings.
6289 Xsed='sed -e 1s/^X//'
6290 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6291
6292 # Same as above, but do not quote variable references.
6293 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6294
6295 # Sed substitution to delay expansion of an escaped shell variable in a
6296 # double_quote_subst'ed string.
6297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6298
6299 # Sed substitution to avoid accidental globbing in evaled expressions
6300 no_glob_subst='s/\*/\\\*/g'
6301
6302 # Constants:
6303 rm="rm -f"
6304
6305 # Global variables:
6306 default_ofile=libtool
6307 can_build_shared=yes
6308
6309 # All known linkers require a `.a' archive for static linking (except MSVC,
6310 # which needs '.lib').
6311 libext=a
6312 ltmain="$ac_aux_dir/ltmain.sh"
6313 ofile="$default_ofile"
6314 with_gnu_ld="$lt_cv_prog_gnu_ld"
6315
6316 if test -n "$ac_tool_prefix"; then
6317   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}ar; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_AR+set}" = set; then :
6322   $as_echo_n "(cached) " >&6
6323 else
6324   if test -n "$AR"; then
6325   ac_cv_prog_AR="$AR" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332     for ac_exec_ext in '' $ac_executable_extensions; do
6333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334     ac_cv_prog_AR="${ac_tool_prefix}ar"
6335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339   done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 AR=$ac_cv_prog_AR
6345 if test -n "$AR"; then
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6347 $as_echo "$AR" >&6; }
6348 else
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353
6354 fi
6355 if test -z "$ac_cv_prog_AR"; then
6356   ac_ct_AR=$AR
6357   # Extract the first word of "ar", so it can be a program name with args.
6358 set dummy ar; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   if test -n "$ac_ct_AR"; then
6365   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372     for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_prog_ac_ct_AR="ar"
6375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379   done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6385 if test -n "$ac_ct_AR"; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6387 $as_echo "$ac_ct_AR" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393   if test "x$ac_ct_AR" = x; then
6394     AR="false"
6395   else
6396     case $cross_compiling:$ac_tool_warned in
6397 yes:)
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned=yes ;;
6401 esac
6402     AR=$ac_ct_AR
6403   fi
6404 else
6405   AR="$ac_cv_prog_AR"
6406 fi
6407
6408 if test -n "$ac_tool_prefix"; then
6409   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   if test -n "$RANLIB"; then
6417   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424     for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431   done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 RANLIB=$ac_cv_prog_RANLIB
6437 if test -n "$RANLIB"; then
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6439 $as_echo "$RANLIB" >&6; }
6440 else
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445
6446 fi
6447 if test -z "$ac_cv_prog_RANLIB"; then
6448   ac_ct_RANLIB=$RANLIB
6449   # Extract the first word of "ranlib", so it can be a program name with args.
6450 set dummy ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$ac_ct_RANLIB"; then
6457   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_prog_ac_ct_RANLIB="ranlib"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6477 if test -n "$ac_ct_RANLIB"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6479 $as_echo "$ac_ct_RANLIB" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485   if test "x$ac_ct_RANLIB" = x; then
6486     RANLIB=":"
6487   else
6488     case $cross_compiling:$ac_tool_warned in
6489 yes:)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492 ac_tool_warned=yes ;;
6493 esac
6494     RANLIB=$ac_ct_RANLIB
6495   fi
6496 else
6497   RANLIB="$ac_cv_prog_RANLIB"
6498 fi
6499
6500 if test -n "$ac_tool_prefix"; then
6501   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}strip; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if test "${ac_cv_prog_STRIP+set}" = set; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   if test -n "$STRIP"; then
6509   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516     for ac_exec_ext in '' $ac_executable_extensions; do
6517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523   done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 STRIP=$ac_cv_prog_STRIP
6529 if test -n "$STRIP"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6531 $as_echo "$STRIP" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 fi
6539 if test -z "$ac_cv_prog_STRIP"; then
6540   ac_ct_STRIP=$STRIP
6541   # Extract the first word of "strip", so it can be a program name with args.
6542 set dummy strip; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$ac_ct_STRIP"; then
6549   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_prog_ac_ct_STRIP="strip"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6569 if test -n "$ac_ct_STRIP"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6571 $as_echo "$ac_ct_STRIP" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577   if test "x$ac_ct_STRIP" = x; then
6578     STRIP=":"
6579   else
6580     case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586     STRIP=$ac_ct_STRIP
6587   fi
6588 else
6589   STRIP="$ac_cv_prog_STRIP"
6590 fi
6591
6592
6593 old_CC="$CC"
6594 old_CFLAGS="$CFLAGS"
6595
6596 # Set sane defaults for various variables
6597 test -z "$AR" && AR=ar
6598 test -z "$AR_FLAGS" && AR_FLAGS=cru
6599 test -z "$AS" && AS=as
6600 test -z "$CC" && CC=cc
6601 test -z "$LTCC" && LTCC=$CC
6602 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6603 test -z "$DLLTOOL" && DLLTOOL=dlltool
6604 test -z "$LD" && LD=ld
6605 test -z "$LN_S" && LN_S="ln -s"
6606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6607 test -z "$NM" && NM=nm
6608 test -z "$SED" && SED=sed
6609 test -z "$OBJDUMP" && OBJDUMP=objdump
6610 test -z "$RANLIB" && RANLIB=:
6611 test -z "$STRIP" && STRIP=:
6612 test -z "$ac_objext" && ac_objext=o
6613
6614 # Determine commands to create old-style static archives.
6615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6616 old_postinstall_cmds='chmod 644 $oldlib'
6617 old_postuninstall_cmds=
6618
6619 if test -n "$RANLIB"; then
6620   case $host_os in
6621   openbsd*)
6622     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6623     ;;
6624   *)
6625     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6626     ;;
6627   esac
6628   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6629 fi
6630
6631 for cc_temp in $compiler""; do
6632   case $cc_temp in
6633     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6634     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6635     \-*) ;;
6636     *) break;;
6637   esac
6638 done
6639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6640
6641
6642 # Only perform the check for file, if the check method requires it
6643 case $deplibs_check_method in
6644 file_magic*)
6645   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6647 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651   case $MAGIC_CMD in
6652 [\\/*] |  ?:[\\/]*)
6653   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6654   ;;
6655 *)
6656   lt_save_MAGIC_CMD="$MAGIC_CMD"
6657   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6659   for ac_dir in $ac_dummy; do
6660     IFS="$lt_save_ifs"
6661     test -z "$ac_dir" && ac_dir=.
6662     if test -f $ac_dir/${ac_tool_prefix}file; then
6663       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6664       if test -n "$file_magic_test_file"; then
6665         case $deplibs_check_method in
6666         "file_magic "*)
6667           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6668           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6670             $EGREP "$file_magic_regex" > /dev/null; then
6671             :
6672           else
6673             cat <<EOF 1>&2
6674
6675 *** Warning: the command libtool uses to detect shared libraries,
6676 *** $file_magic_cmd, produces output that libtool cannot recognize.
6677 *** The result is that libtool may fail to recognize shared libraries
6678 *** as such.  This will affect the creation of libtool libraries that
6679 *** depend on shared libraries, but programs linked with such libtool
6680 *** libraries will work regardless of this problem.  Nevertheless, you
6681 *** may want to report the problem to your system manager and/or to
6682 *** bug-libtool@gnu.org
6683
6684 EOF
6685           fi ;;
6686         esac
6687       fi
6688       break
6689     fi
6690   done
6691   IFS="$lt_save_ifs"
6692   MAGIC_CMD="$lt_save_MAGIC_CMD"
6693   ;;
6694 esac
6695 fi
6696
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if test -n "$MAGIC_CMD"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6700 $as_echo "$MAGIC_CMD" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706 if test -z "$lt_cv_path_MAGIC_CMD"; then
6707   if test -n "$ac_tool_prefix"; then
6708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6709 $as_echo_n "checking for file... " >&6; }
6710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   case $MAGIC_CMD in
6714 [\\/*] |  ?:[\\/]*)
6715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6716   ;;
6717 *)
6718   lt_save_MAGIC_CMD="$MAGIC_CMD"
6719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6721   for ac_dir in $ac_dummy; do
6722     IFS="$lt_save_ifs"
6723     test -z "$ac_dir" && ac_dir=.
6724     if test -f $ac_dir/file; then
6725       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6726       if test -n "$file_magic_test_file"; then
6727         case $deplibs_check_method in
6728         "file_magic "*)
6729           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6732             $EGREP "$file_magic_regex" > /dev/null; then
6733             :
6734           else
6735             cat <<EOF 1>&2
6736
6737 *** Warning: the command libtool uses to detect shared libraries,
6738 *** $file_magic_cmd, produces output that libtool cannot recognize.
6739 *** The result is that libtool may fail to recognize shared libraries
6740 *** as such.  This will affect the creation of libtool libraries that
6741 *** depend on shared libraries, but programs linked with such libtool
6742 *** libraries will work regardless of this problem.  Nevertheless, you
6743 *** may want to report the problem to your system manager and/or to
6744 *** bug-libtool@gnu.org
6745
6746 EOF
6747           fi ;;
6748         esac
6749       fi
6750       break
6751     fi
6752   done
6753   IFS="$lt_save_ifs"
6754   MAGIC_CMD="$lt_save_MAGIC_CMD"
6755   ;;
6756 esac
6757 fi
6758
6759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6760 if test -n "$MAGIC_CMD"; then
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6762 $as_echo "$MAGIC_CMD" >&6; }
6763 else
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768   else
6769     MAGIC_CMD=:
6770   fi
6771 fi
6772
6773   fi
6774   ;;
6775 esac
6776
6777
6778   case $host_os in
6779     rhapsody* | darwin*)
6780     if test -n "$ac_tool_prefix"; then
6781   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   if test -n "$DSYMUTIL"; then
6789   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796     for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803   done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6812 else
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820   ac_ct_DSYMUTIL=$DSYMUTIL
6821   # Extract the first word of "dsymutil", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$ac_ct_DSYMUTIL"; then
6829   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857   if test "x$ac_ct_DSYMUTIL" = x; then
6858     DSYMUTIL=":"
6859   else
6860     case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     DSYMUTIL=$ac_ct_DSYMUTIL
6867   fi
6868 else
6869   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6870 fi
6871
6872     if test -n "$ac_tool_prefix"; then
6873   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   if test -n "$NMEDIT"; then
6881   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895   done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6904 else
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912   ac_ct_NMEDIT=$NMEDIT
6913   # Extract the first word of "nmedit", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$ac_ct_NMEDIT"; then
6921   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949   if test "x$ac_ct_NMEDIT" = x; then
6950     NMEDIT=":"
6951   else
6952     case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     NMEDIT=$ac_ct_NMEDIT
6959   fi
6960 else
6961   NMEDIT="$ac_cv_prog_NMEDIT"
6962 fi
6963
6964
6965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6966 $as_echo_n "checking for -single_module linker flag... " >&6; }
6967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   lt_cv_apple_cc_single_mod=no
6971       if test -z "${LT_MULTI_MODULE}"; then
6972    # By default we will add the -single_module flag. You can override
6973    # by either setting the environment variable LT_MULTI_MODULE
6974    # non-empty at configure time, or by adding -multi_module to the
6975    # link flags.
6976    echo "int foo(void){return 1;}" > conftest.c
6977    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6978      -dynamiclib ${wl}-single_module conftest.c
6979    if test -f libconftest.dylib; then
6980      lt_cv_apple_cc_single_mod=yes
6981      rm -rf libconftest.dylib*
6982    fi
6983    rm conftest.c
6984       fi
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6990 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   lt_cv_ld_exported_symbols_list=no
6994       save_LDFLAGS=$LDFLAGS
6995       echo "_main" > conftest.sym
6996       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999
7000 int
7001 main ()
7002 {
7003
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"; then :
7009   lt_cv_ld_exported_symbols_list=yes
7010 else
7011   lt_cv_ld_exported_symbols_list=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext \
7014     conftest$ac_exeext conftest.$ac_ext
7015    LDFLAGS="$save_LDFLAGS"
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7020     case $host_os in
7021     rhapsody* | darwin1.[0123])
7022       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7023     darwin1.*)
7024      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7025     darwin*)
7026       # if running on 10.5 or later, the deployment target defaults
7027       # to the OS version, if on x86, and 10.4, the deployment
7028       # target defaults to 10.4. Don't you love it?
7029       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7030    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7031      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7032    10.[012]*)
7033      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7034    10.*)
7035      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7036       esac
7037     ;;
7038   esac
7039     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7040       _lt_dar_single_mod='$single_module'
7041     fi
7042     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7043       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7044     else
7045       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7046     fi
7047     if test "$DSYMUTIL" != ":"; then
7048       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7049     else
7050       _lt_dsymutil=
7051     fi
7052     ;;
7053   esac
7054
7055
7056 enable_dlopen=no
7057 enable_win32_dll=no
7058
7059 # Check whether --enable-libtool-lock was given.
7060 if test "${enable_libtool_lock+set}" = set; then :
7061   enableval=$enable_libtool_lock;
7062 fi
7063
7064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7065
7066
7067 # Check whether --with-pic was given.
7068 if test "${with_pic+set}" = set; then :
7069   withval=$with_pic; pic_mode="$withval"
7070 else
7071   pic_mode=default
7072 fi
7073
7074 test -z "$pic_mode" && pic_mode=default
7075
7076 # Use C for the default configuration in the libtool script
7077 tagname=
7078 lt_save_CC="$CC"
7079 ac_ext=c
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084
7085
7086 # Source file extension for C test sources.
7087 ac_ext=c
7088
7089 # Object file extension for compiled C test sources.
7090 objext=o
7091 objext=$objext
7092
7093 # Code to be used in simple compile tests
7094 lt_simple_compile_test_code="int some_variable = 0;"
7095
7096 # Code to be used in simple link tests
7097 lt_simple_link_test_code='int main(){return(0);}'
7098
7099
7100 # If no C compiler was specified, use CC.
7101 LTCC=${LTCC-"$CC"}
7102
7103 # If no C compiler flags were specified, use CFLAGS.
7104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7105
7106 # Allow CC to be a program name with arguments.
7107 compiler=$CC
7108
7109
7110 # save warnings/boilerplate of simple test code
7111 ac_outfile=conftest.$ac_objext
7112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7114 _lt_compiler_boilerplate=`cat conftest.err`
7115 $rm conftest*
7116
7117 ac_outfile=conftest.$ac_objext
7118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7120 _lt_linker_boilerplate=`cat conftest.err`
7121 $rm -r conftest*
7122
7123
7124
7125 lt_prog_compiler_no_builtin_flag=
7126
7127 if test "$GCC" = yes; then
7128   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7129
7130
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   lt_cv_prog_compiler_rtti_exceptions=no
7137   ac_outfile=conftest.$ac_objext
7138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7139    lt_compiler_flag="-fno-rtti -fno-exceptions"
7140    # Insert the option either (1) after the last *FLAGS variable, or
7141    # (2) before a word containing "conftest.", or (3) at the end.
7142    # Note that $ac_compile itself does not contain backslashes and begins
7143    # with a dollar sign (not a hyphen), so the echo should work correctly.
7144    # The option is referenced via a variable to avoid confusing sed.
7145    lt_compile=`echo "$ac_compile" | $SED \
7146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7148    -e 's:$: $lt_compiler_flag:'`
7149    (eval echo "\"\$as_me:7149: $lt_compile\"" >&5)
7150    (eval "$lt_compile" 2>conftest.err)
7151    ac_status=$?
7152    cat conftest.err >&5
7153    echo "$as_me:7153: \$? = $ac_status" >&5
7154    if (exit $ac_status) && test -s "$ac_outfile"; then
7155      # The compiler can only warn and ignore the option if not recognized
7156      # So say no if there are warnings other than the usual output.
7157      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7158      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7159      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7160        lt_cv_prog_compiler_rtti_exceptions=yes
7161      fi
7162    fi
7163    $rm conftest*
7164
7165 fi
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7168
7169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7170     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7171 else
7172     :
7173 fi
7174
7175 fi
7176
7177 lt_prog_compiler_wl=
7178 lt_prog_compiler_pic=
7179 lt_prog_compiler_static=
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7183
7184   if test "$GCC" = yes; then
7185     lt_prog_compiler_wl='-Wl,'
7186     lt_prog_compiler_static='-static'
7187
7188     case $host_os in
7189       aix*)
7190       # All AIX code is PIC.
7191       if test "$host_cpu" = ia64; then
7192         # AIX 5 now supports IA64 processor
7193         lt_prog_compiler_static='-Bstatic'
7194       fi
7195       ;;
7196
7197     amigaos*)
7198       # FIXME: we need at least 68020 code to build shared libraries, but
7199       # adding the `-m68020' flag to GCC prevents building anything better,
7200       # like `-m68040'.
7201       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7202       ;;
7203
7204     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7205       # PIC is the default for these OSes.
7206       ;;
7207
7208     mingw* | cygwin* | pw32* | os2*)
7209       # This hack is so that the source file can tell whether it is being
7210       # built for inclusion in a dll (and should export symbols for example).
7211       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7212       # (--disable-auto-import) libraries
7213       lt_prog_compiler_pic='-DDLL_EXPORT'
7214       ;;
7215
7216     darwin* | rhapsody*)
7217       # PIC is the default on this platform
7218       # Common symbols not allowed in MH_DYLIB files
7219       lt_prog_compiler_pic='-fno-common'
7220       ;;
7221
7222     interix[3-9]*)
7223       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7224       # Instead, we relocate shared libraries at runtime.
7225       ;;
7226
7227     msdosdjgpp*)
7228       # Just because we use GCC doesn't mean we suddenly get shared libraries
7229       # on systems that don't support them.
7230       lt_prog_compiler_can_build_shared=no
7231       enable_shared=no
7232       ;;
7233
7234     sysv4*MP*)
7235       if test -d /usr/nec; then
7236         lt_prog_compiler_pic=-Kconform_pic
7237       fi
7238       ;;
7239
7240     hpux*)
7241       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7242       # not for PA HP-UX.
7243       case $host_cpu in
7244       hppa*64*|ia64*)
7245         # +Z the default
7246         ;;
7247       *)
7248         lt_prog_compiler_pic='-fPIC'
7249         ;;
7250       esac
7251       ;;
7252
7253     *)
7254       lt_prog_compiler_pic='-fPIC'
7255       ;;
7256     esac
7257   else
7258     # PORTME Check for flag to pass linker flags through the system compiler.
7259     case $host_os in
7260     aix*)
7261       lt_prog_compiler_wl='-Wl,'
7262       if test "$host_cpu" = ia64; then
7263         # AIX 5 now supports IA64 processor
7264         lt_prog_compiler_static='-Bstatic'
7265       else
7266         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7267       fi
7268       ;;
7269       darwin*)
7270         # PIC is the default on this platform
7271         # Common symbols not allowed in MH_DYLIB files
7272        case $cc_basename in
7273          xlc*)
7274          lt_prog_compiler_pic='-qnocommon'
7275          lt_prog_compiler_wl='-Wl,'
7276          ;;
7277        esac
7278        ;;
7279
7280     mingw* | cygwin* | pw32* | os2*)
7281       # This hack is so that the source file can tell whether it is being
7282       # built for inclusion in a dll (and should export symbols for example).
7283       lt_prog_compiler_pic='-DDLL_EXPORT'
7284       ;;
7285
7286     hpux9* | hpux10* | hpux11*)
7287       lt_prog_compiler_wl='-Wl,'
7288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7289       # not for PA HP-UX.
7290       case $host_cpu in
7291       hppa*64*|ia64*)
7292         # +Z the default
7293         ;;
7294       *)
7295         lt_prog_compiler_pic='+Z'
7296         ;;
7297       esac
7298       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299       lt_prog_compiler_static='${wl}-a ${wl}archive'
7300       ;;
7301
7302     irix5* | irix6* | nonstopux*)
7303       lt_prog_compiler_wl='-Wl,'
7304       # PIC (with -KPIC) is the default.
7305       lt_prog_compiler_static='-non_shared'
7306       ;;
7307
7308     newsos6)
7309       lt_prog_compiler_pic='-KPIC'
7310       lt_prog_compiler_static='-Bstatic'
7311       ;;
7312
7313     linux* | k*bsd*-gnu)
7314       case $cc_basename in
7315       icc* | ecc*)
7316         lt_prog_compiler_wl='-Wl,'
7317         lt_prog_compiler_pic='-KPIC'
7318         lt_prog_compiler_static='-static'
7319         ;;
7320       pgcc* | pgf77* | pgf90* | pgf95*)
7321         # Portland Group compilers (*not* the Pentium gcc compiler,
7322         # which looks to be a dead project)
7323         lt_prog_compiler_wl='-Wl,'
7324         lt_prog_compiler_pic='-fpic'
7325         lt_prog_compiler_static='-Bstatic'
7326         ;;
7327       ccc*)
7328         lt_prog_compiler_wl='-Wl,'
7329         # All Alpha code is PIC.
7330         lt_prog_compiler_static='-non_shared'
7331         ;;
7332       *)
7333         case `$CC -V 2>&1 | sed 5q` in
7334         *Sun\ C*)
7335           # Sun C 5.9
7336           lt_prog_compiler_pic='-KPIC'
7337           lt_prog_compiler_static='-Bstatic'
7338           lt_prog_compiler_wl='-Wl,'
7339           ;;
7340         *Sun\ F*)
7341           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7342           lt_prog_compiler_pic='-KPIC'
7343           lt_prog_compiler_static='-Bstatic'
7344           lt_prog_compiler_wl=''
7345           ;;
7346         esac
7347         ;;
7348       esac
7349       ;;
7350
7351     osf3* | osf4* | osf5*)
7352       lt_prog_compiler_wl='-Wl,'
7353       # All OSF/1 code is PIC.
7354       lt_prog_compiler_static='-non_shared'
7355       ;;
7356
7357     rdos*)
7358       lt_prog_compiler_static='-non_shared'
7359       ;;
7360
7361     solaris*)
7362       lt_prog_compiler_pic='-KPIC'
7363       lt_prog_compiler_static='-Bstatic'
7364       case $cc_basename in
7365       f77* | f90* | f95*)
7366         lt_prog_compiler_wl='-Qoption ld ';;
7367       *)
7368         lt_prog_compiler_wl='-Wl,';;
7369       esac
7370       ;;
7371
7372     sunos4*)
7373       lt_prog_compiler_wl='-Qoption ld '
7374       lt_prog_compiler_pic='-PIC'
7375       lt_prog_compiler_static='-Bstatic'
7376       ;;
7377
7378     sysv4 | sysv4.2uw2* | sysv4.3*)
7379       lt_prog_compiler_wl='-Wl,'
7380       lt_prog_compiler_pic='-KPIC'
7381       lt_prog_compiler_static='-Bstatic'
7382       ;;
7383
7384     sysv4*MP*)
7385       if test -d /usr/nec ;then
7386         lt_prog_compiler_pic='-Kconform_pic'
7387         lt_prog_compiler_static='-Bstatic'
7388       fi
7389       ;;
7390
7391     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7392       lt_prog_compiler_wl='-Wl,'
7393       lt_prog_compiler_pic='-KPIC'
7394       lt_prog_compiler_static='-Bstatic'
7395       ;;
7396
7397     unicos*)
7398       lt_prog_compiler_wl='-Wl,'
7399       lt_prog_compiler_can_build_shared=no
7400       ;;
7401
7402     uts4*)
7403       lt_prog_compiler_pic='-pic'
7404       lt_prog_compiler_static='-Bstatic'
7405       ;;
7406
7407     *)
7408       lt_prog_compiler_can_build_shared=no
7409       ;;
7410     esac
7411   fi
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7414 $as_echo "$lt_prog_compiler_pic" >&6; }
7415
7416 #
7417 # Check to make sure the PIC flag actually works.
7418 #
7419 if test -n "$lt_prog_compiler_pic"; then
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7423 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7424   $as_echo_n "(cached) " >&6
7425 else
7426   lt_cv_prog_compiler_pic_works=no
7427   ac_outfile=conftest.$ac_objext
7428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7430    # Insert the option either (1) after the last *FLAGS variable, or
7431    # (2) before a word containing "conftest.", or (3) at the end.
7432    # Note that $ac_compile itself does not contain backslashes and begins
7433    # with a dollar sign (not a hyphen), so the echo should work correctly.
7434    # The option is referenced via a variable to avoid confusing sed.
7435    lt_compile=`echo "$ac_compile" | $SED \
7436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438    -e 's:$: $lt_compiler_flag:'`
7439    (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440    (eval "$lt_compile" 2>conftest.err)
7441    ac_status=$?
7442    cat conftest.err >&5
7443    echo "$as_me:7443: \$? = $ac_status" >&5
7444    if (exit $ac_status) && test -s "$ac_outfile"; then
7445      # The compiler can only warn and ignore the option if not recognized
7446      # So say no if there are warnings other than the usual output.
7447      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450        lt_cv_prog_compiler_pic_works=yes
7451      fi
7452    fi
7453    $rm conftest*
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7457 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7458
7459 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7460     case $lt_prog_compiler_pic in
7461      "" | " "*) ;;
7462      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7463      esac
7464 else
7465     lt_prog_compiler_pic=
7466      lt_prog_compiler_can_build_shared=no
7467 fi
7468
7469 fi
7470 case $host_os in
7471   # For platforms which do not support PIC, -DPIC is meaningless:
7472   *djgpp*)
7473     lt_prog_compiler_pic=
7474     ;;
7475   *)
7476     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7477     ;;
7478 esac
7479
7480 #
7481 # Check to make sure the static flag actually works.
7482 #
7483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7486 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   lt_cv_prog_compiler_static_works=no
7490    save_LDFLAGS="$LDFLAGS"
7491    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494      # The linker can only warn and ignore the option if not recognized
7495      # So say no if there are warnings
7496      if test -s conftest.err; then
7497        # Append any errors to the config.log.
7498        cat conftest.err 1>&5
7499        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501        if diff conftest.exp conftest.er2 >/dev/null; then
7502          lt_cv_prog_compiler_static_works=yes
7503        fi
7504      else
7505        lt_cv_prog_compiler_static_works=yes
7506      fi
7507    fi
7508    $rm -r conftest*
7509    LDFLAGS="$save_LDFLAGS"
7510
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7513 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7514
7515 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7516     :
7517 else
7518     lt_prog_compiler_static=
7519 fi
7520
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   lt_cv_prog_compiler_c_o=no
7528    $rm -r conftest 2>/dev/null
7529    mkdir conftest
7530    cd conftest
7531    mkdir out
7532    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7533
7534    lt_compiler_flag="-o out/conftest2.$ac_objext"
7535    # Insert the option either (1) after the last *FLAGS variable, or
7536    # (2) before a word containing "conftest.", or (3) at the end.
7537    # Note that $ac_compile itself does not contain backslashes and begins
7538    # with a dollar sign (not a hyphen), so the echo should work correctly.
7539    lt_compile=`echo "$ac_compile" | $SED \
7540    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7542    -e 's:$: $lt_compiler_flag:'`
7543    (eval echo "\"\$as_me:7543: $lt_compile\"" >&5)
7544    (eval "$lt_compile" 2>out/conftest.err)
7545    ac_status=$?
7546    cat out/conftest.err >&5
7547    echo "$as_me:7547: \$? = $ac_status" >&5
7548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7549    then
7550      # The compiler can only warn and ignore the option if not recognized
7551      # So say no if there are warnings
7552      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7553      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7554      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7555        lt_cv_prog_compiler_c_o=yes
7556      fi
7557    fi
7558    chmod u+w . 2>&5
7559    $rm conftest*
7560    # SGI C++ compiler will create directory out/ii_files/ for
7561    # template instantiation
7562    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7563    $rm out/* && rmdir out
7564    cd ..
7565    rmdir conftest
7566    $rm conftest*
7567
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7571
7572
7573 hard_links="nottested"
7574 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7575   # do not overwrite the value of need_locks provided by the user
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7577 $as_echo_n "checking if we can lock with hard links... " >&6; }
7578   hard_links=yes
7579   $rm conftest*
7580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7581   touch conftest.a
7582   ln conftest.a conftest.b 2>&5 || hard_links=no
7583   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7585 $as_echo "$hard_links" >&6; }
7586   if test "$hard_links" = no; then
7587     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7588 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7589     need_locks=warn
7590   fi
7591 else
7592   need_locks=no
7593 fi
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7597
7598   runpath_var=
7599   allow_undefined_flag=
7600   enable_shared_with_static_runtimes=no
7601   archive_cmds=
7602   archive_expsym_cmds=
7603   old_archive_From_new_cmds=
7604   old_archive_from_expsyms_cmds=
7605   export_dynamic_flag_spec=
7606   whole_archive_flag_spec=
7607   thread_safe_flag_spec=
7608   hardcode_libdir_flag_spec=
7609   hardcode_libdir_flag_spec_ld=
7610   hardcode_libdir_separator=
7611   hardcode_direct=no
7612   hardcode_minus_L=no
7613   hardcode_shlibpath_var=unsupported
7614   link_all_deplibs=unknown
7615   hardcode_automatic=no
7616   module_cmds=
7617   module_expsym_cmds=
7618   always_export_symbols=no
7619   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7620   # include_expsyms should be a list of space-separated symbols to be *always*
7621   # included in the symbol list
7622   include_expsyms=
7623   # exclude_expsyms can be an extended regexp of symbols to exclude
7624   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7625   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7626   # as well as any symbol that contains `d'.
7627   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7628   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7629   # platforms (ab)use it in PIC code, but their linkers get confused if
7630   # the symbol is explicitly referenced.  Since portable code cannot
7631   # rely on this symbol name, it's probably fine to never include it in
7632   # preloaded symbol tables.
7633   # Exclude shared library initialization/finalization symbols.
7634   extract_expsyms_cmds=
7635   # Just being paranoid about ensuring that cc_basename is set.
7636   for cc_temp in $compiler""; do
7637   case $cc_temp in
7638     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7639     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7640     \-*) ;;
7641     *) break;;
7642   esac
7643 done
7644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7645
7646   case $host_os in
7647   cygwin* | mingw* | pw32*)
7648     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7649     # When not using gcc, we currently assume that we are using
7650     # Microsoft Visual C++.
7651     if test "$GCC" != yes; then
7652       with_gnu_ld=no
7653     fi
7654     ;;
7655   interix*)
7656     # we just hope/assume this is gcc and not c89 (= MSVC++)
7657     with_gnu_ld=yes
7658     ;;
7659   openbsd*)
7660     with_gnu_ld=no
7661     ;;
7662   esac
7663
7664   ld_shlibs=yes
7665   if test "$with_gnu_ld" = yes; then
7666     # If archive_cmds runs LD, not CC, wlarc should be empty
7667     wlarc='${wl}'
7668
7669     # Set some defaults for GNU ld with shared library support. These
7670     # are reset later if shared libraries are not supported. Putting them
7671     # here allows them to be overridden if necessary.
7672     runpath_var=LD_RUN_PATH
7673     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7674     export_dynamic_flag_spec='${wl}--export-dynamic'
7675     # ancient GNU ld didn't support --whole-archive et. al.
7676     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7677         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7678       else
7679         whole_archive_flag_spec=
7680     fi
7681     supports_anon_versioning=no
7682     case `$LD -v 2>/dev/null` in
7683       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7684       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7685       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7686       *\ 2.11.*) ;; # other 2.11 versions
7687       *) supports_anon_versioning=yes ;;
7688     esac
7689
7690     # See if GNU ld supports shared libraries.
7691     case $host_os in
7692     aix[3-9]*)
7693       # On AIX/PPC, the GNU linker is very broken
7694       if test "$host_cpu" != ia64; then
7695         ld_shlibs=no
7696         cat <<EOF 1>&2
7697
7698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7699 *** to be unable to reliably create shared libraries on AIX.
7700 *** Therefore, libtool is disabling shared libraries support.  If you
7701 *** really care for shared libraries, you may want to modify your PATH
7702 *** so that a non-GNU linker is found, and then restart.
7703
7704 EOF
7705       fi
7706       ;;
7707
7708     amigaos*)
7709       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)'
7710       hardcode_libdir_flag_spec='-L$libdir'
7711       hardcode_minus_L=yes
7712
7713       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7714       # that the semantics of dynamic libraries on AmigaOS, at least up
7715       # to version 4, is to share data among multiple programs linked
7716       # with the same dynamic library.  Since this doesn't match the
7717       # behavior of shared libraries on other platforms, we can't use
7718       # them.
7719       ld_shlibs=no
7720       ;;
7721
7722     beos*)
7723       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724         allow_undefined_flag=unsupported
7725         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7726         # support --undefined.  This deserves some investigation.  FIXME
7727         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728       else
7729         ld_shlibs=no
7730       fi
7731       ;;
7732
7733     cygwin* | mingw* | pw32*)
7734       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7735       # as there is no search path for DLLs.
7736       hardcode_libdir_flag_spec='-L$libdir'
7737       allow_undefined_flag=unsupported
7738       always_export_symbols=no
7739       enable_shared_with_static_runtimes=yes
7740       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7741
7742       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7744         # If the export-symbols file already is a .def file (1st line
7745         # is EXPORTS), use it as is; otherwise, prepend...
7746         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7747           cp $export_symbols $output_objdir/$soname.def;
7748         else
7749           echo EXPORTS > $output_objdir/$soname.def;
7750           cat $export_symbols >> $output_objdir/$soname.def;
7751         fi~
7752         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7753       else
7754         ld_shlibs=no
7755       fi
7756       ;;
7757
7758     interix[3-9]*)
7759       hardcode_direct=no
7760       hardcode_shlibpath_var=no
7761       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762       export_dynamic_flag_spec='${wl}-E'
7763       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7764       # Instead, shared libraries are loaded at an image base (0x10000000 by
7765       # default) and relocated if they conflict, which is a slow very memory
7766       # consuming and fragmenting process.  To avoid this, we pick a random,
7767       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7768       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7769       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7770       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'
7771       ;;
7772
7773     gnu* | linux* | k*bsd*-gnu)
7774       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7775         tmp_addflag=
7776         case $cc_basename,$host_cpu in
7777         pgcc*)                          # Portland Group C compiler
7778           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'
7779           tmp_addflag=' $pic_flag'
7780           ;;
7781         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7782           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'
7783           tmp_addflag=' $pic_flag -Mnomain' ;;
7784         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7785           tmp_addflag=' -i_dynamic' ;;
7786         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7787           tmp_addflag=' -i_dynamic -nofor_main' ;;
7788         ifc* | ifort*)                  # Intel Fortran compiler
7789           tmp_addflag=' -nofor_main' ;;
7790         esac
7791         case `$CC -V 2>&1 | sed 5q` in
7792         *Sun\ C*)                       # Sun C 5.9
7793           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'
7794           tmp_sharedflag='-G' ;;
7795         *Sun\ F*)                       # Sun Fortran 8.3
7796           tmp_sharedflag='-G' ;;
7797         *)
7798           tmp_sharedflag='-shared' ;;
7799         esac
7800         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801
7802         if test $supports_anon_versioning = yes; then
7803           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7804   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7805   $echo "local: *; };" >> $output_objdir/$libname.ver~
7806           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7807         fi
7808       else
7809         ld_shlibs=no
7810       fi
7811       ;;
7812
7813     netbsd*)
7814       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7815         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7816         wlarc=
7817       else
7818         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7819         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7820       fi
7821       ;;
7822
7823     solaris*)
7824       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7825         ld_shlibs=no
7826         cat <<EOF 1>&2
7827
7828 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7829 *** create shared libraries on Solaris systems.  Therefore, libtool
7830 *** is disabling shared libraries support.  We urge you to upgrade GNU
7831 *** binutils to release 2.9.1 or newer.  Another option is to modify
7832 *** your PATH or compiler configuration so that the native linker is
7833 *** used, and then restart.
7834
7835 EOF
7836       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7837         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7838         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7839       else
7840         ld_shlibs=no
7841       fi
7842       ;;
7843
7844     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7845       case `$LD -v 2>&1` in
7846         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7847         ld_shlibs=no
7848         cat <<_LT_EOF 1>&2
7849
7850 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7851 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7852 *** is disabling shared libraries support.  We urge you to upgrade GNU
7853 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7854 *** your PATH or compiler configuration so that the native linker is
7855 *** used, and then restart.
7856
7857 _LT_EOF
7858         ;;
7859         *)
7860           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7861             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7862             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7863             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7864           else
7865             ld_shlibs=no
7866           fi
7867         ;;
7868       esac
7869       ;;
7870
7871     sunos4*)
7872       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7873       wlarc=
7874       hardcode_direct=yes
7875       hardcode_shlibpath_var=no
7876       ;;
7877
7878     *)
7879       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7880         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7882       else
7883         ld_shlibs=no
7884       fi
7885       ;;
7886     esac
7887
7888     if test "$ld_shlibs" = no; then
7889       runpath_var=
7890       hardcode_libdir_flag_spec=
7891       export_dynamic_flag_spec=
7892       whole_archive_flag_spec=
7893     fi
7894   else
7895     # PORTME fill in a description of your system's linker (not GNU ld)
7896     case $host_os in
7897     aix3*)
7898       allow_undefined_flag=unsupported
7899       always_export_symbols=yes
7900       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'
7901       # Note: this linker hardcodes the directories in LIBPATH if there
7902       # are no directories specified by -L.
7903       hardcode_minus_L=yes
7904       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7905         # Neither direct hardcoding nor static linking is supported with a
7906         # broken collect2.
7907         hardcode_direct=unsupported
7908       fi
7909       ;;
7910
7911     aix[4-9]*)
7912       if test "$host_cpu" = ia64; then
7913         # On IA64, the linker does run time linking by default, so we don't
7914         # have to do anything special.
7915         aix_use_runtimelinking=no
7916         exp_sym_flag='-Bexport'
7917         no_entry_flag=""
7918       else
7919         # If we're using GNU nm, then we don't want the "-C" option.
7920         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7921         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7922           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'
7923         else
7924           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'
7925         fi
7926         aix_use_runtimelinking=no
7927
7928         # Test if we are trying to use run time linking or normal
7929         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7930         # need to do runtime linking.
7931         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7932           for ld_flag in $LDFLAGS; do
7933           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7934             aix_use_runtimelinking=yes
7935             break
7936           fi
7937           done
7938           ;;
7939         esac
7940
7941         exp_sym_flag='-bexport'
7942         no_entry_flag='-bnoentry'
7943       fi
7944
7945       # When large executables or shared objects are built, AIX ld can
7946       # have problems creating the table of contents.  If linking a library
7947       # or program results in "error TOC overflow" add -mminimal-toc to
7948       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7949       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7950
7951       archive_cmds=''
7952       hardcode_direct=yes
7953       hardcode_libdir_separator=':'
7954       link_all_deplibs=yes
7955
7956       if test "$GCC" = yes; then
7957         case $host_os in aix4.[012]|aix4.[012].*)
7958         # We only want to do this on AIX 4.2 and lower, the check
7959         # below for broken collect2 doesn't work under 4.3+
7960           collect2name=`${CC} -print-prog-name=collect2`
7961           if test -f "$collect2name" && \
7962            strings "$collect2name" | grep resolve_lib_name >/dev/null
7963           then
7964           # We have reworked collect2
7965           :
7966           else
7967           # We have old collect2
7968           hardcode_direct=unsupported
7969           # It fails to find uninstalled libraries when the uninstalled
7970           # path is not listed in the libpath.  Setting hardcode_minus_L
7971           # to unsupported forces relinking
7972           hardcode_minus_L=yes
7973           hardcode_libdir_flag_spec='-L$libdir'
7974           hardcode_libdir_separator=
7975           fi
7976           ;;
7977         esac
7978         shared_flag='-shared'
7979         if test "$aix_use_runtimelinking" = yes; then
7980           shared_flag="$shared_flag "'${wl}-G'
7981         fi
7982       else
7983         # not using gcc
7984         if test "$host_cpu" = ia64; then
7985         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7986         # chokes on -Wl,-G. The following line is correct:
7987           shared_flag='-G'
7988         else
7989           if test "$aix_use_runtimelinking" = yes; then
7990             shared_flag='${wl}-G'
7991           else
7992             shared_flag='${wl}-bM:SRE'
7993           fi
7994         fi
7995       fi
7996
7997       # It seems that -bexpall does not export symbols beginning with
7998       # underscore (_), so it is better to generate a list of symbols to export.
7999       always_export_symbols=yes
8000       if test "$aix_use_runtimelinking" = yes; then
8001         # Warning - without using the other runtime loading flags (-brtl),
8002         # -berok will link without error, but may produce a broken library.
8003         allow_undefined_flag='-berok'
8004        # Determine the default libpath from the value encoded in an empty executable.
8005        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h.  */
8007
8008 int
8009 main ()
8010 {
8011
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_link "$LINENO"; then :
8017
8018 lt_aix_libpath_sed='
8019     /Import File Strings/,/^$/ {
8020         /^0/ {
8021             s/^0  *\(.*\)$/\1/
8022             p
8023         }
8024     }'
8025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8026 # Check for a 64-bit object if we didn't find anything.
8027 if test -z "$aix_libpath"; then
8028   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8029 fi
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext \
8032     conftest$ac_exeext conftest.$ac_ext
8033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8034
8035        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8036         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8037        else
8038         if test "$host_cpu" = ia64; then
8039           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8040           allow_undefined_flag="-z nodefs"
8041           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"
8042         else
8043          # Determine the default libpath from the value encoded in an empty executable.
8044          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h.  */
8046
8047 int
8048 main ()
8049 {
8050
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056
8057 lt_aix_libpath_sed='
8058     /Import File Strings/,/^$/ {
8059         /^0/ {
8060             s/^0  *\(.*\)$/\1/
8061             p
8062         }
8063     }'
8064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8065 # Check for a 64-bit object if we didn't find anything.
8066 if test -z "$aix_libpath"; then
8067   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8068 fi
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext \
8071     conftest$ac_exeext conftest.$ac_ext
8072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8073
8074          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8075           # Warning - without using the other run time loading flags,
8076           # -berok will link without error, but may produce a broken library.
8077           no_undefined_flag=' ${wl}-bernotok'
8078           allow_undefined_flag=' ${wl}-berok'
8079           # Exported symbols can be pulled into shared objects from archives
8080           whole_archive_flag_spec='$convenience'
8081           archive_cmds_need_lc=yes
8082           # This is similar to how AIX traditionally builds its shared libraries.
8083           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'
8084         fi
8085       fi
8086       ;;
8087
8088     amigaos*)
8089       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)'
8090       hardcode_libdir_flag_spec='-L$libdir'
8091       hardcode_minus_L=yes
8092       # see comment about different semantics on the GNU ld section
8093       ld_shlibs=no
8094       ;;
8095
8096     bsdi[45]*)
8097       export_dynamic_flag_spec=-rdynamic
8098       ;;
8099
8100     cygwin* | mingw* | pw32*)
8101       # When not using gcc, we currently assume that we are using
8102       # Microsoft Visual C++.
8103       # hardcode_libdir_flag_spec is actually meaningless, as there is
8104       # no search path for DLLs.
8105       hardcode_libdir_flag_spec=' '
8106       allow_undefined_flag=unsupported
8107       # Tell ltmain to make .lib files, not .a files.
8108       libext=lib
8109       # Tell ltmain to make .dll files, not .so files.
8110       shrext_cmds=".dll"
8111       # FIXME: Setting linknames here is a bad hack.
8112       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8113       # The linker will automatically build a .lib file if we build a DLL.
8114       old_archive_From_new_cmds='true'
8115       # FIXME: Should let the user specify the lib program.
8116       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8117       fix_srcfile_path='`cygpath -w "$srcfile"`'
8118       enable_shared_with_static_runtimes=yes
8119       ;;
8120
8121     darwin* | rhapsody*)
8122       case $host_os in
8123         rhapsody* | darwin1.[012])
8124          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8125          ;;
8126        *) # Darwin 1.3 on
8127          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8128            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8129          else
8130            case ${MACOSX_DEPLOYMENT_TARGET} in
8131              10.[012])
8132                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8133                ;;
8134              10.*)
8135                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8136                ;;
8137            esac
8138          fi
8139          ;;
8140       esac
8141       archive_cmds_need_lc=no
8142       hardcode_direct=no
8143       hardcode_automatic=yes
8144       hardcode_shlibpath_var=unsupported
8145       whole_archive_flag_spec=''
8146       link_all_deplibs=yes
8147     if test "$GCC" = yes ; then
8148         output_verbose_link_cmd='echo'
8149         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8150         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8151         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}"
8152         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}"
8153     else
8154       case $cc_basename in
8155         xlc*)
8156          output_verbose_link_cmd='echo'
8157          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8158          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8159           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8160          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8161           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8162           ;;
8163        *)
8164          ld_shlibs=no
8165           ;;
8166       esac
8167     fi
8168       ;;
8169
8170     dgux*)
8171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8172       hardcode_libdir_flag_spec='-L$libdir'
8173       hardcode_shlibpath_var=no
8174       ;;
8175
8176     freebsd1*)
8177       ld_shlibs=no
8178       ;;
8179
8180     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8181     # support.  Future versions do this automatically, but an explicit c++rt0.o
8182     # does not break anything, and helps significantly (at the cost of a little
8183     # extra space).
8184     freebsd2.2*)
8185       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8186       hardcode_libdir_flag_spec='-R$libdir'
8187       hardcode_direct=yes
8188       hardcode_shlibpath_var=no
8189       ;;
8190
8191     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8192     freebsd2*)
8193       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8194       hardcode_direct=yes
8195       hardcode_minus_L=yes
8196       hardcode_shlibpath_var=no
8197       ;;
8198
8199     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8200     freebsd* | dragonfly*)
8201       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8202       hardcode_libdir_flag_spec='-R$libdir'
8203       hardcode_direct=yes
8204       hardcode_shlibpath_var=no
8205       ;;
8206
8207     hpux9*)
8208       if test "$GCC" = yes; then
8209         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'
8210       else
8211         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'
8212       fi
8213       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214       hardcode_libdir_separator=:
8215       hardcode_direct=yes
8216
8217       # hardcode_minus_L: Not really in the search PATH,
8218       # but as the default location of the library.
8219       hardcode_minus_L=yes
8220       export_dynamic_flag_spec='${wl}-E'
8221       ;;
8222
8223     hpux10*)
8224       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226       else
8227         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8228       fi
8229       if test "$with_gnu_ld" = no; then
8230         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8231         hardcode_libdir_separator=:
8232
8233         hardcode_direct=yes
8234         export_dynamic_flag_spec='${wl}-E'
8235
8236         # hardcode_minus_L: Not really in the search PATH,
8237         # but as the default location of the library.
8238         hardcode_minus_L=yes
8239       fi
8240       ;;
8241
8242     hpux11*)
8243       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8244         case $host_cpu in
8245         hppa*64*)
8246           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247           ;;
8248         ia64*)
8249           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8250           ;;
8251         *)
8252           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253           ;;
8254         esac
8255       else
8256         case $host_cpu in
8257         hppa*64*)
8258           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8259           ;;
8260         ia64*)
8261           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8262           ;;
8263         *)
8264           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8265           ;;
8266         esac
8267       fi
8268       if test "$with_gnu_ld" = no; then
8269         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270         hardcode_libdir_separator=:
8271
8272         case $host_cpu in
8273         hppa*64*|ia64*)
8274           hardcode_libdir_flag_spec_ld='+b $libdir'
8275           hardcode_direct=no
8276           hardcode_shlibpath_var=no
8277           ;;
8278         *)
8279           hardcode_direct=yes
8280           export_dynamic_flag_spec='${wl}-E'
8281
8282           # hardcode_minus_L: Not really in the search PATH,
8283           # but as the default location of the library.
8284           hardcode_minus_L=yes
8285           ;;
8286         esac
8287       fi
8288       ;;
8289
8290     irix5* | irix6* | nonstopux*)
8291       if test "$GCC" = yes; then
8292         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8293       else
8294         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8295         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8296       fi
8297       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298       hardcode_libdir_separator=:
8299       link_all_deplibs=yes
8300       ;;
8301
8302     netbsd*)
8303       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8304         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8305       else
8306         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8307       fi
8308       hardcode_libdir_flag_spec='-R$libdir'
8309       hardcode_direct=yes
8310       hardcode_shlibpath_var=no
8311       ;;
8312
8313     newsos6)
8314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8315       hardcode_direct=yes
8316       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8317       hardcode_libdir_separator=:
8318       hardcode_shlibpath_var=no
8319       ;;
8320
8321     openbsd*)
8322       if test -f /usr/libexec/ld.so; then
8323         hardcode_direct=yes
8324         hardcode_shlibpath_var=no
8325         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8326           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8327           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8328           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8329           export_dynamic_flag_spec='${wl}-E'
8330         else
8331           case $host_os in
8332            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8333              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8334              hardcode_libdir_flag_spec='-R$libdir'
8335              ;;
8336            *)
8337              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8338              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8339              ;;
8340           esac
8341         fi
8342       else
8343         ld_shlibs=no
8344       fi
8345       ;;
8346
8347     os2*)
8348       hardcode_libdir_flag_spec='-L$libdir'
8349       hardcode_minus_L=yes
8350       allow_undefined_flag=unsupported
8351       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'
8352       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8353       ;;
8354
8355     osf3*)
8356       if test "$GCC" = yes; then
8357         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8358         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8359       else
8360         allow_undefined_flag=' -expect_unresolved \*'
8361         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8362       fi
8363       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8364       hardcode_libdir_separator=:
8365       ;;
8366
8367     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8368       if test "$GCC" = yes; then
8369         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8370         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8371         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8372       else
8373         allow_undefined_flag=' -expect_unresolved \*'
8374         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8375         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8376         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8377
8378         # Both c and cxx compiler support -rpath directly
8379         hardcode_libdir_flag_spec='-rpath $libdir'
8380       fi
8381       hardcode_libdir_separator=:
8382       ;;
8383
8384     solaris*)
8385       no_undefined_flag=' -z text'
8386       if test "$GCC" = yes; then
8387         wlarc='${wl}'
8388         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8390           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8391       else
8392         wlarc=''
8393         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8395         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8396       fi
8397       hardcode_libdir_flag_spec='-R$libdir'
8398       hardcode_shlibpath_var=no
8399       case $host_os in
8400       solaris2.[0-5] | solaris2.[0-5].*) ;;
8401       *)
8402         # The compiler driver will combine and reorder linker options,
8403         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8404         # but is careful enough not to reorder.
8405         # Supported since Solaris 2.6 (maybe 2.5.1?)
8406         if test "$GCC" = yes; then
8407           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8408         else
8409           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8410         fi
8411         ;;
8412       esac
8413       link_all_deplibs=yes
8414       ;;
8415
8416     sunos4*)
8417       if test "x$host_vendor" = xsequent; then
8418         # Use $CC to link under sequent, because it throws in some extra .o
8419         # files that make .init and .fini sections work.
8420         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8421       else
8422         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8423       fi
8424       hardcode_libdir_flag_spec='-L$libdir'
8425       hardcode_direct=yes
8426       hardcode_minus_L=yes
8427       hardcode_shlibpath_var=no
8428       ;;
8429
8430     sysv4)
8431       case $host_vendor in
8432         sni)
8433           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8434           hardcode_direct=yes # is this really true???
8435         ;;
8436         siemens)
8437           ## LD is ld it makes a PLAMLIB
8438           ## CC just makes a GrossModule.
8439           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8440           reload_cmds='$CC -r -o $output$reload_objs'
8441           hardcode_direct=no
8442         ;;
8443         motorola)
8444           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8446         ;;
8447       esac
8448       runpath_var='LD_RUN_PATH'
8449       hardcode_shlibpath_var=no
8450       ;;
8451
8452     sysv4.3*)
8453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454       hardcode_shlibpath_var=no
8455       export_dynamic_flag_spec='-Bexport'
8456       ;;
8457
8458     sysv4*MP*)
8459       if test -d /usr/nec; then
8460         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461         hardcode_shlibpath_var=no
8462         runpath_var=LD_RUN_PATH
8463         hardcode_runpath_var=yes
8464         ld_shlibs=yes
8465       fi
8466       ;;
8467
8468     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8469       no_undefined_flag='${wl}-z,text'
8470       archive_cmds_need_lc=no
8471       hardcode_shlibpath_var=no
8472       runpath_var='LD_RUN_PATH'
8473
8474       if test "$GCC" = yes; then
8475         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8476         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477       else
8478         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480       fi
8481       ;;
8482
8483     sysv5* | sco3.2v5* | sco5v6*)
8484       # Note: We can NOT use -z defs as we might desire, because we do not
8485       # link with -lc, and that would cause any symbols used from libc to
8486       # always be unresolved, which means just about no library would
8487       # ever link correctly.  If we're not using GNU ld we use -z text
8488       # though, which does catch some bad symbols but isn't as heavy-handed
8489       # as -z defs.
8490       no_undefined_flag='${wl}-z,text'
8491       allow_undefined_flag='${wl}-z,nodefs'
8492       archive_cmds_need_lc=no
8493       hardcode_shlibpath_var=no
8494       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8495       hardcode_libdir_separator=':'
8496       link_all_deplibs=yes
8497       export_dynamic_flag_spec='${wl}-Bexport'
8498       runpath_var='LD_RUN_PATH'
8499
8500       if test "$GCC" = yes; then
8501         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8503       else
8504         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506       fi
8507       ;;
8508
8509     uts4*)
8510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8511       hardcode_libdir_flag_spec='-L$libdir'
8512       hardcode_shlibpath_var=no
8513       ;;
8514
8515     *)
8516       ld_shlibs=no
8517       ;;
8518     esac
8519   fi
8520
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8522 $as_echo "$ld_shlibs" >&6; }
8523 test "$ld_shlibs" = no && can_build_shared=no
8524
8525 #
8526 # Do we need to explicitly link libc?
8527 #
8528 case "x$archive_cmds_need_lc" in
8529 x|xyes)
8530   # Assume -lc should be added
8531   archive_cmds_need_lc=yes
8532
8533   if test "$enable_shared" = yes && test "$GCC" = yes; then
8534     case $archive_cmds in
8535     *'~'*)
8536       # FIXME: we may have to deal with multi-command sequences.
8537       ;;
8538     '$CC '*)
8539       # Test whether the compiler implicitly links with -lc since on some
8540       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8541       # to ld, don't add -lc before -lgcc.
8542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8543 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8544       $rm conftest*
8545       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546
8547       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8548   (eval $ac_compile) 2>&5
8549   ac_status=$?
8550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551   test $ac_status = 0; } 2>conftest.err; then
8552         soname=conftest
8553         lib=conftest
8554         libobjs=conftest.$ac_objext
8555         deplibs=
8556         wl=$lt_prog_compiler_wl
8557         pic_flag=$lt_prog_compiler_pic
8558         compiler_flags=-v
8559         linker_flags=-v
8560         verstring=
8561         output_objdir=.
8562         libname=conftest
8563         lt_save_allow_undefined_flag=$allow_undefined_flag
8564         allow_undefined_flag=
8565         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8566   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8567   ac_status=$?
8568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8569   test $ac_status = 0; }
8570         then
8571           archive_cmds_need_lc=no
8572         else
8573           archive_cmds_need_lc=yes
8574         fi
8575         allow_undefined_flag=$lt_save_allow_undefined_flag
8576       else
8577         cat conftest.err 1>&5
8578       fi
8579       $rm conftest*
8580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8581 $as_echo "$archive_cmds_need_lc" >&6; }
8582       ;;
8583     esac
8584   fi
8585   ;;
8586 esac
8587
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8589 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8590 library_names_spec=
8591 libname_spec='lib$name'
8592 soname_spec=
8593 shrext_cmds=".so"
8594 postinstall_cmds=
8595 postuninstall_cmds=
8596 finish_cmds=
8597 finish_eval=
8598 shlibpath_var=
8599 shlibpath_overrides_runpath=unknown
8600 version_type=none
8601 dynamic_linker="$host_os ld.so"
8602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8603
8604 if test "$GCC" = yes; then
8605   case $host_os in
8606     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8607     *) lt_awk_arg="/^libraries:/" ;;
8608   esac
8609   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8610   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8611     # if the path contains ";" then we assume it to be the separator
8612     # otherwise default to the standard path separator (i.e. ":") - it is
8613     # assumed that no part of a normal pathname contains ";" but that should
8614     # okay in the real world where ";" in dirpaths is itself problematic.
8615     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8616   else
8617     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8618   fi
8619   # Ok, now we have the path, separated by spaces, we can step through it
8620   # and add multilib dir if necessary.
8621   lt_tmp_lt_search_path_spec=
8622   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8623   for lt_sys_path in $lt_search_path_spec; do
8624     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8625       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8626     else
8627       test -d "$lt_sys_path" && \
8628         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8629     fi
8630   done
8631   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8632 BEGIN {RS=" "; FS="/|\n";} {
8633   lt_foo="";
8634   lt_count=0;
8635   for (lt_i = NF; lt_i > 0; lt_i--) {
8636     if ($lt_i != "" && $lt_i != ".") {
8637       if ($lt_i == "..") {
8638         lt_count++;
8639       } else {
8640         if (lt_count == 0) {
8641           lt_foo="/" $lt_i lt_foo;
8642         } else {
8643           lt_count--;
8644         }
8645       }
8646     }
8647   }
8648   if (lt_foo != "") { lt_freq[lt_foo]++; }
8649   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8650 }'`
8651   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8652 else
8653   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8654 fi
8655 need_lib_prefix=unknown
8656 hardcode_into_libs=no
8657
8658 # when you set need_version to no, make sure it does not cause -set_version
8659 # flags to be left without arguments
8660 need_version=unknown
8661
8662 case $host_os in
8663 aix3*)
8664   version_type=linux
8665   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8666   shlibpath_var=LIBPATH
8667
8668   # AIX 3 has no versioning support, so we append a major version to the name.
8669   soname_spec='${libname}${release}${shared_ext}$major'
8670   ;;
8671
8672 aix[4-9]*)
8673   version_type=linux
8674   need_lib_prefix=no
8675   need_version=no
8676   hardcode_into_libs=yes
8677   if test "$host_cpu" = ia64; then
8678     # AIX 5 supports IA64
8679     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8680     shlibpath_var=LD_LIBRARY_PATH
8681   else
8682     # With GCC up to 2.95.x, collect2 would create an import file
8683     # for dependence libraries.  The import file would start with
8684     # the line `#! .'.  This would cause the generated library to
8685     # depend on `.', always an invalid library.  This was fixed in
8686     # development snapshots of GCC prior to 3.0.
8687     case $host_os in
8688       aix4 | aix4.[01] | aix4.[01].*)
8689       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8690            echo ' yes '
8691            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8692         :
8693       else
8694         can_build_shared=no
8695       fi
8696       ;;
8697     esac
8698     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8699     # soname into executable. Probably we can add versioning support to
8700     # collect2, so additional links can be useful in future.
8701     if test "$aix_use_runtimelinking" = yes; then
8702       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8703       # instead of lib<name>.a to let people know that these are not
8704       # typical AIX shared libraries.
8705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8706     else
8707       # We preserve .a as extension for shared libraries through AIX4.2
8708       # and later when we are not doing run time linking.
8709       library_names_spec='${libname}${release}.a $libname.a'
8710       soname_spec='${libname}${release}${shared_ext}$major'
8711     fi
8712     shlibpath_var=LIBPATH
8713   fi
8714   ;;
8715
8716 amigaos*)
8717   library_names_spec='$libname.ixlibrary $libname.a'
8718   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8719   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'
8720   ;;
8721
8722 beos*)
8723   library_names_spec='${libname}${shared_ext}'
8724   dynamic_linker="$host_os ld.so"
8725   shlibpath_var=LIBRARY_PATH
8726   ;;
8727
8728 bsdi[45]*)
8729   version_type=linux
8730   need_version=no
8731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732   soname_spec='${libname}${release}${shared_ext}$major'
8733   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8734   shlibpath_var=LD_LIBRARY_PATH
8735   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8736   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8737   # the default ld.so.conf also contains /usr/contrib/lib and
8738   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8739   # libtool to hard-code these into programs
8740   ;;
8741
8742 cygwin* | mingw* | pw32*)
8743   version_type=windows
8744   shrext_cmds=".dll"
8745   need_version=no
8746   need_lib_prefix=no
8747
8748   case $GCC,$host_os in
8749   yes,cygwin* | yes,mingw* | yes,pw32*)
8750     library_names_spec='$libname.dll.a'
8751     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8752     postinstall_cmds='base_file=`basename \${file}`~
8753       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8754       dldir=$destdir/`dirname \$dlpath`~
8755       test -d \$dldir || mkdir -p \$dldir~
8756       $install_prog $dir/$dlname \$dldir/$dlname~
8757       chmod a+x \$dldir/$dlname'
8758     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8759       dlpath=$dir/\$dldll~
8760        $rm \$dlpath'
8761     shlibpath_overrides_runpath=yes
8762
8763     case $host_os in
8764     cygwin*)
8765       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8766       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8767       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8768       ;;
8769     mingw*)
8770       # MinGW DLLs use traditional 'lib' prefix
8771       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8773       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8774         # It is most probably a Windows format PATH printed by
8775         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8776         # path with ; separators, and with drive letters. We can handle the
8777         # drive letters (cygwin fileutils understands them), so leave them,
8778         # especially as we might pass files found there to a mingw objdump,
8779         # which wouldn't understand a cygwinified path. Ahh.
8780         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8781       else
8782         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8783       fi
8784       ;;
8785     pw32*)
8786       # pw32 DLLs use 'pw' prefix rather than 'lib'
8787       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788       ;;
8789     esac
8790     ;;
8791
8792   *)
8793     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8794     ;;
8795   esac
8796   dynamic_linker='Win32 ld.exe'
8797   # FIXME: first we should search . and the directory the executable is in
8798   shlibpath_var=PATH
8799   ;;
8800
8801 darwin* | rhapsody*)
8802   dynamic_linker="$host_os dyld"
8803   version_type=darwin
8804   need_lib_prefix=no
8805   need_version=no
8806   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8807   soname_spec='${libname}${release}${major}$shared_ext'
8808   shlibpath_overrides_runpath=yes
8809   shlibpath_var=DYLD_LIBRARY_PATH
8810   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8811
8812   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8813   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8814   ;;
8815
8816 dgux*)
8817   version_type=linux
8818   need_lib_prefix=no
8819   need_version=no
8820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8821   soname_spec='${libname}${release}${shared_ext}$major'
8822   shlibpath_var=LD_LIBRARY_PATH
8823   ;;
8824
8825 freebsd1*)
8826   dynamic_linker=no
8827   ;;
8828
8829 freebsd* | dragonfly*)
8830   # DragonFly does not have aout.  When/if they implement a new
8831   # versioning mechanism, adjust this.
8832   if test -x /usr/bin/objformat; then
8833     objformat=`/usr/bin/objformat`
8834   else
8835     case $host_os in
8836     freebsd[123]*) objformat=aout ;;
8837     *) objformat=elf ;;
8838     esac
8839   fi
8840   version_type=freebsd-$objformat
8841   case $version_type in
8842     freebsd-elf*)
8843       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8844       need_version=no
8845       need_lib_prefix=no
8846       ;;
8847     freebsd-*)
8848       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8849       need_version=yes
8850       ;;
8851   esac
8852   shlibpath_var=LD_LIBRARY_PATH
8853   case $host_os in
8854   freebsd2*)
8855     shlibpath_overrides_runpath=yes
8856     ;;
8857   freebsd3.[01]* | freebsdelf3.[01]*)
8858     shlibpath_overrides_runpath=yes
8859     hardcode_into_libs=yes
8860     ;;
8861   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8862   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8863     shlibpath_overrides_runpath=no
8864     hardcode_into_libs=yes
8865     ;;
8866   *) # from 4.6 on, and DragonFly
8867     shlibpath_overrides_runpath=yes
8868     hardcode_into_libs=yes
8869     ;;
8870   esac
8871   ;;
8872
8873 gnu*)
8874   version_type=linux
8875   need_lib_prefix=no
8876   need_version=no
8877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8878   soname_spec='${libname}${release}${shared_ext}$major'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   hardcode_into_libs=yes
8881   ;;
8882
8883 hpux9* | hpux10* | hpux11*)
8884   # Give a soname corresponding to the major version so that dld.sl refuses to
8885   # link against other versions.
8886   version_type=sunos
8887   need_lib_prefix=no
8888   need_version=no
8889   case $host_cpu in
8890   ia64*)
8891     shrext_cmds='.so'
8892     hardcode_into_libs=yes
8893     dynamic_linker="$host_os dld.so"
8894     shlibpath_var=LD_LIBRARY_PATH
8895     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897     soname_spec='${libname}${release}${shared_ext}$major'
8898     if test "X$HPUX_IA64_MODE" = X32; then
8899       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8900     else
8901       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8902     fi
8903     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904     ;;
8905    hppa*64*)
8906      shrext_cmds='.sl'
8907      hardcode_into_libs=yes
8908      dynamic_linker="$host_os dld.sl"
8909      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8910      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8911      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912      soname_spec='${libname}${release}${shared_ext}$major'
8913      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8914      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915      ;;
8916    *)
8917     shrext_cmds='.sl'
8918     dynamic_linker="$host_os dld.sl"
8919     shlibpath_var=SHLIB_PATH
8920     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922     soname_spec='${libname}${release}${shared_ext}$major'
8923     ;;
8924   esac
8925   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8926   postinstall_cmds='chmod 555 $lib'
8927   ;;
8928
8929 interix[3-9]*)
8930   version_type=linux
8931   need_lib_prefix=no
8932   need_version=no
8933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   shlibpath_overrides_runpath=no
8938   hardcode_into_libs=yes
8939   ;;
8940
8941 irix5* | irix6* | nonstopux*)
8942   case $host_os in
8943     nonstopux*) version_type=nonstopux ;;
8944     *)
8945         if test "$lt_cv_prog_gnu_ld" = yes; then
8946                 version_type=linux
8947         else
8948                 version_type=irix
8949         fi ;;
8950   esac
8951   need_lib_prefix=no
8952   need_version=no
8953   soname_spec='${libname}${release}${shared_ext}$major'
8954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8955   case $host_os in
8956   irix5* | nonstopux*)
8957     libsuff= shlibsuff=
8958     ;;
8959   *)
8960     case $LD in # libtool.m4 will add one of these switches to LD
8961     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8962       libsuff= shlibsuff= libmagic=32-bit;;
8963     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8964       libsuff=32 shlibsuff=N32 libmagic=N32;;
8965     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8966       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8967     *) libsuff= shlibsuff= libmagic=never-match;;
8968     esac
8969     ;;
8970   esac
8971   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8972   shlibpath_overrides_runpath=no
8973   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8974   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8975   hardcode_into_libs=yes
8976   ;;
8977
8978 # No shared lib support for Linux oldld, aout, or coff.
8979 linux*oldld* | linux*aout* | linux*coff*)
8980   dynamic_linker=no
8981   ;;
8982
8983 # This must be Linux ELF.
8984 linux* | k*bsd*-gnu)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8991   shlibpath_var=LD_LIBRARY_PATH
8992   shlibpath_overrides_runpath=no
8993   # This implies no fast_install, which is unacceptable.
8994   # Some rework will be needed to allow for fast_install
8995   # before this can be enabled.
8996   hardcode_into_libs=yes
8997
8998   # Append ld.so.conf contents to the search path
8999   if test -f /etc/ld.so.conf; then
9000     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' ' '`
9001     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9002   fi
9003
9004   # We used to test for /lib/ld.so.1 and disable shared libraries on
9005   # powerpc, because MkLinux only supported shared libraries with the
9006   # GNU dynamic linker.  Since this was broken with cross compilers,
9007   # most powerpc-linux boxes support dynamic linking these days and
9008   # people can always --disable-shared, the test was removed, and we
9009   # assume the GNU/Linux dynamic linker is in use.
9010   dynamic_linker='GNU/Linux ld.so'
9011   ;;
9012
9013 netbsd*)
9014   version_type=sunos
9015   need_lib_prefix=no
9016   need_version=no
9017   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020     dynamic_linker='NetBSD (a.out) ld.so'
9021   else
9022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9023     soname_spec='${libname}${release}${shared_ext}$major'
9024     dynamic_linker='NetBSD ld.elf_so'
9025   fi
9026   shlibpath_var=LD_LIBRARY_PATH
9027   shlibpath_overrides_runpath=yes
9028   hardcode_into_libs=yes
9029   ;;
9030
9031 newsos6)
9032   version_type=linux
9033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   shlibpath_overrides_runpath=yes
9036   ;;
9037
9038 nto-qnx*)
9039   version_type=linux
9040   need_lib_prefix=no
9041   need_version=no
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043   soname_spec='${libname}${release}${shared_ext}$major'
9044   shlibpath_var=LD_LIBRARY_PATH
9045   shlibpath_overrides_runpath=yes
9046   ;;
9047
9048 openbsd*)
9049   version_type=sunos
9050   sys_lib_dlsearch_path_spec="/usr/lib"
9051   need_lib_prefix=no
9052   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9053   case $host_os in
9054     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9055     *)                         need_version=no  ;;
9056   esac
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9059   shlibpath_var=LD_LIBRARY_PATH
9060   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9061     case $host_os in
9062       openbsd2.[89] | openbsd2.[89].*)
9063         shlibpath_overrides_runpath=no
9064         ;;
9065       *)
9066         shlibpath_overrides_runpath=yes
9067         ;;
9068       esac
9069   else
9070     shlibpath_overrides_runpath=yes
9071   fi
9072   ;;
9073
9074 os2*)
9075   libname_spec='$name'
9076   shrext_cmds=".dll"
9077   need_lib_prefix=no
9078   library_names_spec='$libname${shared_ext} $libname.a'
9079   dynamic_linker='OS/2 ld.exe'
9080   shlibpath_var=LIBPATH
9081   ;;
9082
9083 osf3* | osf4* | osf5*)
9084   version_type=osf
9085   need_lib_prefix=no
9086   need_version=no
9087   soname_spec='${libname}${release}${shared_ext}$major'
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089   shlibpath_var=LD_LIBRARY_PATH
9090   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9091   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9092   ;;
9093
9094 rdos*)
9095   dynamic_linker=no
9096   ;;
9097
9098 solaris*)
9099   version_type=linux
9100   need_lib_prefix=no
9101   need_version=no
9102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103   soname_spec='${libname}${release}${shared_ext}$major'
9104   shlibpath_var=LD_LIBRARY_PATH
9105   shlibpath_overrides_runpath=yes
9106   hardcode_into_libs=yes
9107   # ldd complains unless libraries are executable
9108   postinstall_cmds='chmod +x $lib'
9109   ;;
9110
9111 sunos4*)
9112   version_type=sunos
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9114   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   shlibpath_overrides_runpath=yes
9117   if test "$with_gnu_ld" = yes; then
9118     need_lib_prefix=no
9119   fi
9120   need_version=yes
9121   ;;
9122
9123 sysv4 | sysv4.3*)
9124   version_type=linux
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   shlibpath_var=LD_LIBRARY_PATH
9128   case $host_vendor in
9129     sni)
9130       shlibpath_overrides_runpath=no
9131       need_lib_prefix=no
9132       export_dynamic_flag_spec='${wl}-Blargedynsym'
9133       runpath_var=LD_RUN_PATH
9134       ;;
9135     siemens)
9136       need_lib_prefix=no
9137       ;;
9138     motorola)
9139       need_lib_prefix=no
9140       need_version=no
9141       shlibpath_overrides_runpath=no
9142       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9143       ;;
9144   esac
9145   ;;
9146
9147 sysv4*MP*)
9148   if test -d /usr/nec ;then
9149     version_type=linux
9150     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9151     soname_spec='$libname${shared_ext}.$major'
9152     shlibpath_var=LD_LIBRARY_PATH
9153   fi
9154   ;;
9155
9156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9157   version_type=freebsd-elf
9158   need_lib_prefix=no
9159   need_version=no
9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9161   soname_spec='${libname}${release}${shared_ext}$major'
9162   shlibpath_var=LD_LIBRARY_PATH
9163   hardcode_into_libs=yes
9164   if test "$with_gnu_ld" = yes; then
9165     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9166     shlibpath_overrides_runpath=no
9167   else
9168     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9169     shlibpath_overrides_runpath=yes
9170     case $host_os in
9171       sco3.2v5*)
9172         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9173         ;;
9174     esac
9175   fi
9176   sys_lib_dlsearch_path_spec='/usr/lib'
9177   ;;
9178
9179 uts4*)
9180   version_type=linux
9181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182   soname_spec='${libname}${release}${shared_ext}$major'
9183   shlibpath_var=LD_LIBRARY_PATH
9184   ;;
9185
9186 *)
9187   dynamic_linker=no
9188   ;;
9189 esac
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9191 $as_echo "$dynamic_linker" >&6; }
9192 test "$dynamic_linker" = no && can_build_shared=no
9193
9194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9198 fi
9199
9200 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9205 fi
9206
9207 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9208
9209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9210 if test "$GCC" = yes; then
9211   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9212 fi
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9216 hardcode_action=
9217 if test -n "$hardcode_libdir_flag_spec" || \
9218    test -n "$runpath_var" || \
9219    test "X$hardcode_automatic" = "Xyes" ; then
9220
9221   # We can hardcode non-existant directories.
9222   if test "$hardcode_direct" != no &&
9223      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9224      # have to relink, otherwise we might link with an installed library
9225      # when we should be linking with a yet-to-be-installed one
9226      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9227      test "$hardcode_minus_L" != no; then
9228     # Linking always hardcodes the temporary library directory.
9229     hardcode_action=relink
9230   else
9231     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9232     hardcode_action=immediate
9233   fi
9234 else
9235   # We cannot hardcode anything, or else we can only hardcode existing
9236   # directories.
9237   hardcode_action=unsupported
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9240 $as_echo "$hardcode_action" >&6; }
9241
9242 if test "$hardcode_action" = relink; then
9243   # Fast installation is not supported
9244   enable_fast_install=no
9245 elif test "$shlibpath_overrides_runpath" = yes ||
9246      test "$enable_shared" = no; then
9247   # Fast installation is not necessary
9248   enable_fast_install=needless
9249 fi
9250
9251 striplib=
9252 old_striplib=
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9254 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9255 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9256   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9257   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9259 $as_echo "yes" >&6; }
9260 else
9261 # FIXME - insert some real tests, host_os isn't really good enough
9262   case $host_os in
9263    darwin*)
9264        if test -n "$STRIP" ; then
9265          striplib="$STRIP -x"
9266          old_striplib="$STRIP -S"
9267          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9268 $as_echo "yes" >&6; }
9269        else
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9272 fi
9273        ;;
9274    *)
9275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9277     ;;
9278   esac
9279 fi
9280
9281 if test "x$enable_dlopen" != xyes; then
9282   enable_dlopen=unknown
9283   enable_dlopen_self=unknown
9284   enable_dlopen_self_static=unknown
9285 else
9286   lt_cv_dlopen=no
9287   lt_cv_dlopen_libs=
9288
9289   case $host_os in
9290   beos*)
9291     lt_cv_dlopen="load_add_on"
9292     lt_cv_dlopen_libs=
9293     lt_cv_dlopen_self=yes
9294     ;;
9295
9296   mingw* | pw32*)
9297     lt_cv_dlopen="LoadLibrary"
9298     lt_cv_dlopen_libs=
9299    ;;
9300
9301   cygwin*)
9302     lt_cv_dlopen="dlopen"
9303     lt_cv_dlopen_libs=
9304    ;;
9305
9306   darwin*)
9307   # if libdl is installed we need to link against it
9308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9309 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9311   $as_echo_n "(cached) " >&6
9312 else
9313   ac_check_lib_save_LIBS=$LIBS
9314 LIBS="-ldl  $LIBS"
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h.  */
9317
9318 /* Override any GCC internal prototype to avoid an error.
9319    Use char because int might match the return type of a GCC
9320    builtin and then its argument prototype would still apply.  */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 char dlopen ();
9325 int
9326 main ()
9327 {
9328 return dlopen ();
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_c_try_link "$LINENO"; then :
9334   ac_cv_lib_dl_dlopen=yes
9335 else
9336   ac_cv_lib_dl_dlopen=no
9337 fi
9338 rm -f core conftest.err conftest.$ac_objext \
9339     conftest$ac_exeext conftest.$ac_ext
9340 LIBS=$ac_check_lib_save_LIBS
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9343 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9344 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9345   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9346 else
9347
9348     lt_cv_dlopen="dyld"
9349     lt_cv_dlopen_libs=
9350     lt_cv_dlopen_self=yes
9351
9352 fi
9353
9354    ;;
9355
9356   *)
9357     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9358 if test "x$ac_cv_func_shl_load" = x""yes; then :
9359   lt_cv_dlopen="shl_load"
9360 else
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9362 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9364   $as_echo_n "(cached) " >&6
9365 else
9366   ac_check_lib_save_LIBS=$LIBS
9367 LIBS="-ldld  $LIBS"
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h.  */
9370
9371 /* Override any GCC internal prototype to avoid an error.
9372    Use char because int might match the return type of a GCC
9373    builtin and then its argument prototype would still apply.  */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 char shl_load ();
9378 int
9379 main ()
9380 {
9381 return shl_load ();
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_link "$LINENO"; then :
9387   ac_cv_lib_dld_shl_load=yes
9388 else
9389   ac_cv_lib_dld_shl_load=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext \
9392     conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9396 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9397 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9398   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9399 else
9400   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9401 if test "x$ac_cv_func_dlopen" = x""yes; then :
9402   lt_cv_dlopen="dlopen"
9403 else
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9405 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-ldl  $LIBS"
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h.  */
9413
9414 /* Override any GCC internal prototype to avoid an error.
9415    Use char because int might match the return type of a GCC
9416    builtin and then its argument prototype would still apply.  */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char dlopen ();
9421 int
9422 main ()
9423 {
9424 return dlopen ();
9425   ;
9426   return 0;
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430   ac_cv_lib_dl_dlopen=yes
9431 else
9432   ac_cv_lib_dl_dlopen=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext \
9435     conftest$ac_exeext conftest.$ac_ext
9436 LIBS=$ac_check_lib_save_LIBS
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9439 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9440 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9441   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9442 else
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9444 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9445 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   ac_check_lib_save_LIBS=$LIBS
9449 LIBS="-lsvld  $LIBS"
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h.  */
9452
9453 /* Override any GCC internal prototype to avoid an error.
9454    Use char because int might match the return type of a GCC
9455    builtin and then its argument prototype would still apply.  */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 char dlopen ();
9460 int
9461 main ()
9462 {
9463 return dlopen ();
9464   ;
9465   return 0;
9466 }
9467 _ACEOF
9468 if ac_fn_c_try_link "$LINENO"; then :
9469   ac_cv_lib_svld_dlopen=yes
9470 else
9471   ac_cv_lib_svld_dlopen=no
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext \
9474     conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9476 fi
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9478 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9479 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9481 else
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9483 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9485   $as_echo_n "(cached) " >&6
9486 else
9487   ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-ldld  $LIBS"
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h.  */
9491
9492 /* Override any GCC internal prototype to avoid an error.
9493    Use char because int might match the return type of a GCC
9494    builtin and then its argument prototype would still apply.  */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 char dld_link ();
9499 int
9500 main ()
9501 {
9502 return dld_link ();
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508   ac_cv_lib_dld_dld_link=yes
9509 else
9510   ac_cv_lib_dld_dld_link=no
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext \
9513     conftest$ac_exeext conftest.$ac_ext
9514 LIBS=$ac_check_lib_save_LIBS
9515 fi
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9517 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9518 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9519   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9520 fi
9521
9522
9523 fi
9524
9525
9526 fi
9527
9528
9529 fi
9530
9531
9532 fi
9533
9534
9535 fi
9536
9537     ;;
9538   esac
9539
9540   if test "x$lt_cv_dlopen" != xno; then
9541     enable_dlopen=yes
9542   else
9543     enable_dlopen=no
9544   fi
9545
9546   case $lt_cv_dlopen in
9547   dlopen)
9548     save_CPPFLAGS="$CPPFLAGS"
9549     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9550
9551     save_LDFLAGS="$LDFLAGS"
9552     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9553
9554     save_LIBS="$LIBS"
9555     LIBS="$lt_cv_dlopen_libs $LIBS"
9556
9557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9558 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9559 if test "${lt_cv_dlopen_self+set}" = set; then :
9560   $as_echo_n "(cached) " >&6
9561 else
9562           if test "$cross_compiling" = yes; then :
9563   lt_cv_dlopen_self=cross
9564 else
9565   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9566   lt_status=$lt_dlunknown
9567   cat > conftest.$ac_ext <<EOF
9568 #line 9568 "configure"
9569 #include "confdefs.h"
9570
9571 #if HAVE_DLFCN_H
9572 #include <dlfcn.h>
9573 #endif
9574
9575 #include <stdio.h>
9576
9577 #ifdef RTLD_GLOBAL
9578 #  define LT_DLGLOBAL           RTLD_GLOBAL
9579 #else
9580 #  ifdef DL_GLOBAL
9581 #    define LT_DLGLOBAL         DL_GLOBAL
9582 #  else
9583 #    define LT_DLGLOBAL         0
9584 #  endif
9585 #endif
9586
9587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9588    find out it does not work in some platform. */
9589 #ifndef LT_DLLAZY_OR_NOW
9590 #  ifdef RTLD_LAZY
9591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9592 #  else
9593 #    ifdef DL_LAZY
9594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9595 #    else
9596 #      ifdef RTLD_NOW
9597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9598 #      else
9599 #        ifdef DL_NOW
9600 #          define LT_DLLAZY_OR_NOW      DL_NOW
9601 #        else
9602 #          define LT_DLLAZY_OR_NOW      0
9603 #        endif
9604 #      endif
9605 #    endif
9606 #  endif
9607 #endif
9608
9609 #ifdef __cplusplus
9610 extern "C" void exit (int);
9611 #endif
9612
9613 void fnord() { int i=42;}
9614 int main ()
9615 {
9616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9617   int status = $lt_dlunknown;
9618
9619   if (self)
9620     {
9621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9623       /* dlclose (self); */
9624     }
9625   else
9626     puts (dlerror ());
9627
9628     exit (status);
9629 }
9630 EOF
9631   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9632   (eval $ac_link) 2>&5
9633   ac_status=$?
9634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9635   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9636     (./conftest; exit; ) >&5 2>/dev/null
9637     lt_status=$?
9638     case x$lt_status in
9639       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9640       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9641       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9642     esac
9643   else :
9644     # compilation failed
9645     lt_cv_dlopen_self=no
9646   fi
9647 fi
9648 rm -fr conftest*
9649
9650
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9653 $as_echo "$lt_cv_dlopen_self" >&6; }
9654
9655     if test "x$lt_cv_dlopen_self" = xyes; then
9656       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9657       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9658 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9659 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9660   $as_echo_n "(cached) " >&6
9661 else
9662           if test "$cross_compiling" = yes; then :
9663   lt_cv_dlopen_self_static=cross
9664 else
9665   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9666   lt_status=$lt_dlunknown
9667   cat > conftest.$ac_ext <<EOF
9668 #line 9668 "configure"
9669 #include "confdefs.h"
9670
9671 #if HAVE_DLFCN_H
9672 #include <dlfcn.h>
9673 #endif
9674
9675 #include <stdio.h>
9676
9677 #ifdef RTLD_GLOBAL
9678 #  define LT_DLGLOBAL           RTLD_GLOBAL
9679 #else
9680 #  ifdef DL_GLOBAL
9681 #    define LT_DLGLOBAL         DL_GLOBAL
9682 #  else
9683 #    define LT_DLGLOBAL         0
9684 #  endif
9685 #endif
9686
9687 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9688    find out it does not work in some platform. */
9689 #ifndef LT_DLLAZY_OR_NOW
9690 #  ifdef RTLD_LAZY
9691 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9692 #  else
9693 #    ifdef DL_LAZY
9694 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9695 #    else
9696 #      ifdef RTLD_NOW
9697 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9698 #      else
9699 #        ifdef DL_NOW
9700 #          define LT_DLLAZY_OR_NOW      DL_NOW
9701 #        else
9702 #          define LT_DLLAZY_OR_NOW      0
9703 #        endif
9704 #      endif
9705 #    endif
9706 #  endif
9707 #endif
9708
9709 #ifdef __cplusplus
9710 extern "C" void exit (int);
9711 #endif
9712
9713 void fnord() { int i=42;}
9714 int main ()
9715 {
9716   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9717   int status = $lt_dlunknown;
9718
9719   if (self)
9720     {
9721       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9722       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9723       /* dlclose (self); */
9724     }
9725   else
9726     puts (dlerror ());
9727
9728     exit (status);
9729 }
9730 EOF
9731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9732   (eval $ac_link) 2>&5
9733   ac_status=$?
9734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9735   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9736     (./conftest; exit; ) >&5 2>/dev/null
9737     lt_status=$?
9738     case x$lt_status in
9739       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9740       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9741       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9742     esac
9743   else :
9744     # compilation failed
9745     lt_cv_dlopen_self_static=no
9746   fi
9747 fi
9748 rm -fr conftest*
9749
9750
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9753 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9754     fi
9755
9756     CPPFLAGS="$save_CPPFLAGS"
9757     LDFLAGS="$save_LDFLAGS"
9758     LIBS="$save_LIBS"
9759     ;;
9760   esac
9761
9762   case $lt_cv_dlopen_self in
9763   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9764   *) enable_dlopen_self=unknown ;;
9765   esac
9766
9767   case $lt_cv_dlopen_self_static in
9768   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9769   *) enable_dlopen_self_static=unknown ;;
9770   esac
9771 fi
9772
9773
9774 # Report which library types will actually be built
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9776 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9778 $as_echo "$can_build_shared" >&6; }
9779
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9781 $as_echo_n "checking whether to build shared libraries... " >&6; }
9782 test "$can_build_shared" = "no" && enable_shared=no
9783
9784 # On AIX, shared libraries and static libraries use the same namespace, and
9785 # are all built from PIC.
9786 case $host_os in
9787 aix3*)
9788   test "$enable_shared" = yes && enable_static=no
9789   if test -n "$RANLIB"; then
9790     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9791     postinstall_cmds='$RANLIB $lib'
9792   fi
9793   ;;
9794
9795 aix[4-9]*)
9796   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9797     test "$enable_shared" = yes && enable_static=no
9798   fi
9799     ;;
9800 esac
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9802 $as_echo "$enable_shared" >&6; }
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9805 $as_echo_n "checking whether to build static libraries... " >&6; }
9806 # Make sure either enable_shared or enable_static is yes.
9807 test "$enable_shared" = yes || enable_static=yes
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9809 $as_echo "$enable_static" >&6; }
9810
9811 # The else clause should only fire when bootstrapping the
9812 # libtool distribution, otherwise you forgot to ship ltmain.sh
9813 # with your package, and you will get complaints that there are
9814 # no rules to generate ltmain.sh.
9815 if test -f "$ltmain"; then
9816   # See if we are running on zsh, and set the options which allow our commands through
9817   # without removal of \ escapes.
9818   if test -n "${ZSH_VERSION+set}" ; then
9819     setopt NO_GLOB_SUBST
9820   fi
9821   # Now quote all the things that may contain metacharacters while being
9822   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9823   # variables and quote the copies for generation of the libtool script.
9824   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9825     SED SHELL STRIP \
9826     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9827     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9828     deplibs_check_method reload_flag reload_cmds need_locks \
9829     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9830     lt_cv_sys_global_symbol_to_c_name_address \
9831     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9832     old_postinstall_cmds old_postuninstall_cmds \
9833     compiler \
9834     CC \
9835     LD \
9836     lt_prog_compiler_wl \
9837     lt_prog_compiler_pic \
9838     lt_prog_compiler_static \
9839     lt_prog_compiler_no_builtin_flag \
9840     export_dynamic_flag_spec \
9841     thread_safe_flag_spec \
9842     whole_archive_flag_spec \
9843     enable_shared_with_static_runtimes \
9844     old_archive_cmds \
9845     old_archive_from_new_cmds \
9846     predep_objects \
9847     postdep_objects \
9848     predeps \
9849     postdeps \
9850     compiler_lib_search_path \
9851     compiler_lib_search_dirs \
9852     archive_cmds \
9853     archive_expsym_cmds \
9854     postinstall_cmds \
9855     postuninstall_cmds \
9856     old_archive_from_expsyms_cmds \
9857     allow_undefined_flag \
9858     no_undefined_flag \
9859     export_symbols_cmds \
9860     hardcode_libdir_flag_spec \
9861     hardcode_libdir_flag_spec_ld \
9862     hardcode_libdir_separator \
9863     hardcode_automatic \
9864     module_cmds \
9865     module_expsym_cmds \
9866     lt_cv_prog_compiler_c_o \
9867     fix_srcfile_path \
9868     exclude_expsyms \
9869     include_expsyms; do
9870
9871     case $var in
9872     old_archive_cmds | \
9873     old_archive_from_new_cmds | \
9874     archive_cmds | \
9875     archive_expsym_cmds | \
9876     module_cmds | \
9877     module_expsym_cmds | \
9878     old_archive_from_expsyms_cmds | \
9879     export_symbols_cmds | \
9880     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9881     postinstall_cmds | postuninstall_cmds | \
9882     old_postinstall_cmds | old_postuninstall_cmds | \
9883     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9884       # Double-quote double-evaled strings.
9885       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9886       ;;
9887     *)
9888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9889       ;;
9890     esac
9891   done
9892
9893   case $lt_echo in
9894   *'\$0 --fallback-echo"')
9895     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9896     ;;
9897   esac
9898
9899 cfgfile="${ofile}T"
9900   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9901   $rm -f "$cfgfile"
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9903 $as_echo "$as_me: creating $ofile" >&6;}
9904
9905   cat <<__EOF__ >> "$cfgfile"
9906 #! $SHELL
9907
9908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9911 #
9912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9913 # Free Software Foundation, Inc.
9914 #
9915 # This file is part of GNU Libtool:
9916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9917 #
9918 # This program is free software; you can redistribute it and/or modify
9919 # it under the terms of the GNU General Public License as published by
9920 # the Free Software Foundation; either version 2 of the License, or
9921 # (at your option) any later version.
9922 #
9923 # This program is distributed in the hope that it will be useful, but
9924 # WITHOUT ANY WARRANTY; without even the implied warranty of
9925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9926 # General Public License for more details.
9927 #
9928 # You should have received a copy of the GNU General Public License
9929 # along with this program; if not, write to the Free Software
9930 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9931 #
9932 # As a special exception to the GNU General Public License, if you
9933 # distribute this file as part of a program that contains a
9934 # configuration script generated by Autoconf, you may include it under
9935 # the same distribution terms that you use for the rest of that program.
9936
9937 # A sed program that does not truncate output.
9938 SED=$lt_SED
9939
9940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9941 Xsed="$SED -e 1s/^X//"
9942
9943 # The HP-UX ksh and POSIX shell print the target directory to stdout
9944 # if CDPATH is set.
9945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9946
9947 # The names of the tagged configurations supported by this script.
9948 available_tags=
9949
9950 # ### BEGIN LIBTOOL CONFIG
9951
9952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9953
9954 # Shell to use when invoking shell scripts.
9955 SHELL=$lt_SHELL
9956
9957 # Whether or not to build shared libraries.
9958 build_libtool_libs=$enable_shared
9959
9960 # Whether or not to build static libraries.
9961 build_old_libs=$enable_static
9962
9963 # Whether or not to add -lc for building shared libraries.
9964 build_libtool_need_lc=$archive_cmds_need_lc
9965
9966 # Whether or not to disallow shared libs when runtime libs are static
9967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9968
9969 # Whether or not to optimize for fast installation.
9970 fast_install=$enable_fast_install
9971
9972 # The host system.
9973 host_alias=$host_alias
9974 host=$host
9975 host_os=$host_os
9976
9977 # The build system.
9978 build_alias=$build_alias
9979 build=$build
9980 build_os=$build_os
9981
9982 # An echo program that does not interpret backslashes.
9983 echo=$lt_echo
9984
9985 # The archiver.
9986 AR=$lt_AR
9987 AR_FLAGS=$lt_AR_FLAGS
9988
9989 # A C compiler.
9990 LTCC=$lt_LTCC
9991
9992 # LTCC compiler flags.
9993 LTCFLAGS=$lt_LTCFLAGS
9994
9995 # A language-specific compiler.
9996 CC=$lt_compiler
9997
9998 # Is the compiler the GNU C compiler?
9999 with_gcc=$GCC
10000
10001 # An ERE matcher.
10002 EGREP=$lt_EGREP
10003
10004 # The linker used to build libraries.
10005 LD=$lt_LD
10006
10007 # Whether we need hard or soft links.
10008 LN_S=$lt_LN_S
10009
10010 # A BSD-compatible nm program.
10011 NM=$lt_NM
10012
10013 # A symbol stripping program
10014 STRIP=$lt_STRIP
10015
10016 # Used to examine libraries when file_magic_cmd begins "file"
10017 MAGIC_CMD=$MAGIC_CMD
10018
10019 # Used on cygwin: DLL creation program.
10020 DLLTOOL="$DLLTOOL"
10021
10022 # Used on cygwin: object dumper.
10023 OBJDUMP="$OBJDUMP"
10024
10025 # Used on cygwin: assembler.
10026 AS="$AS"
10027
10028 # The name of the directory that contains temporary libtool files.
10029 objdir=$objdir
10030
10031 # How to create reloadable object files.
10032 reload_flag=$lt_reload_flag
10033 reload_cmds=$lt_reload_cmds
10034
10035 # How to pass a linker flag through the compiler.
10036 wl=$lt_lt_prog_compiler_wl
10037
10038 # Object file suffix (normally "o").
10039 objext="$ac_objext"
10040
10041 # Old archive suffix (normally "a").
10042 libext="$libext"
10043
10044 # Shared library suffix (normally ".so").
10045 shrext_cmds='$shrext_cmds'
10046
10047 # Executable file suffix (normally "").
10048 exeext="$exeext"
10049
10050 # Additional compiler flags for building library objects.
10051 pic_flag=$lt_lt_prog_compiler_pic
10052 pic_mode=$pic_mode
10053
10054 # What is the maximum length of a command?
10055 max_cmd_len=$lt_cv_sys_max_cmd_len
10056
10057 # Does compiler simultaneously support -c and -o options?
10058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10059
10060 # Must we lock files when doing compilation?
10061 need_locks=$lt_need_locks
10062
10063 # Do we need the lib prefix for modules?
10064 need_lib_prefix=$need_lib_prefix
10065
10066 # Do we need a version for libraries?
10067 need_version=$need_version
10068
10069 # Whether dlopen is supported.
10070 dlopen_support=$enable_dlopen
10071
10072 # Whether dlopen of programs is supported.
10073 dlopen_self=$enable_dlopen_self
10074
10075 # Whether dlopen of statically linked programs is supported.
10076 dlopen_self_static=$enable_dlopen_self_static
10077
10078 # Compiler flag to prevent dynamic linking.
10079 link_static_flag=$lt_lt_prog_compiler_static
10080
10081 # Compiler flag to turn off builtin functions.
10082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10083
10084 # Compiler flag to allow reflexive dlopens.
10085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10086
10087 # Compiler flag to generate shared objects directly from archives.
10088 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10089
10090 # Compiler flag to generate thread-safe objects.
10091 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10092
10093 # Library versioning type.
10094 version_type=$version_type
10095
10096 # Format of library name prefix.
10097 libname_spec=$lt_libname_spec
10098
10099 # List of archive names.  First name is the real one, the rest are links.
10100 # The last name is the one that the linker finds with -lNAME.
10101 library_names_spec=$lt_library_names_spec
10102
10103 # The coded name of the library, if different from the real name.
10104 soname_spec=$lt_soname_spec
10105
10106 # Commands used to build and install an old-style archive.
10107 RANLIB=$lt_RANLIB
10108 old_archive_cmds=$lt_old_archive_cmds
10109 old_postinstall_cmds=$lt_old_postinstall_cmds
10110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10111
10112 # Create an old-style archive from a shared archive.
10113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10114
10115 # Create a temporary old-style archive to link instead of a shared archive.
10116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10117
10118 # Commands used to build and install a shared archive.
10119 archive_cmds=$lt_archive_cmds
10120 archive_expsym_cmds=$lt_archive_expsym_cmds
10121 postinstall_cmds=$lt_postinstall_cmds
10122 postuninstall_cmds=$lt_postuninstall_cmds
10123
10124 # Commands used to build a loadable module (assumed same as above if empty)
10125 module_cmds=$lt_module_cmds
10126 module_expsym_cmds=$lt_module_expsym_cmds
10127
10128 # Commands to strip libraries.
10129 old_striplib=$lt_old_striplib
10130 striplib=$lt_striplib
10131
10132 # Dependencies to place before the objects being linked to create a
10133 # shared library.
10134 predep_objects=$lt_predep_objects
10135
10136 # Dependencies to place after the objects being linked to create a
10137 # shared library.
10138 postdep_objects=$lt_postdep_objects
10139
10140 # Dependencies to place before the objects being linked to create a
10141 # shared library.
10142 predeps=$lt_predeps
10143
10144 # Dependencies to place after the objects being linked to create a
10145 # shared library.
10146 postdeps=$lt_postdeps
10147
10148 # The directories searched by this compiler when creating a shared
10149 # library
10150 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10151
10152 # The library search path used internally by the compiler when linking
10153 # a shared library.
10154 compiler_lib_search_path=$lt_compiler_lib_search_path
10155
10156 # Method to check whether dependent libraries are shared objects.
10157 deplibs_check_method=$lt_deplibs_check_method
10158
10159 # Command to use when deplibs_check_method == file_magic.
10160 file_magic_cmd=$lt_file_magic_cmd
10161
10162 # Flag that allows shared libraries with undefined symbols to be built.
10163 allow_undefined_flag=$lt_allow_undefined_flag
10164
10165 # Flag that forces no undefined symbols.
10166 no_undefined_flag=$lt_no_undefined_flag
10167
10168 # Commands used to finish a libtool library installation in a directory.
10169 finish_cmds=$lt_finish_cmds
10170
10171 # Same as above, but a single script fragment to be evaled but not shown.
10172 finish_eval=$lt_finish_eval
10173
10174 # Take the output of nm and produce a listing of raw symbols and C names.
10175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10176
10177 # Transform the output of nm in a proper C declaration
10178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10179
10180 # Transform the output of nm in a C name address pair
10181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10182
10183 # This is the shared library runtime path variable.
10184 runpath_var=$runpath_var
10185
10186 # This is the shared library path variable.
10187 shlibpath_var=$shlibpath_var
10188
10189 # Is shlibpath searched before the hard-coded library search path?
10190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10191
10192 # How to hardcode a shared library path into an executable.
10193 hardcode_action=$hardcode_action
10194
10195 # Whether we should hardcode library paths into libraries.
10196 hardcode_into_libs=$hardcode_into_libs
10197
10198 # Flag to hardcode \$libdir into a binary during linking.
10199 # This must work even if \$libdir does not exist.
10200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10201
10202 # If ld is used when linking, flag to hardcode \$libdir into
10203 # a binary during linking. This must work even if \$libdir does
10204 # not exist.
10205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10206
10207 # Whether we need a single -rpath flag with a separated argument.
10208 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10209
10210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10211 # resulting binary.
10212 hardcode_direct=$hardcode_direct
10213
10214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10215 # resulting binary.
10216 hardcode_minus_L=$hardcode_minus_L
10217
10218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10219 # the resulting binary.
10220 hardcode_shlibpath_var=$hardcode_shlibpath_var
10221
10222 # Set to yes if building a shared library automatically hardcodes DIR into the library
10223 # and all subsequent libraries and executables linked against it.
10224 hardcode_automatic=$hardcode_automatic
10225
10226 # Variables whose values should be saved in libtool wrapper scripts and
10227 # restored at relink time.
10228 variables_saved_for_relink="$variables_saved_for_relink"
10229
10230 # Whether libtool must link a program against all its dependency libraries.
10231 link_all_deplibs=$link_all_deplibs
10232
10233 # Compile-time system search path for libraries
10234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10235
10236 # Run-time system search path for libraries
10237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10238
10239 # Fix the shell variable \$srcfile for the compiler.
10240 fix_srcfile_path=$lt_fix_srcfile_path
10241
10242 # Set to yes if exported symbols are required.
10243 always_export_symbols=$always_export_symbols
10244
10245 # The commands to list exported symbols.
10246 export_symbols_cmds=$lt_export_symbols_cmds
10247
10248 # The commands to extract the exported symbol list from a shared archive.
10249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10250
10251 # Symbols that should not be listed in the preloaded symbols.
10252 exclude_expsyms=$lt_exclude_expsyms
10253
10254 # Symbols that must always be exported.
10255 include_expsyms=$lt_include_expsyms
10256
10257 # ### END LIBTOOL CONFIG
10258
10259 __EOF__
10260
10261
10262   case $host_os in
10263   aix3*)
10264     cat <<\EOF >> "$cfgfile"
10265
10266 # AIX sometimes has problems with the GCC collect2 program.  For some
10267 # reason, if we set the COLLECT_NAMES environment variable, the problems
10268 # vanish in a puff of smoke.
10269 if test "X${COLLECT_NAMES+set}" != Xset; then
10270   COLLECT_NAMES=
10271   export COLLECT_NAMES
10272 fi
10273 EOF
10274     ;;
10275   esac
10276
10277   # We use sed instead of cat because bash on DJGPP gets confused if
10278   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10279   # text mode, it properly converts lines to CR/LF.  This bash problem
10280   # is reportedly fixed, but why not run on old versions too?
10281   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10282
10283   mv -f "$cfgfile" "$ofile" || \
10284     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10285   chmod +x "$ofile"
10286
10287 else
10288   # If there is no Makefile yet, we rely on a make rule to execute
10289   # `config.status --recheck' to rerun these tests and create the
10290   # libtool script then.
10291   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10292   if test -f "$ltmain_in"; then
10293     test -f Makefile && make "$ltmain"
10294   fi
10295 fi
10296
10297
10298 ac_ext=c
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304 CC="$lt_save_CC"
10305
10306
10307 # Check whether --with-tags was given.
10308 if test "${with_tags+set}" = set; then :
10309   withval=$with_tags; tagnames="$withval"
10310 fi
10311
10312
10313 if test -f "$ltmain" && test -n "$tagnames"; then
10314   if test ! -f "${ofile}"; then
10315     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10316 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10317   fi
10318
10319   if test -z "$LTCC"; then
10320     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10321     if test -z "$LTCC"; then
10322       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10323 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10324     else
10325       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10326 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10327     fi
10328   fi
10329   if test -z "$LTCFLAGS"; then
10330     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10331   fi
10332
10333   # Extract list of available tagged configurations in $ofile.
10334   # Note that this assumes the entire list is on one line.
10335   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10336
10337   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10338   for tagname in $tagnames; do
10339     IFS="$lt_save_ifs"
10340     # Check whether tagname contains only valid characters
10341     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10342     "") ;;
10343     *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10344         ;;
10345     esac
10346
10347     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10348     then
10349       as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10350     fi
10351
10352     # Update the list of available tags.
10353     if test -n "$tagname"; then
10354       echo appending configuration tag \"$tagname\" to $ofile
10355
10356       case $tagname in
10357       CXX)
10358         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10359             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10360             (test "X$CXX" != "Xg++"))) ; then
10361           ac_ext=cpp
10362 ac_cpp='$CXXCPP $CPPFLAGS'
10363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10366
10367
10368
10369
10370 archive_cmds_need_lc_CXX=no
10371 allow_undefined_flag_CXX=
10372 always_export_symbols_CXX=no
10373 archive_expsym_cmds_CXX=
10374 export_dynamic_flag_spec_CXX=
10375 hardcode_direct_CXX=no
10376 hardcode_libdir_flag_spec_CXX=
10377 hardcode_libdir_flag_spec_ld_CXX=
10378 hardcode_libdir_separator_CXX=
10379 hardcode_minus_L_CXX=no
10380 hardcode_shlibpath_var_CXX=unsupported
10381 hardcode_automatic_CXX=no
10382 module_cmds_CXX=
10383 module_expsym_cmds_CXX=
10384 link_all_deplibs_CXX=unknown
10385 old_archive_cmds_CXX=$old_archive_cmds
10386 no_undefined_flag_CXX=
10387 whole_archive_flag_spec_CXX=
10388 enable_shared_with_static_runtimes_CXX=no
10389
10390 # Dependencies to place before and after the object being linked:
10391 predep_objects_CXX=
10392 postdep_objects_CXX=
10393 predeps_CXX=
10394 postdeps_CXX=
10395 compiler_lib_search_path_CXX=
10396 compiler_lib_search_dirs_CXX=
10397
10398 # Source file extension for C++ test sources.
10399 ac_ext=cpp
10400
10401 # Object file extension for compiled C++ test sources.
10402 objext=o
10403 objext_CXX=$objext
10404
10405 # Code to be used in simple compile tests
10406 lt_simple_compile_test_code="int some_variable = 0;"
10407
10408 # Code to be used in simple link tests
10409 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10410
10411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10412
10413 # If no C compiler was specified, use CC.
10414 LTCC=${LTCC-"$CC"}
10415
10416 # If no C compiler flags were specified, use CFLAGS.
10417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10418
10419 # Allow CC to be a program name with arguments.
10420 compiler=$CC
10421
10422
10423 # save warnings/boilerplate of simple test code
10424 ac_outfile=conftest.$ac_objext
10425 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10427 _lt_compiler_boilerplate=`cat conftest.err`
10428 $rm conftest*
10429
10430 ac_outfile=conftest.$ac_objext
10431 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10433 _lt_linker_boilerplate=`cat conftest.err`
10434 $rm -r conftest*
10435
10436
10437 # Allow CC to be a program name with arguments.
10438 lt_save_CC=$CC
10439 lt_save_LD=$LD
10440 lt_save_GCC=$GCC
10441 GCC=$GXX
10442 lt_save_with_gnu_ld=$with_gnu_ld
10443 lt_save_path_LD=$lt_cv_path_LD
10444 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10445   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10446 else
10447   $as_unset lt_cv_prog_gnu_ld
10448 fi
10449 if test -n "${lt_cv_path_LDCXX+set}"; then
10450   lt_cv_path_LD=$lt_cv_path_LDCXX
10451 else
10452   $as_unset lt_cv_path_LD
10453 fi
10454 test -z "${LDCXX+set}" || LD=$LDCXX
10455 CC=${CXX-"c++"}
10456 compiler=$CC
10457 compiler_CXX=$CC
10458 for cc_temp in $compiler""; do
10459   case $cc_temp in
10460     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10461     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10462     \-*) ;;
10463     *) break;;
10464   esac
10465 done
10466 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10467
10468
10469 # We don't want -fno-exception wen compiling C++ code, so set the
10470 # no_builtin_flag separately
10471 if test "$GXX" = yes; then
10472   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10473 else
10474   lt_prog_compiler_no_builtin_flag_CXX=
10475 fi
10476
10477 if test "$GXX" = yes; then
10478   # Set up default GNU C++ configuration
10479
10480
10481 # Check whether --with-gnu-ld was given.
10482 if test "${with_gnu_ld+set}" = set; then :
10483   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10484 else
10485   with_gnu_ld=no
10486 fi
10487
10488 ac_prog=ld
10489 if test "$GCC" = yes; then
10490   # Check if gcc -print-prog-name=ld gives a path.
10491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10492 $as_echo_n "checking for ld used by $CC... " >&6; }
10493   case $host in
10494   *-*-mingw*)
10495     # gcc leaves a trailing carriage return which upsets mingw
10496     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10497   *)
10498     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10499   esac
10500   case $ac_prog in
10501     # Accept absolute paths.
10502     [\\/]* | ?:[\\/]*)
10503       re_direlt='/[^/][^/]*/\.\./'
10504       # Canonicalize the pathname of ld
10505       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10506       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10507         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10508       done
10509       test -z "$LD" && LD="$ac_prog"
10510       ;;
10511   "")
10512     # If it fails, then pretend we aren't using GCC.
10513     ac_prog=ld
10514     ;;
10515   *)
10516     # If it is relative, then search for the first ld in PATH.
10517     with_gnu_ld=unknown
10518     ;;
10519   esac
10520 elif test "$with_gnu_ld" = yes; then
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10522 $as_echo_n "checking for GNU ld... " >&6; }
10523 else
10524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10525 $as_echo_n "checking for non-GNU ld... " >&6; }
10526 fi
10527 if test "${lt_cv_path_LD+set}" = set; then :
10528   $as_echo_n "(cached) " >&6
10529 else
10530   if test -z "$LD"; then
10531   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10532   for ac_dir in $PATH; do
10533     IFS="$lt_save_ifs"
10534     test -z "$ac_dir" && ac_dir=.
10535     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10536       lt_cv_path_LD="$ac_dir/$ac_prog"
10537       # Check to see if the program is GNU ld.  I'd rather use --version,
10538       # but apparently some variants of GNU ld only accept -v.
10539       # Break only if it was the GNU/non-GNU ld that we prefer.
10540       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10541       *GNU* | *'with BFD'*)
10542         test "$with_gnu_ld" != no && break
10543         ;;
10544       *)
10545         test "$with_gnu_ld" != yes && break
10546         ;;
10547       esac
10548     fi
10549   done
10550   IFS="$lt_save_ifs"
10551 else
10552   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10553 fi
10554 fi
10555
10556 LD="$lt_cv_path_LD"
10557 if test -n "$LD"; then
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10559 $as_echo "$LD" >&6; }
10560 else
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10567 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10568   $as_echo_n "(cached) " >&6
10569 else
10570   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10571 case `$LD -v 2>&1 </dev/null` in
10572 *GNU* | *'with BFD'*)
10573   lt_cv_prog_gnu_ld=yes
10574   ;;
10575 *)
10576   lt_cv_prog_gnu_ld=no
10577   ;;
10578 esac
10579 fi
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10582 with_gnu_ld=$lt_cv_prog_gnu_ld
10583
10584
10585
10586   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10587   # archiving commands below assume that GNU ld is being used.
10588   if test "$with_gnu_ld" = yes; then
10589     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10590     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'
10591
10592     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10593     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10594
10595     # If archive_cmds runs LD, not CC, wlarc should be empty
10596     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10597     #     investigate it a little bit more. (MM)
10598     wlarc='${wl}'
10599
10600     # ancient GNU ld didn't support --whole-archive et. al.
10601     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10602         grep 'no-whole-archive' > /dev/null; then
10603       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10604     else
10605       whole_archive_flag_spec_CXX=
10606     fi
10607   else
10608     with_gnu_ld=no
10609     wlarc=
10610
10611     # A generic and very simple default shared library creation
10612     # command for GNU C++ for the case where it uses the native
10613     # linker, instead of GNU ld.  If possible, this setting should
10614     # overridden to take advantage of the native linker features on
10615     # the platform it is being used on.
10616     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10617   fi
10618
10619   # Commands to make compiler produce verbose output that lists
10620   # what "hidden" libraries, object files and flags are used when
10621   # linking a shared library.
10622   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10623
10624 else
10625   GXX=no
10626   with_gnu_ld=no
10627   wlarc=
10628 fi
10629
10630 # PORTME: fill in a description of your system's C++ link characteristics
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10632 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10633 ld_shlibs_CXX=yes
10634 case $host_os in
10635   aix3*)
10636     # FIXME: insert proper C++ library support
10637     ld_shlibs_CXX=no
10638     ;;
10639   aix[4-9]*)
10640     if test "$host_cpu" = ia64; then
10641       # On IA64, the linker does run time linking by default, so we don't
10642       # have to do anything special.
10643       aix_use_runtimelinking=no
10644       exp_sym_flag='-Bexport'
10645       no_entry_flag=""
10646     else
10647       aix_use_runtimelinking=no
10648
10649       # Test if we are trying to use run time linking or normal
10650       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10651       # need to do runtime linking.
10652       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10653         for ld_flag in $LDFLAGS; do
10654           case $ld_flag in
10655           *-brtl*)
10656             aix_use_runtimelinking=yes
10657             break
10658             ;;
10659           esac
10660         done
10661         ;;
10662       esac
10663
10664       exp_sym_flag='-bexport'
10665       no_entry_flag='-bnoentry'
10666     fi
10667
10668     # When large executables or shared objects are built, AIX ld can
10669     # have problems creating the table of contents.  If linking a library
10670     # or program results in "error TOC overflow" add -mminimal-toc to
10671     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10672     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10673
10674     archive_cmds_CXX=''
10675     hardcode_direct_CXX=yes
10676     hardcode_libdir_separator_CXX=':'
10677     link_all_deplibs_CXX=yes
10678
10679     if test "$GXX" = yes; then
10680       case $host_os in aix4.[012]|aix4.[012].*)
10681       # We only want to do this on AIX 4.2 and lower, the check
10682       # below for broken collect2 doesn't work under 4.3+
10683         collect2name=`${CC} -print-prog-name=collect2`
10684         if test -f "$collect2name" && \
10685            strings "$collect2name" | grep resolve_lib_name >/dev/null
10686         then
10687           # We have reworked collect2
10688           :
10689         else
10690           # We have old collect2
10691           hardcode_direct_CXX=unsupported
10692           # It fails to find uninstalled libraries when the uninstalled
10693           # path is not listed in the libpath.  Setting hardcode_minus_L
10694           # to unsupported forces relinking
10695           hardcode_minus_L_CXX=yes
10696           hardcode_libdir_flag_spec_CXX='-L$libdir'
10697           hardcode_libdir_separator_CXX=
10698         fi
10699         ;;
10700       esac
10701       shared_flag='-shared'
10702       if test "$aix_use_runtimelinking" = yes; then
10703         shared_flag="$shared_flag "'${wl}-G'
10704       fi
10705     else
10706       # not using gcc
10707       if test "$host_cpu" = ia64; then
10708         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10709         # chokes on -Wl,-G. The following line is correct:
10710         shared_flag='-G'
10711       else
10712         if test "$aix_use_runtimelinking" = yes; then
10713           shared_flag='${wl}-G'
10714         else
10715           shared_flag='${wl}-bM:SRE'
10716         fi
10717       fi
10718     fi
10719
10720     # It seems that -bexpall does not export symbols beginning with
10721     # underscore (_), so it is better to generate a list of symbols to export.
10722     always_export_symbols_CXX=yes
10723     if test "$aix_use_runtimelinking" = yes; then
10724       # Warning - without using the other runtime loading flags (-brtl),
10725       # -berok will link without error, but may produce a broken library.
10726       allow_undefined_flag_CXX='-berok'
10727       # Determine the default libpath from the value encoded in an empty executable.
10728       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h.  */
10730
10731 int
10732 main ()
10733 {
10734
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_cxx_try_link "$LINENO"; then :
10740
10741 lt_aix_libpath_sed='
10742     /Import File Strings/,/^$/ {
10743         /^0/ {
10744             s/^0  *\(.*\)$/\1/
10745             p
10746         }
10747     }'
10748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749 # Check for a 64-bit object if we didn't find anything.
10750 if test -z "$aix_libpath"; then
10751   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752 fi
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10757
10758       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10759
10760       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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10761      else
10762       if test "$host_cpu" = ia64; then
10763         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10764         allow_undefined_flag_CXX="-z nodefs"
10765         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"
10766       else
10767         # Determine the default libpath from the value encoded in an empty executable.
10768         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770
10771 int
10772 main ()
10773 {
10774
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 if ac_fn_cxx_try_link "$LINENO"; then :
10780
10781 lt_aix_libpath_sed='
10782     /Import File Strings/,/^$/ {
10783         /^0/ {
10784             s/^0  *\(.*\)$/\1/
10785             p
10786         }
10787     }'
10788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 # Check for a 64-bit object if we didn't find anything.
10790 if test -z "$aix_libpath"; then
10791   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 fi
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795     conftest$ac_exeext conftest.$ac_ext
10796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10797
10798         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10799         # Warning - without using the other run time loading flags,
10800         # -berok will link without error, but may produce a broken library.
10801         no_undefined_flag_CXX=' ${wl}-bernotok'
10802         allow_undefined_flag_CXX=' ${wl}-berok'
10803         # Exported symbols can be pulled into shared objects from archives
10804         whole_archive_flag_spec_CXX='$convenience'
10805         archive_cmds_need_lc_CXX=yes
10806         # This is similar to how AIX traditionally builds its shared libraries.
10807         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'
10808       fi
10809     fi
10810     ;;
10811
10812   beos*)
10813     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10814       allow_undefined_flag_CXX=unsupported
10815       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10816       # support --undefined.  This deserves some investigation.  FIXME
10817       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818     else
10819       ld_shlibs_CXX=no
10820     fi
10821     ;;
10822
10823   chorus*)
10824     case $cc_basename in
10825       *)
10826         # FIXME: insert proper C++ library support
10827         ld_shlibs_CXX=no
10828         ;;
10829     esac
10830     ;;
10831
10832   cygwin* | mingw* | pw32*)
10833     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10834     # as there is no search path for DLLs.
10835     hardcode_libdir_flag_spec_CXX='-L$libdir'
10836     allow_undefined_flag_CXX=unsupported
10837     always_export_symbols_CXX=no
10838     enable_shared_with_static_runtimes_CXX=yes
10839
10840     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10841       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'
10842       # If the export-symbols file already is a .def file (1st line
10843       # is EXPORTS), use it as is; otherwise, prepend...
10844       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10845         cp $export_symbols $output_objdir/$soname.def;
10846       else
10847         echo EXPORTS > $output_objdir/$soname.def;
10848         cat $export_symbols >> $output_objdir/$soname.def;
10849       fi~
10850       $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'
10851     else
10852       ld_shlibs_CXX=no
10853     fi
10854   ;;
10855       darwin* | rhapsody*)
10856       archive_cmds_need_lc_CXX=no
10857       hardcode_direct_CXX=no
10858       hardcode_automatic_CXX=yes
10859       hardcode_shlibpath_var_CXX=unsupported
10860       whole_archive_flag_spec_CXX=''
10861       link_all_deplibs_CXX=yes
10862       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10863       if test "$GXX" = yes ; then
10864       output_verbose_link_cmd='echo'
10865       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}"
10866       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10867       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}"
10868       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}"
10869       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10870         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}"
10871         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}"
10872       fi
10873       else
10874       case $cc_basename in
10875         xlc*)
10876          output_verbose_link_cmd='echo'
10877           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10878           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10879           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10880           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10881           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10882           ;;
10883        *)
10884          ld_shlibs_CXX=no
10885           ;;
10886       esac
10887       fi
10888         ;;
10889
10890   dgux*)
10891     case $cc_basename in
10892       ec++*)
10893         # FIXME: insert proper C++ library support
10894         ld_shlibs_CXX=no
10895         ;;
10896       ghcx*)
10897         # Green Hills C++ Compiler
10898         # FIXME: insert proper C++ library support
10899         ld_shlibs_CXX=no
10900         ;;
10901       *)
10902         # FIXME: insert proper C++ library support
10903         ld_shlibs_CXX=no
10904         ;;
10905     esac
10906     ;;
10907   freebsd[12]*)
10908     # C++ shared libraries reported to be fairly broken before switch to ELF
10909     ld_shlibs_CXX=no
10910     ;;
10911   freebsd-elf*)
10912     archive_cmds_need_lc_CXX=no
10913     ;;
10914   freebsd* | dragonfly*)
10915     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10916     # conventions
10917     ld_shlibs_CXX=yes
10918     ;;
10919   gnu*)
10920     ;;
10921   hpux9*)
10922     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10923     hardcode_libdir_separator_CXX=:
10924     export_dynamic_flag_spec_CXX='${wl}-E'
10925     hardcode_direct_CXX=yes
10926     hardcode_minus_L_CXX=yes # Not in the search PATH,
10927                                 # but as the default
10928                                 # location of the library.
10929
10930     case $cc_basename in
10931     CC*)
10932       # FIXME: insert proper C++ library support
10933       ld_shlibs_CXX=no
10934       ;;
10935     aCC*)
10936       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'
10937       # Commands to make compiler produce verbose output that lists
10938       # what "hidden" libraries, object files and flags are used when
10939       # linking a shared library.
10940       #
10941       # There doesn't appear to be a way to prevent this compiler from
10942       # explicitly linking system object files so we need to strip them
10943       # from the output so that they don't get included in the library
10944       # dependencies.
10945       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 $list'
10946       ;;
10947     *)
10948       if test "$GXX" = yes; then
10949         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'
10950       else
10951         # FIXME: insert proper C++ library support
10952         ld_shlibs_CXX=no
10953       fi
10954       ;;
10955     esac
10956     ;;
10957   hpux10*|hpux11*)
10958     if test $with_gnu_ld = no; then
10959       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10960       hardcode_libdir_separator_CXX=:
10961
10962       case $host_cpu in
10963       hppa*64*|ia64*) ;;
10964       *)
10965         export_dynamic_flag_spec_CXX='${wl}-E'
10966         ;;
10967       esac
10968     fi
10969     case $host_cpu in
10970     hppa*64*|ia64*)
10971       hardcode_direct_CXX=no
10972       hardcode_shlibpath_var_CXX=no
10973       ;;
10974     *)
10975       hardcode_direct_CXX=yes
10976       hardcode_minus_L_CXX=yes # Not in the search PATH,
10977                                               # but as the default
10978                                               # location of the library.
10979       ;;
10980     esac
10981
10982     case $cc_basename in
10983       CC*)
10984         # FIXME: insert proper C++ library support
10985         ld_shlibs_CXX=no
10986         ;;
10987       aCC*)
10988         case $host_cpu in
10989         hppa*64*)
10990           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10991           ;;
10992         ia64*)
10993           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10994           ;;
10995         *)
10996           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10997           ;;
10998         esac
10999         # Commands to make compiler produce verbose output that lists
11000         # what "hidden" libraries, object files and flags are used when
11001         # linking a shared library.
11002         #
11003         # There doesn't appear to be a way to prevent this compiler from
11004         # explicitly linking system object files so we need to strip them
11005         # from the output so that they don't get included in the library
11006         # dependencies.
11007         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 $list'
11008         ;;
11009       *)
11010         if test "$GXX" = yes; then
11011           if test $with_gnu_ld = no; then
11012             case $host_cpu in
11013             hppa*64*)
11014               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11015               ;;
11016             ia64*)
11017               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11018               ;;
11019             *)
11020               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'
11021               ;;
11022             esac
11023           fi
11024         else
11025           # FIXME: insert proper C++ library support
11026           ld_shlibs_CXX=no
11027         fi
11028         ;;
11029     esac
11030     ;;
11031   interix[3-9]*)
11032     hardcode_direct_CXX=no
11033     hardcode_shlibpath_var_CXX=no
11034     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11035     export_dynamic_flag_spec_CXX='${wl}-E'
11036     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11037     # Instead, shared libraries are loaded at an image base (0x10000000 by
11038     # default) and relocated if they conflict, which is a slow very memory
11039     # consuming and fragmenting process.  To avoid this, we pick a random,
11040     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11041     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11042     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'
11043     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'
11044     ;;
11045   irix5* | irix6*)
11046     case $cc_basename in
11047       CC*)
11048         # SGI C++
11049         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11050
11051         # Archives containing C++ object files must be created using
11052         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11053         # necessary to make sure instantiated templates are included
11054         # in the archive.
11055         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11056         ;;
11057       *)
11058         if test "$GXX" = yes; then
11059           if test "$with_gnu_ld" = no; then
11060             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11061           else
11062             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11063           fi
11064         fi
11065         link_all_deplibs_CXX=yes
11066         ;;
11067     esac
11068     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11069     hardcode_libdir_separator_CXX=:
11070     ;;
11071   linux* | k*bsd*-gnu)
11072     case $cc_basename in
11073       KCC*)
11074         # Kuck and Associates, Inc. (KAI) C++ Compiler
11075
11076         # KCC will only create a shared library if the output file
11077         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11078         # to its proper name (with version) after linking.
11079         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'
11080         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'
11081         # Commands to make compiler produce verbose output that lists
11082         # what "hidden" libraries, object files and flags are used when
11083         # linking a shared library.
11084         #
11085         # There doesn't appear to be a way to prevent this compiler from
11086         # explicitly linking system object files so we need to strip them
11087         # from the output so that they don't get included in the library
11088         # dependencies.
11089         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 $list'
11090
11091         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11092         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11093
11094         # Archives containing C++ object files must be created using
11095         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11096         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11097         ;;
11098       icpc*)
11099         # Intel C++
11100         with_gnu_ld=yes
11101         # version 8.0 and above of icpc choke on multiply defined symbols
11102         # if we add $predep_objects and $postdep_objects, however 7.1 and
11103         # earlier do not add the objects themselves.
11104         case `$CC -V 2>&1` in
11105         *"Version 7."*)
11106           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107           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'
11108           ;;
11109         *)  # Version 8.0 or newer
11110           tmp_idyn=
11111           case $host_cpu in
11112             ia64*) tmp_idyn=' -i_dynamic';;
11113           esac
11114           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115           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'
11116           ;;
11117         esac
11118         archive_cmds_need_lc_CXX=no
11119         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11121         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11122         ;;
11123       pgCC* | pgcpp*)
11124         # Portland Group C++ compiler
11125         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11126         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'
11127
11128         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11129         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11130         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'
11131         ;;
11132       cxx*)
11133         # Compaq C++
11134         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135         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'
11136
11137         runpath_var=LD_RUN_PATH
11138         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11139         hardcode_libdir_separator_CXX=:
11140
11141         # Commands to make compiler produce verbose output that lists
11142         # what "hidden" libraries, object files and flags are used when
11143         # linking a shared library.
11144         #
11145         # There doesn't appear to be a way to prevent this compiler from
11146         # explicitly linking system object files so we need to strip them
11147         # from the output so that they don't get included in the library
11148         # dependencies.
11149         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11150         ;;
11151       *)
11152         case `$CC -V 2>&1 | sed 5q` in
11153         *Sun\ C*)
11154           # Sun C++ 5.9
11155           no_undefined_flag_CXX=' -zdefs'
11156           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11157           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'
11158           hardcode_libdir_flag_spec_CXX='-R$libdir'
11159           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'
11160
11161           # Not sure whether something based on
11162           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11163           # would be better.
11164           output_verbose_link_cmd='echo'
11165
11166           # Archives containing C++ object files must be created using
11167           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11168           # necessary to make sure instantiated templates are included
11169           # in the archive.
11170           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11171           ;;
11172         esac
11173         ;;
11174     esac
11175     ;;
11176   lynxos*)
11177     # FIXME: insert proper C++ library support
11178     ld_shlibs_CXX=no
11179     ;;
11180   m88k*)
11181     # FIXME: insert proper C++ library support
11182     ld_shlibs_CXX=no
11183     ;;
11184   mvs*)
11185     case $cc_basename in
11186       cxx*)
11187         # FIXME: insert proper C++ library support
11188         ld_shlibs_CXX=no
11189         ;;
11190       *)
11191         # FIXME: insert proper C++ library support
11192         ld_shlibs_CXX=no
11193         ;;
11194     esac
11195     ;;
11196   netbsd*)
11197     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11198       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11199       wlarc=
11200       hardcode_libdir_flag_spec_CXX='-R$libdir'
11201       hardcode_direct_CXX=yes
11202       hardcode_shlibpath_var_CXX=no
11203     fi
11204     # Workaround some broken pre-1.5 toolchains
11205     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11206     ;;
11207   openbsd2*)
11208     # C++ shared libraries are fairly broken
11209     ld_shlibs_CXX=no
11210     ;;
11211   openbsd*)
11212     if test -f /usr/libexec/ld.so; then
11213       hardcode_direct_CXX=yes
11214       hardcode_shlibpath_var_CXX=no
11215       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11216       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11217       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11218         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11219         export_dynamic_flag_spec_CXX='${wl}-E'
11220         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11221       fi
11222       output_verbose_link_cmd='echo'
11223     else
11224       ld_shlibs_CXX=no
11225     fi
11226     ;;
11227   osf3*)
11228     case $cc_basename in
11229       KCC*)
11230         # Kuck and Associates, Inc. (KAI) C++ Compiler
11231
11232         # KCC will only create a shared library if the output file
11233         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11234         # to its proper name (with version) after linking.
11235         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'
11236
11237         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11238         hardcode_libdir_separator_CXX=:
11239
11240         # Archives containing C++ object files must be created using
11241         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11242         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11243
11244         ;;
11245       RCC*)
11246         # Rational C++ 2.4.1
11247         # FIXME: insert proper C++ library support
11248         ld_shlibs_CXX=no
11249         ;;
11250       cxx*)
11251         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11252         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11253
11254         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11255         hardcode_libdir_separator_CXX=:
11256
11257         # Commands to make compiler produce verbose output that lists
11258         # what "hidden" libraries, object files and flags are used when
11259         # linking a shared library.
11260         #
11261         # There doesn't appear to be a way to prevent this compiler from
11262         # explicitly linking system object files so we need to strip them
11263         # from the output so that they don't get included in the library
11264         # dependencies.
11265         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11266         ;;
11267       *)
11268         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11269           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11270           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11271
11272           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11273           hardcode_libdir_separator_CXX=:
11274
11275           # Commands to make compiler produce verbose output that lists
11276           # what "hidden" libraries, object files and flags are used when
11277           # linking a shared library.
11278           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11279
11280         else
11281           # FIXME: insert proper C++ library support
11282           ld_shlibs_CXX=no
11283         fi
11284         ;;
11285     esac
11286     ;;
11287   osf4* | osf5*)
11288     case $cc_basename in
11289       KCC*)
11290         # Kuck and Associates, Inc. (KAI) C++ Compiler
11291
11292         # KCC will only create a shared library if the output file
11293         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11294         # to its proper name (with version) after linking.
11295         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'
11296
11297         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11298         hardcode_libdir_separator_CXX=:
11299
11300         # Archives containing C++ object files must be created using
11301         # the KAI C++ compiler.
11302         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11303         ;;
11304       RCC*)
11305         # Rational C++ 2.4.1
11306         # FIXME: insert proper C++ library support
11307         ld_shlibs_CXX=no
11308         ;;
11309       cxx*)
11310         allow_undefined_flag_CXX=' -expect_unresolved \*'
11311         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11312         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11313           echo "-hidden">> $lib.exp~
11314           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11315           $rm $lib.exp'
11316
11317         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11318         hardcode_libdir_separator_CXX=:
11319
11320         # Commands to make compiler produce verbose output that lists
11321         # what "hidden" libraries, object files and flags are used when
11322         # linking a shared library.
11323         #
11324         # There doesn't appear to be a way to prevent this compiler from
11325         # explicitly linking system object files so we need to strip them
11326         # from the output so that they don't get included in the library
11327         # dependencies.
11328         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11329         ;;
11330       *)
11331         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11332           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11333          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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11334
11335           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11336           hardcode_libdir_separator_CXX=:
11337
11338           # Commands to make compiler produce verbose output that lists
11339           # what "hidden" libraries, object files and flags are used when
11340           # linking a shared library.
11341           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11342
11343         else
11344           # FIXME: insert proper C++ library support
11345           ld_shlibs_CXX=no
11346         fi
11347         ;;
11348     esac
11349     ;;
11350   psos*)
11351     # FIXME: insert proper C++ library support
11352     ld_shlibs_CXX=no
11353     ;;
11354   sunos4*)
11355     case $cc_basename in
11356       CC*)
11357         # Sun C++ 4.x
11358         # FIXME: insert proper C++ library support
11359         ld_shlibs_CXX=no
11360         ;;
11361       lcc*)
11362         # Lucid
11363         # FIXME: insert proper C++ library support
11364         ld_shlibs_CXX=no
11365         ;;
11366       *)
11367         # FIXME: insert proper C++ library support
11368         ld_shlibs_CXX=no
11369         ;;
11370     esac
11371     ;;
11372   solaris*)
11373     case $cc_basename in
11374       CC*)
11375         # Sun C++ 4.2, 5.x and Centerline C++
11376         archive_cmds_need_lc_CXX=yes
11377         no_undefined_flag_CXX=' -zdefs'
11378         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11379         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11380         $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'
11381
11382         hardcode_libdir_flag_spec_CXX='-R$libdir'
11383         hardcode_shlibpath_var_CXX=no
11384         case $host_os in
11385           solaris2.[0-5] | solaris2.[0-5].*) ;;
11386           *)
11387             # The compiler driver will combine and reorder linker options,
11388             # but understands `-z linker_flag'.
11389             # Supported since Solaris 2.6 (maybe 2.5.1?)
11390             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11391             ;;
11392         esac
11393         link_all_deplibs_CXX=yes
11394
11395         output_verbose_link_cmd='echo'
11396
11397         # Archives containing C++ object files must be created using
11398         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11399         # necessary to make sure instantiated templates are included
11400         # in the archive.
11401         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11402         ;;
11403       gcx*)
11404         # Green Hills C++ Compiler
11405         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11406
11407         # The C++ compiler must be used to create the archive.
11408         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11409         ;;
11410       *)
11411         # GNU C++ compiler with Solaris linker
11412         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11413           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11414           if $CC --version | grep -v '^2\.7' > /dev/null; then
11415             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11416             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11417                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11418
11419             # Commands to make compiler produce verbose output that lists
11420             # what "hidden" libraries, object files and flags are used when
11421             # linking a shared library.
11422             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11423           else
11424             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11425             # platform.
11426             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11427             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11428                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11429
11430             # Commands to make compiler produce verbose output that lists
11431             # what "hidden" libraries, object files and flags are used when
11432             # linking a shared library.
11433             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11434           fi
11435
11436           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11437           case $host_os in
11438           solaris2.[0-5] | solaris2.[0-5].*) ;;
11439           *)
11440             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11441             ;;
11442           esac
11443         fi
11444         ;;
11445     esac
11446     ;;
11447   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11448     no_undefined_flag_CXX='${wl}-z,text'
11449     archive_cmds_need_lc_CXX=no
11450     hardcode_shlibpath_var_CXX=no
11451     runpath_var='LD_RUN_PATH'
11452
11453     case $cc_basename in
11454       CC*)
11455         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11457         ;;
11458       *)
11459         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11460         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11461         ;;
11462     esac
11463     ;;
11464   sysv5* | sco3.2v5* | sco5v6*)
11465     # Note: We can NOT use -z defs as we might desire, because we do not
11466     # link with -lc, and that would cause any symbols used from libc to
11467     # always be unresolved, which means just about no library would
11468     # ever link correctly.  If we're not using GNU ld we use -z text
11469     # though, which does catch some bad symbols but isn't as heavy-handed
11470     # as -z defs.
11471     # For security reasons, it is highly recommended that you always
11472     # use absolute paths for naming shared libraries, and exclude the
11473     # DT_RUNPATH tag from executables and libraries.  But doing so
11474     # requires that you compile everything twice, which is a pain.
11475     # So that behaviour is only enabled if SCOABSPATH is set to a
11476     # non-empty value in the environment.  Most likely only useful for
11477     # creating official distributions of packages.
11478     # This is a hack until libtool officially supports absolute path
11479     # names for shared libraries.
11480     no_undefined_flag_CXX='${wl}-z,text'
11481     allow_undefined_flag_CXX='${wl}-z,nodefs'
11482     archive_cmds_need_lc_CXX=no
11483     hardcode_shlibpath_var_CXX=no
11484     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11485     hardcode_libdir_separator_CXX=':'
11486     link_all_deplibs_CXX=yes
11487     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11488     runpath_var='LD_RUN_PATH'
11489
11490     case $cc_basename in
11491       CC*)
11492         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11493         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11494         ;;
11495       *)
11496         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11497         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11498         ;;
11499     esac
11500     ;;
11501   tandem*)
11502     case $cc_basename in
11503       NCC*)
11504         # NonStop-UX NCC 3.20
11505         # FIXME: insert proper C++ library support
11506         ld_shlibs_CXX=no
11507         ;;
11508       *)
11509         # FIXME: insert proper C++ library support
11510         ld_shlibs_CXX=no
11511         ;;
11512     esac
11513     ;;
11514   vxworks*)
11515     # FIXME: insert proper C++ library support
11516     ld_shlibs_CXX=no
11517     ;;
11518   *)
11519     # FIXME: insert proper C++ library support
11520     ld_shlibs_CXX=no
11521     ;;
11522 esac
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11524 $as_echo "$ld_shlibs_CXX" >&6; }
11525 test "$ld_shlibs_CXX" = no && can_build_shared=no
11526
11527 GCC_CXX="$GXX"
11528 LD_CXX="$LD"
11529
11530 cat > conftest.$ac_ext <<EOF
11531 class Foo
11532 {
11533 public:
11534   Foo (void) { a = 0; }
11535 private:
11536   int a;
11537 };
11538 EOF
11539
11540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11541   (eval $ac_compile) 2>&5
11542   ac_status=$?
11543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11544   test $ac_status = 0; }; then
11545   # Parse the compiler output and extract the necessary
11546   # objects, libraries and library flags.
11547
11548   # Sentinel used to keep track of whether or not we are before
11549   # the conftest object file.
11550   pre_test_object_deps_done=no
11551
11552   # The `*' in the case matches for architectures that use `case' in
11553   # $output_verbose_cmd can trigger glob expansion during the loop
11554   # eval without this substitution.
11555   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11556
11557   for p in `eval $output_verbose_link_cmd`; do
11558     case $p in
11559
11560     -L* | -R* | -l*)
11561        # Some compilers place space between "-{L,R}" and the path.
11562        # Remove the space.
11563        if test $p = "-L" \
11564           || test $p = "-R"; then
11565          prev=$p
11566          continue
11567        else
11568          prev=
11569        fi
11570
11571        if test "$pre_test_object_deps_done" = no; then
11572          case $p in
11573          -L* | -R*)
11574            # Internal compiler library paths should come after those
11575            # provided the user.  The postdeps already come after the
11576            # user supplied libs so there is no need to process them.
11577            if test -z "$compiler_lib_search_path_CXX"; then
11578              compiler_lib_search_path_CXX="${prev}${p}"
11579            else
11580              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11581            fi
11582            ;;
11583          # The "-l" case would never come before the object being
11584          # linked, so don't bother handling this case.
11585          esac
11586        else
11587          if test -z "$postdeps_CXX"; then
11588            postdeps_CXX="${prev}${p}"
11589          else
11590            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11591          fi
11592        fi
11593        ;;
11594
11595     *.$objext)
11596        # This assumes that the test object file only shows up
11597        # once in the compiler output.
11598        if test "$p" = "conftest.$objext"; then
11599          pre_test_object_deps_done=yes
11600          continue
11601        fi
11602
11603        if test "$pre_test_object_deps_done" = no; then
11604          if test -z "$predep_objects_CXX"; then
11605            predep_objects_CXX="$p"
11606          else
11607            predep_objects_CXX="$predep_objects_CXX $p"
11608          fi
11609        else
11610          if test -z "$postdep_objects_CXX"; then
11611            postdep_objects_CXX="$p"
11612          else
11613            postdep_objects_CXX="$postdep_objects_CXX $p"
11614          fi
11615        fi
11616        ;;
11617
11618     *) ;; # Ignore the rest.
11619
11620     esac
11621   done
11622
11623   # Clean up.
11624   rm -f a.out a.exe
11625 else
11626   echo "libtool.m4: error: problem compiling CXX test program"
11627 fi
11628
11629 $rm -f confest.$objext
11630
11631 compiler_lib_search_dirs_CXX=
11632 if test -n "$compiler_lib_search_path_CXX"; then
11633   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11634 fi
11635
11636 # PORTME: override above test on systems where it is broken
11637 case $host_os in
11638 interix[3-9]*)
11639   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11640   # hack all around it, let's just trust "g++" to DTRT.
11641   predep_objects_CXX=
11642   postdep_objects_CXX=
11643   postdeps_CXX=
11644   ;;
11645
11646 linux*)
11647   case `$CC -V 2>&1 | sed 5q` in
11648   *Sun\ C*)
11649     # Sun C++ 5.9
11650     #
11651     # The more standards-conforming stlport4 library is
11652     # incompatible with the Cstd library. Avoid specifying
11653     # it if it's in CXXFLAGS. Ignore libCrun as
11654     # -library=stlport4 depends on it.
11655     case " $CXX $CXXFLAGS " in
11656     *" -library=stlport4 "*)
11657       solaris_use_stlport4=yes
11658       ;;
11659     esac
11660     if test "$solaris_use_stlport4" != yes; then
11661       postdeps_CXX='-library=Cstd -library=Crun'
11662     fi
11663     ;;
11664   esac
11665   ;;
11666
11667 solaris*)
11668   case $cc_basename in
11669   CC*)
11670     # The more standards-conforming stlport4 library is
11671     # incompatible with the Cstd library. Avoid specifying
11672     # it if it's in CXXFLAGS. Ignore libCrun as
11673     # -library=stlport4 depends on it.
11674     case " $CXX $CXXFLAGS " in
11675     *" -library=stlport4 "*)
11676       solaris_use_stlport4=yes
11677       ;;
11678     esac
11679
11680     # Adding this requires a known-good setup of shared libraries for
11681     # Sun compiler versions before 5.6, else PIC objects from an old
11682     # archive will be linked into the output, leading to subtle bugs.
11683     if test "$solaris_use_stlport4" != yes; then
11684       postdeps_CXX='-library=Cstd -library=Crun'
11685     fi
11686     ;;
11687   esac
11688   ;;
11689 esac
11690
11691 case " $postdeps_CXX " in
11692 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11693 esac
11694
11695 lt_prog_compiler_wl_CXX=
11696 lt_prog_compiler_pic_CXX=
11697 lt_prog_compiler_static_CXX=
11698
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11700 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11701
11702   # C++ specific cases for pic, static, wl, etc.
11703   if test "$GXX" = yes; then
11704     lt_prog_compiler_wl_CXX='-Wl,'
11705     lt_prog_compiler_static_CXX='-static'
11706
11707     case $host_os in
11708     aix*)
11709       # All AIX code is PIC.
11710       if test "$host_cpu" = ia64; then
11711         # AIX 5 now supports IA64 processor
11712         lt_prog_compiler_static_CXX='-Bstatic'
11713       fi
11714       ;;
11715     amigaos*)
11716       # FIXME: we need at least 68020 code to build shared libraries, but
11717       # adding the `-m68020' flag to GCC prevents building anything better,
11718       # like `-m68040'.
11719       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11720       ;;
11721     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11722       # PIC is the default for these OSes.
11723       ;;
11724     mingw* | cygwin* | os2* | pw32*)
11725       # This hack is so that the source file can tell whether it is being
11726       # built for inclusion in a dll (and should export symbols for example).
11727       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11728       # (--disable-auto-import) libraries
11729       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11730       ;;
11731     darwin* | rhapsody*)
11732       # PIC is the default on this platform
11733       # Common symbols not allowed in MH_DYLIB files
11734       lt_prog_compiler_pic_CXX='-fno-common'
11735       ;;
11736     *djgpp*)
11737       # DJGPP does not support shared libraries at all
11738       lt_prog_compiler_pic_CXX=
11739       ;;
11740     interix[3-9]*)
11741       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11742       # Instead, we relocate shared libraries at runtime.
11743       ;;
11744     sysv4*MP*)
11745       if test -d /usr/nec; then
11746         lt_prog_compiler_pic_CXX=-Kconform_pic
11747       fi
11748       ;;
11749     hpux*)
11750       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11751       # not for PA HP-UX.
11752       case $host_cpu in
11753       hppa*64*|ia64*)
11754         ;;
11755       *)
11756         lt_prog_compiler_pic_CXX='-fPIC'
11757         ;;
11758       esac
11759       ;;
11760     *)
11761       lt_prog_compiler_pic_CXX='-fPIC'
11762       ;;
11763     esac
11764   else
11765     case $host_os in
11766       aix[4-9]*)
11767         # All AIX code is PIC.
11768         if test "$host_cpu" = ia64; then
11769           # AIX 5 now supports IA64 processor
11770           lt_prog_compiler_static_CXX='-Bstatic'
11771         else
11772           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11773         fi
11774         ;;
11775       chorus*)
11776         case $cc_basename in
11777         cxch68*)
11778           # Green Hills C++ Compiler
11779           # _LT_AC_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"
11780           ;;
11781         esac
11782         ;;
11783        darwin*)
11784          # PIC is the default on this platform
11785          # Common symbols not allowed in MH_DYLIB files
11786          case $cc_basename in
11787            xlc*)
11788            lt_prog_compiler_pic_CXX='-qnocommon'
11789            lt_prog_compiler_wl_CXX='-Wl,'
11790            ;;
11791          esac
11792        ;;
11793       dgux*)
11794         case $cc_basename in
11795           ec++*)
11796             lt_prog_compiler_pic_CXX='-KPIC'
11797             ;;
11798           ghcx*)
11799             # Green Hills C++ Compiler
11800             lt_prog_compiler_pic_CXX='-pic'
11801             ;;
11802           *)
11803             ;;
11804         esac
11805         ;;
11806       freebsd* | dragonfly*)
11807         # FreeBSD uses GNU C++
11808         ;;
11809       hpux9* | hpux10* | hpux11*)
11810         case $cc_basename in
11811           CC*)
11812             lt_prog_compiler_wl_CXX='-Wl,'
11813             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11814             if test "$host_cpu" != ia64; then
11815               lt_prog_compiler_pic_CXX='+Z'
11816             fi
11817             ;;
11818           aCC*)
11819             lt_prog_compiler_wl_CXX='-Wl,'
11820             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11821             case $host_cpu in
11822             hppa*64*|ia64*)
11823               # +Z the default
11824               ;;
11825             *)
11826               lt_prog_compiler_pic_CXX='+Z'
11827               ;;
11828             esac
11829             ;;
11830           *)
11831             ;;
11832         esac
11833         ;;
11834       interix*)
11835         # This is c89, which is MS Visual C++ (no shared libs)
11836         # Anyone wants to do a port?
11837         ;;
11838       irix5* | irix6* | nonstopux*)
11839         case $cc_basename in
11840           CC*)
11841             lt_prog_compiler_wl_CXX='-Wl,'
11842             lt_prog_compiler_static_CXX='-non_shared'
11843             # CC pic flag -KPIC is the default.
11844             ;;
11845           *)
11846             ;;
11847         esac
11848         ;;
11849       linux* | k*bsd*-gnu)
11850         case $cc_basename in
11851           KCC*)
11852             # KAI C++ Compiler
11853             lt_prog_compiler_wl_CXX='--backend -Wl,'
11854             lt_prog_compiler_pic_CXX='-fPIC'
11855             ;;
11856           icpc* | ecpc*)
11857             # Intel C++
11858             lt_prog_compiler_wl_CXX='-Wl,'
11859             lt_prog_compiler_pic_CXX='-KPIC'
11860             lt_prog_compiler_static_CXX='-static'
11861             ;;
11862           pgCC* | pgcpp*)
11863             # Portland Group C++ compiler.
11864             lt_prog_compiler_wl_CXX='-Wl,'
11865             lt_prog_compiler_pic_CXX='-fpic'
11866             lt_prog_compiler_static_CXX='-Bstatic'
11867             ;;
11868           cxx*)
11869             # Compaq C++
11870             # Make sure the PIC flag is empty.  It appears that all Alpha
11871             # Linux and Compaq Tru64 Unix objects are PIC.
11872             lt_prog_compiler_pic_CXX=
11873             lt_prog_compiler_static_CXX='-non_shared'
11874             ;;
11875           *)
11876             case `$CC -V 2>&1 | sed 5q` in
11877             *Sun\ C*)
11878               # Sun C++ 5.9
11879               lt_prog_compiler_pic_CXX='-KPIC'
11880               lt_prog_compiler_static_CXX='-Bstatic'
11881               lt_prog_compiler_wl_CXX='-Qoption ld '
11882               ;;
11883             esac
11884             ;;
11885         esac
11886         ;;
11887       lynxos*)
11888         ;;
11889       m88k*)
11890         ;;
11891       mvs*)
11892         case $cc_basename in
11893           cxx*)
11894             lt_prog_compiler_pic_CXX='-W c,exportall'
11895             ;;
11896           *)
11897             ;;
11898         esac
11899         ;;
11900       netbsd*)
11901         ;;
11902       osf3* | osf4* | osf5*)
11903         case $cc_basename in
11904           KCC*)
11905             lt_prog_compiler_wl_CXX='--backend -Wl,'
11906             ;;
11907           RCC*)
11908             # Rational C++ 2.4.1
11909             lt_prog_compiler_pic_CXX='-pic'
11910             ;;
11911           cxx*)
11912             # Digital/Compaq C++
11913             lt_prog_compiler_wl_CXX='-Wl,'
11914             # Make sure the PIC flag is empty.  It appears that all Alpha
11915             # Linux and Compaq Tru64 Unix objects are PIC.
11916             lt_prog_compiler_pic_CXX=
11917             lt_prog_compiler_static_CXX='-non_shared'
11918             ;;
11919           *)
11920             ;;
11921         esac
11922         ;;
11923       psos*)
11924         ;;
11925       solaris*)
11926         case $cc_basename in
11927           CC*)
11928             # Sun C++ 4.2, 5.x and Centerline C++
11929             lt_prog_compiler_pic_CXX='-KPIC'
11930             lt_prog_compiler_static_CXX='-Bstatic'
11931             lt_prog_compiler_wl_CXX='-Qoption ld '
11932             ;;
11933           gcx*)
11934             # Green Hills C++ Compiler
11935             lt_prog_compiler_pic_CXX='-PIC'
11936             ;;
11937           *)
11938             ;;
11939         esac
11940         ;;
11941       sunos4*)
11942         case $cc_basename in
11943           CC*)
11944             # Sun C++ 4.x
11945             lt_prog_compiler_pic_CXX='-pic'
11946             lt_prog_compiler_static_CXX='-Bstatic'
11947             ;;
11948           lcc*)
11949             # Lucid
11950             lt_prog_compiler_pic_CXX='-pic'
11951             ;;
11952           *)
11953             ;;
11954         esac
11955         ;;
11956       tandem*)
11957         case $cc_basename in
11958           NCC*)
11959             # NonStop-UX NCC 3.20
11960             lt_prog_compiler_pic_CXX='-KPIC'
11961             ;;
11962           *)
11963             ;;
11964         esac
11965         ;;
11966       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11967         case $cc_basename in
11968           CC*)
11969             lt_prog_compiler_wl_CXX='-Wl,'
11970             lt_prog_compiler_pic_CXX='-KPIC'
11971             lt_prog_compiler_static_CXX='-Bstatic'
11972             ;;
11973         esac
11974         ;;
11975       vxworks*)
11976         ;;
11977       *)
11978         lt_prog_compiler_can_build_shared_CXX=no
11979         ;;
11980     esac
11981   fi
11982
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11984 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11985
11986 #
11987 # Check to make sure the PIC flag actually works.
11988 #
11989 if test -n "$lt_prog_compiler_pic_CXX"; then
11990
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11992 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11993 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   lt_cv_prog_compiler_pic_works_CXX=no
11997   ac_outfile=conftest.$ac_objext
11998    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11999    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12000    # Insert the option either (1) after the last *FLAGS variable, or
12001    # (2) before a word containing "conftest.", or (3) at the end.
12002    # Note that $ac_compile itself does not contain backslashes and begins
12003    # with a dollar sign (not a hyphen), so the echo should work correctly.
12004    # The option is referenced via a variable to avoid confusing sed.
12005    lt_compile=`echo "$ac_compile" | $SED \
12006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008    -e 's:$: $lt_compiler_flag:'`
12009    (eval echo "\"\$as_me:12009: $lt_compile\"" >&5)
12010    (eval "$lt_compile" 2>conftest.err)
12011    ac_status=$?
12012    cat conftest.err >&5
12013    echo "$as_me:12013: \$? = $ac_status" >&5
12014    if (exit $ac_status) && test -s "$ac_outfile"; then
12015      # The compiler can only warn and ignore the option if not recognized
12016      # So say no if there are warnings other than the usual output.
12017      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12018      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12019      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12020        lt_cv_prog_compiler_pic_works_CXX=yes
12021      fi
12022    fi
12023    $rm conftest*
12024
12025 fi
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12027 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12028
12029 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12030     case $lt_prog_compiler_pic_CXX in
12031      "" | " "*) ;;
12032      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12033      esac
12034 else
12035     lt_prog_compiler_pic_CXX=
12036      lt_prog_compiler_can_build_shared_CXX=no
12037 fi
12038
12039 fi
12040 case $host_os in
12041   # For platforms which do not support PIC, -DPIC is meaningless:
12042   *djgpp*)
12043     lt_prog_compiler_pic_CXX=
12044     ;;
12045   *)
12046     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12047     ;;
12048 esac
12049
12050 #
12051 # Check to make sure the static flag actually works.
12052 #
12053 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12056 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12057   $as_echo_n "(cached) " >&6
12058 else
12059   lt_cv_prog_compiler_static_works_CXX=no
12060    save_LDFLAGS="$LDFLAGS"
12061    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12062    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12063    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12064      # The linker can only warn and ignore the option if not recognized
12065      # So say no if there are warnings
12066      if test -s conftest.err; then
12067        # Append any errors to the config.log.
12068        cat conftest.err 1>&5
12069        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12070        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12071        if diff conftest.exp conftest.er2 >/dev/null; then
12072          lt_cv_prog_compiler_static_works_CXX=yes
12073        fi
12074      else
12075        lt_cv_prog_compiler_static_works_CXX=yes
12076      fi
12077    fi
12078    $rm -r conftest*
12079    LDFLAGS="$save_LDFLAGS"
12080
12081 fi
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12083 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12084
12085 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12086     :
12087 else
12088     lt_prog_compiler_static_CXX=
12089 fi
12090
12091
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12094 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12095   $as_echo_n "(cached) " >&6
12096 else
12097   lt_cv_prog_compiler_c_o_CXX=no
12098    $rm -r conftest 2>/dev/null
12099    mkdir conftest
12100    cd conftest
12101    mkdir out
12102    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12103
12104    lt_compiler_flag="-o out/conftest2.$ac_objext"
12105    # Insert the option either (1) after the last *FLAGS variable, or
12106    # (2) before a word containing "conftest.", or (3) at the end.
12107    # Note that $ac_compile itself does not contain backslashes and begins
12108    # with a dollar sign (not a hyphen), so the echo should work correctly.
12109    lt_compile=`echo "$ac_compile" | $SED \
12110    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12112    -e 's:$: $lt_compiler_flag:'`
12113    (eval echo "\"\$as_me:12113: $lt_compile\"" >&5)
12114    (eval "$lt_compile" 2>out/conftest.err)
12115    ac_status=$?
12116    cat out/conftest.err >&5
12117    echo "$as_me:12117: \$? = $ac_status" >&5
12118    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12119    then
12120      # The compiler can only warn and ignore the option if not recognized
12121      # So say no if there are warnings
12122      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12123      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12124      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12125        lt_cv_prog_compiler_c_o_CXX=yes
12126      fi
12127    fi
12128    chmod u+w . 2>&5
12129    $rm conftest*
12130    # SGI C++ compiler will create directory out/ii_files/ for
12131    # template instantiation
12132    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12133    $rm out/* && rmdir out
12134    cd ..
12135    rmdir conftest
12136    $rm conftest*
12137
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12140 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12141
12142
12143 hard_links="nottested"
12144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12145   # do not overwrite the value of need_locks provided by the user
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12147 $as_echo_n "checking if we can lock with hard links... " >&6; }
12148   hard_links=yes
12149   $rm conftest*
12150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12151   touch conftest.a
12152   ln conftest.a conftest.b 2>&5 || hard_links=no
12153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12155 $as_echo "$hard_links" >&6; }
12156   if test "$hard_links" = no; then
12157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12158 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12159     need_locks=warn
12160   fi
12161 else
12162   need_locks=no
12163 fi
12164
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12167
12168   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12169   case $host_os in
12170   aix[4-9]*)
12171     # If we're using GNU nm, then we don't want the "-C" option.
12172     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12173     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12174       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'
12175     else
12176       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'
12177     fi
12178     ;;
12179   pw32*)
12180     export_symbols_cmds_CXX="$ltdll_cmds"
12181   ;;
12182   cygwin* | mingw*)
12183     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'
12184   ;;
12185   *)
12186     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12187   ;;
12188   esac
12189   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12190
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12192 $as_echo "$ld_shlibs_CXX" >&6; }
12193 test "$ld_shlibs_CXX" = no && can_build_shared=no
12194
12195 #
12196 # Do we need to explicitly link libc?
12197 #
12198 case "x$archive_cmds_need_lc_CXX" in
12199 x|xyes)
12200   # Assume -lc should be added
12201   archive_cmds_need_lc_CXX=yes
12202
12203   if test "$enable_shared" = yes && test "$GCC" = yes; then
12204     case $archive_cmds_CXX in
12205     *'~'*)
12206       # FIXME: we may have to deal with multi-command sequences.
12207       ;;
12208     '$CC '*)
12209       # Test whether the compiler implicitly links with -lc since on some
12210       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12211       # to ld, don't add -lc before -lgcc.
12212       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12213 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12214       $rm conftest*
12215       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12216
12217       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12218   (eval $ac_compile) 2>&5
12219   ac_status=$?
12220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221   test $ac_status = 0; } 2>conftest.err; then
12222         soname=conftest
12223         lib=conftest
12224         libobjs=conftest.$ac_objext
12225         deplibs=
12226         wl=$lt_prog_compiler_wl_CXX
12227         pic_flag=$lt_prog_compiler_pic_CXX
12228         compiler_flags=-v
12229         linker_flags=-v
12230         verstring=
12231         output_objdir=.
12232         libname=conftest
12233         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12234         allow_undefined_flag_CXX=
12235         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12236   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12237   ac_status=$?
12238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12239   test $ac_status = 0; }
12240         then
12241           archive_cmds_need_lc_CXX=no
12242         else
12243           archive_cmds_need_lc_CXX=yes
12244         fi
12245         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12246       else
12247         cat conftest.err 1>&5
12248       fi
12249       $rm conftest*
12250       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12251 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12252       ;;
12253     esac
12254   fi
12255   ;;
12256 esac
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12259 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12260 library_names_spec=
12261 libname_spec='lib$name'
12262 soname_spec=
12263 shrext_cmds=".so"
12264 postinstall_cmds=
12265 postuninstall_cmds=
12266 finish_cmds=
12267 finish_eval=
12268 shlibpath_var=
12269 shlibpath_overrides_runpath=unknown
12270 version_type=none
12271 dynamic_linker="$host_os ld.so"
12272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12273
12274 need_lib_prefix=unknown
12275 hardcode_into_libs=no
12276
12277 # when you set need_version to no, make sure it does not cause -set_version
12278 # flags to be left without arguments
12279 need_version=unknown
12280
12281 case $host_os in
12282 aix3*)
12283   version_type=linux
12284   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12285   shlibpath_var=LIBPATH
12286
12287   # AIX 3 has no versioning support, so we append a major version to the name.
12288   soname_spec='${libname}${release}${shared_ext}$major'
12289   ;;
12290
12291 aix[4-9]*)
12292   version_type=linux
12293   need_lib_prefix=no
12294   need_version=no
12295   hardcode_into_libs=yes
12296   if test "$host_cpu" = ia64; then
12297     # AIX 5 supports IA64
12298     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12299     shlibpath_var=LD_LIBRARY_PATH
12300   else
12301     # With GCC up to 2.95.x, collect2 would create an import file
12302     # for dependence libraries.  The import file would start with
12303     # the line `#! .'.  This would cause the generated library to
12304     # depend on `.', always an invalid library.  This was fixed in
12305     # development snapshots of GCC prior to 3.0.
12306     case $host_os in
12307       aix4 | aix4.[01] | aix4.[01].*)
12308       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12309            echo ' yes '
12310            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12311         :
12312       else
12313         can_build_shared=no
12314       fi
12315       ;;
12316     esac
12317     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12318     # soname into executable. Probably we can add versioning support to
12319     # collect2, so additional links can be useful in future.
12320     if test "$aix_use_runtimelinking" = yes; then
12321       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12322       # instead of lib<name>.a to let people know that these are not
12323       # typical AIX shared libraries.
12324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325     else
12326       # We preserve .a as extension for shared libraries through AIX4.2
12327       # and later when we are not doing run time linking.
12328       library_names_spec='${libname}${release}.a $libname.a'
12329       soname_spec='${libname}${release}${shared_ext}$major'
12330     fi
12331     shlibpath_var=LIBPATH
12332   fi
12333   ;;
12334
12335 amigaos*)
12336   library_names_spec='$libname.ixlibrary $libname.a'
12337   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12338   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'
12339   ;;
12340
12341 beos*)
12342   library_names_spec='${libname}${shared_ext}'
12343   dynamic_linker="$host_os ld.so"
12344   shlibpath_var=LIBRARY_PATH
12345   ;;
12346
12347 bsdi[45]*)
12348   version_type=linux
12349   need_version=no
12350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351   soname_spec='${libname}${release}${shared_ext}$major'
12352   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12353   shlibpath_var=LD_LIBRARY_PATH
12354   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12355   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12356   # the default ld.so.conf also contains /usr/contrib/lib and
12357   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12358   # libtool to hard-code these into programs
12359   ;;
12360
12361 cygwin* | mingw* | pw32*)
12362   version_type=windows
12363   shrext_cmds=".dll"
12364   need_version=no
12365   need_lib_prefix=no
12366
12367   case $GCC,$host_os in
12368   yes,cygwin* | yes,mingw* | yes,pw32*)
12369     library_names_spec='$libname.dll.a'
12370     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12371     postinstall_cmds='base_file=`basename \${file}`~
12372       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12373       dldir=$destdir/`dirname \$dlpath`~
12374       test -d \$dldir || mkdir -p \$dldir~
12375       $install_prog $dir/$dlname \$dldir/$dlname~
12376       chmod a+x \$dldir/$dlname'
12377     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12378       dlpath=$dir/\$dldll~
12379        $rm \$dlpath'
12380     shlibpath_overrides_runpath=yes
12381
12382     case $host_os in
12383     cygwin*)
12384       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12385       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12386       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12387       ;;
12388     mingw*)
12389       # MinGW DLLs use traditional 'lib' prefix
12390       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12391       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12392       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12393         # It is most probably a Windows format PATH printed by
12394         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12395         # path with ; separators, and with drive letters. We can handle the
12396         # drive letters (cygwin fileutils understands them), so leave them,
12397         # especially as we might pass files found there to a mingw objdump,
12398         # which wouldn't understand a cygwinified path. Ahh.
12399         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12400       else
12401         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12402       fi
12403       ;;
12404     pw32*)
12405       # pw32 DLLs use 'pw' prefix rather than 'lib'
12406       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12407       ;;
12408     esac
12409     ;;
12410
12411   *)
12412     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12413     ;;
12414   esac
12415   dynamic_linker='Win32 ld.exe'
12416   # FIXME: first we should search . and the directory the executable is in
12417   shlibpath_var=PATH
12418   ;;
12419
12420 darwin* | rhapsody*)
12421   dynamic_linker="$host_os dyld"
12422   version_type=darwin
12423   need_lib_prefix=no
12424   need_version=no
12425   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12426   soname_spec='${libname}${release}${major}$shared_ext'
12427   shlibpath_overrides_runpath=yes
12428   shlibpath_var=DYLD_LIBRARY_PATH
12429   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12430
12431   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12432   ;;
12433
12434 dgux*)
12435   version_type=linux
12436   need_lib_prefix=no
12437   need_version=no
12438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12439   soname_spec='${libname}${release}${shared_ext}$major'
12440   shlibpath_var=LD_LIBRARY_PATH
12441   ;;
12442
12443 freebsd1*)
12444   dynamic_linker=no
12445   ;;
12446
12447 freebsd* | dragonfly*)
12448   # DragonFly does not have aout.  When/if they implement a new
12449   # versioning mechanism, adjust this.
12450   if test -x /usr/bin/objformat; then
12451     objformat=`/usr/bin/objformat`
12452   else
12453     case $host_os in
12454     freebsd[123]*) objformat=aout ;;
12455     *) objformat=elf ;;
12456     esac
12457   fi
12458   version_type=freebsd-$objformat
12459   case $version_type in
12460     freebsd-elf*)
12461       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12462       need_version=no
12463       need_lib_prefix=no
12464       ;;
12465     freebsd-*)
12466       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12467       need_version=yes
12468       ;;
12469   esac
12470   shlibpath_var=LD_LIBRARY_PATH
12471   case $host_os in
12472   freebsd2*)
12473     shlibpath_overrides_runpath=yes
12474     ;;
12475   freebsd3.[01]* | freebsdelf3.[01]*)
12476     shlibpath_overrides_runpath=yes
12477     hardcode_into_libs=yes
12478     ;;
12479   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12480   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12481     shlibpath_overrides_runpath=no
12482     hardcode_into_libs=yes
12483     ;;
12484   *) # from 4.6 on, and DragonFly
12485     shlibpath_overrides_runpath=yes
12486     hardcode_into_libs=yes
12487     ;;
12488   esac
12489   ;;
12490
12491 gnu*)
12492   version_type=linux
12493   need_lib_prefix=no
12494   need_version=no
12495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12496   soname_spec='${libname}${release}${shared_ext}$major'
12497   shlibpath_var=LD_LIBRARY_PATH
12498   hardcode_into_libs=yes
12499   ;;
12500
12501 hpux9* | hpux10* | hpux11*)
12502   # Give a soname corresponding to the major version so that dld.sl refuses to
12503   # link against other versions.
12504   version_type=sunos
12505   need_lib_prefix=no
12506   need_version=no
12507   case $host_cpu in
12508   ia64*)
12509     shrext_cmds='.so'
12510     hardcode_into_libs=yes
12511     dynamic_linker="$host_os dld.so"
12512     shlibpath_var=LD_LIBRARY_PATH
12513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515     soname_spec='${libname}${release}${shared_ext}$major'
12516     if test "X$HPUX_IA64_MODE" = X32; then
12517       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12518     else
12519       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12520     fi
12521     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12522     ;;
12523    hppa*64*)
12524      shrext_cmds='.sl'
12525      hardcode_into_libs=yes
12526      dynamic_linker="$host_os dld.sl"
12527      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12528      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12529      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530      soname_spec='${libname}${release}${shared_ext}$major'
12531      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12532      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12533      ;;
12534    *)
12535     shrext_cmds='.sl'
12536     dynamic_linker="$host_os dld.sl"
12537     shlibpath_var=SHLIB_PATH
12538     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540     soname_spec='${libname}${release}${shared_ext}$major'
12541     ;;
12542   esac
12543   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12544   postinstall_cmds='chmod 555 $lib'
12545   ;;
12546
12547 interix[3-9]*)
12548   version_type=linux
12549   need_lib_prefix=no
12550   need_version=no
12551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12552   soname_spec='${libname}${release}${shared_ext}$major'
12553   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12554   shlibpath_var=LD_LIBRARY_PATH
12555   shlibpath_overrides_runpath=no
12556   hardcode_into_libs=yes
12557   ;;
12558
12559 irix5* | irix6* | nonstopux*)
12560   case $host_os in
12561     nonstopux*) version_type=nonstopux ;;
12562     *)
12563         if test "$lt_cv_prog_gnu_ld" = yes; then
12564                 version_type=linux
12565         else
12566                 version_type=irix
12567         fi ;;
12568   esac
12569   need_lib_prefix=no
12570   need_version=no
12571   soname_spec='${libname}${release}${shared_ext}$major'
12572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12573   case $host_os in
12574   irix5* | nonstopux*)
12575     libsuff= shlibsuff=
12576     ;;
12577   *)
12578     case $LD in # libtool.m4 will add one of these switches to LD
12579     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12580       libsuff= shlibsuff= libmagic=32-bit;;
12581     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12582       libsuff=32 shlibsuff=N32 libmagic=N32;;
12583     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12584       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12585     *) libsuff= shlibsuff= libmagic=never-match;;
12586     esac
12587     ;;
12588   esac
12589   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12590   shlibpath_overrides_runpath=no
12591   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12592   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12593   hardcode_into_libs=yes
12594   ;;
12595
12596 # No shared lib support for Linux oldld, aout, or coff.
12597 linux*oldld* | linux*aout* | linux*coff*)
12598   dynamic_linker=no
12599   ;;
12600
12601 # This must be Linux ELF.
12602 linux* | k*bsd*-gnu)
12603   version_type=linux
12604   need_lib_prefix=no
12605   need_version=no
12606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12607   soname_spec='${libname}${release}${shared_ext}$major'
12608   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12609   shlibpath_var=LD_LIBRARY_PATH
12610   shlibpath_overrides_runpath=no
12611   # This implies no fast_install, which is unacceptable.
12612   # Some rework will be needed to allow for fast_install
12613   # before this can be enabled.
12614   hardcode_into_libs=yes
12615
12616   # Append ld.so.conf contents to the search path
12617   if test -f /etc/ld.so.conf; then
12618     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' ' '`
12619     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12620   fi
12621
12622   # We used to test for /lib/ld.so.1 and disable shared libraries on
12623   # powerpc, because MkLinux only supported shared libraries with the
12624   # GNU dynamic linker.  Since this was broken with cross compilers,
12625   # most powerpc-linux boxes support dynamic linking these days and
12626   # people can always --disable-shared, the test was removed, and we
12627   # assume the GNU/Linux dynamic linker is in use.
12628   dynamic_linker='GNU/Linux ld.so'
12629   ;;
12630
12631 netbsd*)
12632   version_type=sunos
12633   need_lib_prefix=no
12634   need_version=no
12635   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12638     dynamic_linker='NetBSD (a.out) ld.so'
12639   else
12640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12641     soname_spec='${libname}${release}${shared_ext}$major'
12642     dynamic_linker='NetBSD ld.elf_so'
12643   fi
12644   shlibpath_var=LD_LIBRARY_PATH
12645   shlibpath_overrides_runpath=yes
12646   hardcode_into_libs=yes
12647   ;;
12648
12649 newsos6)
12650   version_type=linux
12651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652   shlibpath_var=LD_LIBRARY_PATH
12653   shlibpath_overrides_runpath=yes
12654   ;;
12655
12656 nto-qnx*)
12657   version_type=linux
12658   need_lib_prefix=no
12659   need_version=no
12660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12661   soname_spec='${libname}${release}${shared_ext}$major'
12662   shlibpath_var=LD_LIBRARY_PATH
12663   shlibpath_overrides_runpath=yes
12664   ;;
12665
12666 openbsd*)
12667   version_type=sunos
12668   sys_lib_dlsearch_path_spec="/usr/lib"
12669   need_lib_prefix=no
12670   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12671   case $host_os in
12672     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12673     *)                         need_version=no  ;;
12674   esac
12675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12677   shlibpath_var=LD_LIBRARY_PATH
12678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12679     case $host_os in
12680       openbsd2.[89] | openbsd2.[89].*)
12681         shlibpath_overrides_runpath=no
12682         ;;
12683       *)
12684         shlibpath_overrides_runpath=yes
12685         ;;
12686       esac
12687   else
12688     shlibpath_overrides_runpath=yes
12689   fi
12690   ;;
12691
12692 os2*)
12693   libname_spec='$name'
12694   shrext_cmds=".dll"
12695   need_lib_prefix=no
12696   library_names_spec='$libname${shared_ext} $libname.a'
12697   dynamic_linker='OS/2 ld.exe'
12698   shlibpath_var=LIBPATH
12699   ;;
12700
12701 osf3* | osf4* | osf5*)
12702   version_type=osf
12703   need_lib_prefix=no
12704   need_version=no
12705   soname_spec='${libname}${release}${shared_ext}$major'
12706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707   shlibpath_var=LD_LIBRARY_PATH
12708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12710   ;;
12711
12712 rdos*)
12713   dynamic_linker=no
12714   ;;
12715
12716 solaris*)
12717   version_type=linux
12718   need_lib_prefix=no
12719   need_version=no
12720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721   soname_spec='${libname}${release}${shared_ext}$major'
12722   shlibpath_var=LD_LIBRARY_PATH
12723   shlibpath_overrides_runpath=yes
12724   hardcode_into_libs=yes
12725   # ldd complains unless libraries are executable
12726   postinstall_cmds='chmod +x $lib'
12727   ;;
12728
12729 sunos4*)
12730   version_type=sunos
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12732   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12733   shlibpath_var=LD_LIBRARY_PATH
12734   shlibpath_overrides_runpath=yes
12735   if test "$with_gnu_ld" = yes; then
12736     need_lib_prefix=no
12737   fi
12738   need_version=yes
12739   ;;
12740
12741 sysv4 | sysv4.3*)
12742   version_type=linux
12743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12744   soname_spec='${libname}${release}${shared_ext}$major'
12745   shlibpath_var=LD_LIBRARY_PATH
12746   case $host_vendor in
12747     sni)
12748       shlibpath_overrides_runpath=no
12749       need_lib_prefix=no
12750       export_dynamic_flag_spec='${wl}-Blargedynsym'
12751       runpath_var=LD_RUN_PATH
12752       ;;
12753     siemens)
12754       need_lib_prefix=no
12755       ;;
12756     motorola)
12757       need_lib_prefix=no
12758       need_version=no
12759       shlibpath_overrides_runpath=no
12760       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12761       ;;
12762   esac
12763   ;;
12764
12765 sysv4*MP*)
12766   if test -d /usr/nec ;then
12767     version_type=linux
12768     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12769     soname_spec='$libname${shared_ext}.$major'
12770     shlibpath_var=LD_LIBRARY_PATH
12771   fi
12772   ;;
12773
12774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12775   version_type=freebsd-elf
12776   need_lib_prefix=no
12777   need_version=no
12778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12779   soname_spec='${libname}${release}${shared_ext}$major'
12780   shlibpath_var=LD_LIBRARY_PATH
12781   hardcode_into_libs=yes
12782   if test "$with_gnu_ld" = yes; then
12783     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12784     shlibpath_overrides_runpath=no
12785   else
12786     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12787     shlibpath_overrides_runpath=yes
12788     case $host_os in
12789       sco3.2v5*)
12790         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12791         ;;
12792     esac
12793   fi
12794   sys_lib_dlsearch_path_spec='/usr/lib'
12795   ;;
12796
12797 uts4*)
12798   version_type=linux
12799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800   soname_spec='${libname}${release}${shared_ext}$major'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   ;;
12803
12804 *)
12805   dynamic_linker=no
12806   ;;
12807 esac
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12809 $as_echo "$dynamic_linker" >&6; }
12810 test "$dynamic_linker" = no && can_build_shared=no
12811
12812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12816 fi
12817
12818 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12819 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12820   $as_echo_n "(cached) " >&6
12821 else
12822   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12823 fi
12824
12825 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12826
12827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12828 if test "$GCC" = yes; then
12829   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12830 fi
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12833 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12834 hardcode_action_CXX=
12835 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12836    test -n "$runpath_var_CXX" || \
12837    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12838
12839   # We can hardcode non-existant directories.
12840   if test "$hardcode_direct_CXX" != no &&
12841      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12842      # have to relink, otherwise we might link with an installed library
12843      # when we should be linking with a yet-to-be-installed one
12844      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12845      test "$hardcode_minus_L_CXX" != no; then
12846     # Linking always hardcodes the temporary library directory.
12847     hardcode_action_CXX=relink
12848   else
12849     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12850     hardcode_action_CXX=immediate
12851   fi
12852 else
12853   # We cannot hardcode anything, or else we can only hardcode existing
12854   # directories.
12855   hardcode_action_CXX=unsupported
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12858 $as_echo "$hardcode_action_CXX" >&6; }
12859
12860 if test "$hardcode_action_CXX" = relink; then
12861   # Fast installation is not supported
12862   enable_fast_install=no
12863 elif test "$shlibpath_overrides_runpath" = yes ||
12864      test "$enable_shared" = no; then
12865   # Fast installation is not necessary
12866   enable_fast_install=needless
12867 fi
12868
12869
12870 # The else clause should only fire when bootstrapping the
12871 # libtool distribution, otherwise you forgot to ship ltmain.sh
12872 # with your package, and you will get complaints that there are
12873 # no rules to generate ltmain.sh.
12874 if test -f "$ltmain"; then
12875   # See if we are running on zsh, and set the options which allow our commands through
12876   # without removal of \ escapes.
12877   if test -n "${ZSH_VERSION+set}" ; then
12878     setopt NO_GLOB_SUBST
12879   fi
12880   # Now quote all the things that may contain metacharacters while being
12881   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12882   # variables and quote the copies for generation of the libtool script.
12883   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12884     SED SHELL STRIP \
12885     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12886     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12887     deplibs_check_method reload_flag reload_cmds need_locks \
12888     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12889     lt_cv_sys_global_symbol_to_c_name_address \
12890     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12891     old_postinstall_cmds old_postuninstall_cmds \
12892     compiler_CXX \
12893     CC_CXX \
12894     LD_CXX \
12895     lt_prog_compiler_wl_CXX \
12896     lt_prog_compiler_pic_CXX \
12897     lt_prog_compiler_static_CXX \
12898     lt_prog_compiler_no_builtin_flag_CXX \
12899     export_dynamic_flag_spec_CXX \
12900     thread_safe_flag_spec_CXX \
12901     whole_archive_flag_spec_CXX \
12902     enable_shared_with_static_runtimes_CXX \
12903     old_archive_cmds_CXX \
12904     old_archive_from_new_cmds_CXX \
12905     predep_objects_CXX \
12906     postdep_objects_CXX \
12907     predeps_CXX \
12908     postdeps_CXX \
12909     compiler_lib_search_path_CXX \
12910     compiler_lib_search_dirs_CXX \
12911     archive_cmds_CXX \
12912     archive_expsym_cmds_CXX \
12913     postinstall_cmds_CXX \
12914     postuninstall_cmds_CXX \
12915     old_archive_from_expsyms_cmds_CXX \
12916     allow_undefined_flag_CXX \
12917     no_undefined_flag_CXX \
12918     export_symbols_cmds_CXX \
12919     hardcode_libdir_flag_spec_CXX \
12920     hardcode_libdir_flag_spec_ld_CXX \
12921     hardcode_libdir_separator_CXX \
12922     hardcode_automatic_CXX \
12923     module_cmds_CXX \
12924     module_expsym_cmds_CXX \
12925     lt_cv_prog_compiler_c_o_CXX \
12926     fix_srcfile_path_CXX \
12927     exclude_expsyms_CXX \
12928     include_expsyms_CXX; do
12929
12930     case $var in
12931     old_archive_cmds_CXX | \
12932     old_archive_from_new_cmds_CXX | \
12933     archive_cmds_CXX | \
12934     archive_expsym_cmds_CXX | \
12935     module_cmds_CXX | \
12936     module_expsym_cmds_CXX | \
12937     old_archive_from_expsyms_cmds_CXX | \
12938     export_symbols_cmds_CXX | \
12939     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12940     postinstall_cmds | postuninstall_cmds | \
12941     old_postinstall_cmds | old_postuninstall_cmds | \
12942     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12943       # Double-quote double-evaled strings.
12944       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12945       ;;
12946     *)
12947       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12948       ;;
12949     esac
12950   done
12951
12952   case $lt_echo in
12953   *'\$0 --fallback-echo"')
12954     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12955     ;;
12956   esac
12957
12958 cfgfile="$ofile"
12959
12960   cat <<__EOF__ >> "$cfgfile"
12961 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12962
12963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12964
12965 # Shell to use when invoking shell scripts.
12966 SHELL=$lt_SHELL
12967
12968 # Whether or not to build shared libraries.
12969 build_libtool_libs=$enable_shared
12970
12971 # Whether or not to build static libraries.
12972 build_old_libs=$enable_static
12973
12974 # Whether or not to add -lc for building shared libraries.
12975 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12976
12977 # Whether or not to disallow shared libs when runtime libs are static
12978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12979
12980 # Whether or not to optimize for fast installation.
12981 fast_install=$enable_fast_install
12982
12983 # The host system.
12984 host_alias=$host_alias
12985 host=$host
12986 host_os=$host_os
12987
12988 # The build system.
12989 build_alias=$build_alias
12990 build=$build
12991 build_os=$build_os
12992
12993 # An echo program that does not interpret backslashes.
12994 echo=$lt_echo
12995
12996 # The archiver.
12997 AR=$lt_AR
12998 AR_FLAGS=$lt_AR_FLAGS
12999
13000 # A C compiler.
13001 LTCC=$lt_LTCC
13002
13003 # LTCC compiler flags.
13004 LTCFLAGS=$lt_LTCFLAGS
13005
13006 # A language-specific compiler.
13007 CC=$lt_compiler_CXX
13008
13009 # Is the compiler the GNU C compiler?
13010 with_gcc=$GCC_CXX
13011
13012 # An ERE matcher.
13013 EGREP=$lt_EGREP
13014
13015 # The linker used to build libraries.
13016 LD=$lt_LD_CXX
13017
13018 # Whether we need hard or soft links.
13019 LN_S=$lt_LN_S
13020
13021 # A BSD-compatible nm program.
13022 NM=$lt_NM
13023
13024 # A symbol stripping program
13025 STRIP=$lt_STRIP
13026
13027 # Used to examine libraries when file_magic_cmd begins "file"
13028 MAGIC_CMD=$MAGIC_CMD
13029
13030 # Used on cygwin: DLL creation program.
13031 DLLTOOL="$DLLTOOL"
13032
13033 # Used on cygwin: object dumper.
13034 OBJDUMP="$OBJDUMP"
13035
13036 # Used on cygwin: assembler.
13037 AS="$AS"
13038
13039 # The name of the directory that contains temporary libtool files.
13040 objdir=$objdir
13041
13042 # How to create reloadable object files.
13043 reload_flag=$lt_reload_flag
13044 reload_cmds=$lt_reload_cmds
13045
13046 # How to pass a linker flag through the compiler.
13047 wl=$lt_lt_prog_compiler_wl_CXX
13048
13049 # Object file suffix (normally "o").
13050 objext="$ac_objext"
13051
13052 # Old archive suffix (normally "a").
13053 libext="$libext"
13054
13055 # Shared library suffix (normally ".so").
13056 shrext_cmds='$shrext_cmds'
13057
13058 # Executable file suffix (normally "").
13059 exeext="$exeext"
13060
13061 # Additional compiler flags for building library objects.
13062 pic_flag=$lt_lt_prog_compiler_pic_CXX
13063 pic_mode=$pic_mode
13064
13065 # What is the maximum length of a command?
13066 max_cmd_len=$lt_cv_sys_max_cmd_len
13067
13068 # Does compiler simultaneously support -c and -o options?
13069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13070
13071 # Must we lock files when doing compilation?
13072 need_locks=$lt_need_locks
13073
13074 # Do we need the lib prefix for modules?
13075 need_lib_prefix=$need_lib_prefix
13076
13077 # Do we need a version for libraries?
13078 need_version=$need_version
13079
13080 # Whether dlopen is supported.
13081 dlopen_support=$enable_dlopen
13082
13083 # Whether dlopen of programs is supported.
13084 dlopen_self=$enable_dlopen_self
13085
13086 # Whether dlopen of statically linked programs is supported.
13087 dlopen_self_static=$enable_dlopen_self_static
13088
13089 # Compiler flag to prevent dynamic linking.
13090 link_static_flag=$lt_lt_prog_compiler_static_CXX
13091
13092 # Compiler flag to turn off builtin functions.
13093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13094
13095 # Compiler flag to allow reflexive dlopens.
13096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13097
13098 # Compiler flag to generate shared objects directly from archives.
13099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13100
13101 # Compiler flag to generate thread-safe objects.
13102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13103
13104 # Library versioning type.
13105 version_type=$version_type
13106
13107 # Format of library name prefix.
13108 libname_spec=$lt_libname_spec
13109
13110 # List of archive names.  First name is the real one, the rest are links.
13111 # The last name is the one that the linker finds with -lNAME.
13112 library_names_spec=$lt_library_names_spec
13113
13114 # The coded name of the library, if different from the real name.
13115 soname_spec=$lt_soname_spec
13116
13117 # Commands used to build and install an old-style archive.
13118 RANLIB=$lt_RANLIB
13119 old_archive_cmds=$lt_old_archive_cmds_CXX
13120 old_postinstall_cmds=$lt_old_postinstall_cmds
13121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13122
13123 # Create an old-style archive from a shared archive.
13124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13125
13126 # Create a temporary old-style archive to link instead of a shared archive.
13127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13128
13129 # Commands used to build and install a shared archive.
13130 archive_cmds=$lt_archive_cmds_CXX
13131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13132 postinstall_cmds=$lt_postinstall_cmds
13133 postuninstall_cmds=$lt_postuninstall_cmds
13134
13135 # Commands used to build a loadable module (assumed same as above if empty)
13136 module_cmds=$lt_module_cmds_CXX
13137 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13138
13139 # Commands to strip libraries.
13140 old_striplib=$lt_old_striplib
13141 striplib=$lt_striplib
13142
13143 # Dependencies to place before the objects being linked to create a
13144 # shared library.
13145 predep_objects=$lt_predep_objects_CXX
13146
13147 # Dependencies to place after the objects being linked to create a
13148 # shared library.
13149 postdep_objects=$lt_postdep_objects_CXX
13150
13151 # Dependencies to place before the objects being linked to create a
13152 # shared library.
13153 predeps=$lt_predeps_CXX
13154
13155 # Dependencies to place after the objects being linked to create a
13156 # shared library.
13157 postdeps=$lt_postdeps_CXX
13158
13159 # The directories searched by this compiler when creating a shared
13160 # library
13161 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13162
13163 # The library search path used internally by the compiler when linking
13164 # a shared library.
13165 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13166
13167 # Method to check whether dependent libraries are shared objects.
13168 deplibs_check_method=$lt_deplibs_check_method
13169
13170 # Command to use when deplibs_check_method == file_magic.
13171 file_magic_cmd=$lt_file_magic_cmd
13172
13173 # Flag that allows shared libraries with undefined symbols to be built.
13174 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13175
13176 # Flag that forces no undefined symbols.
13177 no_undefined_flag=$lt_no_undefined_flag_CXX
13178
13179 # Commands used to finish a libtool library installation in a directory.
13180 finish_cmds=$lt_finish_cmds
13181
13182 # Same as above, but a single script fragment to be evaled but not shown.
13183 finish_eval=$lt_finish_eval
13184
13185 # Take the output of nm and produce a listing of raw symbols and C names.
13186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13187
13188 # Transform the output of nm in a proper C declaration
13189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13190
13191 # Transform the output of nm in a C name address pair
13192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13193
13194 # This is the shared library runtime path variable.
13195 runpath_var=$runpath_var
13196
13197 # This is the shared library path variable.
13198 shlibpath_var=$shlibpath_var
13199
13200 # Is shlibpath searched before the hard-coded library search path?
13201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13202
13203 # How to hardcode a shared library path into an executable.
13204 hardcode_action=$hardcode_action_CXX
13205
13206 # Whether we should hardcode library paths into libraries.
13207 hardcode_into_libs=$hardcode_into_libs
13208
13209 # Flag to hardcode \$libdir into a binary during linking.
13210 # This must work even if \$libdir does not exist.
13211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13212
13213 # If ld is used when linking, flag to hardcode \$libdir into
13214 # a binary during linking. This must work even if \$libdir does
13215 # not exist.
13216 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13217
13218 # Whether we need a single -rpath flag with a separated argument.
13219 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13220
13221 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13222 # resulting binary.
13223 hardcode_direct=$hardcode_direct_CXX
13224
13225 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13226 # resulting binary.
13227 hardcode_minus_L=$hardcode_minus_L_CXX
13228
13229 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13230 # the resulting binary.
13231 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13232
13233 # Set to yes if building a shared library automatically hardcodes DIR into the library
13234 # and all subsequent libraries and executables linked against it.
13235 hardcode_automatic=$hardcode_automatic_CXX
13236
13237 # Variables whose values should be saved in libtool wrapper scripts and
13238 # restored at relink time.
13239 variables_saved_for_relink="$variables_saved_for_relink"
13240
13241 # Whether libtool must link a program against all its dependency libraries.
13242 link_all_deplibs=$link_all_deplibs_CXX
13243
13244 # Compile-time system search path for libraries
13245 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13246
13247 # Run-time system search path for libraries
13248 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13249
13250 # Fix the shell variable \$srcfile for the compiler.
13251 fix_srcfile_path=$lt_fix_srcfile_path
13252
13253 # Set to yes if exported symbols are required.
13254 always_export_symbols=$always_export_symbols_CXX
13255
13256 # The commands to list exported symbols.
13257 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13258
13259 # The commands to extract the exported symbol list from a shared archive.
13260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13261
13262 # Symbols that should not be listed in the preloaded symbols.
13263 exclude_expsyms=$lt_exclude_expsyms_CXX
13264
13265 # Symbols that must always be exported.
13266 include_expsyms=$lt_include_expsyms_CXX
13267
13268 # ### END LIBTOOL TAG CONFIG: $tagname
13269
13270 __EOF__
13271
13272
13273 else
13274   # If there is no Makefile yet, we rely on a make rule to execute
13275   # `config.status --recheck' to rerun these tests and create the
13276   # libtool script then.
13277   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13278   if test -f "$ltmain_in"; then
13279     test -f Makefile && make "$ltmain"
13280   fi
13281 fi
13282
13283
13284 ac_ext=c
13285 ac_cpp='$CPP $CPPFLAGS'
13286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13289
13290 CC=$lt_save_CC
13291 LDCXX=$LD
13292 LD=$lt_save_LD
13293 GCC=$lt_save_GCC
13294 with_gnu_ldcxx=$with_gnu_ld
13295 with_gnu_ld=$lt_save_with_gnu_ld
13296 lt_cv_path_LDCXX=$lt_cv_path_LD
13297 lt_cv_path_LD=$lt_save_path_LD
13298 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13299 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13300
13301         else
13302           tagname=""
13303         fi
13304         ;;
13305
13306       F77)
13307         if test -n "$F77" && test "X$F77" != "Xno"; then
13308
13309 ac_ext=f
13310 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13311 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13313
13314
13315 archive_cmds_need_lc_F77=no
13316 allow_undefined_flag_F77=
13317 always_export_symbols_F77=no
13318 archive_expsym_cmds_F77=
13319 export_dynamic_flag_spec_F77=
13320 hardcode_direct_F77=no
13321 hardcode_libdir_flag_spec_F77=
13322 hardcode_libdir_flag_spec_ld_F77=
13323 hardcode_libdir_separator_F77=
13324 hardcode_minus_L_F77=no
13325 hardcode_automatic_F77=no
13326 module_cmds_F77=
13327 module_expsym_cmds_F77=
13328 link_all_deplibs_F77=unknown
13329 old_archive_cmds_F77=$old_archive_cmds
13330 no_undefined_flag_F77=
13331 whole_archive_flag_spec_F77=
13332 enable_shared_with_static_runtimes_F77=no
13333
13334 # Source file extension for f77 test sources.
13335 ac_ext=f
13336
13337 # Object file extension for compiled f77 test sources.
13338 objext=o
13339 objext_F77=$objext
13340
13341 # Code to be used in simple compile tests
13342 lt_simple_compile_test_code="\
13343       subroutine t
13344       return
13345       end
13346 "
13347
13348 # Code to be used in simple link tests
13349 lt_simple_link_test_code="\
13350       program t
13351       end
13352 "
13353
13354 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13355
13356 # If no C compiler was specified, use CC.
13357 LTCC=${LTCC-"$CC"}
13358
13359 # If no C compiler flags were specified, use CFLAGS.
13360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13361
13362 # Allow CC to be a program name with arguments.
13363 compiler=$CC
13364
13365
13366 # save warnings/boilerplate of simple test code
13367 ac_outfile=conftest.$ac_objext
13368 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13370 _lt_compiler_boilerplate=`cat conftest.err`
13371 $rm conftest*
13372
13373 ac_outfile=conftest.$ac_objext
13374 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13376 _lt_linker_boilerplate=`cat conftest.err`
13377 $rm -r conftest*
13378
13379
13380 # Allow CC to be a program name with arguments.
13381 lt_save_CC="$CC"
13382 CC=${F77-"f77"}
13383 compiler=$CC
13384 compiler_F77=$CC
13385 for cc_temp in $compiler""; do
13386   case $cc_temp in
13387     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13388     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13389     \-*) ;;
13390     *) break;;
13391   esac
13392 done
13393 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13394
13395
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13399 $as_echo "$can_build_shared" >&6; }
13400
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13402 $as_echo_n "checking whether to build shared libraries... " >&6; }
13403 test "$can_build_shared" = "no" && enable_shared=no
13404
13405 # On AIX, shared libraries and static libraries use the same namespace, and
13406 # are all built from PIC.
13407 case $host_os in
13408 aix3*)
13409   test "$enable_shared" = yes && enable_static=no
13410   if test -n "$RANLIB"; then
13411     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13412     postinstall_cmds='$RANLIB $lib'
13413   fi
13414   ;;
13415 aix[4-9]*)
13416   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13417     test "$enable_shared" = yes && enable_static=no
13418   fi
13419   ;;
13420 esac
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13422 $as_echo "$enable_shared" >&6; }
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13425 $as_echo_n "checking whether to build static libraries... " >&6; }
13426 # Make sure either enable_shared or enable_static is yes.
13427 test "$enable_shared" = yes || enable_static=yes
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13429 $as_echo "$enable_static" >&6; }
13430
13431 GCC_F77="$G77"
13432 LD_F77="$LD"
13433
13434 lt_prog_compiler_wl_F77=
13435 lt_prog_compiler_pic_F77=
13436 lt_prog_compiler_static_F77=
13437
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13439 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13440
13441   if test "$GCC" = yes; then
13442     lt_prog_compiler_wl_F77='-Wl,'
13443     lt_prog_compiler_static_F77='-static'
13444
13445     case $host_os in
13446       aix*)
13447       # All AIX code is PIC.
13448       if test "$host_cpu" = ia64; then
13449         # AIX 5 now supports IA64 processor
13450         lt_prog_compiler_static_F77='-Bstatic'
13451       fi
13452       ;;
13453
13454     amigaos*)
13455       # FIXME: we need at least 68020 code to build shared libraries, but
13456       # adding the `-m68020' flag to GCC prevents building anything better,
13457       # like `-m68040'.
13458       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13459       ;;
13460
13461     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13462       # PIC is the default for these OSes.
13463       ;;
13464
13465     mingw* | cygwin* | pw32* | os2*)
13466       # This hack is so that the source file can tell whether it is being
13467       # built for inclusion in a dll (and should export symbols for example).
13468       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13469       # (--disable-auto-import) libraries
13470       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13471       ;;
13472
13473     darwin* | rhapsody*)
13474       # PIC is the default on this platform
13475       # Common symbols not allowed in MH_DYLIB files
13476       lt_prog_compiler_pic_F77='-fno-common'
13477       ;;
13478
13479     interix[3-9]*)
13480       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13481       # Instead, we relocate shared libraries at runtime.
13482       ;;
13483
13484     msdosdjgpp*)
13485       # Just because we use GCC doesn't mean we suddenly get shared libraries
13486       # on systems that don't support them.
13487       lt_prog_compiler_can_build_shared_F77=no
13488       enable_shared=no
13489       ;;
13490
13491     sysv4*MP*)
13492       if test -d /usr/nec; then
13493         lt_prog_compiler_pic_F77=-Kconform_pic
13494       fi
13495       ;;
13496
13497     hpux*)
13498       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13499       # not for PA HP-UX.
13500       case $host_cpu in
13501       hppa*64*|ia64*)
13502         # +Z the default
13503         ;;
13504       *)
13505         lt_prog_compiler_pic_F77='-fPIC'
13506         ;;
13507       esac
13508       ;;
13509
13510     *)
13511       lt_prog_compiler_pic_F77='-fPIC'
13512       ;;
13513     esac
13514   else
13515     # PORTME Check for flag to pass linker flags through the system compiler.
13516     case $host_os in
13517     aix*)
13518       lt_prog_compiler_wl_F77='-Wl,'
13519       if test "$host_cpu" = ia64; then
13520         # AIX 5 now supports IA64 processor
13521         lt_prog_compiler_static_F77='-Bstatic'
13522       else
13523         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13524       fi
13525       ;;
13526       darwin*)
13527         # PIC is the default on this platform
13528         # Common symbols not allowed in MH_DYLIB files
13529        case $cc_basename in
13530          xlc*)
13531          lt_prog_compiler_pic_F77='-qnocommon'
13532          lt_prog_compiler_wl_F77='-Wl,'
13533          ;;
13534        esac
13535        ;;
13536
13537     mingw* | cygwin* | pw32* | os2*)
13538       # This hack is so that the source file can tell whether it is being
13539       # built for inclusion in a dll (and should export symbols for example).
13540       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13541       ;;
13542
13543     hpux9* | hpux10* | hpux11*)
13544       lt_prog_compiler_wl_F77='-Wl,'
13545       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13546       # not for PA HP-UX.
13547       case $host_cpu in
13548       hppa*64*|ia64*)
13549         # +Z the default
13550         ;;
13551       *)
13552         lt_prog_compiler_pic_F77='+Z'
13553         ;;
13554       esac
13555       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13556       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13557       ;;
13558
13559     irix5* | irix6* | nonstopux*)
13560       lt_prog_compiler_wl_F77='-Wl,'
13561       # PIC (with -KPIC) is the default.
13562       lt_prog_compiler_static_F77='-non_shared'
13563       ;;
13564
13565     newsos6)
13566       lt_prog_compiler_pic_F77='-KPIC'
13567       lt_prog_compiler_static_F77='-Bstatic'
13568       ;;
13569
13570     linux* | k*bsd*-gnu)
13571       case $cc_basename in
13572       icc* | ecc*)
13573         lt_prog_compiler_wl_F77='-Wl,'
13574         lt_prog_compiler_pic_F77='-KPIC'
13575         lt_prog_compiler_static_F77='-static'
13576         ;;
13577       pgcc* | pgf77* | pgf90* | pgf95*)
13578         # Portland Group compilers (*not* the Pentium gcc compiler,
13579         # which looks to be a dead project)
13580         lt_prog_compiler_wl_F77='-Wl,'
13581         lt_prog_compiler_pic_F77='-fpic'
13582         lt_prog_compiler_static_F77='-Bstatic'
13583         ;;
13584       ccc*)
13585         lt_prog_compiler_wl_F77='-Wl,'
13586         # All Alpha code is PIC.
13587         lt_prog_compiler_static_F77='-non_shared'
13588         ;;
13589       *)
13590         case `$CC -V 2>&1 | sed 5q` in
13591         *Sun\ C*)
13592           # Sun C 5.9
13593           lt_prog_compiler_pic_F77='-KPIC'
13594           lt_prog_compiler_static_F77='-Bstatic'
13595           lt_prog_compiler_wl_F77='-Wl,'
13596           ;;
13597         *Sun\ F*)
13598           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13599           lt_prog_compiler_pic_F77='-KPIC'
13600           lt_prog_compiler_static_F77='-Bstatic'
13601           lt_prog_compiler_wl_F77=''
13602           ;;
13603         esac
13604         ;;
13605       esac
13606       ;;
13607
13608     osf3* | osf4* | osf5*)
13609       lt_prog_compiler_wl_F77='-Wl,'
13610       # All OSF/1 code is PIC.
13611       lt_prog_compiler_static_F77='-non_shared'
13612       ;;
13613
13614     rdos*)
13615       lt_prog_compiler_static_F77='-non_shared'
13616       ;;
13617
13618     solaris*)
13619       lt_prog_compiler_pic_F77='-KPIC'
13620       lt_prog_compiler_static_F77='-Bstatic'
13621       case $cc_basename in
13622       f77* | f90* | f95*)
13623         lt_prog_compiler_wl_F77='-Qoption ld ';;
13624       *)
13625         lt_prog_compiler_wl_F77='-Wl,';;
13626       esac
13627       ;;
13628
13629     sunos4*)
13630       lt_prog_compiler_wl_F77='-Qoption ld '
13631       lt_prog_compiler_pic_F77='-PIC'
13632       lt_prog_compiler_static_F77='-Bstatic'
13633       ;;
13634
13635     sysv4 | sysv4.2uw2* | sysv4.3*)
13636       lt_prog_compiler_wl_F77='-Wl,'
13637       lt_prog_compiler_pic_F77='-KPIC'
13638       lt_prog_compiler_static_F77='-Bstatic'
13639       ;;
13640
13641     sysv4*MP*)
13642       if test -d /usr/nec ;then
13643         lt_prog_compiler_pic_F77='-Kconform_pic'
13644         lt_prog_compiler_static_F77='-Bstatic'
13645       fi
13646       ;;
13647
13648     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13649       lt_prog_compiler_wl_F77='-Wl,'
13650       lt_prog_compiler_pic_F77='-KPIC'
13651       lt_prog_compiler_static_F77='-Bstatic'
13652       ;;
13653
13654     unicos*)
13655       lt_prog_compiler_wl_F77='-Wl,'
13656       lt_prog_compiler_can_build_shared_F77=no
13657       ;;
13658
13659     uts4*)
13660       lt_prog_compiler_pic_F77='-pic'
13661       lt_prog_compiler_static_F77='-Bstatic'
13662       ;;
13663
13664     *)
13665       lt_prog_compiler_can_build_shared_F77=no
13666       ;;
13667     esac
13668   fi
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13671 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13672
13673 #
13674 # Check to make sure the PIC flag actually works.
13675 #
13676 if test -n "$lt_prog_compiler_pic_F77"; then
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13680 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13681   $as_echo_n "(cached) " >&6
13682 else
13683   lt_cv_prog_compiler_pic_works_F77=no
13684   ac_outfile=conftest.$ac_objext
13685    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13686    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13687    # Insert the option either (1) after the last *FLAGS variable, or
13688    # (2) before a word containing "conftest.", or (3) at the end.
13689    # Note that $ac_compile itself does not contain backslashes and begins
13690    # with a dollar sign (not a hyphen), so the echo should work correctly.
13691    # The option is referenced via a variable to avoid confusing sed.
13692    lt_compile=`echo "$ac_compile" | $SED \
13693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13695    -e 's:$: $lt_compiler_flag:'`
13696    (eval echo "\"\$as_me:13696: $lt_compile\"" >&5)
13697    (eval "$lt_compile" 2>conftest.err)
13698    ac_status=$?
13699    cat conftest.err >&5
13700    echo "$as_me:13700: \$? = $ac_status" >&5
13701    if (exit $ac_status) && test -s "$ac_outfile"; then
13702      # The compiler can only warn and ignore the option if not recognized
13703      # So say no if there are warnings other than the usual output.
13704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13705      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13706      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13707        lt_cv_prog_compiler_pic_works_F77=yes
13708      fi
13709    fi
13710    $rm conftest*
13711
13712 fi
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13714 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13715
13716 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13717     case $lt_prog_compiler_pic_F77 in
13718      "" | " "*) ;;
13719      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13720      esac
13721 else
13722     lt_prog_compiler_pic_F77=
13723      lt_prog_compiler_can_build_shared_F77=no
13724 fi
13725
13726 fi
13727 case $host_os in
13728   # For platforms which do not support PIC, -DPIC is meaningless:
13729   *djgpp*)
13730     lt_prog_compiler_pic_F77=
13731     ;;
13732   *)
13733     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13734     ;;
13735 esac
13736
13737 #
13738 # Check to make sure the static flag actually works.
13739 #
13740 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13743 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13744   $as_echo_n "(cached) " >&6
13745 else
13746   lt_cv_prog_compiler_static_works_F77=no
13747    save_LDFLAGS="$LDFLAGS"
13748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13751      # The linker can only warn and ignore the option if not recognized
13752      # So say no if there are warnings
13753      if test -s conftest.err; then
13754        # Append any errors to the config.log.
13755        cat conftest.err 1>&5
13756        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13758        if diff conftest.exp conftest.er2 >/dev/null; then
13759          lt_cv_prog_compiler_static_works_F77=yes
13760        fi
13761      else
13762        lt_cv_prog_compiler_static_works_F77=yes
13763      fi
13764    fi
13765    $rm -r conftest*
13766    LDFLAGS="$save_LDFLAGS"
13767
13768 fi
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13770 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13771
13772 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13773     :
13774 else
13775     lt_prog_compiler_static_F77=
13776 fi
13777
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13781 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13782   $as_echo_n "(cached) " >&6
13783 else
13784   lt_cv_prog_compiler_c_o_F77=no
13785    $rm -r conftest 2>/dev/null
13786    mkdir conftest
13787    cd conftest
13788    mkdir out
13789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13790
13791    lt_compiler_flag="-o out/conftest2.$ac_objext"
13792    # Insert the option either (1) after the last *FLAGS variable, or
13793    # (2) before a word containing "conftest.", or (3) at the end.
13794    # Note that $ac_compile itself does not contain backslashes and begins
13795    # with a dollar sign (not a hyphen), so the echo should work correctly.
13796    lt_compile=`echo "$ac_compile" | $SED \
13797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13799    -e 's:$: $lt_compiler_flag:'`
13800    (eval echo "\"\$as_me:13800: $lt_compile\"" >&5)
13801    (eval "$lt_compile" 2>out/conftest.err)
13802    ac_status=$?
13803    cat out/conftest.err >&5
13804    echo "$as_me:13804: \$? = $ac_status" >&5
13805    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13806    then
13807      # The compiler can only warn and ignore the option if not recognized
13808      # So say no if there are warnings
13809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13810      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13811      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13812        lt_cv_prog_compiler_c_o_F77=yes
13813      fi
13814    fi
13815    chmod u+w . 2>&5
13816    $rm conftest*
13817    # SGI C++ compiler will create directory out/ii_files/ for
13818    # template instantiation
13819    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13820    $rm out/* && rmdir out
13821    cd ..
13822    rmdir conftest
13823    $rm conftest*
13824
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13827 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13828
13829
13830 hard_links="nottested"
13831 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13832   # do not overwrite the value of need_locks provided by the user
13833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13834 $as_echo_n "checking if we can lock with hard links... " >&6; }
13835   hard_links=yes
13836   $rm conftest*
13837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13838   touch conftest.a
13839   ln conftest.a conftest.b 2>&5 || hard_links=no
13840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13842 $as_echo "$hard_links" >&6; }
13843   if test "$hard_links" = no; then
13844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13845 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13846     need_locks=warn
13847   fi
13848 else
13849   need_locks=no
13850 fi
13851
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13853 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13854
13855   runpath_var=
13856   allow_undefined_flag_F77=
13857   enable_shared_with_static_runtimes_F77=no
13858   archive_cmds_F77=
13859   archive_expsym_cmds_F77=
13860   old_archive_From_new_cmds_F77=
13861   old_archive_from_expsyms_cmds_F77=
13862   export_dynamic_flag_spec_F77=
13863   whole_archive_flag_spec_F77=
13864   thread_safe_flag_spec_F77=
13865   hardcode_libdir_flag_spec_F77=
13866   hardcode_libdir_flag_spec_ld_F77=
13867   hardcode_libdir_separator_F77=
13868   hardcode_direct_F77=no
13869   hardcode_minus_L_F77=no
13870   hardcode_shlibpath_var_F77=unsupported
13871   link_all_deplibs_F77=unknown
13872   hardcode_automatic_F77=no
13873   module_cmds_F77=
13874   module_expsym_cmds_F77=
13875   always_export_symbols_F77=no
13876   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13877   # include_expsyms should be a list of space-separated symbols to be *always*
13878   # included in the symbol list
13879   include_expsyms_F77=
13880   # exclude_expsyms can be an extended regexp of symbols to exclude
13881   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13882   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13883   # as well as any symbol that contains `d'.
13884   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13885   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13886   # platforms (ab)use it in PIC code, but their linkers get confused if
13887   # the symbol is explicitly referenced.  Since portable code cannot
13888   # rely on this symbol name, it's probably fine to never include it in
13889   # preloaded symbol tables.
13890   # Exclude shared library initialization/finalization symbols.
13891   extract_expsyms_cmds=
13892   # Just being paranoid about ensuring that cc_basename is set.
13893   for cc_temp in $compiler""; do
13894   case $cc_temp in
13895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13897     \-*) ;;
13898     *) break;;
13899   esac
13900 done
13901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13902
13903   case $host_os in
13904   cygwin* | mingw* | pw32*)
13905     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13906     # When not using gcc, we currently assume that we are using
13907     # Microsoft Visual C++.
13908     if test "$GCC" != yes; then
13909       with_gnu_ld=no
13910     fi
13911     ;;
13912   interix*)
13913     # we just hope/assume this is gcc and not c89 (= MSVC++)
13914     with_gnu_ld=yes
13915     ;;
13916   openbsd*)
13917     with_gnu_ld=no
13918     ;;
13919   esac
13920
13921   ld_shlibs_F77=yes
13922   if test "$with_gnu_ld" = yes; then
13923     # If archive_cmds runs LD, not CC, wlarc should be empty
13924     wlarc='${wl}'
13925
13926     # Set some defaults for GNU ld with shared library support. These
13927     # are reset later if shared libraries are not supported. Putting them
13928     # here allows them to be overridden if necessary.
13929     runpath_var=LD_RUN_PATH
13930     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13931     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13932     # ancient GNU ld didn't support --whole-archive et. al.
13933     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13934         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13935       else
13936         whole_archive_flag_spec_F77=
13937     fi
13938     supports_anon_versioning=no
13939     case `$LD -v 2>/dev/null` in
13940       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13941       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13942       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13943       *\ 2.11.*) ;; # other 2.11 versions
13944       *) supports_anon_versioning=yes ;;
13945     esac
13946
13947     # See if GNU ld supports shared libraries.
13948     case $host_os in
13949     aix[3-9]*)
13950       # On AIX/PPC, the GNU linker is very broken
13951       if test "$host_cpu" != ia64; then
13952         ld_shlibs_F77=no
13953         cat <<EOF 1>&2
13954
13955 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13956 *** to be unable to reliably create shared libraries on AIX.
13957 *** Therefore, libtool is disabling shared libraries support.  If you
13958 *** really care for shared libraries, you may want to modify your PATH
13959 *** so that a non-GNU linker is found, and then restart.
13960
13961 EOF
13962       fi
13963       ;;
13964
13965     amigaos*)
13966       archive_cmds_F77='$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)'
13967       hardcode_libdir_flag_spec_F77='-L$libdir'
13968       hardcode_minus_L_F77=yes
13969
13970       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13971       # that the semantics of dynamic libraries on AmigaOS, at least up
13972       # to version 4, is to share data among multiple programs linked
13973       # with the same dynamic library.  Since this doesn't match the
13974       # behavior of shared libraries on other platforms, we can't use
13975       # them.
13976       ld_shlibs_F77=no
13977       ;;
13978
13979     beos*)
13980       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13981         allow_undefined_flag_F77=unsupported
13982         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13983         # support --undefined.  This deserves some investigation.  FIXME
13984         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13985       else
13986         ld_shlibs_F77=no
13987       fi
13988       ;;
13989
13990     cygwin* | mingw* | pw32*)
13991       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13992       # as there is no search path for DLLs.
13993       hardcode_libdir_flag_spec_F77='-L$libdir'
13994       allow_undefined_flag_F77=unsupported
13995       always_export_symbols_F77=no
13996       enable_shared_with_static_runtimes_F77=yes
13997       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13998
13999       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14000         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14001         # If the export-symbols file already is a .def file (1st line
14002         # is EXPORTS), use it as is; otherwise, prepend...
14003         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14004           cp $export_symbols $output_objdir/$soname.def;
14005         else
14006           echo EXPORTS > $output_objdir/$soname.def;
14007           cat $export_symbols >> $output_objdir/$soname.def;
14008         fi~
14009         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14010       else
14011         ld_shlibs_F77=no
14012       fi
14013       ;;
14014
14015     interix[3-9]*)
14016       hardcode_direct_F77=no
14017       hardcode_shlibpath_var_F77=no
14018       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14019       export_dynamic_flag_spec_F77='${wl}-E'
14020       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14021       # Instead, shared libraries are loaded at an image base (0x10000000 by
14022       # default) and relocated if they conflict, which is a slow very memory
14023       # consuming and fragmenting process.  To avoid this, we pick a random,
14024       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14025       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14026       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14027       archive_expsym_cmds_F77='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'
14028       ;;
14029
14030     gnu* | linux* | k*bsd*-gnu)
14031       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032         tmp_addflag=
14033         case $cc_basename,$host_cpu in
14034         pgcc*)                          # Portland Group C compiler
14035           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14036           tmp_addflag=' $pic_flag'
14037           ;;
14038         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14039           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14040           tmp_addflag=' $pic_flag -Mnomain' ;;
14041         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14042           tmp_addflag=' -i_dynamic' ;;
14043         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14044           tmp_addflag=' -i_dynamic -nofor_main' ;;
14045         ifc* | ifort*)                  # Intel Fortran compiler
14046           tmp_addflag=' -nofor_main' ;;
14047         esac
14048         case `$CC -V 2>&1 | sed 5q` in
14049         *Sun\ C*)                       # Sun C 5.9
14050           whole_archive_flag_spec_F77='${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'
14051           tmp_sharedflag='-G' ;;
14052         *Sun\ F*)                       # Sun Fortran 8.3
14053           tmp_sharedflag='-G' ;;
14054         *)
14055           tmp_sharedflag='-shared' ;;
14056         esac
14057         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14058
14059         if test $supports_anon_versioning = yes; then
14060           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14061   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14062   $echo "local: *; };" >> $output_objdir/$libname.ver~
14063           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14064         fi
14065       else
14066         ld_shlibs_F77=no
14067       fi
14068       ;;
14069
14070     netbsd*)
14071       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14072         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14073         wlarc=
14074       else
14075         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14077       fi
14078       ;;
14079
14080     solaris*)
14081       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14082         ld_shlibs_F77=no
14083         cat <<EOF 1>&2
14084
14085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14086 *** create shared libraries on Solaris systems.  Therefore, libtool
14087 *** is disabling shared libraries support.  We urge you to upgrade GNU
14088 *** binutils to release 2.9.1 or newer.  Another option is to modify
14089 *** your PATH or compiler configuration so that the native linker is
14090 *** used, and then restart.
14091
14092 EOF
14093       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14094         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14095         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14096       else
14097         ld_shlibs_F77=no
14098       fi
14099       ;;
14100
14101     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14102       case `$LD -v 2>&1` in
14103         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14104         ld_shlibs_F77=no
14105         cat <<_LT_EOF 1>&2
14106
14107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14108 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14109 *** is disabling shared libraries support.  We urge you to upgrade GNU
14110 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14111 *** your PATH or compiler configuration so that the native linker is
14112 *** used, and then restart.
14113
14114 _LT_EOF
14115         ;;
14116         *)
14117           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14118             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14119             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14120             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14121           else
14122             ld_shlibs_F77=no
14123           fi
14124         ;;
14125       esac
14126       ;;
14127
14128     sunos4*)
14129       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14130       wlarc=
14131       hardcode_direct_F77=yes
14132       hardcode_shlibpath_var_F77=no
14133       ;;
14134
14135     *)
14136       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14137         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14139       else
14140         ld_shlibs_F77=no
14141       fi
14142       ;;
14143     esac
14144
14145     if test "$ld_shlibs_F77" = no; then
14146       runpath_var=
14147       hardcode_libdir_flag_spec_F77=
14148       export_dynamic_flag_spec_F77=
14149       whole_archive_flag_spec_F77=
14150     fi
14151   else
14152     # PORTME fill in a description of your system's linker (not GNU ld)
14153     case $host_os in
14154     aix3*)
14155       allow_undefined_flag_F77=unsupported
14156       always_export_symbols_F77=yes
14157       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14158       # Note: this linker hardcodes the directories in LIBPATH if there
14159       # are no directories specified by -L.
14160       hardcode_minus_L_F77=yes
14161       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14162         # Neither direct hardcoding nor static linking is supported with a
14163         # broken collect2.
14164         hardcode_direct_F77=unsupported
14165       fi
14166       ;;
14167
14168     aix[4-9]*)
14169       if test "$host_cpu" = ia64; then
14170         # On IA64, the linker does run time linking by default, so we don't
14171         # have to do anything special.
14172         aix_use_runtimelinking=no
14173         exp_sym_flag='-Bexport'
14174         no_entry_flag=""
14175       else
14176         # If we're using GNU nm, then we don't want the "-C" option.
14177         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14178         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14179           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14180         else
14181           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14182         fi
14183         aix_use_runtimelinking=no
14184
14185         # Test if we are trying to use run time linking or normal
14186         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14187         # need to do runtime linking.
14188         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14189           for ld_flag in $LDFLAGS; do
14190           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14191             aix_use_runtimelinking=yes
14192             break
14193           fi
14194           done
14195           ;;
14196         esac
14197
14198         exp_sym_flag='-bexport'
14199         no_entry_flag='-bnoentry'
14200       fi
14201
14202       # When large executables or shared objects are built, AIX ld can
14203       # have problems creating the table of contents.  If linking a library
14204       # or program results in "error TOC overflow" add -mminimal-toc to
14205       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14206       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14207
14208       archive_cmds_F77=''
14209       hardcode_direct_F77=yes
14210       hardcode_libdir_separator_F77=':'
14211       link_all_deplibs_F77=yes
14212
14213       if test "$GCC" = yes; then
14214         case $host_os in aix4.[012]|aix4.[012].*)
14215         # We only want to do this on AIX 4.2 and lower, the check
14216         # below for broken collect2 doesn't work under 4.3+
14217           collect2name=`${CC} -print-prog-name=collect2`
14218           if test -f "$collect2name" && \
14219            strings "$collect2name" | grep resolve_lib_name >/dev/null
14220           then
14221           # We have reworked collect2
14222           :
14223           else
14224           # We have old collect2
14225           hardcode_direct_F77=unsupported
14226           # It fails to find uninstalled libraries when the uninstalled
14227           # path is not listed in the libpath.  Setting hardcode_minus_L
14228           # to unsupported forces relinking
14229           hardcode_minus_L_F77=yes
14230           hardcode_libdir_flag_spec_F77='-L$libdir'
14231           hardcode_libdir_separator_F77=
14232           fi
14233           ;;
14234         esac
14235         shared_flag='-shared'
14236         if test "$aix_use_runtimelinking" = yes; then
14237           shared_flag="$shared_flag "'${wl}-G'
14238         fi
14239       else
14240         # not using gcc
14241         if test "$host_cpu" = ia64; then
14242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14243         # chokes on -Wl,-G. The following line is correct:
14244           shared_flag='-G'
14245         else
14246           if test "$aix_use_runtimelinking" = yes; then
14247             shared_flag='${wl}-G'
14248           else
14249             shared_flag='${wl}-bM:SRE'
14250           fi
14251         fi
14252       fi
14253
14254       # It seems that -bexpall does not export symbols beginning with
14255       # underscore (_), so it is better to generate a list of symbols to export.
14256       always_export_symbols_F77=yes
14257       if test "$aix_use_runtimelinking" = yes; then
14258         # Warning - without using the other runtime loading flags (-brtl),
14259         # -berok will link without error, but may produce a broken library.
14260         allow_undefined_flag_F77='-berok'
14261        # Determine the default libpath from the value encoded in an empty executable.
14262        cat > conftest.$ac_ext <<_ACEOF
14263       program main
14264
14265       end
14266 _ACEOF
14267 if ac_fn_f77_try_link "$LINENO"; then :
14268
14269 lt_aix_libpath_sed='
14270     /Import File Strings/,/^$/ {
14271         /^0/ {
14272             s/^0  *\(.*\)$/\1/
14273             p
14274         }
14275     }'
14276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277 # Check for a 64-bit object if we didn't find anything.
14278 if test -z "$aix_libpath"; then
14279   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 fi
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext \
14283     conftest$ac_exeext conftest.$ac_ext
14284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14285
14286        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14287         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14288        else
14289         if test "$host_cpu" = ia64; then
14290           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14291           allow_undefined_flag_F77="-z nodefs"
14292           archive_expsym_cmds_F77="\$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"
14293         else
14294          # Determine the default libpath from the value encoded in an empty executable.
14295          cat > conftest.$ac_ext <<_ACEOF
14296       program main
14297
14298       end
14299 _ACEOF
14300 if ac_fn_f77_try_link "$LINENO"; then :
14301
14302 lt_aix_libpath_sed='
14303     /Import File Strings/,/^$/ {
14304         /^0/ {
14305             s/^0  *\(.*\)$/\1/
14306             p
14307         }
14308     }'
14309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14310 # Check for a 64-bit object if we didn't find anything.
14311 if test -z "$aix_libpath"; then
14312   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14313 fi
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext \
14316     conftest$ac_exeext conftest.$ac_ext
14317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14318
14319          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14320           # Warning - without using the other run time loading flags,
14321           # -berok will link without error, but may produce a broken library.
14322           no_undefined_flag_F77=' ${wl}-bernotok'
14323           allow_undefined_flag_F77=' ${wl}-berok'
14324           # Exported symbols can be pulled into shared objects from archives
14325           whole_archive_flag_spec_F77='$convenience'
14326           archive_cmds_need_lc_F77=yes
14327           # This is similar to how AIX traditionally builds its shared libraries.
14328           archive_expsym_cmds_F77="\$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'
14329         fi
14330       fi
14331       ;;
14332
14333     amigaos*)
14334       archive_cmds_F77='$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)'
14335       hardcode_libdir_flag_spec_F77='-L$libdir'
14336       hardcode_minus_L_F77=yes
14337       # see comment about different semantics on the GNU ld section
14338       ld_shlibs_F77=no
14339       ;;
14340
14341     bsdi[45]*)
14342       export_dynamic_flag_spec_F77=-rdynamic
14343       ;;
14344
14345     cygwin* | mingw* | pw32*)
14346       # When not using gcc, we currently assume that we are using
14347       # Microsoft Visual C++.
14348       # hardcode_libdir_flag_spec is actually meaningless, as there is
14349       # no search path for DLLs.
14350       hardcode_libdir_flag_spec_F77=' '
14351       allow_undefined_flag_F77=unsupported
14352       # Tell ltmain to make .lib files, not .a files.
14353       libext=lib
14354       # Tell ltmain to make .dll files, not .so files.
14355       shrext_cmds=".dll"
14356       # FIXME: Setting linknames here is a bad hack.
14357       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14358       # The linker will automatically build a .lib file if we build a DLL.
14359       old_archive_From_new_cmds_F77='true'
14360       # FIXME: Should let the user specify the lib program.
14361       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14362       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14363       enable_shared_with_static_runtimes_F77=yes
14364       ;;
14365
14366     darwin* | rhapsody*)
14367       case $host_os in
14368         rhapsody* | darwin1.[012])
14369          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14370          ;;
14371        *) # Darwin 1.3 on
14372          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14373            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14374          else
14375            case ${MACOSX_DEPLOYMENT_TARGET} in
14376              10.[012])
14377                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14378                ;;
14379              10.*)
14380                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14381                ;;
14382            esac
14383          fi
14384          ;;
14385       esac
14386       archive_cmds_need_lc_F77=no
14387       hardcode_direct_F77=no
14388       hardcode_automatic_F77=yes
14389       hardcode_shlibpath_var_F77=unsupported
14390       whole_archive_flag_spec_F77=''
14391       link_all_deplibs_F77=yes
14392     if test "$GCC" = yes ; then
14393         output_verbose_link_cmd='echo'
14394         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14395         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14396         archive_expsym_cmds_F77="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}"
14397         module_expsym_cmds_F77="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}"
14398     else
14399       case $cc_basename in
14400         xlc*)
14401          output_verbose_link_cmd='echo'
14402          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14403          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14404           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14405          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14406           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14407           ;;
14408        *)
14409          ld_shlibs_F77=no
14410           ;;
14411       esac
14412     fi
14413       ;;
14414
14415     dgux*)
14416       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417       hardcode_libdir_flag_spec_F77='-L$libdir'
14418       hardcode_shlibpath_var_F77=no
14419       ;;
14420
14421     freebsd1*)
14422       ld_shlibs_F77=no
14423       ;;
14424
14425     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14426     # support.  Future versions do this automatically, but an explicit c++rt0.o
14427     # does not break anything, and helps significantly (at the cost of a little
14428     # extra space).
14429     freebsd2.2*)
14430       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14431       hardcode_libdir_flag_spec_F77='-R$libdir'
14432       hardcode_direct_F77=yes
14433       hardcode_shlibpath_var_F77=no
14434       ;;
14435
14436     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14437     freebsd2*)
14438       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14439       hardcode_direct_F77=yes
14440       hardcode_minus_L_F77=yes
14441       hardcode_shlibpath_var_F77=no
14442       ;;
14443
14444     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14445     freebsd* | dragonfly*)
14446       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14447       hardcode_libdir_flag_spec_F77='-R$libdir'
14448       hardcode_direct_F77=yes
14449       hardcode_shlibpath_var_F77=no
14450       ;;
14451
14452     hpux9*)
14453       if test "$GCC" = yes; then
14454         archive_cmds_F77='$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'
14455       else
14456         archive_cmds_F77='$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'
14457       fi
14458       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14459       hardcode_libdir_separator_F77=:
14460       hardcode_direct_F77=yes
14461
14462       # hardcode_minus_L: Not really in the search PATH,
14463       # but as the default location of the library.
14464       hardcode_minus_L_F77=yes
14465       export_dynamic_flag_spec_F77='${wl}-E'
14466       ;;
14467
14468     hpux10*)
14469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14470         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14471       else
14472         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14473       fi
14474       if test "$with_gnu_ld" = no; then
14475         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14476         hardcode_libdir_separator_F77=:
14477
14478         hardcode_direct_F77=yes
14479         export_dynamic_flag_spec_F77='${wl}-E'
14480
14481         # hardcode_minus_L: Not really in the search PATH,
14482         # but as the default location of the library.
14483         hardcode_minus_L_F77=yes
14484       fi
14485       ;;
14486
14487     hpux11*)
14488       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14489         case $host_cpu in
14490         hppa*64*)
14491           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492           ;;
14493         ia64*)
14494           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14495           ;;
14496         *)
14497           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14498           ;;
14499         esac
14500       else
14501         case $host_cpu in
14502         hppa*64*)
14503           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14504           ;;
14505         ia64*)
14506           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14507           ;;
14508         *)
14509           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14510           ;;
14511         esac
14512       fi
14513       if test "$with_gnu_ld" = no; then
14514         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14515         hardcode_libdir_separator_F77=:
14516
14517         case $host_cpu in
14518         hppa*64*|ia64*)
14519           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14520           hardcode_direct_F77=no
14521           hardcode_shlibpath_var_F77=no
14522           ;;
14523         *)
14524           hardcode_direct_F77=yes
14525           export_dynamic_flag_spec_F77='${wl}-E'
14526
14527           # hardcode_minus_L: Not really in the search PATH,
14528           # but as the default location of the library.
14529           hardcode_minus_L_F77=yes
14530           ;;
14531         esac
14532       fi
14533       ;;
14534
14535     irix5* | irix6* | nonstopux*)
14536       if test "$GCC" = yes; then
14537         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14538       else
14539         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14540         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14541       fi
14542       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14543       hardcode_libdir_separator_F77=:
14544       link_all_deplibs_F77=yes
14545       ;;
14546
14547     netbsd*)
14548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14549         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14550       else
14551         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14552       fi
14553       hardcode_libdir_flag_spec_F77='-R$libdir'
14554       hardcode_direct_F77=yes
14555       hardcode_shlibpath_var_F77=no
14556       ;;
14557
14558     newsos6)
14559       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560       hardcode_direct_F77=yes
14561       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14562       hardcode_libdir_separator_F77=:
14563       hardcode_shlibpath_var_F77=no
14564       ;;
14565
14566     openbsd*)
14567       if test -f /usr/libexec/ld.so; then
14568         hardcode_direct_F77=yes
14569         hardcode_shlibpath_var_F77=no
14570         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14571           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14572           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14573           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14574           export_dynamic_flag_spec_F77='${wl}-E'
14575         else
14576           case $host_os in
14577            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14578              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14579              hardcode_libdir_flag_spec_F77='-R$libdir'
14580              ;;
14581            *)
14582              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14583              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14584              ;;
14585           esac
14586         fi
14587       else
14588         ld_shlibs_F77=no
14589       fi
14590       ;;
14591
14592     os2*)
14593       hardcode_libdir_flag_spec_F77='-L$libdir'
14594       hardcode_minus_L_F77=yes
14595       allow_undefined_flag_F77=unsupported
14596       archive_cmds_F77='$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'
14597       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14598       ;;
14599
14600     osf3*)
14601       if test "$GCC" = yes; then
14602         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14603         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14604       else
14605         allow_undefined_flag_F77=' -expect_unresolved \*'
14606         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14607       fi
14608       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14609       hardcode_libdir_separator_F77=:
14610       ;;
14611
14612     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14613       if test "$GCC" = yes; then
14614         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14615         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14616         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14617       else
14618         allow_undefined_flag_F77=' -expect_unresolved \*'
14619         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14620         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14621         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14622
14623         # Both c and cxx compiler support -rpath directly
14624         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14625       fi
14626       hardcode_libdir_separator_F77=:
14627       ;;
14628
14629     solaris*)
14630       no_undefined_flag_F77=' -z text'
14631       if test "$GCC" = yes; then
14632         wlarc='${wl}'
14633         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14634         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14635           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14636       else
14637         wlarc=''
14638         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14640         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14641       fi
14642       hardcode_libdir_flag_spec_F77='-R$libdir'
14643       hardcode_shlibpath_var_F77=no
14644       case $host_os in
14645       solaris2.[0-5] | solaris2.[0-5].*) ;;
14646       *)
14647         # The compiler driver will combine and reorder linker options,
14648         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14649         # but is careful enough not to reorder.
14650         # Supported since Solaris 2.6 (maybe 2.5.1?)
14651         if test "$GCC" = yes; then
14652           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14653         else
14654           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14655         fi
14656         ;;
14657       esac
14658       link_all_deplibs_F77=yes
14659       ;;
14660
14661     sunos4*)
14662       if test "x$host_vendor" = xsequent; then
14663         # Use $CC to link under sequent, because it throws in some extra .o
14664         # files that make .init and .fini sections work.
14665         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14666       else
14667         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14668       fi
14669       hardcode_libdir_flag_spec_F77='-L$libdir'
14670       hardcode_direct_F77=yes
14671       hardcode_minus_L_F77=yes
14672       hardcode_shlibpath_var_F77=no
14673       ;;
14674
14675     sysv4)
14676       case $host_vendor in
14677         sni)
14678           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679           hardcode_direct_F77=yes # is this really true???
14680         ;;
14681         siemens)
14682           ## LD is ld it makes a PLAMLIB
14683           ## CC just makes a GrossModule.
14684           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14685           reload_cmds_F77='$CC -r -o $output$reload_objs'
14686           hardcode_direct_F77=no
14687         ;;
14688         motorola)
14689           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14690           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14691         ;;
14692       esac
14693       runpath_var='LD_RUN_PATH'
14694       hardcode_shlibpath_var_F77=no
14695       ;;
14696
14697     sysv4.3*)
14698       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699       hardcode_shlibpath_var_F77=no
14700       export_dynamic_flag_spec_F77='-Bexport'
14701       ;;
14702
14703     sysv4*MP*)
14704       if test -d /usr/nec; then
14705         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14706         hardcode_shlibpath_var_F77=no
14707         runpath_var=LD_RUN_PATH
14708         hardcode_runpath_var=yes
14709         ld_shlibs_F77=yes
14710       fi
14711       ;;
14712
14713     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14714       no_undefined_flag_F77='${wl}-z,text'
14715       archive_cmds_need_lc_F77=no
14716       hardcode_shlibpath_var_F77=no
14717       runpath_var='LD_RUN_PATH'
14718
14719       if test "$GCC" = yes; then
14720         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14721         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14722       else
14723         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14725       fi
14726       ;;
14727
14728     sysv5* | sco3.2v5* | sco5v6*)
14729       # Note: We can NOT use -z defs as we might desire, because we do not
14730       # link with -lc, and that would cause any symbols used from libc to
14731       # always be unresolved, which means just about no library would
14732       # ever link correctly.  If we're not using GNU ld we use -z text
14733       # though, which does catch some bad symbols but isn't as heavy-handed
14734       # as -z defs.
14735       no_undefined_flag_F77='${wl}-z,text'
14736       allow_undefined_flag_F77='${wl}-z,nodefs'
14737       archive_cmds_need_lc_F77=no
14738       hardcode_shlibpath_var_F77=no
14739       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14740       hardcode_libdir_separator_F77=':'
14741       link_all_deplibs_F77=yes
14742       export_dynamic_flag_spec_F77='${wl}-Bexport'
14743       runpath_var='LD_RUN_PATH'
14744
14745       if test "$GCC" = yes; then
14746         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14747         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14748       else
14749         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14751       fi
14752       ;;
14753
14754     uts4*)
14755       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756       hardcode_libdir_flag_spec_F77='-L$libdir'
14757       hardcode_shlibpath_var_F77=no
14758       ;;
14759
14760     *)
14761       ld_shlibs_F77=no
14762       ;;
14763     esac
14764   fi
14765
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14767 $as_echo "$ld_shlibs_F77" >&6; }
14768 test "$ld_shlibs_F77" = no && can_build_shared=no
14769
14770 #
14771 # Do we need to explicitly link libc?
14772 #
14773 case "x$archive_cmds_need_lc_F77" in
14774 x|xyes)
14775   # Assume -lc should be added
14776   archive_cmds_need_lc_F77=yes
14777
14778   if test "$enable_shared" = yes && test "$GCC" = yes; then
14779     case $archive_cmds_F77 in
14780     *'~'*)
14781       # FIXME: we may have to deal with multi-command sequences.
14782       ;;
14783     '$CC '*)
14784       # Test whether the compiler implicitly links with -lc since on some
14785       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14786       # to ld, don't add -lc before -lgcc.
14787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14789       $rm conftest*
14790       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14791
14792       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14793   (eval $ac_compile) 2>&5
14794   ac_status=$?
14795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14796   test $ac_status = 0; } 2>conftest.err; then
14797         soname=conftest
14798         lib=conftest
14799         libobjs=conftest.$ac_objext
14800         deplibs=
14801         wl=$lt_prog_compiler_wl_F77
14802         pic_flag=$lt_prog_compiler_pic_F77
14803         compiler_flags=-v
14804         linker_flags=-v
14805         verstring=
14806         output_objdir=.
14807         libname=conftest
14808         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14809         allow_undefined_flag_F77=
14810         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14811   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14812   ac_status=$?
14813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814   test $ac_status = 0; }
14815         then
14816           archive_cmds_need_lc_F77=no
14817         else
14818           archive_cmds_need_lc_F77=yes
14819         fi
14820         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14821       else
14822         cat conftest.err 1>&5
14823       fi
14824       $rm conftest*
14825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14826 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14827       ;;
14828     esac
14829   fi
14830   ;;
14831 esac
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14835 library_names_spec=
14836 libname_spec='lib$name'
14837 soname_spec=
14838 shrext_cmds=".so"
14839 postinstall_cmds=
14840 postuninstall_cmds=
14841 finish_cmds=
14842 finish_eval=
14843 shlibpath_var=
14844 shlibpath_overrides_runpath=unknown
14845 version_type=none
14846 dynamic_linker="$host_os ld.so"
14847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14848
14849 need_lib_prefix=unknown
14850 hardcode_into_libs=no
14851
14852 # when you set need_version to no, make sure it does not cause -set_version
14853 # flags to be left without arguments
14854 need_version=unknown
14855
14856 case $host_os in
14857 aix3*)
14858   version_type=linux
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14860   shlibpath_var=LIBPATH
14861
14862   # AIX 3 has no versioning support, so we append a major version to the name.
14863   soname_spec='${libname}${release}${shared_ext}$major'
14864   ;;
14865
14866 aix[4-9]*)
14867   version_type=linux
14868   need_lib_prefix=no
14869   need_version=no
14870   hardcode_into_libs=yes
14871   if test "$host_cpu" = ia64; then
14872     # AIX 5 supports IA64
14873     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14874     shlibpath_var=LD_LIBRARY_PATH
14875   else
14876     # With GCC up to 2.95.x, collect2 would create an import file
14877     # for dependence libraries.  The import file would start with
14878     # the line `#! .'.  This would cause the generated library to
14879     # depend on `.', always an invalid library.  This was fixed in
14880     # development snapshots of GCC prior to 3.0.
14881     case $host_os in
14882       aix4 | aix4.[01] | aix4.[01].*)
14883       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14884            echo ' yes '
14885            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14886         :
14887       else
14888         can_build_shared=no
14889       fi
14890       ;;
14891     esac
14892     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14893     # soname into executable. Probably we can add versioning support to
14894     # collect2, so additional links can be useful in future.
14895     if test "$aix_use_runtimelinking" = yes; then
14896       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14897       # instead of lib<name>.a to let people know that these are not
14898       # typical AIX shared libraries.
14899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900     else
14901       # We preserve .a as extension for shared libraries through AIX4.2
14902       # and later when we are not doing run time linking.
14903       library_names_spec='${libname}${release}.a $libname.a'
14904       soname_spec='${libname}${release}${shared_ext}$major'
14905     fi
14906     shlibpath_var=LIBPATH
14907   fi
14908   ;;
14909
14910 amigaos*)
14911   library_names_spec='$libname.ixlibrary $libname.a'
14912   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14913   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'
14914   ;;
14915
14916 beos*)
14917   library_names_spec='${libname}${shared_ext}'
14918   dynamic_linker="$host_os ld.so"
14919   shlibpath_var=LIBRARY_PATH
14920   ;;
14921
14922 bsdi[45]*)
14923   version_type=linux
14924   need_version=no
14925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926   soname_spec='${libname}${release}${shared_ext}$major'
14927   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14928   shlibpath_var=LD_LIBRARY_PATH
14929   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14930   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14931   # the default ld.so.conf also contains /usr/contrib/lib and
14932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14933   # libtool to hard-code these into programs
14934   ;;
14935
14936 cygwin* | mingw* | pw32*)
14937   version_type=windows
14938   shrext_cmds=".dll"
14939   need_version=no
14940   need_lib_prefix=no
14941
14942   case $GCC,$host_os in
14943   yes,cygwin* | yes,mingw* | yes,pw32*)
14944     library_names_spec='$libname.dll.a'
14945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14946     postinstall_cmds='base_file=`basename \${file}`~
14947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14948       dldir=$destdir/`dirname \$dlpath`~
14949       test -d \$dldir || mkdir -p \$dldir~
14950       $install_prog $dir/$dlname \$dldir/$dlname~
14951       chmod a+x \$dldir/$dlname'
14952     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14953       dlpath=$dir/\$dldll~
14954        $rm \$dlpath'
14955     shlibpath_overrides_runpath=yes
14956
14957     case $host_os in
14958     cygwin*)
14959       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14960       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14961       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14962       ;;
14963     mingw*)
14964       # MinGW DLLs use traditional 'lib' prefix
14965       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14966       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14967       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14968         # It is most probably a Windows format PATH printed by
14969         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14970         # path with ; separators, and with drive letters. We can handle the
14971         # drive letters (cygwin fileutils understands them), so leave them,
14972         # especially as we might pass files found there to a mingw objdump,
14973         # which wouldn't understand a cygwinified path. Ahh.
14974         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14975       else
14976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14977       fi
14978       ;;
14979     pw32*)
14980       # pw32 DLLs use 'pw' prefix rather than 'lib'
14981       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14982       ;;
14983     esac
14984     ;;
14985
14986   *)
14987     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14988     ;;
14989   esac
14990   dynamic_linker='Win32 ld.exe'
14991   # FIXME: first we should search . and the directory the executable is in
14992   shlibpath_var=PATH
14993   ;;
14994
14995 darwin* | rhapsody*)
14996   dynamic_linker="$host_os dyld"
14997   version_type=darwin
14998   need_lib_prefix=no
14999   need_version=no
15000   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15001   soname_spec='${libname}${release}${major}$shared_ext'
15002   shlibpath_overrides_runpath=yes
15003   shlibpath_var=DYLD_LIBRARY_PATH
15004   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15005
15006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15007   ;;
15008
15009 dgux*)
15010   version_type=linux
15011   need_lib_prefix=no
15012   need_version=no
15013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15014   soname_spec='${libname}${release}${shared_ext}$major'
15015   shlibpath_var=LD_LIBRARY_PATH
15016   ;;
15017
15018 freebsd1*)
15019   dynamic_linker=no
15020   ;;
15021
15022 freebsd* | dragonfly*)
15023   # DragonFly does not have aout.  When/if they implement a new
15024   # versioning mechanism, adjust this.
15025   if test -x /usr/bin/objformat; then
15026     objformat=`/usr/bin/objformat`
15027   else
15028     case $host_os in
15029     freebsd[123]*) objformat=aout ;;
15030     *) objformat=elf ;;
15031     esac
15032   fi
15033   version_type=freebsd-$objformat
15034   case $version_type in
15035     freebsd-elf*)
15036       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15037       need_version=no
15038       need_lib_prefix=no
15039       ;;
15040     freebsd-*)
15041       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15042       need_version=yes
15043       ;;
15044   esac
15045   shlibpath_var=LD_LIBRARY_PATH
15046   case $host_os in
15047   freebsd2*)
15048     shlibpath_overrides_runpath=yes
15049     ;;
15050   freebsd3.[01]* | freebsdelf3.[01]*)
15051     shlibpath_overrides_runpath=yes
15052     hardcode_into_libs=yes
15053     ;;
15054   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15055   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15056     shlibpath_overrides_runpath=no
15057     hardcode_into_libs=yes
15058     ;;
15059   *) # from 4.6 on, and DragonFly
15060     shlibpath_overrides_runpath=yes
15061     hardcode_into_libs=yes
15062     ;;
15063   esac
15064   ;;
15065
15066 gnu*)
15067   version_type=linux
15068   need_lib_prefix=no
15069   need_version=no
15070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15071   soname_spec='${libname}${release}${shared_ext}$major'
15072   shlibpath_var=LD_LIBRARY_PATH
15073   hardcode_into_libs=yes
15074   ;;
15075
15076 hpux9* | hpux10* | hpux11*)
15077   # Give a soname corresponding to the major version so that dld.sl refuses to
15078   # link against other versions.
15079   version_type=sunos
15080   need_lib_prefix=no
15081   need_version=no
15082   case $host_cpu in
15083   ia64*)
15084     shrext_cmds='.so'
15085     hardcode_into_libs=yes
15086     dynamic_linker="$host_os dld.so"
15087     shlibpath_var=LD_LIBRARY_PATH
15088     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090     soname_spec='${libname}${release}${shared_ext}$major'
15091     if test "X$HPUX_IA64_MODE" = X32; then
15092       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15093     else
15094       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15095     fi
15096     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15097     ;;
15098    hppa*64*)
15099      shrext_cmds='.sl'
15100      hardcode_into_libs=yes
15101      dynamic_linker="$host_os dld.sl"
15102      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15103      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15104      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105      soname_spec='${libname}${release}${shared_ext}$major'
15106      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15107      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108      ;;
15109    *)
15110     shrext_cmds='.sl'
15111     dynamic_linker="$host_os dld.sl"
15112     shlibpath_var=SHLIB_PATH
15113     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115     soname_spec='${libname}${release}${shared_ext}$major'
15116     ;;
15117   esac
15118   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15119   postinstall_cmds='chmod 555 $lib'
15120   ;;
15121
15122 interix[3-9]*)
15123   version_type=linux
15124   need_lib_prefix=no
15125   need_version=no
15126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15127   soname_spec='${libname}${release}${shared_ext}$major'
15128   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15129   shlibpath_var=LD_LIBRARY_PATH
15130   shlibpath_overrides_runpath=no
15131   hardcode_into_libs=yes
15132   ;;
15133
15134 irix5* | irix6* | nonstopux*)
15135   case $host_os in
15136     nonstopux*) version_type=nonstopux ;;
15137     *)
15138         if test "$lt_cv_prog_gnu_ld" = yes; then
15139                 version_type=linux
15140         else
15141                 version_type=irix
15142         fi ;;
15143   esac
15144   need_lib_prefix=no
15145   need_version=no
15146   soname_spec='${libname}${release}${shared_ext}$major'
15147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15148   case $host_os in
15149   irix5* | nonstopux*)
15150     libsuff= shlibsuff=
15151     ;;
15152   *)
15153     case $LD in # libtool.m4 will add one of these switches to LD
15154     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15155       libsuff= shlibsuff= libmagic=32-bit;;
15156     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15157       libsuff=32 shlibsuff=N32 libmagic=N32;;
15158     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15159       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15160     *) libsuff= shlibsuff= libmagic=never-match;;
15161     esac
15162     ;;
15163   esac
15164   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15165   shlibpath_overrides_runpath=no
15166   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15167   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15168   hardcode_into_libs=yes
15169   ;;
15170
15171 # No shared lib support for Linux oldld, aout, or coff.
15172 linux*oldld* | linux*aout* | linux*coff*)
15173   dynamic_linker=no
15174   ;;
15175
15176 # This must be Linux ELF.
15177 linux* | k*bsd*-gnu)
15178   version_type=linux
15179   need_lib_prefix=no
15180   need_version=no
15181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182   soname_spec='${libname}${release}${shared_ext}$major'
15183   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15184   shlibpath_var=LD_LIBRARY_PATH
15185   shlibpath_overrides_runpath=no
15186   # This implies no fast_install, which is unacceptable.
15187   # Some rework will be needed to allow for fast_install
15188   # before this can be enabled.
15189   hardcode_into_libs=yes
15190
15191   # Append ld.so.conf contents to the search path
15192   if test -f /etc/ld.so.conf; then
15193     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' ' '`
15194     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15195   fi
15196
15197   # We used to test for /lib/ld.so.1 and disable shared libraries on
15198   # powerpc, because MkLinux only supported shared libraries with the
15199   # GNU dynamic linker.  Since this was broken with cross compilers,
15200   # most powerpc-linux boxes support dynamic linking these days and
15201   # people can always --disable-shared, the test was removed, and we
15202   # assume the GNU/Linux dynamic linker is in use.
15203   dynamic_linker='GNU/Linux ld.so'
15204   ;;
15205
15206 netbsd*)
15207   version_type=sunos
15208   need_lib_prefix=no
15209   need_version=no
15210   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15212     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15213     dynamic_linker='NetBSD (a.out) ld.so'
15214   else
15215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15216     soname_spec='${libname}${release}${shared_ext}$major'
15217     dynamic_linker='NetBSD ld.elf_so'
15218   fi
15219   shlibpath_var=LD_LIBRARY_PATH
15220   shlibpath_overrides_runpath=yes
15221   hardcode_into_libs=yes
15222   ;;
15223
15224 newsos6)
15225   version_type=linux
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   shlibpath_overrides_runpath=yes
15229   ;;
15230
15231 nto-qnx*)
15232   version_type=linux
15233   need_lib_prefix=no
15234   need_version=no
15235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236   soname_spec='${libname}${release}${shared_ext}$major'
15237   shlibpath_var=LD_LIBRARY_PATH
15238   shlibpath_overrides_runpath=yes
15239   ;;
15240
15241 openbsd*)
15242   version_type=sunos
15243   sys_lib_dlsearch_path_spec="/usr/lib"
15244   need_lib_prefix=no
15245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15246   case $host_os in
15247     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15248     *)                         need_version=no  ;;
15249   esac
15250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15252   shlibpath_var=LD_LIBRARY_PATH
15253   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15254     case $host_os in
15255       openbsd2.[89] | openbsd2.[89].*)
15256         shlibpath_overrides_runpath=no
15257         ;;
15258       *)
15259         shlibpath_overrides_runpath=yes
15260         ;;
15261       esac
15262   else
15263     shlibpath_overrides_runpath=yes
15264   fi
15265   ;;
15266
15267 os2*)
15268   libname_spec='$name'
15269   shrext_cmds=".dll"
15270   need_lib_prefix=no
15271   library_names_spec='$libname${shared_ext} $libname.a'
15272   dynamic_linker='OS/2 ld.exe'
15273   shlibpath_var=LIBPATH
15274   ;;
15275
15276 osf3* | osf4* | osf5*)
15277   version_type=osf
15278   need_lib_prefix=no
15279   need_version=no
15280   soname_spec='${libname}${release}${shared_ext}$major'
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282   shlibpath_var=LD_LIBRARY_PATH
15283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15285   ;;
15286
15287 rdos*)
15288   dynamic_linker=no
15289   ;;
15290
15291 solaris*)
15292   version_type=linux
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   shlibpath_overrides_runpath=yes
15299   hardcode_into_libs=yes
15300   # ldd complains unless libraries are executable
15301   postinstall_cmds='chmod +x $lib'
15302   ;;
15303
15304 sunos4*)
15305   version_type=sunos
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15307   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15308   shlibpath_var=LD_LIBRARY_PATH
15309   shlibpath_overrides_runpath=yes
15310   if test "$with_gnu_ld" = yes; then
15311     need_lib_prefix=no
15312   fi
15313   need_version=yes
15314   ;;
15315
15316 sysv4 | sysv4.3*)
15317   version_type=linux
15318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319   soname_spec='${libname}${release}${shared_ext}$major'
15320   shlibpath_var=LD_LIBRARY_PATH
15321   case $host_vendor in
15322     sni)
15323       shlibpath_overrides_runpath=no
15324       need_lib_prefix=no
15325       export_dynamic_flag_spec='${wl}-Blargedynsym'
15326       runpath_var=LD_RUN_PATH
15327       ;;
15328     siemens)
15329       need_lib_prefix=no
15330       ;;
15331     motorola)
15332       need_lib_prefix=no
15333       need_version=no
15334       shlibpath_overrides_runpath=no
15335       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15336       ;;
15337   esac
15338   ;;
15339
15340 sysv4*MP*)
15341   if test -d /usr/nec ;then
15342     version_type=linux
15343     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15344     soname_spec='$libname${shared_ext}.$major'
15345     shlibpath_var=LD_LIBRARY_PATH
15346   fi
15347   ;;
15348
15349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15350   version_type=freebsd-elf
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15354   soname_spec='${libname}${release}${shared_ext}$major'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   hardcode_into_libs=yes
15357   if test "$with_gnu_ld" = yes; then
15358     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15359     shlibpath_overrides_runpath=no
15360   else
15361     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15362     shlibpath_overrides_runpath=yes
15363     case $host_os in
15364       sco3.2v5*)
15365         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15366         ;;
15367     esac
15368   fi
15369   sys_lib_dlsearch_path_spec='/usr/lib'
15370   ;;
15371
15372 uts4*)
15373   version_type=linux
15374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375   soname_spec='${libname}${release}${shared_ext}$major'
15376   shlibpath_var=LD_LIBRARY_PATH
15377   ;;
15378
15379 *)
15380   dynamic_linker=no
15381   ;;
15382 esac
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15384 $as_echo "$dynamic_linker" >&6; }
15385 test "$dynamic_linker" = no && can_build_shared=no
15386
15387 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15388   $as_echo_n "(cached) " >&6
15389 else
15390   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15391 fi
15392
15393 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15394 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15395   $as_echo_n "(cached) " >&6
15396 else
15397   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15398 fi
15399
15400 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15401
15402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15403 if test "$GCC" = yes; then
15404   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15405 fi
15406
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15409 hardcode_action_F77=
15410 if test -n "$hardcode_libdir_flag_spec_F77" || \
15411    test -n "$runpath_var_F77" || \
15412    test "X$hardcode_automatic_F77" = "Xyes" ; then
15413
15414   # We can hardcode non-existant directories.
15415   if test "$hardcode_direct_F77" != no &&
15416      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15417      # have to relink, otherwise we might link with an installed library
15418      # when we should be linking with a yet-to-be-installed one
15419      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15420      test "$hardcode_minus_L_F77" != no; then
15421     # Linking always hardcodes the temporary library directory.
15422     hardcode_action_F77=relink
15423   else
15424     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15425     hardcode_action_F77=immediate
15426   fi
15427 else
15428   # We cannot hardcode anything, or else we can only hardcode existing
15429   # directories.
15430   hardcode_action_F77=unsupported
15431 fi
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15433 $as_echo "$hardcode_action_F77" >&6; }
15434
15435 if test "$hardcode_action_F77" = relink; then
15436   # Fast installation is not supported
15437   enable_fast_install=no
15438 elif test "$shlibpath_overrides_runpath" = yes ||
15439      test "$enable_shared" = no; then
15440   # Fast installation is not necessary
15441   enable_fast_install=needless
15442 fi
15443
15444
15445 # The else clause should only fire when bootstrapping the
15446 # libtool distribution, otherwise you forgot to ship ltmain.sh
15447 # with your package, and you will get complaints that there are
15448 # no rules to generate ltmain.sh.
15449 if test -f "$ltmain"; then
15450   # See if we are running on zsh, and set the options which allow our commands through
15451   # without removal of \ escapes.
15452   if test -n "${ZSH_VERSION+set}" ; then
15453     setopt NO_GLOB_SUBST
15454   fi
15455   # Now quote all the things that may contain metacharacters while being
15456   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15457   # variables and quote the copies for generation of the libtool script.
15458   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15459     SED SHELL STRIP \
15460     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15461     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15462     deplibs_check_method reload_flag reload_cmds need_locks \
15463     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15464     lt_cv_sys_global_symbol_to_c_name_address \
15465     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15466     old_postinstall_cmds old_postuninstall_cmds \
15467     compiler_F77 \
15468     CC_F77 \
15469     LD_F77 \
15470     lt_prog_compiler_wl_F77 \
15471     lt_prog_compiler_pic_F77 \
15472     lt_prog_compiler_static_F77 \
15473     lt_prog_compiler_no_builtin_flag_F77 \
15474     export_dynamic_flag_spec_F77 \
15475     thread_safe_flag_spec_F77 \
15476     whole_archive_flag_spec_F77 \
15477     enable_shared_with_static_runtimes_F77 \
15478     old_archive_cmds_F77 \
15479     old_archive_from_new_cmds_F77 \
15480     predep_objects_F77 \
15481     postdep_objects_F77 \
15482     predeps_F77 \
15483     postdeps_F77 \
15484     compiler_lib_search_path_F77 \
15485     compiler_lib_search_dirs_F77 \
15486     archive_cmds_F77 \
15487     archive_expsym_cmds_F77 \
15488     postinstall_cmds_F77 \
15489     postuninstall_cmds_F77 \
15490     old_archive_from_expsyms_cmds_F77 \
15491     allow_undefined_flag_F77 \
15492     no_undefined_flag_F77 \
15493     export_symbols_cmds_F77 \
15494     hardcode_libdir_flag_spec_F77 \
15495     hardcode_libdir_flag_spec_ld_F77 \
15496     hardcode_libdir_separator_F77 \
15497     hardcode_automatic_F77 \
15498     module_cmds_F77 \
15499     module_expsym_cmds_F77 \
15500     lt_cv_prog_compiler_c_o_F77 \
15501     fix_srcfile_path_F77 \
15502     exclude_expsyms_F77 \
15503     include_expsyms_F77; do
15504
15505     case $var in
15506     old_archive_cmds_F77 | \
15507     old_archive_from_new_cmds_F77 | \
15508     archive_cmds_F77 | \
15509     archive_expsym_cmds_F77 | \
15510     module_cmds_F77 | \
15511     module_expsym_cmds_F77 | \
15512     old_archive_from_expsyms_cmds_F77 | \
15513     export_symbols_cmds_F77 | \
15514     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15515     postinstall_cmds | postuninstall_cmds | \
15516     old_postinstall_cmds | old_postuninstall_cmds | \
15517     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15518       # Double-quote double-evaled strings.
15519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15520       ;;
15521     *)
15522       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15523       ;;
15524     esac
15525   done
15526
15527   case $lt_echo in
15528   *'\$0 --fallback-echo"')
15529     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15530     ;;
15531   esac
15532
15533 cfgfile="$ofile"
15534
15535   cat <<__EOF__ >> "$cfgfile"
15536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15537
15538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15539
15540 # Shell to use when invoking shell scripts.
15541 SHELL=$lt_SHELL
15542
15543 # Whether or not to build shared libraries.
15544 build_libtool_libs=$enable_shared
15545
15546 # Whether or not to build static libraries.
15547 build_old_libs=$enable_static
15548
15549 # Whether or not to add -lc for building shared libraries.
15550 build_libtool_need_lc=$archive_cmds_need_lc_F77
15551
15552 # Whether or not to disallow shared libs when runtime libs are static
15553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15554
15555 # Whether or not to optimize for fast installation.
15556 fast_install=$enable_fast_install
15557
15558 # The host system.
15559 host_alias=$host_alias
15560 host=$host
15561 host_os=$host_os
15562
15563 # The build system.
15564 build_alias=$build_alias
15565 build=$build
15566 build_os=$build_os
15567
15568 # An echo program that does not interpret backslashes.
15569 echo=$lt_echo
15570
15571 # The archiver.
15572 AR=$lt_AR
15573 AR_FLAGS=$lt_AR_FLAGS
15574
15575 # A C compiler.
15576 LTCC=$lt_LTCC
15577
15578 # LTCC compiler flags.
15579 LTCFLAGS=$lt_LTCFLAGS
15580
15581 # A language-specific compiler.
15582 CC=$lt_compiler_F77
15583
15584 # Is the compiler the GNU C compiler?
15585 with_gcc=$GCC_F77
15586
15587 # An ERE matcher.
15588 EGREP=$lt_EGREP
15589
15590 # The linker used to build libraries.
15591 LD=$lt_LD_F77
15592
15593 # Whether we need hard or soft links.
15594 LN_S=$lt_LN_S
15595
15596 # A BSD-compatible nm program.
15597 NM=$lt_NM
15598
15599 # A symbol stripping program
15600 STRIP=$lt_STRIP
15601
15602 # Used to examine libraries when file_magic_cmd begins "file"
15603 MAGIC_CMD=$MAGIC_CMD
15604
15605 # Used on cygwin: DLL creation program.
15606 DLLTOOL="$DLLTOOL"
15607
15608 # Used on cygwin: object dumper.
15609 OBJDUMP="$OBJDUMP"
15610
15611 # Used on cygwin: assembler.
15612 AS="$AS"
15613
15614 # The name of the directory that contains temporary libtool files.
15615 objdir=$objdir
15616
15617 # How to create reloadable object files.
15618 reload_flag=$lt_reload_flag
15619 reload_cmds=$lt_reload_cmds
15620
15621 # How to pass a linker flag through the compiler.
15622 wl=$lt_lt_prog_compiler_wl_F77
15623
15624 # Object file suffix (normally "o").
15625 objext="$ac_objext"
15626
15627 # Old archive suffix (normally "a").
15628 libext="$libext"
15629
15630 # Shared library suffix (normally ".so").
15631 shrext_cmds='$shrext_cmds'
15632
15633 # Executable file suffix (normally "").
15634 exeext="$exeext"
15635
15636 # Additional compiler flags for building library objects.
15637 pic_flag=$lt_lt_prog_compiler_pic_F77
15638 pic_mode=$pic_mode
15639
15640 # What is the maximum length of a command?
15641 max_cmd_len=$lt_cv_sys_max_cmd_len
15642
15643 # Does compiler simultaneously support -c and -o options?
15644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15645
15646 # Must we lock files when doing compilation?
15647 need_locks=$lt_need_locks
15648
15649 # Do we need the lib prefix for modules?
15650 need_lib_prefix=$need_lib_prefix
15651
15652 # Do we need a version for libraries?
15653 need_version=$need_version
15654
15655 # Whether dlopen is supported.
15656 dlopen_support=$enable_dlopen
15657
15658 # Whether dlopen of programs is supported.
15659 dlopen_self=$enable_dlopen_self
15660
15661 # Whether dlopen of statically linked programs is supported.
15662 dlopen_self_static=$enable_dlopen_self_static
15663
15664 # Compiler flag to prevent dynamic linking.
15665 link_static_flag=$lt_lt_prog_compiler_static_F77
15666
15667 # Compiler flag to turn off builtin functions.
15668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15669
15670 # Compiler flag to allow reflexive dlopens.
15671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15672
15673 # Compiler flag to generate shared objects directly from archives.
15674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15675
15676 # Compiler flag to generate thread-safe objects.
15677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15678
15679 # Library versioning type.
15680 version_type=$version_type
15681
15682 # Format of library name prefix.
15683 libname_spec=$lt_libname_spec
15684
15685 # List of archive names.  First name is the real one, the rest are links.
15686 # The last name is the one that the linker finds with -lNAME.
15687 library_names_spec=$lt_library_names_spec
15688
15689 # The coded name of the library, if different from the real name.
15690 soname_spec=$lt_soname_spec
15691
15692 # Commands used to build and install an old-style archive.
15693 RANLIB=$lt_RANLIB
15694 old_archive_cmds=$lt_old_archive_cmds_F77
15695 old_postinstall_cmds=$lt_old_postinstall_cmds
15696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15697
15698 # Create an old-style archive from a shared archive.
15699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15700
15701 # Create a temporary old-style archive to link instead of a shared archive.
15702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15703
15704 # Commands used to build and install a shared archive.
15705 archive_cmds=$lt_archive_cmds_F77
15706 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15707 postinstall_cmds=$lt_postinstall_cmds
15708 postuninstall_cmds=$lt_postuninstall_cmds
15709
15710 # Commands used to build a loadable module (assumed same as above if empty)
15711 module_cmds=$lt_module_cmds_F77
15712 module_expsym_cmds=$lt_module_expsym_cmds_F77
15713
15714 # Commands to strip libraries.
15715 old_striplib=$lt_old_striplib
15716 striplib=$lt_striplib
15717
15718 # Dependencies to place before the objects being linked to create a
15719 # shared library.
15720 predep_objects=$lt_predep_objects_F77
15721
15722 # Dependencies to place after the objects being linked to create a
15723 # shared library.
15724 postdep_objects=$lt_postdep_objects_F77
15725
15726 # Dependencies to place before the objects being linked to create a
15727 # shared library.
15728 predeps=$lt_predeps_F77
15729
15730 # Dependencies to place after the objects being linked to create a
15731 # shared library.
15732 postdeps=$lt_postdeps_F77
15733
15734 # The directories searched by this compiler when creating a shared
15735 # library
15736 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15737
15738 # The library search path used internally by the compiler when linking
15739 # a shared library.
15740 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15741
15742 # Method to check whether dependent libraries are shared objects.
15743 deplibs_check_method=$lt_deplibs_check_method
15744
15745 # Command to use when deplibs_check_method == file_magic.
15746 file_magic_cmd=$lt_file_magic_cmd
15747
15748 # Flag that allows shared libraries with undefined symbols to be built.
15749 allow_undefined_flag=$lt_allow_undefined_flag_F77
15750
15751 # Flag that forces no undefined symbols.
15752 no_undefined_flag=$lt_no_undefined_flag_F77
15753
15754 # Commands used to finish a libtool library installation in a directory.
15755 finish_cmds=$lt_finish_cmds
15756
15757 # Same as above, but a single script fragment to be evaled but not shown.
15758 finish_eval=$lt_finish_eval
15759
15760 # Take the output of nm and produce a listing of raw symbols and C names.
15761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15762
15763 # Transform the output of nm in a proper C declaration
15764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15765
15766 # Transform the output of nm in a C name address pair
15767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15768
15769 # This is the shared library runtime path variable.
15770 runpath_var=$runpath_var
15771
15772 # This is the shared library path variable.
15773 shlibpath_var=$shlibpath_var
15774
15775 # Is shlibpath searched before the hard-coded library search path?
15776 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15777
15778 # How to hardcode a shared library path into an executable.
15779 hardcode_action=$hardcode_action_F77
15780
15781 # Whether we should hardcode library paths into libraries.
15782 hardcode_into_libs=$hardcode_into_libs
15783
15784 # Flag to hardcode \$libdir into a binary during linking.
15785 # This must work even if \$libdir does not exist.
15786 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15787
15788 # If ld is used when linking, flag to hardcode \$libdir into
15789 # a binary during linking. This must work even if \$libdir does
15790 # not exist.
15791 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15792
15793 # Whether we need a single -rpath flag with a separated argument.
15794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15795
15796 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15797 # resulting binary.
15798 hardcode_direct=$hardcode_direct_F77
15799
15800 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15801 # resulting binary.
15802 hardcode_minus_L=$hardcode_minus_L_F77
15803
15804 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15805 # the resulting binary.
15806 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15807
15808 # Set to yes if building a shared library automatically hardcodes DIR into the library
15809 # and all subsequent libraries and executables linked against it.
15810 hardcode_automatic=$hardcode_automatic_F77
15811
15812 # Variables whose values should be saved in libtool wrapper scripts and
15813 # restored at relink time.
15814 variables_saved_for_relink="$variables_saved_for_relink"
15815
15816 # Whether libtool must link a program against all its dependency libraries.
15817 link_all_deplibs=$link_all_deplibs_F77
15818
15819 # Compile-time system search path for libraries
15820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15821
15822 # Run-time system search path for libraries
15823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15824
15825 # Fix the shell variable \$srcfile for the compiler.
15826 fix_srcfile_path=$lt_fix_srcfile_path
15827
15828 # Set to yes if exported symbols are required.
15829 always_export_symbols=$always_export_symbols_F77
15830
15831 # The commands to list exported symbols.
15832 export_symbols_cmds=$lt_export_symbols_cmds_F77
15833
15834 # The commands to extract the exported symbol list from a shared archive.
15835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15836
15837 # Symbols that should not be listed in the preloaded symbols.
15838 exclude_expsyms=$lt_exclude_expsyms_F77
15839
15840 # Symbols that must always be exported.
15841 include_expsyms=$lt_include_expsyms_F77
15842
15843 # ### END LIBTOOL TAG CONFIG: $tagname
15844
15845 __EOF__
15846
15847
15848 else
15849   # If there is no Makefile yet, we rely on a make rule to execute
15850   # `config.status --recheck' to rerun these tests and create the
15851   # libtool script then.
15852   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15853   if test -f "$ltmain_in"; then
15854     test -f Makefile && make "$ltmain"
15855   fi
15856 fi
15857
15858
15859 ac_ext=c
15860 ac_cpp='$CPP $CPPFLAGS'
15861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15864
15865 CC="$lt_save_CC"
15866
15867         else
15868           tagname=""
15869         fi
15870         ;;
15871
15872       GCJ)
15873         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15874
15875
15876 # Source file extension for Java test sources.
15877 ac_ext=java
15878
15879 # Object file extension for compiled Java test sources.
15880 objext=o
15881 objext_GCJ=$objext
15882
15883 # Code to be used in simple compile tests
15884 lt_simple_compile_test_code="class foo {}"
15885
15886 # Code to be used in simple link tests
15887 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15888
15889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15890
15891 # If no C compiler was specified, use CC.
15892 LTCC=${LTCC-"$CC"}
15893
15894 # If no C compiler flags were specified, use CFLAGS.
15895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15896
15897 # Allow CC to be a program name with arguments.
15898 compiler=$CC
15899
15900
15901 # save warnings/boilerplate of simple test code
15902 ac_outfile=conftest.$ac_objext
15903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15905 _lt_compiler_boilerplate=`cat conftest.err`
15906 $rm conftest*
15907
15908 ac_outfile=conftest.$ac_objext
15909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15911 _lt_linker_boilerplate=`cat conftest.err`
15912 $rm -r conftest*
15913
15914
15915 # Allow CC to be a program name with arguments.
15916 lt_save_CC="$CC"
15917 CC=${GCJ-"gcj"}
15918 compiler=$CC
15919 compiler_GCJ=$CC
15920 for cc_temp in $compiler""; do
15921   case $cc_temp in
15922     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15923     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15924     \-*) ;;
15925     *) break;;
15926   esac
15927 done
15928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15929
15930
15931 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15932 archive_cmds_need_lc_GCJ=no
15933
15934 old_archive_cmds_GCJ=$old_archive_cmds
15935
15936
15937 lt_prog_compiler_no_builtin_flag_GCJ=
15938
15939 if test "$GCC" = yes; then
15940   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15941
15942
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15944 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15945 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15946   $as_echo_n "(cached) " >&6
15947 else
15948   lt_cv_prog_compiler_rtti_exceptions=no
15949   ac_outfile=conftest.$ac_objext
15950    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15951    lt_compiler_flag="-fno-rtti -fno-exceptions"
15952    # Insert the option either (1) after the last *FLAGS variable, or
15953    # (2) before a word containing "conftest.", or (3) at the end.
15954    # Note that $ac_compile itself does not contain backslashes and begins
15955    # with a dollar sign (not a hyphen), so the echo should work correctly.
15956    # The option is referenced via a variable to avoid confusing sed.
15957    lt_compile=`echo "$ac_compile" | $SED \
15958    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15960    -e 's:$: $lt_compiler_flag:'`
15961    (eval echo "\"\$as_me:15961: $lt_compile\"" >&5)
15962    (eval "$lt_compile" 2>conftest.err)
15963    ac_status=$?
15964    cat conftest.err >&5
15965    echo "$as_me:15965: \$? = $ac_status" >&5
15966    if (exit $ac_status) && test -s "$ac_outfile"; then
15967      # The compiler can only warn and ignore the option if not recognized
15968      # So say no if there are warnings other than the usual output.
15969      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15970      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15971      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15972        lt_cv_prog_compiler_rtti_exceptions=yes
15973      fi
15974    fi
15975    $rm conftest*
15976
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15979 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15980
15981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15982     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15983 else
15984     :
15985 fi
15986
15987 fi
15988
15989 lt_prog_compiler_wl_GCJ=
15990 lt_prog_compiler_pic_GCJ=
15991 lt_prog_compiler_static_GCJ=
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15994 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15995
15996   if test "$GCC" = yes; then
15997     lt_prog_compiler_wl_GCJ='-Wl,'
15998     lt_prog_compiler_static_GCJ='-static'
15999
16000     case $host_os in
16001       aix*)
16002       # All AIX code is PIC.
16003       if test "$host_cpu" = ia64; then
16004         # AIX 5 now supports IA64 processor
16005         lt_prog_compiler_static_GCJ='-Bstatic'
16006       fi
16007       ;;
16008
16009     amigaos*)
16010       # FIXME: we need at least 68020 code to build shared libraries, but
16011       # adding the `-m68020' flag to GCC prevents building anything better,
16012       # like `-m68040'.
16013       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16014       ;;
16015
16016     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16017       # PIC is the default for these OSes.
16018       ;;
16019
16020     mingw* | cygwin* | pw32* | os2*)
16021       # This hack is so that the source file can tell whether it is being
16022       # built for inclusion in a dll (and should export symbols for example).
16023       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16024       # (--disable-auto-import) libraries
16025
16026       ;;
16027
16028     darwin* | rhapsody*)
16029       # PIC is the default on this platform
16030       # Common symbols not allowed in MH_DYLIB files
16031       lt_prog_compiler_pic_GCJ='-fno-common'
16032       ;;
16033
16034     interix[3-9]*)
16035       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16036       # Instead, we relocate shared libraries at runtime.
16037       ;;
16038
16039     msdosdjgpp*)
16040       # Just because we use GCC doesn't mean we suddenly get shared libraries
16041       # on systems that don't support them.
16042       lt_prog_compiler_can_build_shared_GCJ=no
16043       enable_shared=no
16044       ;;
16045
16046     sysv4*MP*)
16047       if test -d /usr/nec; then
16048         lt_prog_compiler_pic_GCJ=-Kconform_pic
16049       fi
16050       ;;
16051
16052     hpux*)
16053       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16054       # not for PA HP-UX.
16055       case $host_cpu in
16056       hppa*64*|ia64*)
16057         # +Z the default
16058         ;;
16059       *)
16060         lt_prog_compiler_pic_GCJ='-fPIC'
16061         ;;
16062       esac
16063       ;;
16064
16065     *)
16066       lt_prog_compiler_pic_GCJ='-fPIC'
16067       ;;
16068     esac
16069   else
16070     # PORTME Check for flag to pass linker flags through the system compiler.
16071     case $host_os in
16072     aix*)
16073       lt_prog_compiler_wl_GCJ='-Wl,'
16074       if test "$host_cpu" = ia64; then
16075         # AIX 5 now supports IA64 processor
16076         lt_prog_compiler_static_GCJ='-Bstatic'
16077       else
16078         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16079       fi
16080       ;;
16081       darwin*)
16082         # PIC is the default on this platform
16083         # Common symbols not allowed in MH_DYLIB files
16084        case $cc_basename in
16085          xlc*)
16086          lt_prog_compiler_pic_GCJ='-qnocommon'
16087          lt_prog_compiler_wl_GCJ='-Wl,'
16088          ;;
16089        esac
16090        ;;
16091
16092     mingw* | cygwin* | pw32* | os2*)
16093       # This hack is so that the source file can tell whether it is being
16094       # built for inclusion in a dll (and should export symbols for example).
16095
16096       ;;
16097
16098     hpux9* | hpux10* | hpux11*)
16099       lt_prog_compiler_wl_GCJ='-Wl,'
16100       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16101       # not for PA HP-UX.
16102       case $host_cpu in
16103       hppa*64*|ia64*)
16104         # +Z the default
16105         ;;
16106       *)
16107         lt_prog_compiler_pic_GCJ='+Z'
16108         ;;
16109       esac
16110       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16111       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16112       ;;
16113
16114     irix5* | irix6* | nonstopux*)
16115       lt_prog_compiler_wl_GCJ='-Wl,'
16116       # PIC (with -KPIC) is the default.
16117       lt_prog_compiler_static_GCJ='-non_shared'
16118       ;;
16119
16120     newsos6)
16121       lt_prog_compiler_pic_GCJ='-KPIC'
16122       lt_prog_compiler_static_GCJ='-Bstatic'
16123       ;;
16124
16125     linux* | k*bsd*-gnu)
16126       case $cc_basename in
16127       icc* | ecc*)
16128         lt_prog_compiler_wl_GCJ='-Wl,'
16129         lt_prog_compiler_pic_GCJ='-KPIC'
16130         lt_prog_compiler_static_GCJ='-static'
16131         ;;
16132       pgcc* | pgf77* | pgf90* | pgf95*)
16133         # Portland Group compilers (*not* the Pentium gcc compiler,
16134         # which looks to be a dead project)
16135         lt_prog_compiler_wl_GCJ='-Wl,'
16136         lt_prog_compiler_pic_GCJ='-fpic'
16137         lt_prog_compiler_static_GCJ='-Bstatic'
16138         ;;
16139       ccc*)
16140         lt_prog_compiler_wl_GCJ='-Wl,'
16141         # All Alpha code is PIC.
16142         lt_prog_compiler_static_GCJ='-non_shared'
16143         ;;
16144       *)
16145         case `$CC -V 2>&1 | sed 5q` in
16146         *Sun\ C*)
16147           # Sun C 5.9
16148           lt_prog_compiler_pic_GCJ='-KPIC'
16149           lt_prog_compiler_static_GCJ='-Bstatic'
16150           lt_prog_compiler_wl_GCJ='-Wl,'
16151           ;;
16152         *Sun\ F*)
16153           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16154           lt_prog_compiler_pic_GCJ='-KPIC'
16155           lt_prog_compiler_static_GCJ='-Bstatic'
16156           lt_prog_compiler_wl_GCJ=''
16157           ;;
16158         esac
16159         ;;
16160       esac
16161       ;;
16162
16163     osf3* | osf4* | osf5*)
16164       lt_prog_compiler_wl_GCJ='-Wl,'
16165       # All OSF/1 code is PIC.
16166       lt_prog_compiler_static_GCJ='-non_shared'
16167       ;;
16168
16169     rdos*)
16170       lt_prog_compiler_static_GCJ='-non_shared'
16171       ;;
16172
16173     solaris*)
16174       lt_prog_compiler_pic_GCJ='-KPIC'
16175       lt_prog_compiler_static_GCJ='-Bstatic'
16176       case $cc_basename in
16177       f77* | f90* | f95*)
16178         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16179       *)
16180         lt_prog_compiler_wl_GCJ='-Wl,';;
16181       esac
16182       ;;
16183
16184     sunos4*)
16185       lt_prog_compiler_wl_GCJ='-Qoption ld '
16186       lt_prog_compiler_pic_GCJ='-PIC'
16187       lt_prog_compiler_static_GCJ='-Bstatic'
16188       ;;
16189
16190     sysv4 | sysv4.2uw2* | sysv4.3*)
16191       lt_prog_compiler_wl_GCJ='-Wl,'
16192       lt_prog_compiler_pic_GCJ='-KPIC'
16193       lt_prog_compiler_static_GCJ='-Bstatic'
16194       ;;
16195
16196     sysv4*MP*)
16197       if test -d /usr/nec ;then
16198         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16199         lt_prog_compiler_static_GCJ='-Bstatic'
16200       fi
16201       ;;
16202
16203     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16204       lt_prog_compiler_wl_GCJ='-Wl,'
16205       lt_prog_compiler_pic_GCJ='-KPIC'
16206       lt_prog_compiler_static_GCJ='-Bstatic'
16207       ;;
16208
16209     unicos*)
16210       lt_prog_compiler_wl_GCJ='-Wl,'
16211       lt_prog_compiler_can_build_shared_GCJ=no
16212       ;;
16213
16214     uts4*)
16215       lt_prog_compiler_pic_GCJ='-pic'
16216       lt_prog_compiler_static_GCJ='-Bstatic'
16217       ;;
16218
16219     *)
16220       lt_prog_compiler_can_build_shared_GCJ=no
16221       ;;
16222     esac
16223   fi
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16226 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16227
16228 #
16229 # Check to make sure the PIC flag actually works.
16230 #
16231 if test -n "$lt_prog_compiler_pic_GCJ"; then
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16235 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16236   $as_echo_n "(cached) " >&6
16237 else
16238   lt_cv_prog_compiler_pic_works_GCJ=no
16239   ac_outfile=conftest.$ac_objext
16240    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16241    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16242    # Insert the option either (1) after the last *FLAGS variable, or
16243    # (2) before a word containing "conftest.", or (3) at the end.
16244    # Note that $ac_compile itself does not contain backslashes and begins
16245    # with a dollar sign (not a hyphen), so the echo should work correctly.
16246    # The option is referenced via a variable to avoid confusing sed.
16247    lt_compile=`echo "$ac_compile" | $SED \
16248    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16249    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16250    -e 's:$: $lt_compiler_flag:'`
16251    (eval echo "\"\$as_me:16251: $lt_compile\"" >&5)
16252    (eval "$lt_compile" 2>conftest.err)
16253    ac_status=$?
16254    cat conftest.err >&5
16255    echo "$as_me:16255: \$? = $ac_status" >&5
16256    if (exit $ac_status) && test -s "$ac_outfile"; then
16257      # The compiler can only warn and ignore the option if not recognized
16258      # So say no if there are warnings other than the usual output.
16259      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16260      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16261      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16262        lt_cv_prog_compiler_pic_works_GCJ=yes
16263      fi
16264    fi
16265    $rm conftest*
16266
16267 fi
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16269 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16270
16271 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16272     case $lt_prog_compiler_pic_GCJ in
16273      "" | " "*) ;;
16274      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16275      esac
16276 else
16277     lt_prog_compiler_pic_GCJ=
16278      lt_prog_compiler_can_build_shared_GCJ=no
16279 fi
16280
16281 fi
16282 case $host_os in
16283   # For platforms which do not support PIC, -DPIC is meaningless:
16284   *djgpp*)
16285     lt_prog_compiler_pic_GCJ=
16286     ;;
16287   *)
16288     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16289     ;;
16290 esac
16291
16292 #
16293 # Check to make sure the static flag actually works.
16294 #
16295 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16297 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16298 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16299   $as_echo_n "(cached) " >&6
16300 else
16301   lt_cv_prog_compiler_static_works_GCJ=no
16302    save_LDFLAGS="$LDFLAGS"
16303    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16304    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16305    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16306      # The linker can only warn and ignore the option if not recognized
16307      # So say no if there are warnings
16308      if test -s conftest.err; then
16309        # Append any errors to the config.log.
16310        cat conftest.err 1>&5
16311        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16312        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16313        if diff conftest.exp conftest.er2 >/dev/null; then
16314          lt_cv_prog_compiler_static_works_GCJ=yes
16315        fi
16316      else
16317        lt_cv_prog_compiler_static_works_GCJ=yes
16318      fi
16319    fi
16320    $rm -r conftest*
16321    LDFLAGS="$save_LDFLAGS"
16322
16323 fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16325 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16326
16327 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16328     :
16329 else
16330     lt_prog_compiler_static_GCJ=
16331 fi
16332
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16335 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16336 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16337   $as_echo_n "(cached) " >&6
16338 else
16339   lt_cv_prog_compiler_c_o_GCJ=no
16340    $rm -r conftest 2>/dev/null
16341    mkdir conftest
16342    cd conftest
16343    mkdir out
16344    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16345
16346    lt_compiler_flag="-o out/conftest2.$ac_objext"
16347    # Insert the option either (1) after the last *FLAGS variable, or
16348    # (2) before a word containing "conftest.", or (3) at the end.
16349    # Note that $ac_compile itself does not contain backslashes and begins
16350    # with a dollar sign (not a hyphen), so the echo should work correctly.
16351    lt_compile=`echo "$ac_compile" | $SED \
16352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16354    -e 's:$: $lt_compiler_flag:'`
16355    (eval echo "\"\$as_me:16355: $lt_compile\"" >&5)
16356    (eval "$lt_compile" 2>out/conftest.err)
16357    ac_status=$?
16358    cat out/conftest.err >&5
16359    echo "$as_me:16359: \$? = $ac_status" >&5
16360    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16361    then
16362      # The compiler can only warn and ignore the option if not recognized
16363      # So say no if there are warnings
16364      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16365      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16366      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16367        lt_cv_prog_compiler_c_o_GCJ=yes
16368      fi
16369    fi
16370    chmod u+w . 2>&5
16371    $rm conftest*
16372    # SGI C++ compiler will create directory out/ii_files/ for
16373    # template instantiation
16374    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16375    $rm out/* && rmdir out
16376    cd ..
16377    rmdir conftest
16378    $rm conftest*
16379
16380 fi
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16382 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16383
16384
16385 hard_links="nottested"
16386 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16387   # do not overwrite the value of need_locks provided by the user
16388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16389 $as_echo_n "checking if we can lock with hard links... " >&6; }
16390   hard_links=yes
16391   $rm conftest*
16392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16393   touch conftest.a
16394   ln conftest.a conftest.b 2>&5 || hard_links=no
16395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16397 $as_echo "$hard_links" >&6; }
16398   if test "$hard_links" = no; then
16399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16401     need_locks=warn
16402   fi
16403 else
16404   need_locks=no
16405 fi
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16408 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16409
16410   runpath_var=
16411   allow_undefined_flag_GCJ=
16412   enable_shared_with_static_runtimes_GCJ=no
16413   archive_cmds_GCJ=
16414   archive_expsym_cmds_GCJ=
16415   old_archive_From_new_cmds_GCJ=
16416   old_archive_from_expsyms_cmds_GCJ=
16417   export_dynamic_flag_spec_GCJ=
16418   whole_archive_flag_spec_GCJ=
16419   thread_safe_flag_spec_GCJ=
16420   hardcode_libdir_flag_spec_GCJ=
16421   hardcode_libdir_flag_spec_ld_GCJ=
16422   hardcode_libdir_separator_GCJ=
16423   hardcode_direct_GCJ=no
16424   hardcode_minus_L_GCJ=no
16425   hardcode_shlibpath_var_GCJ=unsupported
16426   link_all_deplibs_GCJ=unknown
16427   hardcode_automatic_GCJ=no
16428   module_cmds_GCJ=
16429   module_expsym_cmds_GCJ=
16430   always_export_symbols_GCJ=no
16431   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16432   # include_expsyms should be a list of space-separated symbols to be *always*
16433   # included in the symbol list
16434   include_expsyms_GCJ=
16435   # exclude_expsyms can be an extended regexp of symbols to exclude
16436   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16437   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16438   # as well as any symbol that contains `d'.
16439   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16440   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16441   # platforms (ab)use it in PIC code, but their linkers get confused if
16442   # the symbol is explicitly referenced.  Since portable code cannot
16443   # rely on this symbol name, it's probably fine to never include it in
16444   # preloaded symbol tables.
16445   # Exclude shared library initialization/finalization symbols.
16446   extract_expsyms_cmds=
16447   # Just being paranoid about ensuring that cc_basename is set.
16448   for cc_temp in $compiler""; do
16449   case $cc_temp in
16450     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16451     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16452     \-*) ;;
16453     *) break;;
16454   esac
16455 done
16456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16457
16458   case $host_os in
16459   cygwin* | mingw* | pw32*)
16460     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16461     # When not using gcc, we currently assume that we are using
16462     # Microsoft Visual C++.
16463     if test "$GCC" != yes; then
16464       with_gnu_ld=no
16465     fi
16466     ;;
16467   interix*)
16468     # we just hope/assume this is gcc and not c89 (= MSVC++)
16469     with_gnu_ld=yes
16470     ;;
16471   openbsd*)
16472     with_gnu_ld=no
16473     ;;
16474   esac
16475
16476   ld_shlibs_GCJ=yes
16477   if test "$with_gnu_ld" = yes; then
16478     # If archive_cmds runs LD, not CC, wlarc should be empty
16479     wlarc='${wl}'
16480
16481     # Set some defaults for GNU ld with shared library support. These
16482     # are reset later if shared libraries are not supported. Putting them
16483     # here allows them to be overridden if necessary.
16484     runpath_var=LD_RUN_PATH
16485     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16486     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16487     # ancient GNU ld didn't support --whole-archive et. al.
16488     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16489         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16490       else
16491         whole_archive_flag_spec_GCJ=
16492     fi
16493     supports_anon_versioning=no
16494     case `$LD -v 2>/dev/null` in
16495       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16496       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16497       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16498       *\ 2.11.*) ;; # other 2.11 versions
16499       *) supports_anon_versioning=yes ;;
16500     esac
16501
16502     # See if GNU ld supports shared libraries.
16503     case $host_os in
16504     aix[3-9]*)
16505       # On AIX/PPC, the GNU linker is very broken
16506       if test "$host_cpu" != ia64; then
16507         ld_shlibs_GCJ=no
16508         cat <<EOF 1>&2
16509
16510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16511 *** to be unable to reliably create shared libraries on AIX.
16512 *** Therefore, libtool is disabling shared libraries support.  If you
16513 *** really care for shared libraries, you may want to modify your PATH
16514 *** so that a non-GNU linker is found, and then restart.
16515
16516 EOF
16517       fi
16518       ;;
16519
16520     amigaos*)
16521       archive_cmds_GCJ='$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)'
16522       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16523       hardcode_minus_L_GCJ=yes
16524
16525       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16526       # that the semantics of dynamic libraries on AmigaOS, at least up
16527       # to version 4, is to share data among multiple programs linked
16528       # with the same dynamic library.  Since this doesn't match the
16529       # behavior of shared libraries on other platforms, we can't use
16530       # them.
16531       ld_shlibs_GCJ=no
16532       ;;
16533
16534     beos*)
16535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16536         allow_undefined_flag_GCJ=unsupported
16537         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16538         # support --undefined.  This deserves some investigation.  FIXME
16539         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16540       else
16541         ld_shlibs_GCJ=no
16542       fi
16543       ;;
16544
16545     cygwin* | mingw* | pw32*)
16546       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16547       # as there is no search path for DLLs.
16548       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16549       allow_undefined_flag_GCJ=unsupported
16550       always_export_symbols_GCJ=no
16551       enable_shared_with_static_runtimes_GCJ=yes
16552       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16553
16554       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16555         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16556         # If the export-symbols file already is a .def file (1st line
16557         # is EXPORTS), use it as is; otherwise, prepend...
16558         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16559           cp $export_symbols $output_objdir/$soname.def;
16560         else
16561           echo EXPORTS > $output_objdir/$soname.def;
16562           cat $export_symbols >> $output_objdir/$soname.def;
16563         fi~
16564         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16565       else
16566         ld_shlibs_GCJ=no
16567       fi
16568       ;;
16569
16570     interix[3-9]*)
16571       hardcode_direct_GCJ=no
16572       hardcode_shlibpath_var_GCJ=no
16573       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16574       export_dynamic_flag_spec_GCJ='${wl}-E'
16575       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16576       # Instead, shared libraries are loaded at an image base (0x10000000 by
16577       # default) and relocated if they conflict, which is a slow very memory
16578       # consuming and fragmenting process.  To avoid this, we pick a random,
16579       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16580       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16581       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16582       archive_expsym_cmds_GCJ='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'
16583       ;;
16584
16585     gnu* | linux* | k*bsd*-gnu)
16586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16587         tmp_addflag=
16588         case $cc_basename,$host_cpu in
16589         pgcc*)                          # Portland Group C compiler
16590           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16591           tmp_addflag=' $pic_flag'
16592           ;;
16593         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16594           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16595           tmp_addflag=' $pic_flag -Mnomain' ;;
16596         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16597           tmp_addflag=' -i_dynamic' ;;
16598         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16599           tmp_addflag=' -i_dynamic -nofor_main' ;;
16600         ifc* | ifort*)                  # Intel Fortran compiler
16601           tmp_addflag=' -nofor_main' ;;
16602         esac
16603         case `$CC -V 2>&1 | sed 5q` in
16604         *Sun\ C*)                       # Sun C 5.9
16605           whole_archive_flag_spec_GCJ='${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'
16606           tmp_sharedflag='-G' ;;
16607         *Sun\ F*)                       # Sun Fortran 8.3
16608           tmp_sharedflag='-G' ;;
16609         *)
16610           tmp_sharedflag='-shared' ;;
16611         esac
16612         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16613
16614         if test $supports_anon_versioning = yes; then
16615           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16616   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16617   $echo "local: *; };" >> $output_objdir/$libname.ver~
16618           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16619         fi
16620       else
16621         ld_shlibs_GCJ=no
16622       fi
16623       ;;
16624
16625     netbsd*)
16626       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16627         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16628         wlarc=
16629       else
16630         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16631         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16632       fi
16633       ;;
16634
16635     solaris*)
16636       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16637         ld_shlibs_GCJ=no
16638         cat <<EOF 1>&2
16639
16640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16641 *** create shared libraries on Solaris systems.  Therefore, libtool
16642 *** is disabling shared libraries support.  We urge you to upgrade GNU
16643 *** binutils to release 2.9.1 or newer.  Another option is to modify
16644 *** your PATH or compiler configuration so that the native linker is
16645 *** used, and then restart.
16646
16647 EOF
16648       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16649         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16650         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16651       else
16652         ld_shlibs_GCJ=no
16653       fi
16654       ;;
16655
16656     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16657       case `$LD -v 2>&1` in
16658         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16659         ld_shlibs_GCJ=no
16660         cat <<_LT_EOF 1>&2
16661
16662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16663 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16664 *** is disabling shared libraries support.  We urge you to upgrade GNU
16665 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16666 *** your PATH or compiler configuration so that the native linker is
16667 *** used, and then restart.
16668
16669 _LT_EOF
16670         ;;
16671         *)
16672           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16673             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16674             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16675             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16676           else
16677             ld_shlibs_GCJ=no
16678           fi
16679         ;;
16680       esac
16681       ;;
16682
16683     sunos4*)
16684       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16685       wlarc=
16686       hardcode_direct_GCJ=yes
16687       hardcode_shlibpath_var_GCJ=no
16688       ;;
16689
16690     *)
16691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16692         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16693         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16694       else
16695         ld_shlibs_GCJ=no
16696       fi
16697       ;;
16698     esac
16699
16700     if test "$ld_shlibs_GCJ" = no; then
16701       runpath_var=
16702       hardcode_libdir_flag_spec_GCJ=
16703       export_dynamic_flag_spec_GCJ=
16704       whole_archive_flag_spec_GCJ=
16705     fi
16706   else
16707     # PORTME fill in a description of your system's linker (not GNU ld)
16708     case $host_os in
16709     aix3*)
16710       allow_undefined_flag_GCJ=unsupported
16711       always_export_symbols_GCJ=yes
16712       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16713       # Note: this linker hardcodes the directories in LIBPATH if there
16714       # are no directories specified by -L.
16715       hardcode_minus_L_GCJ=yes
16716       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16717         # Neither direct hardcoding nor static linking is supported with a
16718         # broken collect2.
16719         hardcode_direct_GCJ=unsupported
16720       fi
16721       ;;
16722
16723     aix[4-9]*)
16724       if test "$host_cpu" = ia64; then
16725         # On IA64, the linker does run time linking by default, so we don't
16726         # have to do anything special.
16727         aix_use_runtimelinking=no
16728         exp_sym_flag='-Bexport'
16729         no_entry_flag=""
16730       else
16731         # If we're using GNU nm, then we don't want the "-C" option.
16732         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16733         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16734           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16735         else
16736           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16737         fi
16738         aix_use_runtimelinking=no
16739
16740         # Test if we are trying to use run time linking or normal
16741         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16742         # need to do runtime linking.
16743         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16744           for ld_flag in $LDFLAGS; do
16745           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16746             aix_use_runtimelinking=yes
16747             break
16748           fi
16749           done
16750           ;;
16751         esac
16752
16753         exp_sym_flag='-bexport'
16754         no_entry_flag='-bnoentry'
16755       fi
16756
16757       # When large executables or shared objects are built, AIX ld can
16758       # have problems creating the table of contents.  If linking a library
16759       # or program results in "error TOC overflow" add -mminimal-toc to
16760       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16761       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16762
16763       archive_cmds_GCJ=''
16764       hardcode_direct_GCJ=yes
16765       hardcode_libdir_separator_GCJ=':'
16766       link_all_deplibs_GCJ=yes
16767
16768       if test "$GCC" = yes; then
16769         case $host_os in aix4.[012]|aix4.[012].*)
16770         # We only want to do this on AIX 4.2 and lower, the check
16771         # below for broken collect2 doesn't work under 4.3+
16772           collect2name=`${CC} -print-prog-name=collect2`
16773           if test -f "$collect2name" && \
16774            strings "$collect2name" | grep resolve_lib_name >/dev/null
16775           then
16776           # We have reworked collect2
16777           :
16778           else
16779           # We have old collect2
16780           hardcode_direct_GCJ=unsupported
16781           # It fails to find uninstalled libraries when the uninstalled
16782           # path is not listed in the libpath.  Setting hardcode_minus_L
16783           # to unsupported forces relinking
16784           hardcode_minus_L_GCJ=yes
16785           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786           hardcode_libdir_separator_GCJ=
16787           fi
16788           ;;
16789         esac
16790         shared_flag='-shared'
16791         if test "$aix_use_runtimelinking" = yes; then
16792           shared_flag="$shared_flag "'${wl}-G'
16793         fi
16794       else
16795         # not using gcc
16796         if test "$host_cpu" = ia64; then
16797         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16798         # chokes on -Wl,-G. The following line is correct:
16799           shared_flag='-G'
16800         else
16801           if test "$aix_use_runtimelinking" = yes; then
16802             shared_flag='${wl}-G'
16803           else
16804             shared_flag='${wl}-bM:SRE'
16805           fi
16806         fi
16807       fi
16808
16809       # It seems that -bexpall does not export symbols beginning with
16810       # underscore (_), so it is better to generate a list of symbols to export.
16811       always_export_symbols_GCJ=yes
16812       if test "$aix_use_runtimelinking" = yes; then
16813         # Warning - without using the other runtime loading flags (-brtl),
16814         # -berok will link without error, but may produce a broken library.
16815         allow_undefined_flag_GCJ='-berok'
16816        # Determine the default libpath from the value encoded in an empty executable.
16817        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h.  */
16819
16820 int
16821 main ()
16822 {
16823
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 if ac_fn_c_try_link "$LINENO"; then :
16829
16830 lt_aix_libpath_sed='
16831     /Import File Strings/,/^$/ {
16832         /^0/ {
16833             s/^0  *\(.*\)$/\1/
16834             p
16835         }
16836     }'
16837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16838 # Check for a 64-bit object if we didn't find anything.
16839 if test -z "$aix_libpath"; then
16840   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16841 fi
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext \
16844     conftest$ac_exeext conftest.$ac_ext
16845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16846
16847        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16848         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16849        else
16850         if test "$host_cpu" = ia64; then
16851           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16852           allow_undefined_flag_GCJ="-z nodefs"
16853           archive_expsym_cmds_GCJ="\$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"
16854         else
16855          # Determine the default libpath from the value encoded in an empty executable.
16856          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h.  */
16858
16859 int
16860 main ()
16861 {
16862
16863   ;
16864   return 0;
16865 }
16866 _ACEOF
16867 if ac_fn_c_try_link "$LINENO"; then :
16868
16869 lt_aix_libpath_sed='
16870     /Import File Strings/,/^$/ {
16871         /^0/ {
16872             s/^0  *\(.*\)$/\1/
16873             p
16874         }
16875     }'
16876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16877 # Check for a 64-bit object if we didn't find anything.
16878 if test -z "$aix_libpath"; then
16879   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16880 fi
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext \
16883     conftest$ac_exeext conftest.$ac_ext
16884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16885
16886          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16887           # Warning - without using the other run time loading flags,
16888           # -berok will link without error, but may produce a broken library.
16889           no_undefined_flag_GCJ=' ${wl}-bernotok'
16890           allow_undefined_flag_GCJ=' ${wl}-berok'
16891           # Exported symbols can be pulled into shared objects from archives
16892           whole_archive_flag_spec_GCJ='$convenience'
16893           archive_cmds_need_lc_GCJ=yes
16894           # This is similar to how AIX traditionally builds its shared libraries.
16895           archive_expsym_cmds_GCJ="\$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'
16896         fi
16897       fi
16898       ;;
16899
16900     amigaos*)
16901       archive_cmds_GCJ='$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)'
16902       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16903       hardcode_minus_L_GCJ=yes
16904       # see comment about different semantics on the GNU ld section
16905       ld_shlibs_GCJ=no
16906       ;;
16907
16908     bsdi[45]*)
16909       export_dynamic_flag_spec_GCJ=-rdynamic
16910       ;;
16911
16912     cygwin* | mingw* | pw32*)
16913       # When not using gcc, we currently assume that we are using
16914       # Microsoft Visual C++.
16915       # hardcode_libdir_flag_spec is actually meaningless, as there is
16916       # no search path for DLLs.
16917       hardcode_libdir_flag_spec_GCJ=' '
16918       allow_undefined_flag_GCJ=unsupported
16919       # Tell ltmain to make .lib files, not .a files.
16920       libext=lib
16921       # Tell ltmain to make .dll files, not .so files.
16922       shrext_cmds=".dll"
16923       # FIXME: Setting linknames here is a bad hack.
16924       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16925       # The linker will automatically build a .lib file if we build a DLL.
16926       old_archive_From_new_cmds_GCJ='true'
16927       # FIXME: Should let the user specify the lib program.
16928       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16929       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16930       enable_shared_with_static_runtimes_GCJ=yes
16931       ;;
16932
16933     darwin* | rhapsody*)
16934       case $host_os in
16935         rhapsody* | darwin1.[012])
16936          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16937          ;;
16938        *) # Darwin 1.3 on
16939          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16940            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16941          else
16942            case ${MACOSX_DEPLOYMENT_TARGET} in
16943              10.[012])
16944                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16945                ;;
16946              10.*)
16947                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16948                ;;
16949            esac
16950          fi
16951          ;;
16952       esac
16953       archive_cmds_need_lc_GCJ=no
16954       hardcode_direct_GCJ=no
16955       hardcode_automatic_GCJ=yes
16956       hardcode_shlibpath_var_GCJ=unsupported
16957       whole_archive_flag_spec_GCJ=''
16958       link_all_deplibs_GCJ=yes
16959     if test "$GCC" = yes ; then
16960         output_verbose_link_cmd='echo'
16961         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16962         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16963         archive_expsym_cmds_GCJ="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}"
16964         module_expsym_cmds_GCJ="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}"
16965     else
16966       case $cc_basename in
16967         xlc*)
16968          output_verbose_link_cmd='echo'
16969          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16970          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16971           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16972          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16973           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16974           ;;
16975        *)
16976          ld_shlibs_GCJ=no
16977           ;;
16978       esac
16979     fi
16980       ;;
16981
16982     dgux*)
16983       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985       hardcode_shlibpath_var_GCJ=no
16986       ;;
16987
16988     freebsd1*)
16989       ld_shlibs_GCJ=no
16990       ;;
16991
16992     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16993     # support.  Future versions do this automatically, but an explicit c++rt0.o
16994     # does not break anything, and helps significantly (at the cost of a little
16995     # extra space).
16996     freebsd2.2*)
16997       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16998       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999       hardcode_direct_GCJ=yes
17000       hardcode_shlibpath_var_GCJ=no
17001       ;;
17002
17003     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17004     freebsd2*)
17005       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17006       hardcode_direct_GCJ=yes
17007       hardcode_minus_L_GCJ=yes
17008       hardcode_shlibpath_var_GCJ=no
17009       ;;
17010
17011     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17012     freebsd* | dragonfly*)
17013       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17014       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17015       hardcode_direct_GCJ=yes
17016       hardcode_shlibpath_var_GCJ=no
17017       ;;
17018
17019     hpux9*)
17020       if test "$GCC" = yes; then
17021         archive_cmds_GCJ='$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'
17022       else
17023         archive_cmds_GCJ='$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'
17024       fi
17025       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17026       hardcode_libdir_separator_GCJ=:
17027       hardcode_direct_GCJ=yes
17028
17029       # hardcode_minus_L: Not really in the search PATH,
17030       # but as the default location of the library.
17031       hardcode_minus_L_GCJ=yes
17032       export_dynamic_flag_spec_GCJ='${wl}-E'
17033       ;;
17034
17035     hpux10*)
17036       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17037         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17038       else
17039         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17040       fi
17041       if test "$with_gnu_ld" = no; then
17042         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17043         hardcode_libdir_separator_GCJ=:
17044
17045         hardcode_direct_GCJ=yes
17046         export_dynamic_flag_spec_GCJ='${wl}-E'
17047
17048         # hardcode_minus_L: Not really in the search PATH,
17049         # but as the default location of the library.
17050         hardcode_minus_L_GCJ=yes
17051       fi
17052       ;;
17053
17054     hpux11*)
17055       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17056         case $host_cpu in
17057         hppa*64*)
17058           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17059           ;;
17060         ia64*)
17061           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17062           ;;
17063         *)
17064           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17065           ;;
17066         esac
17067       else
17068         case $host_cpu in
17069         hppa*64*)
17070           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17071           ;;
17072         ia64*)
17073           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17074           ;;
17075         *)
17076           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17077           ;;
17078         esac
17079       fi
17080       if test "$with_gnu_ld" = no; then
17081         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17082         hardcode_libdir_separator_GCJ=:
17083
17084         case $host_cpu in
17085         hppa*64*|ia64*)
17086           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17087           hardcode_direct_GCJ=no
17088           hardcode_shlibpath_var_GCJ=no
17089           ;;
17090         *)
17091           hardcode_direct_GCJ=yes
17092           export_dynamic_flag_spec_GCJ='${wl}-E'
17093
17094           # hardcode_minus_L: Not really in the search PATH,
17095           # but as the default location of the library.
17096           hardcode_minus_L_GCJ=yes
17097           ;;
17098         esac
17099       fi
17100       ;;
17101
17102     irix5* | irix6* | nonstopux*)
17103       if test "$GCC" = yes; then
17104         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17105       else
17106         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17107         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17108       fi
17109       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17110       hardcode_libdir_separator_GCJ=:
17111       link_all_deplibs_GCJ=yes
17112       ;;
17113
17114     netbsd*)
17115       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17116         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17117       else
17118         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17119       fi
17120       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121       hardcode_direct_GCJ=yes
17122       hardcode_shlibpath_var_GCJ=no
17123       ;;
17124
17125     newsos6)
17126       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17127       hardcode_direct_GCJ=yes
17128       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17129       hardcode_libdir_separator_GCJ=:
17130       hardcode_shlibpath_var_GCJ=no
17131       ;;
17132
17133     openbsd*)
17134       if test -f /usr/libexec/ld.so; then
17135         hardcode_direct_GCJ=yes
17136         hardcode_shlibpath_var_GCJ=no
17137         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17138           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17139           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17140           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17141           export_dynamic_flag_spec_GCJ='${wl}-E'
17142         else
17143           case $host_os in
17144            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17145              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17146              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17147              ;;
17148            *)
17149              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17150              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17151              ;;
17152           esac
17153         fi
17154       else
17155         ld_shlibs_GCJ=no
17156       fi
17157       ;;
17158
17159     os2*)
17160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17161       hardcode_minus_L_GCJ=yes
17162       allow_undefined_flag_GCJ=unsupported
17163       archive_cmds_GCJ='$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'
17164       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17165       ;;
17166
17167     osf3*)
17168       if test "$GCC" = yes; then
17169         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17170         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17171       else
17172         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17173         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17174       fi
17175       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17176       hardcode_libdir_separator_GCJ=:
17177       ;;
17178
17179     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17180       if test "$GCC" = yes; then
17181         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17182         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17183         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17184       else
17185         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17186         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17187         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17188         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17189
17190         # Both c and cxx compiler support -rpath directly
17191         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17192       fi
17193       hardcode_libdir_separator_GCJ=:
17194       ;;
17195
17196     solaris*)
17197       no_undefined_flag_GCJ=' -z text'
17198       if test "$GCC" = yes; then
17199         wlarc='${wl}'
17200         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17201         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17202           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17203       else
17204         wlarc=''
17205         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17206         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17207         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17208       fi
17209       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17210       hardcode_shlibpath_var_GCJ=no
17211       case $host_os in
17212       solaris2.[0-5] | solaris2.[0-5].*) ;;
17213       *)
17214         # The compiler driver will combine and reorder linker options,
17215         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17216         # but is careful enough not to reorder.
17217         # Supported since Solaris 2.6 (maybe 2.5.1?)
17218         if test "$GCC" = yes; then
17219           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17220         else
17221           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17222         fi
17223         ;;
17224       esac
17225       link_all_deplibs_GCJ=yes
17226       ;;
17227
17228     sunos4*)
17229       if test "x$host_vendor" = xsequent; then
17230         # Use $CC to link under sequent, because it throws in some extra .o
17231         # files that make .init and .fini sections work.
17232         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17233       else
17234         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17235       fi
17236       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17237       hardcode_direct_GCJ=yes
17238       hardcode_minus_L_GCJ=yes
17239       hardcode_shlibpath_var_GCJ=no
17240       ;;
17241
17242     sysv4)
17243       case $host_vendor in
17244         sni)
17245           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246           hardcode_direct_GCJ=yes # is this really true???
17247         ;;
17248         siemens)
17249           ## LD is ld it makes a PLAMLIB
17250           ## CC just makes a GrossModule.
17251           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17252           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17253           hardcode_direct_GCJ=no
17254         ;;
17255         motorola)
17256           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17257           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17258         ;;
17259       esac
17260       runpath_var='LD_RUN_PATH'
17261       hardcode_shlibpath_var_GCJ=no
17262       ;;
17263
17264     sysv4.3*)
17265       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266       hardcode_shlibpath_var_GCJ=no
17267       export_dynamic_flag_spec_GCJ='-Bexport'
17268       ;;
17269
17270     sysv4*MP*)
17271       if test -d /usr/nec; then
17272         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17273         hardcode_shlibpath_var_GCJ=no
17274         runpath_var=LD_RUN_PATH
17275         hardcode_runpath_var=yes
17276         ld_shlibs_GCJ=yes
17277       fi
17278       ;;
17279
17280     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17281       no_undefined_flag_GCJ='${wl}-z,text'
17282       archive_cmds_need_lc_GCJ=no
17283       hardcode_shlibpath_var_GCJ=no
17284       runpath_var='LD_RUN_PATH'
17285
17286       if test "$GCC" = yes; then
17287         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17288         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17289       else
17290         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17291         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17292       fi
17293       ;;
17294
17295     sysv5* | sco3.2v5* | sco5v6*)
17296       # Note: We can NOT use -z defs as we might desire, because we do not
17297       # link with -lc, and that would cause any symbols used from libc to
17298       # always be unresolved, which means just about no library would
17299       # ever link correctly.  If we're not using GNU ld we use -z text
17300       # though, which does catch some bad symbols but isn't as heavy-handed
17301       # as -z defs.
17302       no_undefined_flag_GCJ='${wl}-z,text'
17303       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17304       archive_cmds_need_lc_GCJ=no
17305       hardcode_shlibpath_var_GCJ=no
17306       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17307       hardcode_libdir_separator_GCJ=':'
17308       link_all_deplibs_GCJ=yes
17309       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17310       runpath_var='LD_RUN_PATH'
17311
17312       if test "$GCC" = yes; then
17313         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17314         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17315       else
17316         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17317         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17318       fi
17319       ;;
17320
17321     uts4*)
17322       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324       hardcode_shlibpath_var_GCJ=no
17325       ;;
17326
17327     *)
17328       ld_shlibs_GCJ=no
17329       ;;
17330     esac
17331   fi
17332
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17334 $as_echo "$ld_shlibs_GCJ" >&6; }
17335 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17336
17337 #
17338 # Do we need to explicitly link libc?
17339 #
17340 case "x$archive_cmds_need_lc_GCJ" in
17341 x|xyes)
17342   # Assume -lc should be added
17343   archive_cmds_need_lc_GCJ=yes
17344
17345   if test "$enable_shared" = yes && test "$GCC" = yes; then
17346     case $archive_cmds_GCJ in
17347     *'~'*)
17348       # FIXME: we may have to deal with multi-command sequences.
17349       ;;
17350     '$CC '*)
17351       # Test whether the compiler implicitly links with -lc since on some
17352       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17353       # to ld, don't add -lc before -lgcc.
17354       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17355 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17356       $rm conftest*
17357       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17358
17359       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17360   (eval $ac_compile) 2>&5
17361   ac_status=$?
17362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363   test $ac_status = 0; } 2>conftest.err; then
17364         soname=conftest
17365         lib=conftest
17366         libobjs=conftest.$ac_objext
17367         deplibs=
17368         wl=$lt_prog_compiler_wl_GCJ
17369         pic_flag=$lt_prog_compiler_pic_GCJ
17370         compiler_flags=-v
17371         linker_flags=-v
17372         verstring=
17373         output_objdir=.
17374         libname=conftest
17375         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17376         allow_undefined_flag_GCJ=
17377         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17378   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17379   ac_status=$?
17380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17381   test $ac_status = 0; }
17382         then
17383           archive_cmds_need_lc_GCJ=no
17384         else
17385           archive_cmds_need_lc_GCJ=yes
17386         fi
17387         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17388       else
17389         cat conftest.err 1>&5
17390       fi
17391       $rm conftest*
17392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17393 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17394       ;;
17395     esac
17396   fi
17397   ;;
17398 esac
17399
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17402 library_names_spec=
17403 libname_spec='lib$name'
17404 soname_spec=
17405 shrext_cmds=".so"
17406 postinstall_cmds=
17407 postuninstall_cmds=
17408 finish_cmds=
17409 finish_eval=
17410 shlibpath_var=
17411 shlibpath_overrides_runpath=unknown
17412 version_type=none
17413 dynamic_linker="$host_os ld.so"
17414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17415
17416 need_lib_prefix=unknown
17417 hardcode_into_libs=no
17418
17419 # when you set need_version to no, make sure it does not cause -set_version
17420 # flags to be left without arguments
17421 need_version=unknown
17422
17423 case $host_os in
17424 aix3*)
17425   version_type=linux
17426   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17427   shlibpath_var=LIBPATH
17428
17429   # AIX 3 has no versioning support, so we append a major version to the name.
17430   soname_spec='${libname}${release}${shared_ext}$major'
17431   ;;
17432
17433 aix[4-9]*)
17434   version_type=linux
17435   need_lib_prefix=no
17436   need_version=no
17437   hardcode_into_libs=yes
17438   if test "$host_cpu" = ia64; then
17439     # AIX 5 supports IA64
17440     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17441     shlibpath_var=LD_LIBRARY_PATH
17442   else
17443     # With GCC up to 2.95.x, collect2 would create an import file
17444     # for dependence libraries.  The import file would start with
17445     # the line `#! .'.  This would cause the generated library to
17446     # depend on `.', always an invalid library.  This was fixed in
17447     # development snapshots of GCC prior to 3.0.
17448     case $host_os in
17449       aix4 | aix4.[01] | aix4.[01].*)
17450       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17451            echo ' yes '
17452            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17453         :
17454       else
17455         can_build_shared=no
17456       fi
17457       ;;
17458     esac
17459     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17460     # soname into executable. Probably we can add versioning support to
17461     # collect2, so additional links can be useful in future.
17462     if test "$aix_use_runtimelinking" = yes; then
17463       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17464       # instead of lib<name>.a to let people know that these are not
17465       # typical AIX shared libraries.
17466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467     else
17468       # We preserve .a as extension for shared libraries through AIX4.2
17469       # and later when we are not doing run time linking.
17470       library_names_spec='${libname}${release}.a $libname.a'
17471       soname_spec='${libname}${release}${shared_ext}$major'
17472     fi
17473     shlibpath_var=LIBPATH
17474   fi
17475   ;;
17476
17477 amigaos*)
17478   library_names_spec='$libname.ixlibrary $libname.a'
17479   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17480   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'
17481   ;;
17482
17483 beos*)
17484   library_names_spec='${libname}${shared_ext}'
17485   dynamic_linker="$host_os ld.so"
17486   shlibpath_var=LIBRARY_PATH
17487   ;;
17488
17489 bsdi[45]*)
17490   version_type=linux
17491   need_version=no
17492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493   soname_spec='${libname}${release}${shared_ext}$major'
17494   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17495   shlibpath_var=LD_LIBRARY_PATH
17496   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17497   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17498   # the default ld.so.conf also contains /usr/contrib/lib and
17499   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17500   # libtool to hard-code these into programs
17501   ;;
17502
17503 cygwin* | mingw* | pw32*)
17504   version_type=windows
17505   shrext_cmds=".dll"
17506   need_version=no
17507   need_lib_prefix=no
17508
17509   case $GCC,$host_os in
17510   yes,cygwin* | yes,mingw* | yes,pw32*)
17511     library_names_spec='$libname.dll.a'
17512     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17513     postinstall_cmds='base_file=`basename \${file}`~
17514       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17515       dldir=$destdir/`dirname \$dlpath`~
17516       test -d \$dldir || mkdir -p \$dldir~
17517       $install_prog $dir/$dlname \$dldir/$dlname~
17518       chmod a+x \$dldir/$dlname'
17519     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17520       dlpath=$dir/\$dldll~
17521        $rm \$dlpath'
17522     shlibpath_overrides_runpath=yes
17523
17524     case $host_os in
17525     cygwin*)
17526       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17527       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17529       ;;
17530     mingw*)
17531       # MinGW DLLs use traditional 'lib' prefix
17532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17533       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17534       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17535         # It is most probably a Windows format PATH printed by
17536         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17537         # path with ; separators, and with drive letters. We can handle the
17538         # drive letters (cygwin fileutils understands them), so leave them,
17539         # especially as we might pass files found there to a mingw objdump,
17540         # which wouldn't understand a cygwinified path. Ahh.
17541         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17542       else
17543         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17544       fi
17545       ;;
17546     pw32*)
17547       # pw32 DLLs use 'pw' prefix rather than 'lib'
17548       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17549       ;;
17550     esac
17551     ;;
17552
17553   *)
17554     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17555     ;;
17556   esac
17557   dynamic_linker='Win32 ld.exe'
17558   # FIXME: first we should search . and the directory the executable is in
17559   shlibpath_var=PATH
17560   ;;
17561
17562 darwin* | rhapsody*)
17563   dynamic_linker="$host_os dyld"
17564   version_type=darwin
17565   need_lib_prefix=no
17566   need_version=no
17567   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17568   soname_spec='${libname}${release}${major}$shared_ext'
17569   shlibpath_overrides_runpath=yes
17570   shlibpath_var=DYLD_LIBRARY_PATH
17571   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17572
17573   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17574   ;;
17575
17576 dgux*)
17577   version_type=linux
17578   need_lib_prefix=no
17579   need_version=no
17580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17581   soname_spec='${libname}${release}${shared_ext}$major'
17582   shlibpath_var=LD_LIBRARY_PATH
17583   ;;
17584
17585 freebsd1*)
17586   dynamic_linker=no
17587   ;;
17588
17589 freebsd* | dragonfly*)
17590   # DragonFly does not have aout.  When/if they implement a new
17591   # versioning mechanism, adjust this.
17592   if test -x /usr/bin/objformat; then
17593     objformat=`/usr/bin/objformat`
17594   else
17595     case $host_os in
17596     freebsd[123]*) objformat=aout ;;
17597     *) objformat=elf ;;
17598     esac
17599   fi
17600   version_type=freebsd-$objformat
17601   case $version_type in
17602     freebsd-elf*)
17603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17604       need_version=no
17605       need_lib_prefix=no
17606       ;;
17607     freebsd-*)
17608       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17609       need_version=yes
17610       ;;
17611   esac
17612   shlibpath_var=LD_LIBRARY_PATH
17613   case $host_os in
17614   freebsd2*)
17615     shlibpath_overrides_runpath=yes
17616     ;;
17617   freebsd3.[01]* | freebsdelf3.[01]*)
17618     shlibpath_overrides_runpath=yes
17619     hardcode_into_libs=yes
17620     ;;
17621   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17622   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17623     shlibpath_overrides_runpath=no
17624     hardcode_into_libs=yes
17625     ;;
17626   *) # from 4.6 on, and DragonFly
17627     shlibpath_overrides_runpath=yes
17628     hardcode_into_libs=yes
17629     ;;
17630   esac
17631   ;;
17632
17633 gnu*)
17634   version_type=linux
17635   need_lib_prefix=no
17636   need_version=no
17637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17638   soname_spec='${libname}${release}${shared_ext}$major'
17639   shlibpath_var=LD_LIBRARY_PATH
17640   hardcode_into_libs=yes
17641   ;;
17642
17643 hpux9* | hpux10* | hpux11*)
17644   # Give a soname corresponding to the major version so that dld.sl refuses to
17645   # link against other versions.
17646   version_type=sunos
17647   need_lib_prefix=no
17648   need_version=no
17649   case $host_cpu in
17650   ia64*)
17651     shrext_cmds='.so'
17652     hardcode_into_libs=yes
17653     dynamic_linker="$host_os dld.so"
17654     shlibpath_var=LD_LIBRARY_PATH
17655     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17657     soname_spec='${libname}${release}${shared_ext}$major'
17658     if test "X$HPUX_IA64_MODE" = X32; then
17659       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17660     else
17661       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17662     fi
17663     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17664     ;;
17665    hppa*64*)
17666      shrext_cmds='.sl'
17667      hardcode_into_libs=yes
17668      dynamic_linker="$host_os dld.sl"
17669      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17670      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17671      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17672      soname_spec='${libname}${release}${shared_ext}$major'
17673      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17674      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17675      ;;
17676    *)
17677     shrext_cmds='.sl'
17678     dynamic_linker="$host_os dld.sl"
17679     shlibpath_var=SHLIB_PATH
17680     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682     soname_spec='${libname}${release}${shared_ext}$major'
17683     ;;
17684   esac
17685   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17686   postinstall_cmds='chmod 555 $lib'
17687   ;;
17688
17689 interix[3-9]*)
17690   version_type=linux
17691   need_lib_prefix=no
17692   need_version=no
17693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694   soname_spec='${libname}${release}${shared_ext}$major'
17695   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17696   shlibpath_var=LD_LIBRARY_PATH
17697   shlibpath_overrides_runpath=no
17698   hardcode_into_libs=yes
17699   ;;
17700
17701 irix5* | irix6* | nonstopux*)
17702   case $host_os in
17703     nonstopux*) version_type=nonstopux ;;
17704     *)
17705         if test "$lt_cv_prog_gnu_ld" = yes; then
17706                 version_type=linux
17707         else
17708                 version_type=irix
17709         fi ;;
17710   esac
17711   need_lib_prefix=no
17712   need_version=no
17713   soname_spec='${libname}${release}${shared_ext}$major'
17714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17715   case $host_os in
17716   irix5* | nonstopux*)
17717     libsuff= shlibsuff=
17718     ;;
17719   *)
17720     case $LD in # libtool.m4 will add one of these switches to LD
17721     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17722       libsuff= shlibsuff= libmagic=32-bit;;
17723     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17724       libsuff=32 shlibsuff=N32 libmagic=N32;;
17725     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17726       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17727     *) libsuff= shlibsuff= libmagic=never-match;;
17728     esac
17729     ;;
17730   esac
17731   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17732   shlibpath_overrides_runpath=no
17733   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17734   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17735   hardcode_into_libs=yes
17736   ;;
17737
17738 # No shared lib support for Linux oldld, aout, or coff.
17739 linux*oldld* | linux*aout* | linux*coff*)
17740   dynamic_linker=no
17741   ;;
17742
17743 # This must be Linux ELF.
17744 linux* | k*bsd*-gnu)
17745   version_type=linux
17746   need_lib_prefix=no
17747   need_version=no
17748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749   soname_spec='${libname}${release}${shared_ext}$major'
17750   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17751   shlibpath_var=LD_LIBRARY_PATH
17752   shlibpath_overrides_runpath=no
17753   # This implies no fast_install, which is unacceptable.
17754   # Some rework will be needed to allow for fast_install
17755   # before this can be enabled.
17756   hardcode_into_libs=yes
17757
17758   # Append ld.so.conf contents to the search path
17759   if test -f /etc/ld.so.conf; then
17760     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' ' '`
17761     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17762   fi
17763
17764   # We used to test for /lib/ld.so.1 and disable shared libraries on
17765   # powerpc, because MkLinux only supported shared libraries with the
17766   # GNU dynamic linker.  Since this was broken with cross compilers,
17767   # most powerpc-linux boxes support dynamic linking these days and
17768   # people can always --disable-shared, the test was removed, and we
17769   # assume the GNU/Linux dynamic linker is in use.
17770   dynamic_linker='GNU/Linux ld.so'
17771   ;;
17772
17773 netbsd*)
17774   version_type=sunos
17775   need_lib_prefix=no
17776   need_version=no
17777   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17779     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17780     dynamic_linker='NetBSD (a.out) ld.so'
17781   else
17782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17783     soname_spec='${libname}${release}${shared_ext}$major'
17784     dynamic_linker='NetBSD ld.elf_so'
17785   fi
17786   shlibpath_var=LD_LIBRARY_PATH
17787   shlibpath_overrides_runpath=yes
17788   hardcode_into_libs=yes
17789   ;;
17790
17791 newsos6)
17792   version_type=linux
17793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794   shlibpath_var=LD_LIBRARY_PATH
17795   shlibpath_overrides_runpath=yes
17796   ;;
17797
17798 nto-qnx*)
17799   version_type=linux
17800   need_lib_prefix=no
17801   need_version=no
17802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17803   soname_spec='${libname}${release}${shared_ext}$major'
17804   shlibpath_var=LD_LIBRARY_PATH
17805   shlibpath_overrides_runpath=yes
17806   ;;
17807
17808 openbsd*)
17809   version_type=sunos
17810   sys_lib_dlsearch_path_spec="/usr/lib"
17811   need_lib_prefix=no
17812   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17813   case $host_os in
17814     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17815     *)                         need_version=no  ;;
17816   esac
17817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17819   shlibpath_var=LD_LIBRARY_PATH
17820   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17821     case $host_os in
17822       openbsd2.[89] | openbsd2.[89].*)
17823         shlibpath_overrides_runpath=no
17824         ;;
17825       *)
17826         shlibpath_overrides_runpath=yes
17827         ;;
17828       esac
17829   else
17830     shlibpath_overrides_runpath=yes
17831   fi
17832   ;;
17833
17834 os2*)
17835   libname_spec='$name'
17836   shrext_cmds=".dll"
17837   need_lib_prefix=no
17838   library_names_spec='$libname${shared_ext} $libname.a'
17839   dynamic_linker='OS/2 ld.exe'
17840   shlibpath_var=LIBPATH
17841   ;;
17842
17843 osf3* | osf4* | osf5*)
17844   version_type=osf
17845   need_lib_prefix=no
17846   need_version=no
17847   soname_spec='${libname}${release}${shared_ext}$major'
17848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849   shlibpath_var=LD_LIBRARY_PATH
17850   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17851   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17852   ;;
17853
17854 rdos*)
17855   dynamic_linker=no
17856   ;;
17857
17858 solaris*)
17859   version_type=linux
17860   need_lib_prefix=no
17861   need_version=no
17862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17863   soname_spec='${libname}${release}${shared_ext}$major'
17864   shlibpath_var=LD_LIBRARY_PATH
17865   shlibpath_overrides_runpath=yes
17866   hardcode_into_libs=yes
17867   # ldd complains unless libraries are executable
17868   postinstall_cmds='chmod +x $lib'
17869   ;;
17870
17871 sunos4*)
17872   version_type=sunos
17873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17874   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17875   shlibpath_var=LD_LIBRARY_PATH
17876   shlibpath_overrides_runpath=yes
17877   if test "$with_gnu_ld" = yes; then
17878     need_lib_prefix=no
17879   fi
17880   need_version=yes
17881   ;;
17882
17883 sysv4 | sysv4.3*)
17884   version_type=linux
17885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886   soname_spec='${libname}${release}${shared_ext}$major'
17887   shlibpath_var=LD_LIBRARY_PATH
17888   case $host_vendor in
17889     sni)
17890       shlibpath_overrides_runpath=no
17891       need_lib_prefix=no
17892       export_dynamic_flag_spec='${wl}-Blargedynsym'
17893       runpath_var=LD_RUN_PATH
17894       ;;
17895     siemens)
17896       need_lib_prefix=no
17897       ;;
17898     motorola)
17899       need_lib_prefix=no
17900       need_version=no
17901       shlibpath_overrides_runpath=no
17902       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17903       ;;
17904   esac
17905   ;;
17906
17907 sysv4*MP*)
17908   if test -d /usr/nec ;then
17909     version_type=linux
17910     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17911     soname_spec='$libname${shared_ext}.$major'
17912     shlibpath_var=LD_LIBRARY_PATH
17913   fi
17914   ;;
17915
17916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17917   version_type=freebsd-elf
17918   need_lib_prefix=no
17919   need_version=no
17920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17921   soname_spec='${libname}${release}${shared_ext}$major'
17922   shlibpath_var=LD_LIBRARY_PATH
17923   hardcode_into_libs=yes
17924   if test "$with_gnu_ld" = yes; then
17925     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17926     shlibpath_overrides_runpath=no
17927   else
17928     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17929     shlibpath_overrides_runpath=yes
17930     case $host_os in
17931       sco3.2v5*)
17932         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17933         ;;
17934     esac
17935   fi
17936   sys_lib_dlsearch_path_spec='/usr/lib'
17937   ;;
17938
17939 uts4*)
17940   version_type=linux
17941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942   soname_spec='${libname}${release}${shared_ext}$major'
17943   shlibpath_var=LD_LIBRARY_PATH
17944   ;;
17945
17946 *)
17947   dynamic_linker=no
17948   ;;
17949 esac
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17951 $as_echo "$dynamic_linker" >&6; }
17952 test "$dynamic_linker" = no && can_build_shared=no
17953
17954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
17955   $as_echo_n "(cached) " >&6
17956 else
17957   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17958 fi
17959
17960 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
17962   $as_echo_n "(cached) " >&6
17963 else
17964   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17965 fi
17966
17967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17968
17969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17970 if test "$GCC" = yes; then
17971   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17972 fi
17973
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17975 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17976 hardcode_action_GCJ=
17977 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17978    test -n "$runpath_var_GCJ" || \
17979    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17980
17981   # We can hardcode non-existant directories.
17982   if test "$hardcode_direct_GCJ" != no &&
17983      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17984      # have to relink, otherwise we might link with an installed library
17985      # when we should be linking with a yet-to-be-installed one
17986      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17987      test "$hardcode_minus_L_GCJ" != no; then
17988     # Linking always hardcodes the temporary library directory.
17989     hardcode_action_GCJ=relink
17990   else
17991     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17992     hardcode_action_GCJ=immediate
17993   fi
17994 else
17995   # We cannot hardcode anything, or else we can only hardcode existing
17996   # directories.
17997   hardcode_action_GCJ=unsupported
17998 fi
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18000 $as_echo "$hardcode_action_GCJ" >&6; }
18001
18002 if test "$hardcode_action_GCJ" = relink; then
18003   # Fast installation is not supported
18004   enable_fast_install=no
18005 elif test "$shlibpath_overrides_runpath" = yes ||
18006      test "$enable_shared" = no; then
18007   # Fast installation is not necessary
18008   enable_fast_install=needless
18009 fi
18010
18011
18012 # The else clause should only fire when bootstrapping the
18013 # libtool distribution, otherwise you forgot to ship ltmain.sh
18014 # with your package, and you will get complaints that there are
18015 # no rules to generate ltmain.sh.
18016 if test -f "$ltmain"; then
18017   # See if we are running on zsh, and set the options which allow our commands through
18018   # without removal of \ escapes.
18019   if test -n "${ZSH_VERSION+set}" ; then
18020     setopt NO_GLOB_SUBST
18021   fi
18022   # Now quote all the things that may contain metacharacters while being
18023   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18024   # variables and quote the copies for generation of the libtool script.
18025   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18026     SED SHELL STRIP \
18027     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18028     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18029     deplibs_check_method reload_flag reload_cmds need_locks \
18030     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18031     lt_cv_sys_global_symbol_to_c_name_address \
18032     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18033     old_postinstall_cmds old_postuninstall_cmds \
18034     compiler_GCJ \
18035     CC_GCJ \
18036     LD_GCJ \
18037     lt_prog_compiler_wl_GCJ \
18038     lt_prog_compiler_pic_GCJ \
18039     lt_prog_compiler_static_GCJ \
18040     lt_prog_compiler_no_builtin_flag_GCJ \
18041     export_dynamic_flag_spec_GCJ \
18042     thread_safe_flag_spec_GCJ \
18043     whole_archive_flag_spec_GCJ \
18044     enable_shared_with_static_runtimes_GCJ \
18045     old_archive_cmds_GCJ \
18046     old_archive_from_new_cmds_GCJ \
18047     predep_objects_GCJ \
18048     postdep_objects_GCJ \
18049     predeps_GCJ \
18050     postdeps_GCJ \
18051     compiler_lib_search_path_GCJ \
18052     compiler_lib_search_dirs_GCJ \
18053     archive_cmds_GCJ \
18054     archive_expsym_cmds_GCJ \
18055     postinstall_cmds_GCJ \
18056     postuninstall_cmds_GCJ \
18057     old_archive_from_expsyms_cmds_GCJ \
18058     allow_undefined_flag_GCJ \
18059     no_undefined_flag_GCJ \
18060     export_symbols_cmds_GCJ \
18061     hardcode_libdir_flag_spec_GCJ \
18062     hardcode_libdir_flag_spec_ld_GCJ \
18063     hardcode_libdir_separator_GCJ \
18064     hardcode_automatic_GCJ \
18065     module_cmds_GCJ \
18066     module_expsym_cmds_GCJ \
18067     lt_cv_prog_compiler_c_o_GCJ \
18068     fix_srcfile_path_GCJ \
18069     exclude_expsyms_GCJ \
18070     include_expsyms_GCJ; do
18071
18072     case $var in
18073     old_archive_cmds_GCJ | \
18074     old_archive_from_new_cmds_GCJ | \
18075     archive_cmds_GCJ | \
18076     archive_expsym_cmds_GCJ | \
18077     module_cmds_GCJ | \
18078     module_expsym_cmds_GCJ | \
18079     old_archive_from_expsyms_cmds_GCJ | \
18080     export_symbols_cmds_GCJ | \
18081     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18082     postinstall_cmds | postuninstall_cmds | \
18083     old_postinstall_cmds | old_postuninstall_cmds | \
18084     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18085       # Double-quote double-evaled strings.
18086       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18087       ;;
18088     *)
18089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18090       ;;
18091     esac
18092   done
18093
18094   case $lt_echo in
18095   *'\$0 --fallback-echo"')
18096     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18097     ;;
18098   esac
18099
18100 cfgfile="$ofile"
18101
18102   cat <<__EOF__ >> "$cfgfile"
18103 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18104
18105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18106
18107 # Shell to use when invoking shell scripts.
18108 SHELL=$lt_SHELL
18109
18110 # Whether or not to build shared libraries.
18111 build_libtool_libs=$enable_shared
18112
18113 # Whether or not to build static libraries.
18114 build_old_libs=$enable_static
18115
18116 # Whether or not to add -lc for building shared libraries.
18117 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18118
18119 # Whether or not to disallow shared libs when runtime libs are static
18120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18121
18122 # Whether or not to optimize for fast installation.
18123 fast_install=$enable_fast_install
18124
18125 # The host system.
18126 host_alias=$host_alias
18127 host=$host
18128 host_os=$host_os
18129
18130 # The build system.
18131 build_alias=$build_alias
18132 build=$build
18133 build_os=$build_os
18134
18135 # An echo program that does not interpret backslashes.
18136 echo=$lt_echo
18137
18138 # The archiver.
18139 AR=$lt_AR
18140 AR_FLAGS=$lt_AR_FLAGS
18141
18142 # A C compiler.
18143 LTCC=$lt_LTCC
18144
18145 # LTCC compiler flags.
18146 LTCFLAGS=$lt_LTCFLAGS
18147
18148 # A language-specific compiler.
18149 CC=$lt_compiler_GCJ
18150
18151 # Is the compiler the GNU C compiler?
18152 with_gcc=$GCC_GCJ
18153
18154 # An ERE matcher.
18155 EGREP=$lt_EGREP
18156
18157 # The linker used to build libraries.
18158 LD=$lt_LD_GCJ
18159
18160 # Whether we need hard or soft links.
18161 LN_S=$lt_LN_S
18162
18163 # A BSD-compatible nm program.
18164 NM=$lt_NM
18165
18166 # A symbol stripping program
18167 STRIP=$lt_STRIP
18168
18169 # Used to examine libraries when file_magic_cmd begins "file"
18170 MAGIC_CMD=$MAGIC_CMD
18171
18172 # Used on cygwin: DLL creation program.
18173 DLLTOOL="$DLLTOOL"
18174
18175 # Used on cygwin: object dumper.
18176 OBJDUMP="$OBJDUMP"
18177
18178 # Used on cygwin: assembler.
18179 AS="$AS"
18180
18181 # The name of the directory that contains temporary libtool files.
18182 objdir=$objdir
18183
18184 # How to create reloadable object files.
18185 reload_flag=$lt_reload_flag
18186 reload_cmds=$lt_reload_cmds
18187
18188 # How to pass a linker flag through the compiler.
18189 wl=$lt_lt_prog_compiler_wl_GCJ
18190
18191 # Object file suffix (normally "o").
18192 objext="$ac_objext"
18193
18194 # Old archive suffix (normally "a").
18195 libext="$libext"
18196
18197 # Shared library suffix (normally ".so").
18198 shrext_cmds='$shrext_cmds'
18199
18200 # Executable file suffix (normally "").
18201 exeext="$exeext"
18202
18203 # Additional compiler flags for building library objects.
18204 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18205 pic_mode=$pic_mode
18206
18207 # What is the maximum length of a command?
18208 max_cmd_len=$lt_cv_sys_max_cmd_len
18209
18210 # Does compiler simultaneously support -c and -o options?
18211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18212
18213 # Must we lock files when doing compilation?
18214 need_locks=$lt_need_locks
18215
18216 # Do we need the lib prefix for modules?
18217 need_lib_prefix=$need_lib_prefix
18218
18219 # Do we need a version for libraries?
18220 need_version=$need_version
18221
18222 # Whether dlopen is supported.
18223 dlopen_support=$enable_dlopen
18224
18225 # Whether dlopen of programs is supported.
18226 dlopen_self=$enable_dlopen_self
18227
18228 # Whether dlopen of statically linked programs is supported.
18229 dlopen_self_static=$enable_dlopen_self_static
18230
18231 # Compiler flag to prevent dynamic linking.
18232 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18233
18234 # Compiler flag to turn off builtin functions.
18235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18236
18237 # Compiler flag to allow reflexive dlopens.
18238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18239
18240 # Compiler flag to generate shared objects directly from archives.
18241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18242
18243 # Compiler flag to generate thread-safe objects.
18244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18245
18246 # Library versioning type.
18247 version_type=$version_type
18248
18249 # Format of library name prefix.
18250 libname_spec=$lt_libname_spec
18251
18252 # List of archive names.  First name is the real one, the rest are links.
18253 # The last name is the one that the linker finds with -lNAME.
18254 library_names_spec=$lt_library_names_spec
18255
18256 # The coded name of the library, if different from the real name.
18257 soname_spec=$lt_soname_spec
18258
18259 # Commands used to build and install an old-style archive.
18260 RANLIB=$lt_RANLIB
18261 old_archive_cmds=$lt_old_archive_cmds_GCJ
18262 old_postinstall_cmds=$lt_old_postinstall_cmds
18263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18264
18265 # Create an old-style archive from a shared archive.
18266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18267
18268 # Create a temporary old-style archive to link instead of a shared archive.
18269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18270
18271 # Commands used to build and install a shared archive.
18272 archive_cmds=$lt_archive_cmds_GCJ
18273 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18274 postinstall_cmds=$lt_postinstall_cmds
18275 postuninstall_cmds=$lt_postuninstall_cmds
18276
18277 # Commands used to build a loadable module (assumed same as above if empty)
18278 module_cmds=$lt_module_cmds_GCJ
18279 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18280
18281 # Commands to strip libraries.
18282 old_striplib=$lt_old_striplib
18283 striplib=$lt_striplib
18284
18285 # Dependencies to place before the objects being linked to create a
18286 # shared library.
18287 predep_objects=$lt_predep_objects_GCJ
18288
18289 # Dependencies to place after the objects being linked to create a
18290 # shared library.
18291 postdep_objects=$lt_postdep_objects_GCJ
18292
18293 # Dependencies to place before the objects being linked to create a
18294 # shared library.
18295 predeps=$lt_predeps_GCJ
18296
18297 # Dependencies to place after the objects being linked to create a
18298 # shared library.
18299 postdeps=$lt_postdeps_GCJ
18300
18301 # The directories searched by this compiler when creating a shared
18302 # library
18303 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18304
18305 # The library search path used internally by the compiler when linking
18306 # a shared library.
18307 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18308
18309 # Method to check whether dependent libraries are shared objects.
18310 deplibs_check_method=$lt_deplibs_check_method
18311
18312 # Command to use when deplibs_check_method == file_magic.
18313 file_magic_cmd=$lt_file_magic_cmd
18314
18315 # Flag that allows shared libraries with undefined symbols to be built.
18316 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18317
18318 # Flag that forces no undefined symbols.
18319 no_undefined_flag=$lt_no_undefined_flag_GCJ
18320
18321 # Commands used to finish a libtool library installation in a directory.
18322 finish_cmds=$lt_finish_cmds
18323
18324 # Same as above, but a single script fragment to be evaled but not shown.
18325 finish_eval=$lt_finish_eval
18326
18327 # Take the output of nm and produce a listing of raw symbols and C names.
18328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18329
18330 # Transform the output of nm in a proper C declaration
18331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18332
18333 # Transform the output of nm in a C name address pair
18334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18335
18336 # This is the shared library runtime path variable.
18337 runpath_var=$runpath_var
18338
18339 # This is the shared library path variable.
18340 shlibpath_var=$shlibpath_var
18341
18342 # Is shlibpath searched before the hard-coded library search path?
18343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18344
18345 # How to hardcode a shared library path into an executable.
18346 hardcode_action=$hardcode_action_GCJ
18347
18348 # Whether we should hardcode library paths into libraries.
18349 hardcode_into_libs=$hardcode_into_libs
18350
18351 # Flag to hardcode \$libdir into a binary during linking.
18352 # This must work even if \$libdir does not exist.
18353 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18354
18355 # If ld is used when linking, flag to hardcode \$libdir into
18356 # a binary during linking. This must work even if \$libdir does
18357 # not exist.
18358 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18359
18360 # Whether we need a single -rpath flag with a separated argument.
18361 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18362
18363 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18364 # resulting binary.
18365 hardcode_direct=$hardcode_direct_GCJ
18366
18367 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18368 # resulting binary.
18369 hardcode_minus_L=$hardcode_minus_L_GCJ
18370
18371 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18372 # the resulting binary.
18373 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18374
18375 # Set to yes if building a shared library automatically hardcodes DIR into the library
18376 # and all subsequent libraries and executables linked against it.
18377 hardcode_automatic=$hardcode_automatic_GCJ
18378
18379 # Variables whose values should be saved in libtool wrapper scripts and
18380 # restored at relink time.
18381 variables_saved_for_relink="$variables_saved_for_relink"
18382
18383 # Whether libtool must link a program against all its dependency libraries.
18384 link_all_deplibs=$link_all_deplibs_GCJ
18385
18386 # Compile-time system search path for libraries
18387 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18388
18389 # Run-time system search path for libraries
18390 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18391
18392 # Fix the shell variable \$srcfile for the compiler.
18393 fix_srcfile_path=$lt_fix_srcfile_path
18394
18395 # Set to yes if exported symbols are required.
18396 always_export_symbols=$always_export_symbols_GCJ
18397
18398 # The commands to list exported symbols.
18399 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18400
18401 # The commands to extract the exported symbol list from a shared archive.
18402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18403
18404 # Symbols that should not be listed in the preloaded symbols.
18405 exclude_expsyms=$lt_exclude_expsyms_GCJ
18406
18407 # Symbols that must always be exported.
18408 include_expsyms=$lt_include_expsyms_GCJ
18409
18410 # ### END LIBTOOL TAG CONFIG: $tagname
18411
18412 __EOF__
18413
18414
18415 else
18416   # If there is no Makefile yet, we rely on a make rule to execute
18417   # `config.status --recheck' to rerun these tests and create the
18418   # libtool script then.
18419   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18420   if test -f "$ltmain_in"; then
18421     test -f Makefile && make "$ltmain"
18422   fi
18423 fi
18424
18425
18426 ac_ext=c
18427 ac_cpp='$CPP $CPPFLAGS'
18428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18431
18432 CC="$lt_save_CC"
18433
18434         else
18435           tagname=""
18436         fi
18437         ;;
18438
18439       RC)
18440
18441
18442 # Source file extension for RC test sources.
18443 ac_ext=rc
18444
18445 # Object file extension for compiled RC test sources.
18446 objext=o
18447 objext_RC=$objext
18448
18449 # Code to be used in simple compile tests
18450 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18451
18452 # Code to be used in simple link tests
18453 lt_simple_link_test_code="$lt_simple_compile_test_code"
18454
18455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18456
18457 # If no C compiler was specified, use CC.
18458 LTCC=${LTCC-"$CC"}
18459
18460 # If no C compiler flags were specified, use CFLAGS.
18461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18462
18463 # Allow CC to be a program name with arguments.
18464 compiler=$CC
18465
18466
18467 # save warnings/boilerplate of simple test code
18468 ac_outfile=conftest.$ac_objext
18469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18471 _lt_compiler_boilerplate=`cat conftest.err`
18472 $rm conftest*
18473
18474 ac_outfile=conftest.$ac_objext
18475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18477 _lt_linker_boilerplate=`cat conftest.err`
18478 $rm -r conftest*
18479
18480
18481 # Allow CC to be a program name with arguments.
18482 lt_save_CC="$CC"
18483 CC=${RC-"windres"}
18484 compiler=$CC
18485 compiler_RC=$CC
18486 for cc_temp in $compiler""; do
18487   case $cc_temp in
18488     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18489     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18490     \-*) ;;
18491     *) break;;
18492   esac
18493 done
18494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18495
18496 lt_cv_prog_compiler_c_o_RC=yes
18497
18498 # The else clause should only fire when bootstrapping the
18499 # libtool distribution, otherwise you forgot to ship ltmain.sh
18500 # with your package, and you will get complaints that there are
18501 # no rules to generate ltmain.sh.
18502 if test -f "$ltmain"; then
18503   # See if we are running on zsh, and set the options which allow our commands through
18504   # without removal of \ escapes.
18505   if test -n "${ZSH_VERSION+set}" ; then
18506     setopt NO_GLOB_SUBST
18507   fi
18508   # Now quote all the things that may contain metacharacters while being
18509   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18510   # variables and quote the copies for generation of the libtool script.
18511   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18512     SED SHELL STRIP \
18513     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18514     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18515     deplibs_check_method reload_flag reload_cmds need_locks \
18516     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18517     lt_cv_sys_global_symbol_to_c_name_address \
18518     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18519     old_postinstall_cmds old_postuninstall_cmds \
18520     compiler_RC \
18521     CC_RC \
18522     LD_RC \
18523     lt_prog_compiler_wl_RC \
18524     lt_prog_compiler_pic_RC \
18525     lt_prog_compiler_static_RC \
18526     lt_prog_compiler_no_builtin_flag_RC \
18527     export_dynamic_flag_spec_RC \
18528     thread_safe_flag_spec_RC \
18529     whole_archive_flag_spec_RC \
18530     enable_shared_with_static_runtimes_RC \
18531     old_archive_cmds_RC \
18532     old_archive_from_new_cmds_RC \
18533     predep_objects_RC \
18534     postdep_objects_RC \
18535     predeps_RC \
18536     postdeps_RC \
18537     compiler_lib_search_path_RC \
18538     compiler_lib_search_dirs_RC \
18539     archive_cmds_RC \
18540     archive_expsym_cmds_RC \
18541     postinstall_cmds_RC \
18542     postuninstall_cmds_RC \
18543     old_archive_from_expsyms_cmds_RC \
18544     allow_undefined_flag_RC \
18545     no_undefined_flag_RC \
18546     export_symbols_cmds_RC \
18547     hardcode_libdir_flag_spec_RC \
18548     hardcode_libdir_flag_spec_ld_RC \
18549     hardcode_libdir_separator_RC \
18550     hardcode_automatic_RC \
18551     module_cmds_RC \
18552     module_expsym_cmds_RC \
18553     lt_cv_prog_compiler_c_o_RC \
18554     fix_srcfile_path_RC \
18555     exclude_expsyms_RC \
18556     include_expsyms_RC; do
18557
18558     case $var in
18559     old_archive_cmds_RC | \
18560     old_archive_from_new_cmds_RC | \
18561     archive_cmds_RC | \
18562     archive_expsym_cmds_RC | \
18563     module_cmds_RC | \
18564     module_expsym_cmds_RC | \
18565     old_archive_from_expsyms_cmds_RC | \
18566     export_symbols_cmds_RC | \
18567     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18568     postinstall_cmds | postuninstall_cmds | \
18569     old_postinstall_cmds | old_postuninstall_cmds | \
18570     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18571       # Double-quote double-evaled strings.
18572       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18573       ;;
18574     *)
18575       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18576       ;;
18577     esac
18578   done
18579
18580   case $lt_echo in
18581   *'\$0 --fallback-echo"')
18582     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18583     ;;
18584   esac
18585
18586 cfgfile="$ofile"
18587
18588   cat <<__EOF__ >> "$cfgfile"
18589 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18590
18591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18592
18593 # Shell to use when invoking shell scripts.
18594 SHELL=$lt_SHELL
18595
18596 # Whether or not to build shared libraries.
18597 build_libtool_libs=$enable_shared
18598
18599 # Whether or not to build static libraries.
18600 build_old_libs=$enable_static
18601
18602 # Whether or not to add -lc for building shared libraries.
18603 build_libtool_need_lc=$archive_cmds_need_lc_RC
18604
18605 # Whether or not to disallow shared libs when runtime libs are static
18606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18607
18608 # Whether or not to optimize for fast installation.
18609 fast_install=$enable_fast_install
18610
18611 # The host system.
18612 host_alias=$host_alias
18613 host=$host
18614 host_os=$host_os
18615
18616 # The build system.
18617 build_alias=$build_alias
18618 build=$build
18619 build_os=$build_os
18620
18621 # An echo program that does not interpret backslashes.
18622 echo=$lt_echo
18623
18624 # The archiver.
18625 AR=$lt_AR
18626 AR_FLAGS=$lt_AR_FLAGS
18627
18628 # A C compiler.
18629 LTCC=$lt_LTCC
18630
18631 # LTCC compiler flags.
18632 LTCFLAGS=$lt_LTCFLAGS
18633
18634 # A language-specific compiler.
18635 CC=$lt_compiler_RC
18636
18637 # Is the compiler the GNU C compiler?
18638 with_gcc=$GCC_RC
18639
18640 # An ERE matcher.
18641 EGREP=$lt_EGREP
18642
18643 # The linker used to build libraries.
18644 LD=$lt_LD_RC
18645
18646 # Whether we need hard or soft links.
18647 LN_S=$lt_LN_S
18648
18649 # A BSD-compatible nm program.
18650 NM=$lt_NM
18651
18652 # A symbol stripping program
18653 STRIP=$lt_STRIP
18654
18655 # Used to examine libraries when file_magic_cmd begins "file"
18656 MAGIC_CMD=$MAGIC_CMD
18657
18658 # Used on cygwin: DLL creation program.
18659 DLLTOOL="$DLLTOOL"
18660
18661 # Used on cygwin: object dumper.
18662 OBJDUMP="$OBJDUMP"
18663
18664 # Used on cygwin: assembler.
18665 AS="$AS"
18666
18667 # The name of the directory that contains temporary libtool files.
18668 objdir=$objdir
18669
18670 # How to create reloadable object files.
18671 reload_flag=$lt_reload_flag
18672 reload_cmds=$lt_reload_cmds
18673
18674 # How to pass a linker flag through the compiler.
18675 wl=$lt_lt_prog_compiler_wl_RC
18676
18677 # Object file suffix (normally "o").
18678 objext="$ac_objext"
18679
18680 # Old archive suffix (normally "a").
18681 libext="$libext"
18682
18683 # Shared library suffix (normally ".so").
18684 shrext_cmds='$shrext_cmds'
18685
18686 # Executable file suffix (normally "").
18687 exeext="$exeext"
18688
18689 # Additional compiler flags for building library objects.
18690 pic_flag=$lt_lt_prog_compiler_pic_RC
18691 pic_mode=$pic_mode
18692
18693 # What is the maximum length of a command?
18694 max_cmd_len=$lt_cv_sys_max_cmd_len
18695
18696 # Does compiler simultaneously support -c and -o options?
18697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18698
18699 # Must we lock files when doing compilation?
18700 need_locks=$lt_need_locks
18701
18702 # Do we need the lib prefix for modules?
18703 need_lib_prefix=$need_lib_prefix
18704
18705 # Do we need a version for libraries?
18706 need_version=$need_version
18707
18708 # Whether dlopen is supported.
18709 dlopen_support=$enable_dlopen
18710
18711 # Whether dlopen of programs is supported.
18712 dlopen_self=$enable_dlopen_self
18713
18714 # Whether dlopen of statically linked programs is supported.
18715 dlopen_self_static=$enable_dlopen_self_static
18716
18717 # Compiler flag to prevent dynamic linking.
18718 link_static_flag=$lt_lt_prog_compiler_static_RC
18719
18720 # Compiler flag to turn off builtin functions.
18721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18722
18723 # Compiler flag to allow reflexive dlopens.
18724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18725
18726 # Compiler flag to generate shared objects directly from archives.
18727 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18728
18729 # Compiler flag to generate thread-safe objects.
18730 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18731
18732 # Library versioning type.
18733 version_type=$version_type
18734
18735 # Format of library name prefix.
18736 libname_spec=$lt_libname_spec
18737
18738 # List of archive names.  First name is the real one, the rest are links.
18739 # The last name is the one that the linker finds with -lNAME.
18740 library_names_spec=$lt_library_names_spec
18741
18742 # The coded name of the library, if different from the real name.
18743 soname_spec=$lt_soname_spec
18744
18745 # Commands used to build and install an old-style archive.
18746 RANLIB=$lt_RANLIB
18747 old_archive_cmds=$lt_old_archive_cmds_RC
18748 old_postinstall_cmds=$lt_old_postinstall_cmds
18749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18750
18751 # Create an old-style archive from a shared archive.
18752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18753
18754 # Create a temporary old-style archive to link instead of a shared archive.
18755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18756
18757 # Commands used to build and install a shared archive.
18758 archive_cmds=$lt_archive_cmds_RC
18759 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18760 postinstall_cmds=$lt_postinstall_cmds
18761 postuninstall_cmds=$lt_postuninstall_cmds
18762
18763 # Commands used to build a loadable module (assumed same as above if empty)
18764 module_cmds=$lt_module_cmds_RC
18765 module_expsym_cmds=$lt_module_expsym_cmds_RC
18766
18767 # Commands to strip libraries.
18768 old_striplib=$lt_old_striplib
18769 striplib=$lt_striplib
18770
18771 # Dependencies to place before the objects being linked to create a
18772 # shared library.
18773 predep_objects=$lt_predep_objects_RC
18774
18775 # Dependencies to place after the objects being linked to create a
18776 # shared library.
18777 postdep_objects=$lt_postdep_objects_RC
18778
18779 # Dependencies to place before the objects being linked to create a
18780 # shared library.
18781 predeps=$lt_predeps_RC
18782
18783 # Dependencies to place after the objects being linked to create a
18784 # shared library.
18785 postdeps=$lt_postdeps_RC
18786
18787 # The directories searched by this compiler when creating a shared
18788 # library
18789 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18790
18791 # The library search path used internally by the compiler when linking
18792 # a shared library.
18793 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18794
18795 # Method to check whether dependent libraries are shared objects.
18796 deplibs_check_method=$lt_deplibs_check_method
18797
18798 # Command to use when deplibs_check_method == file_magic.
18799 file_magic_cmd=$lt_file_magic_cmd
18800
18801 # Flag that allows shared libraries with undefined symbols to be built.
18802 allow_undefined_flag=$lt_allow_undefined_flag_RC
18803
18804 # Flag that forces no undefined symbols.
18805 no_undefined_flag=$lt_no_undefined_flag_RC
18806
18807 # Commands used to finish a libtool library installation in a directory.
18808 finish_cmds=$lt_finish_cmds
18809
18810 # Same as above, but a single script fragment to be evaled but not shown.
18811 finish_eval=$lt_finish_eval
18812
18813 # Take the output of nm and produce a listing of raw symbols and C names.
18814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18815
18816 # Transform the output of nm in a proper C declaration
18817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18818
18819 # Transform the output of nm in a C name address pair
18820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18821
18822 # This is the shared library runtime path variable.
18823 runpath_var=$runpath_var
18824
18825 # This is the shared library path variable.
18826 shlibpath_var=$shlibpath_var
18827
18828 # Is shlibpath searched before the hard-coded library search path?
18829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18830
18831 # How to hardcode a shared library path into an executable.
18832 hardcode_action=$hardcode_action_RC
18833
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18836
18837 # Flag to hardcode \$libdir into a binary during linking.
18838 # This must work even if \$libdir does not exist.
18839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18840
18841 # If ld is used when linking, flag to hardcode \$libdir into
18842 # a binary during linking. This must work even if \$libdir does
18843 # not exist.
18844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18845
18846 # Whether we need a single -rpath flag with a separated argument.
18847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18848
18849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_direct=$hardcode_direct_RC
18852
18853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_minus_L=$hardcode_minus_L_RC
18856
18857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858 # the resulting binary.
18859 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18860
18861 # Set to yes if building a shared library automatically hardcodes DIR into the library
18862 # and all subsequent libraries and executables linked against it.
18863 hardcode_automatic=$hardcode_automatic_RC
18864
18865 # Variables whose values should be saved in libtool wrapper scripts and
18866 # restored at relink time.
18867 variables_saved_for_relink="$variables_saved_for_relink"
18868
18869 # Whether libtool must link a program against all its dependency libraries.
18870 link_all_deplibs=$link_all_deplibs_RC
18871
18872 # Compile-time system search path for libraries
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18874
18875 # Run-time system search path for libraries
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18877
18878 # Fix the shell variable \$srcfile for the compiler.
18879 fix_srcfile_path=$lt_fix_srcfile_path
18880
18881 # Set to yes if exported symbols are required.
18882 always_export_symbols=$always_export_symbols_RC
18883
18884 # The commands to list exported symbols.
18885 export_symbols_cmds=$lt_export_symbols_cmds_RC
18886
18887 # The commands to extract the exported symbol list from a shared archive.
18888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18889
18890 # Symbols that should not be listed in the preloaded symbols.
18891 exclude_expsyms=$lt_exclude_expsyms_RC
18892
18893 # Symbols that must always be exported.
18894 include_expsyms=$lt_include_expsyms_RC
18895
18896 # ### END LIBTOOL TAG CONFIG: $tagname
18897
18898 __EOF__
18899
18900
18901 else
18902   # If there is no Makefile yet, we rely on a make rule to execute
18903   # `config.status --recheck' to rerun these tests and create the
18904   # libtool script then.
18905   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906   if test -f "$ltmain_in"; then
18907     test -f Makefile && make "$ltmain"
18908   fi
18909 fi
18910
18911
18912 ac_ext=c
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918 CC="$lt_save_CC"
18919
18920         ;;
18921
18922       *)
18923         as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
18924         ;;
18925       esac
18926
18927       # Append the new tag name to the list of available tags.
18928       if test -n "$tagname" ; then
18929       available_tags="$available_tags $tagname"
18930     fi
18931     fi
18932   done
18933   IFS="$lt_save_ifs"
18934
18935   # Now substitute the updated list of available tags.
18936   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18937     mv "${ofile}T" "$ofile"
18938     chmod +x "$ofile"
18939   else
18940     rm -f "${ofile}T"
18941     as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
18942   fi
18943 fi
18944
18945
18946
18947 # This can be used to rebuild libtool when needed
18948 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18949
18950 # Always use our own libtool.
18951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18952
18953 # Prevent multiple expansion
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974 # Check whether --enable-debug was given.
18975 if test "${enable_debug+set}" = set; then :
18976   enableval=$enable_debug;
18977         CXXFLAGS="-g -O0 -Wall"
18978
18979 $as_echo "#define WITH_DEBUG /**/" >>confdefs.h
18980
18981
18982 fi
18983
18984
18985
18986 # Check whether --with-libldap was given.
18987 if test "${with_libldap+set}" = set; then :
18988   withval=$with_libldap;
18989         LIBS="-L$with_libldap $LIBS "
18990
18991 else
18992
18993         LIBS="-L/usr/local/lib $LIBS "
18994
18995
18996 fi
18997
18998
18999
19000 # Check whether --with-ldap-includes was given.
19001 if test "${with_ldap_includes+set}" = set; then :
19002   withval=$with_ldap_includes;
19003         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19004
19005 else
19006
19007         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19008
19009
19010 fi
19011
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
19013 $as_echo_n "checking for main in -lresolv... " >&6; }
19014 if test "${ac_cv_lib_resolv_main+set}" = set; then :
19015   $as_echo_n "(cached) " >&6
19016 else
19017   ac_check_lib_save_LIBS=$LIBS
19018 LIBS="-lresolv  $LIBS"
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h.  */
19021
19022
19023 int
19024 main ()
19025 {
19026 return main ();
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 if ac_fn_c_try_link "$LINENO"; then :
19032   ac_cv_lib_resolv_main=yes
19033 else
19034   ac_cv_lib_resolv_main=no
19035 fi
19036 rm -f core conftest.err conftest.$ac_objext \
19037     conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19039 fi
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
19041 $as_echo "$ac_cv_lib_resolv_main" >&6; }
19042 if test "x$ac_cv_lib_resolv_main" = x""yes; then :
19043   cat >>confdefs.h <<_ACEOF
19044 #define HAVE_LIBRESOLV 1
19045 _ACEOF
19046
19047   LIBS="-lresolv $LIBS"
19048
19049 fi
19050
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_strdup in -llber" >&5
19052 $as_echo_n "checking for ber_strdup in -llber... " >&6; }
19053 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then :
19054   $as_echo_n "(cached) " >&6
19055 else
19056   ac_check_lib_save_LIBS=$LIBS
19057 LIBS="-llber  $LIBS"
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h.  */
19060
19061 /* Override any GCC internal prototype to avoid an error.
19062    Use char because int might match the return type of a GCC
19063    builtin and then its argument prototype would still apply.  */
19064 #ifdef __cplusplus
19065 extern "C"
19066 #endif
19067 char ber_strdup ();
19068 int
19069 main ()
19070 {
19071 return ber_strdup ();
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 if ac_fn_c_try_link "$LINENO"; then :
19077   ac_cv_lib_lber_ber_strdup=yes
19078 else
19079   ac_cv_lib_lber_ber_strdup=no
19080 fi
19081 rm -f core conftest.err conftest.$ac_objext \
19082     conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19084 fi
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_strdup" >&5
19086 $as_echo "$ac_cv_lib_lber_ber_strdup" >&6; }
19087 if test "x$ac_cv_lib_lber_ber_strdup" = x""yes; then :
19088
19089         :
19090
19091 else
19092
19093         echo "        didn't find ber_strdup in liblber !";
19094         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19095         echo "        or try the --with-libldap option.";
19096         exit
19097
19098 fi
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_add_ext in -lldap" >&5
19101 $as_echo_n "checking for ldap_add_ext in -lldap... " >&6; }
19102 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then :
19103   $as_echo_n "(cached) " >&6
19104 else
19105   ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lldap
19107     -llber
19108      $LIBS"
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h.  */
19111
19112 /* Override any GCC internal prototype to avoid an error.
19113    Use char because int might match the return type of a GCC
19114    builtin and then its argument prototype would still apply.  */
19115 #ifdef __cplusplus
19116 extern "C"
19117 #endif
19118 char ldap_add_ext ();
19119 int
19120 main ()
19121 {
19122 return ldap_add_ext ();
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 if ac_fn_c_try_link "$LINENO"; then :
19128   ac_cv_lib_ldap_ldap_add_ext=yes
19129 else
19130   ac_cv_lib_ldap_ldap_add_ext=no
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext \
19133     conftest$ac_exeext conftest.$ac_ext
19134 LIBS=$ac_check_lib_save_LIBS
19135 fi
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19137 $as_echo "$ac_cv_lib_ldap_ldap_add_ext" >&6; }
19138 if test "x$ac_cv_lib_ldap_ldap_add_ext" = x""yes; then :
19139
19140         :
19141
19142 else
19143
19144         echo "        didn't find ldap_add_ext in libldap !";
19145         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
19146         echo "        or try the --with-libldap option.";
19147         exit
19148
19149 fi
19150
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19152 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19153 if test "${ac_cv_header_time+set}" = set; then :
19154   $as_echo_n "(cached) " >&6
19155 else
19156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h.  */
19158 #include <sys/types.h>
19159 #include <sys/time.h>
19160 #include <time.h>
19161
19162 int
19163 main ()
19164 {
19165 if ((struct tm *) 0)
19166 return 0;
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_compile "$LINENO"; then :
19172   ac_cv_header_time=yes
19173 else
19174   ac_cv_header_time=no
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 fi
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19179 $as_echo "$ac_cv_header_time" >&6; }
19180 if test $ac_cv_header_time = yes; then
19181
19182 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19183
19184 fi
19185
19186 for ac_header in termios.h ldap.h
19187 do :
19188   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19190 eval as_val=\$$as_ac_Header
19191    if test "x$as_val" = x""yes; then :
19192   cat >>confdefs.h <<_ACEOF
19193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19194 _ACEOF
19195
19196 fi
19197
19198 done
19199
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h.  */
19202 #include <ldap.h>
19203
19204 _ACEOF
19205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19206   $EGREP "ldap_add_ext" >/dev/null 2>&1; then :
19207
19208         :
19209
19210 else
19211
19212         echo "        didn't find ldap_add_ext in ldap.h!";
19213         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
19214         echo "        or try --with-ldap-includes option.";
19215         exit
19216
19217 fi
19218 rm -f conftest*
19219
19220 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
19221 if test "x$ac_cv_header_lber_h" = x""yes; then :
19222
19223 fi
19224
19225
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h.  */
19228 #include <lber.h>
19229
19230 _ACEOF
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232   $EGREP "ber_strdup" >/dev/null 2>&1; then :
19233
19234         :
19235
19236 else
19237
19238         echo "        didn't find ber_strdup in lber.h!";
19239         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
19240         echo "        or try --with-ldap-includes option.";
19241         exit
19242
19243 fi
19244 rm -f conftest*
19245
19246
19247
19248
19249 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
19250
19251 cat >confcache <<\_ACEOF
19252 # This file is a shell script that caches the results of configure
19253 # tests run on this system so they can be shared between configure
19254 # scripts and configure runs, see configure's option --config-cache.
19255 # It is not useful on other systems.  If it contains results you don't
19256 # want to keep, you may remove or edit it.
19257 #
19258 # config.status only pays attention to the cache file if you give it
19259 # the --recheck option to rerun configure.
19260 #
19261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19263 # following values.
19264
19265 _ACEOF
19266
19267 # The following way of writing the cache mishandles newlines in values,
19268 # but we know of no workaround that is simple, portable, and efficient.
19269 # So, we kill variables containing newlines.
19270 # Ultrix sh set writes to stderr and can't be redirected directly,
19271 # and sets the high bit in the cache file unless we assign to the vars.
19272 (
19273   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19274     eval ac_val=\$$ac_var
19275     case $ac_val in #(
19276     *${as_nl}*)
19277       case $ac_var in #(
19278       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19280       esac
19281       case $ac_var in #(
19282       _ | IFS | as_nl) ;; #(
19283       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19284       *) { eval $ac_var=; unset $ac_var;} ;;
19285       esac ;;
19286     esac
19287   done
19288
19289   (set) 2>&1 |
19290     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19291     *${as_nl}ac_space=\ *)
19292       # `set' does not quote correctly, so add quotes: double-quote
19293       # substitution turns \\\\ into \\, and sed turns \\ into \.
19294       sed -n \
19295         "s/'/'\\\\''/g;
19296           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19297       ;; #(
19298     *)
19299       # `set' quotes correctly as required by POSIX, so do not add quotes.
19300       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19301       ;;
19302     esac |
19303     sort
19304 ) |
19305   sed '
19306      /^ac_cv_env_/b end
19307      t clear
19308      :clear
19309      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19310      t end
19311      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19312      :end' >>confcache
19313 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19314   if test -w "$cache_file"; then
19315     test "x$cache_file" != "x/dev/null" &&
19316       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19317 $as_echo "$as_me: updating cache $cache_file" >&6;}
19318     cat confcache >$cache_file
19319   else
19320     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19321 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19322   fi
19323 fi
19324 rm -f confcache
19325
19326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19327 # Let make expand exec_prefix.
19328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19329
19330 DEFS=-DHAVE_CONFIG_H
19331
19332 ac_libobjs=
19333 ac_ltlibobjs=
19334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19335   # 1. Remove the extension, and $U if already installed.
19336   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19337   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19338   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19339   #    will be set to the directory where LIBOBJS objects are built.
19340   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19341   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19342 done
19343 LIBOBJS=$ac_libobjs
19344
19345 LTLIBOBJS=$ac_ltlibobjs
19346
19347
19348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19349   as_fn_error "conditional \"AMDEP\" was never defined.
19350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19351 fi
19352 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19353   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19355 fi
19356 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19357   as_fn_error "conditional \"am__fastdepCC\" was never defined.
19358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19359 fi
19360
19361 : ${CONFIG_STATUS=./config.status}
19362 ac_write_fail=0
19363 ac_clean_files_save=$ac_clean_files
19364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19367 as_write_fail=0
19368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19369 #! $SHELL
19370 # Generated by $as_me.
19371 # Run this file to recreate the current configuration.
19372 # Compiler output produced by configure, useful for debugging
19373 # configure, is in config.log if it exists.
19374
19375 debug=false
19376 ac_cs_recheck=false
19377 ac_cs_silent=false
19378
19379 SHELL=\${CONFIG_SHELL-$SHELL}
19380 export SHELL
19381 _ASEOF
19382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19383 ## -------------------- ##
19384 ## M4sh Initialization. ##
19385 ## -------------------- ##
19386
19387 # Be more Bourne compatible
19388 DUALCASE=1; export DUALCASE # for MKS sh
19389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19390   emulate sh
19391   NULLCMD=:
19392   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19393   # is contrary to our usage.  Disable this feature.
19394   alias -g '${1+"$@"}'='"$@"'
19395   setopt NO_GLOB_SUBST
19396 else
19397   case `(set -o) 2>/dev/null` in #(
19398   *posix*) :
19399     set -o posix ;; #(
19400   *) :
19401      ;;
19402 esac
19403 fi
19404
19405
19406 as_nl='
19407 '
19408 export as_nl
19409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19413 # Prefer a ksh shell builtin over an external printf program on Solaris,
19414 # but without wasting forks for bash or zsh.
19415 if test -z "$BASH_VERSION$ZSH_VERSION" \
19416     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19417   as_echo='print -r --'
19418   as_echo_n='print -rn --'
19419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19420   as_echo='printf %s\n'
19421   as_echo_n='printf %s'
19422 else
19423   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19424     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19425     as_echo_n='/usr/ucb/echo -n'
19426   else
19427     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19428     as_echo_n_body='eval
19429       arg=$1;
19430       case $arg in #(
19431       *"$as_nl"*)
19432         expr "X$arg" : "X\\(.*\\)$as_nl";
19433         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19434       esac;
19435       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19436     '
19437     export as_echo_n_body
19438     as_echo_n='sh -c $as_echo_n_body as_echo'
19439   fi
19440   export as_echo_body
19441   as_echo='sh -c $as_echo_body as_echo'
19442 fi
19443
19444 # The user is always right.
19445 if test "${PATH_SEPARATOR+set}" != set; then
19446   PATH_SEPARATOR=:
19447   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19448     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19449       PATH_SEPARATOR=';'
19450   }
19451 fi
19452
19453
19454 # IFS
19455 # We need space, tab and new line, in precisely that order.  Quoting is
19456 # there to prevent editors from complaining about space-tab.
19457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19458 # splitting by setting IFS to empty value.)
19459 IFS=" ""        $as_nl"
19460
19461 # Find who we are.  Look in the path if we contain no directory separator.
19462 case $0 in #((
19463   *[\\/]* ) as_myself=$0 ;;
19464   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465 for as_dir in $PATH
19466 do
19467   IFS=$as_save_IFS
19468   test -z "$as_dir" && as_dir=.
19469     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19470   done
19471 IFS=$as_save_IFS
19472
19473      ;;
19474 esac
19475 # We did not find ourselves, most probably we were run as `sh COMMAND'
19476 # in which case we are not to be found in the path.
19477 if test "x$as_myself" = x; then
19478   as_myself=$0
19479 fi
19480 if test ! -f "$as_myself"; then
19481   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19482   exit 1
19483 fi
19484
19485 # Unset variables that we do not need and which cause bugs (e.g. in
19486 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19487 # suppresses any "Segmentation fault" message there.  '((' could
19488 # trigger a bug in pdksh 5.2.14.
19489 for as_var in BASH_ENV ENV MAIL MAILPATH
19490 do eval test x\${$as_var+set} = xset \
19491   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19492 done
19493 PS1='$ '
19494 PS2='> '
19495 PS4='+ '
19496
19497 # NLS nuisances.
19498 LC_ALL=C
19499 export LC_ALL
19500 LANGUAGE=C
19501 export LANGUAGE
19502
19503 # CDPATH.
19504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19505
19506
19507 # as_fn_error ERROR [LINENO LOG_FD]
19508 # ---------------------------------
19509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19511 # script with status $?, using 1 if that was 0.
19512 as_fn_error ()
19513 {
19514   as_status=$?; test $as_status -eq 0 && as_status=1
19515   if test "$3"; then
19516     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19517     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19518   fi
19519   $as_echo "$as_me: error: $1" >&2
19520   as_fn_exit $as_status
19521 } # as_fn_error
19522
19523
19524 # as_fn_set_status STATUS
19525 # -----------------------
19526 # Set $? to STATUS, without forking.
19527 as_fn_set_status ()
19528 {
19529   return $1
19530 } # as_fn_set_status
19531
19532 # as_fn_exit STATUS
19533 # -----------------
19534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19535 as_fn_exit ()
19536 {
19537   set +e
19538   as_fn_set_status $1
19539   exit $1
19540 } # as_fn_exit
19541
19542 # as_fn_unset VAR
19543 # ---------------
19544 # Portably unset VAR.
19545 as_fn_unset ()
19546 {
19547   { eval $1=; unset $1;}
19548 }
19549 as_unset=as_fn_unset
19550 # as_fn_append VAR VALUE
19551 # ----------------------
19552 # Append the text in VALUE to the end of the definition contained in VAR. Take
19553 # advantage of any shell optimizations that allow amortized linear growth over
19554 # repeated appends, instead of the typical quadratic growth present in naive
19555 # implementations.
19556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19557   eval 'as_fn_append ()
19558   {
19559     eval $1+=\$2
19560   }'
19561 else
19562   as_fn_append ()
19563   {
19564     eval $1=\$$1\$2
19565   }
19566 fi # as_fn_append
19567
19568 # as_fn_arith ARG...
19569 # ------------------
19570 # Perform arithmetic evaluation on the ARGs, and store the result in the
19571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19572 # must be portable across $(()) and expr.
19573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19574   eval 'as_fn_arith ()
19575   {
19576     as_val=$(( $* ))
19577   }'
19578 else
19579   as_fn_arith ()
19580   {
19581     as_val=`expr "$@" || test $? -eq 1`
19582   }
19583 fi # as_fn_arith
19584
19585
19586 if expr a : '\(a\)' >/dev/null 2>&1 &&
19587    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19588   as_expr=expr
19589 else
19590   as_expr=false
19591 fi
19592
19593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19594   as_basename=basename
19595 else
19596   as_basename=false
19597 fi
19598
19599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19600   as_dirname=dirname
19601 else
19602   as_dirname=false
19603 fi
19604
19605 as_me=`$as_basename -- "$0" ||
19606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19607          X"$0" : 'X\(//\)$' \| \
19608          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19609 $as_echo X/"$0" |
19610     sed '/^.*\/\([^/][^/]*\)\/*$/{
19611             s//\1/
19612             q
19613           }
19614           /^X\/\(\/\/\)$/{
19615             s//\1/
19616             q
19617           }
19618           /^X\/\(\/\).*/{
19619             s//\1/
19620             q
19621           }
19622           s/.*/./; q'`
19623
19624 # Avoid depending upon Character Ranges.
19625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19628 as_cr_digits='0123456789'
19629 as_cr_alnum=$as_cr_Letters$as_cr_digits
19630
19631 ECHO_C= ECHO_N= ECHO_T=
19632 case `echo -n x` in #(((((
19633 -n*)
19634   case `echo 'xy\c'` in
19635   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19636   xy)  ECHO_C='\c';;
19637   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19638        ECHO_T=' ';;
19639   esac;;
19640 *)
19641   ECHO_N='-n';;
19642 esac
19643
19644 rm -f conf$$ conf$$.exe conf$$.file
19645 if test -d conf$$.dir; then
19646   rm -f conf$$.dir/conf$$.file
19647 else
19648   rm -f conf$$.dir
19649   mkdir conf$$.dir 2>/dev/null
19650 fi
19651 if (echo >conf$$.file) 2>/dev/null; then
19652   if ln -s conf$$.file conf$$ 2>/dev/null; then
19653     as_ln_s='ln -s'
19654     # ... but there are two gotchas:
19655     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19656     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19657     # In both cases, we have to default to `cp -p'.
19658     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19659       as_ln_s='cp -p'
19660   elif ln conf$$.file conf$$ 2>/dev/null; then
19661     as_ln_s=ln
19662   else
19663     as_ln_s='cp -p'
19664   fi
19665 else
19666   as_ln_s='cp -p'
19667 fi
19668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19669 rmdir conf$$.dir 2>/dev/null
19670
19671
19672 # as_fn_mkdir_p
19673 # -------------
19674 # Create "$as_dir" as a directory, including parents if necessary.
19675 as_fn_mkdir_p ()
19676 {
19677
19678   case $as_dir in #(
19679   -*) as_dir=./$as_dir;;
19680   esac
19681   test -d "$as_dir" || eval $as_mkdir_p || {
19682     as_dirs=
19683     while :; do
19684       case $as_dir in #(
19685       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19686       *) as_qdir=$as_dir;;
19687       esac
19688       as_dirs="'$as_qdir' $as_dirs"
19689       as_dir=`$as_dirname -- "$as_dir" ||
19690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19691          X"$as_dir" : 'X\(//\)[^/]' \| \
19692          X"$as_dir" : 'X\(//\)$' \| \
19693          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19694 $as_echo X"$as_dir" |
19695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19696             s//\1/
19697             q
19698           }
19699           /^X\(\/\/\)[^/].*/{
19700             s//\1/
19701             q
19702           }
19703           /^X\(\/\/\)$/{
19704             s//\1/
19705             q
19706           }
19707           /^X\(\/\).*/{
19708             s//\1/
19709             q
19710           }
19711           s/.*/./; q'`
19712       test -d "$as_dir" && break
19713     done
19714     test -z "$as_dirs" || eval "mkdir $as_dirs"
19715   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19716
19717
19718 } # as_fn_mkdir_p
19719 if mkdir -p . 2>/dev/null; then
19720   as_mkdir_p='mkdir -p "$as_dir"'
19721 else
19722   test -d ./-p && rmdir ./-p
19723   as_mkdir_p=false
19724 fi
19725
19726 if test -x / >/dev/null 2>&1; then
19727   as_test_x='test -x'
19728 else
19729   if ls -dL / >/dev/null 2>&1; then
19730     as_ls_L_option=L
19731   else
19732     as_ls_L_option=
19733   fi
19734   as_test_x='
19735     eval sh -c '\''
19736       if test -d "$1"; then
19737         test -d "$1/.";
19738       else
19739         case $1 in #(
19740         -*)set "./$1";;
19741         esac;
19742         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19743         ???[sx]*):;;*)false;;esac;fi
19744     '\'' sh
19745   '
19746 fi
19747 as_executable_p=$as_test_x
19748
19749 # Sed expression to map a string onto a valid CPP name.
19750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19751
19752 # Sed expression to map a string onto a valid variable name.
19753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19754
19755
19756 exec 6>&1
19757 ## ----------------------------------- ##
19758 ## Main body of $CONFIG_STATUS script. ##
19759 ## ----------------------------------- ##
19760 _ASEOF
19761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19762
19763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19764 # Save the log message, to keep $0 and so on meaningful, and to
19765 # report actual input values of CONFIG_FILES etc. instead of their
19766 # values after options handling.
19767 ac_log="
19768 This file was extended by ldapcpplib $as_me  , which was
19769 generated by GNU Autoconf 2.65.  Invocation command line was
19770
19771   CONFIG_FILES    = $CONFIG_FILES
19772   CONFIG_HEADERS  = $CONFIG_HEADERS
19773   CONFIG_LINKS    = $CONFIG_LINKS
19774   CONFIG_COMMANDS = $CONFIG_COMMANDS
19775   $ $0 $@
19776
19777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19778 "
19779
19780 _ACEOF
19781
19782 case $ac_config_files in *"
19783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19784 esac
19785
19786 case $ac_config_headers in *"
19787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19788 esac
19789
19790
19791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792 # Files that config.status was made for.
19793 config_files="$ac_config_files"
19794 config_headers="$ac_config_headers"
19795 config_commands="$ac_config_commands"
19796
19797 _ACEOF
19798
19799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19800 ac_cs_usage="\
19801 \`$as_me' instantiates files and other configuration actions
19802 from templates according to the current configuration.  Unless the files
19803 and actions are specified as TAGs, all are instantiated by default.
19804
19805 Usage: $0 [OPTION]... [TAG]...
19806
19807   -h, --help       print this help, then exit
19808   -V, --version    print version number and configuration settings, then exit
19809       --config     print configuration, then exit
19810   -q, --quiet, --silent
19811                    do not print progress messages
19812   -d, --debug      don't remove temporary files
19813       --recheck    update $as_me by reconfiguring in the same conditions
19814       --file=FILE[:TEMPLATE]
19815                    instantiate the configuration file FILE
19816       --header=FILE[:TEMPLATE]
19817                    instantiate the configuration header FILE
19818
19819 Configuration files:
19820 $config_files
19821
19822 Configuration headers:
19823 $config_headers
19824
19825 Configuration commands:
19826 $config_commands
19827
19828 Report bugs to <http://www.openldap.org/its/ >."
19829
19830 _ACEOF
19831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19832 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19833 ac_cs_version="\\
19834 ldapcpplib config.status
19835 configured by $0, generated by GNU Autoconf 2.65,
19836   with options \\"\$ac_cs_config\\"
19837
19838 Copyright (C) 2009 Free Software Foundation, Inc.
19839 This config.status script is free software; the Free Software Foundation
19840 gives unlimited permission to copy, distribute and modify it."
19841
19842 ac_pwd='$ac_pwd'
19843 srcdir='$srcdir'
19844 INSTALL='$INSTALL'
19845 MKDIR_P='$MKDIR_P'
19846 AWK='$AWK'
19847 test -n "\$AWK" || AWK=awk
19848 _ACEOF
19849
19850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19851 # The default lists apply if the user does not specify any file.
19852 ac_need_defaults=:
19853 while test $# != 0
19854 do
19855   case $1 in
19856   --*=*)
19857     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19858     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19859     ac_shift=:
19860     ;;
19861   *)
19862     ac_option=$1
19863     ac_optarg=$2
19864     ac_shift=shift
19865     ;;
19866   esac
19867
19868   case $ac_option in
19869   # Handling of the options.
19870   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19871     ac_cs_recheck=: ;;
19872   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19873     $as_echo "$ac_cs_version"; exit ;;
19874   --config | --confi | --conf | --con | --co | --c )
19875     $as_echo "$ac_cs_config"; exit ;;
19876   --debug | --debu | --deb | --de | --d | -d )
19877     debug=: ;;
19878   --file | --fil | --fi | --f )
19879     $ac_shift
19880     case $ac_optarg in
19881     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19882     esac
19883     as_fn_append CONFIG_FILES " '$ac_optarg'"
19884     ac_need_defaults=false;;
19885   --header | --heade | --head | --hea )
19886     $ac_shift
19887     case $ac_optarg in
19888     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19889     esac
19890     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19891     ac_need_defaults=false;;
19892   --he | --h)
19893     # Conflict between --help and --header
19894     as_fn_error "ambiguous option: \`$1'
19895 Try \`$0 --help' for more information.";;
19896   --help | --hel | -h )
19897     $as_echo "$ac_cs_usage"; exit ;;
19898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19900     ac_cs_silent=: ;;
19901
19902   # This is an error.
19903   -*) as_fn_error "unrecognized option: \`$1'
19904 Try \`$0 --help' for more information." ;;
19905
19906   *) as_fn_append ac_config_targets " $1"
19907      ac_need_defaults=false ;;
19908
19909   esac
19910   shift
19911 done
19912
19913 ac_configure_extra_args=
19914
19915 if $ac_cs_silent; then
19916   exec 6>/dev/null
19917   ac_configure_extra_args="$ac_configure_extra_args --silent"
19918 fi
19919
19920 _ACEOF
19921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19922 if \$ac_cs_recheck; then
19923   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19924   shift
19925   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19926   CONFIG_SHELL='$SHELL'
19927   export CONFIG_SHELL
19928   exec "\$@"
19929 fi
19930
19931 _ACEOF
19932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19933 exec 5>>config.log
19934 {
19935   echo
19936   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19937 ## Running $as_me. ##
19938 _ASBOX
19939   $as_echo "$ac_log"
19940 } >&5
19941
19942 _ACEOF
19943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19944 #
19945 # INIT-COMMANDS
19946 #
19947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19948
19949 _ACEOF
19950
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952
19953 # Handling of arguments.
19954 for ac_config_target in $ac_config_targets
19955 do
19956   case $ac_config_target in
19957     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19958     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19959     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19960     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19961     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19962
19963   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19964   esac
19965 done
19966
19967
19968 # If the user did not use the arguments to specify the items to instantiate,
19969 # then the envvar interface is used.  Set only those that are not.
19970 # We use the long form for the default assignment because of an extremely
19971 # bizarre bug on SunOS 4.1.3.
19972 if $ac_need_defaults; then
19973   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19974   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19975   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19976 fi
19977
19978 # Have a temporary directory for convenience.  Make it in the build tree
19979 # simply because there is no reason against having it here, and in addition,
19980 # creating and moving files from /tmp can sometimes cause problems.
19981 # Hook for its removal unless debugging.
19982 # Note that there is a small window in which the directory will not be cleaned:
19983 # after its creation but before its name has been assigned to `$tmp'.
19984 $debug ||
19985 {
19986   tmp=
19987   trap 'exit_status=$?
19988   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19989 ' 0
19990   trap 'as_fn_exit 1' 1 2 13 15
19991 }
19992 # Create a (secure) tmp directory for tmp files.
19993
19994 {
19995   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19996   test -n "$tmp" && test -d "$tmp"
19997 }  ||
19998 {
19999   tmp=./conf$$-$RANDOM
20000   (umask 077 && mkdir "$tmp")
20001 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20002
20003 # Set up the scripts for CONFIG_FILES section.
20004 # No need to generate them if there are no CONFIG_FILES.
20005 # This happens for instance with `./config.status config.h'.
20006 if test -n "$CONFIG_FILES"; then
20007
20008
20009 ac_cr=`echo X | tr X '\015'`
20010 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20011 # But we know of no other shell where ac_cr would be empty at this
20012 # point, so we can use a bashism as a fallback.
20013 if test "x$ac_cr" = x; then
20014   eval ac_cr=\$\'\\r\'
20015 fi
20016 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20017 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20018   ac_cs_awk_cr='\r'
20019 else
20020   ac_cs_awk_cr=$ac_cr
20021 fi
20022
20023 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20024 _ACEOF
20025
20026
20027 {
20028   echo "cat >conf$$subs.awk <<_ACEOF" &&
20029   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20030   echo "_ACEOF"
20031 } >conf$$subs.sh ||
20032   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20033 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20034 ac_delim='%!_!# '
20035 for ac_last_try in false false false false false :; do
20036   . ./conf$$subs.sh ||
20037     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20038
20039   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20040   if test $ac_delim_n = $ac_delim_num; then
20041     break
20042   elif $ac_last_try; then
20043     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20044   else
20045     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20046   fi
20047 done
20048 rm -f conf$$subs.sh
20049
20050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20051 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20052 _ACEOF
20053 sed -n '
20054 h
20055 s/^/S["/; s/!.*/"]=/
20056 p
20057 g
20058 s/^[^!]*!//
20059 :repl
20060 t repl
20061 s/'"$ac_delim"'$//
20062 t delim
20063 :nl
20064 h
20065 s/\(.\{148\}\)..*/\1/
20066 t more1
20067 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20068 p
20069 n
20070 b repl
20071 :more1
20072 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20073 p
20074 g
20075 s/.\{148\}//
20076 t nl
20077 :delim
20078 h
20079 s/\(.\{148\}\)..*/\1/
20080 t more2
20081 s/["\\]/\\&/g; s/^/"/; s/$/"/
20082 p
20083 b
20084 :more2
20085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20086 p
20087 g
20088 s/.\{148\}//
20089 t delim
20090 ' <conf$$subs.awk | sed '
20091 /^[^""]/{
20092   N
20093   s/\n//
20094 }
20095 ' >>$CONFIG_STATUS || ac_write_fail=1
20096 rm -f conf$$subs.awk
20097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20098 _ACAWK
20099 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20100   for (key in S) S_is_set[key] = 1
20101   FS = "\a"
20102
20103 }
20104 {
20105   line = $ 0
20106   nfields = split(line, field, "@")
20107   substed = 0
20108   len = length(field[1])
20109   for (i = 2; i < nfields; i++) {
20110     key = field[i]
20111     keylen = length(key)
20112     if (S_is_set[key]) {
20113       value = S[key]
20114       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20115       len += length(value) + length(field[++i])
20116       substed = 1
20117     } else
20118       len += 1 + keylen
20119   }
20120
20121   print line
20122 }
20123
20124 _ACAWK
20125 _ACEOF
20126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20127 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20128   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20129 else
20130   cat
20131 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20132   || as_fn_error "could not setup config files machinery" "$LINENO" 5
20133 _ACEOF
20134
20135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20137 # trailing colons and then remove the whole line if VPATH becomes empty
20138 # (actually we leave an empty line to preserve line numbers).
20139 if test "x$srcdir" = x.; then
20140   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20141 s/:*\$(srcdir):*/:/
20142 s/:*\${srcdir}:*/:/
20143 s/:*@srcdir@:*/:/
20144 s/^\([^=]*=[     ]*\):*/\1/
20145 s/:*$//
20146 s/^[^=]*=[       ]*$//
20147 }'
20148 fi
20149
20150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20151 fi # test -n "$CONFIG_FILES"
20152
20153 # Set up the scripts for CONFIG_HEADERS section.
20154 # No need to generate them if there are no CONFIG_HEADERS.
20155 # This happens for instance with `./config.status Makefile'.
20156 if test -n "$CONFIG_HEADERS"; then
20157 cat >"$tmp/defines.awk" <<\_ACAWK ||
20158 BEGIN {
20159 _ACEOF
20160
20161 # Transform confdefs.h into an awk script `defines.awk', embedded as
20162 # here-document in config.status, that substitutes the proper values into
20163 # config.h.in to produce config.h.
20164
20165 # Create a delimiter string that does not exist in confdefs.h, to ease
20166 # handling of long lines.
20167 ac_delim='%!_!# '
20168 for ac_last_try in false false :; do
20169   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20170   if test -z "$ac_t"; then
20171     break
20172   elif $ac_last_try; then
20173     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20174   else
20175     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20176   fi
20177 done
20178
20179 # For the awk script, D is an array of macro values keyed by name,
20180 # likewise P contains macro parameters if any.  Preserve backslash
20181 # newline sequences.
20182
20183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20184 sed -n '
20185 s/.\{148\}/&'"$ac_delim"'/g
20186 t rset
20187 :rset
20188 s/^[     ]*#[    ]*define[       ][      ]*/ /
20189 t def
20190 d
20191 :def
20192 s/\\$//
20193 t bsnl
20194 s/["\\]/\\&/g
20195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20196 D["\1"]=" \3"/p
20197 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20198 d
20199 :bsnl
20200 s/["\\]/\\&/g
20201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20202 D["\1"]=" \3\\\\\\n"\\/p
20203 t cont
20204 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20205 t cont
20206 d
20207 :cont
20208 n
20209 s/.\{148\}/&'"$ac_delim"'/g
20210 t clear
20211 :clear
20212 s/\\$//
20213 t bsnlc
20214 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20215 d
20216 :bsnlc
20217 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20218 b cont
20219 ' <confdefs.h | sed '
20220 s/'"$ac_delim"'/"\\\
20221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20222
20223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20224   for (key in D) D_is_set[key] = 1
20225   FS = "\a"
20226 }
20227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20228   line = \$ 0
20229   split(line, arg, " ")
20230   if (arg[1] == "#") {
20231     defundef = arg[2]
20232     mac1 = arg[3]
20233   } else {
20234     defundef = substr(arg[1], 2)
20235     mac1 = arg[2]
20236   }
20237   split(mac1, mac2, "(") #)
20238   macro = mac2[1]
20239   prefix = substr(line, 1, index(line, defundef) - 1)
20240   if (D_is_set[macro]) {
20241     # Preserve the white space surrounding the "#".
20242     print prefix "define", macro P[macro] D[macro]
20243     next
20244   } else {
20245     # Replace #undef with comments.  This is necessary, for example,
20246     # in the case of _POSIX_SOURCE, which is predefined and required
20247     # on some systems where configure will not decide to define it.
20248     if (defundef == "undef") {
20249       print "/*", prefix defundef, macro, "*/"
20250       next
20251     }
20252   }
20253 }
20254 { print }
20255 _ACAWK
20256 _ACEOF
20257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258   as_fn_error "could not setup config headers machinery" "$LINENO" 5
20259 fi # test -n "$CONFIG_HEADERS"
20260
20261
20262 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20263 shift
20264 for ac_tag
20265 do
20266   case $ac_tag in
20267   :[FHLC]) ac_mode=$ac_tag; continue;;
20268   esac
20269   case $ac_mode$ac_tag in
20270   :[FHL]*:*);;
20271   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20272   :[FH]-) ac_tag=-:-;;
20273   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20274   esac
20275   ac_save_IFS=$IFS
20276   IFS=:
20277   set x $ac_tag
20278   IFS=$ac_save_IFS
20279   shift
20280   ac_file=$1
20281   shift
20282
20283   case $ac_mode in
20284   :L) ac_source=$1;;
20285   :[FH])
20286     ac_file_inputs=
20287     for ac_f
20288     do
20289       case $ac_f in
20290       -) ac_f="$tmp/stdin";;
20291       *) # Look for the file first in the build tree, then in the source tree
20292          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20293          # because $ac_f cannot contain `:'.
20294          test -f "$ac_f" ||
20295            case $ac_f in
20296            [\\/$]*) false;;
20297            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20298            esac ||
20299            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20300       esac
20301       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20302       as_fn_append ac_file_inputs " '$ac_f'"
20303     done
20304
20305     # Let's still pretend it is `configure' which instantiates (i.e., don't
20306     # use $as_me), people would be surprised to read:
20307     #    /* config.h.  Generated by config.status.  */
20308     configure_input='Generated from '`
20309           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20310         `' by configure.'
20311     if test x"$ac_file" != x-; then
20312       configure_input="$ac_file.  $configure_input"
20313       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20314 $as_echo "$as_me: creating $ac_file" >&6;}
20315     fi
20316     # Neutralize special characters interpreted by sed in replacement strings.
20317     case $configure_input in #(
20318     *\&* | *\|* | *\\* )
20319        ac_sed_conf_input=`$as_echo "$configure_input" |
20320        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20321     *) ac_sed_conf_input=$configure_input;;
20322     esac
20323
20324     case $ac_tag in
20325     *:-:* | *:-) cat >"$tmp/stdin" \
20326       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20327     esac
20328     ;;
20329   esac
20330
20331   ac_dir=`$as_dirname -- "$ac_file" ||
20332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20333          X"$ac_file" : 'X\(//\)[^/]' \| \
20334          X"$ac_file" : 'X\(//\)$' \| \
20335          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20336 $as_echo X"$ac_file" |
20337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20338             s//\1/
20339             q
20340           }
20341           /^X\(\/\/\)[^/].*/{
20342             s//\1/
20343             q
20344           }
20345           /^X\(\/\/\)$/{
20346             s//\1/
20347             q
20348           }
20349           /^X\(\/\).*/{
20350             s//\1/
20351             q
20352           }
20353           s/.*/./; q'`
20354   as_dir="$ac_dir"; as_fn_mkdir_p
20355   ac_builddir=.
20356
20357 case "$ac_dir" in
20358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20359 *)
20360   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20361   # A ".." for each directory in $ac_dir_suffix.
20362   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20363   case $ac_top_builddir_sub in
20364   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20365   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20366   esac ;;
20367 esac
20368 ac_abs_top_builddir=$ac_pwd
20369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20370 # for backward compatibility:
20371 ac_top_builddir=$ac_top_build_prefix
20372
20373 case $srcdir in
20374   .)  # We are building in place.
20375     ac_srcdir=.
20376     ac_top_srcdir=$ac_top_builddir_sub
20377     ac_abs_top_srcdir=$ac_pwd ;;
20378   [\\/]* | ?:[\\/]* )  # Absolute name.
20379     ac_srcdir=$srcdir$ac_dir_suffix;
20380     ac_top_srcdir=$srcdir
20381     ac_abs_top_srcdir=$srcdir ;;
20382   *) # Relative name.
20383     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20384     ac_top_srcdir=$ac_top_build_prefix$srcdir
20385     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20386 esac
20387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20388
20389
20390   case $ac_mode in
20391   :F)
20392   #
20393   # CONFIG_FILE
20394   #
20395
20396   case $INSTALL in
20397   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20398   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20399   esac
20400   ac_MKDIR_P=$MKDIR_P
20401   case $MKDIR_P in
20402   [\\/$]* | ?:[\\/]* ) ;;
20403   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20404   esac
20405 _ACEOF
20406
20407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20408 # If the template does not know about datarootdir, expand it.
20409 # FIXME: This hack should be removed a few years after 2.60.
20410 ac_datarootdir_hack=; ac_datarootdir_seen=
20411 ac_sed_dataroot='
20412 /datarootdir/ {
20413   p
20414   q
20415 }
20416 /@datadir@/p
20417 /@docdir@/p
20418 /@infodir@/p
20419 /@localedir@/p
20420 /@mandir@/p'
20421 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20422 *datarootdir*) ac_datarootdir_seen=yes;;
20423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20425 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20426 _ACEOF
20427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20428   ac_datarootdir_hack='
20429   s&@datadir@&$datadir&g
20430   s&@docdir@&$docdir&g
20431   s&@infodir@&$infodir&g
20432   s&@localedir@&$localedir&g
20433   s&@mandir@&$mandir&g
20434   s&\\\${datarootdir}&$datarootdir&g' ;;
20435 esac
20436 _ACEOF
20437
20438 # Neutralize VPATH when `$srcdir' = `.'.
20439 # Shell code in configure.ac might set extrasub.
20440 # FIXME: do we really want to maintain this feature?
20441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20442 ac_sed_extra="$ac_vpsub
20443 $extrasub
20444 _ACEOF
20445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20446 :t
20447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20448 s|@configure_input@|$ac_sed_conf_input|;t t
20449 s&@top_builddir@&$ac_top_builddir_sub&;t t
20450 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20451 s&@srcdir@&$ac_srcdir&;t t
20452 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20453 s&@top_srcdir@&$ac_top_srcdir&;t t
20454 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20455 s&@builddir@&$ac_builddir&;t t
20456 s&@abs_builddir@&$ac_abs_builddir&;t t
20457 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20458 s&@INSTALL@&$ac_INSTALL&;t t
20459 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20460 $ac_datarootdir_hack
20461 "
20462 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20463   || as_fn_error "could not create $ac_file" "$LINENO" 5
20464
20465 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20466   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20467   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20469 which seems to be undefined.  Please make sure it is defined." >&5
20470 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20471 which seems to be undefined.  Please make sure it is defined." >&2;}
20472
20473   rm -f "$tmp/stdin"
20474   case $ac_file in
20475   -) cat "$tmp/out" && rm -f "$tmp/out";;
20476   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20477   esac \
20478   || as_fn_error "could not create $ac_file" "$LINENO" 5
20479  ;;
20480   :H)
20481   #
20482   # CONFIG_HEADER
20483   #
20484   if test x"$ac_file" != x-; then
20485     {
20486       $as_echo "/* $configure_input  */" \
20487       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20488     } >"$tmp/config.h" \
20489       || as_fn_error "could not create $ac_file" "$LINENO" 5
20490     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20491       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20492 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20493     else
20494       rm -f "$ac_file"
20495       mv "$tmp/config.h" "$ac_file" \
20496         || as_fn_error "could not create $ac_file" "$LINENO" 5
20497     fi
20498   else
20499     $as_echo "/* $configure_input  */" \
20500       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20501       || as_fn_error "could not create -" "$LINENO" 5
20502   fi
20503 # Compute "$ac_file"'s index in $config_headers.
20504 _am_arg="$ac_file"
20505 _am_stamp_count=1
20506 for _am_header in $config_headers :; do
20507   case $_am_header in
20508     $_am_arg | $_am_arg:* )
20509       break ;;
20510     * )
20511       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20512   esac
20513 done
20514 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20515 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20516          X"$_am_arg" : 'X\(//\)[^/]' \| \
20517          X"$_am_arg" : 'X\(//\)$' \| \
20518          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20519 $as_echo X"$_am_arg" |
20520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20521             s//\1/
20522             q
20523           }
20524           /^X\(\/\/\)[^/].*/{
20525             s//\1/
20526             q
20527           }
20528           /^X\(\/\/\)$/{
20529             s//\1/
20530             q
20531           }
20532           /^X\(\/\).*/{
20533             s//\1/
20534             q
20535           }
20536           s/.*/./; q'`/stamp-h$_am_stamp_count
20537  ;;
20538
20539   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20540 $as_echo "$as_me: executing $ac_file commands" >&6;}
20541  ;;
20542   esac
20543
20544
20545   case $ac_file$ac_mode in
20546     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20547   # Strip MF so we end up with the name of the file.
20548   mf=`echo "$mf" | sed -e 's/:.*$//'`
20549   # Check whether this is an Automake generated Makefile or not.
20550   # We used to match only the files named `Makefile.in', but
20551   # some people rename them; so instead we look at the file content.
20552   # Grep'ing the first line is not enough: some people post-process
20553   # each Makefile.in and add a new line on top of each file to say so.
20554   # Grep'ing the whole file is not good either: AIX grep has a line
20555   # limit of 2048, but all sed's we know have understand at least 4000.
20556   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20557     dirpart=`$as_dirname -- "$mf" ||
20558 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559          X"$mf" : 'X\(//\)[^/]' \| \
20560          X"$mf" : 'X\(//\)$' \| \
20561          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20562 $as_echo X"$mf" |
20563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20564             s//\1/
20565             q
20566           }
20567           /^X\(\/\/\)[^/].*/{
20568             s//\1/
20569             q
20570           }
20571           /^X\(\/\/\)$/{
20572             s//\1/
20573             q
20574           }
20575           /^X\(\/\).*/{
20576             s//\1/
20577             q
20578           }
20579           s/.*/./; q'`
20580   else
20581     continue
20582   fi
20583   # Extract the definition of DEPDIR, am__include, and am__quote
20584   # from the Makefile without running `make'.
20585   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20586   test -z "$DEPDIR" && continue
20587   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20588   test -z "am__include" && continue
20589   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20590   # When using ansi2knr, U may be empty or an underscore; expand it
20591   U=`sed -n 's/^U = //p' < "$mf"`
20592   # Find all dependency output files, they are included files with
20593   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20594   # simplest approach to changing $(DEPDIR) to its actual value in the
20595   # expansion.
20596   for file in `sed -n "
20597     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20598        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20599     # Make sure the directory exists.
20600     test -f "$dirpart/$file" && continue
20601     fdir=`$as_dirname -- "$file" ||
20602 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20603          X"$file" : 'X\(//\)[^/]' \| \
20604          X"$file" : 'X\(//\)$' \| \
20605          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20606 $as_echo X"$file" |
20607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20608             s//\1/
20609             q
20610           }
20611           /^X\(\/\/\)[^/].*/{
20612             s//\1/
20613             q
20614           }
20615           /^X\(\/\/\)$/{
20616             s//\1/
20617             q
20618           }
20619           /^X\(\/\).*/{
20620             s//\1/
20621             q
20622           }
20623           s/.*/./; q'`
20624     as_dir=$dirpart/$fdir; as_fn_mkdir_p
20625     # echo "creating $dirpart/$file"
20626     echo '# dummy' > "$dirpart/$file"
20627   done
20628 done
20629  ;;
20630
20631   esac
20632 done # for ac_tag
20633
20634
20635 as_fn_exit 0
20636 _ACEOF
20637 ac_clean_files=$ac_clean_files_save
20638
20639 test $ac_write_fail = 0 ||
20640   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20641
20642
20643 # configure is writing to config.log, and then calls config.status.
20644 # config.status does its own redirection, appending to config.log.
20645 # Unfortunately, on DOS this fails, as config.log is still kept open
20646 # by configure, so config.status won't be able to write to it; its
20647 # output is simply discarded.  So we exec the FD to /dev/null,
20648 # effectively closing config.log, so it can be properly (re)opened and
20649 # appended to by config.status.  When coming back to configure, we
20650 # need to make the FD available again.
20651 if test "$no_create" != yes; then
20652   ac_cs_success=:
20653   ac_config_status_args=
20654   test "$silent" = yes &&
20655     ac_config_status_args="$ac_config_status_args --quiet"
20656   exec 5>/dev/null
20657   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20658   exec 5>>config.log
20659   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20660   # would make configure fail if this is the last instruction.
20661   $ac_cs_success || as_fn_exit $?
20662 fi
20663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20666 fi
20667