]> andersk Git - test.git/blob - configure
Released version 2.7
[test.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for shellinabox 2.7.
4 #
5 # Report bugs to <markus@shellinabox.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
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 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $echo works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<EOF
606 $*
607 EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621        echo_test_string=`eval $cmd` &&
622        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623     then
624       break
625     fi
626   done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631    test "X$echo_testing_string" = "X$echo_test_string"; then
632   :
633 else
634   # The Solaris, AIX, and Digital Unix default echo programs unquote
635   # backslashes.  This makes it impossible to quote backslashes using
636   #   echo "$something" | sed 's/\\/\\\\/g'
637   #
638   # So, first we look for a working echo in the user's PATH.
639
640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641   for dir in $PATH /usr/ucb; do
642     IFS="$lt_save_ifs"
643     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646        test "X$echo_testing_string" = "X$echo_test_string"; then
647       echo="$dir/echo"
648       break
649     fi
650   done
651   IFS="$lt_save_ifs"
652
653   if test "X$echo" = Xecho; then
654     # We didn't find a better echo, so look for alternatives.
655     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657        test "X$echo_testing_string" = "X$echo_test_string"; then
658       # This shell has a builtin print -r that does the trick.
659       echo='print -r'
660     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661          test "X$CONFIG_SHELL" != X/bin/ksh; then
662       # If we have ksh, try running configure again with it.
663       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664       export ORIGINAL_CONFIG_SHELL
665       CONFIG_SHELL=/bin/ksh
666       export CONFIG_SHELL
667       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668     else
669       # Try using printf.
670       echo='printf %s\n'
671       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673          test "X$echo_testing_string" = "X$echo_test_string"; then
674         # Cool, printf works
675         :
676       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677            test "X$echo_testing_string" = 'X\t' &&
678            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679            test "X$echo_testing_string" = "X$echo_test_string"; then
680         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681         export CONFIG_SHELL
682         SHELL="$CONFIG_SHELL"
683         export SHELL
684         echo="$CONFIG_SHELL $0 --fallback-echo"
685       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686            test "X$echo_testing_string" = 'X\t' &&
687            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688            test "X$echo_testing_string" = "X$echo_test_string"; then
689         echo="$CONFIG_SHELL $0 --fallback-echo"
690       else
691         # maybe with a smaller string...
692         prev=:
693
694         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696           then
697             break
698           fi
699           prev="$cmd"
700         done
701
702         if test "$prev" != 'sed 50q "$0"'; then
703           echo_test_string=`eval $prev`
704           export echo_test_string
705           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706         else
707           # Oops.  We lost completely, so just stick with echo.
708           echo=echo
709         fi
710       fi
711     fi
712   fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='shellinabox'
752 PACKAGE_TARNAME='shellinabox'
753 PACKAGE_VERSION='2.7'
754 PACKAGE_STRING='shellinabox 2.7'
755 PACKAGE_BUGREPORT='markus@shellinabox.com'
756
757 ac_c_werror_flag=
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 #  include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #  include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 LIBTOOL_DEPS
797 LIBTOOL
798 ac_ct_F77
799 FFLAGS
800 F77
801 CXXCPP
802 am__fastdepCXX_FALSE
803 am__fastdepCXX_TRUE
804 CXXDEPMODE
805 ac_ct_CXX
806 CXXFLAGS
807 CXX
808 CPP
809 NMEDIT
810 DSYMUTIL
811 RANLIB
812 AR
813 ECHO
814 LN_S
815 EGREP
816 GREP
817 SED
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 am__fastdepCC_FALSE
827 am__fastdepCC_TRUE
828 CCDEPMODE
829 AMDEPBACKSLASH
830 AMDEP_FALSE
831 AMDEP_TRUE
832 am__quote
833 am__include
834 DEPDIR
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
841 CC
842 am__untar
843 am__tar
844 AMTAR
845 am__leading_dot
846 SET_MAKE
847 AWK
848 mkdir_p
849 MKDIR_P
850 INSTALL_STRIP_PROGRAM
851 STRIP
852 install_sh
853 MAKEINFO
854 AUTOHEADER
855 AUTOMAKE
856 AUTOCONF
857 ACLOCAL
858 VERSION
859 PACKAGE
860 CYGPATH_W
861 am__isrc
862 INSTALL_DATA
863 INSTALL_SCRIPT
864 INSTALL_PROGRAM
865 VCS_REVISION
866 target_alias
867 host_alias
868 build_alias
869 LIBS
870 ECHO_T
871 ECHO_N
872 ECHO_C
873 DEFS
874 mandir
875 localedir
876 libdir
877 psdir
878 pdfdir
879 dvidir
880 htmldir
881 infodir
882 docdir
883 oldincludedir
884 includedir
885 localstatedir
886 sharedstatedir
887 sysconfdir
888 datadir
889 datarootdir
890 libexecdir
891 sbindir
892 bindir
893 program_transform_name
894 prefix
895 exec_prefix
896 PACKAGE_BUGREPORT
897 PACKAGE_STRING
898 PACKAGE_VERSION
899 PACKAGE_TARNAME
900 PACKAGE_NAME
901 PATH_SEPARATOR
902 SHELL'
903 ac_subst_files=''
904 ac_user_opts='
905 enable_option_checking
906 enable_dependency_tracking
907 enable_shared
908 enable_static
909 enable_fast_install
910 with_gnu_ld
911 enable_libtool_lock
912 with_pic
913 with_tags
914 enable_ssl
915 enable_pam
916 enable_runtime_loading
917 '
918       ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CC
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 CPP
927 CXX
928 CXXFLAGS
929 CCC
930 CXXCPP
931 F77
932 FFLAGS'
933
934
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 ac_unrecognized_opts=
939 ac_unrecognized_sep=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
982
983 ac_prev=
984 ac_dashdash=
985 for ac_option
986 do
987   # If the previous option needs an argument, assign it.
988   if test -n "$ac_prev"; then
989     eval $ac_prev=\$ac_option
990     ac_prev=
991     continue
992   fi
993
994   case $ac_option in
995   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996   *)    ac_optarg=yes ;;
997   esac
998
999   # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001   case $ac_dashdash$ac_option in
1002   --)
1003     ac_dashdash=yes ;;
1004
1005   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006     ac_prev=bindir ;;
1007   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008     bindir=$ac_optarg ;;
1009
1010   -build | --build | --buil | --bui | --bu)
1011     ac_prev=build_alias ;;
1012   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013     build_alias=$ac_optarg ;;
1014
1015   -cache-file | --cache-file | --cache-fil | --cache-fi \
1016   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017     ac_prev=cache_file ;;
1018   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020     cache_file=$ac_optarg ;;
1021
1022   --config-cache | -C)
1023     cache_file=config.cache ;;
1024
1025   -datadir | --datadir | --datadi | --datad)
1026     ac_prev=datadir ;;
1027   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028     datadir=$ac_optarg ;;
1029
1030   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031   | --dataroo | --dataro | --datar)
1032     ac_prev=datarootdir ;;
1033   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035     datarootdir=$ac_optarg ;;
1036
1037   -disable-* | --disable-*)
1038     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_useropt_orig=$ac_useropt
1044     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045     case $ac_user_opts in
1046       *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050          ac_unrecognized_sep=', ';;
1051     esac
1052     eval enable_$ac_useropt=no ;;
1053
1054   -docdir | --docdir | --docdi | --doc | --do)
1055     ac_prev=docdir ;;
1056   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057     docdir=$ac_optarg ;;
1058
1059   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060     ac_prev=dvidir ;;
1061   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062     dvidir=$ac_optarg ;;
1063
1064   -enable-* | --enable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1274    { (exit 1); exit 1; }; }
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1291    { (exit 1); exit 1; }; }
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=no ;;
1302
1303   --x)
1304     # Obsolete; use --with-x.
1305     with_x=yes ;;
1306
1307   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308   | --x-incl | --x-inc | --x-in | --x-i)
1309     ac_prev=x_includes ;;
1310   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312     x_includes=$ac_optarg ;;
1313
1314   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316     ac_prev=x_libraries ;;
1317   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319     x_libraries=$ac_optarg ;;
1320
1321   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1322 Try \`$0 --help' for more information." >&2
1323    { (exit 1); exit 1; }; }
1324     ;;
1325
1326   *=*)
1327     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1330       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1331    { (exit 1); exit 1; }; }
1332     eval $ac_envvar=\$ac_optarg
1333     export $ac_envvar ;;
1334
1335   *)
1336     # FIXME: should be removed in autoconf 3.0.
1337     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341     ;;
1342
1343   esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1349    { (exit 1); exit 1; }; }
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353   case $enable_option_checking in
1354     no) ;;
1355     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1356    { (exit 1); exit 1; }; } ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1380    { (exit 1); exit 1; }; }
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1411    { (exit 1); exit 1; }; }
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1414    { (exit 1); exit 1; }; }
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1454    { (exit 1); exit 1; }; }
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1459    { (exit 1); exit 1; }; }
1460         pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463   srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_env_${ac_var}_value=\$${ac_var}
1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482   # Omit some internal or obsolete options to make the list less imposing.
1483   # This message is too long to be a string in the A/UX 3.1 sh.
1484   cat <<_ACEOF
1485 \`configure' configures shellinabox 2.7 to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495   -h, --help              display this help and exit
1496       --help=short        display options specific to this package
1497       --help=recursive    display the short help of all the included packages
1498   -V, --version           display version information and exit
1499   -q, --quiet, --silent   do not print \`checking...' messages
1500       --cache-file=FILE   cache test results in FILE [disabled]
1501   -C, --config-cache      alias for \`--cache-file=config.cache'
1502   -n, --no-create         do not create output files
1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506   --prefix=PREFIX         install architecture-independent files in PREFIX
1507                           [$ac_default_prefix]
1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                           [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519   --bindir=DIR            user executables [EPREFIX/bin]
1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525   --libdir=DIR            object code libraries [EPREFIX/lib]
1526   --includedir=DIR        C header files [PREFIX/include]
1527   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530   --infodir=DIR           info documentation [DATAROOTDIR/info]
1531   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532   --mandir=DIR            man documentation [DATAROOTDIR/man]
1533   --docdir=DIR            documentation root [DATAROOTDIR/doc/shellinabox]
1534   --htmldir=DIR           html documentation [DOCDIR]
1535   --dvidir=DIR            dvi documentation [DOCDIR]
1536   --pdfdir=DIR            pdf documentation [DOCDIR]
1537   --psdir=DIR             ps documentation [DOCDIR]
1538 _ACEOF
1539
1540   cat <<\_ACEOF
1541
1542 Program names:
1543   --program-prefix=PREFIX            prepend PREFIX to installed program names
1544   --program-suffix=SUFFIX            append SUFFIX to installed program names
1545   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547 System types:
1548   --build=BUILD     configure for building on BUILD [guessed]
1549   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554   case $ac_init_help in
1555      short | recursive ) echo "Configuration of shellinabox 2.7:";;
1556    esac
1557   cat <<\_ACEOF
1558
1559 Optional Features:
1560   --disable-option-checking  ignore unrecognized --enable/--with options
1561   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563   --disable-dependency-tracking  speeds up one-time build
1564   --enable-dependency-tracking   do not reject slow dependency extractors
1565   --enable-shared[=PKGS]  build shared libraries [default=yes]
1566   --enable-static[=PKGS]  build static libraries [default=yes]
1567   --enable-fast-install[=PKGS]
1568                           optimize for fast installation [default=yes]
1569   --disable-libtool-lock  avoid locking (might break parallel builds)
1570   --disable-ssl             if available at built-time, support for SSL
1571                             connections will be enabled. It can still be
1572                             disabled at run-time, either on the daemon's
1573                             command line or if the operating system does not
1574                             have the OpenSSL libraries available.
1575   --disable-pam             PAM support is necessary in order to authenticate
1576                             users for running programs other than their default
1577                             login shell.
1578   --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1579                             libraries at run-time, if it has been compiled with
1580                             support for these libraries, and if the operating
1581                             system supports dynamic loading of libraries. This
1582                             allows you to install the same binary on different
1583                             systems independent of whether they have OpenSSL
1584                             and PAM enabled.  If you would rather directly link
1585                             these libraries into the binary, thus making them a
1586                             hard dependency, then disable runtime-loading.
1587
1588 Optional Packages:
1589   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1590   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1591   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1592   --with-pic              try to use only PIC/non-PIC objects [default=use
1593                           both]
1594   --with-tags[=TAGS]      include additional configurations [automatic]
1595
1596 Some influential environment variables:
1597   CC          C compiler command
1598   CFLAGS      C compiler flags
1599   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600               nonstandard directory <lib dir>
1601   LIBS        libraries to pass to the linker, e.g. -l<library>
1602   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1603               you have headers in a nonstandard directory <include dir>
1604   CPP         C preprocessor
1605   CXX         C++ compiler command
1606   CXXFLAGS    C++ compiler flags
1607   CXXCPP      C++ preprocessor
1608   F77         Fortran 77 compiler command
1609   FFLAGS      Fortran 77 compiler flags
1610
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1613
1614 Report bugs to <markus@shellinabox.com>.
1615 _ACEOF
1616 ac_status=$?
1617 fi
1618
1619 if test "$ac_init_help" = "recursive"; then
1620   # If there are subdirs, report their specific --help.
1621   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622     test -d "$ac_dir" ||
1623       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624       continue
1625     ac_builddir=.
1626
1627 case "$ac_dir" in
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *)
1630   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631   # A ".." for each directory in $ac_dir_suffix.
1632   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633   case $ac_top_builddir_sub in
1634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636   esac ;;
1637 esac
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1642
1643 case $srcdir in
1644   .)  # We are building in place.
1645     ac_srcdir=.
1646     ac_top_srcdir=$ac_top_builddir_sub
1647     ac_abs_top_srcdir=$ac_pwd ;;
1648   [\\/]* | ?:[\\/]* )  # Absolute name.
1649     ac_srcdir=$srcdir$ac_dir_suffix;
1650     ac_top_srcdir=$srcdir
1651     ac_abs_top_srcdir=$srcdir ;;
1652   *) # Relative name.
1653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654     ac_top_srcdir=$ac_top_build_prefix$srcdir
1655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656 esac
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659     cd "$ac_dir" || { ac_status=$?; continue; }
1660     # Check for guested configure.
1661     if test -f "$ac_srcdir/configure.gnu"; then
1662       echo &&
1663       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664     elif test -f "$ac_srcdir/configure"; then
1665       echo &&
1666       $SHELL "$ac_srcdir/configure" --help=recursive
1667     else
1668       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669     fi || ac_status=$?
1670     cd "$ac_pwd" || { ac_status=$?; break; }
1671   done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676   cat <<\_ACEOF
1677 shellinabox configure 2.7
1678 generated by GNU Autoconf 2.63
1679
1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1681 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685   exit
1686 fi
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1690
1691 It was created by shellinabox $as_me 2.7, which was
1692 generated by GNU Autoconf 2.63.  Invocation command line was
1693
1694   $ $0 $@
1695
1696 _ACEOF
1697 exec 5>>config.log
1698 {
1699 cat <<_ASUNAME
1700 ## --------- ##
1701 ## Platform. ##
1702 ## --------- ##
1703
1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1709
1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1712
1713 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1714 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1717 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1718 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1719 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1720
1721 _ASUNAME
1722
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726   IFS=$as_save_IFS
1727   test -z "$as_dir" && as_dir=.
1728   $as_echo "PATH: $as_dir"
1729 done
1730 IFS=$as_save_IFS
1731
1732 } >&5
1733
1734 cat >&5 <<_ACEOF
1735
1736
1737 ## ----------- ##
1738 ## Core tests. ##
1739 ## ----------- ##
1740
1741 _ACEOF
1742
1743
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1749 ac_configure_args=
1750 ac_configure_args0=
1751 ac_configure_args1=
1752 ac_must_keep_next=false
1753 for ac_pass in 1 2
1754 do
1755   for ac_arg
1756   do
1757     case $ac_arg in
1758     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760     | -silent | --silent | --silen | --sile | --sil)
1761       continue ;;
1762     *\'*)
1763       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1764     esac
1765     case $ac_pass in
1766     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1767     2)
1768       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1769       if test $ac_must_keep_next = true; then
1770         ac_must_keep_next=false # Got value, back to normal.
1771       else
1772         case $ac_arg in
1773           *=* | --config-cache | -C | -disable-* | --disable-* \
1774           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776           | -with-* | --with-* | -without-* | --without-* | --x)
1777             case "$ac_configure_args0 " in
1778               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1779             esac
1780             ;;
1781           -* ) ac_must_keep_next=true ;;
1782         esac
1783       fi
1784       ac_configure_args="$ac_configure_args '$ac_arg'"
1785       ;;
1786     esac
1787   done
1788 done
1789 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1790 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1791
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log.  We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798   # Save into config.log some information that might help in debugging.
1799   {
1800     echo
1801
1802     cat <<\_ASBOX
1803 ## ---------------- ##
1804 ## Cache variables. ##
1805 ## ---------------- ##
1806 _ASBOX
1807     echo
1808     # The following way of writing the cache mishandles newlines in values,
1809 (
1810   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1811     eval ac_val=\$$ac_var
1812     case $ac_val in #(
1813     *${as_nl}*)
1814       case $ac_var in #(
1815       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1817       esac
1818       case $ac_var in #(
1819       _ | IFS | as_nl) ;; #(
1820       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1821       *) $as_unset $ac_var ;;
1822       esac ;;
1823     esac
1824   done
1825   (set) 2>&1 |
1826     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827     *${as_nl}ac_space=\ *)
1828       sed -n \
1829         "s/'\''/'\''\\\\'\'''\''/g;
1830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831       ;; #(
1832     *)
1833       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1834       ;;
1835     esac |
1836     sort
1837 )
1838     echo
1839
1840     cat <<\_ASBOX
1841 ## ----------------- ##
1842 ## Output variables. ##
1843 ## ----------------- ##
1844 _ASBOX
1845     echo
1846     for ac_var in $ac_subst_vars
1847     do
1848       eval ac_val=\$$ac_var
1849       case $ac_val in
1850       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851       esac
1852       $as_echo "$ac_var='\''$ac_val'\''"
1853     done | sort
1854     echo
1855
1856     if test -n "$ac_subst_files"; then
1857       cat <<\_ASBOX
1858 ## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##
1861 _ASBOX
1862       echo
1863       for ac_var in $ac_subst_files
1864       do
1865         eval ac_val=\$$ac_var
1866         case $ac_val in
1867         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1868         esac
1869         $as_echo "$ac_var='\''$ac_val'\''"
1870       done | sort
1871       echo
1872     fi
1873
1874     if test -s confdefs.h; then
1875       cat <<\_ASBOX
1876 ## ----------- ##
1877 ## confdefs.h. ##
1878 ## ----------- ##
1879 _ASBOX
1880       echo
1881       cat confdefs.h
1882       echo
1883     fi
1884     test "$ac_signal" != 0 &&
1885       $as_echo "$as_me: caught signal $ac_signal"
1886     $as_echo "$as_me: exit $exit_status"
1887   } >&5
1888   rm -f core *.core core.conftest.* &&
1889     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1890     exit $exit_status
1891 ' 0
1892 for ac_signal in 1 2 13 15; do
1893   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1894 done
1895 ac_signal=0
1896
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1899
1900 # Predefined preprocessor variables.
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_NAME "$PACKAGE_NAME"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1909 _ACEOF
1910
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_STRING "$PACKAGE_STRING"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1924 _ACEOF
1925
1926
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer an explicitly selected file to automatically selected ones.
1929 ac_site_file1=NONE
1930 ac_site_file2=NONE
1931 if test -n "$CONFIG_SITE"; then
1932   ac_site_file1=$CONFIG_SITE
1933 elif test "x$prefix" != xNONE; then
1934   ac_site_file1=$prefix/share/config.site
1935   ac_site_file2=$prefix/etc/config.site
1936 else
1937   ac_site_file1=$ac_default_prefix/share/config.site
1938   ac_site_file2=$ac_default_prefix/etc/config.site
1939 fi
1940 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1941 do
1942   test "x$ac_site_file" = xNONE && continue
1943   if test -r "$ac_site_file"; then
1944     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1946     sed 's/^/| /' "$ac_site_file" >&5
1947     . "$ac_site_file"
1948   fi
1949 done
1950
1951 if test -r "$cache_file"; then
1952   # Some versions of bash will fail to source /dev/null (special
1953   # files actually), so we avoid doing that.
1954   if test -f "$cache_file"; then
1955     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 $as_echo "$as_me: loading cache $cache_file" >&6;}
1957     case $cache_file in
1958       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959       *)                      . "./$cache_file";;
1960     esac
1961   fi
1962 else
1963   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 $as_echo "$as_me: creating cache $cache_file" >&6;}
1965   >$cache_file
1966 fi
1967
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         # differences in whitespace do not lead to failure.
1989         ac_old_val_w=`echo x $ac_old_val`
1990         ac_new_val_w=`echo x $ac_new_val`
1991         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994           ac_cache_corrupted=:
1995         else
1996           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998           eval $ac_var=\$ac_old_val
1999         fi
2000         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2001 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2002         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2004       fi;;
2005   esac
2006   # Pass precious variables to config.status.
2007   if test "$ac_new_set" = set; then
2008     case $ac_new_val in
2009     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010     *) ac_arg=$ac_var=$ac_new_val ;;
2011     esac
2012     case " $ac_configure_args " in
2013       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2014       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015     esac
2016   fi
2017 done
2018 if $ac_cache_corrupted; then
2019   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059 VCS_REVISION=117
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define VCS_REVISION "${VCS_REVISION}"
2064 _ACEOF
2065
2066
2067 CFLAGS="${CFLAGS:--Os}"
2068 am__api_version='1.10'
2069
2070 ac_aux_dir=
2071 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2072   if test -f "$ac_dir/install-sh"; then
2073     ac_aux_dir=$ac_dir
2074     ac_install_sh="$ac_aux_dir/install-sh -c"
2075     break
2076   elif test -f "$ac_dir/install.sh"; then
2077     ac_aux_dir=$ac_dir
2078     ac_install_sh="$ac_aux_dir/install.sh -c"
2079     break
2080   elif test -f "$ac_dir/shtool"; then
2081     ac_aux_dir=$ac_dir
2082     ac_install_sh="$ac_aux_dir/shtool install -c"
2083     break
2084   fi
2085 done
2086 if test -z "$ac_aux_dir"; then
2087   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2088 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2089    { (exit 1); exit 1; }; }
2090 fi
2091
2092 # These three variables are undocumented and unsupported,
2093 # and are intended to be withdrawn in a future Autoconf release.
2094 # They can cause serious problems if a builder's source tree is in a directory
2095 # whose full name contains unusual characters.
2096 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2097 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2098 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2099
2100
2101 # Find a good install program.  We prefer a C program (faster),
2102 # so one script is as good as another.  But avoid the broken or
2103 # incompatible versions:
2104 # SysV /etc/install, /usr/sbin/install
2105 # SunOS /usr/etc/install
2106 # IRIX /sbin/install
2107 # AIX /bin/install
2108 # AmigaOS /C/install, which installs bootblocks on floppy discs
2109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112 # OS/2's system install, which has a completely different semantic
2113 # ./install, which can be erroneously created by make from ./install.sh.
2114 # Reject install programs that cannot install multiple files.
2115 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2116 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2117 if test -z "$INSTALL"; then
2118 if test "${ac_cv_path_install+set}" = set; then
2119   $as_echo_n "(cached) " >&6
2120 else
2121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   # Account for people who put trailing slashes in PATH elements.
2127 case $as_dir/ in
2128   ./ | .// | /cC/* | \
2129   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2130   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2131   /usr/ucb/* ) ;;
2132   *)
2133     # OSF1 and SCO ODT 3.0 have their own names for install.
2134     # Don't use installbsd from OSF since it installs stuff as root
2135     # by default.
2136     for ac_prog in ginstall scoinst install; do
2137       for ac_exec_ext in '' $ac_executable_extensions; do
2138         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2139           if test $ac_prog = install &&
2140             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141             # AIX install.  It has an incompatible calling convention.
2142             :
2143           elif test $ac_prog = install &&
2144             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145             # program-specific install script used by HP pwplus--don't use.
2146             :
2147           else
2148             rm -rf conftest.one conftest.two conftest.dir
2149             echo one > conftest.one
2150             echo two > conftest.two
2151             mkdir conftest.dir
2152             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2153               test -s conftest.one && test -s conftest.two &&
2154               test -s conftest.dir/conftest.one &&
2155               test -s conftest.dir/conftest.two
2156             then
2157               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2158               break 3
2159             fi
2160           fi
2161         fi
2162       done
2163     done
2164     ;;
2165 esac
2166
2167 done
2168 IFS=$as_save_IFS
2169
2170 rm -rf conftest.one conftest.two conftest.dir
2171
2172 fi
2173   if test "${ac_cv_path_install+set}" = set; then
2174     INSTALL=$ac_cv_path_install
2175   else
2176     # As a last resort, use the slow shell script.  Don't cache a
2177     # value for INSTALL within a source directory, because that will
2178     # break other packages using the cache if that directory is
2179     # removed, or if the value is a relative name.
2180     INSTALL=$ac_install_sh
2181   fi
2182 fi
2183 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 $as_echo "$INSTALL" >&6; }
2185
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193
2194 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 $as_echo_n "checking whether build environment is sane... " >&6; }
2196 # Just in case
2197 sleep 1
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments.  Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2203 # directory).
2204 if (
2205    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206    if test "$*" = "X"; then
2207       # -L didn't work.
2208       set X `ls -t $srcdir/configure conftest.file`
2209    fi
2210    rm -f conftest.file
2211    if test "$*" != "X $srcdir/configure conftest.file" \
2212       && test "$*" != "X conftest.file $srcdir/configure"; then
2213
2214       # If neither matched, then we have a broken ls.  This can happen
2215       # if, for instance, CONFIG_SHELL is bash and it inherits a
2216       # broken ls alias from the environment.  This has actually
2217       # happened.  Such a system could not be considered "sane".
2218       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2219 alias in your environment" >&5
2220 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2221 alias in your environment" >&2;}
2222    { (exit 1); exit 1; }; }
2223    fi
2224
2225    test "$2" = conftest.file
2226    )
2227 then
2228    # Ok.
2229    :
2230 else
2231    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 $as_echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237 { $as_echo "$as_me:$LINENO: result: yes" >&5
2238 $as_echo "yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $.
2245 # By default was `s,x,x', remove it if useless.
2246 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2247 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2248
2249 # expand $ac_aux_dir to an absolute path
2250 am_aux_dir=`cd $ac_aux_dir && pwd`
2251
2252 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2253 # Use eval to expand $SHELL
2254 if eval "$MISSING --run true"; then
2255   am_missing_run="$MISSING --run "
2256 else
2257   am_missing_run=
2258   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2259 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2260 fi
2261
2262 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2263 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2264 if test -z "$MKDIR_P"; then
2265   if test "${ac_cv_path_mkdir+set}" = set; then
2266   $as_echo_n "(cached) " >&6
2267 else
2268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_prog in mkdir gmkdir; do
2274          for ac_exec_ext in '' $ac_executable_extensions; do
2275            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2276            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2277              'mkdir (GNU coreutils) '* | \
2278              'mkdir (coreutils) '* | \
2279              'mkdir (fileutils) '4.1*)
2280                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2281                break 3;;
2282            esac
2283          done
2284        done
2285 done
2286 IFS=$as_save_IFS
2287
2288 fi
2289
2290   if test "${ac_cv_path_mkdir+set}" = set; then
2291     MKDIR_P="$ac_cv_path_mkdir -p"
2292   else
2293     # As a last resort, use the slow shell script.  Don't cache a
2294     # value for MKDIR_P within a source directory, because that will
2295     # break other packages using the cache if that directory is
2296     # removed, or if the value is a relative name.
2297     test -d ./--version && rmdir ./--version
2298     MKDIR_P="$ac_install_sh -d"
2299   fi
2300 fi
2301 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2302 $as_echo "$MKDIR_P" >&6; }
2303
2304 mkdir_p="$MKDIR_P"
2305 case $mkdir_p in
2306   [\\/$]* | ?:[\\/]*) ;;
2307   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2308 esac
2309
2310 for ac_prog in gawk mawk nawk awk
2311 do
2312   # Extract the first word of "$ac_prog", so it can be a program name with args.
2313 set dummy $ac_prog; ac_word=$2
2314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if test "${ac_cv_prog_AWK+set}" = set; then
2317   $as_echo_n "(cached) " >&6
2318 else
2319   if test -n "$AWK"; then
2320   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325   IFS=$as_save_IFS
2326   test -z "$as_dir" && as_dir=.
2327   for ac_exec_ext in '' $ac_executable_extensions; do
2328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329     ac_cv_prog_AWK="$ac_prog"
2330     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331     break 2
2332   fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2336
2337 fi
2338 fi
2339 AWK=$ac_cv_prog_AWK
2340 if test -n "$AWK"; then
2341   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2342 $as_echo "$AWK" >&6; }
2343 else
2344   { $as_echo "$as_me:$LINENO: result: no" >&5
2345 $as_echo "no" >&6; }
2346 fi
2347
2348
2349   test -n "$AWK" && break
2350 done
2351
2352 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2353 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2354 set x ${MAKE-make}
2355 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2356 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2357   $as_echo_n "(cached) " >&6
2358 else
2359   cat >conftest.make <<\_ACEOF
2360 SHELL = /bin/sh
2361 all:
2362         @echo '@@@%%%=$(MAKE)=@@@%%%'
2363 _ACEOF
2364 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2365 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2366   *@@@%%%=?*=@@@%%%*)
2367     eval ac_cv_prog_make_${ac_make}_set=yes;;
2368   *)
2369     eval ac_cv_prog_make_${ac_make}_set=no;;
2370 esac
2371 rm -f conftest.make
2372 fi
2373 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2374   { $as_echo "$as_me:$LINENO: result: yes" >&5
2375 $as_echo "yes" >&6; }
2376   SET_MAKE=
2377 else
2378   { $as_echo "$as_me:$LINENO: result: no" >&5
2379 $as_echo "no" >&6; }
2380   SET_MAKE="MAKE=${MAKE-make}"
2381 fi
2382
2383 rm -rf .tst 2>/dev/null
2384 mkdir .tst 2>/dev/null
2385 if test -d .tst; then
2386   am__leading_dot=.
2387 else
2388   am__leading_dot=_
2389 fi
2390 rmdir .tst 2>/dev/null
2391
2392 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2393   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2394   # is not polluted with repeated "-I."
2395   am__isrc=' -I$(srcdir)'
2396   # test to see if srcdir already configured
2397   if test -f $srcdir/config.status; then
2398     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2399 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2400    { (exit 1); exit 1; }; }
2401   fi
2402 fi
2403
2404 # test whether we have cygpath
2405 if test -z "$CYGPATH_W"; then
2406   if (cygpath --version) >/dev/null 2>/dev/null; then
2407     CYGPATH_W='cygpath -w'
2408   else
2409     CYGPATH_W=echo
2410   fi
2411 fi
2412
2413
2414 # Define the identity of the package.
2415  PACKAGE='shellinabox'
2416  VERSION='2.7'
2417
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE "$PACKAGE"
2421 _ACEOF
2422
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define VERSION "$VERSION"
2426 _ACEOF
2427
2428 # Some tools Automake needs.
2429
2430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2431
2432
2433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2434
2435
2436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2437
2438
2439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2440
2441
2442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2443
2444 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2445
2446 # Installed binaries are usually stripped using `strip' when the user
2447 # run `make install-strip'.  However `strip' might not be the right
2448 # tool to use in cross-compilation environments, therefore Automake
2449 # will honor the `STRIP' environment variable to overrule this program.
2450 if test "$cross_compiling" != no; then
2451   if test -n "$ac_tool_prefix"; then
2452   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}strip; ac_word=$2
2454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_STRIP+set}" = set; then
2457   $as_echo_n "(cached) " >&6
2458 else
2459   if test -n "$STRIP"; then
2460   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467   for ac_exec_ext in '' $ac_executable_extensions; do
2468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 STRIP=$ac_cv_prog_STRIP
2480 if test -n "$STRIP"; then
2481   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2482 $as_echo "$STRIP" >&6; }
2483 else
2484   { $as_echo "$as_me:$LINENO: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 fi
2490 if test -z "$ac_cv_prog_STRIP"; then
2491   ac_ct_STRIP=$STRIP
2492   # Extract the first word of "strip", so it can be a program name with args.
2493 set dummy strip; ac_word=$2
2494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test -n "$ac_ct_STRIP"; then
2500   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     ac_cv_prog_ac_ct_STRIP="strip"
2510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2520 if test -n "$ac_ct_STRIP"; then
2521   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2522 $as_echo "$ac_ct_STRIP" >&6; }
2523 else
2524   { $as_echo "$as_me:$LINENO: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528   if test "x$ac_ct_STRIP" = x; then
2529     STRIP=":"
2530   else
2531     case $cross_compiling:$ac_tool_warned in
2532 yes:)
2533 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535 ac_tool_warned=yes ;;
2536 esac
2537     STRIP=$ac_ct_STRIP
2538   fi
2539 else
2540   STRIP="$ac_cv_prog_STRIP"
2541 fi
2542
2543 fi
2544 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2545
2546 # We need awk for the "check" target.  The system "awk" is bad on
2547 # some platforms.
2548 # Always define AMTAR for backward compatibility.
2549
2550 AMTAR=${AMTAR-"${am_missing_run}tar"}
2551
2552 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2553
2554
2555
2556
2557
2558 ac_config_headers="$ac_config_headers config.h"
2559
2560 ac_ext=c
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571   $as_echo_n "(cached) " >&6
2572 else
2573   if test -n "$CC"; then
2574   ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2584     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585     break 2
2586   fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2596 $as_echo "$CC" >&6; }
2597 else
2598   { $as_echo "$as_me:$LINENO: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602
2603 fi
2604 if test -z "$ac_cv_prog_CC"; then
2605   ac_ct_CC=$CC
2606   # Extract the first word of "gcc", so it can be a program name with args.
2607 set dummy gcc; ac_word=$2
2608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if test -n "$ac_ct_CC"; then
2614   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621   for ac_exec_ext in '' $ac_executable_extensions; do
2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623     ac_cv_prog_ac_ct_CC="gcc"
2624     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634 if test -n "$ac_ct_CC"; then
2635   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636 $as_echo "$ac_ct_CC" >&6; }
2637 else
2638   { $as_echo "$as_me:$LINENO: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642   if test "x$ac_ct_CC" = x; then
2643     CC=""
2644   else
2645     case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned=yes ;;
2650 esac
2651     CC=$ac_ct_CC
2652   fi
2653 else
2654   CC="$ac_cv_prog_CC"
2655 fi
2656
2657 if test -z "$CC"; then
2658           if test -n "$ac_tool_prefix"; then
2659     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}cc; ac_word=$2
2661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test -n "$CC"; then
2667   ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_CC="${ac_tool_prefix}cc"
2677     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2689 $as_echo "$CC" >&6; }
2690 else
2691   { $as_echo "$as_me:$LINENO: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696   fi
2697 fi
2698 if test -z "$CC"; then
2699   # Extract the first word of "cc", so it can be a program name with args.
2700 set dummy cc; ac_word=$2
2701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704   $as_echo_n "(cached) " >&6
2705 else
2706   if test -n "$CC"; then
2707   ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709   ac_prog_rejected=no
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715   for ac_exec_ext in '' $ac_executable_extensions; do
2716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2718        ac_prog_rejected=yes
2719        continue
2720      fi
2721     ac_cv_prog_CC="cc"
2722     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 if test $ac_prog_rejected = yes; then
2730   # We found a bogon in the path, so make sure we never use it.
2731   set dummy $ac_cv_prog_CC
2732   shift
2733   if test $# != 0; then
2734     # We chose a different compiler from the bogus one.
2735     # However, it has the same basename, so the bogon will be chosen
2736     # first if we set CC to just the basename; use the full file name.
2737     shift
2738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2739   fi
2740 fi
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2747 else
2748   { $as_echo "$as_me:$LINENO: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 if test -z "$CC"; then
2755   if test -n "$ac_tool_prefix"; then
2756   for ac_prog in cl.exe
2757   do
2758     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$CC"; then
2766   ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773   for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2776     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2789 else
2790   { $as_echo "$as_me:$LINENO: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795     test -n "$CC" && break
2796   done
2797 fi
2798 if test -z "$CC"; then
2799   ac_ct_CC=$CC
2800   for ac_prog in cl.exe
2801 do
2802   # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$ac_ct_CC"; then
2810   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817   for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_ac_ct_CC="$ac_prog"
2820     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 $as_echo "$ac_ct_CC" >&6; }
2833 else
2834   { $as_echo "$as_me:$LINENO: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839   test -n "$ac_ct_CC" && break
2840 done
2841
2842   if test "x$ac_ct_CC" = x; then
2843     CC=""
2844   else
2845     case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851     CC=$ac_ct_CC
2852   fi
2853 fi
2854
2855 fi
2856
2857
2858 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&5
2862 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2863 See \`config.log' for more details." >&2;}
2864    { (exit 1); exit 1; }; }; }
2865
2866 # Provide some information about the compiler.
2867 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2868 set X $ac_compile
2869 ac_compiler=$2
2870 { (ac_try="$ac_compiler --version >&5"
2871 case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2876 $as_echo "$ac_try_echo") >&5
2877   (eval "$ac_compiler --version >&5") 2>&5
2878   ac_status=$?
2879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }
2881 { (ac_try="$ac_compiler -v >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888   (eval "$ac_compiler -v >&5") 2>&5
2889   ac_status=$?
2890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898 $as_echo "$ac_try_echo") >&5
2899   (eval "$ac_compiler -V >&5") 2>&5
2900   ac_status=$?
2901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 ac_clean_files_save=$ac_clean_files
2920 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2921 # Try to create an executable without -o first, disregard a.out.
2922 # It will help us diagnose broken compilers, and finding out an intuition
2923 # of exeext.
2924 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2925 $as_echo_n "checking for C compiler default output file name... " >&6; }
2926 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2927
2928 # The possible output files:
2929 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2930
2931 ac_rmfiles=
2932 for ac_file in $ac_files
2933 do
2934   case $ac_file in
2935     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2936     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2937   esac
2938 done
2939 rm -f $ac_rmfiles
2940
2941 if { (ac_try="$ac_link_default"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2947 $as_echo "$ac_try_echo") >&5
2948   (eval "$ac_link_default") 2>&5
2949   ac_status=$?
2950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; then
2952   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2953 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2954 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2955 # so that the user can short-circuit this test for compilers unknown to
2956 # Autoconf.
2957 for ac_file in $ac_files ''
2958 do
2959   test -f "$ac_file" || continue
2960   case $ac_file in
2961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2962         ;;
2963     [ab].out )
2964         # We found the default executable, but exeext='' is most
2965         # certainly right.
2966         break;;
2967     *.* )
2968         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2969         then :; else
2970            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971         fi
2972         # We set ac_cv_exeext here because the later test for it is not
2973         # safe: cross compilers may not add the suffix if given an `-o'
2974         # argument, so we may need to know it at that point already.
2975         # Even if this section looks crufty: it has the advantage of
2976         # actually working.
2977         break;;
2978     * )
2979         break;;
2980   esac
2981 done
2982 test "$ac_cv_exeext" = no && ac_cv_exeext=
2983
2984 else
2985   ac_file=''
2986 fi
2987
2988 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2989 $as_echo "$ac_file" >&6; }
2990 if test -z "$ac_file"; then
2991   $as_echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2997 See \`config.log' for more details." >&5
2998 $as_echo "$as_me: error: C compiler cannot create executables
2999 See \`config.log' for more details." >&2;}
3000    { (exit 77); exit 77; }; }; }
3001 fi
3002
3003 ac_exeext=$ac_cv_exeext
3004
3005 # Check that the compiler produces executables we can run.  If not, either
3006 # the compiler is broken, or we cross compile.
3007 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3008 $as_echo_n "checking whether the C compiler works... " >&6; }
3009 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3010 # If not cross compiling, check that we can run a simple program.
3011 if test "$cross_compiling" != yes; then
3012   if { ac_try='./$ac_file'
3013   { (case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3018 $as_echo "$ac_try_echo") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; }; then
3023     cross_compiling=no
3024   else
3025     if test "$cross_compiling" = maybe; then
3026         cross_compiling=yes
3027     else
3028         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3031 If you meant to cross compile, use \`--host'.
3032 See \`config.log' for more details." >&5
3033 $as_echo "$as_me: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details." >&2;}
3036    { (exit 1); exit 1; }; }; }
3037     fi
3038   fi
3039 fi
3040 { $as_echo "$as_me:$LINENO: result: yes" >&5
3041 $as_echo "yes" >&6; }
3042
3043 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3044 ac_clean_files=$ac_clean_files_save
3045 # Check that the compiler produces executables we can run.  If not, either
3046 # the compiler is broken, or we cross compile.
3047 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3048 $as_echo_n "checking whether we are cross compiling... " >&6; }
3049 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3050 $as_echo "$cross_compiling" >&6; }
3051
3052 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { (ac_try="$ac_link"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060 $as_echo "$ac_try_echo") >&5
3061   (eval "$ac_link") 2>&5
3062   ac_status=$?
3063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; then
3065   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070   test -f "$ac_file" || continue
3071   case $ac_file in
3072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074           break;;
3075     * ) break;;
3076   esac
3077 done
3078 else
3079   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&5
3083 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&2;}
3085    { (exit 1); exit 1; }; }; }
3086 fi
3087
3088 rm -f conftest$ac_cv_exeext
3089 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3090 $as_echo "$ac_cv_exeext" >&6; }
3091
3092 rm -f conftest.$ac_ext
3093 EXEEXT=$ac_cv_exeext
3094 ac_exeext=$EXEEXT
3095 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3096 $as_echo_n "checking for suffix of object files... " >&6; }
3097 if test "${ac_cv_objext+set}" = set; then
3098   $as_echo_n "(cached) " >&6
3099 else
3100   cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.o conftest.obj
3116 if { (ac_try="$ac_compile"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3122 $as_echo "$ac_try_echo") >&5
3123   (eval "$ac_compile") 2>&5
3124   ac_status=$?
3125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; then
3127   for ac_file in conftest.o conftest.obj conftest.*; do
3128   test -f "$ac_file" || continue;
3129   case $ac_file in
3130     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3131     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3132        break;;
3133   esac
3134 done
3135 else
3136   $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&5
3143 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details." >&2;}
3145    { (exit 1); exit 1; }; }; }
3146 fi
3147
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 fi
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151 $as_echo "$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3153 ac_objext=$OBJEXT
3154 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157   $as_echo_n "(cached) " >&6
3158 else
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169 #ifndef __GNUC__
3170        choke me
3171 #endif
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3184 $as_echo "$ac_try_echo") >&5
3185   (eval "$ac_compile") 2>conftest.er1
3186   ac_status=$?
3187   grep -v '^ *+' conftest.er1 >conftest.err
3188   rm -f conftest.er1
3189   cat conftest.err >&5
3190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); } && {
3192          test -z "$ac_c_werror_flag" ||
3193          test ! -s conftest.err
3194        } && test -s conftest.$ac_objext; then
3195   ac_compiler_gnu=yes
3196 else
3197   $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200         ac_compiler_gnu=no
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205
3206 fi
3207 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3208 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3209 if test $ac_compiler_gnu = yes; then
3210   GCC=yes
3211 else
3212   GCC=
3213 fi
3214 ac_test_CFLAGS=${CFLAGS+set}
3215 ac_save_CFLAGS=$CFLAGS
3216 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3217 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3218 if test "${ac_cv_prog_cc_g+set}" = set; then
3219   $as_echo_n "(cached) " >&6
3220 else
3221   ac_save_c_werror_flag=$ac_c_werror_flag
3222    ac_c_werror_flag=yes
3223    ac_cv_prog_cc_g=no
3224    CFLAGS="-g"
3225    cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231
3232 int
3233 main ()
3234 {
3235
3236   ;
3237   return 0;
3238 }
3239 _ACEOF
3240 rm -f conftest.$ac_objext
3241 if { (ac_try="$ac_compile"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3247 $as_echo "$ac_try_echo") >&5
3248   (eval "$ac_compile") 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } && {
3255          test -z "$ac_c_werror_flag" ||
3256          test ! -s conftest.err
3257        } && test -s conftest.$ac_objext; then
3258   ac_cv_prog_cc_g=yes
3259 else
3260   $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263         CFLAGS=""
3264       cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (ac_try="$ac_compile"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3286 $as_echo "$ac_try_echo") >&5
3287   (eval "$ac_compile") 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } && {
3294          test -z "$ac_c_werror_flag" ||
3295          test ! -s conftest.err
3296        } && test -s conftest.$ac_objext; then
3297   :
3298 else
3299   $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302         ac_c_werror_flag=$ac_save_c_werror_flag
3303          CFLAGS="-g"
3304          cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310
3311 int
3312 main ()
3313 {
3314
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326 $as_echo "$ac_try_echo") >&5
3327   (eval "$ac_compile") 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } && {
3334          test -z "$ac_c_werror_flag" ||
3335          test ! -s conftest.err
3336        } && test -s conftest.$ac_objext; then
3337   ac_cv_prog_cc_g=yes
3338 else
3339   $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342
3343 fi
3344
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 fi
3347
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 fi
3350
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352    ac_c_werror_flag=$ac_save_c_werror_flag
3353 fi
3354 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3355 $as_echo "$ac_cv_prog_cc_g" >&6; }
3356 if test "$ac_test_CFLAGS" = set; then
3357   CFLAGS=$ac_save_CFLAGS
3358 elif test $ac_cv_prog_cc_g = yes; then
3359   if test "$GCC" = yes; then
3360     CFLAGS="-g -O2"
3361   else
3362     CFLAGS="-g"
3363   fi
3364 else
3365   if test "$GCC" = yes; then
3366     CFLAGS="-O2"
3367   else
3368     CFLAGS=
3369   fi
3370 fi
3371 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3372 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3373 if test "${ac_cv_prog_cc_c89+set}" = set; then
3374   $as_echo_n "(cached) " >&6
3375 else
3376   ac_cv_prog_cc_c89=no
3377 ac_save_CC=$CC
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 #include <stdarg.h>
3385 #include <stdio.h>
3386 #include <sys/types.h>
3387 #include <sys/stat.h>
3388 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3389 struct buf { int x; };
3390 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3391 static char *e (p, i)
3392      char **p;
3393      int i;
3394 {
3395   return p[i];
3396 }
3397 static char *f (char * (*g) (char **, int), char **p, ...)
3398 {
3399   char *s;
3400   va_list v;
3401   va_start (v,p);
3402   s = g (p, va_arg (v,int));
3403   va_end (v);
3404   return s;
3405 }
3406
3407 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3408    function prototypes and stuff, but not '\xHH' hex character constants.
3409    These don't provoke an error unfortunately, instead are silently treated
3410    as 'x'.  The following induces an error, until -std is added to get
3411    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3412    array size at least.  It's necessary to write '\x00'==0 to get something
3413    that's true only with -std.  */
3414 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3415
3416 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3417    inside strings and character constants.  */
3418 #define FOO(x) 'x'
3419 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3420
3421 int test (int i, double x);
3422 struct s1 {int (*f) (int a);};
3423 struct s2 {int (*f) (double a);};
3424 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3425 int argc;
3426 char **argv;
3427 int
3428 main ()
3429 {
3430 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3436         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 do
3438   CC="$ac_save_CC $ac_arg"
3439   rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447   (eval "$ac_compile") 2>conftest.er1
3448   ac_status=$?
3449   grep -v '^ *+' conftest.er1 >conftest.err
3450   rm -f conftest.er1
3451   cat conftest.err >&5
3452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } && {
3454          test -z "$ac_c_werror_flag" ||
3455          test ! -s conftest.err
3456        } && test -s conftest.$ac_objext; then
3457   ac_cv_prog_cc_c89=$ac_arg
3458 else
3459   $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462
3463 fi
3464
3465 rm -f core conftest.err conftest.$ac_objext
3466   test "x$ac_cv_prog_cc_c89" != "xno" && break
3467 done
3468 rm -f conftest.$ac_ext
3469 CC=$ac_save_CC
3470
3471 fi
3472 # AC_CACHE_VAL
3473 case "x$ac_cv_prog_cc_c89" in
3474   x)
3475     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3476 $as_echo "none needed" >&6; } ;;
3477   xno)
3478     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3479 $as_echo "unsupported" >&6; } ;;
3480   *)
3481     CC="$CC $ac_cv_prog_cc_c89"
3482     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3484 esac
3485
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 DEPDIR="${am__leading_dot}deps"
3493
3494 ac_config_commands="$ac_config_commands depfiles"
3495
3496
3497 am_make=${MAKE-make}
3498 cat > confinc << 'END'
3499 am__doit:
3500         @echo done
3501 .PHONY: am__doit
3502 END
3503 # If we don't find an include directive, just comment out the code.
3504 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3505 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3506 am__include="#"
3507 am__quote=
3508 _am_result=none
3509 # First try GNU make style include.
3510 echo "include confinc" > confmf
3511 # We grep out `Entering directory' and `Leaving directory'
3512 # messages which can occur if `w' ends up in MAKEFLAGS.
3513 # In particular we don't look at `^make:' because GNU make might
3514 # be invoked under some other name (usually "gmake"), in which
3515 # case it prints its new name instead of `make'.
3516 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3517    am__include=include
3518    am__quote=
3519    _am_result=GNU
3520 fi
3521 # Now try BSD make style include.
3522 if test "$am__include" = "#"; then
3523    echo '.include "confinc"' > confmf
3524    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3525       am__include=.include
3526       am__quote="\""
3527       _am_result=BSD
3528    fi
3529 fi
3530
3531
3532 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3533 $as_echo "$_am_result" >&6; }
3534 rm -f confinc confmf
3535
3536 # Check whether --enable-dependency-tracking was given.
3537 if test "${enable_dependency_tracking+set}" = set; then
3538   enableval=$enable_dependency_tracking;
3539 fi
3540
3541 if test "x$enable_dependency_tracking" != xno; then
3542   am_depcomp="$ac_aux_dir/depcomp"
3543   AMDEPBACKSLASH='\'
3544 fi
3545  if test "x$enable_dependency_tracking" != xno; then
3546   AMDEP_TRUE=
3547   AMDEP_FALSE='#'
3548 else
3549   AMDEP_TRUE='#'
3550   AMDEP_FALSE=
3551 fi
3552
3553
3554
3555 depcc="$CC"   am_compiler_list=
3556
3557 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3558 $as_echo_n "checking dependency style of $depcc... " >&6; }
3559 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3560   $as_echo_n "(cached) " >&6
3561 else
3562   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3563   # We make a subdir and do the tests there.  Otherwise we can end up
3564   # making bogus files that we don't know about and never remove.  For
3565   # instance it was reported that on HP-UX the gcc test will end up
3566   # making a dummy file named `D' -- because `-MD' means `put the output
3567   # in D'.
3568   mkdir conftest.dir
3569   # Copy depcomp to subdir because otherwise we won't find it if we're
3570   # using a relative directory.
3571   cp "$am_depcomp" conftest.dir
3572   cd conftest.dir
3573   # We will build objects and dependencies in a subdirectory because
3574   # it helps to detect inapplicable dependency modes.  For instance
3575   # both Tru64's cc and ICC support -MD to output dependencies as a
3576   # side effect of compilation, but ICC will put the dependencies in
3577   # the current directory while Tru64 will put them in the object
3578   # directory.
3579   mkdir sub
3580
3581   am_cv_CC_dependencies_compiler_type=none
3582   if test "$am_compiler_list" = ""; then
3583      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584   fi
3585   for depmode in $am_compiler_list; do
3586     # Setup a source with many dependencies, because some compilers
3587     # like to wrap large dependency lists on column 80 (with \), and
3588     # we should not choose a depcomp mode which is confused by this.
3589     #
3590     # We need to recreate these files for each test, as the compiler may
3591     # overwrite some of them when testing with obscure command lines.
3592     # This happens at least with the AIX C compiler.
3593     : > sub/conftest.c
3594     for i in 1 2 3 4 5 6; do
3595       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597       # Solaris 8's {/usr,}/bin/sh.
3598       touch sub/conftst$i.h
3599     done
3600     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3601
3602     case $depmode in
3603     nosideeffect)
3604       # after this tag, mechanisms are not by side-effect, so they'll
3605       # only be used when explicitly requested
3606       if test "x$enable_dependency_tracking" = xyes; then
3607         continue
3608       else
3609         break
3610       fi
3611       ;;
3612     none) break ;;
3613     esac
3614     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3615     # mode.  It turns out that the SunPro C++ compiler does not properly
3616     # handle `-M -o', and we need to detect this.
3617     if depmode=$depmode \
3618        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3619        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3620        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3621          >/dev/null 2>conftest.err &&
3622        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3623        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3624        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3625        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3626       # icc doesn't choke on unknown options, it will just issue warnings
3627       # or remarks (even with -Werror).  So we grep stderr for any message
3628       # that says an option was ignored or not supported.
3629       # When given -MP, icc 7.0 and 7.1 complain thusly:
3630       #   icc: Command line warning: ignoring option '-M'; no argument required
3631       # The diagnosis changed in icc 8.0:
3632       #   icc: Command line remark: option '-MP' not supported
3633       if (grep 'ignoring option' conftest.err ||
3634           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3635         am_cv_CC_dependencies_compiler_type=$depmode
3636         break
3637       fi
3638     fi
3639   done
3640
3641   cd ..
3642   rm -rf conftest.dir
3643 else
3644   am_cv_CC_dependencies_compiler_type=none
3645 fi
3646
3647 fi
3648 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3649 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3650 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3651
3652  if
3653   test "x$enable_dependency_tracking" != xno \
3654   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3655   am__fastdepCC_TRUE=
3656   am__fastdepCC_FALSE='#'
3657 else
3658   am__fastdepCC_TRUE='#'
3659   am__fastdepCC_FALSE=
3660 fi
3661
3662
3663
3664 ac_c_werror_flag=yes
3665 # Find a good install program.  We prefer a C program (faster),
3666 # so one script is as good as another.  But avoid the broken or
3667 # incompatible versions:
3668 # SysV /etc/install, /usr/sbin/install
3669 # SunOS /usr/etc/install
3670 # IRIX /sbin/install
3671 # AIX /bin/install
3672 # AmigaOS /C/install, which installs bootblocks on floppy discs
3673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3676 # OS/2's system install, which has a completely different semantic
3677 # ./install, which can be erroneously created by make from ./install.sh.
3678 # Reject install programs that cannot install multiple files.
3679 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3680 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3681 if test -z "$INSTALL"; then
3682 if test "${ac_cv_path_install+set}" = set; then
3683   $as_echo_n "(cached) " >&6
3684 else
3685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690   # Account for people who put trailing slashes in PATH elements.
3691 case $as_dir/ in
3692   ./ | .// | /cC/* | \
3693   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3694   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3695   /usr/ucb/* ) ;;
3696   *)
3697     # OSF1 and SCO ODT 3.0 have their own names for install.
3698     # Don't use installbsd from OSF since it installs stuff as root
3699     # by default.
3700     for ac_prog in ginstall scoinst install; do
3701       for ac_exec_ext in '' $ac_executable_extensions; do
3702         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3703           if test $ac_prog = install &&
3704             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705             # AIX install.  It has an incompatible calling convention.
3706             :
3707           elif test $ac_prog = install &&
3708             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709             # program-specific install script used by HP pwplus--don't use.
3710             :
3711           else
3712             rm -rf conftest.one conftest.two conftest.dir
3713             echo one > conftest.one
3714             echo two > conftest.two
3715             mkdir conftest.dir
3716             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3717               test -s conftest.one && test -s conftest.two &&
3718               test -s conftest.dir/conftest.one &&
3719               test -s conftest.dir/conftest.two
3720             then
3721               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3722               break 3
3723             fi
3724           fi
3725         fi
3726       done
3727     done
3728     ;;
3729 esac
3730
3731 done
3732 IFS=$as_save_IFS
3733
3734 rm -rf conftest.one conftest.two conftest.dir
3735
3736 fi
3737   if test "${ac_cv_path_install+set}" = set; then
3738     INSTALL=$ac_cv_path_install
3739   else
3740     # As a last resort, use the slow shell script.  Don't cache a
3741     # value for INSTALL within a source directory, because that will
3742     # break other packages using the cache if that directory is
3743     # removed, or if the value is a relative name.
3744     INSTALL=$ac_install_sh
3745   fi
3746 fi
3747 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3748 $as_echo "$INSTALL" >&6; }
3749
3750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3751 # It thinks the first close brace ends the variable substitution.
3752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3753
3754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3755
3756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3757
3758 # Check whether --enable-shared was given.
3759 if test "${enable_shared+set}" = set; then
3760   enableval=$enable_shared; p=${PACKAGE-default}
3761     case $enableval in
3762     yes) enable_shared=yes ;;
3763     no) enable_shared=no ;;
3764     *)
3765       enable_shared=no
3766       # Look at the argument we got.  We use all the common list separators.
3767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3768       for pkg in $enableval; do
3769         IFS="$lt_save_ifs"
3770         if test "X$pkg" = "X$p"; then
3771           enable_shared=yes
3772         fi
3773       done
3774       IFS="$lt_save_ifs"
3775       ;;
3776     esac
3777 else
3778   enable_shared=yes
3779 fi
3780
3781
3782 # Check whether --enable-static was given.
3783 if test "${enable_static+set}" = set; then
3784   enableval=$enable_static; p=${PACKAGE-default}
3785     case $enableval in
3786     yes) enable_static=yes ;;
3787     no) enable_static=no ;;
3788     *)
3789      enable_static=no
3790       # Look at the argument we got.  We use all the common list separators.
3791       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3792       for pkg in $enableval; do
3793         IFS="$lt_save_ifs"
3794         if test "X$pkg" = "X$p"; then
3795           enable_static=yes
3796         fi
3797       done
3798       IFS="$lt_save_ifs"
3799       ;;
3800     esac
3801 else
3802   enable_static=yes
3803 fi
3804
3805
3806 # Check whether --enable-fast-install was given.
3807 if test "${enable_fast_install+set}" = set; then
3808   enableval=$enable_fast_install; p=${PACKAGE-default}
3809     case $enableval in
3810     yes) enable_fast_install=yes ;;
3811     no) enable_fast_install=no ;;
3812     *)
3813       enable_fast_install=no
3814       # Look at the argument we got.  We use all the common list separators.
3815       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3816       for pkg in $enableval; do
3817         IFS="$lt_save_ifs"
3818         if test "X$pkg" = "X$p"; then
3819           enable_fast_install=yes
3820         fi
3821       done
3822       IFS="$lt_save_ifs"
3823       ;;
3824     esac
3825 else
3826   enable_fast_install=yes
3827 fi
3828
3829
3830 # Make sure we can run config.sub.
3831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3832   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3833 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3834    { (exit 1); exit 1; }; }
3835
3836 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3837 $as_echo_n "checking build system type... " >&6; }
3838 if test "${ac_cv_build+set}" = set; then
3839   $as_echo_n "(cached) " >&6
3840 else
3841   ac_build_alias=$build_alias
3842 test "x$ac_build_alias" = x &&
3843   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3844 test "x$ac_build_alias" = x &&
3845   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3846 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3847    { (exit 1); exit 1; }; }
3848 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3849   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3850 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3851    { (exit 1); exit 1; }; }
3852
3853 fi
3854 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3855 $as_echo "$ac_cv_build" >&6; }
3856 case $ac_cv_build in
3857 *-*-*) ;;
3858 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3859 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3860    { (exit 1); exit 1; }; };;
3861 esac
3862 build=$ac_cv_build
3863 ac_save_IFS=$IFS; IFS='-'
3864 set x $ac_cv_build
3865 shift
3866 build_cpu=$1
3867 build_vendor=$2
3868 shift; shift
3869 # Remember, the first character of IFS is used to create $*,
3870 # except with old shells:
3871 build_os=$*
3872 IFS=$ac_save_IFS
3873 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3874
3875
3876 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3877 $as_echo_n "checking host system type... " >&6; }
3878 if test "${ac_cv_host+set}" = set; then
3879   $as_echo_n "(cached) " >&6
3880 else
3881   if test "x$host_alias" = x; then
3882   ac_cv_host=$ac_cv_build
3883 else
3884   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3885     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3886 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3887    { (exit 1); exit 1; }; }
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3892 $as_echo "$ac_cv_host" >&6; }
3893 case $ac_cv_host in
3894 *-*-*) ;;
3895 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3896 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3897    { (exit 1); exit 1; }; };;
3898 esac
3899 host=$ac_cv_host
3900 ac_save_IFS=$IFS; IFS='-'
3901 set x $ac_cv_host
3902 shift
3903 host_cpu=$1
3904 host_vendor=$2
3905 shift; shift
3906 # Remember, the first character of IFS is used to create $*,
3907 # except with old shells:
3908 host_os=$*
3909 IFS=$ac_save_IFS
3910 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3911
3912
3913 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3915 if test "${lt_cv_path_SED+set}" = set; then
3916   $as_echo_n "(cached) " >&6
3917 else
3918   # Loop through the user's path and test for sed and gsed.
3919 # Then use that list of sed's as ones to test for truncation.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for lt_ac_prog in sed gsed; do
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3928         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3929       fi
3930     done
3931   done
3932 done
3933 IFS=$as_save_IFS
3934 lt_ac_max=0
3935 lt_ac_count=0
3936 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3937 # along with /bin/sed that truncates output.
3938 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3939   test ! -f $lt_ac_sed && continue
3940   cat /dev/null > conftest.in
3941   lt_ac_count=0
3942   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3943   # Check for GNU sed and select it if it is found.
3944   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3945     lt_cv_path_SED=$lt_ac_sed
3946     break
3947   fi
3948   while true; do
3949     cat conftest.in conftest.in >conftest.tmp
3950     mv conftest.tmp conftest.in
3951     cp conftest.in conftest.nl
3952     echo >>conftest.nl
3953     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3954     cmp -s conftest.out conftest.nl || break
3955     # 10000 chars as input seems more than enough
3956     test $lt_ac_count -gt 10 && break
3957     lt_ac_count=`expr $lt_ac_count + 1`
3958     if test $lt_ac_count -gt $lt_ac_max; then
3959       lt_ac_max=$lt_ac_count
3960       lt_cv_path_SED=$lt_ac_sed
3961     fi
3962   done
3963 done
3964
3965 fi
3966
3967 SED=$lt_cv_path_SED
3968
3969 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3970 $as_echo "$SED" >&6; }
3971
3972 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975   $as_echo_n "(cached) " >&6
3976 else
3977   if test -z "$GREP"; then
3978   ac_path_GREP_found=false
3979   # Loop through the user's path and test for each of PROGNAME-LIST
3980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 do
3983   IFS=$as_save_IFS
3984   test -z "$as_dir" && as_dir=.
3985   for ac_prog in grep ggrep; do
3986     for ac_exec_ext in '' $ac_executable_extensions; do
3987       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3989 # Check for GNU ac_path_GREP and select it if it is found.
3990   # Check for GNU $ac_path_GREP
3991 case `"$ac_path_GREP" --version 2>&1` in
3992 *GNU*)
3993   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994 *)
3995   ac_count=0
3996   $as_echo_n 0123456789 >"conftest.in"
3997   while :
3998   do
3999     cat "conftest.in" "conftest.in" >"conftest.tmp"
4000     mv "conftest.tmp" "conftest.in"
4001     cp "conftest.in" "conftest.nl"
4002     $as_echo 'GREP' >> "conftest.nl"
4003     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005     ac_count=`expr $ac_count + 1`
4006     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007       # Best one so far, save it but keep looking for a better one
4008       ac_cv_path_GREP="$ac_path_GREP"
4009       ac_path_GREP_max=$ac_count
4010     fi
4011     # 10*(2^10) chars as input seems more than enough
4012     test $ac_count -gt 10 && break
4013   done
4014   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 esac
4016
4017       $ac_path_GREP_found && break 3
4018     done
4019   done
4020 done
4021 IFS=$as_save_IFS
4022   if test -z "$ac_cv_path_GREP"; then
4023     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025    { (exit 1); exit 1; }; }
4026   fi
4027 else
4028   ac_cv_path_GREP=$GREP
4029 fi
4030
4031 fi
4032 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 $as_echo "$ac_cv_path_GREP" >&6; }
4034  GREP="$ac_cv_path_GREP"
4035
4036
4037 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4038 $as_echo_n "checking for egrep... " >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040   $as_echo_n "(cached) " >&6
4041 else
4042   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043    then ac_cv_path_EGREP="$GREP -E"
4044    else
4045      if test -z "$EGREP"; then
4046   ac_path_EGREP_found=false
4047   # Loop through the user's path and test for each of PROGNAME-LIST
4048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_prog in egrep; do
4054     for ac_exec_ext in '' $ac_executable_extensions; do
4055       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4056       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4057 # Check for GNU ac_path_EGREP and select it if it is found.
4058   # Check for GNU $ac_path_EGREP
4059 case `"$ac_path_EGREP" --version 2>&1` in
4060 *GNU*)
4061   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4062 *)
4063   ac_count=0
4064   $as_echo_n 0123456789 >"conftest.in"
4065   while :
4066   do
4067     cat "conftest.in" "conftest.in" >"conftest.tmp"
4068     mv "conftest.tmp" "conftest.in"
4069     cp "conftest.in" "conftest.nl"
4070     $as_echo 'EGREP' >> "conftest.nl"
4071     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073     ac_count=`expr $ac_count + 1`
4074     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4075       # Best one so far, save it but keep looking for a better one
4076       ac_cv_path_EGREP="$ac_path_EGREP"
4077       ac_path_EGREP_max=$ac_count
4078     fi
4079     # 10*(2^10) chars as input seems more than enough
4080     test $ac_count -gt 10 && break
4081   done
4082   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083 esac
4084
4085       $ac_path_EGREP_found && break 3
4086     done
4087   done
4088 done
4089 IFS=$as_save_IFS
4090   if test -z "$ac_cv_path_EGREP"; then
4091     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4092 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4093    { (exit 1); exit 1; }; }
4094   fi
4095 else
4096   ac_cv_path_EGREP=$EGREP
4097 fi
4098
4099    fi
4100 fi
4101 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4102 $as_echo "$ac_cv_path_EGREP" >&6; }
4103  EGREP="$ac_cv_path_EGREP"
4104
4105
4106
4107 # Check whether --with-gnu-ld was given.
4108 if test "${with_gnu_ld+set}" = set; then
4109   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4110 else
4111   with_gnu_ld=no
4112 fi
4113
4114 ac_prog=ld
4115 if test "$GCC" = yes; then
4116   # Check if gcc -print-prog-name=ld gives a path.
4117   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4118 $as_echo_n "checking for ld used by $CC... " >&6; }
4119   case $host in
4120   *-*-mingw*)
4121     # gcc leaves a trailing carriage return which upsets mingw
4122     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4123   *)
4124     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4125   esac
4126   case $ac_prog in
4127     # Accept absolute paths.
4128     [\\/]* | ?:[\\/]*)
4129       re_direlt='/[^/][^/]*/\.\./'
4130       # Canonicalize the pathname of ld
4131       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4132       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4133         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4134       done
4135       test -z "$LD" && LD="$ac_prog"
4136       ;;
4137   "")
4138     # If it fails, then pretend we aren't using GCC.
4139     ac_prog=ld
4140     ;;
4141   *)
4142     # If it is relative, then search for the first ld in PATH.
4143     with_gnu_ld=unknown
4144     ;;
4145   esac
4146 elif test "$with_gnu_ld" = yes; then
4147   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4148 $as_echo_n "checking for GNU ld... " >&6; }
4149 else
4150   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4151 $as_echo_n "checking for non-GNU ld... " >&6; }
4152 fi
4153 if test "${lt_cv_path_LD+set}" = set; then
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test -z "$LD"; then
4157   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4158   for ac_dir in $PATH; do
4159     IFS="$lt_save_ifs"
4160     test -z "$ac_dir" && ac_dir=.
4161     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4162       lt_cv_path_LD="$ac_dir/$ac_prog"
4163       # Check to see if the program is GNU ld.  I'd rather use --version,
4164       # but apparently some variants of GNU ld only accept -v.
4165       # Break only if it was the GNU/non-GNU ld that we prefer.
4166       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4167       *GNU* | *'with BFD'*)
4168         test "$with_gnu_ld" != no && break
4169         ;;
4170       *)
4171         test "$with_gnu_ld" != yes && break
4172         ;;
4173       esac
4174     fi
4175   done
4176   IFS="$lt_save_ifs"
4177 else
4178   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4179 fi
4180 fi
4181
4182 LD="$lt_cv_path_LD"
4183 if test -n "$LD"; then
4184   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4185 $as_echo "$LD" >&6; }
4186 else
4187   { $as_echo "$as_me:$LINENO: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4191 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4192    { (exit 1); exit 1; }; }
4193 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4194 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4195 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4196   $as_echo_n "(cached) " >&6
4197 else
4198   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4199 case `$LD -v 2>&1 </dev/null` in
4200 *GNU* | *'with BFD'*)
4201   lt_cv_prog_gnu_ld=yes
4202   ;;
4203 *)
4204   lt_cv_prog_gnu_ld=no
4205   ;;
4206 esac
4207 fi
4208 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4209 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4210 with_gnu_ld=$lt_cv_prog_gnu_ld
4211
4212
4213 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4214 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4215 if test "${lt_cv_ld_reload_flag+set}" = set; then
4216   $as_echo_n "(cached) " >&6
4217 else
4218   lt_cv_ld_reload_flag='-r'
4219 fi
4220 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4221 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4222 reload_flag=$lt_cv_ld_reload_flag
4223 case $reload_flag in
4224 "" | " "*) ;;
4225 *) reload_flag=" $reload_flag" ;;
4226 esac
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4228 case $host_os in
4229   darwin*)
4230     if test "$GCC" = yes; then
4231       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4232     else
4233       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4234     fi
4235     ;;
4236 esac
4237
4238 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4239 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4240 if test "${lt_cv_path_NM+set}" = set; then
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -n "$NM"; then
4244   # Let the user override the test.
4245   lt_cv_path_NM="$NM"
4246 else
4247   lt_nm_to_check="${ac_tool_prefix}nm"
4248   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4249     lt_nm_to_check="$lt_nm_to_check nm"
4250   fi
4251   for lt_tmp_nm in $lt_nm_to_check; do
4252     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4253     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4254       IFS="$lt_save_ifs"
4255       test -z "$ac_dir" && ac_dir=.
4256       tmp_nm="$ac_dir/$lt_tmp_nm"
4257       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4258         # Check to see if the nm accepts a BSD-compat flag.
4259         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4260         #   nm: unknown option "B" ignored
4261         # Tru64's nm complains that /dev/null is an invalid object file
4262         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4263         */dev/null* | *'Invalid file or object type'*)
4264           lt_cv_path_NM="$tmp_nm -B"
4265           break
4266           ;;
4267         *)
4268           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4269           */dev/null*)
4270             lt_cv_path_NM="$tmp_nm -p"
4271             break
4272             ;;
4273           *)
4274             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4275             continue # so that we can try to find one that supports BSD flags
4276             ;;
4277           esac
4278           ;;
4279         esac
4280       fi
4281     done
4282     IFS="$lt_save_ifs"
4283   done
4284   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4285 fi
4286 fi
4287 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4288 $as_echo "$lt_cv_path_NM" >&6; }
4289 NM="$lt_cv_path_NM"
4290
4291 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4292 $as_echo_n "checking whether ln -s works... " >&6; }
4293 LN_S=$as_ln_s
4294 if test "$LN_S" = "ln -s"; then
4295   { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4297 else
4298   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4299 $as_echo "no, using $LN_S" >&6; }
4300 fi
4301
4302 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4303 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4304 if test "${lt_cv_deplibs_check_method+set}" = set; then
4305   $as_echo_n "(cached) " >&6
4306 else
4307   lt_cv_file_magic_cmd='$MAGIC_CMD'
4308 lt_cv_file_magic_test_file=
4309 lt_cv_deplibs_check_method='unknown'
4310 # Need to set the preceding variable on all platforms that support
4311 # interlibrary dependencies.
4312 # 'none' -- dependencies not supported.
4313 # `unknown' -- same as none, but documents that we really don't know.
4314 # 'pass_all' -- all dependencies passed with no checks.
4315 # 'test_compile' -- check by making test program.
4316 # 'file_magic [[regex]]' -- check by looking for files in library path
4317 # which responds to the $file_magic_cmd with a given extended regex.
4318 # If you have `file' or equivalent on your system and you're not sure
4319 # whether `pass_all' will *always* work, you probably want this one.
4320
4321 case $host_os in
4322 aix[4-9]*)
4323   lt_cv_deplibs_check_method=pass_all
4324   ;;
4325
4326 beos*)
4327   lt_cv_deplibs_check_method=pass_all
4328   ;;
4329
4330 bsdi[45]*)
4331   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4332   lt_cv_file_magic_cmd='/usr/bin/file -L'
4333   lt_cv_file_magic_test_file=/shlib/libc.so
4334   ;;
4335
4336 cygwin*)
4337   # func_win32_libid is a shell function defined in ltmain.sh
4338   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4339   lt_cv_file_magic_cmd='func_win32_libid'
4340   ;;
4341
4342 mingw* | pw32*)
4343   # Base MSYS/MinGW do not provide the 'file' command needed by
4344   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4345   # unless we find 'file', for example because we are cross-compiling.
4346   if ( file / ) >/dev/null 2>&1; then
4347     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4348     lt_cv_file_magic_cmd='func_win32_libid'
4349   else
4350     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4351     lt_cv_file_magic_cmd='$OBJDUMP -f'
4352   fi
4353   ;;
4354
4355 darwin* | rhapsody*)
4356   lt_cv_deplibs_check_method=pass_all
4357   ;;
4358
4359 freebsd* | dragonfly*)
4360   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4361     case $host_cpu in
4362     i*86 )
4363       # Not sure whether the presence of OpenBSD here was a mistake.
4364       # Let's accept both of them until this is cleared up.
4365       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4366       lt_cv_file_magic_cmd=/usr/bin/file
4367       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4368       ;;
4369     esac
4370   else
4371     lt_cv_deplibs_check_method=pass_all
4372   fi
4373   ;;
4374
4375 gnu*)
4376   lt_cv_deplibs_check_method=pass_all
4377   ;;
4378
4379 hpux10.20* | hpux11*)
4380   lt_cv_file_magic_cmd=/usr/bin/file
4381   case $host_cpu in
4382   ia64*)
4383     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4384     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4385     ;;
4386   hppa*64*)
4387     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]'
4388     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4389     ;;
4390   *)
4391     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4392     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4393     ;;
4394   esac
4395   ;;
4396
4397 interix[3-9]*)
4398   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4399   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4400   ;;
4401
4402 irix5* | irix6* | nonstopux*)
4403   case $LD in
4404   *-32|*"-32 ") libmagic=32-bit;;
4405   *-n32|*"-n32 ") libmagic=N32;;
4406   *-64|*"-64 ") libmagic=64-bit;;
4407   *) libmagic=never-match;;
4408   esac
4409   lt_cv_deplibs_check_method=pass_all
4410   ;;
4411
4412 # This must be Linux ELF.
4413 linux* | k*bsd*-gnu)
4414   lt_cv_deplibs_check_method=pass_all
4415   ;;
4416
4417 netbsd* | netbsdelf*-gnu)
4418   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4419     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4420   else
4421     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4422   fi
4423   ;;
4424
4425 newos6*)
4426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4427   lt_cv_file_magic_cmd=/usr/bin/file
4428   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4429   ;;
4430
4431 nto-qnx*)
4432   lt_cv_deplibs_check_method=unknown
4433   ;;
4434
4435 openbsd*)
4436   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4438   else
4439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4440   fi
4441   ;;
4442
4443 osf3* | osf4* | osf5*)
4444   lt_cv_deplibs_check_method=pass_all
4445   ;;
4446
4447 rdos*)
4448   lt_cv_deplibs_check_method=pass_all
4449   ;;
4450
4451 solaris*)
4452   lt_cv_deplibs_check_method=pass_all
4453   ;;
4454
4455 sysv4 | sysv4.3*)
4456   case $host_vendor in
4457   motorola)
4458     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]'
4459     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4460     ;;
4461   ncr)
4462     lt_cv_deplibs_check_method=pass_all
4463     ;;
4464   sequent)
4465     lt_cv_file_magic_cmd='/bin/file'
4466     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4467     ;;
4468   sni)
4469     lt_cv_file_magic_cmd='/bin/file'
4470     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4471     lt_cv_file_magic_test_file=/lib/libc.so
4472     ;;
4473   siemens)
4474     lt_cv_deplibs_check_method=pass_all
4475     ;;
4476   pc)
4477     lt_cv_deplibs_check_method=pass_all
4478     ;;
4479   esac
4480   ;;
4481
4482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4483   lt_cv_deplibs_check_method=pass_all
4484   ;;
4485 esac
4486
4487 fi
4488 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4489 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4490 file_magic_cmd=$lt_cv_file_magic_cmd
4491 deplibs_check_method=$lt_cv_deplibs_check_method
4492 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4493
4494
4495
4496
4497 # If no C compiler was specified, use CC.
4498 LTCC=${LTCC-"$CC"}
4499
4500 # If no C compiler flags were specified, use CFLAGS.
4501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4502
4503 # Allow CC to be a program name with arguments.
4504 compiler=$CC
4505
4506
4507 # Check whether --enable-libtool-lock was given.
4508 if test "${enable_libtool_lock+set}" = set; then
4509   enableval=$enable_libtool_lock;
4510 fi
4511
4512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4513
4514 # Some flags need to be propagated to the compiler or linker for good
4515 # libtool support.
4516 case $host in
4517 ia64-*-hpux*)
4518   # Find out which ABI we are using.
4519   echo 'int i;' > conftest.$ac_ext
4520   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>&5
4522   ac_status=$?
4523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; then
4525     case `/usr/bin/file conftest.$ac_objext` in
4526     *ELF-32*)
4527       HPUX_IA64_MODE="32"
4528       ;;
4529     *ELF-64*)
4530       HPUX_IA64_MODE="64"
4531       ;;
4532     esac
4533   fi
4534   rm -rf conftest*
4535   ;;
4536 *-*-irix6*)
4537   # Find out which ABI we are using.
4538   echo '#line 4538 "configure"' > conftest.$ac_ext
4539   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540   (eval $ac_compile) 2>&5
4541   ac_status=$?
4542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; then
4544    if test "$lt_cv_prog_gnu_ld" = yes; then
4545     case `/usr/bin/file conftest.$ac_objext` in
4546     *32-bit*)
4547       LD="${LD-ld} -melf32bsmip"
4548       ;;
4549     *N32*)
4550       LD="${LD-ld} -melf32bmipn32"
4551       ;;
4552     *64-bit*)
4553       LD="${LD-ld} -melf64bmip"
4554       ;;
4555     esac
4556    else
4557     case `/usr/bin/file conftest.$ac_objext` in
4558     *32-bit*)
4559       LD="${LD-ld} -32"
4560       ;;
4561     *N32*)
4562       LD="${LD-ld} -n32"
4563       ;;
4564     *64-bit*)
4565       LD="${LD-ld} -64"
4566       ;;
4567     esac
4568    fi
4569   fi
4570   rm -rf conftest*
4571   ;;
4572
4573 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4574 s390*-*linux*|sparc*-*linux*)
4575   # Find out which ABI we are using.
4576   echo 'int i;' > conftest.$ac_ext
4577   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4578   (eval $ac_compile) 2>&5
4579   ac_status=$?
4580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; then
4582     case `/usr/bin/file conftest.o` in
4583     *32-bit*)
4584       case $host in
4585         x86_64-*kfreebsd*-gnu)
4586           LD="${LD-ld} -m elf_i386_fbsd"
4587           ;;
4588         x86_64-*linux*)
4589           LD="${LD-ld} -m elf_i386"
4590           ;;
4591         ppc64-*linux*|powerpc64-*linux*)
4592           LD="${LD-ld} -m elf32ppclinux"
4593           ;;
4594         s390x-*linux*)
4595           LD="${LD-ld} -m elf_s390"
4596           ;;
4597         sparc64-*linux*)
4598           LD="${LD-ld} -m elf32_sparc"
4599           ;;
4600       esac
4601       ;;
4602     *64-bit*)
4603       case $host in
4604         x86_64-*kfreebsd*-gnu)
4605           LD="${LD-ld} -m elf_x86_64_fbsd"
4606           ;;
4607         x86_64-*linux*)
4608           LD="${LD-ld} -m elf_x86_64"
4609           ;;
4610         ppc*-*linux*|powerpc*-*linux*)
4611           LD="${LD-ld} -m elf64ppc"
4612           ;;
4613         s390*-*linux*)
4614           LD="${LD-ld} -m elf64_s390"
4615           ;;
4616         sparc*-*linux*)
4617           LD="${LD-ld} -m elf64_sparc"
4618           ;;
4619       esac
4620       ;;
4621     esac
4622   fi
4623   rm -rf conftest*
4624   ;;
4625
4626 *-*-sco3.2v5*)
4627   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4628   SAVE_CFLAGS="$CFLAGS"
4629   CFLAGS="$CFLAGS -belf"
4630   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4631 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4632 if test "${lt_cv_cc_needs_belf+set}" = set; then
4633   $as_echo_n "(cached) " >&6
4634 else
4635   ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
4641      cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (ac_try="$ac_link"
4658 case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664   (eval "$ac_link") 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } && {
4671          test -z "$ac_c_werror_flag" ||
4672          test ! -s conftest.err
4673        } && test -s conftest$ac_exeext && {
4674          test "$cross_compiling" = yes ||
4675          $as_test_x conftest$ac_exeext
4676        }; then
4677   lt_cv_cc_needs_belf=yes
4678 else
4679   $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682         lt_cv_cc_needs_belf=no
4683 fi
4684
4685 rm -rf conftest.dSYM
4686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4687       conftest$ac_exeext conftest.$ac_ext
4688      ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693
4694 fi
4695 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4696 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4697   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4698     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4699     CFLAGS="$SAVE_CFLAGS"
4700   fi
4701   ;;
4702 sparc*-*solaris*)
4703   # Find out which ABI we are using.
4704   echo 'int i;' > conftest.$ac_ext
4705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706   (eval $ac_compile) 2>&5
4707   ac_status=$?
4708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; then
4710     case `/usr/bin/file conftest.o` in
4711     *64-bit*)
4712       case $lt_cv_prog_gnu_ld in
4713       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4714       *)
4715         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4716           LD="${LD-ld} -64"
4717         fi
4718         ;;
4719       esac
4720       ;;
4721     esac
4722   fi
4723   rm -rf conftest*
4724   ;;
4725
4726
4727 esac
4728
4729 need_locks="$enable_libtool_lock"
4730
4731
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4739 # On Suns, sometimes $CPP names a directory.
4740 if test -n "$CPP" && test -d "$CPP"; then
4741   CPP=
4742 fi
4743 if test -z "$CPP"; then
4744   if test "${ac_cv_prog_CPP+set}" = set; then
4745   $as_echo_n "(cached) " >&6
4746 else
4747       # Double quotes because CPP needs to be expanded
4748     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4749     do
4750       ac_preproc_ok=false
4751 for ac_c_preproc_warn_flag in '' yes
4752 do
4753   # Use a header file that comes with gcc, so configuring glibc
4754   # with a fresh cross-compiler works.
4755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756   # <limits.h> exists even on freestanding compilers.
4757   # On the NeXT, cc -E runs the code through the compiler's parser,
4758   # not just through cpp. "Syntax error" is here to catch this case.
4759   cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765 #ifdef __STDC__
4766 # include <limits.h>
4767 #else
4768 # include <assert.h>
4769 #endif
4770                      Syntax error
4771 _ACEOF
4772 if { (ac_try="$ac_cpp conftest.$ac_ext"
4773 case "(($ac_try" in
4774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775   *) ac_try_echo=$ac_try;;
4776 esac
4777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4778 $as_echo "$ac_try_echo") >&5
4779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4780   ac_status=$?
4781   grep -v '^ *+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } >/dev/null && {
4786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787          test ! -s conftest.err
4788        }; then
4789   :
4790 else
4791   $as_echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   # Broken: fails on valid input.
4795 continue
4796 fi
4797
4798 rm -f conftest.err conftest.$ac_ext
4799
4800   # OK, works on sane cases.  Now check whether nonexistent headers
4801   # can be detected and how.
4802   cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 #include <ac_nonexistent.h>
4809 _ACEOF
4810 if { (ac_try="$ac_cpp conftest.$ac_ext"
4811 case "(($ac_try" in
4812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813   *) ac_try_echo=$ac_try;;
4814 esac
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } >/dev/null && {
4824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4825          test ! -s conftest.err
4826        }; then
4827   # Broken: success on invalid input.
4828 continue
4829 else
4830   $as_echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833   # Passes both tests.
4834 ac_preproc_ok=:
4835 break
4836 fi
4837
4838 rm -f conftest.err conftest.$ac_ext
4839
4840 done
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then
4844   break
4845 fi
4846
4847     done
4848     ac_cv_prog_CPP=$CPP
4849
4850 fi
4851   CPP=$ac_cv_prog_CPP
4852 else
4853   ac_cv_prog_CPP=$CPP
4854 fi
4855 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4856 $as_echo "$CPP" >&6; }
4857 ac_preproc_ok=false
4858 for ac_c_preproc_warn_flag in '' yes
4859 do
4860   # Use a header file that comes with gcc, so configuring glibc
4861   # with a fresh cross-compiler works.
4862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863   # <limits.h> exists even on freestanding compilers.
4864   # On the NeXT, cc -E runs the code through the compiler's parser,
4865   # not just through cpp. "Syntax error" is here to catch this case.
4866   cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 #ifdef __STDC__
4873 # include <limits.h>
4874 #else
4875 # include <assert.h>
4876 #endif
4877                      Syntax error
4878 _ACEOF
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 case "(($ac_try" in
4881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882   *) ac_try_echo=$ac_try;;
4883 esac
4884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } >/dev/null && {
4893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894          test ! -s conftest.err
4895        }; then
4896   :
4897 else
4898   $as_echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901   # Broken: fails on valid input.
4902 continue
4903 fi
4904
4905 rm -f conftest.err conftest.$ac_ext
4906
4907   # OK, works on sane cases.  Now check whether nonexistent headers
4908   # can be detected and how.
4909   cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915 #include <ac_nonexistent.h>
4916 _ACEOF
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4918 case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4923 $as_echo "$ac_try_echo") >&5
4924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925   ac_status=$?
4926   grep -v '^ *+' conftest.er1 >conftest.err
4927   rm -f conftest.er1
4928   cat conftest.err >&5
4929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); } >/dev/null && {
4931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4932          test ! -s conftest.err
4933        }; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   $as_echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944
4945 rm -f conftest.err conftest.$ac_ext
4946
4947 done
4948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4949 rm -f conftest.err conftest.$ac_ext
4950 if $ac_preproc_ok; then
4951   :
4952 else
4953   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4955 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4956 See \`config.log' for more details." >&5
4957 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details." >&2;}
4959    { (exit 1); exit 1; }; }; }
4960 fi
4961
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967
4968
4969 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4970 $as_echo_n "checking for ANSI C header files... " >&6; }
4971 if test "${ac_cv_header_stdc+set}" = set; then
4972   $as_echo_n "(cached) " >&6
4973 else
4974   cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <stdlib.h>
4981 #include <stdarg.h>
4982 #include <string.h>
4983 #include <float.h>
4984
4985 int
4986 main ()
4987 {
4988
4989   ;
4990   return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4995 case "(($ac_try" in
4996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997   *) ac_try_echo=$ac_try;;
4998 esac
4999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000 $as_echo "$ac_try_echo") >&5
5001   (eval "$ac_compile") 2>conftest.er1
5002   ac_status=$?
5003   grep -v '^ *+' conftest.er1 >conftest.err
5004   rm -f conftest.er1
5005   cat conftest.err >&5
5006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } && {
5008          test -z "$ac_c_werror_flag" ||
5009          test ! -s conftest.err
5010        } && test -s conftest.$ac_objext; then
5011   ac_cv_header_stdc=yes
5012 else
5013   $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016         ac_cv_header_stdc=no
5017 fi
5018
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020
5021 if test $ac_cv_header_stdc = yes; then
5022   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <string.h>
5030
5031 _ACEOF
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033   $EGREP "memchr" >/dev/null 2>&1; then
5034   :
5035 else
5036   ac_cv_header_stdc=no
5037 fi
5038 rm -f conftest*
5039
5040 fi
5041
5042 if test $ac_cv_header_stdc = yes; then
5043   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5044   cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050 #include <stdlib.h>
5051
5052 _ACEOF
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054   $EGREP "free" >/dev/null 2>&1; then
5055   :
5056 else
5057   ac_cv_header_stdc=no
5058 fi
5059 rm -f conftest*
5060
5061 fi
5062
5063 if test $ac_cv_header_stdc = yes; then
5064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5065   if test "$cross_compiling" = yes; then
5066   :
5067 else
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <ctype.h>
5075 #include <stdlib.h>
5076 #if ((' ' & 0x0FF) == 0x020)
5077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5079 #else
5080 # define ISLOWER(c) \
5081                    (('a' <= (c) && (c) <= 'i') \
5082                      || ('j' <= (c) && (c) <= 'r') \
5083                      || ('s' <= (c) && (c) <= 'z'))
5084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5085 #endif
5086
5087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5088 int
5089 main ()
5090 {
5091   int i;
5092   for (i = 0; i < 256; i++)
5093     if (XOR (islower (i), ISLOWER (i))
5094         || toupper (i) != TOUPPER (i))
5095       return 2;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest$ac_exeext
5100 if { (ac_try="$ac_link"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5106 $as_echo "$ac_try_echo") >&5
5107   (eval "$ac_link") 2>&5
5108   ac_status=$?
5109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5111   { (case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117   (eval "$ac_try") 2>&5
5118   ac_status=$?
5119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   :
5122 else
5123   $as_echo "$as_me: program exited with status $ac_status" >&5
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 ( exit $ac_status )
5128 ac_cv_header_stdc=no
5129 fi
5130 rm -rf conftest.dSYM
5131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5132 fi
5133
5134
5135 fi
5136 fi
5137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5138 $as_echo "$ac_cv_header_stdc" >&6; }
5139 if test $ac_cv_header_stdc = yes; then
5140
5141 cat >>confdefs.h <<\_ACEOF
5142 #define STDC_HEADERS 1
5143 _ACEOF
5144
5145 fi
5146
5147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5158                   inttypes.h stdint.h unistd.h
5159 do
5160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5162 $as_echo_n "checking for $ac_header... " >&6; }
5163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5164   $as_echo_n "(cached) " >&6
5165 else
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172 $ac_includes_default
5173
5174 #include <$ac_header>
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5178 case "(($ac_try" in
5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180   *) ac_try_echo=$ac_try;;
5181 esac
5182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183 $as_echo "$ac_try_echo") >&5
5184   (eval "$ac_compile") 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } && {
5191          test -z "$ac_c_werror_flag" ||
5192          test ! -s conftest.err
5193        } && test -s conftest.$ac_objext; then
5194   eval "$as_ac_Header=yes"
5195 else
5196   $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199         eval "$as_ac_Header=no"
5200 fi
5201
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 ac_res=`eval 'as_val=${'$as_ac_Header'}
5205                  $as_echo "$as_val"'`
5206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5207 $as_echo "$ac_res" >&6; }
5208 as_val=`eval 'as_val=${'$as_ac_Header'}
5209                  $as_echo "$as_val"'`
5210    if test "x$as_val" = x""yes; then
5211   cat >>confdefs.h <<_ACEOF
5212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5213 _ACEOF
5214
5215 fi
5216
5217 done
5218
5219
5220
5221 for ac_header in dlfcn.h
5222 do
5223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5225   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5226 $as_echo_n "checking for $ac_header... " >&6; }
5227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5228   $as_echo_n "(cached) " >&6
5229 fi
5230 ac_res=`eval 'as_val=${'$as_ac_Header'}
5231                  $as_echo "$as_val"'`
5232                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5233 $as_echo "$ac_res" >&6; }
5234 else
5235   # Is the header compilable?
5236 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5237 $as_echo_n "checking $ac_header usability... " >&6; }
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 $ac_includes_default
5245 #include <$ac_header>
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255   (eval "$ac_compile") 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } && {
5262          test -z "$ac_c_werror_flag" ||
5263          test ! -s conftest.err
5264        } && test -s conftest.$ac_objext; then
5265   ac_header_compiler=yes
5266 else
5267   $as_echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270         ac_header_compiler=no
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5275 $as_echo "$ac_header_compiler" >&6; }
5276
5277 # Is the header present?
5278 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5279 $as_echo_n "checking $ac_header presence... " >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #include <$ac_header>
5287 _ACEOF
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5294 $as_echo "$ac_try_echo") >&5
5295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } >/dev/null && {
5302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5303          test ! -s conftest.err
5304        }; then
5305   ac_header_preproc=yes
5306 else
5307   $as_echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310   ac_header_preproc=no
5311 fi
5312
5313 rm -f conftest.err conftest.$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5315 $as_echo "$ac_header_preproc" >&6; }
5316
5317 # So?  What about this header?
5318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5319   yes:no: )
5320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5321 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5324     ac_header_preproc=yes
5325     ;;
5326   no:yes:* )
5327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5328 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5330 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5332 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5334 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5338 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5339     ( cat <<\_ASBOX
5340 ## ------------------------------------- ##
5341 ## Report this to markus@shellinabox.com ##
5342 ## ------------------------------------- ##
5343 _ASBOX
5344      ) | sed "s/^/$as_me: WARNING:     /" >&2
5345     ;;
5346 esac
5347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5348 $as_echo_n "checking for $ac_header... " >&6; }
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350   $as_echo_n "(cached) " >&6
5351 else
5352   eval "$as_ac_Header=\$ac_header_preproc"
5353 fi
5354 ac_res=`eval 'as_val=${'$as_ac_Header'}
5355                  $as_echo "$as_val"'`
5356                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5357 $as_echo "$ac_res" >&6; }
5358
5359 fi
5360 as_val=`eval 'as_val=${'$as_ac_Header'}
5361                  $as_echo "$as_val"'`
5362    if test "x$as_val" = x""yes; then
5363   cat >>confdefs.h <<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 _ACEOF
5366
5367 fi
5368
5369 done
5370
5371 ac_ext=cpp
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376 if test -z "$CXX"; then
5377   if test -n "$CCC"; then
5378     CXX=$CCC
5379   else
5380     if test -n "$ac_tool_prefix"; then
5381   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5382   do
5383     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if test "${ac_cv_prog_CXX+set}" = set; then
5388   $as_echo_n "(cached) " >&6
5389 else
5390   if test -n "$CXX"; then
5391   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for ac_exec_ext in '' $ac_executable_extensions; do
5399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5401     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 CXX=$ac_cv_prog_CXX
5411 if test -n "$CXX"; then
5412   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5413 $as_echo "$CXX" >&6; }
5414 else
5415   { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420     test -n "$CXX" && break
5421   done
5422 fi
5423 if test -z "$CXX"; then
5424   ac_ct_CXX=$CXX
5425   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5426 do
5427   # Extract the first word of "$ac_prog", so it can be a program name with args.
5428 set dummy $ac_prog; ac_word=$2
5429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5432   $as_echo_n "(cached) " >&6
5433 else
5434   if test -n "$ac_ct_CXX"; then
5435   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442   for ac_exec_ext in '' $ac_executable_extensions; do
5443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444     ac_cv_prog_ac_ct_CXX="$ac_prog"
5445     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449 done
5450 IFS=$as_save_IFS
5451
5452 fi
5453 fi
5454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5455 if test -n "$ac_ct_CXX"; then
5456   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5457 $as_echo "$ac_ct_CXX" >&6; }
5458 else
5459   { $as_echo "$as_me:$LINENO: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463
5464   test -n "$ac_ct_CXX" && break
5465 done
5466
5467   if test "x$ac_ct_CXX" = x; then
5468     CXX="g++"
5469   else
5470     case $cross_compiling:$ac_tool_warned in
5471 yes:)
5472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5475 esac
5476     CXX=$ac_ct_CXX
5477   fi
5478 fi
5479
5480   fi
5481 fi
5482 # Provide some information about the compiler.
5483 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5484 set X $ac_compile
5485 ac_compiler=$2
5486 { (ac_try="$ac_compiler --version >&5"
5487 case "(($ac_try" in
5488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489   *) ac_try_echo=$ac_try;;
5490 esac
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493   (eval "$ac_compiler --version >&5") 2>&5
5494   ac_status=$?
5495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }
5497 { (ac_try="$ac_compiler -v >&5"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5503 $as_echo "$ac_try_echo") >&5
5504   (eval "$ac_compiler -v >&5") 2>&5
5505   ac_status=$?
5506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }
5508 { (ac_try="$ac_compiler -V >&5"
5509 case "(($ac_try" in
5510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511   *) ac_try_echo=$ac_try;;
5512 esac
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515   (eval "$ac_compiler -V >&5") 2>&5
5516   ac_status=$?
5517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }
5519
5520 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5521 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5522 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5523   $as_echo_n "(cached) " >&6
5524 else
5525   cat >conftest.$ac_ext <<_ACEOF
5526 /* confdefs.h.  */
5527 _ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h.  */
5531
5532 int
5533 main ()
5534 {
5535 #ifndef __GNUC__
5536        choke me
5537 #endif
5538
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5545 case "(($ac_try" in
5546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547   *) ac_try_echo=$ac_try;;
5548 esac
5549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5550 $as_echo "$ac_try_echo") >&5
5551   (eval "$ac_compile") 2>conftest.er1
5552   ac_status=$?
5553   grep -v '^ *+' conftest.er1 >conftest.err
5554   rm -f conftest.er1
5555   cat conftest.err >&5
5556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); } && {
5558          test -z "$ac_cxx_werror_flag" ||
5559          test ! -s conftest.err
5560        } && test -s conftest.$ac_objext; then
5561   ac_compiler_gnu=yes
5562 else
5563   $as_echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566         ac_compiler_gnu=no
5567 fi
5568
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5571
5572 fi
5573 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5574 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5575 if test $ac_compiler_gnu = yes; then
5576   GXX=yes
5577 else
5578   GXX=
5579 fi
5580 ac_test_CXXFLAGS=${CXXFLAGS+set}
5581 ac_save_CXXFLAGS=$CXXFLAGS
5582 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5583 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5584 if test "${ac_cv_prog_cxx_g+set}" = set; then
5585   $as_echo_n "(cached) " >&6
5586 else
5587   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5588    ac_cxx_werror_flag=yes
5589    ac_cv_prog_cxx_g=no
5590    CXXFLAGS="-g"
5591    cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597
5598 int
5599 main ()
5600 {
5601
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5613 $as_echo "$ac_try_echo") >&5
5614   (eval "$ac_compile") 2>conftest.er1
5615   ac_status=$?
5616   grep -v '^ *+' conftest.er1 >conftest.err
5617   rm -f conftest.er1
5618   cat conftest.err >&5
5619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } && {
5621          test -z "$ac_cxx_werror_flag" ||
5622          test ! -s conftest.err
5623        } && test -s conftest.$ac_objext; then
5624   ac_cv_prog_cxx_g=yes
5625 else
5626   $as_echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629         CXXFLAGS=""
5630       cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h.  */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h.  */
5636
5637 int
5638 main ()
5639 {
5640
5641   ;
5642   return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649   *) ac_try_echo=$ac_try;;
5650 esac
5651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652 $as_echo "$ac_try_echo") >&5
5653   (eval "$ac_compile") 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } && {
5660          test -z "$ac_cxx_werror_flag" ||
5661          test ! -s conftest.err
5662        } && test -s conftest.$ac_objext; then
5663   :
5664 else
5665   $as_echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5669          CXXFLAGS="-g"
5670          cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676
5677 int
5678 main ()
5679 {
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5687 case "(($ac_try" in
5688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689   *) ac_try_echo=$ac_try;;
5690 esac
5691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5692 $as_echo "$ac_try_echo") >&5
5693   (eval "$ac_compile") 2>conftest.er1
5694   ac_status=$?
5695   grep -v '^ *+' conftest.er1 >conftest.err
5696   rm -f conftest.er1
5697   cat conftest.err >&5
5698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); } && {
5700          test -z "$ac_cxx_werror_flag" ||
5701          test ! -s conftest.err
5702        } && test -s conftest.$ac_objext; then
5703   ac_cv_prog_cxx_g=yes
5704 else
5705   $as_echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708
5709 fi
5710
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5719 fi
5720 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5721 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5722 if test "$ac_test_CXXFLAGS" = set; then
5723   CXXFLAGS=$ac_save_CXXFLAGS
5724 elif test $ac_cv_prog_cxx_g = yes; then
5725   if test "$GXX" = yes; then
5726     CXXFLAGS="-g -O2"
5727   else
5728     CXXFLAGS="-g"
5729   fi
5730 else
5731   if test "$GXX" = yes; then
5732     CXXFLAGS="-O2"
5733   else
5734     CXXFLAGS=
5735   fi
5736 fi
5737 ac_ext=cpp
5738 ac_cpp='$CXXCPP $CPPFLAGS'
5739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5742
5743 depcc="$CXX"  am_compiler_list=
5744
5745 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5746 $as_echo_n "checking dependency style of $depcc... " >&6; }
5747 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5751   # We make a subdir and do the tests there.  Otherwise we can end up
5752   # making bogus files that we don't know about and never remove.  For
5753   # instance it was reported that on HP-UX the gcc test will end up
5754   # making a dummy file named `D' -- because `-MD' means `put the output
5755   # in D'.
5756   mkdir conftest.dir
5757   # Copy depcomp to subdir because otherwise we won't find it if we're
5758   # using a relative directory.
5759   cp "$am_depcomp" conftest.dir
5760   cd conftest.dir
5761   # We will build objects and dependencies in a subdirectory because
5762   # it helps to detect inapplicable dependency modes.  For instance
5763   # both Tru64's cc and ICC support -MD to output dependencies as a
5764   # side effect of compilation, but ICC will put the dependencies in
5765   # the current directory while Tru64 will put them in the object
5766   # directory.
5767   mkdir sub
5768
5769   am_cv_CXX_dependencies_compiler_type=none
5770   if test "$am_compiler_list" = ""; then
5771      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5772   fi
5773   for depmode in $am_compiler_list; do
5774     # Setup a source with many dependencies, because some compilers
5775     # like to wrap large dependency lists on column 80 (with \), and
5776     # we should not choose a depcomp mode which is confused by this.
5777     #
5778     # We need to recreate these files for each test, as the compiler may
5779     # overwrite some of them when testing with obscure command lines.
5780     # This happens at least with the AIX C compiler.
5781     : > sub/conftest.c
5782     for i in 1 2 3 4 5 6; do
5783       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5784       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5785       # Solaris 8's {/usr,}/bin/sh.
5786       touch sub/conftst$i.h
5787     done
5788     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5789
5790     case $depmode in
5791     nosideeffect)
5792       # after this tag, mechanisms are not by side-effect, so they'll
5793       # only be used when explicitly requested
5794       if test "x$enable_dependency_tracking" = xyes; then
5795         continue
5796       else
5797         break
5798       fi
5799       ;;
5800     none) break ;;
5801     esac
5802     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5803     # mode.  It turns out that the SunPro C++ compiler does not properly
5804     # handle `-M -o', and we need to detect this.
5805     if depmode=$depmode \
5806        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5807        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5808        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5809          >/dev/null 2>conftest.err &&
5810        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5811        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5812        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5813        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5814       # icc doesn't choke on unknown options, it will just issue warnings
5815       # or remarks (even with -Werror).  So we grep stderr for any message
5816       # that says an option was ignored or not supported.
5817       # When given -MP, icc 7.0 and 7.1 complain thusly:
5818       #   icc: Command line warning: ignoring option '-M'; no argument required
5819       # The diagnosis changed in icc 8.0:
5820       #   icc: Command line remark: option '-MP' not supported
5821       if (grep 'ignoring option' conftest.err ||
5822           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5823         am_cv_CXX_dependencies_compiler_type=$depmode
5824         break
5825       fi
5826     fi
5827   done
5828
5829   cd ..
5830   rm -rf conftest.dir
5831 else
5832   am_cv_CXX_dependencies_compiler_type=none
5833 fi
5834
5835 fi
5836 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5837 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5838 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5839
5840  if
5841   test "x$enable_dependency_tracking" != xno \
5842   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5843   am__fastdepCXX_TRUE=
5844   am__fastdepCXX_FALSE='#'
5845 else
5846   am__fastdepCXX_TRUE='#'
5847   am__fastdepCXX_FALSE=
5848 fi
5849
5850
5851
5852
5853 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5854     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5855     (test "X$CXX" != "Xg++"))) ; then
5856   ac_ext=cpp
5857 ac_cpp='$CXXCPP $CPPFLAGS'
5858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5861 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5862 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5863 if test -z "$CXXCPP"; then
5864   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5865   $as_echo_n "(cached) " >&6
5866 else
5867       # Double quotes because CXXCPP needs to be expanded
5868     for CXXCPP in "$CXX -E" "/lib/cpp"
5869     do
5870       ac_preproc_ok=false
5871 for ac_cxx_preproc_warn_flag in '' yes
5872 do
5873   # Use a header file that comes with gcc, so configuring glibc
5874   # with a fresh cross-compiler works.
5875   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876   # <limits.h> exists even on freestanding compilers.
5877   # On the NeXT, cc -E runs the code through the compiler's parser,
5878   # not just through cpp. "Syntax error" is here to catch this case.
5879   cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h.  */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h.  */
5885 #ifdef __STDC__
5886 # include <limits.h>
5887 #else
5888 # include <assert.h>
5889 #endif
5890                      Syntax error
5891 _ACEOF
5892 if { (ac_try="$ac_cpp conftest.$ac_ext"
5893 case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898 $as_echo "$ac_try_echo") >&5
5899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5900   ac_status=$?
5901   grep -v '^ *+' conftest.er1 >conftest.err
5902   rm -f conftest.er1
5903   cat conftest.err >&5
5904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } >/dev/null && {
5906          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5907          test ! -s conftest.err
5908        }; then
5909   :
5910 else
5911   $as_echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5913
5914   # Broken: fails on valid input.
5915 continue
5916 fi
5917
5918 rm -f conftest.err conftest.$ac_ext
5919
5920   # OK, works on sane cases.  Now check whether nonexistent headers
5921   # can be detected and how.
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 #include <ac_nonexistent.h>
5929 _ACEOF
5930 if { (ac_try="$ac_cpp conftest.$ac_ext"
5931 case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5938   ac_status=$?
5939   grep -v '^ *+' conftest.er1 >conftest.err
5940   rm -f conftest.er1
5941   cat conftest.err >&5
5942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } >/dev/null && {
5944          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5945          test ! -s conftest.err
5946        }; then
5947   # Broken: success on invalid input.
5948 continue
5949 else
5950   $as_echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953   # Passes both tests.
5954 ac_preproc_ok=:
5955 break
5956 fi
5957
5958 rm -f conftest.err conftest.$ac_ext
5959
5960 done
5961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962 rm -f conftest.err conftest.$ac_ext
5963 if $ac_preproc_ok; then
5964   break
5965 fi
5966
5967     done
5968     ac_cv_prog_CXXCPP=$CXXCPP
5969
5970 fi
5971   CXXCPP=$ac_cv_prog_CXXCPP
5972 else
5973   ac_cv_prog_CXXCPP=$CXXCPP
5974 fi
5975 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5976 $as_echo "$CXXCPP" >&6; }
5977 ac_preproc_ok=false
5978 for ac_cxx_preproc_warn_flag in '' yes
5979 do
5980   # Use a header file that comes with gcc, so configuring glibc
5981   # with a fresh cross-compiler works.
5982   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983   # <limits.h> exists even on freestanding compilers.
5984   # On the NeXT, cc -E runs the code through the compiler's parser,
5985   # not just through cpp. "Syntax error" is here to catch this case.
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997                      Syntax error
5998 _ACEOF
5999 if { (ac_try="$ac_cpp conftest.$ac_ext"
6000 case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } >/dev/null && {
6013          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6014          test ! -s conftest.err
6015        }; then
6016   :
6017 else
6018   $as_echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021   # Broken: fails on valid input.
6022 continue
6023 fi
6024
6025 rm -f conftest.err conftest.$ac_ext
6026
6027   # OK, works on sane cases.  Now check whether nonexistent headers
6028   # can be detected and how.
6029   cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 #include <ac_nonexistent.h>
6036 _ACEOF
6037 if { (ac_try="$ac_cpp conftest.$ac_ext"
6038 case "(($ac_try" in
6039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040   *) ac_try_echo=$ac_try;;
6041 esac
6042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6043 $as_echo "$ac_try_echo") >&5
6044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } >/dev/null && {
6051          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6052          test ! -s conftest.err
6053        }; then
6054   # Broken: success on invalid input.
6055 continue
6056 else
6057   $as_echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060   # Passes both tests.
6061 ac_preproc_ok=:
6062 break
6063 fi
6064
6065 rm -f conftest.err conftest.$ac_ext
6066
6067 done
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6071   :
6072 else
6073   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6075 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6076 See \`config.log' for more details." >&5
6077 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6078 See \`config.log' for more details." >&2;}
6079    { (exit 1); exit 1; }; }; }
6080 fi
6081
6082 ac_ext=cpp
6083 ac_cpp='$CXXCPP $CPPFLAGS'
6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6087
6088 fi
6089
6090
6091 ac_ext=f
6092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6095 if test -n "$ac_tool_prefix"; then
6096   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
6097   do
6098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_F77+set}" = set; then
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$F77"; then
6106   ac_cv_prog_F77="$F77" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113   for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6116     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 F77=$ac_cv_prog_F77
6126 if test -n "$F77"; then
6127   { $as_echo "$as_me:$LINENO: result: $F77" >&5
6128 $as_echo "$F77" >&6; }
6129 else
6130   { $as_echo "$as_me:$LINENO: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135     test -n "$F77" && break
6136   done
6137 fi
6138 if test -z "$F77"; then
6139   ac_ct_F77=$F77
6140   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
6141 do
6142   # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$ac_ct_F77"; then
6150   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157   for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_ac_ct_F77="$ac_prog"
6160     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6170 if test -n "$ac_ct_F77"; then
6171   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6172 $as_echo "$ac_ct_F77" >&6; }
6173 else
6174   { $as_echo "$as_me:$LINENO: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178
6179   test -n "$ac_ct_F77" && break
6180 done
6181
6182   if test "x$ac_ct_F77" = x; then
6183     F77=""
6184   else
6185     case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191     F77=$ac_ct_F77
6192   fi
6193 fi
6194
6195
6196 # Provide some information about the compiler.
6197 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6198 set X $ac_compile
6199 ac_compiler=$2
6200 { (ac_try="$ac_compiler --version >&5"
6201 case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206 $as_echo "$ac_try_echo") >&5
6207   (eval "$ac_compiler --version >&5") 2>&5
6208   ac_status=$?
6209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }
6211 { (ac_try="$ac_compiler -v >&5"
6212 case "(($ac_try" in
6213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214   *) ac_try_echo=$ac_try;;
6215 esac
6216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6217 $as_echo "$ac_try_echo") >&5
6218   (eval "$ac_compiler -v >&5") 2>&5
6219   ac_status=$?
6220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }
6222 { (ac_try="$ac_compiler -V >&5"
6223 case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6228 $as_echo "$ac_try_echo") >&5
6229   (eval "$ac_compiler -V >&5") 2>&5
6230   ac_status=$?
6231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }
6233 rm -f a.out
6234
6235 # If we don't use `.F' as extension, the preprocessor is not run on the
6236 # input file.  (Note that this only needs to work for GNU compilers.)
6237 ac_save_ext=$ac_ext
6238 ac_ext=F
6239 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6240 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6241 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6242   $as_echo_n "(cached) " >&6
6243 else
6244   cat >conftest.$ac_ext <<_ACEOF
6245       program main
6246 #ifndef __GNUC__
6247        choke me
6248 #endif
6249
6250       end
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259 $as_echo "$ac_try_echo") >&5
6260   (eval "$ac_compile") 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } && {
6267          test -z "$ac_f77_werror_flag" ||
6268          test ! -s conftest.err
6269        } && test -s conftest.$ac_objext; then
6270   ac_compiler_gnu=yes
6271 else
6272   $as_echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275         ac_compiler_gnu=no
6276 fi
6277
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6280
6281 fi
6282 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6283 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6284 ac_ext=$ac_save_ext
6285 ac_test_FFLAGS=${FFLAGS+set}
6286 ac_save_FFLAGS=$FFLAGS
6287 FFLAGS=
6288 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6289 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6290 if test "${ac_cv_prog_f77_g+set}" = set; then
6291   $as_echo_n "(cached) " >&6
6292 else
6293   FFLAGS=-g
6294 cat >conftest.$ac_ext <<_ACEOF
6295       program main
6296
6297       end
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (ac_try="$ac_compile"
6301 case "(($ac_try" in
6302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303   *) ac_try_echo=$ac_try;;
6304 esac
6305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306 $as_echo "$ac_try_echo") >&5
6307   (eval "$ac_compile") 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } && {
6314          test -z "$ac_f77_werror_flag" ||
6315          test ! -s conftest.err
6316        } && test -s conftest.$ac_objext; then
6317   ac_cv_prog_f77_g=yes
6318 else
6319   $as_echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322         ac_cv_prog_f77_g=no
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
6327 fi
6328 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6329 $as_echo "$ac_cv_prog_f77_g" >&6; }
6330 if test "$ac_test_FFLAGS" = set; then
6331   FFLAGS=$ac_save_FFLAGS
6332 elif test $ac_cv_prog_f77_g = yes; then
6333   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6334     FFLAGS="-g -O2"
6335   else
6336     FFLAGS="-g"
6337   fi
6338 else
6339   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6340     FFLAGS="-O2"
6341   else
6342     FFLAGS=
6343   fi
6344 fi
6345
6346 if test $ac_compiler_gnu = yes; then
6347   G77=yes
6348 else
6349   G77=
6350 fi
6351 ac_ext=c
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356
6357
6358
6359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6360 # find the maximum length of command line arguments
6361 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6362 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6364   $as_echo_n "(cached) " >&6
6365 else
6366     i=0
6367   teststring="ABCD"
6368
6369   case $build_os in
6370   msdosdjgpp*)
6371     # On DJGPP, this test can blow up pretty badly due to problems in libc
6372     # (any single argument exceeding 2000 bytes causes a buffer overrun
6373     # during glob expansion).  Even if it were fixed, the result of this
6374     # check would be larger than it should be.
6375     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6376     ;;
6377
6378   gnu*)
6379     # Under GNU Hurd, this test is not required because there is
6380     # no limit to the length of command line arguments.
6381     # Libtool will interpret -1 as no limit whatsoever
6382     lt_cv_sys_max_cmd_len=-1;
6383     ;;
6384
6385   cygwin* | mingw*)
6386     # On Win9x/ME, this test blows up -- it succeeds, but takes
6387     # about 5 minutes as the teststring grows exponentially.
6388     # Worse, since 9x/ME are not pre-emptively multitasking,
6389     # you end up with a "frozen" computer, even though with patience
6390     # the test eventually succeeds (with a max line length of 256k).
6391     # Instead, let's just punt: use the minimum linelength reported by
6392     # all of the supported platforms: 8192 (on NT/2K/XP).
6393     lt_cv_sys_max_cmd_len=8192;
6394     ;;
6395
6396   amigaos*)
6397     # On AmigaOS with pdksh, this test takes hours, literally.
6398     # So we just punt and use a minimum line length of 8192.
6399     lt_cv_sys_max_cmd_len=8192;
6400     ;;
6401
6402   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6403     # This has been around since 386BSD, at least.  Likely further.
6404     if test -x /sbin/sysctl; then
6405       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6406     elif test -x /usr/sbin/sysctl; then
6407       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6408     else
6409       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6410     fi
6411     # And add a safety zone
6412     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6413     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6414     ;;
6415
6416   interix*)
6417     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6418     lt_cv_sys_max_cmd_len=196608
6419     ;;
6420
6421   osf*)
6422     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6423     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6424     # nice to cause kernel panics so lets avoid the loop below.
6425     # First set a reasonable default.
6426     lt_cv_sys_max_cmd_len=16384
6427     #
6428     if test -x /sbin/sysconfig; then
6429       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6430         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6431       esac
6432     fi
6433     ;;
6434   sco3.2v5*)
6435     lt_cv_sys_max_cmd_len=102400
6436     ;;
6437   sysv5* | sco5v6* | sysv4.2uw2*)
6438     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6439     if test -n "$kargmax"; then
6440       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6441     else
6442       lt_cv_sys_max_cmd_len=32768
6443     fi
6444     ;;
6445   *)
6446     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6447     if test -n "$lt_cv_sys_max_cmd_len"; then
6448       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6449       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6450     else
6451       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6452       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6453                = "XX$teststring") >/dev/null 2>&1 &&
6454               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6455               lt_cv_sys_max_cmd_len=$new_result &&
6456               test $i != 17 # 1/2 MB should be enough
6457       do
6458         i=`expr $i + 1`
6459         teststring=$teststring$teststring
6460       done
6461       teststring=
6462       # Add a significant safety factor because C++ compilers can tack on massive
6463       # amounts of additional arguments before passing them to the linker.
6464       # It appears as though 1/2 is a usable value.
6465       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6466     fi
6467     ;;
6468   esac
6469
6470 fi
6471
6472 if test -n $lt_cv_sys_max_cmd_len ; then
6473   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6474 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6475 else
6476   { $as_echo "$as_me:$LINENO: result: none" >&5
6477 $as_echo "none" >&6; }
6478 fi
6479
6480
6481
6482
6483
6484 # Check for command to grab the raw symbol name followed by C symbol from nm.
6485 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6486 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6488   $as_echo_n "(cached) " >&6
6489 else
6490
6491 # These are sane defaults that work on at least a few old systems.
6492 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6493
6494 # Character class describing NM global symbol codes.
6495 symcode='[BCDEGRST]'
6496
6497 # Regexp to match symbols that can be accessed directly from C.
6498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6499
6500 # Transform an extracted symbol line into a proper C declaration
6501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6502
6503 # Transform an extracted symbol line into symbol name and symbol address
6504 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'"
6505
6506 # Define system-specific variables.
6507 case $host_os in
6508 aix*)
6509   symcode='[BCDT]'
6510   ;;
6511 cygwin* | mingw* | pw32*)
6512   symcode='[ABCDGISTW]'
6513   ;;
6514 hpux*) # Its linker distinguishes data from code symbols
6515   if test "$host_cpu" = ia64; then
6516     symcode='[ABCDEGRST]'
6517   fi
6518   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519   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'"
6520   ;;
6521 linux* | k*bsd*-gnu)
6522   if test "$host_cpu" = ia64; then
6523     symcode='[ABCDGIRSTW]'
6524     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6525     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'"
6526   fi
6527   ;;
6528 irix* | nonstopux*)
6529   symcode='[BCDEGRST]'
6530   ;;
6531 osf*)
6532   symcode='[BCDEGQRST]'
6533   ;;
6534 solaris*)
6535   symcode='[BDRT]'
6536   ;;
6537 sco3.2v5*)
6538   symcode='[DT]'
6539   ;;
6540 sysv4.2uw2*)
6541   symcode='[DT]'
6542   ;;
6543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6544   symcode='[ABDT]'
6545   ;;
6546 sysv4)
6547   symcode='[DFNSTU]'
6548   ;;
6549 esac
6550
6551 # Handle CRLF in mingw tool chain
6552 opt_cr=
6553 case $build_os in
6554 mingw*)
6555   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6556   ;;
6557 esac
6558
6559 # If we're using GNU nm, then use its standard symbol codes.
6560 case `$NM -V 2>&1` in
6561 *GNU* | *'with BFD'*)
6562   symcode='[ABCDGIRSTW]' ;;
6563 esac
6564
6565 # Try without a prefix undercore, then with it.
6566 for ac_symprfx in "" "_"; do
6567
6568   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6569   symxfrm="\\1 $ac_symprfx\\2 \\2"
6570
6571   # Write the raw and C identifiers.
6572   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6573
6574   # Check to see that the pipe works correctly.
6575   pipe_works=no
6576
6577   rm -f conftest*
6578   cat > conftest.$ac_ext <<EOF
6579 #ifdef __cplusplus
6580 extern "C" {
6581 #endif
6582 char nm_test_var;
6583 void nm_test_func(){}
6584 #ifdef __cplusplus
6585 }
6586 #endif
6587 int main(){nm_test_var='a';nm_test_func();return(0);}
6588 EOF
6589
6590   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591   (eval $ac_compile) 2>&5
6592   ac_status=$?
6593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; then
6595     # Now try to grab the symbols.
6596     nlist=conftest.nm
6597     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6598   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6599   ac_status=$?
6600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } && test -s "$nlist"; then
6602       # Try sorting and uniquifying the output.
6603       if sort "$nlist" | uniq > "$nlist"T; then
6604         mv -f "$nlist"T "$nlist"
6605       else
6606         rm -f "$nlist"T
6607       fi
6608
6609       # Make sure that we snagged all the symbols we need.
6610       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6611         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6612           cat <<EOF > conftest.$ac_ext
6613 #ifdef __cplusplus
6614 extern "C" {
6615 #endif
6616
6617 EOF
6618           # Now generate the symbol file.
6619           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6620
6621           cat <<EOF >> conftest.$ac_ext
6622 #if defined (__STDC__) && __STDC__
6623 # define lt_ptr_t void *
6624 #else
6625 # define lt_ptr_t char *
6626 # define const
6627 #endif
6628
6629 /* The mapping between symbol names and symbols. */
6630 const struct {
6631   const char *name;
6632   lt_ptr_t address;
6633 }
6634 lt_preloaded_symbols[] =
6635 {
6636 EOF
6637           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6638           cat <<\EOF >> conftest.$ac_ext
6639   {0, (lt_ptr_t) 0}
6640 };
6641
6642 #ifdef __cplusplus
6643 }
6644 #endif
6645 EOF
6646           # Now try linking the two files.
6647           mv conftest.$ac_objext conftstm.$ac_objext
6648           lt_save_LIBS="$LIBS"
6649           lt_save_CFLAGS="$CFLAGS"
6650           LIBS="conftstm.$ac_objext"
6651           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6652           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653   (eval $ac_link) 2>&5
6654   ac_status=$?
6655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6657             pipe_works=yes
6658           fi
6659           LIBS="$lt_save_LIBS"
6660           CFLAGS="$lt_save_CFLAGS"
6661         else
6662           echo "cannot find nm_test_func in $nlist" >&5
6663         fi
6664       else
6665         echo "cannot find nm_test_var in $nlist" >&5
6666       fi
6667     else
6668       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6669     fi
6670   else
6671     echo "$progname: failed program was:" >&5
6672     cat conftest.$ac_ext >&5
6673   fi
6674   rm -rf conftest* conftst*
6675
6676   # Do not use the global_symbol_pipe unless it works.
6677   if test "$pipe_works" = yes; then
6678     break
6679   else
6680     lt_cv_sys_global_symbol_pipe=
6681   fi
6682 done
6683
6684 fi
6685
6686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6687   lt_cv_sys_global_symbol_to_cdecl=
6688 fi
6689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6690   { $as_echo "$as_me:$LINENO: result: failed" >&5
6691 $as_echo "failed" >&6; }
6692 else
6693   { $as_echo "$as_me:$LINENO: result: ok" >&5
6694 $as_echo "ok" >&6; }
6695 fi
6696
6697 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6698 $as_echo_n "checking for objdir... " >&6; }
6699 if test "${lt_cv_objdir+set}" = set; then
6700   $as_echo_n "(cached) " >&6
6701 else
6702   rm -f .libs 2>/dev/null
6703 mkdir .libs 2>/dev/null
6704 if test -d .libs; then
6705   lt_cv_objdir=.libs
6706 else
6707   # MS-DOS does not allow filenames that begin with a dot.
6708   lt_cv_objdir=_libs
6709 fi
6710 rmdir .libs 2>/dev/null
6711 fi
6712 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6713 $as_echo "$lt_cv_objdir" >&6; }
6714 objdir=$lt_cv_objdir
6715
6716
6717
6718
6719
6720 case $host_os in
6721 aix3*)
6722   # AIX sometimes has problems with the GCC collect2 program.  For some
6723   # reason, if we set the COLLECT_NAMES environment variable, the problems
6724   # vanish in a puff of smoke.
6725   if test "X${COLLECT_NAMES+set}" != Xset; then
6726     COLLECT_NAMES=
6727     export COLLECT_NAMES
6728   fi
6729   ;;
6730 esac
6731
6732 # Sed substitution that helps us do robust quoting.  It backslashifies
6733 # metacharacters that are still active within double-quoted strings.
6734 Xsed='sed -e 1s/^X//'
6735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6736
6737 # Same as above, but do not quote variable references.
6738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6739
6740 # Sed substitution to delay expansion of an escaped shell variable in a
6741 # double_quote_subst'ed string.
6742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6743
6744 # Sed substitution to avoid accidental globbing in evaled expressions
6745 no_glob_subst='s/\*/\\\*/g'
6746
6747 # Constants:
6748 rm="rm -f"
6749
6750 # Global variables:
6751 default_ofile=libtool
6752 can_build_shared=yes
6753
6754 # All known linkers require a `.a' archive for static linking (except MSVC,
6755 # which needs '.lib').
6756 libext=a
6757 ltmain="$ac_aux_dir/ltmain.sh"
6758 ofile="$default_ofile"
6759 with_gnu_ld="$lt_cv_prog_gnu_ld"
6760
6761 if test -n "$ac_tool_prefix"; then
6762   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}ar; ac_word=$2
6764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_AR+set}" = set; then
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$AR"; then
6770   ac_cv_prog_AR="$AR" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777   for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_prog_AR="${ac_tool_prefix}ar"
6780     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 AR=$ac_cv_prog_AR
6790 if test -n "$AR"; then
6791   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6792 $as_echo "$AR" >&6; }
6793 else
6794   { $as_echo "$as_me:$LINENO: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_AR"; then
6801   ac_ct_AR=$AR
6802   # Extract the first word of "ar", so it can be a program name with args.
6803 set dummy ar; ac_word=$2
6804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6807   $as_echo_n "(cached) " >&6
6808 else
6809   if test -n "$ac_ct_AR"; then
6810   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817   for ac_exec_ext in '' $ac_executable_extensions; do
6818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819     ac_cv_prog_ac_ct_AR="ar"
6820     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6830 if test -n "$ac_ct_AR"; then
6831   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6832 $as_echo "$ac_ct_AR" >&6; }
6833 else
6834   { $as_echo "$as_me:$LINENO: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838   if test "x$ac_ct_AR" = x; then
6839     AR="false"
6840   else
6841     case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     AR=$ac_ct_AR
6848   fi
6849 else
6850   AR="$ac_cv_prog_AR"
6851 fi
6852
6853 if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$RANLIB"; then
6862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 $as_echo "$RANLIB" >&6; }
6885 else
6886   { $as_echo "$as_me:$LINENO: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893   ac_ct_RANLIB=$RANLIB
6894   # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899   $as_echo_n "(cached) " >&6
6900 else
6901   if test -n "$ac_ct_RANLIB"; then
6902   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_prog_ac_ct_RANLIB="ranlib"
6912     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 $as_echo "$ac_ct_RANLIB" >&6; }
6925 else
6926   { $as_echo "$as_me:$LINENO: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_RANLIB" = x; then
6931     RANLIB=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937 ac_tool_warned=yes ;;
6938 esac
6939     RANLIB=$ac_ct_RANLIB
6940   fi
6941 else
6942   RANLIB="$ac_cv_prog_RANLIB"
6943 fi
6944
6945 if test -n "$ac_tool_prefix"; then
6946   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6947 set dummy ${ac_tool_prefix}strip; ac_word=$2
6948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if test "${ac_cv_prog_STRIP+set}" = set; then
6951   $as_echo_n "(cached) " >&6
6952 else
6953   if test -n "$STRIP"; then
6954   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961   for ac_exec_ext in '' $ac_executable_extensions; do
6962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6964     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 STRIP=$ac_cv_prog_STRIP
6974 if test -n "$STRIP"; then
6975   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6976 $as_echo "$STRIP" >&6; }
6977 else
6978   { $as_echo "$as_me:$LINENO: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982
6983 fi
6984 if test -z "$ac_cv_prog_STRIP"; then
6985   ac_ct_STRIP=$STRIP
6986   # Extract the first word of "strip", so it can be a program name with args.
6987 set dummy strip; ac_word=$2
6988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6991   $as_echo_n "(cached) " >&6
6992 else
6993   if test -n "$ac_ct_STRIP"; then
6994   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001   for ac_exec_ext in '' $ac_executable_extensions; do
7002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003     ac_cv_prog_ac_ct_STRIP="strip"
7004     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008 done
7009 IFS=$as_save_IFS
7010
7011 fi
7012 fi
7013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7014 if test -n "$ac_ct_STRIP"; then
7015   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7016 $as_echo "$ac_ct_STRIP" >&6; }
7017 else
7018   { $as_echo "$as_me:$LINENO: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022   if test "x$ac_ct_STRIP" = x; then
7023     STRIP=":"
7024   else
7025     case $cross_compiling:$ac_tool_warned in
7026 yes:)
7027 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031     STRIP=$ac_ct_STRIP
7032   fi
7033 else
7034   STRIP="$ac_cv_prog_STRIP"
7035 fi
7036
7037
7038 old_CC="$CC"
7039 old_CFLAGS="$CFLAGS"
7040
7041 # Set sane defaults for various variables
7042 test -z "$AR" && AR=ar
7043 test -z "$AR_FLAGS" && AR_FLAGS=cru
7044 test -z "$AS" && AS=as
7045 test -z "$CC" && CC=cc
7046 test -z "$LTCC" && LTCC=$CC
7047 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7048 test -z "$DLLTOOL" && DLLTOOL=dlltool
7049 test -z "$LD" && LD=ld
7050 test -z "$LN_S" && LN_S="ln -s"
7051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7052 test -z "$NM" && NM=nm
7053 test -z "$SED" && SED=sed
7054 test -z "$OBJDUMP" && OBJDUMP=objdump
7055 test -z "$RANLIB" && RANLIB=:
7056 test -z "$STRIP" && STRIP=:
7057 test -z "$ac_objext" && ac_objext=o
7058
7059 # Determine commands to create old-style static archives.
7060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7061 old_postinstall_cmds='chmod 644 $oldlib'
7062 old_postuninstall_cmds=
7063
7064 if test -n "$RANLIB"; then
7065   case $host_os in
7066   openbsd*)
7067     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7068     ;;
7069   *)
7070     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7071     ;;
7072   esac
7073   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7074 fi
7075
7076 for cc_temp in $compiler""; do
7077   case $cc_temp in
7078     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7079     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7080     \-*) ;;
7081     *) break;;
7082   esac
7083 done
7084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7085
7086
7087 # Only perform the check for file, if the check method requires it
7088 case $deplibs_check_method in
7089 file_magic*)
7090   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7091     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7092 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7094   $as_echo_n "(cached) " >&6
7095 else
7096   case $MAGIC_CMD in
7097 [\\/*] |  ?:[\\/]*)
7098   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7099   ;;
7100 *)
7101   lt_save_MAGIC_CMD="$MAGIC_CMD"
7102   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7103   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7104   for ac_dir in $ac_dummy; do
7105     IFS="$lt_save_ifs"
7106     test -z "$ac_dir" && ac_dir=.
7107     if test -f $ac_dir/${ac_tool_prefix}file; then
7108       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7109       if test -n "$file_magic_test_file"; then
7110         case $deplibs_check_method in
7111         "file_magic "*)
7112           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7113           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7115             $EGREP "$file_magic_regex" > /dev/null; then
7116             :
7117           else
7118             cat <<EOF 1>&2
7119
7120 *** Warning: the command libtool uses to detect shared libraries,
7121 *** $file_magic_cmd, produces output that libtool cannot recognize.
7122 *** The result is that libtool may fail to recognize shared libraries
7123 *** as such.  This will affect the creation of libtool libraries that
7124 *** depend on shared libraries, but programs linked with such libtool
7125 *** libraries will work regardless of this problem.  Nevertheless, you
7126 *** may want to report the problem to your system manager and/or to
7127 *** bug-libtool@gnu.org
7128
7129 EOF
7130           fi ;;
7131         esac
7132       fi
7133       break
7134     fi
7135   done
7136   IFS="$lt_save_ifs"
7137   MAGIC_CMD="$lt_save_MAGIC_CMD"
7138   ;;
7139 esac
7140 fi
7141
7142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143 if test -n "$MAGIC_CMD"; then
7144   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7145 $as_echo "$MAGIC_CMD" >&6; }
7146 else
7147   { $as_echo "$as_me:$LINENO: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151 if test -z "$lt_cv_path_MAGIC_CMD"; then
7152   if test -n "$ac_tool_prefix"; then
7153     { $as_echo "$as_me:$LINENO: checking for file" >&5
7154 $as_echo_n "checking for file... " >&6; }
7155 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7156   $as_echo_n "(cached) " >&6
7157 else
7158   case $MAGIC_CMD in
7159 [\\/*] |  ?:[\\/]*)
7160   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7161   ;;
7162 *)
7163   lt_save_MAGIC_CMD="$MAGIC_CMD"
7164   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7165   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7166   for ac_dir in $ac_dummy; do
7167     IFS="$lt_save_ifs"
7168     test -z "$ac_dir" && ac_dir=.
7169     if test -f $ac_dir/file; then
7170       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7171       if test -n "$file_magic_test_file"; then
7172         case $deplibs_check_method in
7173         "file_magic "*)
7174           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7175           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7176           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7177             $EGREP "$file_magic_regex" > /dev/null; then
7178             :
7179           else
7180             cat <<EOF 1>&2
7181
7182 *** Warning: the command libtool uses to detect shared libraries,
7183 *** $file_magic_cmd, produces output that libtool cannot recognize.
7184 *** The result is that libtool may fail to recognize shared libraries
7185 *** as such.  This will affect the creation of libtool libraries that
7186 *** depend on shared libraries, but programs linked with such libtool
7187 *** libraries will work regardless of this problem.  Nevertheless, you
7188 *** may want to report the problem to your system manager and/or to
7189 *** bug-libtool@gnu.org
7190
7191 EOF
7192           fi ;;
7193         esac
7194       fi
7195       break
7196     fi
7197   done
7198   IFS="$lt_save_ifs"
7199   MAGIC_CMD="$lt_save_MAGIC_CMD"
7200   ;;
7201 esac
7202 fi
7203
7204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205 if test -n "$MAGIC_CMD"; then
7206   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7207 $as_echo "$MAGIC_CMD" >&6; }
7208 else
7209   { $as_echo "$as_me:$LINENO: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213   else
7214     MAGIC_CMD=:
7215   fi
7216 fi
7217
7218   fi
7219   ;;
7220 esac
7221
7222
7223   case $host_os in
7224     rhapsody* | darwin*)
7225     if test -n "$ac_tool_prefix"; then
7226   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$DSYMUTIL"; then
7234   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241   for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7254 if test -n "$DSYMUTIL"; then
7255   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7256 $as_echo "$DSYMUTIL" >&6; }
7257 else
7258   { $as_echo "$as_me:$LINENO: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263 fi
7264 if test -z "$ac_cv_prog_DSYMUTIL"; then
7265   ac_ct_DSYMUTIL=$DSYMUTIL
7266   # Extract the first word of "dsymutil", so it can be a program name with args.
7267 set dummy dsymutil; ac_word=$2
7268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7271   $as_echo_n "(cached) " >&6
7272 else
7273   if test -n "$ac_ct_DSYMUTIL"; then
7274   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281   for ac_exec_ext in '' $ac_executable_extensions; do
7282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7284     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288 done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7294 if test -n "$ac_ct_DSYMUTIL"; then
7295   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7296 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7297 else
7298   { $as_echo "$as_me:$LINENO: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302   if test "x$ac_ct_DSYMUTIL" = x; then
7303     DSYMUTIL=":"
7304   else
7305     case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311     DSYMUTIL=$ac_ct_DSYMUTIL
7312   fi
7313 else
7314   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7315 fi
7316
7317     if test -n "$ac_tool_prefix"; then
7318   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$NMEDIT"; then
7326   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333   for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 NMEDIT=$ac_cv_prog_NMEDIT
7346 if test -n "$NMEDIT"; then
7347   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7348 $as_echo "$NMEDIT" >&6; }
7349 else
7350   { $as_echo "$as_me:$LINENO: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_NMEDIT"; then
7357   ac_ct_NMEDIT=$NMEDIT
7358   # Extract the first word of "nmedit", so it can be a program name with args.
7359 set dummy nmedit; ac_word=$2
7360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7363   $as_echo_n "(cached) " >&6
7364 else
7365   if test -n "$ac_ct_NMEDIT"; then
7366   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7386 if test -n "$ac_ct_NMEDIT"; then
7387   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7388 $as_echo "$ac_ct_NMEDIT" >&6; }
7389 else
7390   { $as_echo "$as_me:$LINENO: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394   if test "x$ac_ct_NMEDIT" = x; then
7395     NMEDIT=":"
7396   else
7397     case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403     NMEDIT=$ac_ct_NMEDIT
7404   fi
7405 else
7406   NMEDIT="$ac_cv_prog_NMEDIT"
7407 fi
7408
7409
7410     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7411 $as_echo_n "checking for -single_module linker flag... " >&6; }
7412 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415   lt_cv_apple_cc_single_mod=no
7416       if test -z "${LT_MULTI_MODULE}"; then
7417    # By default we will add the -single_module flag. You can override
7418    # by either setting the environment variable LT_MULTI_MODULE
7419    # non-empty at configure time, or by adding -multi_module to the
7420    # link flags.
7421    echo "int foo(void){return 1;}" > conftest.c
7422    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7423      -dynamiclib ${wl}-single_module conftest.c
7424    if test -f libconftest.dylib; then
7425      lt_cv_apple_cc_single_mod=yes
7426      rm -rf libconftest.dylib*
7427    fi
7428    rm conftest.c
7429       fi
7430 fi
7431 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7432 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7433     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7435 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7436   $as_echo_n "(cached) " >&6
7437 else
7438   lt_cv_ld_exported_symbols_list=no
7439       save_LDFLAGS=$LDFLAGS
7440       echo "_main" > conftest.sym
7441       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7442       cat >conftest.$ac_ext <<_ACEOF
7443 /* confdefs.h.  */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h.  */
7448
7449 int
7450 main ()
7451 {
7452
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext conftest$ac_exeext
7458 if { (ac_try="$ac_link"
7459 case "(($ac_try" in
7460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461   *) ac_try_echo=$ac_try;;
7462 esac
7463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7464 $as_echo "$ac_try_echo") >&5
7465   (eval "$ac_link") 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } && {
7472          test -z "$ac_c_werror_flag" ||
7473          test ! -s conftest.err
7474        } && test -s conftest$ac_exeext && {
7475          test "$cross_compiling" = yes ||
7476          $as_test_x conftest$ac_exeext
7477        }; then
7478   lt_cv_ld_exported_symbols_list=yes
7479 else
7480   $as_echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483         lt_cv_ld_exported_symbols_list=no
7484 fi
7485
7486 rm -rf conftest.dSYM
7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7488       conftest$ac_exeext conftest.$ac_ext
7489    LDFLAGS="$save_LDFLAGS"
7490
7491 fi
7492 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7494     case $host_os in
7495     rhapsody* | darwin1.[0123])
7496       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7497     darwin1.*)
7498      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7499     darwin*)
7500       # if running on 10.5 or later, the deployment target defaults
7501       # to the OS version, if on x86, and 10.4, the deployment
7502       # target defaults to 10.4. Don't you love it?
7503       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7504    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7505      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7506    10.[012]*)
7507      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508    10.*)
7509      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7510       esac
7511     ;;
7512   esac
7513     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7514       _lt_dar_single_mod='$single_module'
7515     fi
7516     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7517       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7518     else
7519       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7520     fi
7521     if test "$DSYMUTIL" != ":"; then
7522       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7523     else
7524       _lt_dsymutil=
7525     fi
7526     ;;
7527   esac
7528
7529
7530 enable_dlopen=no
7531 enable_win32_dll=no
7532
7533 # Check whether --enable-libtool-lock was given.
7534 if test "${enable_libtool_lock+set}" = set; then
7535   enableval=$enable_libtool_lock;
7536 fi
7537
7538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7539
7540
7541 # Check whether --with-pic was given.
7542 if test "${with_pic+set}" = set; then
7543   withval=$with_pic; pic_mode="$withval"
7544 else
7545   pic_mode=default
7546 fi
7547
7548 test -z "$pic_mode" && pic_mode=default
7549
7550 # Use C for the default configuration in the libtool script
7551 tagname=
7552 lt_save_CC="$CC"
7553 ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559
7560 # Source file extension for C test sources.
7561 ac_ext=c
7562
7563 # Object file extension for compiled C test sources.
7564 objext=o
7565 objext=$objext
7566
7567 # Code to be used in simple compile tests
7568 lt_simple_compile_test_code="int some_variable = 0;"
7569
7570 # Code to be used in simple link tests
7571 lt_simple_link_test_code='int main(){return(0);}'
7572
7573
7574 # If no C compiler was specified, use CC.
7575 LTCC=${LTCC-"$CC"}
7576
7577 # If no C compiler flags were specified, use CFLAGS.
7578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7579
7580 # Allow CC to be a program name with arguments.
7581 compiler=$CC
7582
7583
7584 # save warnings/boilerplate of simple test code
7585 ac_outfile=conftest.$ac_objext
7586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588 _lt_compiler_boilerplate=`cat conftest.err`
7589 $rm conftest*
7590
7591 ac_outfile=conftest.$ac_objext
7592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594 _lt_linker_boilerplate=`cat conftest.err`
7595 $rm -r conftest*
7596
7597
7598
7599 lt_prog_compiler_no_builtin_flag=
7600
7601 if test "$GCC" = yes; then
7602   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7603
7604
7605 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7606 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7607 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7608   $as_echo_n "(cached) " >&6
7609 else
7610   lt_cv_prog_compiler_rtti_exceptions=no
7611   ac_outfile=conftest.$ac_objext
7612    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613    lt_compiler_flag="-fno-rtti -fno-exceptions"
7614    # Insert the option either (1) after the last *FLAGS variable, or
7615    # (2) before a word containing "conftest.", or (3) at the end.
7616    # Note that $ac_compile itself does not contain backslashes and begins
7617    # with a dollar sign (not a hyphen), so the echo should work correctly.
7618    # The option is referenced via a variable to avoid confusing sed.
7619    lt_compile=`echo "$ac_compile" | $SED \
7620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622    -e 's:$: $lt_compiler_flag:'`
7623    (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624    (eval "$lt_compile" 2>conftest.err)
7625    ac_status=$?
7626    cat conftest.err >&5
7627    echo "$as_me:7627: \$? = $ac_status" >&5
7628    if (exit $ac_status) && test -s "$ac_outfile"; then
7629      # The compiler can only warn and ignore the option if not recognized
7630      # So say no if there are warnings other than the usual output.
7631      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7632      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634        lt_cv_prog_compiler_rtti_exceptions=yes
7635      fi
7636    fi
7637    $rm conftest*
7638
7639 fi
7640 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7641 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7642
7643 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7644     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7645 else
7646     :
7647 fi
7648
7649 fi
7650
7651 lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7654
7655 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7657
7658   if test "$GCC" = yes; then
7659     lt_prog_compiler_wl='-Wl,'
7660     lt_prog_compiler_static='-static'
7661
7662     case $host_os in
7663       aix*)
7664       # All AIX code is PIC.
7665       if test "$host_cpu" = ia64; then
7666         # AIX 5 now supports IA64 processor
7667         lt_prog_compiler_static='-Bstatic'
7668       fi
7669       ;;
7670
7671     amigaos*)
7672       # FIXME: we need at least 68020 code to build shared libraries, but
7673       # adding the `-m68020' flag to GCC prevents building anything better,
7674       # like `-m68040'.
7675       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7676       ;;
7677
7678     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7679       # PIC is the default for these OSes.
7680       ;;
7681
7682     mingw* | cygwin* | pw32* | os2*)
7683       # This hack is so that the source file can tell whether it is being
7684       # built for inclusion in a dll (and should export symbols for example).
7685       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7686       # (--disable-auto-import) libraries
7687       lt_prog_compiler_pic='-DDLL_EXPORT'
7688       ;;
7689
7690     darwin* | rhapsody*)
7691       # PIC is the default on this platform
7692       # Common symbols not allowed in MH_DYLIB files
7693       lt_prog_compiler_pic='-fno-common'
7694       ;;
7695
7696     interix[3-9]*)
7697       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7698       # Instead, we relocate shared libraries at runtime.
7699       ;;
7700
7701     msdosdjgpp*)
7702       # Just because we use GCC doesn't mean we suddenly get shared libraries
7703       # on systems that don't support them.
7704       lt_prog_compiler_can_build_shared=no
7705       enable_shared=no
7706       ;;
7707
7708     sysv4*MP*)
7709       if test -d /usr/nec; then
7710         lt_prog_compiler_pic=-Kconform_pic
7711       fi
7712       ;;
7713
7714     hpux*)
7715       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7716       # not for PA HP-UX.
7717       case $host_cpu in
7718       hppa*64*|ia64*)
7719         # +Z the default
7720         ;;
7721       *)
7722         lt_prog_compiler_pic='-fPIC'
7723         ;;
7724       esac
7725       ;;
7726
7727     *)
7728       lt_prog_compiler_pic='-fPIC'
7729       ;;
7730     esac
7731   else
7732     # PORTME Check for flag to pass linker flags through the system compiler.
7733     case $host_os in
7734     aix*)
7735       lt_prog_compiler_wl='-Wl,'
7736       if test "$host_cpu" = ia64; then
7737         # AIX 5 now supports IA64 processor
7738         lt_prog_compiler_static='-Bstatic'
7739       else
7740         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7741       fi
7742       ;;
7743       darwin*)
7744         # PIC is the default on this platform
7745         # Common symbols not allowed in MH_DYLIB files
7746        case $cc_basename in
7747          xlc*)
7748          lt_prog_compiler_pic='-qnocommon'
7749          lt_prog_compiler_wl='-Wl,'
7750          ;;
7751        esac
7752        ;;
7753
7754     mingw* | cygwin* | pw32* | os2*)
7755       # This hack is so that the source file can tell whether it is being
7756       # built for inclusion in a dll (and should export symbols for example).
7757       lt_prog_compiler_pic='-DDLL_EXPORT'
7758       ;;
7759
7760     hpux9* | hpux10* | hpux11*)
7761       lt_prog_compiler_wl='-Wl,'
7762       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763       # not for PA HP-UX.
7764       case $host_cpu in
7765       hppa*64*|ia64*)
7766         # +Z the default
7767         ;;
7768       *)
7769         lt_prog_compiler_pic='+Z'
7770         ;;
7771       esac
7772       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7773       lt_prog_compiler_static='${wl}-a ${wl}archive'
7774       ;;
7775
7776     irix5* | irix6* | nonstopux*)
7777       lt_prog_compiler_wl='-Wl,'
7778       # PIC (with -KPIC) is the default.
7779       lt_prog_compiler_static='-non_shared'
7780       ;;
7781
7782     newsos6)
7783       lt_prog_compiler_pic='-KPIC'
7784       lt_prog_compiler_static='-Bstatic'
7785       ;;
7786
7787     linux* | k*bsd*-gnu)
7788       case $cc_basename in
7789       icc* | ecc*)
7790         lt_prog_compiler_wl='-Wl,'
7791         lt_prog_compiler_pic='-KPIC'
7792         lt_prog_compiler_static='-static'
7793         ;;
7794       pgcc* | pgf77* | pgf90* | pgf95*)
7795         # Portland Group compilers (*not* the Pentium gcc compiler,
7796         # which looks to be a dead project)
7797         lt_prog_compiler_wl='-Wl,'
7798         lt_prog_compiler_pic='-fpic'
7799         lt_prog_compiler_static='-Bstatic'
7800         ;;
7801       ccc*)
7802         lt_prog_compiler_wl='-Wl,'
7803         # All Alpha code is PIC.
7804         lt_prog_compiler_static='-non_shared'
7805         ;;
7806       *)
7807         case `$CC -V 2>&1 | sed 5q` in
7808         *Sun\ C*)
7809           # Sun C 5.9
7810           lt_prog_compiler_pic='-KPIC'
7811           lt_prog_compiler_static='-Bstatic'
7812           lt_prog_compiler_wl='-Wl,'
7813           ;;
7814         *Sun\ F*)
7815           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7816           lt_prog_compiler_pic='-KPIC'
7817           lt_prog_compiler_static='-Bstatic'
7818           lt_prog_compiler_wl=''
7819           ;;
7820         esac
7821         ;;
7822       esac
7823       ;;
7824
7825     osf3* | osf4* | osf5*)
7826       lt_prog_compiler_wl='-Wl,'
7827       # All OSF/1 code is PIC.
7828       lt_prog_compiler_static='-non_shared'
7829       ;;
7830
7831     rdos*)
7832       lt_prog_compiler_static='-non_shared'
7833       ;;
7834
7835     solaris*)
7836       lt_prog_compiler_pic='-KPIC'
7837       lt_prog_compiler_static='-Bstatic'
7838       case $cc_basename in
7839       f77* | f90* | f95*)
7840         lt_prog_compiler_wl='-Qoption ld ';;
7841       *)
7842         lt_prog_compiler_wl='-Wl,';;
7843       esac
7844       ;;
7845
7846     sunos4*)
7847       lt_prog_compiler_wl='-Qoption ld '
7848       lt_prog_compiler_pic='-PIC'
7849       lt_prog_compiler_static='-Bstatic'
7850       ;;
7851
7852     sysv4 | sysv4.2uw2* | sysv4.3*)
7853       lt_prog_compiler_wl='-Wl,'
7854       lt_prog_compiler_pic='-KPIC'
7855       lt_prog_compiler_static='-Bstatic'
7856       ;;
7857
7858     sysv4*MP*)
7859       if test -d /usr/nec ;then
7860         lt_prog_compiler_pic='-Kconform_pic'
7861         lt_prog_compiler_static='-Bstatic'
7862       fi
7863       ;;
7864
7865     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7866       lt_prog_compiler_wl='-Wl,'
7867       lt_prog_compiler_pic='-KPIC'
7868       lt_prog_compiler_static='-Bstatic'
7869       ;;
7870
7871     unicos*)
7872       lt_prog_compiler_wl='-Wl,'
7873       lt_prog_compiler_can_build_shared=no
7874       ;;
7875
7876     uts4*)
7877       lt_prog_compiler_pic='-pic'
7878       lt_prog_compiler_static='-Bstatic'
7879       ;;
7880
7881     *)
7882       lt_prog_compiler_can_build_shared=no
7883       ;;
7884     esac
7885   fi
7886
7887 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7888 $as_echo "$lt_prog_compiler_pic" >&6; }
7889
7890 #
7891 # Check to make sure the PIC flag actually works.
7892 #
7893 if test -n "$lt_prog_compiler_pic"; then
7894
7895 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7897 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7898   $as_echo_n "(cached) " >&6
7899 else
7900   lt_cv_prog_compiler_pic_works=no
7901   ac_outfile=conftest.$ac_objext
7902    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7903    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7904    # Insert the option either (1) after the last *FLAGS variable, or
7905    # (2) before a word containing "conftest.", or (3) at the end.
7906    # Note that $ac_compile itself does not contain backslashes and begins
7907    # with a dollar sign (not a hyphen), so the echo should work correctly.
7908    # The option is referenced via a variable to avoid confusing sed.
7909    lt_compile=`echo "$ac_compile" | $SED \
7910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7912    -e 's:$: $lt_compiler_flag:'`
7913    (eval echo "\"\$as_me:7913: $lt_compile\"" >&5)
7914    (eval "$lt_compile" 2>conftest.err)
7915    ac_status=$?
7916    cat conftest.err >&5
7917    echo "$as_me:7917: \$? = $ac_status" >&5
7918    if (exit $ac_status) && test -s "$ac_outfile"; then
7919      # The compiler can only warn and ignore the option if not recognized
7920      # So say no if there are warnings other than the usual output.
7921      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7922      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7923      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7924        lt_cv_prog_compiler_pic_works=yes
7925      fi
7926    fi
7927    $rm conftest*
7928
7929 fi
7930 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7931 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7932
7933 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7934     case $lt_prog_compiler_pic in
7935      "" | " "*) ;;
7936      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7937      esac
7938 else
7939     lt_prog_compiler_pic=
7940      lt_prog_compiler_can_build_shared=no
7941 fi
7942
7943 fi
7944 case $host_os in
7945   # For platforms which do not support PIC, -DPIC is meaningless:
7946   *djgpp*)
7947     lt_prog_compiler_pic=
7948     ;;
7949   *)
7950     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7951     ;;
7952 esac
7953
7954 #
7955 # Check to make sure the static flag actually works.
7956 #
7957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7958 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7959 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7960 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7961   $as_echo_n "(cached) " >&6
7962 else
7963   lt_cv_prog_compiler_static_works=no
7964    save_LDFLAGS="$LDFLAGS"
7965    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7966    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7967    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7968      # The linker can only warn and ignore the option if not recognized
7969      # So say no if there are warnings
7970      if test -s conftest.err; then
7971        # Append any errors to the config.log.
7972        cat conftest.err 1>&5
7973        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7974        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975        if diff conftest.exp conftest.er2 >/dev/null; then
7976          lt_cv_prog_compiler_static_works=yes
7977        fi
7978      else
7979        lt_cv_prog_compiler_static_works=yes
7980      fi
7981    fi
7982    $rm -r conftest*
7983    LDFLAGS="$save_LDFLAGS"
7984
7985 fi
7986 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7987 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7988
7989 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7990     :
7991 else
7992     lt_prog_compiler_static=
7993 fi
7994
7995
7996 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7998 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7999   $as_echo_n "(cached) " >&6
8000 else
8001   lt_cv_prog_compiler_c_o=no
8002    $rm -r conftest 2>/dev/null
8003    mkdir conftest
8004    cd conftest
8005    mkdir out
8006    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8007
8008    lt_compiler_flag="-o out/conftest2.$ac_objext"
8009    # Insert the option either (1) after the last *FLAGS variable, or
8010    # (2) before a word containing "conftest.", or (3) at the end.
8011    # Note that $ac_compile itself does not contain backslashes and begins
8012    # with a dollar sign (not a hyphen), so the echo should work correctly.
8013    lt_compile=`echo "$ac_compile" | $SED \
8014    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8015    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8016    -e 's:$: $lt_compiler_flag:'`
8017    (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
8018    (eval "$lt_compile" 2>out/conftest.err)
8019    ac_status=$?
8020    cat out/conftest.err >&5
8021    echo "$as_me:8021: \$? = $ac_status" >&5
8022    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8023    then
8024      # The compiler can only warn and ignore the option if not recognized
8025      # So say no if there are warnings
8026      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8027      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8028      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8029        lt_cv_prog_compiler_c_o=yes
8030      fi
8031    fi
8032    chmod u+w . 2>&5
8033    $rm conftest*
8034    # SGI C++ compiler will create directory out/ii_files/ for
8035    # template instantiation
8036    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8037    $rm out/* && rmdir out
8038    cd ..
8039    rmdir conftest
8040    $rm conftest*
8041
8042 fi
8043 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8045
8046
8047 hard_links="nottested"
8048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8049   # do not overwrite the value of need_locks provided by the user
8050   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8051 $as_echo_n "checking if we can lock with hard links... " >&6; }
8052   hard_links=yes
8053   $rm conftest*
8054   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8055   touch conftest.a
8056   ln conftest.a conftest.b 2>&5 || hard_links=no
8057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8059 $as_echo "$hard_links" >&6; }
8060   if test "$hard_links" = no; then
8061     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8063     need_locks=warn
8064   fi
8065 else
8066   need_locks=no
8067 fi
8068
8069 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8071
8072   runpath_var=
8073   allow_undefined_flag=
8074   enable_shared_with_static_runtimes=no
8075   archive_cmds=
8076   archive_expsym_cmds=
8077   old_archive_From_new_cmds=
8078   old_archive_from_expsyms_cmds=
8079   export_dynamic_flag_spec=
8080   whole_archive_flag_spec=
8081   thread_safe_flag_spec=
8082   hardcode_libdir_flag_spec=
8083   hardcode_libdir_flag_spec_ld=
8084   hardcode_libdir_separator=
8085   hardcode_direct=no
8086   hardcode_minus_L=no
8087   hardcode_shlibpath_var=unsupported
8088   link_all_deplibs=unknown
8089   hardcode_automatic=no
8090   module_cmds=
8091   module_expsym_cmds=
8092   always_export_symbols=no
8093   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8094   # include_expsyms should be a list of space-separated symbols to be *always*
8095   # included in the symbol list
8096   include_expsyms=
8097   # exclude_expsyms can be an extended regexp of symbols to exclude
8098   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8099   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8100   # as well as any symbol that contains `d'.
8101   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8102   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8103   # platforms (ab)use it in PIC code, but their linkers get confused if
8104   # the symbol is explicitly referenced.  Since portable code cannot
8105   # rely on this symbol name, it's probably fine to never include it in
8106   # preloaded symbol tables.
8107   # Exclude shared library initialization/finalization symbols.
8108   extract_expsyms_cmds=
8109   # Just being paranoid about ensuring that cc_basename is set.
8110   for cc_temp in $compiler""; do
8111   case $cc_temp in
8112     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8113     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8114     \-*) ;;
8115     *) break;;
8116   esac
8117 done
8118 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8119
8120   case $host_os in
8121   cygwin* | mingw* | pw32*)
8122     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123     # When not using gcc, we currently assume that we are using
8124     # Microsoft Visual C++.
8125     if test "$GCC" != yes; then
8126       with_gnu_ld=no
8127     fi
8128     ;;
8129   interix*)
8130     # we just hope/assume this is gcc and not c89 (= MSVC++)
8131     with_gnu_ld=yes
8132     ;;
8133   openbsd*)
8134     with_gnu_ld=no
8135     ;;
8136   esac
8137
8138   ld_shlibs=yes
8139   if test "$with_gnu_ld" = yes; then
8140     # If archive_cmds runs LD, not CC, wlarc should be empty
8141     wlarc='${wl}'
8142
8143     # Set some defaults for GNU ld with shared library support. These
8144     # are reset later if shared libraries are not supported. Putting them
8145     # here allows them to be overridden if necessary.
8146     runpath_var=LD_RUN_PATH
8147     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8148     export_dynamic_flag_spec='${wl}--export-dynamic'
8149     # ancient GNU ld didn't support --whole-archive et. al.
8150     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8151         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8152       else
8153         whole_archive_flag_spec=
8154     fi
8155     supports_anon_versioning=no
8156     case `$LD -v 2>/dev/null` in
8157       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8158       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8159       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8160       *\ 2.11.*) ;; # other 2.11 versions
8161       *) supports_anon_versioning=yes ;;
8162     esac
8163
8164     # See if GNU ld supports shared libraries.
8165     case $host_os in
8166     aix[3-9]*)
8167       # On AIX/PPC, the GNU linker is very broken
8168       if test "$host_cpu" != ia64; then
8169         ld_shlibs=no
8170         cat <<EOF 1>&2
8171
8172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8173 *** to be unable to reliably create shared libraries on AIX.
8174 *** Therefore, libtool is disabling shared libraries support.  If you
8175 *** really care for shared libraries, you may want to modify your PATH
8176 *** so that a non-GNU linker is found, and then restart.
8177
8178 EOF
8179       fi
8180       ;;
8181
8182     amigaos*)
8183       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)'
8184       hardcode_libdir_flag_spec='-L$libdir'
8185       hardcode_minus_L=yes
8186
8187       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8188       # that the semantics of dynamic libraries on AmigaOS, at least up
8189       # to version 4, is to share data among multiple programs linked
8190       # with the same dynamic library.  Since this doesn't match the
8191       # behavior of shared libraries on other platforms, we can't use
8192       # them.
8193       ld_shlibs=no
8194       ;;
8195
8196     beos*)
8197       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198         allow_undefined_flag=unsupported
8199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8200         # support --undefined.  This deserves some investigation.  FIXME
8201         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202       else
8203         ld_shlibs=no
8204       fi
8205       ;;
8206
8207     cygwin* | mingw* | pw32*)
8208       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8209       # as there is no search path for DLLs.
8210       hardcode_libdir_flag_spec='-L$libdir'
8211       allow_undefined_flag=unsupported
8212       always_export_symbols=no
8213       enable_shared_with_static_runtimes=yes
8214       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8215
8216       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8218         # If the export-symbols file already is a .def file (1st line
8219         # is EXPORTS), use it as is; otherwise, prepend...
8220         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8221           cp $export_symbols $output_objdir/$soname.def;
8222         else
8223           echo EXPORTS > $output_objdir/$soname.def;
8224           cat $export_symbols >> $output_objdir/$soname.def;
8225         fi~
8226         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8227       else
8228         ld_shlibs=no
8229       fi
8230       ;;
8231
8232     interix[3-9]*)
8233       hardcode_direct=no
8234       hardcode_shlibpath_var=no
8235       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8236       export_dynamic_flag_spec='${wl}-E'
8237       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8238       # Instead, shared libraries are loaded at an image base (0x10000000 by
8239       # default) and relocated if they conflict, which is a slow very memory
8240       # consuming and fragmenting process.  To avoid this, we pick a random,
8241       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8242       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8243       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8244       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'
8245       ;;
8246
8247     gnu* | linux* | k*bsd*-gnu)
8248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8249         tmp_addflag=
8250         case $cc_basename,$host_cpu in
8251         pgcc*)                          # Portland Group C compiler
8252           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'
8253           tmp_addflag=' $pic_flag'
8254           ;;
8255         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8256           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'
8257           tmp_addflag=' $pic_flag -Mnomain' ;;
8258         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8259           tmp_addflag=' -i_dynamic' ;;
8260         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8261           tmp_addflag=' -i_dynamic -nofor_main' ;;
8262         ifc* | ifort*)                  # Intel Fortran compiler
8263           tmp_addflag=' -nofor_main' ;;
8264         esac
8265         case `$CC -V 2>&1 | sed 5q` in
8266         *Sun\ C*)                       # Sun C 5.9
8267           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'
8268           tmp_sharedflag='-G' ;;
8269         *Sun\ F*)                       # Sun Fortran 8.3
8270           tmp_sharedflag='-G' ;;
8271         *)
8272           tmp_sharedflag='-shared' ;;
8273         esac
8274         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275
8276         if test $supports_anon_versioning = yes; then
8277           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279   $echo "local: *; };" >> $output_objdir/$libname.ver~
8280           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8281         fi
8282         link_all_deplibs=no
8283       else
8284         ld_shlibs=no
8285       fi
8286       ;;
8287
8288     netbsd* | netbsdelf*-gnu)
8289       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8291         wlarc=
8292       else
8293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295       fi
8296       ;;
8297
8298     solaris*)
8299       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8300         ld_shlibs=no
8301         cat <<EOF 1>&2
8302
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems.  Therefore, libtool
8305 *** is disabling shared libraries support.  We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer.  Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8309
8310 EOF
8311       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8314       else
8315         ld_shlibs=no
8316       fi
8317       ;;
8318
8319     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8320       case `$LD -v 2>&1` in
8321         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8322         ld_shlibs=no
8323         cat <<_LT_EOF 1>&2
8324
8325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8326 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8327 *** is disabling shared libraries support.  We urge you to upgrade GNU
8328 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8329 *** your PATH or compiler configuration so that the native linker is
8330 *** used, and then restart.
8331
8332 _LT_EOF
8333         ;;
8334         *)
8335           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8337             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8338             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8339           else
8340             ld_shlibs=no
8341           fi
8342         ;;
8343       esac
8344       ;;
8345
8346     sunos4*)
8347       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8348       wlarc=
8349       hardcode_direct=yes
8350       hardcode_shlibpath_var=no
8351       ;;
8352
8353     *)
8354       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357       else
8358         ld_shlibs=no
8359       fi
8360       ;;
8361     esac
8362
8363     if test "$ld_shlibs" = no; then
8364       runpath_var=
8365       hardcode_libdir_flag_spec=
8366       export_dynamic_flag_spec=
8367       whole_archive_flag_spec=
8368     fi
8369   else
8370     # PORTME fill in a description of your system's linker (not GNU ld)
8371     case $host_os in
8372     aix3*)
8373       allow_undefined_flag=unsupported
8374       always_export_symbols=yes
8375       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'
8376       # Note: this linker hardcodes the directories in LIBPATH if there
8377       # are no directories specified by -L.
8378       hardcode_minus_L=yes
8379       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380         # Neither direct hardcoding nor static linking is supported with a
8381         # broken collect2.
8382         hardcode_direct=unsupported
8383       fi
8384       ;;
8385
8386     aix[4-9]*)
8387       if test "$host_cpu" = ia64; then
8388         # On IA64, the linker does run time linking by default, so we don't
8389         # have to do anything special.
8390         aix_use_runtimelinking=no
8391         exp_sym_flag='-Bexport'
8392         no_entry_flag=""
8393       else
8394         # If we're using GNU nm, then we don't want the "-C" option.
8395         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8396         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8397           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'
8398         else
8399           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'
8400         fi
8401         aix_use_runtimelinking=no
8402
8403         # Test if we are trying to use run time linking or normal
8404         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8405         # need to do runtime linking.
8406         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8407           for ld_flag in $LDFLAGS; do
8408           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8409             aix_use_runtimelinking=yes
8410             break
8411           fi
8412           done
8413           ;;
8414         esac
8415
8416         exp_sym_flag='-bexport'
8417         no_entry_flag='-bnoentry'
8418       fi
8419
8420       # When large executables or shared objects are built, AIX ld can
8421       # have problems creating the table of contents.  If linking a library
8422       # or program results in "error TOC overflow" add -mminimal-toc to
8423       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8424       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8425
8426       archive_cmds=''
8427       hardcode_direct=yes
8428       hardcode_libdir_separator=':'
8429       link_all_deplibs=yes
8430
8431       if test "$GCC" = yes; then
8432         case $host_os in aix4.[012]|aix4.[012].*)
8433         # We only want to do this on AIX 4.2 and lower, the check
8434         # below for broken collect2 doesn't work under 4.3+
8435           collect2name=`${CC} -print-prog-name=collect2`
8436           if test -f "$collect2name" && \
8437            strings "$collect2name" | grep resolve_lib_name >/dev/null
8438           then
8439           # We have reworked collect2
8440           :
8441           else
8442           # We have old collect2
8443           hardcode_direct=unsupported
8444           # It fails to find uninstalled libraries when the uninstalled
8445           # path is not listed in the libpath.  Setting hardcode_minus_L
8446           # to unsupported forces relinking
8447           hardcode_minus_L=yes
8448           hardcode_libdir_flag_spec='-L$libdir'
8449           hardcode_libdir_separator=
8450           fi
8451           ;;
8452         esac
8453         shared_flag='-shared'
8454         if test "$aix_use_runtimelinking" = yes; then
8455           shared_flag="$shared_flag "'${wl}-G'
8456         fi
8457       else
8458         # not using gcc
8459         if test "$host_cpu" = ia64; then
8460         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461         # chokes on -Wl,-G. The following line is correct:
8462           shared_flag='-G'
8463         else
8464           if test "$aix_use_runtimelinking" = yes; then
8465             shared_flag='${wl}-G'
8466           else
8467             shared_flag='${wl}-bM:SRE'
8468           fi
8469         fi
8470       fi
8471
8472       # It seems that -bexpall does not export symbols beginning with
8473       # underscore (_), so it is better to generate a list of symbols to export.
8474       always_export_symbols=yes
8475       if test "$aix_use_runtimelinking" = yes; then
8476         # Warning - without using the other runtime loading flags (-brtl),
8477         # -berok will link without error, but may produce a broken library.
8478         allow_undefined_flag='-berok'
8479        # Determine the default libpath from the value encoded in an empty executable.
8480        cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 int
8488 main ()
8489 {
8490
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 rm -f conftest.$ac_objext conftest$ac_exeext
8496 if { (ac_try="$ac_link"
8497 case "(($ac_try" in
8498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499   *) ac_try_echo=$ac_try;;
8500 esac
8501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8502 $as_echo "$ac_try_echo") >&5
8503   (eval "$ac_link") 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } && {
8510          test -z "$ac_c_werror_flag" ||
8511          test ! -s conftest.err
8512        } && test -s conftest$ac_exeext && {
8513          test "$cross_compiling" = yes ||
8514          $as_test_x conftest$ac_exeext
8515        }; then
8516
8517 lt_aix_libpath_sed='
8518     /Import File Strings/,/^$/ {
8519         /^0/ {
8520             s/^0  *\(.*\)$/\1/
8521             p
8522         }
8523     }'
8524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8525 # Check for a 64-bit object if we didn't find anything.
8526 if test -z "$aix_libpath"; then
8527   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8528 fi
8529 else
8530   $as_echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533
8534 fi
8535
8536 rm -rf conftest.dSYM
8537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8538       conftest$ac_exeext conftest.$ac_ext
8539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8540
8541        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8542         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"
8543        else
8544         if test "$host_cpu" = ia64; then
8545           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8546           allow_undefined_flag="-z nodefs"
8547           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"
8548         else
8549          # Determine the default libpath from the value encoded in an empty executable.
8550          cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h.  */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h.  */
8556
8557 int
8558 main ()
8559 {
8560
8561   ;
8562   return 0;
8563 }
8564 _ACEOF
8565 rm -f conftest.$ac_objext conftest$ac_exeext
8566 if { (ac_try="$ac_link"
8567 case "(($ac_try" in
8568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569   *) ac_try_echo=$ac_try;;
8570 esac
8571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8572 $as_echo "$ac_try_echo") >&5
8573   (eval "$ac_link") 2>conftest.er1
8574   ac_status=$?
8575   grep -v '^ *+' conftest.er1 >conftest.err
8576   rm -f conftest.er1
8577   cat conftest.err >&5
8578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } && {
8580          test -z "$ac_c_werror_flag" ||
8581          test ! -s conftest.err
8582        } && test -s conftest$ac_exeext && {
8583          test "$cross_compiling" = yes ||
8584          $as_test_x conftest$ac_exeext
8585        }; then
8586
8587 lt_aix_libpath_sed='
8588     /Import File Strings/,/^$/ {
8589         /^0/ {
8590             s/^0  *\(.*\)$/\1/
8591             p
8592         }
8593     }'
8594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8595 # Check for a 64-bit object if we didn't find anything.
8596 if test -z "$aix_libpath"; then
8597   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 fi
8599 else
8600   $as_echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8602
8603
8604 fi
8605
8606 rm -rf conftest.dSYM
8607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608       conftest$ac_exeext conftest.$ac_ext
8609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8610
8611          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8612           # Warning - without using the other run time loading flags,
8613           # -berok will link without error, but may produce a broken library.
8614           no_undefined_flag=' ${wl}-bernotok'
8615           allow_undefined_flag=' ${wl}-berok'
8616           # Exported symbols can be pulled into shared objects from archives
8617           whole_archive_flag_spec='$convenience'
8618           archive_cmds_need_lc=yes
8619           # This is similar to how AIX traditionally builds its shared libraries.
8620           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'
8621         fi
8622       fi
8623       ;;
8624
8625     amigaos*)
8626       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)'
8627       hardcode_libdir_flag_spec='-L$libdir'
8628       hardcode_minus_L=yes
8629       # see comment about different semantics on the GNU ld section
8630       ld_shlibs=no
8631       ;;
8632
8633     bsdi[45]*)
8634       export_dynamic_flag_spec=-rdynamic
8635       ;;
8636
8637     cygwin* | mingw* | pw32*)
8638       # When not using gcc, we currently assume that we are using
8639       # Microsoft Visual C++.
8640       # hardcode_libdir_flag_spec is actually meaningless, as there is
8641       # no search path for DLLs.
8642       hardcode_libdir_flag_spec=' '
8643       allow_undefined_flag=unsupported
8644       # Tell ltmain to make .lib files, not .a files.
8645       libext=lib
8646       # Tell ltmain to make .dll files, not .so files.
8647       shrext_cmds=".dll"
8648       # FIXME: Setting linknames here is a bad hack.
8649       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8650       # The linker will automatically build a .lib file if we build a DLL.
8651       old_archive_From_new_cmds='true'
8652       # FIXME: Should let the user specify the lib program.
8653       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8654       fix_srcfile_path='`cygpath -w "$srcfile"`'
8655       enable_shared_with_static_runtimes=yes
8656       ;;
8657
8658     darwin* | rhapsody*)
8659       case $host_os in
8660         rhapsody* | darwin1.[012])
8661          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8662          ;;
8663        *) # Darwin 1.3 on
8664          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8665            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8666          else
8667            case ${MACOSX_DEPLOYMENT_TARGET} in
8668              10.[012])
8669                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8670                ;;
8671              10.*)
8672                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8673                ;;
8674            esac
8675          fi
8676          ;;
8677       esac
8678       archive_cmds_need_lc=no
8679       hardcode_direct=no
8680       hardcode_automatic=yes
8681       hardcode_shlibpath_var=unsupported
8682       whole_archive_flag_spec=''
8683       link_all_deplibs=yes
8684     if test "$GCC" = yes ; then
8685         output_verbose_link_cmd='echo'
8686         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8687         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8688         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}"
8689         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}"
8690     else
8691       case $cc_basename in
8692         xlc*)
8693          output_verbose_link_cmd='echo'
8694          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8695          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8696           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8697          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}'
8698           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}'
8699           ;;
8700        *)
8701          ld_shlibs=no
8702           ;;
8703       esac
8704     fi
8705       ;;
8706
8707     dgux*)
8708       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709       hardcode_libdir_flag_spec='-L$libdir'
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     freebsd1*)
8714       ld_shlibs=no
8715       ;;
8716
8717     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8718     # support.  Future versions do this automatically, but an explicit c++rt0.o
8719     # does not break anything, and helps significantly (at the cost of a little
8720     # extra space).
8721     freebsd2.2*)
8722       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8723       hardcode_libdir_flag_spec='-R$libdir'
8724       hardcode_direct=yes
8725       hardcode_shlibpath_var=no
8726       ;;
8727
8728     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8729     freebsd2*)
8730       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731       hardcode_direct=yes
8732       hardcode_minus_L=yes
8733       hardcode_shlibpath_var=no
8734       ;;
8735
8736     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8737     freebsd* | dragonfly*)
8738       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8739       hardcode_libdir_flag_spec='-R$libdir'
8740       hardcode_direct=yes
8741       hardcode_shlibpath_var=no
8742       ;;
8743
8744     hpux9*)
8745       if test "$GCC" = yes; then
8746         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'
8747       else
8748         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'
8749       fi
8750       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8751       hardcode_libdir_separator=:
8752       hardcode_direct=yes
8753
8754       # hardcode_minus_L: Not really in the search PATH,
8755       # but as the default location of the library.
8756       hardcode_minus_L=yes
8757       export_dynamic_flag_spec='${wl}-E'
8758       ;;
8759
8760     hpux10*)
8761       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8762         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8763       else
8764         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8765       fi
8766       if test "$with_gnu_ld" = no; then
8767         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8768         hardcode_libdir_separator=:
8769
8770         hardcode_direct=yes
8771         export_dynamic_flag_spec='${wl}-E'
8772
8773         # hardcode_minus_L: Not really in the search PATH,
8774         # but as the default location of the library.
8775         hardcode_minus_L=yes
8776       fi
8777       ;;
8778
8779     hpux11*)
8780       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8781         case $host_cpu in
8782         hppa*64*)
8783           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8784           ;;
8785         ia64*)
8786           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8787           ;;
8788         *)
8789           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790           ;;
8791         esac
8792       else
8793         case $host_cpu in
8794         hppa*64*)
8795           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796           ;;
8797         ia64*)
8798           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799           ;;
8800         *)
8801           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802           ;;
8803         esac
8804       fi
8805       if test "$with_gnu_ld" = no; then
8806         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807         hardcode_libdir_separator=:
8808
8809         case $host_cpu in
8810         hppa*64*|ia64*)
8811           hardcode_libdir_flag_spec_ld='+b $libdir'
8812           hardcode_direct=no
8813           hardcode_shlibpath_var=no
8814           ;;
8815         *)
8816           hardcode_direct=yes
8817           export_dynamic_flag_spec='${wl}-E'
8818
8819           # hardcode_minus_L: Not really in the search PATH,
8820           # but as the default location of the library.
8821           hardcode_minus_L=yes
8822           ;;
8823         esac
8824       fi
8825       ;;
8826
8827     irix5* | irix6* | nonstopux*)
8828       if test "$GCC" = yes; then
8829         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'
8830       else
8831         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'
8832         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8833       fi
8834       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835       hardcode_libdir_separator=:
8836       link_all_deplibs=yes
8837       ;;
8838
8839     netbsd* | netbsdelf*-gnu)
8840       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8841         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8842       else
8843         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8844       fi
8845       hardcode_libdir_flag_spec='-R$libdir'
8846       hardcode_direct=yes
8847       hardcode_shlibpath_var=no
8848       ;;
8849
8850     newsos6)
8851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852       hardcode_direct=yes
8853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854       hardcode_libdir_separator=:
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     openbsd*)
8859       if test -f /usr/libexec/ld.so; then
8860         hardcode_direct=yes
8861         hardcode_shlibpath_var=no
8862         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866           export_dynamic_flag_spec='${wl}-E'
8867         else
8868           case $host_os in
8869            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871              hardcode_libdir_flag_spec='-R$libdir'
8872              ;;
8873            *)
8874              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876              ;;
8877           esac
8878         fi
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     os2*)
8885       hardcode_libdir_flag_spec='-L$libdir'
8886       hardcode_minus_L=yes
8887       allow_undefined_flag=unsupported
8888       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'
8889       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8890       ;;
8891
8892     osf3*)
8893       if test "$GCC" = yes; then
8894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895         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'
8896       else
8897         allow_undefined_flag=' -expect_unresolved \*'
8898         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'
8899       fi
8900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901       hardcode_libdir_separator=:
8902       ;;
8903
8904     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8905       if test "$GCC" = yes; then
8906         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8907         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'
8908         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909       else
8910         allow_undefined_flag=' -expect_unresolved \*'
8911         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'
8912         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8913         $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'
8914
8915         # Both c and cxx compiler support -rpath directly
8916         hardcode_libdir_flag_spec='-rpath $libdir'
8917       fi
8918       hardcode_libdir_separator=:
8919       ;;
8920
8921     solaris*)
8922       no_undefined_flag=' -z text'
8923       if test "$GCC" = yes; then
8924         wlarc='${wl}'
8925         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8927           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8928       else
8929         wlarc=''
8930         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8932         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8933       fi
8934       hardcode_libdir_flag_spec='-R$libdir'
8935       hardcode_shlibpath_var=no
8936       case $host_os in
8937       solaris2.[0-5] | solaris2.[0-5].*) ;;
8938       *)
8939         # The compiler driver will combine and reorder linker options,
8940         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8941         # but is careful enough not to reorder.
8942         # Supported since Solaris 2.6 (maybe 2.5.1?)
8943         if test "$GCC" = yes; then
8944           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8945         else
8946           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8947         fi
8948         ;;
8949       esac
8950       link_all_deplibs=yes
8951       ;;
8952
8953     sunos4*)
8954       if test "x$host_vendor" = xsequent; then
8955         # Use $CC to link under sequent, because it throws in some extra .o
8956         # files that make .init and .fini sections work.
8957         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8958       else
8959         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8960       fi
8961       hardcode_libdir_flag_spec='-L$libdir'
8962       hardcode_direct=yes
8963       hardcode_minus_L=yes
8964       hardcode_shlibpath_var=no
8965       ;;
8966
8967     sysv4)
8968       case $host_vendor in
8969         sni)
8970           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971           hardcode_direct=yes # is this really true???
8972         ;;
8973         siemens)
8974           ## LD is ld it makes a PLAMLIB
8975           ## CC just makes a GrossModule.
8976           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8977           reload_cmds='$CC -r -o $output$reload_objs'
8978           hardcode_direct=no
8979         ;;
8980         motorola)
8981           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8983         ;;
8984       esac
8985       runpath_var='LD_RUN_PATH'
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     sysv4.3*)
8990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991       hardcode_shlibpath_var=no
8992       export_dynamic_flag_spec='-Bexport'
8993       ;;
8994
8995     sysv4*MP*)
8996       if test -d /usr/nec; then
8997         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998         hardcode_shlibpath_var=no
8999         runpath_var=LD_RUN_PATH
9000         hardcode_runpath_var=yes
9001         ld_shlibs=yes
9002       fi
9003       ;;
9004
9005     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9006       no_undefined_flag='${wl}-z,text'
9007       archive_cmds_need_lc=no
9008       hardcode_shlibpath_var=no
9009       runpath_var='LD_RUN_PATH'
9010
9011       if test "$GCC" = yes; then
9012         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014       else
9015         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017       fi
9018       ;;
9019
9020     sysv5* | sco3.2v5* | sco5v6*)
9021       # Note: We can NOT use -z defs as we might desire, because we do not
9022       # link with -lc, and that would cause any symbols used from libc to
9023       # always be unresolved, which means just about no library would
9024       # ever link correctly.  If we're not using GNU ld we use -z text
9025       # though, which does catch some bad symbols but isn't as heavy-handed
9026       # as -z defs.
9027       no_undefined_flag='${wl}-z,text'
9028       allow_undefined_flag='${wl}-z,nodefs'
9029       archive_cmds_need_lc=no
9030       hardcode_shlibpath_var=no
9031       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9032       hardcode_libdir_separator=':'
9033       link_all_deplibs=yes
9034       export_dynamic_flag_spec='${wl}-Bexport'
9035       runpath_var='LD_RUN_PATH'
9036
9037       if test "$GCC" = yes; then
9038         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040       else
9041         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9042         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043       fi
9044       ;;
9045
9046     uts4*)
9047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       hardcode_shlibpath_var=no
9050       ;;
9051
9052     *)
9053       ld_shlibs=no
9054       ;;
9055     esac
9056   fi
9057
9058 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9059 $as_echo "$ld_shlibs" >&6; }
9060 test "$ld_shlibs" = no && can_build_shared=no
9061
9062 #
9063 # Do we need to explicitly link libc?
9064 #
9065 case "x$archive_cmds_need_lc" in
9066 x|xyes)
9067   # Assume -lc should be added
9068   archive_cmds_need_lc=yes
9069
9070   if test "$enable_shared" = yes && test "$GCC" = yes; then
9071     case $archive_cmds in
9072     *'~'*)
9073       # FIXME: we may have to deal with multi-command sequences.
9074       ;;
9075     '$CC '*)
9076       # Test whether the compiler implicitly links with -lc since on some
9077       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078       # to ld, don't add -lc before -lgcc.
9079       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9081       $rm conftest*
9082       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9083
9084       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085   (eval $ac_compile) 2>&5
9086   ac_status=$?
9087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } 2>conftest.err; then
9089         soname=conftest
9090         lib=conftest
9091         libobjs=conftest.$ac_objext
9092         deplibs=
9093         wl=$lt_prog_compiler_wl
9094         pic_flag=$lt_prog_compiler_pic
9095         compiler_flags=-v
9096         linker_flags=-v
9097         verstring=
9098         output_objdir=.
9099         libname=conftest
9100         lt_save_allow_undefined_flag=$allow_undefined_flag
9101         allow_undefined_flag=
9102         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9103   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9104   ac_status=$?
9105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }
9107         then
9108           archive_cmds_need_lc=no
9109         else
9110           archive_cmds_need_lc=yes
9111         fi
9112         allow_undefined_flag=$lt_save_allow_undefined_flag
9113       else
9114         cat conftest.err 1>&5
9115       fi
9116       $rm conftest*
9117       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9118 $as_echo "$archive_cmds_need_lc" >&6; }
9119       ;;
9120     esac
9121   fi
9122   ;;
9123 esac
9124
9125 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9126 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9127 library_names_spec=
9128 libname_spec='lib$name'
9129 soname_spec=
9130 shrext_cmds=".so"
9131 postinstall_cmds=
9132 postuninstall_cmds=
9133 finish_cmds=
9134 finish_eval=
9135 shlibpath_var=
9136 shlibpath_overrides_runpath=unknown
9137 version_type=none
9138 dynamic_linker="$host_os ld.so"
9139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9140
9141 if test "$GCC" = yes; then
9142   case $host_os in
9143     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9144     *) lt_awk_arg="/^libraries:/" ;;
9145   esac
9146   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9147   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9148     # if the path contains ";" then we assume it to be the separator
9149     # otherwise default to the standard path separator (i.e. ":") - it is
9150     # assumed that no part of a normal pathname contains ";" but that should
9151     # okay in the real world where ";" in dirpaths is itself problematic.
9152     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9153   else
9154     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9155   fi
9156   # Ok, now we have the path, separated by spaces, we can step through it
9157   # and add multilib dir if necessary.
9158   lt_tmp_lt_search_path_spec=
9159   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9160   for lt_sys_path in $lt_search_path_spec; do
9161     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9162       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9163     else
9164       test -d "$lt_sys_path" && \
9165         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9166     fi
9167   done
9168   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9169 BEGIN {RS=" "; FS="/|\n";} {
9170   lt_foo="";
9171   lt_count=0;
9172   for (lt_i = NF; lt_i > 0; lt_i--) {
9173     if ($lt_i != "" && $lt_i != ".") {
9174       if ($lt_i == "..") {
9175         lt_count++;
9176       } else {
9177         if (lt_count == 0) {
9178           lt_foo="/" $lt_i lt_foo;
9179         } else {
9180           lt_count--;
9181         }
9182       }
9183     }
9184   }
9185   if (lt_foo != "") { lt_freq[lt_foo]++; }
9186   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9187 }'`
9188   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9189 else
9190   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9191 fi
9192 need_lib_prefix=unknown
9193 hardcode_into_libs=no
9194
9195 # when you set need_version to no, make sure it does not cause -set_version
9196 # flags to be left without arguments
9197 need_version=unknown
9198
9199 case $host_os in
9200 aix3*)
9201   version_type=linux
9202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9203   shlibpath_var=LIBPATH
9204
9205   # AIX 3 has no versioning support, so we append a major version to the name.
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   ;;
9208
9209 aix[4-9]*)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   hardcode_into_libs=yes
9214   if test "$host_cpu" = ia64; then
9215     # AIX 5 supports IA64
9216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9217     shlibpath_var=LD_LIBRARY_PATH
9218   else
9219     # With GCC up to 2.95.x, collect2 would create an import file
9220     # for dependence libraries.  The import file would start with
9221     # the line `#! .'.  This would cause the generated library to
9222     # depend on `.', always an invalid library.  This was fixed in
9223     # development snapshots of GCC prior to 3.0.
9224     case $host_os in
9225       aix4 | aix4.[01] | aix4.[01].*)
9226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9227            echo ' yes '
9228            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9229         :
9230       else
9231         can_build_shared=no
9232       fi
9233       ;;
9234     esac
9235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9236     # soname into executable. Probably we can add versioning support to
9237     # collect2, so additional links can be useful in future.
9238     if test "$aix_use_runtimelinking" = yes; then
9239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9240       # instead of lib<name>.a to let people know that these are not
9241       # typical AIX shared libraries.
9242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243     else
9244       # We preserve .a as extension for shared libraries through AIX4.2
9245       # and later when we are not doing run time linking.
9246       library_names_spec='${libname}${release}.a $libname.a'
9247       soname_spec='${libname}${release}${shared_ext}$major'
9248     fi
9249     shlibpath_var=LIBPATH
9250   fi
9251   ;;
9252
9253 amigaos*)
9254   library_names_spec='$libname.ixlibrary $libname.a'
9255   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9256   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'
9257   ;;
9258
9259 beos*)
9260   library_names_spec='${libname}${shared_ext}'
9261   dynamic_linker="$host_os ld.so"
9262   shlibpath_var=LIBRARY_PATH
9263   ;;
9264
9265 bsdi[45]*)
9266   version_type=linux
9267   need_version=no
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9274   # the default ld.so.conf also contains /usr/contrib/lib and
9275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276   # libtool to hard-code these into programs
9277   ;;
9278
9279 cygwin* | mingw* | pw32*)
9280   version_type=windows
9281   shrext_cmds=".dll"
9282   need_version=no
9283   need_lib_prefix=no
9284
9285   case $GCC,$host_os in
9286   yes,cygwin* | yes,mingw* | yes,pw32*)
9287     library_names_spec='$libname.dll.a'
9288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289     postinstall_cmds='base_file=`basename \${file}`~
9290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9291       dldir=$destdir/`dirname \$dlpath`~
9292       test -d \$dldir || mkdir -p \$dldir~
9293       $install_prog $dir/$dlname \$dldir/$dlname~
9294       chmod a+x \$dldir/$dlname'
9295     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9296       dlpath=$dir/\$dldll~
9297        $rm \$dlpath'
9298     shlibpath_overrides_runpath=yes
9299
9300     case $host_os in
9301     cygwin*)
9302       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9303       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9305       ;;
9306     mingw*)
9307       # MinGW DLLs use traditional 'lib' prefix
9308       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9309       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9310       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9311         # It is most probably a Windows format PATH printed by
9312         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9313         # path with ; separators, and with drive letters. We can handle the
9314         # drive letters (cygwin fileutils understands them), so leave them,
9315         # especially as we might pass files found there to a mingw objdump,
9316         # which wouldn't understand a cygwinified path. Ahh.
9317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9318       else
9319         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9320       fi
9321       ;;
9322     pw32*)
9323       # pw32 DLLs use 'pw' prefix rather than 'lib'
9324       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9325       ;;
9326     esac
9327     ;;
9328
9329   *)
9330     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9331     ;;
9332   esac
9333   dynamic_linker='Win32 ld.exe'
9334   # FIXME: first we should search . and the directory the executable is in
9335   shlibpath_var=PATH
9336   ;;
9337
9338 darwin* | rhapsody*)
9339   dynamic_linker="$host_os dyld"
9340   version_type=darwin
9341   need_lib_prefix=no
9342   need_version=no
9343   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9344   soname_spec='${libname}${release}${major}$shared_ext'
9345   shlibpath_overrides_runpath=yes
9346   shlibpath_var=DYLD_LIBRARY_PATH
9347   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9348
9349   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9350   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9351   ;;
9352
9353 dgux*)
9354   version_type=linux
9355   need_lib_prefix=no
9356   need_version=no
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9358   soname_spec='${libname}${release}${shared_ext}$major'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   ;;
9361
9362 freebsd1*)
9363   dynamic_linker=no
9364   ;;
9365
9366 freebsd* | dragonfly*)
9367   # DragonFly does not have aout.  When/if they implement a new
9368   # versioning mechanism, adjust this.
9369   if test -x /usr/bin/objformat; then
9370     objformat=`/usr/bin/objformat`
9371   else
9372     case $host_os in
9373     freebsd[123]*) objformat=aout ;;
9374     *) objformat=elf ;;
9375     esac
9376   fi
9377   version_type=freebsd-$objformat
9378   case $version_type in
9379     freebsd-elf*)
9380       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9381       need_version=no
9382       need_lib_prefix=no
9383       ;;
9384     freebsd-*)
9385       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9386       need_version=yes
9387       ;;
9388   esac
9389   shlibpath_var=LD_LIBRARY_PATH
9390   case $host_os in
9391   freebsd2*)
9392     shlibpath_overrides_runpath=yes
9393     ;;
9394   freebsd3.[01]* | freebsdelf3.[01]*)
9395     shlibpath_overrides_runpath=yes
9396     hardcode_into_libs=yes
9397     ;;
9398   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9399   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9400     shlibpath_overrides_runpath=no
9401     hardcode_into_libs=yes
9402     ;;
9403   *) # from 4.6 on, and DragonFly
9404     shlibpath_overrides_runpath=yes
9405     hardcode_into_libs=yes
9406     ;;
9407   esac
9408   ;;
9409
9410 gnu*)
9411   version_type=linux
9412   need_lib_prefix=no
9413   need_version=no
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   shlibpath_var=LD_LIBRARY_PATH
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 hpux9* | hpux10* | hpux11*)
9421   # Give a soname corresponding to the major version so that dld.sl refuses to
9422   # link against other versions.
9423   version_type=sunos
9424   need_lib_prefix=no
9425   need_version=no
9426   case $host_cpu in
9427   ia64*)
9428     shrext_cmds='.so'
9429     hardcode_into_libs=yes
9430     dynamic_linker="$host_os dld.so"
9431     shlibpath_var=LD_LIBRARY_PATH
9432     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434     soname_spec='${libname}${release}${shared_ext}$major'
9435     if test "X$HPUX_IA64_MODE" = X32; then
9436       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9437     else
9438       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9439     fi
9440     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9441     ;;
9442    hppa*64*)
9443      shrext_cmds='.sl'
9444      hardcode_into_libs=yes
9445      dynamic_linker="$host_os dld.sl"
9446      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9447      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449      soname_spec='${libname}${release}${shared_ext}$major'
9450      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9451      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452      ;;
9453    *)
9454     shrext_cmds='.sl'
9455     dynamic_linker="$host_os dld.sl"
9456     shlibpath_var=SHLIB_PATH
9457     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459     soname_spec='${libname}${release}${shared_ext}$major'
9460     ;;
9461   esac
9462   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9463   postinstall_cmds='chmod 555 $lib'
9464   ;;
9465
9466 interix[3-9]*)
9467   version_type=linux
9468   need_lib_prefix=no
9469   need_version=no
9470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9471   soname_spec='${libname}${release}${shared_ext}$major'
9472   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   shlibpath_overrides_runpath=no
9475   hardcode_into_libs=yes
9476   ;;
9477
9478 irix5* | irix6* | nonstopux*)
9479   case $host_os in
9480     nonstopux*) version_type=nonstopux ;;
9481     *)
9482         if test "$lt_cv_prog_gnu_ld" = yes; then
9483                 version_type=linux
9484         else
9485                 version_type=irix
9486         fi ;;
9487   esac
9488   need_lib_prefix=no
9489   need_version=no
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9492   case $host_os in
9493   irix5* | nonstopux*)
9494     libsuff= shlibsuff=
9495     ;;
9496   *)
9497     case $LD in # libtool.m4 will add one of these switches to LD
9498     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9499       libsuff= shlibsuff= libmagic=32-bit;;
9500     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9501       libsuff=32 shlibsuff=N32 libmagic=N32;;
9502     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9503       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9504     *) libsuff= shlibsuff= libmagic=never-match;;
9505     esac
9506     ;;
9507   esac
9508   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9509   shlibpath_overrides_runpath=no
9510   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9511   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9512   hardcode_into_libs=yes
9513   ;;
9514
9515 # No shared lib support for Linux oldld, aout, or coff.
9516 linux*oldld* | linux*aout* | linux*coff*)
9517   dynamic_linker=no
9518   ;;
9519
9520 # This must be Linux ELF.
9521 linux* | k*bsd*-gnu)
9522   version_type=linux
9523   need_lib_prefix=no
9524   need_version=no
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=no
9530   # This implies no fast_install, which is unacceptable.
9531   # Some rework will be needed to allow for fast_install
9532   # before this can be enabled.
9533   hardcode_into_libs=yes
9534
9535   # Append ld.so.conf contents to the search path
9536   if test -f /etc/ld.so.conf; then
9537     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' ' '`
9538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9539   fi
9540
9541   # We used to test for /lib/ld.so.1 and disable shared libraries on
9542   # powerpc, because MkLinux only supported shared libraries with the
9543   # GNU dynamic linker.  Since this was broken with cross compilers,
9544   # most powerpc-linux boxes support dynamic linking these days and
9545   # people can always --disable-shared, the test was removed, and we
9546   # assume the GNU/Linux dynamic linker is in use.
9547   dynamic_linker='GNU/Linux ld.so'
9548   ;;
9549
9550 netbsdelf*-gnu)
9551   version_type=linux
9552   need_lib_prefix=no
9553   need_version=no
9554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555   soname_spec='${libname}${release}${shared_ext}$major'
9556   shlibpath_var=LD_LIBRARY_PATH
9557   shlibpath_overrides_runpath=no
9558   hardcode_into_libs=yes
9559   dynamic_linker='NetBSD ld.elf_so'
9560   ;;
9561
9562 netbsd*)
9563   version_type=sunos
9564   need_lib_prefix=no
9565   need_version=no
9566   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569     dynamic_linker='NetBSD (a.out) ld.so'
9570   else
9571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572     soname_spec='${libname}${release}${shared_ext}$major'
9573     dynamic_linker='NetBSD ld.elf_so'
9574   fi
9575   shlibpath_var=LD_LIBRARY_PATH
9576   shlibpath_overrides_runpath=yes
9577   hardcode_into_libs=yes
9578   ;;
9579
9580 newsos6)
9581   version_type=linux
9582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583   shlibpath_var=LD_LIBRARY_PATH
9584   shlibpath_overrides_runpath=yes
9585   ;;
9586
9587 nto-qnx*)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   shlibpath_var=LD_LIBRARY_PATH
9594   shlibpath_overrides_runpath=yes
9595   ;;
9596
9597 openbsd*)
9598   version_type=sunos
9599   sys_lib_dlsearch_path_spec="/usr/lib"
9600   need_lib_prefix=no
9601   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9602   case $host_os in
9603     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9604     *)                         need_version=no  ;;
9605   esac
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608   shlibpath_var=LD_LIBRARY_PATH
9609   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610     case $host_os in
9611       openbsd2.[89] | openbsd2.[89].*)
9612         shlibpath_overrides_runpath=no
9613         ;;
9614       *)
9615         shlibpath_overrides_runpath=yes
9616         ;;
9617       esac
9618   else
9619     shlibpath_overrides_runpath=yes
9620   fi
9621   ;;
9622
9623 os2*)
9624   libname_spec='$name'
9625   shrext_cmds=".dll"
9626   need_lib_prefix=no
9627   library_names_spec='$libname${shared_ext} $libname.a'
9628   dynamic_linker='OS/2 ld.exe'
9629   shlibpath_var=LIBPATH
9630   ;;
9631
9632 osf3* | osf4* | osf5*)
9633   version_type=osf
9634   need_lib_prefix=no
9635   need_version=no
9636   soname_spec='${libname}${release}${shared_ext}$major'
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638   shlibpath_var=LD_LIBRARY_PATH
9639   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9640   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9641   ;;
9642
9643 rdos*)
9644   dynamic_linker=no
9645   ;;
9646
9647 solaris*)
9648   version_type=linux
9649   need_lib_prefix=no
9650   need_version=no
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652   soname_spec='${libname}${release}${shared_ext}$major'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   shlibpath_overrides_runpath=yes
9655   hardcode_into_libs=yes
9656   # ldd complains unless libraries are executable
9657   postinstall_cmds='chmod +x $lib'
9658   ;;
9659
9660 sunos4*)
9661   version_type=sunos
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9664   shlibpath_var=LD_LIBRARY_PATH
9665   shlibpath_overrides_runpath=yes
9666   if test "$with_gnu_ld" = yes; then
9667     need_lib_prefix=no
9668   fi
9669   need_version=yes
9670   ;;
9671
9672 sysv4 | sysv4.3*)
9673   version_type=linux
9674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675   soname_spec='${libname}${release}${shared_ext}$major'
9676   shlibpath_var=LD_LIBRARY_PATH
9677   case $host_vendor in
9678     sni)
9679       shlibpath_overrides_runpath=no
9680       need_lib_prefix=no
9681       export_dynamic_flag_spec='${wl}-Blargedynsym'
9682       runpath_var=LD_RUN_PATH
9683       ;;
9684     siemens)
9685       need_lib_prefix=no
9686       ;;
9687     motorola)
9688       need_lib_prefix=no
9689       need_version=no
9690       shlibpath_overrides_runpath=no
9691       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9692       ;;
9693   esac
9694   ;;
9695
9696 sysv4*MP*)
9697   if test -d /usr/nec ;then
9698     version_type=linux
9699     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9700     soname_spec='$libname${shared_ext}.$major'
9701     shlibpath_var=LD_LIBRARY_PATH
9702   fi
9703   ;;
9704
9705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9706   version_type=freebsd-elf
9707   need_lib_prefix=no
9708   need_version=no
9709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9710   soname_spec='${libname}${release}${shared_ext}$major'
9711   shlibpath_var=LD_LIBRARY_PATH
9712   hardcode_into_libs=yes
9713   if test "$with_gnu_ld" = yes; then
9714     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9715     shlibpath_overrides_runpath=no
9716   else
9717     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9718     shlibpath_overrides_runpath=yes
9719     case $host_os in
9720       sco3.2v5*)
9721         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9722         ;;
9723     esac
9724   fi
9725   sys_lib_dlsearch_path_spec='/usr/lib'
9726   ;;
9727
9728 uts4*)
9729   version_type=linux
9730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731   soname_spec='${libname}${release}${shared_ext}$major'
9732   shlibpath_var=LD_LIBRARY_PATH
9733   ;;
9734
9735 *)
9736   dynamic_linker=no
9737   ;;
9738 esac
9739 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9740 $as_echo "$dynamic_linker" >&6; }
9741 test "$dynamic_linker" = no && can_build_shared=no
9742
9743 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9744   $as_echo_n "(cached) " >&6
9745 else
9746   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9747 fi
9748
9749 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9751   $as_echo_n "(cached) " >&6
9752 else
9753   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9754 fi
9755
9756 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9757
9758 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9759 if test "$GCC" = yes; then
9760   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9761 fi
9762
9763 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9765 hardcode_action=
9766 if test -n "$hardcode_libdir_flag_spec" || \
9767    test -n "$runpath_var" || \
9768    test "X$hardcode_automatic" = "Xyes" ; then
9769
9770   # We can hardcode non-existant directories.
9771   if test "$hardcode_direct" != no &&
9772      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9773      # have to relink, otherwise we might link with an installed library
9774      # when we should be linking with a yet-to-be-installed one
9775      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9776      test "$hardcode_minus_L" != no; then
9777     # Linking always hardcodes the temporary library directory.
9778     hardcode_action=relink
9779   else
9780     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9781     hardcode_action=immediate
9782   fi
9783 else
9784   # We cannot hardcode anything, or else we can only hardcode existing
9785   # directories.
9786   hardcode_action=unsupported
9787 fi
9788 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9789 $as_echo "$hardcode_action" >&6; }
9790
9791 if test "$hardcode_action" = relink; then
9792   # Fast installation is not supported
9793   enable_fast_install=no
9794 elif test "$shlibpath_overrides_runpath" = yes ||
9795      test "$enable_shared" = no; then
9796   # Fast installation is not necessary
9797   enable_fast_install=needless
9798 fi
9799
9800 striplib=
9801 old_striplib=
9802 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9803 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9804 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9805   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9806   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9807   { $as_echo "$as_me:$LINENO: result: yes" >&5
9808 $as_echo "yes" >&6; }
9809 else
9810 # FIXME - insert some real tests, host_os isn't really good enough
9811   case $host_os in
9812    darwin*)
9813        if test -n "$STRIP" ; then
9814          striplib="$STRIP -x"
9815          old_striplib="$STRIP -S"
9816          { $as_echo "$as_me:$LINENO: result: yes" >&5
9817 $as_echo "yes" >&6; }
9818        else
9819   { $as_echo "$as_me:$LINENO: result: no" >&5
9820 $as_echo "no" >&6; }
9821 fi
9822        ;;
9823    *)
9824   { $as_echo "$as_me:$LINENO: result: no" >&5
9825 $as_echo "no" >&6; }
9826     ;;
9827   esac
9828 fi
9829
9830 if test "x$enable_dlopen" != xyes; then
9831   enable_dlopen=unknown
9832   enable_dlopen_self=unknown
9833   enable_dlopen_self_static=unknown
9834 else
9835   lt_cv_dlopen=no
9836   lt_cv_dlopen_libs=
9837
9838   case $host_os in
9839   beos*)
9840     lt_cv_dlopen="load_add_on"
9841     lt_cv_dlopen_libs=
9842     lt_cv_dlopen_self=yes
9843     ;;
9844
9845   mingw* | pw32*)
9846     lt_cv_dlopen="LoadLibrary"
9847     lt_cv_dlopen_libs=
9848    ;;
9849
9850   cygwin*)
9851     lt_cv_dlopen="dlopen"
9852     lt_cv_dlopen_libs=
9853    ;;
9854
9855   darwin*)
9856   # if libdl is installed we need to link against it
9857     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860   $as_echo_n "(cached) " >&6
9861 else
9862   ac_check_lib_save_LIBS=$LIBS
9863 LIBS="-ldl  $LIBS"
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870
9871 /* Override any GCC internal prototype to avoid an error.
9872    Use char because int might match the return type of a GCC
9873    builtin and then its argument prototype would still apply.  */
9874 #ifdef __cplusplus
9875 extern "C"
9876 #endif
9877 char dlopen ();
9878 int
9879 main ()
9880 {
9881 return dlopen ();
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9888 case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9893 $as_echo "$ac_try_echo") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } && {
9901          test -z "$ac_c_werror_flag" ||
9902          test ! -s conftest.err
9903        } && test -s conftest$ac_exeext && {
9904          test "$cross_compiling" = yes ||
9905          $as_test_x conftest$ac_exeext
9906        }; then
9907   ac_cv_lib_dl_dlopen=yes
9908 else
9909   $as_echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912         ac_cv_lib_dl_dlopen=no
9913 fi
9914
9915 rm -rf conftest.dSYM
9916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9917       conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9919 fi
9920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9921 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9922 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9923   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9924 else
9925
9926     lt_cv_dlopen="dyld"
9927     lt_cv_dlopen_libs=
9928     lt_cv_dlopen_self=yes
9929
9930 fi
9931
9932    ;;
9933
9934   *)
9935     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9936 $as_echo_n "checking for shl_load... " >&6; }
9937 if test "${ac_cv_func_shl_load+set}" = set; then
9938   $as_echo_n "(cached) " >&6
9939 else
9940   cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9948 #define shl_load innocuous_shl_load
9949
9950 /* System header to define __stub macros and hopefully few prototypes,
9951     which can conflict with char shl_load (); below.
9952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9953     <limits.h> exists even on freestanding compilers.  */
9954
9955 #ifdef __STDC__
9956 # include <limits.h>
9957 #else
9958 # include <assert.h>
9959 #endif
9960
9961 #undef shl_load
9962
9963 /* Override any GCC internal prototype to avoid an error.
9964    Use char because int might match the return type of a GCC
9965    builtin and then its argument prototype would still apply.  */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 char shl_load ();
9970 /* The GNU C library defines this for functions which it implements
9971     to always fail with ENOSYS.  Some functions are actually named
9972     something starting with __ and the normal name is an alias.  */
9973 #if defined __stub_shl_load || defined __stub___shl_load
9974 choke me
9975 #endif
9976
9977 int
9978 main ()
9979 {
9980 return shl_load ();
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9987 case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9992 $as_echo "$ac_try_echo") >&5
9993   (eval "$ac_link") 2>conftest.er1
9994   ac_status=$?
9995   grep -v '^ *+' conftest.er1 >conftest.err
9996   rm -f conftest.er1
9997   cat conftest.err >&5
9998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); } && {
10000          test -z "$ac_c_werror_flag" ||
10001          test ! -s conftest.err
10002        } && test -s conftest$ac_exeext && {
10003          test "$cross_compiling" = yes ||
10004          $as_test_x conftest$ac_exeext
10005        }; then
10006   ac_cv_func_shl_load=yes
10007 else
10008   $as_echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011         ac_cv_func_shl_load=no
10012 fi
10013
10014 rm -rf conftest.dSYM
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016       conftest$ac_exeext conftest.$ac_ext
10017 fi
10018 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10019 $as_echo "$ac_cv_func_shl_load" >&6; }
10020 if test "x$ac_cv_func_shl_load" = x""yes; then
10021   lt_cv_dlopen="shl_load"
10022 else
10023   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10024 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10025 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10026   $as_echo_n "(cached) " >&6
10027 else
10028   ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-ldld  $LIBS"
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036
10037 /* Override any GCC internal prototype to avoid an error.
10038    Use char because int might match the return type of a GCC
10039    builtin and then its argument prototype would still apply.  */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 char shl_load ();
10044 int
10045 main ()
10046 {
10047 return shl_load ();
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10059 $as_echo "$ac_try_echo") >&5
10060   (eval "$ac_link") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } && {
10067          test -z "$ac_c_werror_flag" ||
10068          test ! -s conftest.err
10069        } && test -s conftest$ac_exeext && {
10070          test "$cross_compiling" = yes ||
10071          $as_test_x conftest$ac_exeext
10072        }; then
10073   ac_cv_lib_dld_shl_load=yes
10074 else
10075   $as_echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_lib_dld_shl_load=no
10079 fi
10080
10081 rm -rf conftest.dSYM
10082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10083       conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10088 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10089   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10090 else
10091   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10092 $as_echo_n "checking for dlopen... " >&6; }
10093 if test "${ac_cv_func_dlopen+set}" = set; then
10094   $as_echo_n "(cached) " >&6
10095 else
10096   cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h.  */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h.  */
10102 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10104 #define dlopen innocuous_dlopen
10105
10106 /* System header to define __stub macros and hopefully few prototypes,
10107     which can conflict with char dlopen (); below.
10108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10109     <limits.h> exists even on freestanding compilers.  */
10110
10111 #ifdef __STDC__
10112 # include <limits.h>
10113 #else
10114 # include <assert.h>
10115 #endif
10116
10117 #undef dlopen
10118
10119 /* Override any GCC internal prototype to avoid an error.
10120    Use char because int might match the return type of a GCC
10121    builtin and then its argument prototype would still apply.  */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 char dlopen ();
10126 /* The GNU C library defines this for functions which it implements
10127     to always fail with ENOSYS.  Some functions are actually named
10128     something starting with __ and the normal name is an alias.  */
10129 #if defined __stub_dlopen || defined __stub___dlopen
10130 choke me
10131 #endif
10132
10133 int
10134 main ()
10135 {
10136 return dlopen ();
10137   ;
10138   return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145   *) ac_try_echo=$ac_try;;
10146 esac
10147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10148 $as_echo "$ac_try_echo") >&5
10149   (eval "$ac_link") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } && {
10156          test -z "$ac_c_werror_flag" ||
10157          test ! -s conftest.err
10158        } && test -s conftest$ac_exeext && {
10159          test "$cross_compiling" = yes ||
10160          $as_test_x conftest$ac_exeext
10161        }; then
10162   ac_cv_func_dlopen=yes
10163 else
10164   $as_echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167         ac_cv_func_dlopen=no
10168 fi
10169
10170 rm -rf conftest.dSYM
10171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10172       conftest$ac_exeext conftest.$ac_ext
10173 fi
10174 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10175 $as_echo "$ac_cv_func_dlopen" >&6; }
10176 if test "x$ac_cv_func_dlopen" = x""yes; then
10177   lt_cv_dlopen="dlopen"
10178 else
10179   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10182   $as_echo_n "(cached) " >&6
10183 else
10184   ac_check_lib_save_LIBS=$LIBS
10185 LIBS="-ldl  $LIBS"
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192
10193 /* Override any GCC internal prototype to avoid an error.
10194    Use char because int might match the return type of a GCC
10195    builtin and then its argument prototype would still apply.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char dlopen ();
10200 int
10201 main ()
10202 {
10203 return dlopen ();
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216   (eval "$ac_link") 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } && {
10223          test -z "$ac_c_werror_flag" ||
10224          test ! -s conftest.err
10225        } && test -s conftest$ac_exeext && {
10226          test "$cross_compiling" = yes ||
10227          $as_test_x conftest$ac_exeext
10228        }; then
10229   ac_cv_lib_dl_dlopen=yes
10230 else
10231   $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234         ac_cv_lib_dl_dlopen=no
10235 fi
10236
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239       conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10241 fi
10242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10244 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10246 else
10247   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10248 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10249 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10250   $as_echo_n "(cached) " >&6
10251 else
10252   ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-lsvld  $LIBS"
10254 cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h.  */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h.  */
10260
10261 /* Override any GCC internal prototype to avoid an error.
10262    Use char because int might match the return type of a GCC
10263    builtin and then its argument prototype would still apply.  */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char dlopen ();
10268 int
10269 main ()
10270 {
10271 return dlopen ();
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10283 $as_echo "$ac_try_echo") >&5
10284   (eval "$ac_link") 2>conftest.er1
10285   ac_status=$?
10286   grep -v '^ *+' conftest.er1 >conftest.err
10287   rm -f conftest.er1
10288   cat conftest.err >&5
10289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } && {
10291          test -z "$ac_c_werror_flag" ||
10292          test ! -s conftest.err
10293        } && test -s conftest$ac_exeext && {
10294          test "$cross_compiling" = yes ||
10295          $as_test_x conftest$ac_exeext
10296        }; then
10297   ac_cv_lib_svld_dlopen=yes
10298 else
10299   $as_echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302         ac_cv_lib_svld_dlopen=no
10303 fi
10304
10305 rm -rf conftest.dSYM
10306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307       conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10309 fi
10310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10312 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10314 else
10315   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10318   $as_echo_n "(cached) " >&6
10319 else
10320   ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-ldld  $LIBS"
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328
10329 /* Override any GCC internal prototype to avoid an error.
10330    Use char because int might match the return type of a GCC
10331    builtin and then its argument prototype would still apply.  */
10332 #ifdef __cplusplus
10333 extern "C"
10334 #endif
10335 char dld_link ();
10336 int
10337 main ()
10338 {
10339 return dld_link ();
10340   ;
10341   return 0;
10342 }
10343 _ACEOF
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348   *) ac_try_echo=$ac_try;;
10349 esac
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352   (eval "$ac_link") 2>conftest.er1
10353   ac_status=$?
10354   grep -v '^ *+' conftest.er1 >conftest.err
10355   rm -f conftest.er1
10356   cat conftest.err >&5
10357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } && {
10359          test -z "$ac_c_werror_flag" ||
10360          test ! -s conftest.err
10361        } && test -s conftest$ac_exeext && {
10362          test "$cross_compiling" = yes ||
10363          $as_test_x conftest$ac_exeext
10364        }; then
10365   ac_cv_lib_dld_dld_link=yes
10366 else
10367   $as_echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370         ac_cv_lib_dld_dld_link=no
10371 fi
10372
10373 rm -rf conftest.dSYM
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375       conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10377 fi
10378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10379 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10380 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10381   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10382 fi
10383
10384
10385 fi
10386
10387
10388 fi
10389
10390
10391 fi
10392
10393
10394 fi
10395
10396
10397 fi
10398
10399     ;;
10400   esac
10401
10402   if test "x$lt_cv_dlopen" != xno; then
10403     enable_dlopen=yes
10404   else
10405     enable_dlopen=no
10406   fi
10407
10408   case $lt_cv_dlopen in
10409   dlopen)
10410     save_CPPFLAGS="$CPPFLAGS"
10411     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10412
10413     save_LDFLAGS="$LDFLAGS"
10414     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10415
10416     save_LIBS="$LIBS"
10417     LIBS="$lt_cv_dlopen_libs $LIBS"
10418
10419     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10420 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10421 if test "${lt_cv_dlopen_self+set}" = set; then
10422   $as_echo_n "(cached) " >&6
10423 else
10424           if test "$cross_compiling" = yes; then :
10425   lt_cv_dlopen_self=cross
10426 else
10427   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10428   lt_status=$lt_dlunknown
10429   cat > conftest.$ac_ext <<EOF
10430 #line 10430 "configure"
10431 #include "confdefs.h"
10432
10433 #if HAVE_DLFCN_H
10434 #include <dlfcn.h>
10435 #endif
10436
10437 #include <stdio.h>
10438
10439 #ifdef RTLD_GLOBAL
10440 #  define LT_DLGLOBAL           RTLD_GLOBAL
10441 #else
10442 #  ifdef DL_GLOBAL
10443 #    define LT_DLGLOBAL         DL_GLOBAL
10444 #  else
10445 #    define LT_DLGLOBAL         0
10446 #  endif
10447 #endif
10448
10449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10450    find out it does not work in some platform. */
10451 #ifndef LT_DLLAZY_OR_NOW
10452 #  ifdef RTLD_LAZY
10453 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10454 #  else
10455 #    ifdef DL_LAZY
10456 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10457 #    else
10458 #      ifdef RTLD_NOW
10459 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10460 #      else
10461 #        ifdef DL_NOW
10462 #          define LT_DLLAZY_OR_NOW      DL_NOW
10463 #        else
10464 #          define LT_DLLAZY_OR_NOW      0
10465 #        endif
10466 #      endif
10467 #    endif
10468 #  endif
10469 #endif
10470
10471 #ifdef __cplusplus
10472 extern "C" void exit (int);
10473 #endif
10474
10475 void fnord() { int i=42;}
10476 int main ()
10477 {
10478   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10479   int status = $lt_dlunknown;
10480
10481   if (self)
10482     {
10483       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10484       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10485       /* dlclose (self); */
10486     }
10487   else
10488     puts (dlerror ());
10489
10490     exit (status);
10491 }
10492 EOF
10493   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494   (eval $ac_link) 2>&5
10495   ac_status=$?
10496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10498     (./conftest; exit; ) >&5 2>/dev/null
10499     lt_status=$?
10500     case x$lt_status in
10501       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10502       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10503       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10504     esac
10505   else :
10506     # compilation failed
10507     lt_cv_dlopen_self=no
10508   fi
10509 fi
10510 rm -fr conftest*
10511
10512
10513 fi
10514 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10515 $as_echo "$lt_cv_dlopen_self" >&6; }
10516
10517     if test "x$lt_cv_dlopen_self" = xyes; then
10518       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10519       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10520 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10521 if test "${lt_cv_dlopen_self_static+set}" = set; then
10522   $as_echo_n "(cached) " >&6
10523 else
10524           if test "$cross_compiling" = yes; then :
10525   lt_cv_dlopen_self_static=cross
10526 else
10527   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10528   lt_status=$lt_dlunknown
10529   cat > conftest.$ac_ext <<EOF
10530 #line 10530 "configure"
10531 #include "confdefs.h"
10532
10533 #if HAVE_DLFCN_H
10534 #include <dlfcn.h>
10535 #endif
10536
10537 #include <stdio.h>
10538
10539 #ifdef RTLD_GLOBAL
10540 #  define LT_DLGLOBAL           RTLD_GLOBAL
10541 #else
10542 #  ifdef DL_GLOBAL
10543 #    define LT_DLGLOBAL         DL_GLOBAL
10544 #  else
10545 #    define LT_DLGLOBAL         0
10546 #  endif
10547 #endif
10548
10549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10550    find out it does not work in some platform. */
10551 #ifndef LT_DLLAZY_OR_NOW
10552 #  ifdef RTLD_LAZY
10553 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10554 #  else
10555 #    ifdef DL_LAZY
10556 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10557 #    else
10558 #      ifdef RTLD_NOW
10559 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10560 #      else
10561 #        ifdef DL_NOW
10562 #          define LT_DLLAZY_OR_NOW      DL_NOW
10563 #        else
10564 #          define LT_DLLAZY_OR_NOW      0
10565 #        endif
10566 #      endif
10567 #    endif
10568 #  endif
10569 #endif
10570
10571 #ifdef __cplusplus
10572 extern "C" void exit (int);
10573 #endif
10574
10575 void fnord() { int i=42;}
10576 int main ()
10577 {
10578   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10579   int status = $lt_dlunknown;
10580
10581   if (self)
10582     {
10583       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10584       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10585       /* dlclose (self); */
10586     }
10587   else
10588     puts (dlerror ());
10589
10590     exit (status);
10591 }
10592 EOF
10593   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594   (eval $ac_link) 2>&5
10595   ac_status=$?
10596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10598     (./conftest; exit; ) >&5 2>/dev/null
10599     lt_status=$?
10600     case x$lt_status in
10601       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10602       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10603       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10604     esac
10605   else :
10606     # compilation failed
10607     lt_cv_dlopen_self_static=no
10608   fi
10609 fi
10610 rm -fr conftest*
10611
10612
10613 fi
10614 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10615 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10616     fi
10617
10618     CPPFLAGS="$save_CPPFLAGS"
10619     LDFLAGS="$save_LDFLAGS"
10620     LIBS="$save_LIBS"
10621     ;;
10622   esac
10623
10624   case $lt_cv_dlopen_self in
10625   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10626   *) enable_dlopen_self=unknown ;;
10627   esac
10628
10629   case $lt_cv_dlopen_self_static in
10630   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10631   *) enable_dlopen_self_static=unknown ;;
10632   esac
10633 fi
10634
10635
10636 # Report which library types will actually be built
10637 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10638 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10639 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10640 $as_echo "$can_build_shared" >&6; }
10641
10642 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10643 $as_echo_n "checking whether to build shared libraries... " >&6; }
10644 test "$can_build_shared" = "no" && enable_shared=no
10645
10646 # On AIX, shared libraries and static libraries use the same namespace, and
10647 # are all built from PIC.
10648 case $host_os in
10649 aix3*)
10650   test "$enable_shared" = yes && enable_static=no
10651   if test -n "$RANLIB"; then
10652     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10653     postinstall_cmds='$RANLIB $lib'
10654   fi
10655   ;;
10656
10657 aix[4-9]*)
10658   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10659     test "$enable_shared" = yes && enable_static=no
10660   fi
10661     ;;
10662 esac
10663 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10664 $as_echo "$enable_shared" >&6; }
10665
10666 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10667 $as_echo_n "checking whether to build static libraries... " >&6; }
10668 # Make sure either enable_shared or enable_static is yes.
10669 test "$enable_shared" = yes || enable_static=yes
10670 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10671 $as_echo "$enable_static" >&6; }
10672
10673 # The else clause should only fire when bootstrapping the
10674 # libtool distribution, otherwise you forgot to ship ltmain.sh
10675 # with your package, and you will get complaints that there are
10676 # no rules to generate ltmain.sh.
10677 if test -f "$ltmain"; then
10678   # See if we are running on zsh, and set the options which allow our commands through
10679   # without removal of \ escapes.
10680   if test -n "${ZSH_VERSION+set}" ; then
10681     setopt NO_GLOB_SUBST
10682   fi
10683   # Now quote all the things that may contain metacharacters while being
10684   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10685   # variables and quote the copies for generation of the libtool script.
10686   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10687     SED SHELL STRIP \
10688     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10689     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10690     deplibs_check_method reload_flag reload_cmds need_locks \
10691     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10692     lt_cv_sys_global_symbol_to_c_name_address \
10693     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10694     old_postinstall_cmds old_postuninstall_cmds \
10695     compiler \
10696     CC \
10697     LD \
10698     lt_prog_compiler_wl \
10699     lt_prog_compiler_pic \
10700     lt_prog_compiler_static \
10701     lt_prog_compiler_no_builtin_flag \
10702     export_dynamic_flag_spec \
10703     thread_safe_flag_spec \
10704     whole_archive_flag_spec \
10705     enable_shared_with_static_runtimes \
10706     old_archive_cmds \
10707     old_archive_from_new_cmds \
10708     predep_objects \
10709     postdep_objects \
10710     predeps \
10711     postdeps \
10712     compiler_lib_search_path \
10713     compiler_lib_search_dirs \
10714     archive_cmds \
10715     archive_expsym_cmds \
10716     postinstall_cmds \
10717     postuninstall_cmds \
10718     old_archive_from_expsyms_cmds \
10719     allow_undefined_flag \
10720     no_undefined_flag \
10721     export_symbols_cmds \
10722     hardcode_libdir_flag_spec \
10723     hardcode_libdir_flag_spec_ld \
10724     hardcode_libdir_separator \
10725     hardcode_automatic \
10726     module_cmds \
10727     module_expsym_cmds \
10728     lt_cv_prog_compiler_c_o \
10729     fix_srcfile_path \
10730     exclude_expsyms \
10731     include_expsyms; do
10732
10733     case $var in
10734     old_archive_cmds | \
10735     old_archive_from_new_cmds | \
10736     archive_cmds | \
10737     archive_expsym_cmds | \
10738     module_cmds | \
10739     module_expsym_cmds | \
10740     old_archive_from_expsyms_cmds | \
10741     export_symbols_cmds | \
10742     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10743     postinstall_cmds | postuninstall_cmds | \
10744     old_postinstall_cmds | old_postuninstall_cmds | \
10745     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10746       # Double-quote double-evaled strings.
10747       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10748       ;;
10749     *)
10750       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10751       ;;
10752     esac
10753   done
10754
10755   case $lt_echo in
10756   *'\$0 --fallback-echo"')
10757     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10758     ;;
10759   esac
10760
10761 cfgfile="${ofile}T"
10762   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10763   $rm -f "$cfgfile"
10764   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10765 $as_echo "$as_me: creating $ofile" >&6;}
10766
10767   cat <<__EOF__ >> "$cfgfile"
10768 #! $SHELL
10769
10770 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10771 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10772 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10773 #
10774 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10775 # Free Software Foundation, Inc.
10776 #
10777 # This file is part of GNU Libtool:
10778 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10779 #
10780 # This program is free software; you can redistribute it and/or modify
10781 # it under the terms of the GNU General Public License as published by
10782 # the Free Software Foundation; either version 2 of the License, or
10783 # (at your option) any later version.
10784 #
10785 # This program is distributed in the hope that it will be useful, but
10786 # WITHOUT ANY WARRANTY; without even the implied warranty of
10787 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10788 # General Public License for more details.
10789 #
10790 # You should have received a copy of the GNU General Public License
10791 # along with this program; if not, write to the Free Software
10792 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10793 #
10794 # As a special exception to the GNU General Public License, if you
10795 # distribute this file as part of a program that contains a
10796 # configuration script generated by Autoconf, you may include it under
10797 # the same distribution terms that you use for the rest of that program.
10798
10799 # A sed program that does not truncate output.
10800 SED=$lt_SED
10801
10802 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10803 Xsed="$SED -e 1s/^X//"
10804
10805 # The HP-UX ksh and POSIX shell print the target directory to stdout
10806 # if CDPATH is set.
10807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10808
10809 # The names of the tagged configurations supported by this script.
10810 available_tags=
10811
10812 # ### BEGIN LIBTOOL CONFIG
10813
10814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10815
10816 # Shell to use when invoking shell scripts.
10817 SHELL=$lt_SHELL
10818
10819 # Whether or not to build shared libraries.
10820 build_libtool_libs=$enable_shared
10821
10822 # Whether or not to build static libraries.
10823 build_old_libs=$enable_static
10824
10825 # Whether or not to add -lc for building shared libraries.
10826 build_libtool_need_lc=$archive_cmds_need_lc
10827
10828 # Whether or not to disallow shared libs when runtime libs are static
10829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10830
10831 # Whether or not to optimize for fast installation.
10832 fast_install=$enable_fast_install
10833
10834 # The host system.
10835 host_alias=$host_alias
10836 host=$host
10837 host_os=$host_os
10838
10839 # The build system.
10840 build_alias=$build_alias
10841 build=$build
10842 build_os=$build_os
10843
10844 # An echo program that does not interpret backslashes.
10845 echo=$lt_echo
10846
10847 # The archiver.
10848 AR=$lt_AR
10849 AR_FLAGS=$lt_AR_FLAGS
10850
10851 # A C compiler.
10852 LTCC=$lt_LTCC
10853
10854 # LTCC compiler flags.
10855 LTCFLAGS=$lt_LTCFLAGS
10856
10857 # A language-specific compiler.
10858 CC=$lt_compiler
10859
10860 # Is the compiler the GNU C compiler?
10861 with_gcc=$GCC
10862
10863 # An ERE matcher.
10864 EGREP=$lt_EGREP
10865
10866 # The linker used to build libraries.
10867 LD=$lt_LD
10868
10869 # Whether we need hard or soft links.
10870 LN_S=$lt_LN_S
10871
10872 # A BSD-compatible nm program.
10873 NM=$lt_NM
10874
10875 # A symbol stripping program
10876 STRIP=$lt_STRIP
10877
10878 # Used to examine libraries when file_magic_cmd begins "file"
10879 MAGIC_CMD=$MAGIC_CMD
10880
10881 # Used on cygwin: DLL creation program.
10882 DLLTOOL="$DLLTOOL"
10883
10884 # Used on cygwin: object dumper.
10885 OBJDUMP="$OBJDUMP"
10886
10887 # Used on cygwin: assembler.
10888 AS="$AS"
10889
10890 # The name of the directory that contains temporary libtool files.
10891 objdir=$objdir
10892
10893 # How to create reloadable object files.
10894 reload_flag=$lt_reload_flag
10895 reload_cmds=$lt_reload_cmds
10896
10897 # How to pass a linker flag through the compiler.
10898 wl=$lt_lt_prog_compiler_wl
10899
10900 # Object file suffix (normally "o").
10901 objext="$ac_objext"
10902
10903 # Old archive suffix (normally "a").
10904 libext="$libext"
10905
10906 # Shared library suffix (normally ".so").
10907 shrext_cmds='$shrext_cmds'
10908
10909 # Executable file suffix (normally "").
10910 exeext="$exeext"
10911
10912 # Additional compiler flags for building library objects.
10913 pic_flag=$lt_lt_prog_compiler_pic
10914 pic_mode=$pic_mode
10915
10916 # What is the maximum length of a command?
10917 max_cmd_len=$lt_cv_sys_max_cmd_len
10918
10919 # Does compiler simultaneously support -c and -o options?
10920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10921
10922 # Must we lock files when doing compilation?
10923 need_locks=$lt_need_locks
10924
10925 # Do we need the lib prefix for modules?
10926 need_lib_prefix=$need_lib_prefix
10927
10928 # Do we need a version for libraries?
10929 need_version=$need_version
10930
10931 # Whether dlopen is supported.
10932 dlopen_support=$enable_dlopen
10933
10934 # Whether dlopen of programs is supported.
10935 dlopen_self=$enable_dlopen_self
10936
10937 # Whether dlopen of statically linked programs is supported.
10938 dlopen_self_static=$enable_dlopen_self_static
10939
10940 # Compiler flag to prevent dynamic linking.
10941 link_static_flag=$lt_lt_prog_compiler_static
10942
10943 # Compiler flag to turn off builtin functions.
10944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10945
10946 # Compiler flag to allow reflexive dlopens.
10947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10948
10949 # Compiler flag to generate shared objects directly from archives.
10950 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10951
10952 # Compiler flag to generate thread-safe objects.
10953 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10954
10955 # Library versioning type.
10956 version_type=$version_type
10957
10958 # Format of library name prefix.
10959 libname_spec=$lt_libname_spec
10960
10961 # List of archive names.  First name is the real one, the rest are links.
10962 # The last name is the one that the linker finds with -lNAME.
10963 library_names_spec=$lt_library_names_spec
10964
10965 # The coded name of the library, if different from the real name.
10966 soname_spec=$lt_soname_spec
10967
10968 # Commands used to build and install an old-style archive.
10969 RANLIB=$lt_RANLIB
10970 old_archive_cmds=$lt_old_archive_cmds
10971 old_postinstall_cmds=$lt_old_postinstall_cmds
10972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10973
10974 # Create an old-style archive from a shared archive.
10975 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10976
10977 # Create a temporary old-style archive to link instead of a shared archive.
10978 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10979
10980 # Commands used to build and install a shared archive.
10981 archive_cmds=$lt_archive_cmds
10982 archive_expsym_cmds=$lt_archive_expsym_cmds
10983 postinstall_cmds=$lt_postinstall_cmds
10984 postuninstall_cmds=$lt_postuninstall_cmds
10985
10986 # Commands used to build a loadable module (assumed same as above if empty)
10987 module_cmds=$lt_module_cmds
10988 module_expsym_cmds=$lt_module_expsym_cmds
10989
10990 # Commands to strip libraries.
10991 old_striplib=$lt_old_striplib
10992 striplib=$lt_striplib
10993
10994 # Dependencies to place before the objects being linked to create a
10995 # shared library.
10996 predep_objects=$lt_predep_objects
10997
10998 # Dependencies to place after the objects being linked to create a
10999 # shared library.
11000 postdep_objects=$lt_postdep_objects
11001
11002 # Dependencies to place before the objects being linked to create a
11003 # shared library.
11004 predeps=$lt_predeps
11005
11006 # Dependencies to place after the objects being linked to create a
11007 # shared library.
11008 postdeps=$lt_postdeps
11009
11010 # The directories searched by this compiler when creating a shared
11011 # library
11012 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11013
11014 # The library search path used internally by the compiler when linking
11015 # a shared library.
11016 compiler_lib_search_path=$lt_compiler_lib_search_path
11017
11018 # Method to check whether dependent libraries are shared objects.
11019 deplibs_check_method=$lt_deplibs_check_method
11020
11021 # Command to use when deplibs_check_method == file_magic.
11022 file_magic_cmd=$lt_file_magic_cmd
11023
11024 # Flag that allows shared libraries with undefined symbols to be built.
11025 allow_undefined_flag=$lt_allow_undefined_flag
11026
11027 # Flag that forces no undefined symbols.
11028 no_undefined_flag=$lt_no_undefined_flag
11029
11030 # Commands used to finish a libtool library installation in a directory.
11031 finish_cmds=$lt_finish_cmds
11032
11033 # Same as above, but a single script fragment to be evaled but not shown.
11034 finish_eval=$lt_finish_eval
11035
11036 # Take the output of nm and produce a listing of raw symbols and C names.
11037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11038
11039 # Transform the output of nm in a proper C declaration
11040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11041
11042 # Transform the output of nm in a C name address pair
11043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11044
11045 # This is the shared library runtime path variable.
11046 runpath_var=$runpath_var
11047
11048 # This is the shared library path variable.
11049 shlibpath_var=$shlibpath_var
11050
11051 # Is shlibpath searched before the hard-coded library search path?
11052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11053
11054 # How to hardcode a shared library path into an executable.
11055 hardcode_action=$hardcode_action
11056
11057 # Whether we should hardcode library paths into libraries.
11058 hardcode_into_libs=$hardcode_into_libs
11059
11060 # Flag to hardcode \$libdir into a binary during linking.
11061 # This must work even if \$libdir does not exist.
11062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11063
11064 # If ld is used when linking, flag to hardcode \$libdir into
11065 # a binary during linking. This must work even if \$libdir does
11066 # not exist.
11067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11068
11069 # Whether we need a single -rpath flag with a separated argument.
11070 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11071
11072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11073 # resulting binary.
11074 hardcode_direct=$hardcode_direct
11075
11076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11077 # resulting binary.
11078 hardcode_minus_L=$hardcode_minus_L
11079
11080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11081 # the resulting binary.
11082 hardcode_shlibpath_var=$hardcode_shlibpath_var
11083
11084 # Set to yes if building a shared library automatically hardcodes DIR into the library
11085 # and all subsequent libraries and executables linked against it.
11086 hardcode_automatic=$hardcode_automatic
11087
11088 # Variables whose values should be saved in libtool wrapper scripts and
11089 # restored at relink time.
11090 variables_saved_for_relink="$variables_saved_for_relink"
11091
11092 # Whether libtool must link a program against all its dependency libraries.
11093 link_all_deplibs=$link_all_deplibs
11094
11095 # Compile-time system search path for libraries
11096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11097
11098 # Run-time system search path for libraries
11099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11100
11101 # Fix the shell variable \$srcfile for the compiler.
11102 fix_srcfile_path=$lt_fix_srcfile_path
11103
11104 # Set to yes if exported symbols are required.
11105 always_export_symbols=$always_export_symbols
11106
11107 # The commands to list exported symbols.
11108 export_symbols_cmds=$lt_export_symbols_cmds
11109
11110 # The commands to extract the exported symbol list from a shared archive.
11111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11112
11113 # Symbols that should not be listed in the preloaded symbols.
11114 exclude_expsyms=$lt_exclude_expsyms
11115
11116 # Symbols that must always be exported.
11117 include_expsyms=$lt_include_expsyms
11118
11119 # ### END LIBTOOL CONFIG
11120
11121 __EOF__
11122
11123
11124   case $host_os in
11125   aix3*)
11126     cat <<\EOF >> "$cfgfile"
11127
11128 # AIX sometimes has problems with the GCC collect2 program.  For some
11129 # reason, if we set the COLLECT_NAMES environment variable, the problems
11130 # vanish in a puff of smoke.
11131 if test "X${COLLECT_NAMES+set}" != Xset; then
11132   COLLECT_NAMES=
11133   export COLLECT_NAMES
11134 fi
11135 EOF
11136     ;;
11137   esac
11138
11139   # We use sed instead of cat because bash on DJGPP gets confused if
11140   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11141   # text mode, it properly converts lines to CR/LF.  This bash problem
11142   # is reportedly fixed, but why not run on old versions too?
11143   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11144
11145   mv -f "$cfgfile" "$ofile" || \
11146     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11147   chmod +x "$ofile"
11148
11149 else
11150   # If there is no Makefile yet, we rely on a make rule to execute
11151   # `config.status --recheck' to rerun these tests and create the
11152   # libtool script then.
11153   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11154   if test -f "$ltmain_in"; then
11155     test -f Makefile && make "$ltmain"
11156   fi
11157 fi
11158
11159
11160 ac_ext=c
11161 ac_cpp='$CPP $CPPFLAGS'
11162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11165
11166 CC="$lt_save_CC"
11167
11168
11169 # Check whether --with-tags was given.
11170 if test "${with_tags+set}" = set; then
11171   withval=$with_tags; tagnames="$withval"
11172 fi
11173
11174
11175 if test -f "$ltmain" && test -n "$tagnames"; then
11176   if test ! -f "${ofile}"; then
11177     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11178 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11179   fi
11180
11181   if test -z "$LTCC"; then
11182     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11183     if test -z "$LTCC"; then
11184       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11185 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11186     else
11187       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11188 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11189     fi
11190   fi
11191   if test -z "$LTCFLAGS"; then
11192     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11193   fi
11194
11195   # Extract list of available tagged configurations in $ofile.
11196   # Note that this assumes the entire list is on one line.
11197   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11198
11199   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11200   for tagname in $tagnames; do
11201     IFS="$lt_save_ifs"
11202     # Check whether tagname contains only valid characters
11203     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11204     "") ;;
11205     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11206 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11207    { (exit 1); exit 1; }; }
11208         ;;
11209     esac
11210
11211     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11212     then
11213       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11214 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11215    { (exit 1); exit 1; }; }
11216     fi
11217
11218     # Update the list of available tags.
11219     if test -n "$tagname"; then
11220       echo appending configuration tag \"$tagname\" to $ofile
11221
11222       case $tagname in
11223       CXX)
11224         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11225             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11226             (test "X$CXX" != "Xg++"))) ; then
11227           ac_ext=cpp
11228 ac_cpp='$CXXCPP $CPPFLAGS'
11229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11232
11233
11234
11235
11236 archive_cmds_need_lc_CXX=no
11237 allow_undefined_flag_CXX=
11238 always_export_symbols_CXX=no
11239 archive_expsym_cmds_CXX=
11240 export_dynamic_flag_spec_CXX=
11241 hardcode_direct_CXX=no
11242 hardcode_libdir_flag_spec_CXX=
11243 hardcode_libdir_flag_spec_ld_CXX=
11244 hardcode_libdir_separator_CXX=
11245 hardcode_minus_L_CXX=no
11246 hardcode_shlibpath_var_CXX=unsupported
11247 hardcode_automatic_CXX=no
11248 module_cmds_CXX=
11249 module_expsym_cmds_CXX=
11250 link_all_deplibs_CXX=unknown
11251 old_archive_cmds_CXX=$old_archive_cmds
11252 no_undefined_flag_CXX=
11253 whole_archive_flag_spec_CXX=
11254 enable_shared_with_static_runtimes_CXX=no
11255
11256 # Dependencies to place before and after the object being linked:
11257 predep_objects_CXX=
11258 postdep_objects_CXX=
11259 predeps_CXX=
11260 postdeps_CXX=
11261 compiler_lib_search_path_CXX=
11262 compiler_lib_search_dirs_CXX=
11263
11264 # Source file extension for C++ test sources.
11265 ac_ext=cpp
11266
11267 # Object file extension for compiled C++ test sources.
11268 objext=o
11269 objext_CXX=$objext
11270
11271 # Code to be used in simple compile tests
11272 lt_simple_compile_test_code="int some_variable = 0;"
11273
11274 # Code to be used in simple link tests
11275 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11276
11277 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11278
11279 # If no C compiler was specified, use CC.
11280 LTCC=${LTCC-"$CC"}
11281
11282 # If no C compiler flags were specified, use CFLAGS.
11283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11284
11285 # Allow CC to be a program name with arguments.
11286 compiler=$CC
11287
11288
11289 # save warnings/boilerplate of simple test code
11290 ac_outfile=conftest.$ac_objext
11291 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11293 _lt_compiler_boilerplate=`cat conftest.err`
11294 $rm conftest*
11295
11296 ac_outfile=conftest.$ac_objext
11297 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11299 _lt_linker_boilerplate=`cat conftest.err`
11300 $rm -r conftest*
11301
11302
11303 # Allow CC to be a program name with arguments.
11304 lt_save_CC=$CC
11305 lt_save_LD=$LD
11306 lt_save_GCC=$GCC
11307 GCC=$GXX
11308 lt_save_with_gnu_ld=$with_gnu_ld
11309 lt_save_path_LD=$lt_cv_path_LD
11310 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11311   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11312 else
11313   $as_unset lt_cv_prog_gnu_ld
11314 fi
11315 if test -n "${lt_cv_path_LDCXX+set}"; then
11316   lt_cv_path_LD=$lt_cv_path_LDCXX
11317 else
11318   $as_unset lt_cv_path_LD
11319 fi
11320 test -z "${LDCXX+set}" || LD=$LDCXX
11321 CC=${CXX-"c++"}
11322 compiler=$CC
11323 compiler_CXX=$CC
11324 for cc_temp in $compiler""; do
11325   case $cc_temp in
11326     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11327     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11328     \-*) ;;
11329     *) break;;
11330   esac
11331 done
11332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11333
11334
11335 # We don't want -fno-exception wen compiling C++ code, so set the
11336 # no_builtin_flag separately
11337 if test "$GXX" = yes; then
11338   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11339 else
11340   lt_prog_compiler_no_builtin_flag_CXX=
11341 fi
11342
11343 if test "$GXX" = yes; then
11344   # Set up default GNU C++ configuration
11345
11346
11347 # Check whether --with-gnu-ld was given.
11348 if test "${with_gnu_ld+set}" = set; then
11349   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11350 else
11351   with_gnu_ld=no
11352 fi
11353
11354 ac_prog=ld
11355 if test "$GCC" = yes; then
11356   # Check if gcc -print-prog-name=ld gives a path.
11357   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11358 $as_echo_n "checking for ld used by $CC... " >&6; }
11359   case $host in
11360   *-*-mingw*)
11361     # gcc leaves a trailing carriage return which upsets mingw
11362     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11363   *)
11364     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11365   esac
11366   case $ac_prog in
11367     # Accept absolute paths.
11368     [\\/]* | ?:[\\/]*)
11369       re_direlt='/[^/][^/]*/\.\./'
11370       # Canonicalize the pathname of ld
11371       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11372       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11373         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11374       done
11375       test -z "$LD" && LD="$ac_prog"
11376       ;;
11377   "")
11378     # If it fails, then pretend we aren't using GCC.
11379     ac_prog=ld
11380     ;;
11381   *)
11382     # If it is relative, then search for the first ld in PATH.
11383     with_gnu_ld=unknown
11384     ;;
11385   esac
11386 elif test "$with_gnu_ld" = yes; then
11387   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11388 $as_echo_n "checking for GNU ld... " >&6; }
11389 else
11390   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11391 $as_echo_n "checking for non-GNU ld... " >&6; }
11392 fi
11393 if test "${lt_cv_path_LD+set}" = set; then
11394   $as_echo_n "(cached) " >&6
11395 else
11396   if test -z "$LD"; then
11397   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11398   for ac_dir in $PATH; do
11399     IFS="$lt_save_ifs"
11400     test -z "$ac_dir" && ac_dir=.
11401     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11402       lt_cv_path_LD="$ac_dir/$ac_prog"
11403       # Check to see if the program is GNU ld.  I'd rather use --version,
11404       # but apparently some variants of GNU ld only accept -v.
11405       # Break only if it was the GNU/non-GNU ld that we prefer.
11406       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11407       *GNU* | *'with BFD'*)
11408         test "$with_gnu_ld" != no && break
11409         ;;
11410       *)
11411         test "$with_gnu_ld" != yes && break
11412         ;;
11413       esac
11414     fi
11415   done
11416   IFS="$lt_save_ifs"
11417 else
11418   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11419 fi
11420 fi
11421
11422 LD="$lt_cv_path_LD"
11423 if test -n "$LD"; then
11424   { $as_echo "$as_me:$LINENO: result: $LD" >&5
11425 $as_echo "$LD" >&6; }
11426 else
11427   { $as_echo "$as_me:$LINENO: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11431 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11432    { (exit 1); exit 1; }; }
11433 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11435 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11436   $as_echo_n "(cached) " >&6
11437 else
11438   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11439 case `$LD -v 2>&1 </dev/null` in
11440 *GNU* | *'with BFD'*)
11441   lt_cv_prog_gnu_ld=yes
11442   ;;
11443 *)
11444   lt_cv_prog_gnu_ld=no
11445   ;;
11446 esac
11447 fi
11448 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11450 with_gnu_ld=$lt_cv_prog_gnu_ld
11451
11452
11453
11454   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11455   # archiving commands below assume that GNU ld is being used.
11456   if test "$with_gnu_ld" = yes; then
11457     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11458     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'
11459
11460     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11461     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11462
11463     # If archive_cmds runs LD, not CC, wlarc should be empty
11464     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11465     #     investigate it a little bit more. (MM)
11466     wlarc='${wl}'
11467
11468     # ancient GNU ld didn't support --whole-archive et. al.
11469     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11470         grep 'no-whole-archive' > /dev/null; then
11471       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11472     else
11473       whole_archive_flag_spec_CXX=
11474     fi
11475   else
11476     with_gnu_ld=no
11477     wlarc=
11478
11479     # A generic and very simple default shared library creation
11480     # command for GNU C++ for the case where it uses the native
11481     # linker, instead of GNU ld.  If possible, this setting should
11482     # overridden to take advantage of the native linker features on
11483     # the platform it is being used on.
11484     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11485   fi
11486
11487   # Commands to make compiler produce verbose output that lists
11488   # what "hidden" libraries, object files and flags are used when
11489   # linking a shared library.
11490   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11491
11492 else
11493   GXX=no
11494   with_gnu_ld=no
11495   wlarc=
11496 fi
11497
11498 # PORTME: fill in a description of your system's C++ link characteristics
11499 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11500 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11501 ld_shlibs_CXX=yes
11502 case $host_os in
11503   aix3*)
11504     # FIXME: insert proper C++ library support
11505     ld_shlibs_CXX=no
11506     ;;
11507   aix[4-9]*)
11508     if test "$host_cpu" = ia64; then
11509       # On IA64, the linker does run time linking by default, so we don't
11510       # have to do anything special.
11511       aix_use_runtimelinking=no
11512       exp_sym_flag='-Bexport'
11513       no_entry_flag=""
11514     else
11515       aix_use_runtimelinking=no
11516
11517       # Test if we are trying to use run time linking or normal
11518       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11519       # need to do runtime linking.
11520       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11521         for ld_flag in $LDFLAGS; do
11522           case $ld_flag in
11523           *-brtl*)
11524             aix_use_runtimelinking=yes
11525             break
11526             ;;
11527           esac
11528         done
11529         ;;
11530       esac
11531
11532       exp_sym_flag='-bexport'
11533       no_entry_flag='-bnoentry'
11534     fi
11535
11536     # When large executables or shared objects are built, AIX ld can
11537     # have problems creating the table of contents.  If linking a library
11538     # or program results in "error TOC overflow" add -mminimal-toc to
11539     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11540     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11541
11542     archive_cmds_CXX=''
11543     hardcode_direct_CXX=yes
11544     hardcode_libdir_separator_CXX=':'
11545     link_all_deplibs_CXX=yes
11546
11547     if test "$GXX" = yes; then
11548       case $host_os in aix4.[012]|aix4.[012].*)
11549       # We only want to do this on AIX 4.2 and lower, the check
11550       # below for broken collect2 doesn't work under 4.3+
11551         collect2name=`${CC} -print-prog-name=collect2`
11552         if test -f "$collect2name" && \
11553            strings "$collect2name" | grep resolve_lib_name >/dev/null
11554         then
11555           # We have reworked collect2
11556           :
11557         else
11558           # We have old collect2
11559           hardcode_direct_CXX=unsupported
11560           # It fails to find uninstalled libraries when the uninstalled
11561           # path is not listed in the libpath.  Setting hardcode_minus_L
11562           # to unsupported forces relinking
11563           hardcode_minus_L_CXX=yes
11564           hardcode_libdir_flag_spec_CXX='-L$libdir'
11565           hardcode_libdir_separator_CXX=
11566         fi
11567         ;;
11568       esac
11569       shared_flag='-shared'
11570       if test "$aix_use_runtimelinking" = yes; then
11571         shared_flag="$shared_flag "'${wl}-G'
11572       fi
11573     else
11574       # not using gcc
11575       if test "$host_cpu" = ia64; then
11576         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11577         # chokes on -Wl,-G. The following line is correct:
11578         shared_flag='-G'
11579       else
11580         if test "$aix_use_runtimelinking" = yes; then
11581           shared_flag='${wl}-G'
11582         else
11583           shared_flag='${wl}-bM:SRE'
11584         fi
11585       fi
11586     fi
11587
11588     # It seems that -bexpall does not export symbols beginning with
11589     # underscore (_), so it is better to generate a list of symbols to export.
11590     always_export_symbols_CXX=yes
11591     if test "$aix_use_runtimelinking" = yes; then
11592       # Warning - without using the other runtime loading flags (-brtl),
11593       # -berok will link without error, but may produce a broken library.
11594       allow_undefined_flag_CXX='-berok'
11595       # Determine the default libpath from the value encoded in an empty executable.
11596       cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602
11603 int
11604 main ()
11605 {
11606
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11618 $as_echo "$ac_try_echo") >&5
11619   (eval "$ac_link") 2>conftest.er1
11620   ac_status=$?
11621   grep -v '^ *+' conftest.er1 >conftest.err
11622   rm -f conftest.er1
11623   cat conftest.err >&5
11624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } && {
11626          test -z "$ac_cxx_werror_flag" ||
11627          test ! -s conftest.err
11628        } && test -s conftest$ac_exeext && {
11629          test "$cross_compiling" = yes ||
11630          $as_test_x conftest$ac_exeext
11631        }; then
11632
11633 lt_aix_libpath_sed='
11634     /Import File Strings/,/^$/ {
11635         /^0/ {
11636             s/^0  *\(.*\)$/\1/
11637             p
11638         }
11639     }'
11640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11641 # Check for a 64-bit object if we didn't find anything.
11642 if test -z "$aix_libpath"; then
11643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11644 fi
11645 else
11646   $as_echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649
11650 fi
11651
11652 rm -rf conftest.dSYM
11653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654       conftest$ac_exeext conftest.$ac_ext
11655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11656
11657       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11658
11659       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"
11660      else
11661       if test "$host_cpu" = ia64; then
11662         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11663         allow_undefined_flag_CXX="-z nodefs"
11664         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"
11665       else
11666         # Determine the default libpath from the value encoded in an empty executable.
11667         cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h.  */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h.  */
11673
11674 int
11675 main ()
11676 {
11677
11678   ;
11679   return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (ac_try="$ac_link"
11684 case "(($ac_try" in
11685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686   *) ac_try_echo=$ac_try;;
11687 esac
11688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11689 $as_echo "$ac_try_echo") >&5
11690   (eval "$ac_link") 2>conftest.er1
11691   ac_status=$?
11692   grep -v '^ *+' conftest.er1 >conftest.err
11693   rm -f conftest.er1
11694   cat conftest.err >&5
11695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } && {
11697          test -z "$ac_cxx_werror_flag" ||
11698          test ! -s conftest.err
11699        } && test -s conftest$ac_exeext && {
11700          test "$cross_compiling" = yes ||
11701          $as_test_x conftest$ac_exeext
11702        }; then
11703
11704 lt_aix_libpath_sed='
11705     /Import File Strings/,/^$/ {
11706         /^0/ {
11707             s/^0  *\(.*\)$/\1/
11708             p
11709         }
11710     }'
11711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712 # Check for a 64-bit object if we didn't find anything.
11713 if test -z "$aix_libpath"; then
11714   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11715 fi
11716 else
11717   $as_echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720
11721 fi
11722
11723 rm -rf conftest.dSYM
11724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725       conftest$ac_exeext conftest.$ac_ext
11726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11727
11728         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11729         # Warning - without using the other run time loading flags,
11730         # -berok will link without error, but may produce a broken library.
11731         no_undefined_flag_CXX=' ${wl}-bernotok'
11732         allow_undefined_flag_CXX=' ${wl}-berok'
11733         # Exported symbols can be pulled into shared objects from archives
11734         whole_archive_flag_spec_CXX='$convenience'
11735         archive_cmds_need_lc_CXX=yes
11736         # This is similar to how AIX traditionally builds its shared libraries.
11737         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'
11738       fi
11739     fi
11740     ;;
11741
11742   beos*)
11743     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11744       allow_undefined_flag_CXX=unsupported
11745       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11746       # support --undefined.  This deserves some investigation.  FIXME
11747       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11748     else
11749       ld_shlibs_CXX=no
11750     fi
11751     ;;
11752
11753   chorus*)
11754     case $cc_basename in
11755       *)
11756         # FIXME: insert proper C++ library support
11757         ld_shlibs_CXX=no
11758         ;;
11759     esac
11760     ;;
11761
11762   cygwin* | mingw* | pw32*)
11763     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11764     # as there is no search path for DLLs.
11765     hardcode_libdir_flag_spec_CXX='-L$libdir'
11766     allow_undefined_flag_CXX=unsupported
11767     always_export_symbols_CXX=no
11768     enable_shared_with_static_runtimes_CXX=yes
11769
11770     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11771       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'
11772       # If the export-symbols file already is a .def file (1st line
11773       # is EXPORTS), use it as is; otherwise, prepend...
11774       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11775         cp $export_symbols $output_objdir/$soname.def;
11776       else
11777         echo EXPORTS > $output_objdir/$soname.def;
11778         cat $export_symbols >> $output_objdir/$soname.def;
11779       fi~
11780       $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'
11781     else
11782       ld_shlibs_CXX=no
11783     fi
11784   ;;
11785       darwin* | rhapsody*)
11786       archive_cmds_need_lc_CXX=no
11787       hardcode_direct_CXX=no
11788       hardcode_automatic_CXX=yes
11789       hardcode_shlibpath_var_CXX=unsupported
11790       whole_archive_flag_spec_CXX=''
11791       link_all_deplibs_CXX=yes
11792       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11793       if test "$GXX" = yes ; then
11794       output_verbose_link_cmd='echo'
11795       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}"
11796       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11797       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}"
11798       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}"
11799       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11800         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}"
11801         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}"
11802       fi
11803       else
11804       case $cc_basename in
11805         xlc*)
11806          output_verbose_link_cmd='echo'
11807           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'
11808           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11809           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11810           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}'
11811           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}'
11812           ;;
11813        *)
11814          ld_shlibs_CXX=no
11815           ;;
11816       esac
11817       fi
11818         ;;
11819
11820   dgux*)
11821     case $cc_basename in
11822       ec++*)
11823         # FIXME: insert proper C++ library support
11824         ld_shlibs_CXX=no
11825         ;;
11826       ghcx*)
11827         # Green Hills C++ Compiler
11828         # FIXME: insert proper C++ library support
11829         ld_shlibs_CXX=no
11830         ;;
11831       *)
11832         # FIXME: insert proper C++ library support
11833         ld_shlibs_CXX=no
11834         ;;
11835     esac
11836     ;;
11837   freebsd[12]*)
11838     # C++ shared libraries reported to be fairly broken before switch to ELF
11839     ld_shlibs_CXX=no
11840     ;;
11841   freebsd-elf*)
11842     archive_cmds_need_lc_CXX=no
11843     ;;
11844   freebsd* | dragonfly*)
11845     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11846     # conventions
11847     ld_shlibs_CXX=yes
11848     ;;
11849   gnu*)
11850     ;;
11851   hpux9*)
11852     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11853     hardcode_libdir_separator_CXX=:
11854     export_dynamic_flag_spec_CXX='${wl}-E'
11855     hardcode_direct_CXX=yes
11856     hardcode_minus_L_CXX=yes # Not in the search PATH,
11857                                 # but as the default
11858                                 # location of the library.
11859
11860     case $cc_basename in
11861     CC*)
11862       # FIXME: insert proper C++ library support
11863       ld_shlibs_CXX=no
11864       ;;
11865     aCC*)
11866       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'
11867       # Commands to make compiler produce verbose output that lists
11868       # what "hidden" libraries, object files and flags are used when
11869       # linking a shared library.
11870       #
11871       # There doesn't appear to be a way to prevent this compiler from
11872       # explicitly linking system object files so we need to strip them
11873       # from the output so that they don't get included in the library
11874       # dependencies.
11875       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'
11876       ;;
11877     *)
11878       if test "$GXX" = yes; then
11879         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'
11880       else
11881         # FIXME: insert proper C++ library support
11882         ld_shlibs_CXX=no
11883       fi
11884       ;;
11885     esac
11886     ;;
11887   hpux10*|hpux11*)
11888     if test $with_gnu_ld = no; then
11889       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11890       hardcode_libdir_separator_CXX=:
11891
11892       case $host_cpu in
11893       hppa*64*|ia64*) ;;
11894       *)
11895         export_dynamic_flag_spec_CXX='${wl}-E'
11896         ;;
11897       esac
11898     fi
11899     case $host_cpu in
11900     hppa*64*|ia64*)
11901       hardcode_direct_CXX=no
11902       hardcode_shlibpath_var_CXX=no
11903       ;;
11904     *)
11905       hardcode_direct_CXX=yes
11906       hardcode_minus_L_CXX=yes # Not in the search PATH,
11907                                               # but as the default
11908                                               # location of the library.
11909       ;;
11910     esac
11911
11912     case $cc_basename in
11913       CC*)
11914         # FIXME: insert proper C++ library support
11915         ld_shlibs_CXX=no
11916         ;;
11917       aCC*)
11918         case $host_cpu in
11919         hppa*64*)
11920           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11921           ;;
11922         ia64*)
11923           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11924           ;;
11925         *)
11926           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11927           ;;
11928         esac
11929         # Commands to make compiler produce verbose output that lists
11930         # what "hidden" libraries, object files and flags are used when
11931         # linking a shared library.
11932         #
11933         # There doesn't appear to be a way to prevent this compiler from
11934         # explicitly linking system object files so we need to strip them
11935         # from the output so that they don't get included in the library
11936         # dependencies.
11937         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'
11938         ;;
11939       *)
11940         if test "$GXX" = yes; then
11941           if test $with_gnu_ld = no; then
11942             case $host_cpu in
11943             hppa*64*)
11944               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945               ;;
11946             ia64*)
11947               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11948               ;;
11949             *)
11950               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'
11951               ;;
11952             esac
11953           fi
11954         else
11955           # FIXME: insert proper C++ library support
11956           ld_shlibs_CXX=no
11957         fi
11958         ;;
11959     esac
11960     ;;
11961   interix[3-9]*)
11962     hardcode_direct_CXX=no
11963     hardcode_shlibpath_var_CXX=no
11964     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11965     export_dynamic_flag_spec_CXX='${wl}-E'
11966     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11967     # Instead, shared libraries are loaded at an image base (0x10000000 by
11968     # default) and relocated if they conflict, which is a slow very memory
11969     # consuming and fragmenting process.  To avoid this, we pick a random,
11970     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11971     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11972     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'
11973     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'
11974     ;;
11975   irix5* | irix6*)
11976     case $cc_basename in
11977       CC*)
11978         # SGI C++
11979         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'
11980
11981         # Archives containing C++ object files must be created using
11982         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11983         # necessary to make sure instantiated templates are included
11984         # in the archive.
11985         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11986         ;;
11987       *)
11988         if test "$GXX" = yes; then
11989           if test "$with_gnu_ld" = no; then
11990             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'
11991           else
11992             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'
11993           fi
11994         fi
11995         link_all_deplibs_CXX=yes
11996         ;;
11997     esac
11998     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11999     hardcode_libdir_separator_CXX=:
12000     ;;
12001   linux* | k*bsd*-gnu)
12002     case $cc_basename in
12003       KCC*)
12004         # Kuck and Associates, Inc. (KAI) C++ Compiler
12005
12006         # KCC will only create a shared library if the output file
12007         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12008         # to its proper name (with version) after linking.
12009         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'
12010         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'
12011         # Commands to make compiler produce verbose output that lists
12012         # what "hidden" libraries, object files and flags are used when
12013         # linking a shared library.
12014         #
12015         # There doesn't appear to be a way to prevent this compiler from
12016         # explicitly linking system object files so we need to strip them
12017         # from the output so that they don't get included in the library
12018         # dependencies.
12019         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'
12020
12021         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12022         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12023
12024         # Archives containing C++ object files must be created using
12025         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12026         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12027         ;;
12028       icpc*)
12029         # Intel C++
12030         with_gnu_ld=yes
12031         # version 8.0 and above of icpc choke on multiply defined symbols
12032         # if we add $predep_objects and $postdep_objects, however 7.1 and
12033         # earlier do not add the objects themselves.
12034         case `$CC -V 2>&1` in
12035         *"Version 7."*)
12036           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12037           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'
12038           ;;
12039         *)  # Version 8.0 or newer
12040           tmp_idyn=
12041           case $host_cpu in
12042             ia64*) tmp_idyn=' -i_dynamic';;
12043           esac
12044           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12045           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'
12046           ;;
12047         esac
12048         archive_cmds_need_lc_CXX=no
12049         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12050         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12051         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12052         ;;
12053       pgCC* | pgcpp*)
12054         # Portland Group C++ compiler
12055         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12056         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'
12057
12058         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12059         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12060         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'
12061         ;;
12062       cxx*)
12063         # Compaq C++
12064         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12065         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'
12066
12067         runpath_var=LD_RUN_PATH
12068         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12069         hardcode_libdir_separator_CXX=:
12070
12071         # Commands to make compiler produce verbose output that lists
12072         # what "hidden" libraries, object files and flags are used when
12073         # linking a shared library.
12074         #
12075         # There doesn't appear to be a way to prevent this compiler from
12076         # explicitly linking system object files so we need to strip them
12077         # from the output so that they don't get included in the library
12078         # dependencies.
12079         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'
12080         ;;
12081       *)
12082         case `$CC -V 2>&1 | sed 5q` in
12083         *Sun\ C*)
12084           # Sun C++ 5.9
12085           no_undefined_flag_CXX=' -zdefs'
12086           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12087           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'
12088           hardcode_libdir_flag_spec_CXX='-R$libdir'
12089           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'
12090
12091           # Not sure whether something based on
12092           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12093           # would be better.
12094           output_verbose_link_cmd='echo'
12095
12096           # Archives containing C++ object files must be created using
12097           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12098           # necessary to make sure instantiated templates are included
12099           # in the archive.
12100           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12101           ;;
12102         esac
12103         ;;
12104     esac
12105     ;;
12106   lynxos*)
12107     # FIXME: insert proper C++ library support
12108     ld_shlibs_CXX=no
12109     ;;
12110   m88k*)
12111     # FIXME: insert proper C++ library support
12112     ld_shlibs_CXX=no
12113     ;;
12114   mvs*)
12115     case $cc_basename in
12116       cxx*)
12117         # FIXME: insert proper C++ library support
12118         ld_shlibs_CXX=no
12119         ;;
12120       *)
12121         # FIXME: insert proper C++ library support
12122         ld_shlibs_CXX=no
12123         ;;
12124     esac
12125     ;;
12126   netbsd* | netbsdelf*-gnu)
12127     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12128       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12129       wlarc=
12130       hardcode_libdir_flag_spec_CXX='-R$libdir'
12131       hardcode_direct_CXX=yes
12132       hardcode_shlibpath_var_CXX=no
12133     fi
12134     # Workaround some broken pre-1.5 toolchains
12135     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12136     ;;
12137   openbsd2*)
12138     # C++ shared libraries are fairly broken
12139     ld_shlibs_CXX=no
12140     ;;
12141   openbsd*)
12142     if test -f /usr/libexec/ld.so; then
12143       hardcode_direct_CXX=yes
12144       hardcode_shlibpath_var_CXX=no
12145       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12146       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12147       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12148         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12149         export_dynamic_flag_spec_CXX='${wl}-E'
12150         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12151       fi
12152       output_verbose_link_cmd='echo'
12153     else
12154       ld_shlibs_CXX=no
12155     fi
12156     ;;
12157   osf3*)
12158     case $cc_basename in
12159       KCC*)
12160         # Kuck and Associates, Inc. (KAI) C++ Compiler
12161
12162         # KCC will only create a shared library if the output file
12163         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12164         # to its proper name (with version) after linking.
12165         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'
12166
12167         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12168         hardcode_libdir_separator_CXX=:
12169
12170         # Archives containing C++ object files must be created using
12171         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12172         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12173
12174         ;;
12175       RCC*)
12176         # Rational C++ 2.4.1
12177         # FIXME: insert proper C++ library support
12178         ld_shlibs_CXX=no
12179         ;;
12180       cxx*)
12181         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12182         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'
12183
12184         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12185         hardcode_libdir_separator_CXX=:
12186
12187         # Commands to make compiler produce verbose output that lists
12188         # what "hidden" libraries, object files and flags are used when
12189         # linking a shared library.
12190         #
12191         # There doesn't appear to be a way to prevent this compiler from
12192         # explicitly linking system object files so we need to strip them
12193         # from the output so that they don't get included in the library
12194         # dependencies.
12195         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'
12196         ;;
12197       *)
12198         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12199           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12200           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'
12201
12202           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12203           hardcode_libdir_separator_CXX=:
12204
12205           # Commands to make compiler produce verbose output that lists
12206           # what "hidden" libraries, object files and flags are used when
12207           # linking a shared library.
12208           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12209
12210         else
12211           # FIXME: insert proper C++ library support
12212           ld_shlibs_CXX=no
12213         fi
12214         ;;
12215     esac
12216     ;;
12217   osf4* | osf5*)
12218     case $cc_basename in
12219       KCC*)
12220         # Kuck and Associates, Inc. (KAI) C++ Compiler
12221
12222         # KCC will only create a shared library if the output file
12223         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12224         # to its proper name (with version) after linking.
12225         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'
12226
12227         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12228         hardcode_libdir_separator_CXX=:
12229
12230         # Archives containing C++ object files must be created using
12231         # the KAI C++ compiler.
12232         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12233         ;;
12234       RCC*)
12235         # Rational C++ 2.4.1
12236         # FIXME: insert proper C++ library support
12237         ld_shlibs_CXX=no
12238         ;;
12239       cxx*)
12240         allow_undefined_flag_CXX=' -expect_unresolved \*'
12241         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'
12242         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12243           echo "-hidden">> $lib.exp~
12244           $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~
12245           $rm $lib.exp'
12246
12247         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12248         hardcode_libdir_separator_CXX=:
12249
12250         # Commands to make compiler produce verbose output that lists
12251         # what "hidden" libraries, object files and flags are used when
12252         # linking a shared library.
12253         #
12254         # There doesn't appear to be a way to prevent this compiler from
12255         # explicitly linking system object files so we need to strip them
12256         # from the output so that they don't get included in the library
12257         # dependencies.
12258         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'
12259         ;;
12260       *)
12261         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12262           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12263          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'
12264
12265           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12266           hardcode_libdir_separator_CXX=:
12267
12268           # Commands to make compiler produce verbose output that lists
12269           # what "hidden" libraries, object files and flags are used when
12270           # linking a shared library.
12271           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12272
12273         else
12274           # FIXME: insert proper C++ library support
12275           ld_shlibs_CXX=no
12276         fi
12277         ;;
12278     esac
12279     ;;
12280   psos*)
12281     # FIXME: insert proper C++ library support
12282     ld_shlibs_CXX=no
12283     ;;
12284   sunos4*)
12285     case $cc_basename in
12286       CC*)
12287         # Sun C++ 4.x
12288         # FIXME: insert proper C++ library support
12289         ld_shlibs_CXX=no
12290         ;;
12291       lcc*)
12292         # Lucid
12293         # FIXME: insert proper C++ library support
12294         ld_shlibs_CXX=no
12295         ;;
12296       *)
12297         # FIXME: insert proper C++ library support
12298         ld_shlibs_CXX=no
12299         ;;
12300     esac
12301     ;;
12302   solaris*)
12303     case $cc_basename in
12304       CC*)
12305         # Sun C++ 4.2, 5.x and Centerline C++
12306         archive_cmds_need_lc_CXX=yes
12307         no_undefined_flag_CXX=' -zdefs'
12308         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12309         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12310         $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'
12311
12312         hardcode_libdir_flag_spec_CXX='-R$libdir'
12313         hardcode_shlibpath_var_CXX=no
12314         case $host_os in
12315           solaris2.[0-5] | solaris2.[0-5].*) ;;
12316           *)
12317             # The compiler driver will combine and reorder linker options,
12318             # but understands `-z linker_flag'.
12319             # Supported since Solaris 2.6 (maybe 2.5.1?)
12320             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12321             ;;
12322         esac
12323         link_all_deplibs_CXX=yes
12324
12325         output_verbose_link_cmd='echo'
12326
12327         # Archives containing C++ object files must be created using
12328         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12329         # necessary to make sure instantiated templates are included
12330         # in the archive.
12331         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12332         ;;
12333       gcx*)
12334         # Green Hills C++ Compiler
12335         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12336
12337         # The C++ compiler must be used to create the archive.
12338         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12339         ;;
12340       *)
12341         # GNU C++ compiler with Solaris linker
12342         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12343           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12344           if $CC --version | grep -v '^2\.7' > /dev/null; then
12345             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12346             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12347                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12348
12349             # Commands to make compiler produce verbose output that lists
12350             # what "hidden" libraries, object files and flags are used when
12351             # linking a shared library.
12352             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12353           else
12354             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12355             # platform.
12356             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12357             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12358                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12359
12360             # Commands to make compiler produce verbose output that lists
12361             # what "hidden" libraries, object files and flags are used when
12362             # linking a shared library.
12363             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12364           fi
12365
12366           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12367           case $host_os in
12368           solaris2.[0-5] | solaris2.[0-5].*) ;;
12369           *)
12370             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12371             ;;
12372           esac
12373         fi
12374         ;;
12375     esac
12376     ;;
12377   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12378     no_undefined_flag_CXX='${wl}-z,text'
12379     archive_cmds_need_lc_CXX=no
12380     hardcode_shlibpath_var_CXX=no
12381     runpath_var='LD_RUN_PATH'
12382
12383     case $cc_basename in
12384       CC*)
12385         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12386         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12387         ;;
12388       *)
12389         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12390         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12391         ;;
12392     esac
12393     ;;
12394   sysv5* | sco3.2v5* | sco5v6*)
12395     # Note: We can NOT use -z defs as we might desire, because we do not
12396     # link with -lc, and that would cause any symbols used from libc to
12397     # always be unresolved, which means just about no library would
12398     # ever link correctly.  If we're not using GNU ld we use -z text
12399     # though, which does catch some bad symbols but isn't as heavy-handed
12400     # as -z defs.
12401     # For security reasons, it is highly recommended that you always
12402     # use absolute paths for naming shared libraries, and exclude the
12403     # DT_RUNPATH tag from executables and libraries.  But doing so
12404     # requires that you compile everything twice, which is a pain.
12405     # So that behaviour is only enabled if SCOABSPATH is set to a
12406     # non-empty value in the environment.  Most likely only useful for
12407     # creating official distributions of packages.
12408     # This is a hack until libtool officially supports absolute path
12409     # names for shared libraries.
12410     no_undefined_flag_CXX='${wl}-z,text'
12411     allow_undefined_flag_CXX='${wl}-z,nodefs'
12412     archive_cmds_need_lc_CXX=no
12413     hardcode_shlibpath_var_CXX=no
12414     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12415     hardcode_libdir_separator_CXX=':'
12416     link_all_deplibs_CXX=yes
12417     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12418     runpath_var='LD_RUN_PATH'
12419
12420     case $cc_basename in
12421       CC*)
12422         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12423         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12424         ;;
12425       *)
12426         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12427         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12428         ;;
12429     esac
12430     ;;
12431   tandem*)
12432     case $cc_basename in
12433       NCC*)
12434         # NonStop-UX NCC 3.20
12435         # FIXME: insert proper C++ library support
12436         ld_shlibs_CXX=no
12437         ;;
12438       *)
12439         # FIXME: insert proper C++ library support
12440         ld_shlibs_CXX=no
12441         ;;
12442     esac
12443     ;;
12444   vxworks*)
12445     # FIXME: insert proper C++ library support
12446     ld_shlibs_CXX=no
12447     ;;
12448   *)
12449     # FIXME: insert proper C++ library support
12450     ld_shlibs_CXX=no
12451     ;;
12452 esac
12453 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12454 $as_echo "$ld_shlibs_CXX" >&6; }
12455 test "$ld_shlibs_CXX" = no && can_build_shared=no
12456
12457 GCC_CXX="$GXX"
12458 LD_CXX="$LD"
12459
12460 cat > conftest.$ac_ext <<EOF
12461 class Foo
12462 {
12463 public:
12464   Foo (void) { a = 0; }
12465 private:
12466   int a;
12467 };
12468 EOF
12469
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471   (eval $ac_compile) 2>&5
12472   ac_status=$?
12473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; then
12475   # Parse the compiler output and extract the necessary
12476   # objects, libraries and library flags.
12477
12478   # Sentinel used to keep track of whether or not we are before
12479   # the conftest object file.
12480   pre_test_object_deps_done=no
12481
12482   # The `*' in the case matches for architectures that use `case' in
12483   # $output_verbose_cmd can trigger glob expansion during the loop
12484   # eval without this substitution.
12485   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12486
12487   for p in `eval $output_verbose_link_cmd`; do
12488     case $p in
12489
12490     -L* | -R* | -l*)
12491        # Some compilers place space between "-{L,R}" and the path.
12492        # Remove the space.
12493        if test $p = "-L" \
12494           || test $p = "-R"; then
12495          prev=$p
12496          continue
12497        else
12498          prev=
12499        fi
12500
12501        if test "$pre_test_object_deps_done" = no; then
12502          case $p in
12503          -L* | -R*)
12504            # Internal compiler library paths should come after those
12505            # provided the user.  The postdeps already come after the
12506            # user supplied libs so there is no need to process them.
12507            if test -z "$compiler_lib_search_path_CXX"; then
12508              compiler_lib_search_path_CXX="${prev}${p}"
12509            else
12510              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12511            fi
12512            ;;
12513          # The "-l" case would never come before the object being
12514          # linked, so don't bother handling this case.
12515          esac
12516        else
12517          if test -z "$postdeps_CXX"; then
12518            postdeps_CXX="${prev}${p}"
12519          else
12520            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12521          fi
12522        fi
12523        ;;
12524
12525     *.$objext)
12526        # This assumes that the test object file only shows up
12527        # once in the compiler output.
12528        if test "$p" = "conftest.$objext"; then
12529          pre_test_object_deps_done=yes
12530          continue
12531        fi
12532
12533        if test "$pre_test_object_deps_done" = no; then
12534          if test -z "$predep_objects_CXX"; then
12535            predep_objects_CXX="$p"
12536          else
12537            predep_objects_CXX="$predep_objects_CXX $p"
12538          fi
12539        else
12540          if test -z "$postdep_objects_CXX"; then
12541            postdep_objects_CXX="$p"
12542          else
12543            postdep_objects_CXX="$postdep_objects_CXX $p"
12544          fi
12545        fi
12546        ;;
12547
12548     *) ;; # Ignore the rest.
12549
12550     esac
12551   done
12552
12553   # Clean up.
12554   rm -f a.out a.exe
12555 else
12556   echo "libtool.m4: error: problem compiling CXX test program"
12557 fi
12558
12559 $rm -f confest.$objext
12560
12561 compiler_lib_search_dirs_CXX=
12562 if test -n "$compiler_lib_search_path_CXX"; then
12563   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12564 fi
12565
12566 # PORTME: override above test on systems where it is broken
12567 case $host_os in
12568 interix[3-9]*)
12569   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12570   # hack all around it, let's just trust "g++" to DTRT.
12571   predep_objects_CXX=
12572   postdep_objects_CXX=
12573   postdeps_CXX=
12574   ;;
12575
12576 linux*)
12577   case `$CC -V 2>&1 | sed 5q` in
12578   *Sun\ C*)
12579     # Sun C++ 5.9
12580     #
12581     # The more standards-conforming stlport4 library is
12582     # incompatible with the Cstd library. Avoid specifying
12583     # it if it's in CXXFLAGS. Ignore libCrun as
12584     # -library=stlport4 depends on it.
12585     case " $CXX $CXXFLAGS " in
12586     *" -library=stlport4 "*)
12587       solaris_use_stlport4=yes
12588       ;;
12589     esac
12590     if test "$solaris_use_stlport4" != yes; then
12591       postdeps_CXX='-library=Cstd -library=Crun'
12592     fi
12593     ;;
12594   esac
12595   ;;
12596
12597 solaris*)
12598   case $cc_basename in
12599   CC*)
12600     # The more standards-conforming stlport4 library is
12601     # incompatible with the Cstd library. Avoid specifying
12602     # it if it's in CXXFLAGS. Ignore libCrun as
12603     # -library=stlport4 depends on it.
12604     case " $CXX $CXXFLAGS " in
12605     *" -library=stlport4 "*)
12606       solaris_use_stlport4=yes
12607       ;;
12608     esac
12609
12610     # Adding this requires a known-good setup of shared libraries for
12611     # Sun compiler versions before 5.6, else PIC objects from an old
12612     # archive will be linked into the output, leading to subtle bugs.
12613     if test "$solaris_use_stlport4" != yes; then
12614       postdeps_CXX='-library=Cstd -library=Crun'
12615     fi
12616     ;;
12617   esac
12618   ;;
12619 esac
12620
12621 case " $postdeps_CXX " in
12622 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12623 esac
12624
12625 lt_prog_compiler_wl_CXX=
12626 lt_prog_compiler_pic_CXX=
12627 lt_prog_compiler_static_CXX=
12628
12629 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12630 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12631
12632   # C++ specific cases for pic, static, wl, etc.
12633   if test "$GXX" = yes; then
12634     lt_prog_compiler_wl_CXX='-Wl,'
12635     lt_prog_compiler_static_CXX='-static'
12636
12637     case $host_os in
12638     aix*)
12639       # All AIX code is PIC.
12640       if test "$host_cpu" = ia64; then
12641         # AIX 5 now supports IA64 processor
12642         lt_prog_compiler_static_CXX='-Bstatic'
12643       fi
12644       ;;
12645     amigaos*)
12646       # FIXME: we need at least 68020 code to build shared libraries, but
12647       # adding the `-m68020' flag to GCC prevents building anything better,
12648       # like `-m68040'.
12649       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12650       ;;
12651     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12652       # PIC is the default for these OSes.
12653       ;;
12654     mingw* | cygwin* | os2* | pw32*)
12655       # This hack is so that the source file can tell whether it is being
12656       # built for inclusion in a dll (and should export symbols for example).
12657       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12658       # (--disable-auto-import) libraries
12659       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12660       ;;
12661     darwin* | rhapsody*)
12662       # PIC is the default on this platform
12663       # Common symbols not allowed in MH_DYLIB files
12664       lt_prog_compiler_pic_CXX='-fno-common'
12665       ;;
12666     *djgpp*)
12667       # DJGPP does not support shared libraries at all
12668       lt_prog_compiler_pic_CXX=
12669       ;;
12670     interix[3-9]*)
12671       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12672       # Instead, we relocate shared libraries at runtime.
12673       ;;
12674     sysv4*MP*)
12675       if test -d /usr/nec; then
12676         lt_prog_compiler_pic_CXX=-Kconform_pic
12677       fi
12678       ;;
12679     hpux*)
12680       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12681       # not for PA HP-UX.
12682       case $host_cpu in
12683       hppa*64*|ia64*)
12684         ;;
12685       *)
12686         lt_prog_compiler_pic_CXX='-fPIC'
12687         ;;
12688       esac
12689       ;;
12690     *)
12691       lt_prog_compiler_pic_CXX='-fPIC'
12692       ;;
12693     esac
12694   else
12695     case $host_os in
12696       aix[4-9]*)
12697         # All AIX code is PIC.
12698         if test "$host_cpu" = ia64; then
12699           # AIX 5 now supports IA64 processor
12700           lt_prog_compiler_static_CXX='-Bstatic'
12701         else
12702           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12703         fi
12704         ;;
12705       chorus*)
12706         case $cc_basename in
12707         cxch68*)
12708           # Green Hills C++ Compiler
12709           # _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"
12710           ;;
12711         esac
12712         ;;
12713        darwin*)
12714          # PIC is the default on this platform
12715          # Common symbols not allowed in MH_DYLIB files
12716          case $cc_basename in
12717            xlc*)
12718            lt_prog_compiler_pic_CXX='-qnocommon'
12719            lt_prog_compiler_wl_CXX='-Wl,'
12720            ;;
12721          esac
12722        ;;
12723       dgux*)
12724         case $cc_basename in
12725           ec++*)
12726             lt_prog_compiler_pic_CXX='-KPIC'
12727             ;;
12728           ghcx*)
12729             # Green Hills C++ Compiler
12730             lt_prog_compiler_pic_CXX='-pic'
12731             ;;
12732           *)
12733             ;;
12734         esac
12735         ;;
12736       freebsd* | dragonfly*)
12737         # FreeBSD uses GNU C++
12738         ;;
12739       hpux9* | hpux10* | hpux11*)
12740         case $cc_basename in
12741           CC*)
12742             lt_prog_compiler_wl_CXX='-Wl,'
12743             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12744             if test "$host_cpu" != ia64; then
12745               lt_prog_compiler_pic_CXX='+Z'
12746             fi
12747             ;;
12748           aCC*)
12749             lt_prog_compiler_wl_CXX='-Wl,'
12750             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12751             case $host_cpu in
12752             hppa*64*|ia64*)
12753               # +Z the default
12754               ;;
12755             *)
12756               lt_prog_compiler_pic_CXX='+Z'
12757               ;;
12758             esac
12759             ;;
12760           *)
12761             ;;
12762         esac
12763         ;;
12764       interix*)
12765         # This is c89, which is MS Visual C++ (no shared libs)
12766         # Anyone wants to do a port?
12767         ;;
12768       irix5* | irix6* | nonstopux*)
12769         case $cc_basename in
12770           CC*)
12771             lt_prog_compiler_wl_CXX='-Wl,'
12772             lt_prog_compiler_static_CXX='-non_shared'
12773             # CC pic flag -KPIC is the default.
12774             ;;
12775           *)
12776             ;;
12777         esac
12778         ;;
12779       linux* | k*bsd*-gnu)
12780         case $cc_basename in
12781           KCC*)
12782             # KAI C++ Compiler
12783             lt_prog_compiler_wl_CXX='--backend -Wl,'
12784             lt_prog_compiler_pic_CXX='-fPIC'
12785             ;;
12786           icpc* | ecpc*)
12787             # Intel C++
12788             lt_prog_compiler_wl_CXX='-Wl,'
12789             lt_prog_compiler_pic_CXX='-KPIC'
12790             lt_prog_compiler_static_CXX='-static'
12791             ;;
12792           pgCC* | pgcpp*)
12793             # Portland Group C++ compiler.
12794             lt_prog_compiler_wl_CXX='-Wl,'
12795             lt_prog_compiler_pic_CXX='-fpic'
12796             lt_prog_compiler_static_CXX='-Bstatic'
12797             ;;
12798           cxx*)
12799             # Compaq C++
12800             # Make sure the PIC flag is empty.  It appears that all Alpha
12801             # Linux and Compaq Tru64 Unix objects are PIC.
12802             lt_prog_compiler_pic_CXX=
12803             lt_prog_compiler_static_CXX='-non_shared'
12804             ;;
12805           *)
12806             case `$CC -V 2>&1 | sed 5q` in
12807             *Sun\ C*)
12808               # Sun C++ 5.9
12809               lt_prog_compiler_pic_CXX='-KPIC'
12810               lt_prog_compiler_static_CXX='-Bstatic'
12811               lt_prog_compiler_wl_CXX='-Qoption ld '
12812               ;;
12813             esac
12814             ;;
12815         esac
12816         ;;
12817       lynxos*)
12818         ;;
12819       m88k*)
12820         ;;
12821       mvs*)
12822         case $cc_basename in
12823           cxx*)
12824             lt_prog_compiler_pic_CXX='-W c,exportall'
12825             ;;
12826           *)
12827             ;;
12828         esac
12829         ;;
12830       netbsd* | netbsdelf*-gnu)
12831         ;;
12832       osf3* | osf4* | osf5*)
12833         case $cc_basename in
12834           KCC*)
12835             lt_prog_compiler_wl_CXX='--backend -Wl,'
12836             ;;
12837           RCC*)
12838             # Rational C++ 2.4.1
12839             lt_prog_compiler_pic_CXX='-pic'
12840             ;;
12841           cxx*)
12842             # Digital/Compaq C++
12843             lt_prog_compiler_wl_CXX='-Wl,'
12844             # Make sure the PIC flag is empty.  It appears that all Alpha
12845             # Linux and Compaq Tru64 Unix objects are PIC.
12846             lt_prog_compiler_pic_CXX=
12847             lt_prog_compiler_static_CXX='-non_shared'
12848             ;;
12849           *)
12850             ;;
12851         esac
12852         ;;
12853       psos*)
12854         ;;
12855       solaris*)
12856         case $cc_basename in
12857           CC*)
12858             # Sun C++ 4.2, 5.x and Centerline C++
12859             lt_prog_compiler_pic_CXX='-KPIC'
12860             lt_prog_compiler_static_CXX='-Bstatic'
12861             lt_prog_compiler_wl_CXX='-Qoption ld '
12862             ;;
12863           gcx*)
12864             # Green Hills C++ Compiler
12865             lt_prog_compiler_pic_CXX='-PIC'
12866             ;;
12867           *)
12868             ;;
12869         esac
12870         ;;
12871       sunos4*)
12872         case $cc_basename in
12873           CC*)
12874             # Sun C++ 4.x
12875             lt_prog_compiler_pic_CXX='-pic'
12876             lt_prog_compiler_static_CXX='-Bstatic'
12877             ;;
12878           lcc*)
12879             # Lucid
12880             lt_prog_compiler_pic_CXX='-pic'
12881             ;;
12882           *)
12883             ;;
12884         esac
12885         ;;
12886       tandem*)
12887         case $cc_basename in
12888           NCC*)
12889             # NonStop-UX NCC 3.20
12890             lt_prog_compiler_pic_CXX='-KPIC'
12891             ;;
12892           *)
12893             ;;
12894         esac
12895         ;;
12896       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12897         case $cc_basename in
12898           CC*)
12899             lt_prog_compiler_wl_CXX='-Wl,'
12900             lt_prog_compiler_pic_CXX='-KPIC'
12901             lt_prog_compiler_static_CXX='-Bstatic'
12902             ;;
12903         esac
12904         ;;
12905       vxworks*)
12906         ;;
12907       *)
12908         lt_prog_compiler_can_build_shared_CXX=no
12909         ;;
12910     esac
12911   fi
12912
12913 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12914 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12915
12916 #
12917 # Check to make sure the PIC flag actually works.
12918 #
12919 if test -n "$lt_prog_compiler_pic_CXX"; then
12920
12921 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12922 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12923 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12924   $as_echo_n "(cached) " >&6
12925 else
12926   lt_cv_prog_compiler_pic_works_CXX=no
12927   ac_outfile=conftest.$ac_objext
12928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12929    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12930    # Insert the option either (1) after the last *FLAGS variable, or
12931    # (2) before a word containing "conftest.", or (3) at the end.
12932    # Note that $ac_compile itself does not contain backslashes and begins
12933    # with a dollar sign (not a hyphen), so the echo should work correctly.
12934    # The option is referenced via a variable to avoid confusing sed.
12935    lt_compile=`echo "$ac_compile" | $SED \
12936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12938    -e 's:$: $lt_compiler_flag:'`
12939    (eval echo "\"\$as_me:12939: $lt_compile\"" >&5)
12940    (eval "$lt_compile" 2>conftest.err)
12941    ac_status=$?
12942    cat conftest.err >&5
12943    echo "$as_me:12943: \$? = $ac_status" >&5
12944    if (exit $ac_status) && test -s "$ac_outfile"; then
12945      # The compiler can only warn and ignore the option if not recognized
12946      # So say no if there are warnings other than the usual output.
12947      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12948      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12949      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12950        lt_cv_prog_compiler_pic_works_CXX=yes
12951      fi
12952    fi
12953    $rm conftest*
12954
12955 fi
12956 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12957 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12958
12959 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12960     case $lt_prog_compiler_pic_CXX in
12961      "" | " "*) ;;
12962      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12963      esac
12964 else
12965     lt_prog_compiler_pic_CXX=
12966      lt_prog_compiler_can_build_shared_CXX=no
12967 fi
12968
12969 fi
12970 case $host_os in
12971   # For platforms which do not support PIC, -DPIC is meaningless:
12972   *djgpp*)
12973     lt_prog_compiler_pic_CXX=
12974     ;;
12975   *)
12976     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12977     ;;
12978 esac
12979
12980 #
12981 # Check to make sure the static flag actually works.
12982 #
12983 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12984 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12985 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12986 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12987   $as_echo_n "(cached) " >&6
12988 else
12989   lt_cv_prog_compiler_static_works_CXX=no
12990    save_LDFLAGS="$LDFLAGS"
12991    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12992    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12993    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12994      # The linker can only warn and ignore the option if not recognized
12995      # So say no if there are warnings
12996      if test -s conftest.err; then
12997        # Append any errors to the config.log.
12998        cat conftest.err 1>&5
12999        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13000        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13001        if diff conftest.exp conftest.er2 >/dev/null; then
13002          lt_cv_prog_compiler_static_works_CXX=yes
13003        fi
13004      else
13005        lt_cv_prog_compiler_static_works_CXX=yes
13006      fi
13007    fi
13008    $rm -r conftest*
13009    LDFLAGS="$save_LDFLAGS"
13010
13011 fi
13012 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13013 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13014
13015 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13016     :
13017 else
13018     lt_prog_compiler_static_CXX=
13019 fi
13020
13021
13022 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13023 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13024 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13025   $as_echo_n "(cached) " >&6
13026 else
13027   lt_cv_prog_compiler_c_o_CXX=no
13028    $rm -r conftest 2>/dev/null
13029    mkdir conftest
13030    cd conftest
13031    mkdir out
13032    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13033
13034    lt_compiler_flag="-o out/conftest2.$ac_objext"
13035    # Insert the option either (1) after the last *FLAGS variable, or
13036    # (2) before a word containing "conftest.", or (3) at the end.
13037    # Note that $ac_compile itself does not contain backslashes and begins
13038    # with a dollar sign (not a hyphen), so the echo should work correctly.
13039    lt_compile=`echo "$ac_compile" | $SED \
13040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13042    -e 's:$: $lt_compiler_flag:'`
13043    (eval echo "\"\$as_me:13043: $lt_compile\"" >&5)
13044    (eval "$lt_compile" 2>out/conftest.err)
13045    ac_status=$?
13046    cat out/conftest.err >&5
13047    echo "$as_me:13047: \$? = $ac_status" >&5
13048    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13049    then
13050      # The compiler can only warn and ignore the option if not recognized
13051      # So say no if there are warnings
13052      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13053      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13054      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13055        lt_cv_prog_compiler_c_o_CXX=yes
13056      fi
13057    fi
13058    chmod u+w . 2>&5
13059    $rm conftest*
13060    # SGI C++ compiler will create directory out/ii_files/ for
13061    # template instantiation
13062    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13063    $rm out/* && rmdir out
13064    cd ..
13065    rmdir conftest
13066    $rm conftest*
13067
13068 fi
13069 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13070 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13071
13072
13073 hard_links="nottested"
13074 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13075   # do not overwrite the value of need_locks provided by the user
13076   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13077 $as_echo_n "checking if we can lock with hard links... " >&6; }
13078   hard_links=yes
13079   $rm conftest*
13080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13081   touch conftest.a
13082   ln conftest.a conftest.b 2>&5 || hard_links=no
13083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13084   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13085 $as_echo "$hard_links" >&6; }
13086   if test "$hard_links" = no; then
13087     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13089     need_locks=warn
13090   fi
13091 else
13092   need_locks=no
13093 fi
13094
13095 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13097
13098   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13099   case $host_os in
13100   aix[4-9]*)
13101     # If we're using GNU nm, then we don't want the "-C" option.
13102     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13103     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13104       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'
13105     else
13106       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'
13107     fi
13108     ;;
13109   pw32*)
13110     export_symbols_cmds_CXX="$ltdll_cmds"
13111   ;;
13112   cygwin* | mingw*)
13113     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'
13114   ;;
13115   linux* | k*bsd*-gnu)
13116     link_all_deplibs_CXX=no
13117   ;;
13118   *)
13119     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13120   ;;
13121   esac
13122   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13123
13124 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13125 $as_echo "$ld_shlibs_CXX" >&6; }
13126 test "$ld_shlibs_CXX" = no && can_build_shared=no
13127
13128 #
13129 # Do we need to explicitly link libc?
13130 #
13131 case "x$archive_cmds_need_lc_CXX" in
13132 x|xyes)
13133   # Assume -lc should be added
13134   archive_cmds_need_lc_CXX=yes
13135
13136   if test "$enable_shared" = yes && test "$GCC" = yes; then
13137     case $archive_cmds_CXX in
13138     *'~'*)
13139       # FIXME: we may have to deal with multi-command sequences.
13140       ;;
13141     '$CC '*)
13142       # Test whether the compiler implicitly links with -lc since on some
13143       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13144       # to ld, don't add -lc before -lgcc.
13145       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13147       $rm conftest*
13148       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13149
13150       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151   (eval $ac_compile) 2>&5
13152   ac_status=$?
13153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } 2>conftest.err; then
13155         soname=conftest
13156         lib=conftest
13157         libobjs=conftest.$ac_objext
13158         deplibs=
13159         wl=$lt_prog_compiler_wl_CXX
13160         pic_flag=$lt_prog_compiler_pic_CXX
13161         compiler_flags=-v
13162         linker_flags=-v
13163         verstring=
13164         output_objdir=.
13165         libname=conftest
13166         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13167         allow_undefined_flag_CXX=
13168         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13169   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13170   ac_status=$?
13171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }
13173         then
13174           archive_cmds_need_lc_CXX=no
13175         else
13176           archive_cmds_need_lc_CXX=yes
13177         fi
13178         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13179       else
13180         cat conftest.err 1>&5
13181       fi
13182       $rm conftest*
13183       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13184 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13185       ;;
13186     esac
13187   fi
13188   ;;
13189 esac
13190
13191 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13192 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13193 library_names_spec=
13194 libname_spec='lib$name'
13195 soname_spec=
13196 shrext_cmds=".so"
13197 postinstall_cmds=
13198 postuninstall_cmds=
13199 finish_cmds=
13200 finish_eval=
13201 shlibpath_var=
13202 shlibpath_overrides_runpath=unknown
13203 version_type=none
13204 dynamic_linker="$host_os ld.so"
13205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13206
13207 need_lib_prefix=unknown
13208 hardcode_into_libs=no
13209
13210 # when you set need_version to no, make sure it does not cause -set_version
13211 # flags to be left without arguments
13212 need_version=unknown
13213
13214 case $host_os in
13215 aix3*)
13216   version_type=linux
13217   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13218   shlibpath_var=LIBPATH
13219
13220   # AIX 3 has no versioning support, so we append a major version to the name.
13221   soname_spec='${libname}${release}${shared_ext}$major'
13222   ;;
13223
13224 aix[4-9]*)
13225   version_type=linux
13226   need_lib_prefix=no
13227   need_version=no
13228   hardcode_into_libs=yes
13229   if test "$host_cpu" = ia64; then
13230     # AIX 5 supports IA64
13231     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13232     shlibpath_var=LD_LIBRARY_PATH
13233   else
13234     # With GCC up to 2.95.x, collect2 would create an import file
13235     # for dependence libraries.  The import file would start with
13236     # the line `#! .'.  This would cause the generated library to
13237     # depend on `.', always an invalid library.  This was fixed in
13238     # development snapshots of GCC prior to 3.0.
13239     case $host_os in
13240       aix4 | aix4.[01] | aix4.[01].*)
13241       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13242            echo ' yes '
13243            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13244         :
13245       else
13246         can_build_shared=no
13247       fi
13248       ;;
13249     esac
13250     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13251     # soname into executable. Probably we can add versioning support to
13252     # collect2, so additional links can be useful in future.
13253     if test "$aix_use_runtimelinking" = yes; then
13254       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13255       # instead of lib<name>.a to let people know that these are not
13256       # typical AIX shared libraries.
13257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258     else
13259       # We preserve .a as extension for shared libraries through AIX4.2
13260       # and later when we are not doing run time linking.
13261       library_names_spec='${libname}${release}.a $libname.a'
13262       soname_spec='${libname}${release}${shared_ext}$major'
13263     fi
13264     shlibpath_var=LIBPATH
13265   fi
13266   ;;
13267
13268 amigaos*)
13269   library_names_spec='$libname.ixlibrary $libname.a'
13270   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13271   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'
13272   ;;
13273
13274 beos*)
13275   library_names_spec='${libname}${shared_ext}'
13276   dynamic_linker="$host_os ld.so"
13277   shlibpath_var=LIBRARY_PATH
13278   ;;
13279
13280 bsdi[45]*)
13281   version_type=linux
13282   need_version=no
13283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284   soname_spec='${libname}${release}${shared_ext}$major'
13285   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13286   shlibpath_var=LD_LIBRARY_PATH
13287   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13288   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13289   # the default ld.so.conf also contains /usr/contrib/lib and
13290   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13291   # libtool to hard-code these into programs
13292   ;;
13293
13294 cygwin* | mingw* | pw32*)
13295   version_type=windows
13296   shrext_cmds=".dll"
13297   need_version=no
13298   need_lib_prefix=no
13299
13300   case $GCC,$host_os in
13301   yes,cygwin* | yes,mingw* | yes,pw32*)
13302     library_names_spec='$libname.dll.a'
13303     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13304     postinstall_cmds='base_file=`basename \${file}`~
13305       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13306       dldir=$destdir/`dirname \$dlpath`~
13307       test -d \$dldir || mkdir -p \$dldir~
13308       $install_prog $dir/$dlname \$dldir/$dlname~
13309       chmod a+x \$dldir/$dlname'
13310     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13311       dlpath=$dir/\$dldll~
13312        $rm \$dlpath'
13313     shlibpath_overrides_runpath=yes
13314
13315     case $host_os in
13316     cygwin*)
13317       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13318       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13319       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13320       ;;
13321     mingw*)
13322       # MinGW DLLs use traditional 'lib' prefix
13323       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13324       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13325       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13326         # It is most probably a Windows format PATH printed by
13327         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13328         # path with ; separators, and with drive letters. We can handle the
13329         # drive letters (cygwin fileutils understands them), so leave them,
13330         # especially as we might pass files found there to a mingw objdump,
13331         # which wouldn't understand a cygwinified path. Ahh.
13332         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13333       else
13334         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13335       fi
13336       ;;
13337     pw32*)
13338       # pw32 DLLs use 'pw' prefix rather than 'lib'
13339       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13340       ;;
13341     esac
13342     ;;
13343
13344   *)
13345     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13346     ;;
13347   esac
13348   dynamic_linker='Win32 ld.exe'
13349   # FIXME: first we should search . and the directory the executable is in
13350   shlibpath_var=PATH
13351   ;;
13352
13353 darwin* | rhapsody*)
13354   dynamic_linker="$host_os dyld"
13355   version_type=darwin
13356   need_lib_prefix=no
13357   need_version=no
13358   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13359   soname_spec='${libname}${release}${major}$shared_ext'
13360   shlibpath_overrides_runpath=yes
13361   shlibpath_var=DYLD_LIBRARY_PATH
13362   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13363
13364   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13365   ;;
13366
13367 dgux*)
13368   version_type=linux
13369   need_lib_prefix=no
13370   need_version=no
13371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13372   soname_spec='${libname}${release}${shared_ext}$major'
13373   shlibpath_var=LD_LIBRARY_PATH
13374   ;;
13375
13376 freebsd1*)
13377   dynamic_linker=no
13378   ;;
13379
13380 freebsd* | dragonfly*)
13381   # DragonFly does not have aout.  When/if they implement a new
13382   # versioning mechanism, adjust this.
13383   if test -x /usr/bin/objformat; then
13384     objformat=`/usr/bin/objformat`
13385   else
13386     case $host_os in
13387     freebsd[123]*) objformat=aout ;;
13388     *) objformat=elf ;;
13389     esac
13390   fi
13391   version_type=freebsd-$objformat
13392   case $version_type in
13393     freebsd-elf*)
13394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13395       need_version=no
13396       need_lib_prefix=no
13397       ;;
13398     freebsd-*)
13399       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13400       need_version=yes
13401       ;;
13402   esac
13403   shlibpath_var=LD_LIBRARY_PATH
13404   case $host_os in
13405   freebsd2*)
13406     shlibpath_overrides_runpath=yes
13407     ;;
13408   freebsd3.[01]* | freebsdelf3.[01]*)
13409     shlibpath_overrides_runpath=yes
13410     hardcode_into_libs=yes
13411     ;;
13412   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13413   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13414     shlibpath_overrides_runpath=no
13415     hardcode_into_libs=yes
13416     ;;
13417   *) # from 4.6 on, and DragonFly
13418     shlibpath_overrides_runpath=yes
13419     hardcode_into_libs=yes
13420     ;;
13421   esac
13422   ;;
13423
13424 gnu*)
13425   version_type=linux
13426   need_lib_prefix=no
13427   need_version=no
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13429   soname_spec='${libname}${release}${shared_ext}$major'
13430   shlibpath_var=LD_LIBRARY_PATH
13431   hardcode_into_libs=yes
13432   ;;
13433
13434 hpux9* | hpux10* | hpux11*)
13435   # Give a soname corresponding to the major version so that dld.sl refuses to
13436   # link against other versions.
13437   version_type=sunos
13438   need_lib_prefix=no
13439   need_version=no
13440   case $host_cpu in
13441   ia64*)
13442     shrext_cmds='.so'
13443     hardcode_into_libs=yes
13444     dynamic_linker="$host_os dld.so"
13445     shlibpath_var=LD_LIBRARY_PATH
13446     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13448     soname_spec='${libname}${release}${shared_ext}$major'
13449     if test "X$HPUX_IA64_MODE" = X32; then
13450       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13451     else
13452       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13453     fi
13454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13455     ;;
13456    hppa*64*)
13457      shrext_cmds='.sl'
13458      hardcode_into_libs=yes
13459      dynamic_linker="$host_os dld.sl"
13460      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13461      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13462      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463      soname_spec='${libname}${release}${shared_ext}$major'
13464      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13465      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13466      ;;
13467    *)
13468     shrext_cmds='.sl'
13469     dynamic_linker="$host_os dld.sl"
13470     shlibpath_var=SHLIB_PATH
13471     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473     soname_spec='${libname}${release}${shared_ext}$major'
13474     ;;
13475   esac
13476   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13477   postinstall_cmds='chmod 555 $lib'
13478   ;;
13479
13480 interix[3-9]*)
13481   version_type=linux
13482   need_lib_prefix=no
13483   need_version=no
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13485   soname_spec='${libname}${release}${shared_ext}$major'
13486   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   shlibpath_overrides_runpath=no
13489   hardcode_into_libs=yes
13490   ;;
13491
13492 irix5* | irix6* | nonstopux*)
13493   case $host_os in
13494     nonstopux*) version_type=nonstopux ;;
13495     *)
13496         if test "$lt_cv_prog_gnu_ld" = yes; then
13497                 version_type=linux
13498         else
13499                 version_type=irix
13500         fi ;;
13501   esac
13502   need_lib_prefix=no
13503   need_version=no
13504   soname_spec='${libname}${release}${shared_ext}$major'
13505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13506   case $host_os in
13507   irix5* | nonstopux*)
13508     libsuff= shlibsuff=
13509     ;;
13510   *)
13511     case $LD in # libtool.m4 will add one of these switches to LD
13512     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13513       libsuff= shlibsuff= libmagic=32-bit;;
13514     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13515       libsuff=32 shlibsuff=N32 libmagic=N32;;
13516     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13517       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13518     *) libsuff= shlibsuff= libmagic=never-match;;
13519     esac
13520     ;;
13521   esac
13522   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13523   shlibpath_overrides_runpath=no
13524   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13525   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13526   hardcode_into_libs=yes
13527   ;;
13528
13529 # No shared lib support for Linux oldld, aout, or coff.
13530 linux*oldld* | linux*aout* | linux*coff*)
13531   dynamic_linker=no
13532   ;;
13533
13534 # This must be Linux ELF.
13535 linux* | k*bsd*-gnu)
13536   version_type=linux
13537   need_lib_prefix=no
13538   need_version=no
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13542   shlibpath_var=LD_LIBRARY_PATH
13543   shlibpath_overrides_runpath=no
13544   # This implies no fast_install, which is unacceptable.
13545   # Some rework will be needed to allow for fast_install
13546   # before this can be enabled.
13547   hardcode_into_libs=yes
13548
13549   # Append ld.so.conf contents to the search path
13550   if test -f /etc/ld.so.conf; then
13551     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' ' '`
13552     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13553   fi
13554
13555   # We used to test for /lib/ld.so.1 and disable shared libraries on
13556   # powerpc, because MkLinux only supported shared libraries with the
13557   # GNU dynamic linker.  Since this was broken with cross compilers,
13558   # most powerpc-linux boxes support dynamic linking these days and
13559   # people can always --disable-shared, the test was removed, and we
13560   # assume the GNU/Linux dynamic linker is in use.
13561   dynamic_linker='GNU/Linux ld.so'
13562   ;;
13563
13564 netbsdelf*-gnu)
13565   version_type=linux
13566   need_lib_prefix=no
13567   need_version=no
13568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13569   soname_spec='${libname}${release}${shared_ext}$major'
13570   shlibpath_var=LD_LIBRARY_PATH
13571   shlibpath_overrides_runpath=no
13572   hardcode_into_libs=yes
13573   dynamic_linker='NetBSD ld.elf_so'
13574   ;;
13575
13576 netbsd*)
13577   version_type=sunos
13578   need_lib_prefix=no
13579   need_version=no
13580   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13582     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13583     dynamic_linker='NetBSD (a.out) ld.so'
13584   else
13585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13586     soname_spec='${libname}${release}${shared_ext}$major'
13587     dynamic_linker='NetBSD ld.elf_so'
13588   fi
13589   shlibpath_var=LD_LIBRARY_PATH
13590   shlibpath_overrides_runpath=yes
13591   hardcode_into_libs=yes
13592   ;;
13593
13594 newsos6)
13595   version_type=linux
13596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597   shlibpath_var=LD_LIBRARY_PATH
13598   shlibpath_overrides_runpath=yes
13599   ;;
13600
13601 nto-qnx*)
13602   version_type=linux
13603   need_lib_prefix=no
13604   need_version=no
13605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606   soname_spec='${libname}${release}${shared_ext}$major'
13607   shlibpath_var=LD_LIBRARY_PATH
13608   shlibpath_overrides_runpath=yes
13609   ;;
13610
13611 openbsd*)
13612   version_type=sunos
13613   sys_lib_dlsearch_path_spec="/usr/lib"
13614   need_lib_prefix=no
13615   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13616   case $host_os in
13617     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13618     *)                         need_version=no  ;;
13619   esac
13620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13622   shlibpath_var=LD_LIBRARY_PATH
13623   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13624     case $host_os in
13625       openbsd2.[89] | openbsd2.[89].*)
13626         shlibpath_overrides_runpath=no
13627         ;;
13628       *)
13629         shlibpath_overrides_runpath=yes
13630         ;;
13631       esac
13632   else
13633     shlibpath_overrides_runpath=yes
13634   fi
13635   ;;
13636
13637 os2*)
13638   libname_spec='$name'
13639   shrext_cmds=".dll"
13640   need_lib_prefix=no
13641   library_names_spec='$libname${shared_ext} $libname.a'
13642   dynamic_linker='OS/2 ld.exe'
13643   shlibpath_var=LIBPATH
13644   ;;
13645
13646 osf3* | osf4* | osf5*)
13647   version_type=osf
13648   need_lib_prefix=no
13649   need_version=no
13650   soname_spec='${libname}${release}${shared_ext}$major'
13651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652   shlibpath_var=LD_LIBRARY_PATH
13653   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13654   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13655   ;;
13656
13657 rdos*)
13658   dynamic_linker=no
13659   ;;
13660
13661 solaris*)
13662   version_type=linux
13663   need_lib_prefix=no
13664   need_version=no
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   shlibpath_var=LD_LIBRARY_PATH
13668   shlibpath_overrides_runpath=yes
13669   hardcode_into_libs=yes
13670   # ldd complains unless libraries are executable
13671   postinstall_cmds='chmod +x $lib'
13672   ;;
13673
13674 sunos4*)
13675   version_type=sunos
13676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13677   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13678   shlibpath_var=LD_LIBRARY_PATH
13679   shlibpath_overrides_runpath=yes
13680   if test "$with_gnu_ld" = yes; then
13681     need_lib_prefix=no
13682   fi
13683   need_version=yes
13684   ;;
13685
13686 sysv4 | sysv4.3*)
13687   version_type=linux
13688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13689   soname_spec='${libname}${release}${shared_ext}$major'
13690   shlibpath_var=LD_LIBRARY_PATH
13691   case $host_vendor in
13692     sni)
13693       shlibpath_overrides_runpath=no
13694       need_lib_prefix=no
13695       export_dynamic_flag_spec='${wl}-Blargedynsym'
13696       runpath_var=LD_RUN_PATH
13697       ;;
13698     siemens)
13699       need_lib_prefix=no
13700       ;;
13701     motorola)
13702       need_lib_prefix=no
13703       need_version=no
13704       shlibpath_overrides_runpath=no
13705       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13706       ;;
13707   esac
13708   ;;
13709
13710 sysv4*MP*)
13711   if test -d /usr/nec ;then
13712     version_type=linux
13713     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13714     soname_spec='$libname${shared_ext}.$major'
13715     shlibpath_var=LD_LIBRARY_PATH
13716   fi
13717   ;;
13718
13719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13720   version_type=freebsd-elf
13721   need_lib_prefix=no
13722   need_version=no
13723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13724   soname_spec='${libname}${release}${shared_ext}$major'
13725   shlibpath_var=LD_LIBRARY_PATH
13726   hardcode_into_libs=yes
13727   if test "$with_gnu_ld" = yes; then
13728     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13729     shlibpath_overrides_runpath=no
13730   else
13731     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13732     shlibpath_overrides_runpath=yes
13733     case $host_os in
13734       sco3.2v5*)
13735         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13736         ;;
13737     esac
13738   fi
13739   sys_lib_dlsearch_path_spec='/usr/lib'
13740   ;;
13741
13742 uts4*)
13743   version_type=linux
13744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745   soname_spec='${libname}${release}${shared_ext}$major'
13746   shlibpath_var=LD_LIBRARY_PATH
13747   ;;
13748
13749 *)
13750   dynamic_linker=no
13751   ;;
13752 esac
13753 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13754 $as_echo "$dynamic_linker" >&6; }
13755 test "$dynamic_linker" = no && can_build_shared=no
13756
13757 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13758   $as_echo_n "(cached) " >&6
13759 else
13760   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13761 fi
13762
13763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13765   $as_echo_n "(cached) " >&6
13766 else
13767   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13768 fi
13769
13770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13771
13772 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13773 if test "$GCC" = yes; then
13774   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13775 fi
13776
13777 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13779 hardcode_action_CXX=
13780 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13781    test -n "$runpath_var_CXX" || \
13782    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13783
13784   # We can hardcode non-existant directories.
13785   if test "$hardcode_direct_CXX" != no &&
13786      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13787      # have to relink, otherwise we might link with an installed library
13788      # when we should be linking with a yet-to-be-installed one
13789      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13790      test "$hardcode_minus_L_CXX" != no; then
13791     # Linking always hardcodes the temporary library directory.
13792     hardcode_action_CXX=relink
13793   else
13794     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13795     hardcode_action_CXX=immediate
13796   fi
13797 else
13798   # We cannot hardcode anything, or else we can only hardcode existing
13799   # directories.
13800   hardcode_action_CXX=unsupported
13801 fi
13802 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13803 $as_echo "$hardcode_action_CXX" >&6; }
13804
13805 if test "$hardcode_action_CXX" = relink; then
13806   # Fast installation is not supported
13807   enable_fast_install=no
13808 elif test "$shlibpath_overrides_runpath" = yes ||
13809      test "$enable_shared" = no; then
13810   # Fast installation is not necessary
13811   enable_fast_install=needless
13812 fi
13813
13814
13815 # The else clause should only fire when bootstrapping the
13816 # libtool distribution, otherwise you forgot to ship ltmain.sh
13817 # with your package, and you will get complaints that there are
13818 # no rules to generate ltmain.sh.
13819 if test -f "$ltmain"; then
13820   # See if we are running on zsh, and set the options which allow our commands through
13821   # without removal of \ escapes.
13822   if test -n "${ZSH_VERSION+set}" ; then
13823     setopt NO_GLOB_SUBST
13824   fi
13825   # Now quote all the things that may contain metacharacters while being
13826   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13827   # variables and quote the copies for generation of the libtool script.
13828   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13829     SED SHELL STRIP \
13830     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13831     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13832     deplibs_check_method reload_flag reload_cmds need_locks \
13833     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13834     lt_cv_sys_global_symbol_to_c_name_address \
13835     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13836     old_postinstall_cmds old_postuninstall_cmds \
13837     compiler_CXX \
13838     CC_CXX \
13839     LD_CXX \
13840     lt_prog_compiler_wl_CXX \
13841     lt_prog_compiler_pic_CXX \
13842     lt_prog_compiler_static_CXX \
13843     lt_prog_compiler_no_builtin_flag_CXX \
13844     export_dynamic_flag_spec_CXX \
13845     thread_safe_flag_spec_CXX \
13846     whole_archive_flag_spec_CXX \
13847     enable_shared_with_static_runtimes_CXX \
13848     old_archive_cmds_CXX \
13849     old_archive_from_new_cmds_CXX \
13850     predep_objects_CXX \
13851     postdep_objects_CXX \
13852     predeps_CXX \
13853     postdeps_CXX \
13854     compiler_lib_search_path_CXX \
13855     compiler_lib_search_dirs_CXX \
13856     archive_cmds_CXX \
13857     archive_expsym_cmds_CXX \
13858     postinstall_cmds_CXX \
13859     postuninstall_cmds_CXX \
13860     old_archive_from_expsyms_cmds_CXX \
13861     allow_undefined_flag_CXX \
13862     no_undefined_flag_CXX \
13863     export_symbols_cmds_CXX \
13864     hardcode_libdir_flag_spec_CXX \
13865     hardcode_libdir_flag_spec_ld_CXX \
13866     hardcode_libdir_separator_CXX \
13867     hardcode_automatic_CXX \
13868     module_cmds_CXX \
13869     module_expsym_cmds_CXX \
13870     lt_cv_prog_compiler_c_o_CXX \
13871     fix_srcfile_path_CXX \
13872     exclude_expsyms_CXX \
13873     include_expsyms_CXX; do
13874
13875     case $var in
13876     old_archive_cmds_CXX | \
13877     old_archive_from_new_cmds_CXX | \
13878     archive_cmds_CXX | \
13879     archive_expsym_cmds_CXX | \
13880     module_cmds_CXX | \
13881     module_expsym_cmds_CXX | \
13882     old_archive_from_expsyms_cmds_CXX | \
13883     export_symbols_cmds_CXX | \
13884     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13885     postinstall_cmds | postuninstall_cmds | \
13886     old_postinstall_cmds | old_postuninstall_cmds | \
13887     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13888       # Double-quote double-evaled strings.
13889       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13890       ;;
13891     *)
13892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13893       ;;
13894     esac
13895   done
13896
13897   case $lt_echo in
13898   *'\$0 --fallback-echo"')
13899     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13900     ;;
13901   esac
13902
13903 cfgfile="$ofile"
13904
13905   cat <<__EOF__ >> "$cfgfile"
13906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13907
13908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13909
13910 # Shell to use when invoking shell scripts.
13911 SHELL=$lt_SHELL
13912
13913 # Whether or not to build shared libraries.
13914 build_libtool_libs=$enable_shared
13915
13916 # Whether or not to build static libraries.
13917 build_old_libs=$enable_static
13918
13919 # Whether or not to add -lc for building shared libraries.
13920 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13921
13922 # Whether or not to disallow shared libs when runtime libs are static
13923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13924
13925 # Whether or not to optimize for fast installation.
13926 fast_install=$enable_fast_install
13927
13928 # The host system.
13929 host_alias=$host_alias
13930 host=$host
13931 host_os=$host_os
13932
13933 # The build system.
13934 build_alias=$build_alias
13935 build=$build
13936 build_os=$build_os
13937
13938 # An echo program that does not interpret backslashes.
13939 echo=$lt_echo
13940
13941 # The archiver.
13942 AR=$lt_AR
13943 AR_FLAGS=$lt_AR_FLAGS
13944
13945 # A C compiler.
13946 LTCC=$lt_LTCC
13947
13948 # LTCC compiler flags.
13949 LTCFLAGS=$lt_LTCFLAGS
13950
13951 # A language-specific compiler.
13952 CC=$lt_compiler_CXX
13953
13954 # Is the compiler the GNU C compiler?
13955 with_gcc=$GCC_CXX
13956
13957 # An ERE matcher.
13958 EGREP=$lt_EGREP
13959
13960 # The linker used to build libraries.
13961 LD=$lt_LD_CXX
13962
13963 # Whether we need hard or soft links.
13964 LN_S=$lt_LN_S
13965
13966 # A BSD-compatible nm program.
13967 NM=$lt_NM
13968
13969 # A symbol stripping program
13970 STRIP=$lt_STRIP
13971
13972 # Used to examine libraries when file_magic_cmd begins "file"
13973 MAGIC_CMD=$MAGIC_CMD
13974
13975 # Used on cygwin: DLL creation program.
13976 DLLTOOL="$DLLTOOL"
13977
13978 # Used on cygwin: object dumper.
13979 OBJDUMP="$OBJDUMP"
13980
13981 # Used on cygwin: assembler.
13982 AS="$AS"
13983
13984 # The name of the directory that contains temporary libtool files.
13985 objdir=$objdir
13986
13987 # How to create reloadable object files.
13988 reload_flag=$lt_reload_flag
13989 reload_cmds=$lt_reload_cmds
13990
13991 # How to pass a linker flag through the compiler.
13992 wl=$lt_lt_prog_compiler_wl_CXX
13993
13994 # Object file suffix (normally "o").
13995 objext="$ac_objext"
13996
13997 # Old archive suffix (normally "a").
13998 libext="$libext"
13999
14000 # Shared library suffix (normally ".so").
14001 shrext_cmds='$shrext_cmds'
14002
14003 # Executable file suffix (normally "").
14004 exeext="$exeext"
14005
14006 # Additional compiler flags for building library objects.
14007 pic_flag=$lt_lt_prog_compiler_pic_CXX
14008 pic_mode=$pic_mode
14009
14010 # What is the maximum length of a command?
14011 max_cmd_len=$lt_cv_sys_max_cmd_len
14012
14013 # Does compiler simultaneously support -c and -o options?
14014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14015
14016 # Must we lock files when doing compilation?
14017 need_locks=$lt_need_locks
14018
14019 # Do we need the lib prefix for modules?
14020 need_lib_prefix=$need_lib_prefix
14021
14022 # Do we need a version for libraries?
14023 need_version=$need_version
14024
14025 # Whether dlopen is supported.
14026 dlopen_support=$enable_dlopen
14027
14028 # Whether dlopen of programs is supported.
14029 dlopen_self=$enable_dlopen_self
14030
14031 # Whether dlopen of statically linked programs is supported.
14032 dlopen_self_static=$enable_dlopen_self_static
14033
14034 # Compiler flag to prevent dynamic linking.
14035 link_static_flag=$lt_lt_prog_compiler_static_CXX
14036
14037 # Compiler flag to turn off builtin functions.
14038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14039
14040 # Compiler flag to allow reflexive dlopens.
14041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14042
14043 # Compiler flag to generate shared objects directly from archives.
14044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14045
14046 # Compiler flag to generate thread-safe objects.
14047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14048
14049 # Library versioning type.
14050 version_type=$version_type
14051
14052 # Format of library name prefix.
14053 libname_spec=$lt_libname_spec
14054
14055 # List of archive names.  First name is the real one, the rest are links.
14056 # The last name is the one that the linker finds with -lNAME.
14057 library_names_spec=$lt_library_names_spec
14058
14059 # The coded name of the library, if different from the real name.
14060 soname_spec=$lt_soname_spec
14061
14062 # Commands used to build and install an old-style archive.
14063 RANLIB=$lt_RANLIB
14064 old_archive_cmds=$lt_old_archive_cmds_CXX
14065 old_postinstall_cmds=$lt_old_postinstall_cmds
14066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14067
14068 # Create an old-style archive from a shared archive.
14069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14070
14071 # Create a temporary old-style archive to link instead of a shared archive.
14072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14073
14074 # Commands used to build and install a shared archive.
14075 archive_cmds=$lt_archive_cmds_CXX
14076 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14077 postinstall_cmds=$lt_postinstall_cmds
14078 postuninstall_cmds=$lt_postuninstall_cmds
14079
14080 # Commands used to build a loadable module (assumed same as above if empty)
14081 module_cmds=$lt_module_cmds_CXX
14082 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14083
14084 # Commands to strip libraries.
14085 old_striplib=$lt_old_striplib
14086 striplib=$lt_striplib
14087
14088 # Dependencies to place before the objects being linked to create a
14089 # shared library.
14090 predep_objects=$lt_predep_objects_CXX
14091
14092 # Dependencies to place after the objects being linked to create a
14093 # shared library.
14094 postdep_objects=$lt_postdep_objects_CXX
14095
14096 # Dependencies to place before the objects being linked to create a
14097 # shared library.
14098 predeps=$lt_predeps_CXX
14099
14100 # Dependencies to place after the objects being linked to create a
14101 # shared library.
14102 postdeps=$lt_postdeps_CXX
14103
14104 # The directories searched by this compiler when creating a shared
14105 # library
14106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14107
14108 # The library search path used internally by the compiler when linking
14109 # a shared library.
14110 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14111
14112 # Method to check whether dependent libraries are shared objects.
14113 deplibs_check_method=$lt_deplibs_check_method
14114
14115 # Command to use when deplibs_check_method == file_magic.
14116 file_magic_cmd=$lt_file_magic_cmd
14117
14118 # Flag that allows shared libraries with undefined symbols to be built.
14119 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14120
14121 # Flag that forces no undefined symbols.
14122 no_undefined_flag=$lt_no_undefined_flag_CXX
14123
14124 # Commands used to finish a libtool library installation in a directory.
14125 finish_cmds=$lt_finish_cmds
14126
14127 # Same as above, but a single script fragment to be evaled but not shown.
14128 finish_eval=$lt_finish_eval
14129
14130 # Take the output of nm and produce a listing of raw symbols and C names.
14131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14132
14133 # Transform the output of nm in a proper C declaration
14134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14135
14136 # Transform the output of nm in a C name address pair
14137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14138
14139 # This is the shared library runtime path variable.
14140 runpath_var=$runpath_var
14141
14142 # This is the shared library path variable.
14143 shlibpath_var=$shlibpath_var
14144
14145 # Is shlibpath searched before the hard-coded library search path?
14146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14147
14148 # How to hardcode a shared library path into an executable.
14149 hardcode_action=$hardcode_action_CXX
14150
14151 # Whether we should hardcode library paths into libraries.
14152 hardcode_into_libs=$hardcode_into_libs
14153
14154 # Flag to hardcode \$libdir into a binary during linking.
14155 # This must work even if \$libdir does not exist.
14156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14157
14158 # If ld is used when linking, flag to hardcode \$libdir into
14159 # a binary during linking. This must work even if \$libdir does
14160 # not exist.
14161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14162
14163 # Whether we need a single -rpath flag with a separated argument.
14164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14165
14166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14167 # resulting binary.
14168 hardcode_direct=$hardcode_direct_CXX
14169
14170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14171 # resulting binary.
14172 hardcode_minus_L=$hardcode_minus_L_CXX
14173
14174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14175 # the resulting binary.
14176 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14177
14178 # Set to yes if building a shared library automatically hardcodes DIR into the library
14179 # and all subsequent libraries and executables linked against it.
14180 hardcode_automatic=$hardcode_automatic_CXX
14181
14182 # Variables whose values should be saved in libtool wrapper scripts and
14183 # restored at relink time.
14184 variables_saved_for_relink="$variables_saved_for_relink"
14185
14186 # Whether libtool must link a program against all its dependency libraries.
14187 link_all_deplibs=$link_all_deplibs_CXX
14188
14189 # Compile-time system search path for libraries
14190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14191
14192 # Run-time system search path for libraries
14193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14194
14195 # Fix the shell variable \$srcfile for the compiler.
14196 fix_srcfile_path=$lt_fix_srcfile_path
14197
14198 # Set to yes if exported symbols are required.
14199 always_export_symbols=$always_export_symbols_CXX
14200
14201 # The commands to list exported symbols.
14202 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14203
14204 # The commands to extract the exported symbol list from a shared archive.
14205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14206
14207 # Symbols that should not be listed in the preloaded symbols.
14208 exclude_expsyms=$lt_exclude_expsyms_CXX
14209
14210 # Symbols that must always be exported.
14211 include_expsyms=$lt_include_expsyms_CXX
14212
14213 # ### END LIBTOOL TAG CONFIG: $tagname
14214
14215 __EOF__
14216
14217
14218 else
14219   # If there is no Makefile yet, we rely on a make rule to execute
14220   # `config.status --recheck' to rerun these tests and create the
14221   # libtool script then.
14222   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14223   if test -f "$ltmain_in"; then
14224     test -f Makefile && make "$ltmain"
14225   fi
14226 fi
14227
14228
14229 ac_ext=c
14230 ac_cpp='$CPP $CPPFLAGS'
14231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14234
14235 CC=$lt_save_CC
14236 LDCXX=$LD
14237 LD=$lt_save_LD
14238 GCC=$lt_save_GCC
14239 with_gnu_ldcxx=$with_gnu_ld
14240 with_gnu_ld=$lt_save_with_gnu_ld
14241 lt_cv_path_LDCXX=$lt_cv_path_LD
14242 lt_cv_path_LD=$lt_save_path_LD
14243 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14244 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14245
14246         else
14247           tagname=""
14248         fi
14249         ;;
14250
14251       F77)
14252         if test -n "$F77" && test "X$F77" != "Xno"; then
14253
14254 ac_ext=f
14255 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14256 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14258
14259
14260 archive_cmds_need_lc_F77=no
14261 allow_undefined_flag_F77=
14262 always_export_symbols_F77=no
14263 archive_expsym_cmds_F77=
14264 export_dynamic_flag_spec_F77=
14265 hardcode_direct_F77=no
14266 hardcode_libdir_flag_spec_F77=
14267 hardcode_libdir_flag_spec_ld_F77=
14268 hardcode_libdir_separator_F77=
14269 hardcode_minus_L_F77=no
14270 hardcode_automatic_F77=no
14271 module_cmds_F77=
14272 module_expsym_cmds_F77=
14273 link_all_deplibs_F77=unknown
14274 old_archive_cmds_F77=$old_archive_cmds
14275 no_undefined_flag_F77=
14276 whole_archive_flag_spec_F77=
14277 enable_shared_with_static_runtimes_F77=no
14278
14279 # Source file extension for f77 test sources.
14280 ac_ext=f
14281
14282 # Object file extension for compiled f77 test sources.
14283 objext=o
14284 objext_F77=$objext
14285
14286 # Code to be used in simple compile tests
14287 lt_simple_compile_test_code="\
14288       subroutine t
14289       return
14290       end
14291 "
14292
14293 # Code to be used in simple link tests
14294 lt_simple_link_test_code="\
14295       program t
14296       end
14297 "
14298
14299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14300
14301 # If no C compiler was specified, use CC.
14302 LTCC=${LTCC-"$CC"}
14303
14304 # If no C compiler flags were specified, use CFLAGS.
14305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14306
14307 # Allow CC to be a program name with arguments.
14308 compiler=$CC
14309
14310
14311 # save warnings/boilerplate of simple test code
14312 ac_outfile=conftest.$ac_objext
14313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14315 _lt_compiler_boilerplate=`cat conftest.err`
14316 $rm conftest*
14317
14318 ac_outfile=conftest.$ac_objext
14319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14321 _lt_linker_boilerplate=`cat conftest.err`
14322 $rm -r conftest*
14323
14324
14325 # Allow CC to be a program name with arguments.
14326 lt_save_CC="$CC"
14327 CC=${F77-"f77"}
14328 compiler=$CC
14329 compiler_F77=$CC
14330 for cc_temp in $compiler""; do
14331   case $cc_temp in
14332     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14333     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14334     \-*) ;;
14335     *) break;;
14336   esac
14337 done
14338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14339
14340
14341 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14342 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14343 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14344 $as_echo "$can_build_shared" >&6; }
14345
14346 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14347 $as_echo_n "checking whether to build shared libraries... " >&6; }
14348 test "$can_build_shared" = "no" && enable_shared=no
14349
14350 # On AIX, shared libraries and static libraries use the same namespace, and
14351 # are all built from PIC.
14352 case $host_os in
14353 aix3*)
14354   test "$enable_shared" = yes && enable_static=no
14355   if test -n "$RANLIB"; then
14356     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14357     postinstall_cmds='$RANLIB $lib'
14358   fi
14359   ;;
14360 aix[4-9]*)
14361   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14362     test "$enable_shared" = yes && enable_static=no
14363   fi
14364   ;;
14365 esac
14366 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14367 $as_echo "$enable_shared" >&6; }
14368
14369 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14370 $as_echo_n "checking whether to build static libraries... " >&6; }
14371 # Make sure either enable_shared or enable_static is yes.
14372 test "$enable_shared" = yes || enable_static=yes
14373 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14374 $as_echo "$enable_static" >&6; }
14375
14376 GCC_F77="$G77"
14377 LD_F77="$LD"
14378
14379 lt_prog_compiler_wl_F77=
14380 lt_prog_compiler_pic_F77=
14381 lt_prog_compiler_static_F77=
14382
14383 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14385
14386   if test "$GCC" = yes; then
14387     lt_prog_compiler_wl_F77='-Wl,'
14388     lt_prog_compiler_static_F77='-static'
14389
14390     case $host_os in
14391       aix*)
14392       # All AIX code is PIC.
14393       if test "$host_cpu" = ia64; then
14394         # AIX 5 now supports IA64 processor
14395         lt_prog_compiler_static_F77='-Bstatic'
14396       fi
14397       ;;
14398
14399     amigaos*)
14400       # FIXME: we need at least 68020 code to build shared libraries, but
14401       # adding the `-m68020' flag to GCC prevents building anything better,
14402       # like `-m68040'.
14403       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14404       ;;
14405
14406     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14407       # PIC is the default for these OSes.
14408       ;;
14409
14410     mingw* | cygwin* | pw32* | os2*)
14411       # This hack is so that the source file can tell whether it is being
14412       # built for inclusion in a dll (and should export symbols for example).
14413       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14414       # (--disable-auto-import) libraries
14415       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14416       ;;
14417
14418     darwin* | rhapsody*)
14419       # PIC is the default on this platform
14420       # Common symbols not allowed in MH_DYLIB files
14421       lt_prog_compiler_pic_F77='-fno-common'
14422       ;;
14423
14424     interix[3-9]*)
14425       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14426       # Instead, we relocate shared libraries at runtime.
14427       ;;
14428
14429     msdosdjgpp*)
14430       # Just because we use GCC doesn't mean we suddenly get shared libraries
14431       # on systems that don't support them.
14432       lt_prog_compiler_can_build_shared_F77=no
14433       enable_shared=no
14434       ;;
14435
14436     sysv4*MP*)
14437       if test -d /usr/nec; then
14438         lt_prog_compiler_pic_F77=-Kconform_pic
14439       fi
14440       ;;
14441
14442     hpux*)
14443       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14444       # not for PA HP-UX.
14445       case $host_cpu in
14446       hppa*64*|ia64*)
14447         # +Z the default
14448         ;;
14449       *)
14450         lt_prog_compiler_pic_F77='-fPIC'
14451         ;;
14452       esac
14453       ;;
14454
14455     *)
14456       lt_prog_compiler_pic_F77='-fPIC'
14457       ;;
14458     esac
14459   else
14460     # PORTME Check for flag to pass linker flags through the system compiler.
14461     case $host_os in
14462     aix*)
14463       lt_prog_compiler_wl_F77='-Wl,'
14464       if test "$host_cpu" = ia64; then
14465         # AIX 5 now supports IA64 processor
14466         lt_prog_compiler_static_F77='-Bstatic'
14467       else
14468         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14469       fi
14470       ;;
14471       darwin*)
14472         # PIC is the default on this platform
14473         # Common symbols not allowed in MH_DYLIB files
14474        case $cc_basename in
14475          xlc*)
14476          lt_prog_compiler_pic_F77='-qnocommon'
14477          lt_prog_compiler_wl_F77='-Wl,'
14478          ;;
14479        esac
14480        ;;
14481
14482     mingw* | cygwin* | pw32* | os2*)
14483       # This hack is so that the source file can tell whether it is being
14484       # built for inclusion in a dll (and should export symbols for example).
14485       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14486       ;;
14487
14488     hpux9* | hpux10* | hpux11*)
14489       lt_prog_compiler_wl_F77='-Wl,'
14490       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14491       # not for PA HP-UX.
14492       case $host_cpu in
14493       hppa*64*|ia64*)
14494         # +Z the default
14495         ;;
14496       *)
14497         lt_prog_compiler_pic_F77='+Z'
14498         ;;
14499       esac
14500       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14501       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14502       ;;
14503
14504     irix5* | irix6* | nonstopux*)
14505       lt_prog_compiler_wl_F77='-Wl,'
14506       # PIC (with -KPIC) is the default.
14507       lt_prog_compiler_static_F77='-non_shared'
14508       ;;
14509
14510     newsos6)
14511       lt_prog_compiler_pic_F77='-KPIC'
14512       lt_prog_compiler_static_F77='-Bstatic'
14513       ;;
14514
14515     linux* | k*bsd*-gnu)
14516       case $cc_basename in
14517       icc* | ecc*)
14518         lt_prog_compiler_wl_F77='-Wl,'
14519         lt_prog_compiler_pic_F77='-KPIC'
14520         lt_prog_compiler_static_F77='-static'
14521         ;;
14522       pgcc* | pgf77* | pgf90* | pgf95*)
14523         # Portland Group compilers (*not* the Pentium gcc compiler,
14524         # which looks to be a dead project)
14525         lt_prog_compiler_wl_F77='-Wl,'
14526         lt_prog_compiler_pic_F77='-fpic'
14527         lt_prog_compiler_static_F77='-Bstatic'
14528         ;;
14529       ccc*)
14530         lt_prog_compiler_wl_F77='-Wl,'
14531         # All Alpha code is PIC.
14532         lt_prog_compiler_static_F77='-non_shared'
14533         ;;
14534       *)
14535         case `$CC -V 2>&1 | sed 5q` in
14536         *Sun\ C*)
14537           # Sun C 5.9
14538           lt_prog_compiler_pic_F77='-KPIC'
14539           lt_prog_compiler_static_F77='-Bstatic'
14540           lt_prog_compiler_wl_F77='-Wl,'
14541           ;;
14542         *Sun\ F*)
14543           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14544           lt_prog_compiler_pic_F77='-KPIC'
14545           lt_prog_compiler_static_F77='-Bstatic'
14546           lt_prog_compiler_wl_F77=''
14547           ;;
14548         esac
14549         ;;
14550       esac
14551       ;;
14552
14553     osf3* | osf4* | osf5*)
14554       lt_prog_compiler_wl_F77='-Wl,'
14555       # All OSF/1 code is PIC.
14556       lt_prog_compiler_static_F77='-non_shared'
14557       ;;
14558
14559     rdos*)
14560       lt_prog_compiler_static_F77='-non_shared'
14561       ;;
14562
14563     solaris*)
14564       lt_prog_compiler_pic_F77='-KPIC'
14565       lt_prog_compiler_static_F77='-Bstatic'
14566       case $cc_basename in
14567       f77* | f90* | f95*)
14568         lt_prog_compiler_wl_F77='-Qoption ld ';;
14569       *)
14570         lt_prog_compiler_wl_F77='-Wl,';;
14571       esac
14572       ;;
14573
14574     sunos4*)
14575       lt_prog_compiler_wl_F77='-Qoption ld '
14576       lt_prog_compiler_pic_F77='-PIC'
14577       lt_prog_compiler_static_F77='-Bstatic'
14578       ;;
14579
14580     sysv4 | sysv4.2uw2* | sysv4.3*)
14581       lt_prog_compiler_wl_F77='-Wl,'
14582       lt_prog_compiler_pic_F77='-KPIC'
14583       lt_prog_compiler_static_F77='-Bstatic'
14584       ;;
14585
14586     sysv4*MP*)
14587       if test -d /usr/nec ;then
14588         lt_prog_compiler_pic_F77='-Kconform_pic'
14589         lt_prog_compiler_static_F77='-Bstatic'
14590       fi
14591       ;;
14592
14593     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14594       lt_prog_compiler_wl_F77='-Wl,'
14595       lt_prog_compiler_pic_F77='-KPIC'
14596       lt_prog_compiler_static_F77='-Bstatic'
14597       ;;
14598
14599     unicos*)
14600       lt_prog_compiler_wl_F77='-Wl,'
14601       lt_prog_compiler_can_build_shared_F77=no
14602       ;;
14603
14604     uts4*)
14605       lt_prog_compiler_pic_F77='-pic'
14606       lt_prog_compiler_static_F77='-Bstatic'
14607       ;;
14608
14609     *)
14610       lt_prog_compiler_can_build_shared_F77=no
14611       ;;
14612     esac
14613   fi
14614
14615 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14616 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14617
14618 #
14619 # Check to make sure the PIC flag actually works.
14620 #
14621 if test -n "$lt_prog_compiler_pic_F77"; then
14622
14623 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14624 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14625 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14626   $as_echo_n "(cached) " >&6
14627 else
14628   lt_cv_prog_compiler_pic_works_F77=no
14629   ac_outfile=conftest.$ac_objext
14630    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14631    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14632    # Insert the option either (1) after the last *FLAGS variable, or
14633    # (2) before a word containing "conftest.", or (3) at the end.
14634    # Note that $ac_compile itself does not contain backslashes and begins
14635    # with a dollar sign (not a hyphen), so the echo should work correctly.
14636    # The option is referenced via a variable to avoid confusing sed.
14637    lt_compile=`echo "$ac_compile" | $SED \
14638    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14639    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14640    -e 's:$: $lt_compiler_flag:'`
14641    (eval echo "\"\$as_me:14641: $lt_compile\"" >&5)
14642    (eval "$lt_compile" 2>conftest.err)
14643    ac_status=$?
14644    cat conftest.err >&5
14645    echo "$as_me:14645: \$? = $ac_status" >&5
14646    if (exit $ac_status) && test -s "$ac_outfile"; then
14647      # The compiler can only warn and ignore the option if not recognized
14648      # So say no if there are warnings other than the usual output.
14649      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14650      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14651      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14652        lt_cv_prog_compiler_pic_works_F77=yes
14653      fi
14654    fi
14655    $rm conftest*
14656
14657 fi
14658 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14659 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14660
14661 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14662     case $lt_prog_compiler_pic_F77 in
14663      "" | " "*) ;;
14664      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14665      esac
14666 else
14667     lt_prog_compiler_pic_F77=
14668      lt_prog_compiler_can_build_shared_F77=no
14669 fi
14670
14671 fi
14672 case $host_os in
14673   # For platforms which do not support PIC, -DPIC is meaningless:
14674   *djgpp*)
14675     lt_prog_compiler_pic_F77=
14676     ;;
14677   *)
14678     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14679     ;;
14680 esac
14681
14682 #
14683 # Check to make sure the static flag actually works.
14684 #
14685 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14686 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14687 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14688 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14689   $as_echo_n "(cached) " >&6
14690 else
14691   lt_cv_prog_compiler_static_works_F77=no
14692    save_LDFLAGS="$LDFLAGS"
14693    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14694    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14695    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14696      # The linker can only warn and ignore the option if not recognized
14697      # So say no if there are warnings
14698      if test -s conftest.err; then
14699        # Append any errors to the config.log.
14700        cat conftest.err 1>&5
14701        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14702        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14703        if diff conftest.exp conftest.er2 >/dev/null; then
14704          lt_cv_prog_compiler_static_works_F77=yes
14705        fi
14706      else
14707        lt_cv_prog_compiler_static_works_F77=yes
14708      fi
14709    fi
14710    $rm -r conftest*
14711    LDFLAGS="$save_LDFLAGS"
14712
14713 fi
14714 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14715 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14716
14717 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14718     :
14719 else
14720     lt_prog_compiler_static_F77=
14721 fi
14722
14723
14724 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14726 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14727   $as_echo_n "(cached) " >&6
14728 else
14729   lt_cv_prog_compiler_c_o_F77=no
14730    $rm -r conftest 2>/dev/null
14731    mkdir conftest
14732    cd conftest
14733    mkdir out
14734    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14735
14736    lt_compiler_flag="-o out/conftest2.$ac_objext"
14737    # Insert the option either (1) after the last *FLAGS variable, or
14738    # (2) before a word containing "conftest.", or (3) at the end.
14739    # Note that $ac_compile itself does not contain backslashes and begins
14740    # with a dollar sign (not a hyphen), so the echo should work correctly.
14741    lt_compile=`echo "$ac_compile" | $SED \
14742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14744    -e 's:$: $lt_compiler_flag:'`
14745    (eval echo "\"\$as_me:14745: $lt_compile\"" >&5)
14746    (eval "$lt_compile" 2>out/conftest.err)
14747    ac_status=$?
14748    cat out/conftest.err >&5
14749    echo "$as_me:14749: \$? = $ac_status" >&5
14750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14751    then
14752      # The compiler can only warn and ignore the option if not recognized
14753      # So say no if there are warnings
14754      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14755      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14756      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14757        lt_cv_prog_compiler_c_o_F77=yes
14758      fi
14759    fi
14760    chmod u+w . 2>&5
14761    $rm conftest*
14762    # SGI C++ compiler will create directory out/ii_files/ for
14763    # template instantiation
14764    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14765    $rm out/* && rmdir out
14766    cd ..
14767    rmdir conftest
14768    $rm conftest*
14769
14770 fi
14771 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14772 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14773
14774
14775 hard_links="nottested"
14776 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14777   # do not overwrite the value of need_locks provided by the user
14778   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14779 $as_echo_n "checking if we can lock with hard links... " >&6; }
14780   hard_links=yes
14781   $rm conftest*
14782   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14783   touch conftest.a
14784   ln conftest.a conftest.b 2>&5 || hard_links=no
14785   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14786   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14787 $as_echo "$hard_links" >&6; }
14788   if test "$hard_links" = no; then
14789     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14790 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14791     need_locks=warn
14792   fi
14793 else
14794   need_locks=no
14795 fi
14796
14797 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14799
14800   runpath_var=
14801   allow_undefined_flag_F77=
14802   enable_shared_with_static_runtimes_F77=no
14803   archive_cmds_F77=
14804   archive_expsym_cmds_F77=
14805   old_archive_From_new_cmds_F77=
14806   old_archive_from_expsyms_cmds_F77=
14807   export_dynamic_flag_spec_F77=
14808   whole_archive_flag_spec_F77=
14809   thread_safe_flag_spec_F77=
14810   hardcode_libdir_flag_spec_F77=
14811   hardcode_libdir_flag_spec_ld_F77=
14812   hardcode_libdir_separator_F77=
14813   hardcode_direct_F77=no
14814   hardcode_minus_L_F77=no
14815   hardcode_shlibpath_var_F77=unsupported
14816   link_all_deplibs_F77=unknown
14817   hardcode_automatic_F77=no
14818   module_cmds_F77=
14819   module_expsym_cmds_F77=
14820   always_export_symbols_F77=no
14821   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14822   # include_expsyms should be a list of space-separated symbols to be *always*
14823   # included in the symbol list
14824   include_expsyms_F77=
14825   # exclude_expsyms can be an extended regexp of symbols to exclude
14826   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14827   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14828   # as well as any symbol that contains `d'.
14829   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14830   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14831   # platforms (ab)use it in PIC code, but their linkers get confused if
14832   # the symbol is explicitly referenced.  Since portable code cannot
14833   # rely on this symbol name, it's probably fine to never include it in
14834   # preloaded symbol tables.
14835   # Exclude shared library initialization/finalization symbols.
14836   extract_expsyms_cmds=
14837   # Just being paranoid about ensuring that cc_basename is set.
14838   for cc_temp in $compiler""; do
14839   case $cc_temp in
14840     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14841     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14842     \-*) ;;
14843     *) break;;
14844   esac
14845 done
14846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14847
14848   case $host_os in
14849   cygwin* | mingw* | pw32*)
14850     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14851     # When not using gcc, we currently assume that we are using
14852     # Microsoft Visual C++.
14853     if test "$GCC" != yes; then
14854       with_gnu_ld=no
14855     fi
14856     ;;
14857   interix*)
14858     # we just hope/assume this is gcc and not c89 (= MSVC++)
14859     with_gnu_ld=yes
14860     ;;
14861   openbsd*)
14862     with_gnu_ld=no
14863     ;;
14864   esac
14865
14866   ld_shlibs_F77=yes
14867   if test "$with_gnu_ld" = yes; then
14868     # If archive_cmds runs LD, not CC, wlarc should be empty
14869     wlarc='${wl}'
14870
14871     # Set some defaults for GNU ld with shared library support. These
14872     # are reset later if shared libraries are not supported. Putting them
14873     # here allows them to be overridden if necessary.
14874     runpath_var=LD_RUN_PATH
14875     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14876     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14877     # ancient GNU ld didn't support --whole-archive et. al.
14878     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14879         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14880       else
14881         whole_archive_flag_spec_F77=
14882     fi
14883     supports_anon_versioning=no
14884     case `$LD -v 2>/dev/null` in
14885       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14886       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14887       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14888       *\ 2.11.*) ;; # other 2.11 versions
14889       *) supports_anon_versioning=yes ;;
14890     esac
14891
14892     # See if GNU ld supports shared libraries.
14893     case $host_os in
14894     aix[3-9]*)
14895       # On AIX/PPC, the GNU linker is very broken
14896       if test "$host_cpu" != ia64; then
14897         ld_shlibs_F77=no
14898         cat <<EOF 1>&2
14899
14900 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14901 *** to be unable to reliably create shared libraries on AIX.
14902 *** Therefore, libtool is disabling shared libraries support.  If you
14903 *** really care for shared libraries, you may want to modify your PATH
14904 *** so that a non-GNU linker is found, and then restart.
14905
14906 EOF
14907       fi
14908       ;;
14909
14910     amigaos*)
14911       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)'
14912       hardcode_libdir_flag_spec_F77='-L$libdir'
14913       hardcode_minus_L_F77=yes
14914
14915       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14916       # that the semantics of dynamic libraries on AmigaOS, at least up
14917       # to version 4, is to share data among multiple programs linked
14918       # with the same dynamic library.  Since this doesn't match the
14919       # behavior of shared libraries on other platforms, we can't use
14920       # them.
14921       ld_shlibs_F77=no
14922       ;;
14923
14924     beos*)
14925       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926         allow_undefined_flag_F77=unsupported
14927         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14928         # support --undefined.  This deserves some investigation.  FIXME
14929         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930       else
14931         ld_shlibs_F77=no
14932       fi
14933       ;;
14934
14935     cygwin* | mingw* | pw32*)
14936       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14937       # as there is no search path for DLLs.
14938       hardcode_libdir_flag_spec_F77='-L$libdir'
14939       allow_undefined_flag_F77=unsupported
14940       always_export_symbols_F77=no
14941       enable_shared_with_static_runtimes_F77=yes
14942       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14943
14944       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14945         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14946         # If the export-symbols file already is a .def file (1st line
14947         # is EXPORTS), use it as is; otherwise, prepend...
14948         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14949           cp $export_symbols $output_objdir/$soname.def;
14950         else
14951           echo EXPORTS > $output_objdir/$soname.def;
14952           cat $export_symbols >> $output_objdir/$soname.def;
14953         fi~
14954         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14955       else
14956         ld_shlibs_F77=no
14957       fi
14958       ;;
14959
14960     interix[3-9]*)
14961       hardcode_direct_F77=no
14962       hardcode_shlibpath_var_F77=no
14963       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14964       export_dynamic_flag_spec_F77='${wl}-E'
14965       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14966       # Instead, shared libraries are loaded at an image base (0x10000000 by
14967       # default) and relocated if they conflict, which is a slow very memory
14968       # consuming and fragmenting process.  To avoid this, we pick a random,
14969       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14970       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14971       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'
14972       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'
14973       ;;
14974
14975     gnu* | linux* | k*bsd*-gnu)
14976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14977         tmp_addflag=
14978         case $cc_basename,$host_cpu in
14979         pgcc*)                          # Portland Group C compiler
14980           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'
14981           tmp_addflag=' $pic_flag'
14982           ;;
14983         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14984           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'
14985           tmp_addflag=' $pic_flag -Mnomain' ;;
14986         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14987           tmp_addflag=' -i_dynamic' ;;
14988         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14989           tmp_addflag=' -i_dynamic -nofor_main' ;;
14990         ifc* | ifort*)                  # Intel Fortran compiler
14991           tmp_addflag=' -nofor_main' ;;
14992         esac
14993         case `$CC -V 2>&1 | sed 5q` in
14994         *Sun\ C*)                       # Sun C 5.9
14995           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'
14996           tmp_sharedflag='-G' ;;
14997         *Sun\ F*)                       # Sun Fortran 8.3
14998           tmp_sharedflag='-G' ;;
14999         *)
15000           tmp_sharedflag='-shared' ;;
15001         esac
15002         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003
15004         if test $supports_anon_versioning = yes; then
15005           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15006   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15007   $echo "local: *; };" >> $output_objdir/$libname.ver~
15008           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15009         fi
15010         link_all_deplibs_F77=no
15011       else
15012         ld_shlibs_F77=no
15013       fi
15014       ;;
15015
15016     netbsd* | netbsdelf*-gnu)
15017       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15018         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15019         wlarc=
15020       else
15021         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023       fi
15024       ;;
15025
15026     solaris*)
15027       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15028         ld_shlibs_F77=no
15029         cat <<EOF 1>&2
15030
15031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15032 *** create shared libraries on Solaris systems.  Therefore, libtool
15033 *** is disabling shared libraries support.  We urge you to upgrade GNU
15034 *** binutils to release 2.9.1 or newer.  Another option is to modify
15035 *** your PATH or compiler configuration so that the native linker is
15036 *** used, and then restart.
15037
15038 EOF
15039       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15040         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042       else
15043         ld_shlibs_F77=no
15044       fi
15045       ;;
15046
15047     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15048       case `$LD -v 2>&1` in
15049         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15050         ld_shlibs_F77=no
15051         cat <<_LT_EOF 1>&2
15052
15053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15054 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15055 *** is disabling shared libraries support.  We urge you to upgrade GNU
15056 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15057 *** your PATH or compiler configuration so that the native linker is
15058 *** used, and then restart.
15059
15060 _LT_EOF
15061         ;;
15062         *)
15063           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15065             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15066             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15067           else
15068             ld_shlibs_F77=no
15069           fi
15070         ;;
15071       esac
15072       ;;
15073
15074     sunos4*)
15075       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15076       wlarc=
15077       hardcode_direct_F77=yes
15078       hardcode_shlibpath_var_F77=no
15079       ;;
15080
15081     *)
15082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15083         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15084         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15085       else
15086         ld_shlibs_F77=no
15087       fi
15088       ;;
15089     esac
15090
15091     if test "$ld_shlibs_F77" = no; then
15092       runpath_var=
15093       hardcode_libdir_flag_spec_F77=
15094       export_dynamic_flag_spec_F77=
15095       whole_archive_flag_spec_F77=
15096     fi
15097   else
15098     # PORTME fill in a description of your system's linker (not GNU ld)
15099     case $host_os in
15100     aix3*)
15101       allow_undefined_flag_F77=unsupported
15102       always_export_symbols_F77=yes
15103       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'
15104       # Note: this linker hardcodes the directories in LIBPATH if there
15105       # are no directories specified by -L.
15106       hardcode_minus_L_F77=yes
15107       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15108         # Neither direct hardcoding nor static linking is supported with a
15109         # broken collect2.
15110         hardcode_direct_F77=unsupported
15111       fi
15112       ;;
15113
15114     aix[4-9]*)
15115       if test "$host_cpu" = ia64; then
15116         # On IA64, the linker does run time linking by default, so we don't
15117         # have to do anything special.
15118         aix_use_runtimelinking=no
15119         exp_sym_flag='-Bexport'
15120         no_entry_flag=""
15121       else
15122         # If we're using GNU nm, then we don't want the "-C" option.
15123         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15124         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15125           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'
15126         else
15127           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'
15128         fi
15129         aix_use_runtimelinking=no
15130
15131         # Test if we are trying to use run time linking or normal
15132         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15133         # need to do runtime linking.
15134         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15135           for ld_flag in $LDFLAGS; do
15136           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15137             aix_use_runtimelinking=yes
15138             break
15139           fi
15140           done
15141           ;;
15142         esac
15143
15144         exp_sym_flag='-bexport'
15145         no_entry_flag='-bnoentry'
15146       fi
15147
15148       # When large executables or shared objects are built, AIX ld can
15149       # have problems creating the table of contents.  If linking a library
15150       # or program results in "error TOC overflow" add -mminimal-toc to
15151       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15152       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15153
15154       archive_cmds_F77=''
15155       hardcode_direct_F77=yes
15156       hardcode_libdir_separator_F77=':'
15157       link_all_deplibs_F77=yes
15158
15159       if test "$GCC" = yes; then
15160         case $host_os in aix4.[012]|aix4.[012].*)
15161         # We only want to do this on AIX 4.2 and lower, the check
15162         # below for broken collect2 doesn't work under 4.3+
15163           collect2name=`${CC} -print-prog-name=collect2`
15164           if test -f "$collect2name" && \
15165            strings "$collect2name" | grep resolve_lib_name >/dev/null
15166           then
15167           # We have reworked collect2
15168           :
15169           else
15170           # We have old collect2
15171           hardcode_direct_F77=unsupported
15172           # It fails to find uninstalled libraries when the uninstalled
15173           # path is not listed in the libpath.  Setting hardcode_minus_L
15174           # to unsupported forces relinking
15175           hardcode_minus_L_F77=yes
15176           hardcode_libdir_flag_spec_F77='-L$libdir'
15177           hardcode_libdir_separator_F77=
15178           fi
15179           ;;
15180         esac
15181         shared_flag='-shared'
15182         if test "$aix_use_runtimelinking" = yes; then
15183           shared_flag="$shared_flag "'${wl}-G'
15184         fi
15185       else
15186         # not using gcc
15187         if test "$host_cpu" = ia64; then
15188         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15189         # chokes on -Wl,-G. The following line is correct:
15190           shared_flag='-G'
15191         else
15192           if test "$aix_use_runtimelinking" = yes; then
15193             shared_flag='${wl}-G'
15194           else
15195             shared_flag='${wl}-bM:SRE'
15196           fi
15197         fi
15198       fi
15199
15200       # It seems that -bexpall does not export symbols beginning with
15201       # underscore (_), so it is better to generate a list of symbols to export.
15202       always_export_symbols_F77=yes
15203       if test "$aix_use_runtimelinking" = yes; then
15204         # Warning - without using the other runtime loading flags (-brtl),
15205         # -berok will link without error, but may produce a broken library.
15206         allow_undefined_flag_F77='-berok'
15207        # Determine the default libpath from the value encoded in an empty executable.
15208        cat >conftest.$ac_ext <<_ACEOF
15209       program main
15210
15211       end
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221   (eval "$ac_link") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } && {
15228          test -z "$ac_f77_werror_flag" ||
15229          test ! -s conftest.err
15230        } && test -s conftest$ac_exeext && {
15231          test "$cross_compiling" = yes ||
15232          $as_test_x conftest$ac_exeext
15233        }; then
15234
15235 lt_aix_libpath_sed='
15236     /Import File Strings/,/^$/ {
15237         /^0/ {
15238             s/^0  *\(.*\)$/\1/
15239             p
15240         }
15241     }'
15242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15243 # Check for a 64-bit object if we didn't find anything.
15244 if test -z "$aix_libpath"; then
15245   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15246 fi
15247 else
15248   $as_echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251
15252 fi
15253
15254 rm -rf conftest.dSYM
15255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15256       conftest$ac_exeext conftest.$ac_ext
15257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15258
15259        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15260         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"
15261        else
15262         if test "$host_cpu" = ia64; then
15263           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15264           allow_undefined_flag_F77="-z nodefs"
15265           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"
15266         else
15267          # Determine the default libpath from the value encoded in an empty executable.
15268          cat >conftest.$ac_ext <<_ACEOF
15269       program main
15270
15271       end
15272 _ACEOF
15273 rm -f conftest.$ac_objext conftest$ac_exeext
15274 if { (ac_try="$ac_link"
15275 case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15280 $as_echo "$ac_try_echo") >&5
15281   (eval "$ac_link") 2>conftest.er1
15282   ac_status=$?
15283   grep -v '^ *+' conftest.er1 >conftest.err
15284   rm -f conftest.er1
15285   cat conftest.err >&5
15286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); } && {
15288          test -z "$ac_f77_werror_flag" ||
15289          test ! -s conftest.err
15290        } && test -s conftest$ac_exeext && {
15291          test "$cross_compiling" = yes ||
15292          $as_test_x conftest$ac_exeext
15293        }; then
15294
15295 lt_aix_libpath_sed='
15296     /Import File Strings/,/^$/ {
15297         /^0/ {
15298             s/^0  *\(.*\)$/\1/
15299             p
15300         }
15301     }'
15302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15303 # Check for a 64-bit object if we didn't find anything.
15304 if test -z "$aix_libpath"; then
15305   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15306 fi
15307 else
15308   $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311
15312 fi
15313
15314 rm -rf conftest.dSYM
15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316       conftest$ac_exeext conftest.$ac_ext
15317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15318
15319          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15320           # Warning - without using the other run time loading flags,
15321           # -berok will link without error, but may produce a broken library.
15322           no_undefined_flag_F77=' ${wl}-bernotok'
15323           allow_undefined_flag_F77=' ${wl}-berok'
15324           # Exported symbols can be pulled into shared objects from archives
15325           whole_archive_flag_spec_F77='$convenience'
15326           archive_cmds_need_lc_F77=yes
15327           # This is similar to how AIX traditionally builds its shared libraries.
15328           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'
15329         fi
15330       fi
15331       ;;
15332
15333     amigaos*)
15334       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)'
15335       hardcode_libdir_flag_spec_F77='-L$libdir'
15336       hardcode_minus_L_F77=yes
15337       # see comment about different semantics on the GNU ld section
15338       ld_shlibs_F77=no
15339       ;;
15340
15341     bsdi[45]*)
15342       export_dynamic_flag_spec_F77=-rdynamic
15343       ;;
15344
15345     cygwin* | mingw* | pw32*)
15346       # When not using gcc, we currently assume that we are using
15347       # Microsoft Visual C++.
15348       # hardcode_libdir_flag_spec is actually meaningless, as there is
15349       # no search path for DLLs.
15350       hardcode_libdir_flag_spec_F77=' '
15351       allow_undefined_flag_F77=unsupported
15352       # Tell ltmain to make .lib files, not .a files.
15353       libext=lib
15354       # Tell ltmain to make .dll files, not .so files.
15355       shrext_cmds=".dll"
15356       # FIXME: Setting linknames here is a bad hack.
15357       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15358       # The linker will automatically build a .lib file if we build a DLL.
15359       old_archive_From_new_cmds_F77='true'
15360       # FIXME: Should let the user specify the lib program.
15361       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15362       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15363       enable_shared_with_static_runtimes_F77=yes
15364       ;;
15365
15366     darwin* | rhapsody*)
15367       case $host_os in
15368         rhapsody* | darwin1.[012])
15369          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15370          ;;
15371        *) # Darwin 1.3 on
15372          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15373            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15374          else
15375            case ${MACOSX_DEPLOYMENT_TARGET} in
15376              10.[012])
15377                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15378                ;;
15379              10.*)
15380                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15381                ;;
15382            esac
15383          fi
15384          ;;
15385       esac
15386       archive_cmds_need_lc_F77=no
15387       hardcode_direct_F77=no
15388       hardcode_automatic_F77=yes
15389       hardcode_shlibpath_var_F77=unsupported
15390       whole_archive_flag_spec_F77=''
15391       link_all_deplibs_F77=yes
15392     if test "$GCC" = yes ; then
15393         output_verbose_link_cmd='echo'
15394         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}"
15395         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15396         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}"
15397         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}"
15398     else
15399       case $cc_basename in
15400         xlc*)
15401          output_verbose_link_cmd='echo'
15402          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15403          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15404           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15405          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}'
15406           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}'
15407           ;;
15408        *)
15409          ld_shlibs_F77=no
15410           ;;
15411       esac
15412     fi
15413       ;;
15414
15415     dgux*)
15416       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417       hardcode_libdir_flag_spec_F77='-L$libdir'
15418       hardcode_shlibpath_var_F77=no
15419       ;;
15420
15421     freebsd1*)
15422       ld_shlibs_F77=no
15423       ;;
15424
15425     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15426     # support.  Future versions do this automatically, but an explicit c++rt0.o
15427     # does not break anything, and helps significantly (at the cost of a little
15428     # extra space).
15429     freebsd2.2*)
15430       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15431       hardcode_libdir_flag_spec_F77='-R$libdir'
15432       hardcode_direct_F77=yes
15433       hardcode_shlibpath_var_F77=no
15434       ;;
15435
15436     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15437     freebsd2*)
15438       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15439       hardcode_direct_F77=yes
15440       hardcode_minus_L_F77=yes
15441       hardcode_shlibpath_var_F77=no
15442       ;;
15443
15444     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15445     freebsd* | dragonfly*)
15446       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15447       hardcode_libdir_flag_spec_F77='-R$libdir'
15448       hardcode_direct_F77=yes
15449       hardcode_shlibpath_var_F77=no
15450       ;;
15451
15452     hpux9*)
15453       if test "$GCC" = yes; then
15454         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'
15455       else
15456         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'
15457       fi
15458       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15459       hardcode_libdir_separator_F77=:
15460       hardcode_direct_F77=yes
15461
15462       # hardcode_minus_L: Not really in the search PATH,
15463       # but as the default location of the library.
15464       hardcode_minus_L_F77=yes
15465       export_dynamic_flag_spec_F77='${wl}-E'
15466       ;;
15467
15468     hpux10*)
15469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15470         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15471       else
15472         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15473       fi
15474       if test "$with_gnu_ld" = no; then
15475         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15476         hardcode_libdir_separator_F77=:
15477
15478         hardcode_direct_F77=yes
15479         export_dynamic_flag_spec_F77='${wl}-E'
15480
15481         # hardcode_minus_L: Not really in the search PATH,
15482         # but as the default location of the library.
15483         hardcode_minus_L_F77=yes
15484       fi
15485       ;;
15486
15487     hpux11*)
15488       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15489         case $host_cpu in
15490         hppa*64*)
15491           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492           ;;
15493         ia64*)
15494           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15495           ;;
15496         *)
15497           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15498           ;;
15499         esac
15500       else
15501         case $host_cpu in
15502         hppa*64*)
15503           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504           ;;
15505         ia64*)
15506           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15507           ;;
15508         *)
15509           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15510           ;;
15511         esac
15512       fi
15513       if test "$with_gnu_ld" = no; then
15514         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15515         hardcode_libdir_separator_F77=:
15516
15517         case $host_cpu in
15518         hppa*64*|ia64*)
15519           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15520           hardcode_direct_F77=no
15521           hardcode_shlibpath_var_F77=no
15522           ;;
15523         *)
15524           hardcode_direct_F77=yes
15525           export_dynamic_flag_spec_F77='${wl}-E'
15526
15527           # hardcode_minus_L: Not really in the search PATH,
15528           # but as the default location of the library.
15529           hardcode_minus_L_F77=yes
15530           ;;
15531         esac
15532       fi
15533       ;;
15534
15535     irix5* | irix6* | nonstopux*)
15536       if test "$GCC" = yes; then
15537         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'
15538       else
15539         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'
15540         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15541       fi
15542       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543       hardcode_libdir_separator_F77=:
15544       link_all_deplibs_F77=yes
15545       ;;
15546
15547     netbsd* | netbsdelf*-gnu)
15548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15549         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15550       else
15551         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15552       fi
15553       hardcode_libdir_flag_spec_F77='-R$libdir'
15554       hardcode_direct_F77=yes
15555       hardcode_shlibpath_var_F77=no
15556       ;;
15557
15558     newsos6)
15559       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15560       hardcode_direct_F77=yes
15561       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15562       hardcode_libdir_separator_F77=:
15563       hardcode_shlibpath_var_F77=no
15564       ;;
15565
15566     openbsd*)
15567       if test -f /usr/libexec/ld.so; then
15568         hardcode_direct_F77=yes
15569         hardcode_shlibpath_var_F77=no
15570         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15571           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15572           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15573           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15574           export_dynamic_flag_spec_F77='${wl}-E'
15575         else
15576           case $host_os in
15577            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15578              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15579              hardcode_libdir_flag_spec_F77='-R$libdir'
15580              ;;
15581            *)
15582              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15583              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15584              ;;
15585           esac
15586         fi
15587       else
15588         ld_shlibs_F77=no
15589       fi
15590       ;;
15591
15592     os2*)
15593       hardcode_libdir_flag_spec_F77='-L$libdir'
15594       hardcode_minus_L_F77=yes
15595       allow_undefined_flag_F77=unsupported
15596       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'
15597       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15598       ;;
15599
15600     osf3*)
15601       if test "$GCC" = yes; then
15602         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15603         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'
15604       else
15605         allow_undefined_flag_F77=' -expect_unresolved \*'
15606         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'
15607       fi
15608       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15609       hardcode_libdir_separator_F77=:
15610       ;;
15611
15612     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15613       if test "$GCC" = yes; then
15614         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15615         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'
15616         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15617       else
15618         allow_undefined_flag_F77=' -expect_unresolved \*'
15619         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'
15620         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~
15621         $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'
15622
15623         # Both c and cxx compiler support -rpath directly
15624         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15625       fi
15626       hardcode_libdir_separator_F77=:
15627       ;;
15628
15629     solaris*)
15630       no_undefined_flag_F77=' -z text'
15631       if test "$GCC" = yes; then
15632         wlarc='${wl}'
15633         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15635           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15636       else
15637         wlarc=''
15638         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15640         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15641       fi
15642       hardcode_libdir_flag_spec_F77='-R$libdir'
15643       hardcode_shlibpath_var_F77=no
15644       case $host_os in
15645       solaris2.[0-5] | solaris2.[0-5].*) ;;
15646       *)
15647         # The compiler driver will combine and reorder linker options,
15648         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15649         # but is careful enough not to reorder.
15650         # Supported since Solaris 2.6 (maybe 2.5.1?)
15651         if test "$GCC" = yes; then
15652           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15653         else
15654           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15655         fi
15656         ;;
15657       esac
15658       link_all_deplibs_F77=yes
15659       ;;
15660
15661     sunos4*)
15662       if test "x$host_vendor" = xsequent; then
15663         # Use $CC to link under sequent, because it throws in some extra .o
15664         # files that make .init and .fini sections work.
15665         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15666       else
15667         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15668       fi
15669       hardcode_libdir_flag_spec_F77='-L$libdir'
15670       hardcode_direct_F77=yes
15671       hardcode_minus_L_F77=yes
15672       hardcode_shlibpath_var_F77=no
15673       ;;
15674
15675     sysv4)
15676       case $host_vendor in
15677         sni)
15678           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679           hardcode_direct_F77=yes # is this really true???
15680         ;;
15681         siemens)
15682           ## LD is ld it makes a PLAMLIB
15683           ## CC just makes a GrossModule.
15684           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15685           reload_cmds_F77='$CC -r -o $output$reload_objs'
15686           hardcode_direct_F77=no
15687         ;;
15688         motorola)
15689           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15691         ;;
15692       esac
15693       runpath_var='LD_RUN_PATH'
15694       hardcode_shlibpath_var_F77=no
15695       ;;
15696
15697     sysv4.3*)
15698       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699       hardcode_shlibpath_var_F77=no
15700       export_dynamic_flag_spec_F77='-Bexport'
15701       ;;
15702
15703     sysv4*MP*)
15704       if test -d /usr/nec; then
15705         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706         hardcode_shlibpath_var_F77=no
15707         runpath_var=LD_RUN_PATH
15708         hardcode_runpath_var=yes
15709         ld_shlibs_F77=yes
15710       fi
15711       ;;
15712
15713     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15714       no_undefined_flag_F77='${wl}-z,text'
15715       archive_cmds_need_lc_F77=no
15716       hardcode_shlibpath_var_F77=no
15717       runpath_var='LD_RUN_PATH'
15718
15719       if test "$GCC" = yes; then
15720         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722       else
15723         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725       fi
15726       ;;
15727
15728     sysv5* | sco3.2v5* | sco5v6*)
15729       # Note: We can NOT use -z defs as we might desire, because we do not
15730       # link with -lc, and that would cause any symbols used from libc to
15731       # always be unresolved, which means just about no library would
15732       # ever link correctly.  If we're not using GNU ld we use -z text
15733       # though, which does catch some bad symbols but isn't as heavy-handed
15734       # as -z defs.
15735       no_undefined_flag_F77='${wl}-z,text'
15736       allow_undefined_flag_F77='${wl}-z,nodefs'
15737       archive_cmds_need_lc_F77=no
15738       hardcode_shlibpath_var_F77=no
15739       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15740       hardcode_libdir_separator_F77=':'
15741       link_all_deplibs_F77=yes
15742       export_dynamic_flag_spec_F77='${wl}-Bexport'
15743       runpath_var='LD_RUN_PATH'
15744
15745       if test "$GCC" = yes; then
15746         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15747         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748       else
15749         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751       fi
15752       ;;
15753
15754     uts4*)
15755       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756       hardcode_libdir_flag_spec_F77='-L$libdir'
15757       hardcode_shlibpath_var_F77=no
15758       ;;
15759
15760     *)
15761       ld_shlibs_F77=no
15762       ;;
15763     esac
15764   fi
15765
15766 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15767 $as_echo "$ld_shlibs_F77" >&6; }
15768 test "$ld_shlibs_F77" = no && can_build_shared=no
15769
15770 #
15771 # Do we need to explicitly link libc?
15772 #
15773 case "x$archive_cmds_need_lc_F77" in
15774 x|xyes)
15775   # Assume -lc should be added
15776   archive_cmds_need_lc_F77=yes
15777
15778   if test "$enable_shared" = yes && test "$GCC" = yes; then
15779     case $archive_cmds_F77 in
15780     *'~'*)
15781       # FIXME: we may have to deal with multi-command sequences.
15782       ;;
15783     '$CC '*)
15784       # Test whether the compiler implicitly links with -lc since on some
15785       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15786       # to ld, don't add -lc before -lgcc.
15787       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15789       $rm conftest*
15790       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15791
15792       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15793   (eval $ac_compile) 2>&5
15794   ac_status=$?
15795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } 2>conftest.err; then
15797         soname=conftest
15798         lib=conftest
15799         libobjs=conftest.$ac_objext
15800         deplibs=
15801         wl=$lt_prog_compiler_wl_F77
15802         pic_flag=$lt_prog_compiler_pic_F77
15803         compiler_flags=-v
15804         linker_flags=-v
15805         verstring=
15806         output_objdir=.
15807         libname=conftest
15808         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15809         allow_undefined_flag_F77=
15810         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15811   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15812   ac_status=$?
15813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }
15815         then
15816           archive_cmds_need_lc_F77=no
15817         else
15818           archive_cmds_need_lc_F77=yes
15819         fi
15820         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15821       else
15822         cat conftest.err 1>&5
15823       fi
15824       $rm conftest*
15825       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15826 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15827       ;;
15828     esac
15829   fi
15830   ;;
15831 esac
15832
15833 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15835 library_names_spec=
15836 libname_spec='lib$name'
15837 soname_spec=
15838 shrext_cmds=".so"
15839 postinstall_cmds=
15840 postuninstall_cmds=
15841 finish_cmds=
15842 finish_eval=
15843 shlibpath_var=
15844 shlibpath_overrides_runpath=unknown
15845 version_type=none
15846 dynamic_linker="$host_os ld.so"
15847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15848
15849 need_lib_prefix=unknown
15850 hardcode_into_libs=no
15851
15852 # when you set need_version to no, make sure it does not cause -set_version
15853 # flags to be left without arguments
15854 need_version=unknown
15855
15856 case $host_os in
15857 aix3*)
15858   version_type=linux
15859   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15860   shlibpath_var=LIBPATH
15861
15862   # AIX 3 has no versioning support, so we append a major version to the name.
15863   soname_spec='${libname}${release}${shared_ext}$major'
15864   ;;
15865
15866 aix[4-9]*)
15867   version_type=linux
15868   need_lib_prefix=no
15869   need_version=no
15870   hardcode_into_libs=yes
15871   if test "$host_cpu" = ia64; then
15872     # AIX 5 supports IA64
15873     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15874     shlibpath_var=LD_LIBRARY_PATH
15875   else
15876     # With GCC up to 2.95.x, collect2 would create an import file
15877     # for dependence libraries.  The import file would start with
15878     # the line `#! .'.  This would cause the generated library to
15879     # depend on `.', always an invalid library.  This was fixed in
15880     # development snapshots of GCC prior to 3.0.
15881     case $host_os in
15882       aix4 | aix4.[01] | aix4.[01].*)
15883       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15884            echo ' yes '
15885            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15886         :
15887       else
15888         can_build_shared=no
15889       fi
15890       ;;
15891     esac
15892     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15893     # soname into executable. Probably we can add versioning support to
15894     # collect2, so additional links can be useful in future.
15895     if test "$aix_use_runtimelinking" = yes; then
15896       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15897       # instead of lib<name>.a to let people know that these are not
15898       # typical AIX shared libraries.
15899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900     else
15901       # We preserve .a as extension for shared libraries through AIX4.2
15902       # and later when we are not doing run time linking.
15903       library_names_spec='${libname}${release}.a $libname.a'
15904       soname_spec='${libname}${release}${shared_ext}$major'
15905     fi
15906     shlibpath_var=LIBPATH
15907   fi
15908   ;;
15909
15910 amigaos*)
15911   library_names_spec='$libname.ixlibrary $libname.a'
15912   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15913   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'
15914   ;;
15915
15916 beos*)
15917   library_names_spec='${libname}${shared_ext}'
15918   dynamic_linker="$host_os ld.so"
15919   shlibpath_var=LIBRARY_PATH
15920   ;;
15921
15922 bsdi[45]*)
15923   version_type=linux
15924   need_version=no
15925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926   soname_spec='${libname}${release}${shared_ext}$major'
15927   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15928   shlibpath_var=LD_LIBRARY_PATH
15929   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15930   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15931   # the default ld.so.conf also contains /usr/contrib/lib and
15932   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15933   # libtool to hard-code these into programs
15934   ;;
15935
15936 cygwin* | mingw* | pw32*)
15937   version_type=windows
15938   shrext_cmds=".dll"
15939   need_version=no
15940   need_lib_prefix=no
15941
15942   case $GCC,$host_os in
15943   yes,cygwin* | yes,mingw* | yes,pw32*)
15944     library_names_spec='$libname.dll.a'
15945     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15946     postinstall_cmds='base_file=`basename \${file}`~
15947       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15948       dldir=$destdir/`dirname \$dlpath`~
15949       test -d \$dldir || mkdir -p \$dldir~
15950       $install_prog $dir/$dlname \$dldir/$dlname~
15951       chmod a+x \$dldir/$dlname'
15952     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15953       dlpath=$dir/\$dldll~
15954        $rm \$dlpath'
15955     shlibpath_overrides_runpath=yes
15956
15957     case $host_os in
15958     cygwin*)
15959       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15960       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15961       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15962       ;;
15963     mingw*)
15964       # MinGW DLLs use traditional 'lib' prefix
15965       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15966       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15967       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15968         # It is most probably a Windows format PATH printed by
15969         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15970         # path with ; separators, and with drive letters. We can handle the
15971         # drive letters (cygwin fileutils understands them), so leave them,
15972         # especially as we might pass files found there to a mingw objdump,
15973         # which wouldn't understand a cygwinified path. Ahh.
15974         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15975       else
15976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15977       fi
15978       ;;
15979     pw32*)
15980       # pw32 DLLs use 'pw' prefix rather than 'lib'
15981       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982       ;;
15983     esac
15984     ;;
15985
15986   *)
15987     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15988     ;;
15989   esac
15990   dynamic_linker='Win32 ld.exe'
15991   # FIXME: first we should search . and the directory the executable is in
15992   shlibpath_var=PATH
15993   ;;
15994
15995 darwin* | rhapsody*)
15996   dynamic_linker="$host_os dyld"
15997   version_type=darwin
15998   need_lib_prefix=no
15999   need_version=no
16000   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16001   soname_spec='${libname}${release}${major}$shared_ext'
16002   shlibpath_overrides_runpath=yes
16003   shlibpath_var=DYLD_LIBRARY_PATH
16004   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16005
16006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16007   ;;
16008
16009 dgux*)
16010   version_type=linux
16011   need_lib_prefix=no
16012   need_version=no
16013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16014   soname_spec='${libname}${release}${shared_ext}$major'
16015   shlibpath_var=LD_LIBRARY_PATH
16016   ;;
16017
16018 freebsd1*)
16019   dynamic_linker=no
16020   ;;
16021
16022 freebsd* | dragonfly*)
16023   # DragonFly does not have aout.  When/if they implement a new
16024   # versioning mechanism, adjust this.
16025   if test -x /usr/bin/objformat; then
16026     objformat=`/usr/bin/objformat`
16027   else
16028     case $host_os in
16029     freebsd[123]*) objformat=aout ;;
16030     *) objformat=elf ;;
16031     esac
16032   fi
16033   version_type=freebsd-$objformat
16034   case $version_type in
16035     freebsd-elf*)
16036       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16037       need_version=no
16038       need_lib_prefix=no
16039       ;;
16040     freebsd-*)
16041       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16042       need_version=yes
16043       ;;
16044   esac
16045   shlibpath_var=LD_LIBRARY_PATH
16046   case $host_os in
16047   freebsd2*)
16048     shlibpath_overrides_runpath=yes
16049     ;;
16050   freebsd3.[01]* | freebsdelf3.[01]*)
16051     shlibpath_overrides_runpath=yes
16052     hardcode_into_libs=yes
16053     ;;
16054   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16055   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16056     shlibpath_overrides_runpath=no
16057     hardcode_into_libs=yes
16058     ;;
16059   *) # from 4.6 on, and DragonFly
16060     shlibpath_overrides_runpath=yes
16061     hardcode_into_libs=yes
16062     ;;
16063   esac
16064   ;;
16065
16066 gnu*)
16067   version_type=linux
16068   need_lib_prefix=no
16069   need_version=no
16070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16071   soname_spec='${libname}${release}${shared_ext}$major'
16072   shlibpath_var=LD_LIBRARY_PATH
16073   hardcode_into_libs=yes
16074   ;;
16075
16076 hpux9* | hpux10* | hpux11*)
16077   # Give a soname corresponding to the major version so that dld.sl refuses to
16078   # link against other versions.
16079   version_type=sunos
16080   need_lib_prefix=no
16081   need_version=no
16082   case $host_cpu in
16083   ia64*)
16084     shrext_cmds='.so'
16085     hardcode_into_libs=yes
16086     dynamic_linker="$host_os dld.so"
16087     shlibpath_var=LD_LIBRARY_PATH
16088     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090     soname_spec='${libname}${release}${shared_ext}$major'
16091     if test "X$HPUX_IA64_MODE" = X32; then
16092       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16093     else
16094       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16095     fi
16096     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16097     ;;
16098    hppa*64*)
16099      shrext_cmds='.sl'
16100      hardcode_into_libs=yes
16101      dynamic_linker="$host_os dld.sl"
16102      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16103      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16104      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105      soname_spec='${libname}${release}${shared_ext}$major'
16106      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16107      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16108      ;;
16109    *)
16110     shrext_cmds='.sl'
16111     dynamic_linker="$host_os dld.sl"
16112     shlibpath_var=SHLIB_PATH
16113     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115     soname_spec='${libname}${release}${shared_ext}$major'
16116     ;;
16117   esac
16118   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16119   postinstall_cmds='chmod 555 $lib'
16120   ;;
16121
16122 interix[3-9]*)
16123   version_type=linux
16124   need_lib_prefix=no
16125   need_version=no
16126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16127   soname_spec='${libname}${release}${shared_ext}$major'
16128   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   shlibpath_overrides_runpath=no
16131   hardcode_into_libs=yes
16132   ;;
16133
16134 irix5* | irix6* | nonstopux*)
16135   case $host_os in
16136     nonstopux*) version_type=nonstopux ;;
16137     *)
16138         if test "$lt_cv_prog_gnu_ld" = yes; then
16139                 version_type=linux
16140         else
16141                 version_type=irix
16142         fi ;;
16143   esac
16144   need_lib_prefix=no
16145   need_version=no
16146   soname_spec='${libname}${release}${shared_ext}$major'
16147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16148   case $host_os in
16149   irix5* | nonstopux*)
16150     libsuff= shlibsuff=
16151     ;;
16152   *)
16153     case $LD in # libtool.m4 will add one of these switches to LD
16154     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16155       libsuff= shlibsuff= libmagic=32-bit;;
16156     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16157       libsuff=32 shlibsuff=N32 libmagic=N32;;
16158     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16159       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16160     *) libsuff= shlibsuff= libmagic=never-match;;
16161     esac
16162     ;;
16163   esac
16164   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16165   shlibpath_overrides_runpath=no
16166   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16167   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16168   hardcode_into_libs=yes
16169   ;;
16170
16171 # No shared lib support for Linux oldld, aout, or coff.
16172 linux*oldld* | linux*aout* | linux*coff*)
16173   dynamic_linker=no
16174   ;;
16175
16176 # This must be Linux ELF.
16177 linux* | k*bsd*-gnu)
16178   version_type=linux
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16184   shlibpath_var=LD_LIBRARY_PATH
16185   shlibpath_overrides_runpath=no
16186   # This implies no fast_install, which is unacceptable.
16187   # Some rework will be needed to allow for fast_install
16188   # before this can be enabled.
16189   hardcode_into_libs=yes
16190
16191   # Append ld.so.conf contents to the search path
16192   if test -f /etc/ld.so.conf; then
16193     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' ' '`
16194     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16195   fi
16196
16197   # We used to test for /lib/ld.so.1 and disable shared libraries on
16198   # powerpc, because MkLinux only supported shared libraries with the
16199   # GNU dynamic linker.  Since this was broken with cross compilers,
16200   # most powerpc-linux boxes support dynamic linking these days and
16201   # people can always --disable-shared, the test was removed, and we
16202   # assume the GNU/Linux dynamic linker is in use.
16203   dynamic_linker='GNU/Linux ld.so'
16204   ;;
16205
16206 netbsdelf*-gnu)
16207   version_type=linux
16208   need_lib_prefix=no
16209   need_version=no
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   shlibpath_overrides_runpath=no
16214   hardcode_into_libs=yes
16215   dynamic_linker='NetBSD ld.elf_so'
16216   ;;
16217
16218 netbsd*)
16219   version_type=sunos
16220   need_lib_prefix=no
16221   need_version=no
16222   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16224     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16225     dynamic_linker='NetBSD (a.out) ld.so'
16226   else
16227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16228     soname_spec='${libname}${release}${shared_ext}$major'
16229     dynamic_linker='NetBSD ld.elf_so'
16230   fi
16231   shlibpath_var=LD_LIBRARY_PATH
16232   shlibpath_overrides_runpath=yes
16233   hardcode_into_libs=yes
16234   ;;
16235
16236 newsos6)
16237   version_type=linux
16238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239   shlibpath_var=LD_LIBRARY_PATH
16240   shlibpath_overrides_runpath=yes
16241   ;;
16242
16243 nto-qnx*)
16244   version_type=linux
16245   need_lib_prefix=no
16246   need_version=no
16247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   shlibpath_var=LD_LIBRARY_PATH
16250   shlibpath_overrides_runpath=yes
16251   ;;
16252
16253 openbsd*)
16254   version_type=sunos
16255   sys_lib_dlsearch_path_spec="/usr/lib"
16256   need_lib_prefix=no
16257   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16258   case $host_os in
16259     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16260     *)                         need_version=no  ;;
16261   esac
16262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16263   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16264   shlibpath_var=LD_LIBRARY_PATH
16265   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16266     case $host_os in
16267       openbsd2.[89] | openbsd2.[89].*)
16268         shlibpath_overrides_runpath=no
16269         ;;
16270       *)
16271         shlibpath_overrides_runpath=yes
16272         ;;
16273       esac
16274   else
16275     shlibpath_overrides_runpath=yes
16276   fi
16277   ;;
16278
16279 os2*)
16280   libname_spec='$name'
16281   shrext_cmds=".dll"
16282   need_lib_prefix=no
16283   library_names_spec='$libname${shared_ext} $libname.a'
16284   dynamic_linker='OS/2 ld.exe'
16285   shlibpath_var=LIBPATH
16286   ;;
16287
16288 osf3* | osf4* | osf5*)
16289   version_type=osf
16290   need_lib_prefix=no
16291   need_version=no
16292   soname_spec='${libname}${release}${shared_ext}$major'
16293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294   shlibpath_var=LD_LIBRARY_PATH
16295   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16296   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16297   ;;
16298
16299 rdos*)
16300   dynamic_linker=no
16301   ;;
16302
16303 solaris*)
16304   version_type=linux
16305   need_lib_prefix=no
16306   need_version=no
16307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308   soname_spec='${libname}${release}${shared_ext}$major'
16309   shlibpath_var=LD_LIBRARY_PATH
16310   shlibpath_overrides_runpath=yes
16311   hardcode_into_libs=yes
16312   # ldd complains unless libraries are executable
16313   postinstall_cmds='chmod +x $lib'
16314   ;;
16315
16316 sunos4*)
16317   version_type=sunos
16318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16319   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16320   shlibpath_var=LD_LIBRARY_PATH
16321   shlibpath_overrides_runpath=yes
16322   if test "$with_gnu_ld" = yes; then
16323     need_lib_prefix=no
16324   fi
16325   need_version=yes
16326   ;;
16327
16328 sysv4 | sysv4.3*)
16329   version_type=linux
16330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331   soname_spec='${libname}${release}${shared_ext}$major'
16332   shlibpath_var=LD_LIBRARY_PATH
16333   case $host_vendor in
16334     sni)
16335       shlibpath_overrides_runpath=no
16336       need_lib_prefix=no
16337       export_dynamic_flag_spec='${wl}-Blargedynsym'
16338       runpath_var=LD_RUN_PATH
16339       ;;
16340     siemens)
16341       need_lib_prefix=no
16342       ;;
16343     motorola)
16344       need_lib_prefix=no
16345       need_version=no
16346       shlibpath_overrides_runpath=no
16347       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16348       ;;
16349   esac
16350   ;;
16351
16352 sysv4*MP*)
16353   if test -d /usr/nec ;then
16354     version_type=linux
16355     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16356     soname_spec='$libname${shared_ext}.$major'
16357     shlibpath_var=LD_LIBRARY_PATH
16358   fi
16359   ;;
16360
16361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16362   version_type=freebsd-elf
16363   need_lib_prefix=no
16364   need_version=no
16365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16366   soname_spec='${libname}${release}${shared_ext}$major'
16367   shlibpath_var=LD_LIBRARY_PATH
16368   hardcode_into_libs=yes
16369   if test "$with_gnu_ld" = yes; then
16370     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16371     shlibpath_overrides_runpath=no
16372   else
16373     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16374     shlibpath_overrides_runpath=yes
16375     case $host_os in
16376       sco3.2v5*)
16377         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16378         ;;
16379     esac
16380   fi
16381   sys_lib_dlsearch_path_spec='/usr/lib'
16382   ;;
16383
16384 uts4*)
16385   version_type=linux
16386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387   soname_spec='${libname}${release}${shared_ext}$major'
16388   shlibpath_var=LD_LIBRARY_PATH
16389   ;;
16390
16391 *)
16392   dynamic_linker=no
16393   ;;
16394 esac
16395 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16396 $as_echo "$dynamic_linker" >&6; }
16397 test "$dynamic_linker" = no && can_build_shared=no
16398
16399 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16400   $as_echo_n "(cached) " >&6
16401 else
16402   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16403 fi
16404
16405 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16406 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16407   $as_echo_n "(cached) " >&6
16408 else
16409   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16410 fi
16411
16412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16413
16414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16415 if test "$GCC" = yes; then
16416   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16417 fi
16418
16419 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16421 hardcode_action_F77=
16422 if test -n "$hardcode_libdir_flag_spec_F77" || \
16423    test -n "$runpath_var_F77" || \
16424    test "X$hardcode_automatic_F77" = "Xyes" ; then
16425
16426   # We can hardcode non-existant directories.
16427   if test "$hardcode_direct_F77" != no &&
16428      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16429      # have to relink, otherwise we might link with an installed library
16430      # when we should be linking with a yet-to-be-installed one
16431      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16432      test "$hardcode_minus_L_F77" != no; then
16433     # Linking always hardcodes the temporary library directory.
16434     hardcode_action_F77=relink
16435   else
16436     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16437     hardcode_action_F77=immediate
16438   fi
16439 else
16440   # We cannot hardcode anything, or else we can only hardcode existing
16441   # directories.
16442   hardcode_action_F77=unsupported
16443 fi
16444 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16445 $as_echo "$hardcode_action_F77" >&6; }
16446
16447 if test "$hardcode_action_F77" = relink; then
16448   # Fast installation is not supported
16449   enable_fast_install=no
16450 elif test "$shlibpath_overrides_runpath" = yes ||
16451      test "$enable_shared" = no; then
16452   # Fast installation is not necessary
16453   enable_fast_install=needless
16454 fi
16455
16456
16457 # The else clause should only fire when bootstrapping the
16458 # libtool distribution, otherwise you forgot to ship ltmain.sh
16459 # with your package, and you will get complaints that there are
16460 # no rules to generate ltmain.sh.
16461 if test -f "$ltmain"; then
16462   # See if we are running on zsh, and set the options which allow our commands through
16463   # without removal of \ escapes.
16464   if test -n "${ZSH_VERSION+set}" ; then
16465     setopt NO_GLOB_SUBST
16466   fi
16467   # Now quote all the things that may contain metacharacters while being
16468   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16469   # variables and quote the copies for generation of the libtool script.
16470   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16471     SED SHELL STRIP \
16472     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16473     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16474     deplibs_check_method reload_flag reload_cmds need_locks \
16475     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16476     lt_cv_sys_global_symbol_to_c_name_address \
16477     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16478     old_postinstall_cmds old_postuninstall_cmds \
16479     compiler_F77 \
16480     CC_F77 \
16481     LD_F77 \
16482     lt_prog_compiler_wl_F77 \
16483     lt_prog_compiler_pic_F77 \
16484     lt_prog_compiler_static_F77 \
16485     lt_prog_compiler_no_builtin_flag_F77 \
16486     export_dynamic_flag_spec_F77 \
16487     thread_safe_flag_spec_F77 \
16488     whole_archive_flag_spec_F77 \
16489     enable_shared_with_static_runtimes_F77 \
16490     old_archive_cmds_F77 \
16491     old_archive_from_new_cmds_F77 \
16492     predep_objects_F77 \
16493     postdep_objects_F77 \
16494     predeps_F77 \
16495     postdeps_F77 \
16496     compiler_lib_search_path_F77 \
16497     compiler_lib_search_dirs_F77 \
16498     archive_cmds_F77 \
16499     archive_expsym_cmds_F77 \
16500     postinstall_cmds_F77 \
16501     postuninstall_cmds_F77 \
16502     old_archive_from_expsyms_cmds_F77 \
16503     allow_undefined_flag_F77 \
16504     no_undefined_flag_F77 \
16505     export_symbols_cmds_F77 \
16506     hardcode_libdir_flag_spec_F77 \
16507     hardcode_libdir_flag_spec_ld_F77 \
16508     hardcode_libdir_separator_F77 \
16509     hardcode_automatic_F77 \
16510     module_cmds_F77 \
16511     module_expsym_cmds_F77 \
16512     lt_cv_prog_compiler_c_o_F77 \
16513     fix_srcfile_path_F77 \
16514     exclude_expsyms_F77 \
16515     include_expsyms_F77; do
16516
16517     case $var in
16518     old_archive_cmds_F77 | \
16519     old_archive_from_new_cmds_F77 | \
16520     archive_cmds_F77 | \
16521     archive_expsym_cmds_F77 | \
16522     module_cmds_F77 | \
16523     module_expsym_cmds_F77 | \
16524     old_archive_from_expsyms_cmds_F77 | \
16525     export_symbols_cmds_F77 | \
16526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16527     postinstall_cmds | postuninstall_cmds | \
16528     old_postinstall_cmds | old_postuninstall_cmds | \
16529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16530       # Double-quote double-evaled strings.
16531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16532       ;;
16533     *)
16534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16535       ;;
16536     esac
16537   done
16538
16539   case $lt_echo in
16540   *'\$0 --fallback-echo"')
16541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16542     ;;
16543   esac
16544
16545 cfgfile="$ofile"
16546
16547   cat <<__EOF__ >> "$cfgfile"
16548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16549
16550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16551
16552 # Shell to use when invoking shell scripts.
16553 SHELL=$lt_SHELL
16554
16555 # Whether or not to build shared libraries.
16556 build_libtool_libs=$enable_shared
16557
16558 # Whether or not to build static libraries.
16559 build_old_libs=$enable_static
16560
16561 # Whether or not to add -lc for building shared libraries.
16562 build_libtool_need_lc=$archive_cmds_need_lc_F77
16563
16564 # Whether or not to disallow shared libs when runtime libs are static
16565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16566
16567 # Whether or not to optimize for fast installation.
16568 fast_install=$enable_fast_install
16569
16570 # The host system.
16571 host_alias=$host_alias
16572 host=$host
16573 host_os=$host_os
16574
16575 # The build system.
16576 build_alias=$build_alias
16577 build=$build
16578 build_os=$build_os
16579
16580 # An echo program that does not interpret backslashes.
16581 echo=$lt_echo
16582
16583 # The archiver.
16584 AR=$lt_AR
16585 AR_FLAGS=$lt_AR_FLAGS
16586
16587 # A C compiler.
16588 LTCC=$lt_LTCC
16589
16590 # LTCC compiler flags.
16591 LTCFLAGS=$lt_LTCFLAGS
16592
16593 # A language-specific compiler.
16594 CC=$lt_compiler_F77
16595
16596 # Is the compiler the GNU C compiler?
16597 with_gcc=$GCC_F77
16598
16599 # An ERE matcher.
16600 EGREP=$lt_EGREP
16601
16602 # The linker used to build libraries.
16603 LD=$lt_LD_F77
16604
16605 # Whether we need hard or soft links.
16606 LN_S=$lt_LN_S
16607
16608 # A BSD-compatible nm program.
16609 NM=$lt_NM
16610
16611 # A symbol stripping program
16612 STRIP=$lt_STRIP
16613
16614 # Used to examine libraries when file_magic_cmd begins "file"
16615 MAGIC_CMD=$MAGIC_CMD
16616
16617 # Used on cygwin: DLL creation program.
16618 DLLTOOL="$DLLTOOL"
16619
16620 # Used on cygwin: object dumper.
16621 OBJDUMP="$OBJDUMP"
16622
16623 # Used on cygwin: assembler.
16624 AS="$AS"
16625
16626 # The name of the directory that contains temporary libtool files.
16627 objdir=$objdir
16628
16629 # How to create reloadable object files.
16630 reload_flag=$lt_reload_flag
16631 reload_cmds=$lt_reload_cmds
16632
16633 # How to pass a linker flag through the compiler.
16634 wl=$lt_lt_prog_compiler_wl_F77
16635
16636 # Object file suffix (normally "o").
16637 objext="$ac_objext"
16638
16639 # Old archive suffix (normally "a").
16640 libext="$libext"
16641
16642 # Shared library suffix (normally ".so").
16643 shrext_cmds='$shrext_cmds'
16644
16645 # Executable file suffix (normally "").
16646 exeext="$exeext"
16647
16648 # Additional compiler flags for building library objects.
16649 pic_flag=$lt_lt_prog_compiler_pic_F77
16650 pic_mode=$pic_mode
16651
16652 # What is the maximum length of a command?
16653 max_cmd_len=$lt_cv_sys_max_cmd_len
16654
16655 # Does compiler simultaneously support -c and -o options?
16656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16657
16658 # Must we lock files when doing compilation?
16659 need_locks=$lt_need_locks
16660
16661 # Do we need the lib prefix for modules?
16662 need_lib_prefix=$need_lib_prefix
16663
16664 # Do we need a version for libraries?
16665 need_version=$need_version
16666
16667 # Whether dlopen is supported.
16668 dlopen_support=$enable_dlopen
16669
16670 # Whether dlopen of programs is supported.
16671 dlopen_self=$enable_dlopen_self
16672
16673 # Whether dlopen of statically linked programs is supported.
16674 dlopen_self_static=$enable_dlopen_self_static
16675
16676 # Compiler flag to prevent dynamic linking.
16677 link_static_flag=$lt_lt_prog_compiler_static_F77
16678
16679 # Compiler flag to turn off builtin functions.
16680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16681
16682 # Compiler flag to allow reflexive dlopens.
16683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16684
16685 # Compiler flag to generate shared objects directly from archives.
16686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16687
16688 # Compiler flag to generate thread-safe objects.
16689 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16690
16691 # Library versioning type.
16692 version_type=$version_type
16693
16694 # Format of library name prefix.
16695 libname_spec=$lt_libname_spec
16696
16697 # List of archive names.  First name is the real one, the rest are links.
16698 # The last name is the one that the linker finds with -lNAME.
16699 library_names_spec=$lt_library_names_spec
16700
16701 # The coded name of the library, if different from the real name.
16702 soname_spec=$lt_soname_spec
16703
16704 # Commands used to build and install an old-style archive.
16705 RANLIB=$lt_RANLIB
16706 old_archive_cmds=$lt_old_archive_cmds_F77
16707 old_postinstall_cmds=$lt_old_postinstall_cmds
16708 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16709
16710 # Create an old-style archive from a shared archive.
16711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16712
16713 # Create a temporary old-style archive to link instead of a shared archive.
16714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16715
16716 # Commands used to build and install a shared archive.
16717 archive_cmds=$lt_archive_cmds_F77
16718 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16719 postinstall_cmds=$lt_postinstall_cmds
16720 postuninstall_cmds=$lt_postuninstall_cmds
16721
16722 # Commands used to build a loadable module (assumed same as above if empty)
16723 module_cmds=$lt_module_cmds_F77
16724 module_expsym_cmds=$lt_module_expsym_cmds_F77
16725
16726 # Commands to strip libraries.
16727 old_striplib=$lt_old_striplib
16728 striplib=$lt_striplib
16729
16730 # Dependencies to place before the objects being linked to create a
16731 # shared library.
16732 predep_objects=$lt_predep_objects_F77
16733
16734 # Dependencies to place after the objects being linked to create a
16735 # shared library.
16736 postdep_objects=$lt_postdep_objects_F77
16737
16738 # Dependencies to place before the objects being linked to create a
16739 # shared library.
16740 predeps=$lt_predeps_F77
16741
16742 # Dependencies to place after the objects being linked to create a
16743 # shared library.
16744 postdeps=$lt_postdeps_F77
16745
16746 # The directories searched by this compiler when creating a shared
16747 # library
16748 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16749
16750 # The library search path used internally by the compiler when linking
16751 # a shared library.
16752 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16753
16754 # Method to check whether dependent libraries are shared objects.
16755 deplibs_check_method=$lt_deplibs_check_method
16756
16757 # Command to use when deplibs_check_method == file_magic.
16758 file_magic_cmd=$lt_file_magic_cmd
16759
16760 # Flag that allows shared libraries with undefined symbols to be built.
16761 allow_undefined_flag=$lt_allow_undefined_flag_F77
16762
16763 # Flag that forces no undefined symbols.
16764 no_undefined_flag=$lt_no_undefined_flag_F77
16765
16766 # Commands used to finish a libtool library installation in a directory.
16767 finish_cmds=$lt_finish_cmds
16768
16769 # Same as above, but a single script fragment to be evaled but not shown.
16770 finish_eval=$lt_finish_eval
16771
16772 # Take the output of nm and produce a listing of raw symbols and C names.
16773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16774
16775 # Transform the output of nm in a proper C declaration
16776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16777
16778 # Transform the output of nm in a C name address pair
16779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16780
16781 # This is the shared library runtime path variable.
16782 runpath_var=$runpath_var
16783
16784 # This is the shared library path variable.
16785 shlibpath_var=$shlibpath_var
16786
16787 # Is shlibpath searched before the hard-coded library search path?
16788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16789
16790 # How to hardcode a shared library path into an executable.
16791 hardcode_action=$hardcode_action_F77
16792
16793 # Whether we should hardcode library paths into libraries.
16794 hardcode_into_libs=$hardcode_into_libs
16795
16796 # Flag to hardcode \$libdir into a binary during linking.
16797 # This must work even if \$libdir does not exist.
16798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16799
16800 # If ld is used when linking, flag to hardcode \$libdir into
16801 # a binary during linking. This must work even if \$libdir does
16802 # not exist.
16803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16804
16805 # Whether we need a single -rpath flag with a separated argument.
16806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16807
16808 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16809 # resulting binary.
16810 hardcode_direct=$hardcode_direct_F77
16811
16812 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16813 # resulting binary.
16814 hardcode_minus_L=$hardcode_minus_L_F77
16815
16816 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16817 # the resulting binary.
16818 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16819
16820 # Set to yes if building a shared library automatically hardcodes DIR into the library
16821 # and all subsequent libraries and executables linked against it.
16822 hardcode_automatic=$hardcode_automatic_F77
16823
16824 # Variables whose values should be saved in libtool wrapper scripts and
16825 # restored at relink time.
16826 variables_saved_for_relink="$variables_saved_for_relink"
16827
16828 # Whether libtool must link a program against all its dependency libraries.
16829 link_all_deplibs=$link_all_deplibs_F77
16830
16831 # Compile-time system search path for libraries
16832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16833
16834 # Run-time system search path for libraries
16835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16836
16837 # Fix the shell variable \$srcfile for the compiler.
16838 fix_srcfile_path=$lt_fix_srcfile_path
16839
16840 # Set to yes if exported symbols are required.
16841 always_export_symbols=$always_export_symbols_F77
16842
16843 # The commands to list exported symbols.
16844 export_symbols_cmds=$lt_export_symbols_cmds_F77
16845
16846 # The commands to extract the exported symbol list from a shared archive.
16847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16848
16849 # Symbols that should not be listed in the preloaded symbols.
16850 exclude_expsyms=$lt_exclude_expsyms_F77
16851
16852 # Symbols that must always be exported.
16853 include_expsyms=$lt_include_expsyms_F77
16854
16855 # ### END LIBTOOL TAG CONFIG: $tagname
16856
16857 __EOF__
16858
16859
16860 else
16861   # If there is no Makefile yet, we rely on a make rule to execute
16862   # `config.status --recheck' to rerun these tests and create the
16863   # libtool script then.
16864   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16865   if test -f "$ltmain_in"; then
16866     test -f Makefile && make "$ltmain"
16867   fi
16868 fi
16869
16870
16871 ac_ext=c
16872 ac_cpp='$CPP $CPPFLAGS'
16873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16876
16877 CC="$lt_save_CC"
16878
16879         else
16880           tagname=""
16881         fi
16882         ;;
16883
16884       GCJ)
16885         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16886
16887
16888 # Source file extension for Java test sources.
16889 ac_ext=java
16890
16891 # Object file extension for compiled Java test sources.
16892 objext=o
16893 objext_GCJ=$objext
16894
16895 # Code to be used in simple compile tests
16896 lt_simple_compile_test_code="class foo {}"
16897
16898 # Code to be used in simple link tests
16899 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16900
16901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16902
16903 # If no C compiler was specified, use CC.
16904 LTCC=${LTCC-"$CC"}
16905
16906 # If no C compiler flags were specified, use CFLAGS.
16907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16908
16909 # Allow CC to be a program name with arguments.
16910 compiler=$CC
16911
16912
16913 # save warnings/boilerplate of simple test code
16914 ac_outfile=conftest.$ac_objext
16915 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16916 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16917 _lt_compiler_boilerplate=`cat conftest.err`
16918 $rm conftest*
16919
16920 ac_outfile=conftest.$ac_objext
16921 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16922 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923 _lt_linker_boilerplate=`cat conftest.err`
16924 $rm -r conftest*
16925
16926
16927 # Allow CC to be a program name with arguments.
16928 lt_save_CC="$CC"
16929 CC=${GCJ-"gcj"}
16930 compiler=$CC
16931 compiler_GCJ=$CC
16932 for cc_temp in $compiler""; do
16933   case $cc_temp in
16934     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16935     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16936     \-*) ;;
16937     *) break;;
16938   esac
16939 done
16940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16941
16942
16943 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16944 archive_cmds_need_lc_GCJ=no
16945
16946 old_archive_cmds_GCJ=$old_archive_cmds
16947
16948
16949 lt_prog_compiler_no_builtin_flag_GCJ=
16950
16951 if test "$GCC" = yes; then
16952   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16953
16954
16955 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16956 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16958   $as_echo_n "(cached) " >&6
16959 else
16960   lt_cv_prog_compiler_rtti_exceptions=no
16961   ac_outfile=conftest.$ac_objext
16962    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16963    lt_compiler_flag="-fno-rtti -fno-exceptions"
16964    # Insert the option either (1) after the last *FLAGS variable, or
16965    # (2) before a word containing "conftest.", or (3) at the end.
16966    # Note that $ac_compile itself does not contain backslashes and begins
16967    # with a dollar sign (not a hyphen), so the echo should work correctly.
16968    # The option is referenced via a variable to avoid confusing sed.
16969    lt_compile=`echo "$ac_compile" | $SED \
16970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16972    -e 's:$: $lt_compiler_flag:'`
16973    (eval echo "\"\$as_me:16973: $lt_compile\"" >&5)
16974    (eval "$lt_compile" 2>conftest.err)
16975    ac_status=$?
16976    cat conftest.err >&5
16977    echo "$as_me:16977: \$? = $ac_status" >&5
16978    if (exit $ac_status) && test -s "$ac_outfile"; then
16979      # The compiler can only warn and ignore the option if not recognized
16980      # So say no if there are warnings other than the usual output.
16981      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16982      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16983      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16984        lt_cv_prog_compiler_rtti_exceptions=yes
16985      fi
16986    fi
16987    $rm conftest*
16988
16989 fi
16990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16991 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16992
16993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16994     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16995 else
16996     :
16997 fi
16998
16999 fi
17000
17001 lt_prog_compiler_wl_GCJ=
17002 lt_prog_compiler_pic_GCJ=
17003 lt_prog_compiler_static_GCJ=
17004
17005 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17007
17008   if test "$GCC" = yes; then
17009     lt_prog_compiler_wl_GCJ='-Wl,'
17010     lt_prog_compiler_static_GCJ='-static'
17011
17012     case $host_os in
17013       aix*)
17014       # All AIX code is PIC.
17015       if test "$host_cpu" = ia64; then
17016         # AIX 5 now supports IA64 processor
17017         lt_prog_compiler_static_GCJ='-Bstatic'
17018       fi
17019       ;;
17020
17021     amigaos*)
17022       # FIXME: we need at least 68020 code to build shared libraries, but
17023       # adding the `-m68020' flag to GCC prevents building anything better,
17024       # like `-m68040'.
17025       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17026       ;;
17027
17028     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17029       # PIC is the default for these OSes.
17030       ;;
17031
17032     mingw* | cygwin* | pw32* | os2*)
17033       # This hack is so that the source file can tell whether it is being
17034       # built for inclusion in a dll (and should export symbols for example).
17035       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17036       # (--disable-auto-import) libraries
17037
17038       ;;
17039
17040     darwin* | rhapsody*)
17041       # PIC is the default on this platform
17042       # Common symbols not allowed in MH_DYLIB files
17043       lt_prog_compiler_pic_GCJ='-fno-common'
17044       ;;
17045
17046     interix[3-9]*)
17047       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17048       # Instead, we relocate shared libraries at runtime.
17049       ;;
17050
17051     msdosdjgpp*)
17052       # Just because we use GCC doesn't mean we suddenly get shared libraries
17053       # on systems that don't support them.
17054       lt_prog_compiler_can_build_shared_GCJ=no
17055       enable_shared=no
17056       ;;
17057
17058     sysv4*MP*)
17059       if test -d /usr/nec; then
17060         lt_prog_compiler_pic_GCJ=-Kconform_pic
17061       fi
17062       ;;
17063
17064     hpux*)
17065       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17066       # not for PA HP-UX.
17067       case $host_cpu in
17068       hppa*64*|ia64*)
17069         # +Z the default
17070         ;;
17071       *)
17072         lt_prog_compiler_pic_GCJ='-fPIC'
17073         ;;
17074       esac
17075       ;;
17076
17077     *)
17078       lt_prog_compiler_pic_GCJ='-fPIC'
17079       ;;
17080     esac
17081   else
17082     # PORTME Check for flag to pass linker flags through the system compiler.
17083     case $host_os in
17084     aix*)
17085       lt_prog_compiler_wl_GCJ='-Wl,'
17086       if test "$host_cpu" = ia64; then
17087         # AIX 5 now supports IA64 processor
17088         lt_prog_compiler_static_GCJ='-Bstatic'
17089       else
17090         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17091       fi
17092       ;;
17093       darwin*)
17094         # PIC is the default on this platform
17095         # Common symbols not allowed in MH_DYLIB files
17096        case $cc_basename in
17097          xlc*)
17098          lt_prog_compiler_pic_GCJ='-qnocommon'
17099          lt_prog_compiler_wl_GCJ='-Wl,'
17100          ;;
17101        esac
17102        ;;
17103
17104     mingw* | cygwin* | pw32* | os2*)
17105       # This hack is so that the source file can tell whether it is being
17106       # built for inclusion in a dll (and should export symbols for example).
17107
17108       ;;
17109
17110     hpux9* | hpux10* | hpux11*)
17111       lt_prog_compiler_wl_GCJ='-Wl,'
17112       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113       # not for PA HP-UX.
17114       case $host_cpu in
17115       hppa*64*|ia64*)
17116         # +Z the default
17117         ;;
17118       *)
17119         lt_prog_compiler_pic_GCJ='+Z'
17120         ;;
17121       esac
17122       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17123       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17124       ;;
17125
17126     irix5* | irix6* | nonstopux*)
17127       lt_prog_compiler_wl_GCJ='-Wl,'
17128       # PIC (with -KPIC) is the default.
17129       lt_prog_compiler_static_GCJ='-non_shared'
17130       ;;
17131
17132     newsos6)
17133       lt_prog_compiler_pic_GCJ='-KPIC'
17134       lt_prog_compiler_static_GCJ='-Bstatic'
17135       ;;
17136
17137     linux* | k*bsd*-gnu)
17138       case $cc_basename in
17139       icc* | ecc*)
17140         lt_prog_compiler_wl_GCJ='-Wl,'
17141         lt_prog_compiler_pic_GCJ='-KPIC'
17142         lt_prog_compiler_static_GCJ='-static'
17143         ;;
17144       pgcc* | pgf77* | pgf90* | pgf95*)
17145         # Portland Group compilers (*not* the Pentium gcc compiler,
17146         # which looks to be a dead project)
17147         lt_prog_compiler_wl_GCJ='-Wl,'
17148         lt_prog_compiler_pic_GCJ='-fpic'
17149         lt_prog_compiler_static_GCJ='-Bstatic'
17150         ;;
17151       ccc*)
17152         lt_prog_compiler_wl_GCJ='-Wl,'
17153         # All Alpha code is PIC.
17154         lt_prog_compiler_static_GCJ='-non_shared'
17155         ;;
17156       *)
17157         case `$CC -V 2>&1 | sed 5q` in
17158         *Sun\ C*)
17159           # Sun C 5.9
17160           lt_prog_compiler_pic_GCJ='-KPIC'
17161           lt_prog_compiler_static_GCJ='-Bstatic'
17162           lt_prog_compiler_wl_GCJ='-Wl,'
17163           ;;
17164         *Sun\ F*)
17165           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17166           lt_prog_compiler_pic_GCJ='-KPIC'
17167           lt_prog_compiler_static_GCJ='-Bstatic'
17168           lt_prog_compiler_wl_GCJ=''
17169           ;;
17170         esac
17171         ;;
17172       esac
17173       ;;
17174
17175     osf3* | osf4* | osf5*)
17176       lt_prog_compiler_wl_GCJ='-Wl,'
17177       # All OSF/1 code is PIC.
17178       lt_prog_compiler_static_GCJ='-non_shared'
17179       ;;
17180
17181     rdos*)
17182       lt_prog_compiler_static_GCJ='-non_shared'
17183       ;;
17184
17185     solaris*)
17186       lt_prog_compiler_pic_GCJ='-KPIC'
17187       lt_prog_compiler_static_GCJ='-Bstatic'
17188       case $cc_basename in
17189       f77* | f90* | f95*)
17190         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17191       *)
17192         lt_prog_compiler_wl_GCJ='-Wl,';;
17193       esac
17194       ;;
17195
17196     sunos4*)
17197       lt_prog_compiler_wl_GCJ='-Qoption ld '
17198       lt_prog_compiler_pic_GCJ='-PIC'
17199       lt_prog_compiler_static_GCJ='-Bstatic'
17200       ;;
17201
17202     sysv4 | sysv4.2uw2* | sysv4.3*)
17203       lt_prog_compiler_wl_GCJ='-Wl,'
17204       lt_prog_compiler_pic_GCJ='-KPIC'
17205       lt_prog_compiler_static_GCJ='-Bstatic'
17206       ;;
17207
17208     sysv4*MP*)
17209       if test -d /usr/nec ;then
17210         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17211         lt_prog_compiler_static_GCJ='-Bstatic'
17212       fi
17213       ;;
17214
17215     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17216       lt_prog_compiler_wl_GCJ='-Wl,'
17217       lt_prog_compiler_pic_GCJ='-KPIC'
17218       lt_prog_compiler_static_GCJ='-Bstatic'
17219       ;;
17220
17221     unicos*)
17222       lt_prog_compiler_wl_GCJ='-Wl,'
17223       lt_prog_compiler_can_build_shared_GCJ=no
17224       ;;
17225
17226     uts4*)
17227       lt_prog_compiler_pic_GCJ='-pic'
17228       lt_prog_compiler_static_GCJ='-Bstatic'
17229       ;;
17230
17231     *)
17232       lt_prog_compiler_can_build_shared_GCJ=no
17233       ;;
17234     esac
17235   fi
17236
17237 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17238 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17239
17240 #
17241 # Check to make sure the PIC flag actually works.
17242 #
17243 if test -n "$lt_prog_compiler_pic_GCJ"; then
17244
17245 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17246 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17247 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17248   $as_echo_n "(cached) " >&6
17249 else
17250   lt_cv_prog_compiler_pic_works_GCJ=no
17251   ac_outfile=conftest.$ac_objext
17252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17253    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17254    # Insert the option either (1) after the last *FLAGS variable, or
17255    # (2) before a word containing "conftest.", or (3) at the end.
17256    # Note that $ac_compile itself does not contain backslashes and begins
17257    # with a dollar sign (not a hyphen), so the echo should work correctly.
17258    # The option is referenced via a variable to avoid confusing sed.
17259    lt_compile=`echo "$ac_compile" | $SED \
17260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17262    -e 's:$: $lt_compiler_flag:'`
17263    (eval echo "\"\$as_me:17263: $lt_compile\"" >&5)
17264    (eval "$lt_compile" 2>conftest.err)
17265    ac_status=$?
17266    cat conftest.err >&5
17267    echo "$as_me:17267: \$? = $ac_status" >&5
17268    if (exit $ac_status) && test -s "$ac_outfile"; then
17269      # The compiler can only warn and ignore the option if not recognized
17270      # So say no if there are warnings other than the usual output.
17271      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17272      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17273      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17274        lt_cv_prog_compiler_pic_works_GCJ=yes
17275      fi
17276    fi
17277    $rm conftest*
17278
17279 fi
17280 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17281 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17282
17283 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17284     case $lt_prog_compiler_pic_GCJ in
17285      "" | " "*) ;;
17286      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17287      esac
17288 else
17289     lt_prog_compiler_pic_GCJ=
17290      lt_prog_compiler_can_build_shared_GCJ=no
17291 fi
17292
17293 fi
17294 case $host_os in
17295   # For platforms which do not support PIC, -DPIC is meaningless:
17296   *djgpp*)
17297     lt_prog_compiler_pic_GCJ=
17298     ;;
17299   *)
17300     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17301     ;;
17302 esac
17303
17304 #
17305 # Check to make sure the static flag actually works.
17306 #
17307 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17308 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17309 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17310 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17311   $as_echo_n "(cached) " >&6
17312 else
17313   lt_cv_prog_compiler_static_works_GCJ=no
17314    save_LDFLAGS="$LDFLAGS"
17315    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17316    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17317    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17318      # The linker can only warn and ignore the option if not recognized
17319      # So say no if there are warnings
17320      if test -s conftest.err; then
17321        # Append any errors to the config.log.
17322        cat conftest.err 1>&5
17323        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17324        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17325        if diff conftest.exp conftest.er2 >/dev/null; then
17326          lt_cv_prog_compiler_static_works_GCJ=yes
17327        fi
17328      else
17329        lt_cv_prog_compiler_static_works_GCJ=yes
17330      fi
17331    fi
17332    $rm -r conftest*
17333    LDFLAGS="$save_LDFLAGS"
17334
17335 fi
17336 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17337 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17338
17339 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17340     :
17341 else
17342     lt_prog_compiler_static_GCJ=
17343 fi
17344
17345
17346 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17348 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17349   $as_echo_n "(cached) " >&6
17350 else
17351   lt_cv_prog_compiler_c_o_GCJ=no
17352    $rm -r conftest 2>/dev/null
17353    mkdir conftest
17354    cd conftest
17355    mkdir out
17356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17357
17358    lt_compiler_flag="-o out/conftest2.$ac_objext"
17359    # Insert the option either (1) after the last *FLAGS variable, or
17360    # (2) before a word containing "conftest.", or (3) at the end.
17361    # Note that $ac_compile itself does not contain backslashes and begins
17362    # with a dollar sign (not a hyphen), so the echo should work correctly.
17363    lt_compile=`echo "$ac_compile" | $SED \
17364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17366    -e 's:$: $lt_compiler_flag:'`
17367    (eval echo "\"\$as_me:17367: $lt_compile\"" >&5)
17368    (eval "$lt_compile" 2>out/conftest.err)
17369    ac_status=$?
17370    cat out/conftest.err >&5
17371    echo "$as_me:17371: \$? = $ac_status" >&5
17372    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17373    then
17374      # The compiler can only warn and ignore the option if not recognized
17375      # So say no if there are warnings
17376      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17377      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17378      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17379        lt_cv_prog_compiler_c_o_GCJ=yes
17380      fi
17381    fi
17382    chmod u+w . 2>&5
17383    $rm conftest*
17384    # SGI C++ compiler will create directory out/ii_files/ for
17385    # template instantiation
17386    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17387    $rm out/* && rmdir out
17388    cd ..
17389    rmdir conftest
17390    $rm conftest*
17391
17392 fi
17393 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17394 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17395
17396
17397 hard_links="nottested"
17398 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17399   # do not overwrite the value of need_locks provided by the user
17400   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17401 $as_echo_n "checking if we can lock with hard links... " >&6; }
17402   hard_links=yes
17403   $rm conftest*
17404   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17405   touch conftest.a
17406   ln conftest.a conftest.b 2>&5 || hard_links=no
17407   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17408   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17409 $as_echo "$hard_links" >&6; }
17410   if test "$hard_links" = no; then
17411     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17412 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17413     need_locks=warn
17414   fi
17415 else
17416   need_locks=no
17417 fi
17418
17419 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17420 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17421
17422   runpath_var=
17423   allow_undefined_flag_GCJ=
17424   enable_shared_with_static_runtimes_GCJ=no
17425   archive_cmds_GCJ=
17426   archive_expsym_cmds_GCJ=
17427   old_archive_From_new_cmds_GCJ=
17428   old_archive_from_expsyms_cmds_GCJ=
17429   export_dynamic_flag_spec_GCJ=
17430   whole_archive_flag_spec_GCJ=
17431   thread_safe_flag_spec_GCJ=
17432   hardcode_libdir_flag_spec_GCJ=
17433   hardcode_libdir_flag_spec_ld_GCJ=
17434   hardcode_libdir_separator_GCJ=
17435   hardcode_direct_GCJ=no
17436   hardcode_minus_L_GCJ=no
17437   hardcode_shlibpath_var_GCJ=unsupported
17438   link_all_deplibs_GCJ=unknown
17439   hardcode_automatic_GCJ=no
17440   module_cmds_GCJ=
17441   module_expsym_cmds_GCJ=
17442   always_export_symbols_GCJ=no
17443   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17444   # include_expsyms should be a list of space-separated symbols to be *always*
17445   # included in the symbol list
17446   include_expsyms_GCJ=
17447   # exclude_expsyms can be an extended regexp of symbols to exclude
17448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17450   # as well as any symbol that contains `d'.
17451   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17453   # platforms (ab)use it in PIC code, but their linkers get confused if
17454   # the symbol is explicitly referenced.  Since portable code cannot
17455   # rely on this symbol name, it's probably fine to never include it in
17456   # preloaded symbol tables.
17457   # Exclude shared library initialization/finalization symbols.
17458   extract_expsyms_cmds=
17459   # Just being paranoid about ensuring that cc_basename is set.
17460   for cc_temp in $compiler""; do
17461   case $cc_temp in
17462     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17463     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17464     \-*) ;;
17465     *) break;;
17466   esac
17467 done
17468 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17469
17470   case $host_os in
17471   cygwin* | mingw* | pw32*)
17472     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17473     # When not using gcc, we currently assume that we are using
17474     # Microsoft Visual C++.
17475     if test "$GCC" != yes; then
17476       with_gnu_ld=no
17477     fi
17478     ;;
17479   interix*)
17480     # we just hope/assume this is gcc and not c89 (= MSVC++)
17481     with_gnu_ld=yes
17482     ;;
17483   openbsd*)
17484     with_gnu_ld=no
17485     ;;
17486   esac
17487
17488   ld_shlibs_GCJ=yes
17489   if test "$with_gnu_ld" = yes; then
17490     # If archive_cmds runs LD, not CC, wlarc should be empty
17491     wlarc='${wl}'
17492
17493     # Set some defaults for GNU ld with shared library support. These
17494     # are reset later if shared libraries are not supported. Putting them
17495     # here allows them to be overridden if necessary.
17496     runpath_var=LD_RUN_PATH
17497     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17498     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17499     # ancient GNU ld didn't support --whole-archive et. al.
17500     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17501         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17502       else
17503         whole_archive_flag_spec_GCJ=
17504     fi
17505     supports_anon_versioning=no
17506     case `$LD -v 2>/dev/null` in
17507       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17508       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17509       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17510       *\ 2.11.*) ;; # other 2.11 versions
17511       *) supports_anon_versioning=yes ;;
17512     esac
17513
17514     # See if GNU ld supports shared libraries.
17515     case $host_os in
17516     aix[3-9]*)
17517       # On AIX/PPC, the GNU linker is very broken
17518       if test "$host_cpu" != ia64; then
17519         ld_shlibs_GCJ=no
17520         cat <<EOF 1>&2
17521
17522 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17523 *** to be unable to reliably create shared libraries on AIX.
17524 *** Therefore, libtool is disabling shared libraries support.  If you
17525 *** really care for shared libraries, you may want to modify your PATH
17526 *** so that a non-GNU linker is found, and then restart.
17527
17528 EOF
17529       fi
17530       ;;
17531
17532     amigaos*)
17533       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)'
17534       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535       hardcode_minus_L_GCJ=yes
17536
17537       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17538       # that the semantics of dynamic libraries on AmigaOS, at least up
17539       # to version 4, is to share data among multiple programs linked
17540       # with the same dynamic library.  Since this doesn't match the
17541       # behavior of shared libraries on other platforms, we can't use
17542       # them.
17543       ld_shlibs_GCJ=no
17544       ;;
17545
17546     beos*)
17547       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17548         allow_undefined_flag_GCJ=unsupported
17549         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17550         # support --undefined.  This deserves some investigation.  FIXME
17551         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552       else
17553         ld_shlibs_GCJ=no
17554       fi
17555       ;;
17556
17557     cygwin* | mingw* | pw32*)
17558       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17559       # as there is no search path for DLLs.
17560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561       allow_undefined_flag_GCJ=unsupported
17562       always_export_symbols_GCJ=no
17563       enable_shared_with_static_runtimes_GCJ=yes
17564       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17565
17566       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17567         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17568         # If the export-symbols file already is a .def file (1st line
17569         # is EXPORTS), use it as is; otherwise, prepend...
17570         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17571           cp $export_symbols $output_objdir/$soname.def;
17572         else
17573           echo EXPORTS > $output_objdir/$soname.def;
17574           cat $export_symbols >> $output_objdir/$soname.def;
17575         fi~
17576         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17577       else
17578         ld_shlibs_GCJ=no
17579       fi
17580       ;;
17581
17582     interix[3-9]*)
17583       hardcode_direct_GCJ=no
17584       hardcode_shlibpath_var_GCJ=no
17585       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17586       export_dynamic_flag_spec_GCJ='${wl}-E'
17587       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17588       # Instead, shared libraries are loaded at an image base (0x10000000 by
17589       # default) and relocated if they conflict, which is a slow very memory
17590       # consuming and fragmenting process.  To avoid this, we pick a random,
17591       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17592       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17593       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'
17594       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'
17595       ;;
17596
17597     gnu* | linux* | k*bsd*-gnu)
17598       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17599         tmp_addflag=
17600         case $cc_basename,$host_cpu in
17601         pgcc*)                          # Portland Group C compiler
17602           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'
17603           tmp_addflag=' $pic_flag'
17604           ;;
17605         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17606           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'
17607           tmp_addflag=' $pic_flag -Mnomain' ;;
17608         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17609           tmp_addflag=' -i_dynamic' ;;
17610         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17611           tmp_addflag=' -i_dynamic -nofor_main' ;;
17612         ifc* | ifort*)                  # Intel Fortran compiler
17613           tmp_addflag=' -nofor_main' ;;
17614         esac
17615         case `$CC -V 2>&1 | sed 5q` in
17616         *Sun\ C*)                       # Sun C 5.9
17617           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'
17618           tmp_sharedflag='-G' ;;
17619         *Sun\ F*)                       # Sun Fortran 8.3
17620           tmp_sharedflag='-G' ;;
17621         *)
17622           tmp_sharedflag='-shared' ;;
17623         esac
17624         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17625
17626         if test $supports_anon_versioning = yes; then
17627           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17628   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17629   $echo "local: *; };" >> $output_objdir/$libname.ver~
17630           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17631         fi
17632         link_all_deplibs_GCJ=no
17633       else
17634         ld_shlibs_GCJ=no
17635       fi
17636       ;;
17637
17638     netbsd* | netbsdelf*-gnu)
17639       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17640         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17641         wlarc=
17642       else
17643         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17644         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17645       fi
17646       ;;
17647
17648     solaris*)
17649       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17650         ld_shlibs_GCJ=no
17651         cat <<EOF 1>&2
17652
17653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17654 *** create shared libraries on Solaris systems.  Therefore, libtool
17655 *** is disabling shared libraries support.  We urge you to upgrade GNU
17656 *** binutils to release 2.9.1 or newer.  Another option is to modify
17657 *** your PATH or compiler configuration so that the native linker is
17658 *** used, and then restart.
17659
17660 EOF
17661       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17663         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17664       else
17665         ld_shlibs_GCJ=no
17666       fi
17667       ;;
17668
17669     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17670       case `$LD -v 2>&1` in
17671         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17672         ld_shlibs_GCJ=no
17673         cat <<_LT_EOF 1>&2
17674
17675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17676 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17677 *** is disabling shared libraries support.  We urge you to upgrade GNU
17678 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17679 *** your PATH or compiler configuration so that the native linker is
17680 *** used, and then restart.
17681
17682 _LT_EOF
17683         ;;
17684         *)
17685           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17686             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17687             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17688             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17689           else
17690             ld_shlibs_GCJ=no
17691           fi
17692         ;;
17693       esac
17694       ;;
17695
17696     sunos4*)
17697       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17698       wlarc=
17699       hardcode_direct_GCJ=yes
17700       hardcode_shlibpath_var_GCJ=no
17701       ;;
17702
17703     *)
17704       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17705         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17706         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17707       else
17708         ld_shlibs_GCJ=no
17709       fi
17710       ;;
17711     esac
17712
17713     if test "$ld_shlibs_GCJ" = no; then
17714       runpath_var=
17715       hardcode_libdir_flag_spec_GCJ=
17716       export_dynamic_flag_spec_GCJ=
17717       whole_archive_flag_spec_GCJ=
17718     fi
17719   else
17720     # PORTME fill in a description of your system's linker (not GNU ld)
17721     case $host_os in
17722     aix3*)
17723       allow_undefined_flag_GCJ=unsupported
17724       always_export_symbols_GCJ=yes
17725       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'
17726       # Note: this linker hardcodes the directories in LIBPATH if there
17727       # are no directories specified by -L.
17728       hardcode_minus_L_GCJ=yes
17729       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17730         # Neither direct hardcoding nor static linking is supported with a
17731         # broken collect2.
17732         hardcode_direct_GCJ=unsupported
17733       fi
17734       ;;
17735
17736     aix[4-9]*)
17737       if test "$host_cpu" = ia64; then
17738         # On IA64, the linker does run time linking by default, so we don't
17739         # have to do anything special.
17740         aix_use_runtimelinking=no
17741         exp_sym_flag='-Bexport'
17742         no_entry_flag=""
17743       else
17744         # If we're using GNU nm, then we don't want the "-C" option.
17745         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17746         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17747           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'
17748         else
17749           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'
17750         fi
17751         aix_use_runtimelinking=no
17752
17753         # Test if we are trying to use run time linking or normal
17754         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17755         # need to do runtime linking.
17756         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17757           for ld_flag in $LDFLAGS; do
17758           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17759             aix_use_runtimelinking=yes
17760             break
17761           fi
17762           done
17763           ;;
17764         esac
17765
17766         exp_sym_flag='-bexport'
17767         no_entry_flag='-bnoentry'
17768       fi
17769
17770       # When large executables or shared objects are built, AIX ld can
17771       # have problems creating the table of contents.  If linking a library
17772       # or program results in "error TOC overflow" add -mminimal-toc to
17773       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17774       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17775
17776       archive_cmds_GCJ=''
17777       hardcode_direct_GCJ=yes
17778       hardcode_libdir_separator_GCJ=':'
17779       link_all_deplibs_GCJ=yes
17780
17781       if test "$GCC" = yes; then
17782         case $host_os in aix4.[012]|aix4.[012].*)
17783         # We only want to do this on AIX 4.2 and lower, the check
17784         # below for broken collect2 doesn't work under 4.3+
17785           collect2name=`${CC} -print-prog-name=collect2`
17786           if test -f "$collect2name" && \
17787            strings "$collect2name" | grep resolve_lib_name >/dev/null
17788           then
17789           # We have reworked collect2
17790           :
17791           else
17792           # We have old collect2
17793           hardcode_direct_GCJ=unsupported
17794           # It fails to find uninstalled libraries when the uninstalled
17795           # path is not listed in the libpath.  Setting hardcode_minus_L
17796           # to unsupported forces relinking
17797           hardcode_minus_L_GCJ=yes
17798           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17799           hardcode_libdir_separator_GCJ=
17800           fi
17801           ;;
17802         esac
17803         shared_flag='-shared'
17804         if test "$aix_use_runtimelinking" = yes; then
17805           shared_flag="$shared_flag "'${wl}-G'
17806         fi
17807       else
17808         # not using gcc
17809         if test "$host_cpu" = ia64; then
17810         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17811         # chokes on -Wl,-G. The following line is correct:
17812           shared_flag='-G'
17813         else
17814           if test "$aix_use_runtimelinking" = yes; then
17815             shared_flag='${wl}-G'
17816           else
17817             shared_flag='${wl}-bM:SRE'
17818           fi
17819         fi
17820       fi
17821
17822       # It seems that -bexpall does not export symbols beginning with
17823       # underscore (_), so it is better to generate a list of symbols to export.
17824       always_export_symbols_GCJ=yes
17825       if test "$aix_use_runtimelinking" = yes; then
17826         # Warning - without using the other runtime loading flags (-brtl),
17827         # -berok will link without error, but may produce a broken library.
17828         allow_undefined_flag_GCJ='-berok'
17829        # Determine the default libpath from the value encoded in an empty executable.
17830        cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836
17837 int
17838 main ()
17839 {
17840
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (ac_try="$ac_link"
17847 case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17852 $as_echo "$ac_try_echo") >&5
17853   (eval "$ac_link") 2>conftest.er1
17854   ac_status=$?
17855   grep -v '^ *+' conftest.er1 >conftest.err
17856   rm -f conftest.er1
17857   cat conftest.err >&5
17858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && {
17860          test -z "$ac_c_werror_flag" ||
17861          test ! -s conftest.err
17862        } && test -s conftest$ac_exeext && {
17863          test "$cross_compiling" = yes ||
17864          $as_test_x conftest$ac_exeext
17865        }; then
17866
17867 lt_aix_libpath_sed='
17868     /Import File Strings/,/^$/ {
17869         /^0/ {
17870             s/^0  *\(.*\)$/\1/
17871             p
17872         }
17873     }'
17874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875 # Check for a 64-bit object if we didn't find anything.
17876 if test -z "$aix_libpath"; then
17877   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17878 fi
17879 else
17880   $as_echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883
17884 fi
17885
17886 rm -rf conftest.dSYM
17887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888       conftest$ac_exeext conftest.$ac_ext
17889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17890
17891        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17892         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"
17893        else
17894         if test "$host_cpu" = ia64; then
17895           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17896           allow_undefined_flag_GCJ="-z nodefs"
17897           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"
17898         else
17899          # Determine the default libpath from the value encoded in an empty executable.
17900          cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906
17907 int
17908 main ()
17909 {
17910
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923   (eval "$ac_link") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && {
17930          test -z "$ac_c_werror_flag" ||
17931          test ! -s conftest.err
17932        } && test -s conftest$ac_exeext && {
17933          test "$cross_compiling" = yes ||
17934          $as_test_x conftest$ac_exeext
17935        }; then
17936
17937 lt_aix_libpath_sed='
17938     /Import File Strings/,/^$/ {
17939         /^0/ {
17940             s/^0  *\(.*\)$/\1/
17941             p
17942         }
17943     }'
17944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945 # Check for a 64-bit object if we didn't find anything.
17946 if test -z "$aix_libpath"; then
17947   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 fi
17949 else
17950   $as_echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953
17954 fi
17955
17956 rm -rf conftest.dSYM
17957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17958       conftest$ac_exeext conftest.$ac_ext
17959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17960
17961          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17962           # Warning - without using the other run time loading flags,
17963           # -berok will link without error, but may produce a broken library.
17964           no_undefined_flag_GCJ=' ${wl}-bernotok'
17965           allow_undefined_flag_GCJ=' ${wl}-berok'
17966           # Exported symbols can be pulled into shared objects from archives
17967           whole_archive_flag_spec_GCJ='$convenience'
17968           archive_cmds_need_lc_GCJ=yes
17969           # This is similar to how AIX traditionally builds its shared libraries.
17970           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'
17971         fi
17972       fi
17973       ;;
17974
17975     amigaos*)
17976       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)'
17977       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17978       hardcode_minus_L_GCJ=yes
17979       # see comment about different semantics on the GNU ld section
17980       ld_shlibs_GCJ=no
17981       ;;
17982
17983     bsdi[45]*)
17984       export_dynamic_flag_spec_GCJ=-rdynamic
17985       ;;
17986
17987     cygwin* | mingw* | pw32*)
17988       # When not using gcc, we currently assume that we are using
17989       # Microsoft Visual C++.
17990       # hardcode_libdir_flag_spec is actually meaningless, as there is
17991       # no search path for DLLs.
17992       hardcode_libdir_flag_spec_GCJ=' '
17993       allow_undefined_flag_GCJ=unsupported
17994       # Tell ltmain to make .lib files, not .a files.
17995       libext=lib
17996       # Tell ltmain to make .dll files, not .so files.
17997       shrext_cmds=".dll"
17998       # FIXME: Setting linknames here is a bad hack.
17999       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18000       # The linker will automatically build a .lib file if we build a DLL.
18001       old_archive_From_new_cmds_GCJ='true'
18002       # FIXME: Should let the user specify the lib program.
18003       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18004       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18005       enable_shared_with_static_runtimes_GCJ=yes
18006       ;;
18007
18008     darwin* | rhapsody*)
18009       case $host_os in
18010         rhapsody* | darwin1.[012])
18011          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18012          ;;
18013        *) # Darwin 1.3 on
18014          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18015            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18016          else
18017            case ${MACOSX_DEPLOYMENT_TARGET} in
18018              10.[012])
18019                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18020                ;;
18021              10.*)
18022                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18023                ;;
18024            esac
18025          fi
18026          ;;
18027       esac
18028       archive_cmds_need_lc_GCJ=no
18029       hardcode_direct_GCJ=no
18030       hardcode_automatic_GCJ=yes
18031       hardcode_shlibpath_var_GCJ=unsupported
18032       whole_archive_flag_spec_GCJ=''
18033       link_all_deplibs_GCJ=yes
18034     if test "$GCC" = yes ; then
18035         output_verbose_link_cmd='echo'
18036         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}"
18037         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18038         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}"
18039         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}"
18040     else
18041       case $cc_basename in
18042         xlc*)
18043          output_verbose_link_cmd='echo'
18044          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18045          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18046           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18047          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}'
18048           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}'
18049           ;;
18050        *)
18051          ld_shlibs_GCJ=no
18052           ;;
18053       esac
18054     fi
18055       ;;
18056
18057     dgux*)
18058       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060       hardcode_shlibpath_var_GCJ=no
18061       ;;
18062
18063     freebsd1*)
18064       ld_shlibs_GCJ=no
18065       ;;
18066
18067     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18068     # support.  Future versions do this automatically, but an explicit c++rt0.o
18069     # does not break anything, and helps significantly (at the cost of a little
18070     # extra space).
18071     freebsd2.2*)
18072       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18073       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18074       hardcode_direct_GCJ=yes
18075       hardcode_shlibpath_var_GCJ=no
18076       ;;
18077
18078     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18079     freebsd2*)
18080       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18081       hardcode_direct_GCJ=yes
18082       hardcode_minus_L_GCJ=yes
18083       hardcode_shlibpath_var_GCJ=no
18084       ;;
18085
18086     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18087     freebsd* | dragonfly*)
18088       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18089       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18090       hardcode_direct_GCJ=yes
18091       hardcode_shlibpath_var_GCJ=no
18092       ;;
18093
18094     hpux9*)
18095       if test "$GCC" = yes; then
18096         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'
18097       else
18098         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'
18099       fi
18100       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18101       hardcode_libdir_separator_GCJ=:
18102       hardcode_direct_GCJ=yes
18103
18104       # hardcode_minus_L: Not really in the search PATH,
18105       # but as the default location of the library.
18106       hardcode_minus_L_GCJ=yes
18107       export_dynamic_flag_spec_GCJ='${wl}-E'
18108       ;;
18109
18110     hpux10*)
18111       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18112         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18113       else
18114         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18115       fi
18116       if test "$with_gnu_ld" = no; then
18117         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18118         hardcode_libdir_separator_GCJ=:
18119
18120         hardcode_direct_GCJ=yes
18121         export_dynamic_flag_spec_GCJ='${wl}-E'
18122
18123         # hardcode_minus_L: Not really in the search PATH,
18124         # but as the default location of the library.
18125         hardcode_minus_L_GCJ=yes
18126       fi
18127       ;;
18128
18129     hpux11*)
18130       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18131         case $host_cpu in
18132         hppa*64*)
18133           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18134           ;;
18135         ia64*)
18136           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18137           ;;
18138         *)
18139           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18140           ;;
18141         esac
18142       else
18143         case $host_cpu in
18144         hppa*64*)
18145           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146           ;;
18147         ia64*)
18148           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18149           ;;
18150         *)
18151           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18152           ;;
18153         esac
18154       fi
18155       if test "$with_gnu_ld" = no; then
18156         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18157         hardcode_libdir_separator_GCJ=:
18158
18159         case $host_cpu in
18160         hppa*64*|ia64*)
18161           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18162           hardcode_direct_GCJ=no
18163           hardcode_shlibpath_var_GCJ=no
18164           ;;
18165         *)
18166           hardcode_direct_GCJ=yes
18167           export_dynamic_flag_spec_GCJ='${wl}-E'
18168
18169           # hardcode_minus_L: Not really in the search PATH,
18170           # but as the default location of the library.
18171           hardcode_minus_L_GCJ=yes
18172           ;;
18173         esac
18174       fi
18175       ;;
18176
18177     irix5* | irix6* | nonstopux*)
18178       if test "$GCC" = yes; then
18179         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'
18180       else
18181         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'
18182         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18183       fi
18184       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18185       hardcode_libdir_separator_GCJ=:
18186       link_all_deplibs_GCJ=yes
18187       ;;
18188
18189     netbsd* | netbsdelf*-gnu)
18190       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18191         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18192       else
18193         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18194       fi
18195       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18196       hardcode_direct_GCJ=yes
18197       hardcode_shlibpath_var_GCJ=no
18198       ;;
18199
18200     newsos6)
18201       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18202       hardcode_direct_GCJ=yes
18203       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18204       hardcode_libdir_separator_GCJ=:
18205       hardcode_shlibpath_var_GCJ=no
18206       ;;
18207
18208     openbsd*)
18209       if test -f /usr/libexec/ld.so; then
18210         hardcode_direct_GCJ=yes
18211         hardcode_shlibpath_var_GCJ=no
18212         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18213           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18214           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18215           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18216           export_dynamic_flag_spec_GCJ='${wl}-E'
18217         else
18218           case $host_os in
18219            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18220              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18221              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18222              ;;
18223            *)
18224              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18225              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18226              ;;
18227           esac
18228         fi
18229       else
18230         ld_shlibs_GCJ=no
18231       fi
18232       ;;
18233
18234     os2*)
18235       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18236       hardcode_minus_L_GCJ=yes
18237       allow_undefined_flag_GCJ=unsupported
18238       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'
18239       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18240       ;;
18241
18242     osf3*)
18243       if test "$GCC" = yes; then
18244         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18245         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'
18246       else
18247         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18248         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'
18249       fi
18250       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18251       hardcode_libdir_separator_GCJ=:
18252       ;;
18253
18254     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18255       if test "$GCC" = yes; then
18256         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18257         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'
18258         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18259       else
18260         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18261         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'
18262         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~
18263         $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'
18264
18265         # Both c and cxx compiler support -rpath directly
18266         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18267       fi
18268       hardcode_libdir_separator_GCJ=:
18269       ;;
18270
18271     solaris*)
18272       no_undefined_flag_GCJ=' -z text'
18273       if test "$GCC" = yes; then
18274         wlarc='${wl}'
18275         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18276         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18277           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18278       else
18279         wlarc=''
18280         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18283       fi
18284       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18285       hardcode_shlibpath_var_GCJ=no
18286       case $host_os in
18287       solaris2.[0-5] | solaris2.[0-5].*) ;;
18288       *)
18289         # The compiler driver will combine and reorder linker options,
18290         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18291         # but is careful enough not to reorder.
18292         # Supported since Solaris 2.6 (maybe 2.5.1?)
18293         if test "$GCC" = yes; then
18294           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18295         else
18296           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18297         fi
18298         ;;
18299       esac
18300       link_all_deplibs_GCJ=yes
18301       ;;
18302
18303     sunos4*)
18304       if test "x$host_vendor" = xsequent; then
18305         # Use $CC to link under sequent, because it throws in some extra .o
18306         # files that make .init and .fini sections work.
18307         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18308       else
18309         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18310       fi
18311       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18312       hardcode_direct_GCJ=yes
18313       hardcode_minus_L_GCJ=yes
18314       hardcode_shlibpath_var_GCJ=no
18315       ;;
18316
18317     sysv4)
18318       case $host_vendor in
18319         sni)
18320           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18321           hardcode_direct_GCJ=yes # is this really true???
18322         ;;
18323         siemens)
18324           ## LD is ld it makes a PLAMLIB
18325           ## CC just makes a GrossModule.
18326           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18327           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18328           hardcode_direct_GCJ=no
18329         ;;
18330         motorola)
18331           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18332           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18333         ;;
18334       esac
18335       runpath_var='LD_RUN_PATH'
18336       hardcode_shlibpath_var_GCJ=no
18337       ;;
18338
18339     sysv4.3*)
18340       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341       hardcode_shlibpath_var_GCJ=no
18342       export_dynamic_flag_spec_GCJ='-Bexport'
18343       ;;
18344
18345     sysv4*MP*)
18346       if test -d /usr/nec; then
18347         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18348         hardcode_shlibpath_var_GCJ=no
18349         runpath_var=LD_RUN_PATH
18350         hardcode_runpath_var=yes
18351         ld_shlibs_GCJ=yes
18352       fi
18353       ;;
18354
18355     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18356       no_undefined_flag_GCJ='${wl}-z,text'
18357       archive_cmds_need_lc_GCJ=no
18358       hardcode_shlibpath_var_GCJ=no
18359       runpath_var='LD_RUN_PATH'
18360
18361       if test "$GCC" = yes; then
18362         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364       else
18365         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18366         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18367       fi
18368       ;;
18369
18370     sysv5* | sco3.2v5* | sco5v6*)
18371       # Note: We can NOT use -z defs as we might desire, because we do not
18372       # link with -lc, and that would cause any symbols used from libc to
18373       # always be unresolved, which means just about no library would
18374       # ever link correctly.  If we're not using GNU ld we use -z text
18375       # though, which does catch some bad symbols but isn't as heavy-handed
18376       # as -z defs.
18377       no_undefined_flag_GCJ='${wl}-z,text'
18378       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18379       archive_cmds_need_lc_GCJ=no
18380       hardcode_shlibpath_var_GCJ=no
18381       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18382       hardcode_libdir_separator_GCJ=':'
18383       link_all_deplibs_GCJ=yes
18384       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18385       runpath_var='LD_RUN_PATH'
18386
18387       if test "$GCC" = yes; then
18388         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390       else
18391         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18393       fi
18394       ;;
18395
18396     uts4*)
18397       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18399       hardcode_shlibpath_var_GCJ=no
18400       ;;
18401
18402     *)
18403       ld_shlibs_GCJ=no
18404       ;;
18405     esac
18406   fi
18407
18408 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18409 $as_echo "$ld_shlibs_GCJ" >&6; }
18410 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18411
18412 #
18413 # Do we need to explicitly link libc?
18414 #
18415 case "x$archive_cmds_need_lc_GCJ" in
18416 x|xyes)
18417   # Assume -lc should be added
18418   archive_cmds_need_lc_GCJ=yes
18419
18420   if test "$enable_shared" = yes && test "$GCC" = yes; then
18421     case $archive_cmds_GCJ in
18422     *'~'*)
18423       # FIXME: we may have to deal with multi-command sequences.
18424       ;;
18425     '$CC '*)
18426       # Test whether the compiler implicitly links with -lc since on some
18427       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18428       # to ld, don't add -lc before -lgcc.
18429       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18430 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18431       $rm conftest*
18432       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18433
18434       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18435   (eval $ac_compile) 2>&5
18436   ac_status=$?
18437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); } 2>conftest.err; then
18439         soname=conftest
18440         lib=conftest
18441         libobjs=conftest.$ac_objext
18442         deplibs=
18443         wl=$lt_prog_compiler_wl_GCJ
18444         pic_flag=$lt_prog_compiler_pic_GCJ
18445         compiler_flags=-v
18446         linker_flags=-v
18447         verstring=
18448         output_objdir=.
18449         libname=conftest
18450         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18451         allow_undefined_flag_GCJ=
18452         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18453   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18454   ac_status=$?
18455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); }
18457         then
18458           archive_cmds_need_lc_GCJ=no
18459         else
18460           archive_cmds_need_lc_GCJ=yes
18461         fi
18462         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18463       else
18464         cat conftest.err 1>&5
18465       fi
18466       $rm conftest*
18467       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18468 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18469       ;;
18470     esac
18471   fi
18472   ;;
18473 esac
18474
18475 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18476 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18477 library_names_spec=
18478 libname_spec='lib$name'
18479 soname_spec=
18480 shrext_cmds=".so"
18481 postinstall_cmds=
18482 postuninstall_cmds=
18483 finish_cmds=
18484 finish_eval=
18485 shlibpath_var=
18486 shlibpath_overrides_runpath=unknown
18487 version_type=none
18488 dynamic_linker="$host_os ld.so"
18489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18490
18491 need_lib_prefix=unknown
18492 hardcode_into_libs=no
18493
18494 # when you set need_version to no, make sure it does not cause -set_version
18495 # flags to be left without arguments
18496 need_version=unknown
18497
18498 case $host_os in
18499 aix3*)
18500   version_type=linux
18501   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18502   shlibpath_var=LIBPATH
18503
18504   # AIX 3 has no versioning support, so we append a major version to the name.
18505   soname_spec='${libname}${release}${shared_ext}$major'
18506   ;;
18507
18508 aix[4-9]*)
18509   version_type=linux
18510   need_lib_prefix=no
18511   need_version=no
18512   hardcode_into_libs=yes
18513   if test "$host_cpu" = ia64; then
18514     # AIX 5 supports IA64
18515     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18516     shlibpath_var=LD_LIBRARY_PATH
18517   else
18518     # With GCC up to 2.95.x, collect2 would create an import file
18519     # for dependence libraries.  The import file would start with
18520     # the line `#! .'.  This would cause the generated library to
18521     # depend on `.', always an invalid library.  This was fixed in
18522     # development snapshots of GCC prior to 3.0.
18523     case $host_os in
18524       aix4 | aix4.[01] | aix4.[01].*)
18525       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18526            echo ' yes '
18527            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18528         :
18529       else
18530         can_build_shared=no
18531       fi
18532       ;;
18533     esac
18534     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18535     # soname into executable. Probably we can add versioning support to
18536     # collect2, so additional links can be useful in future.
18537     if test "$aix_use_runtimelinking" = yes; then
18538       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18539       # instead of lib<name>.a to let people know that these are not
18540       # typical AIX shared libraries.
18541       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18542     else
18543       # We preserve .a as extension for shared libraries through AIX4.2
18544       # and later when we are not doing run time linking.
18545       library_names_spec='${libname}${release}.a $libname.a'
18546       soname_spec='${libname}${release}${shared_ext}$major'
18547     fi
18548     shlibpath_var=LIBPATH
18549   fi
18550   ;;
18551
18552 amigaos*)
18553   library_names_spec='$libname.ixlibrary $libname.a'
18554   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18555   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'
18556   ;;
18557
18558 beos*)
18559   library_names_spec='${libname}${shared_ext}'
18560   dynamic_linker="$host_os ld.so"
18561   shlibpath_var=LIBRARY_PATH
18562   ;;
18563
18564 bsdi[45]*)
18565   version_type=linux
18566   need_version=no
18567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568   soname_spec='${libname}${release}${shared_ext}$major'
18569   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18570   shlibpath_var=LD_LIBRARY_PATH
18571   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18572   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18573   # the default ld.so.conf also contains /usr/contrib/lib and
18574   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18575   # libtool to hard-code these into programs
18576   ;;
18577
18578 cygwin* | mingw* | pw32*)
18579   version_type=windows
18580   shrext_cmds=".dll"
18581   need_version=no
18582   need_lib_prefix=no
18583
18584   case $GCC,$host_os in
18585   yes,cygwin* | yes,mingw* | yes,pw32*)
18586     library_names_spec='$libname.dll.a'
18587     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18588     postinstall_cmds='base_file=`basename \${file}`~
18589       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18590       dldir=$destdir/`dirname \$dlpath`~
18591       test -d \$dldir || mkdir -p \$dldir~
18592       $install_prog $dir/$dlname \$dldir/$dlname~
18593       chmod a+x \$dldir/$dlname'
18594     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18595       dlpath=$dir/\$dldll~
18596        $rm \$dlpath'
18597     shlibpath_overrides_runpath=yes
18598
18599     case $host_os in
18600     cygwin*)
18601       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18602       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18603       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18604       ;;
18605     mingw*)
18606       # MinGW DLLs use traditional 'lib' prefix
18607       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18608       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18609       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18610         # It is most probably a Windows format PATH printed by
18611         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18612         # path with ; separators, and with drive letters. We can handle the
18613         # drive letters (cygwin fileutils understands them), so leave them,
18614         # especially as we might pass files found there to a mingw objdump,
18615         # which wouldn't understand a cygwinified path. Ahh.
18616         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18617       else
18618         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18619       fi
18620       ;;
18621     pw32*)
18622       # pw32 DLLs use 'pw' prefix rather than 'lib'
18623       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18624       ;;
18625     esac
18626     ;;
18627
18628   *)
18629     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18630     ;;
18631   esac
18632   dynamic_linker='Win32 ld.exe'
18633   # FIXME: first we should search . and the directory the executable is in
18634   shlibpath_var=PATH
18635   ;;
18636
18637 darwin* | rhapsody*)
18638   dynamic_linker="$host_os dyld"
18639   version_type=darwin
18640   need_lib_prefix=no
18641   need_version=no
18642   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18643   soname_spec='${libname}${release}${major}$shared_ext'
18644   shlibpath_overrides_runpath=yes
18645   shlibpath_var=DYLD_LIBRARY_PATH
18646   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18647
18648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18649   ;;
18650
18651 dgux*)
18652   version_type=linux
18653   need_lib_prefix=no
18654   need_version=no
18655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18656   soname_spec='${libname}${release}${shared_ext}$major'
18657   shlibpath_var=LD_LIBRARY_PATH
18658   ;;
18659
18660 freebsd1*)
18661   dynamic_linker=no
18662   ;;
18663
18664 freebsd* | dragonfly*)
18665   # DragonFly does not have aout.  When/if they implement a new
18666   # versioning mechanism, adjust this.
18667   if test -x /usr/bin/objformat; then
18668     objformat=`/usr/bin/objformat`
18669   else
18670     case $host_os in
18671     freebsd[123]*) objformat=aout ;;
18672     *) objformat=elf ;;
18673     esac
18674   fi
18675   version_type=freebsd-$objformat
18676   case $version_type in
18677     freebsd-elf*)
18678       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18679       need_version=no
18680       need_lib_prefix=no
18681       ;;
18682     freebsd-*)
18683       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18684       need_version=yes
18685       ;;
18686   esac
18687   shlibpath_var=LD_LIBRARY_PATH
18688   case $host_os in
18689   freebsd2*)
18690     shlibpath_overrides_runpath=yes
18691     ;;
18692   freebsd3.[01]* | freebsdelf3.[01]*)
18693     shlibpath_overrides_runpath=yes
18694     hardcode_into_libs=yes
18695     ;;
18696   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18697   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18698     shlibpath_overrides_runpath=no
18699     hardcode_into_libs=yes
18700     ;;
18701   *) # from 4.6 on, and DragonFly
18702     shlibpath_overrides_runpath=yes
18703     hardcode_into_libs=yes
18704     ;;
18705   esac
18706   ;;
18707
18708 gnu*)
18709   version_type=linux
18710   need_lib_prefix=no
18711   need_version=no
18712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18713   soname_spec='${libname}${release}${shared_ext}$major'
18714   shlibpath_var=LD_LIBRARY_PATH
18715   hardcode_into_libs=yes
18716   ;;
18717
18718 hpux9* | hpux10* | hpux11*)
18719   # Give a soname corresponding to the major version so that dld.sl refuses to
18720   # link against other versions.
18721   version_type=sunos
18722   need_lib_prefix=no
18723   need_version=no
18724   case $host_cpu in
18725   ia64*)
18726     shrext_cmds='.so'
18727     hardcode_into_libs=yes
18728     dynamic_linker="$host_os dld.so"
18729     shlibpath_var=LD_LIBRARY_PATH
18730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732     soname_spec='${libname}${release}${shared_ext}$major'
18733     if test "X$HPUX_IA64_MODE" = X32; then
18734       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18735     else
18736       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18737     fi
18738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18739     ;;
18740    hppa*64*)
18741      shrext_cmds='.sl'
18742      hardcode_into_libs=yes
18743      dynamic_linker="$host_os dld.sl"
18744      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18745      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18747      soname_spec='${libname}${release}${shared_ext}$major'
18748      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18749      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18750      ;;
18751    *)
18752     shrext_cmds='.sl'
18753     dynamic_linker="$host_os dld.sl"
18754     shlibpath_var=SHLIB_PATH
18755     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757     soname_spec='${libname}${release}${shared_ext}$major'
18758     ;;
18759   esac
18760   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18761   postinstall_cmds='chmod 555 $lib'
18762   ;;
18763
18764 interix[3-9]*)
18765   version_type=linux
18766   need_lib_prefix=no
18767   need_version=no
18768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18769   soname_spec='${libname}${release}${shared_ext}$major'
18770   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18771   shlibpath_var=LD_LIBRARY_PATH
18772   shlibpath_overrides_runpath=no
18773   hardcode_into_libs=yes
18774   ;;
18775
18776 irix5* | irix6* | nonstopux*)
18777   case $host_os in
18778     nonstopux*) version_type=nonstopux ;;
18779     *)
18780         if test "$lt_cv_prog_gnu_ld" = yes; then
18781                 version_type=linux
18782         else
18783                 version_type=irix
18784         fi ;;
18785   esac
18786   need_lib_prefix=no
18787   need_version=no
18788   soname_spec='${libname}${release}${shared_ext}$major'
18789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18790   case $host_os in
18791   irix5* | nonstopux*)
18792     libsuff= shlibsuff=
18793     ;;
18794   *)
18795     case $LD in # libtool.m4 will add one of these switches to LD
18796     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18797       libsuff= shlibsuff= libmagic=32-bit;;
18798     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18799       libsuff=32 shlibsuff=N32 libmagic=N32;;
18800     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18801       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18802     *) libsuff= shlibsuff= libmagic=never-match;;
18803     esac
18804     ;;
18805   esac
18806   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18807   shlibpath_overrides_runpath=no
18808   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18809   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18810   hardcode_into_libs=yes
18811   ;;
18812
18813 # No shared lib support for Linux oldld, aout, or coff.
18814 linux*oldld* | linux*aout* | linux*coff*)
18815   dynamic_linker=no
18816   ;;
18817
18818 # This must be Linux ELF.
18819 linux* | k*bsd*-gnu)
18820   version_type=linux
18821   need_lib_prefix=no
18822   need_version=no
18823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824   soname_spec='${libname}${release}${shared_ext}$major'
18825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18826   shlibpath_var=LD_LIBRARY_PATH
18827   shlibpath_overrides_runpath=no
18828   # This implies no fast_install, which is unacceptable.
18829   # Some rework will be needed to allow for fast_install
18830   # before this can be enabled.
18831   hardcode_into_libs=yes
18832
18833   # Append ld.so.conf contents to the search path
18834   if test -f /etc/ld.so.conf; then
18835     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' ' '`
18836     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18837   fi
18838
18839   # We used to test for /lib/ld.so.1 and disable shared libraries on
18840   # powerpc, because MkLinux only supported shared libraries with the
18841   # GNU dynamic linker.  Since this was broken with cross compilers,
18842   # most powerpc-linux boxes support dynamic linking these days and
18843   # people can always --disable-shared, the test was removed, and we
18844   # assume the GNU/Linux dynamic linker is in use.
18845   dynamic_linker='GNU/Linux ld.so'
18846   ;;
18847
18848 netbsdelf*-gnu)
18849   version_type=linux
18850   need_lib_prefix=no
18851   need_version=no
18852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18853   soname_spec='${libname}${release}${shared_ext}$major'
18854   shlibpath_var=LD_LIBRARY_PATH
18855   shlibpath_overrides_runpath=no
18856   hardcode_into_libs=yes
18857   dynamic_linker='NetBSD ld.elf_so'
18858   ;;
18859
18860 netbsd*)
18861   version_type=sunos
18862   need_lib_prefix=no
18863   need_version=no
18864   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18867     dynamic_linker='NetBSD (a.out) ld.so'
18868   else
18869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18870     soname_spec='${libname}${release}${shared_ext}$major'
18871     dynamic_linker='NetBSD ld.elf_so'
18872   fi
18873   shlibpath_var=LD_LIBRARY_PATH
18874   shlibpath_overrides_runpath=yes
18875   hardcode_into_libs=yes
18876   ;;
18877
18878 newsos6)
18879   version_type=linux
18880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881   shlibpath_var=LD_LIBRARY_PATH
18882   shlibpath_overrides_runpath=yes
18883   ;;
18884
18885 nto-qnx*)
18886   version_type=linux
18887   need_lib_prefix=no
18888   need_version=no
18889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890   soname_spec='${libname}${release}${shared_ext}$major'
18891   shlibpath_var=LD_LIBRARY_PATH
18892   shlibpath_overrides_runpath=yes
18893   ;;
18894
18895 openbsd*)
18896   version_type=sunos
18897   sys_lib_dlsearch_path_spec="/usr/lib"
18898   need_lib_prefix=no
18899   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18900   case $host_os in
18901     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18902     *)                         need_version=no  ;;
18903   esac
18904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18906   shlibpath_var=LD_LIBRARY_PATH
18907   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18908     case $host_os in
18909       openbsd2.[89] | openbsd2.[89].*)
18910         shlibpath_overrides_runpath=no
18911         ;;
18912       *)
18913         shlibpath_overrides_runpath=yes
18914         ;;
18915       esac
18916   else
18917     shlibpath_overrides_runpath=yes
18918   fi
18919   ;;
18920
18921 os2*)
18922   libname_spec='$name'
18923   shrext_cmds=".dll"
18924   need_lib_prefix=no
18925   library_names_spec='$libname${shared_ext} $libname.a'
18926   dynamic_linker='OS/2 ld.exe'
18927   shlibpath_var=LIBPATH
18928   ;;
18929
18930 osf3* | osf4* | osf5*)
18931   version_type=osf
18932   need_lib_prefix=no
18933   need_version=no
18934   soname_spec='${libname}${release}${shared_ext}$major'
18935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936   shlibpath_var=LD_LIBRARY_PATH
18937   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18938   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18939   ;;
18940
18941 rdos*)
18942   dynamic_linker=no
18943   ;;
18944
18945 solaris*)
18946   version_type=linux
18947   need_lib_prefix=no
18948   need_version=no
18949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950   soname_spec='${libname}${release}${shared_ext}$major'
18951   shlibpath_var=LD_LIBRARY_PATH
18952   shlibpath_overrides_runpath=yes
18953   hardcode_into_libs=yes
18954   # ldd complains unless libraries are executable
18955   postinstall_cmds='chmod +x $lib'
18956   ;;
18957
18958 sunos4*)
18959   version_type=sunos
18960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18961   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18962   shlibpath_var=LD_LIBRARY_PATH
18963   shlibpath_overrides_runpath=yes
18964   if test "$with_gnu_ld" = yes; then
18965     need_lib_prefix=no
18966   fi
18967   need_version=yes
18968   ;;
18969
18970 sysv4 | sysv4.3*)
18971   version_type=linux
18972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973   soname_spec='${libname}${release}${shared_ext}$major'
18974   shlibpath_var=LD_LIBRARY_PATH
18975   case $host_vendor in
18976     sni)
18977       shlibpath_overrides_runpath=no
18978       need_lib_prefix=no
18979       export_dynamic_flag_spec='${wl}-Blargedynsym'
18980       runpath_var=LD_RUN_PATH
18981       ;;
18982     siemens)
18983       need_lib_prefix=no
18984       ;;
18985     motorola)
18986       need_lib_prefix=no
18987       need_version=no
18988       shlibpath_overrides_runpath=no
18989       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18990       ;;
18991   esac
18992   ;;
18993
18994 sysv4*MP*)
18995   if test -d /usr/nec ;then
18996     version_type=linux
18997     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18998     soname_spec='$libname${shared_ext}.$major'
18999     shlibpath_var=LD_LIBRARY_PATH
19000   fi
19001   ;;
19002
19003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19004   version_type=freebsd-elf
19005   need_lib_prefix=no
19006   need_version=no
19007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19008   soname_spec='${libname}${release}${shared_ext}$major'
19009   shlibpath_var=LD_LIBRARY_PATH
19010   hardcode_into_libs=yes
19011   if test "$with_gnu_ld" = yes; then
19012     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19013     shlibpath_overrides_runpath=no
19014   else
19015     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19016     shlibpath_overrides_runpath=yes
19017     case $host_os in
19018       sco3.2v5*)
19019         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19020         ;;
19021     esac
19022   fi
19023   sys_lib_dlsearch_path_spec='/usr/lib'
19024   ;;
19025
19026 uts4*)
19027   version_type=linux
19028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029   soname_spec='${libname}${release}${shared_ext}$major'
19030   shlibpath_var=LD_LIBRARY_PATH
19031   ;;
19032
19033 *)
19034   dynamic_linker=no
19035   ;;
19036 esac
19037 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19038 $as_echo "$dynamic_linker" >&6; }
19039 test "$dynamic_linker" = no && can_build_shared=no
19040
19041 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19042   $as_echo_n "(cached) " >&6
19043 else
19044   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19045 fi
19046
19047 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19049   $as_echo_n "(cached) " >&6
19050 else
19051   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19052 fi
19053
19054 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19055
19056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19057 if test "$GCC" = yes; then
19058   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19059 fi
19060
19061 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19063 hardcode_action_GCJ=
19064 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19065    test -n "$runpath_var_GCJ" || \
19066    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19067
19068   # We can hardcode non-existant directories.
19069   if test "$hardcode_direct_GCJ" != no &&
19070      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19071      # have to relink, otherwise we might link with an installed library
19072      # when we should be linking with a yet-to-be-installed one
19073      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19074      test "$hardcode_minus_L_GCJ" != no; then
19075     # Linking always hardcodes the temporary library directory.
19076     hardcode_action_GCJ=relink
19077   else
19078     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19079     hardcode_action_GCJ=immediate
19080   fi
19081 else
19082   # We cannot hardcode anything, or else we can only hardcode existing
19083   # directories.
19084   hardcode_action_GCJ=unsupported
19085 fi
19086 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19087 $as_echo "$hardcode_action_GCJ" >&6; }
19088
19089 if test "$hardcode_action_GCJ" = relink; then
19090   # Fast installation is not supported
19091   enable_fast_install=no
19092 elif test "$shlibpath_overrides_runpath" = yes ||
19093      test "$enable_shared" = no; then
19094   # Fast installation is not necessary
19095   enable_fast_install=needless
19096 fi
19097
19098
19099 # The else clause should only fire when bootstrapping the
19100 # libtool distribution, otherwise you forgot to ship ltmain.sh
19101 # with your package, and you will get complaints that there are
19102 # no rules to generate ltmain.sh.
19103 if test -f "$ltmain"; then
19104   # See if we are running on zsh, and set the options which allow our commands through
19105   # without removal of \ escapes.
19106   if test -n "${ZSH_VERSION+set}" ; then
19107     setopt NO_GLOB_SUBST
19108   fi
19109   # Now quote all the things that may contain metacharacters while being
19110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19111   # variables and quote the copies for generation of the libtool script.
19112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19113     SED SHELL STRIP \
19114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19116     deplibs_check_method reload_flag reload_cmds need_locks \
19117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19118     lt_cv_sys_global_symbol_to_c_name_address \
19119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19120     old_postinstall_cmds old_postuninstall_cmds \
19121     compiler_GCJ \
19122     CC_GCJ \
19123     LD_GCJ \
19124     lt_prog_compiler_wl_GCJ \
19125     lt_prog_compiler_pic_GCJ \
19126     lt_prog_compiler_static_GCJ \
19127     lt_prog_compiler_no_builtin_flag_GCJ \
19128     export_dynamic_flag_spec_GCJ \
19129     thread_safe_flag_spec_GCJ \
19130     whole_archive_flag_spec_GCJ \
19131     enable_shared_with_static_runtimes_GCJ \
19132     old_archive_cmds_GCJ \
19133     old_archive_from_new_cmds_GCJ \
19134     predep_objects_GCJ \
19135     postdep_objects_GCJ \
19136     predeps_GCJ \
19137     postdeps_GCJ \
19138     compiler_lib_search_path_GCJ \
19139     compiler_lib_search_dirs_GCJ \
19140     archive_cmds_GCJ \
19141     archive_expsym_cmds_GCJ \
19142     postinstall_cmds_GCJ \
19143     postuninstall_cmds_GCJ \
19144     old_archive_from_expsyms_cmds_GCJ \
19145     allow_undefined_flag_GCJ \
19146     no_undefined_flag_GCJ \
19147     export_symbols_cmds_GCJ \
19148     hardcode_libdir_flag_spec_GCJ \
19149     hardcode_libdir_flag_spec_ld_GCJ \
19150     hardcode_libdir_separator_GCJ \
19151     hardcode_automatic_GCJ \
19152     module_cmds_GCJ \
19153     module_expsym_cmds_GCJ \
19154     lt_cv_prog_compiler_c_o_GCJ \
19155     fix_srcfile_path_GCJ \
19156     exclude_expsyms_GCJ \
19157     include_expsyms_GCJ; do
19158
19159     case $var in
19160     old_archive_cmds_GCJ | \
19161     old_archive_from_new_cmds_GCJ | \
19162     archive_cmds_GCJ | \
19163     archive_expsym_cmds_GCJ | \
19164     module_cmds_GCJ | \
19165     module_expsym_cmds_GCJ | \
19166     old_archive_from_expsyms_cmds_GCJ | \
19167     export_symbols_cmds_GCJ | \
19168     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19169     postinstall_cmds | postuninstall_cmds | \
19170     old_postinstall_cmds | old_postuninstall_cmds | \
19171     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19172       # Double-quote double-evaled strings.
19173       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19174       ;;
19175     *)
19176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19177       ;;
19178     esac
19179   done
19180
19181   case $lt_echo in
19182   *'\$0 --fallback-echo"')
19183     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19184     ;;
19185   esac
19186
19187 cfgfile="$ofile"
19188
19189   cat <<__EOF__ >> "$cfgfile"
19190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19191
19192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19193
19194 # Shell to use when invoking shell scripts.
19195 SHELL=$lt_SHELL
19196
19197 # Whether or not to build shared libraries.
19198 build_libtool_libs=$enable_shared
19199
19200 # Whether or not to build static libraries.
19201 build_old_libs=$enable_static
19202
19203 # Whether or not to add -lc for building shared libraries.
19204 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19205
19206 # Whether or not to disallow shared libs when runtime libs are static
19207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19208
19209 # Whether or not to optimize for fast installation.
19210 fast_install=$enable_fast_install
19211
19212 # The host system.
19213 host_alias=$host_alias
19214 host=$host
19215 host_os=$host_os
19216
19217 # The build system.
19218 build_alias=$build_alias
19219 build=$build
19220 build_os=$build_os
19221
19222 # An echo program that does not interpret backslashes.
19223 echo=$lt_echo
19224
19225 # The archiver.
19226 AR=$lt_AR
19227 AR_FLAGS=$lt_AR_FLAGS
19228
19229 # A C compiler.
19230 LTCC=$lt_LTCC
19231
19232 # LTCC compiler flags.
19233 LTCFLAGS=$lt_LTCFLAGS
19234
19235 # A language-specific compiler.
19236 CC=$lt_compiler_GCJ
19237
19238 # Is the compiler the GNU C compiler?
19239 with_gcc=$GCC_GCJ
19240
19241 # An ERE matcher.
19242 EGREP=$lt_EGREP
19243
19244 # The linker used to build libraries.
19245 LD=$lt_LD_GCJ
19246
19247 # Whether we need hard or soft links.
19248 LN_S=$lt_LN_S
19249
19250 # A BSD-compatible nm program.
19251 NM=$lt_NM
19252
19253 # A symbol stripping program
19254 STRIP=$lt_STRIP
19255
19256 # Used to examine libraries when file_magic_cmd begins "file"
19257 MAGIC_CMD=$MAGIC_CMD
19258
19259 # Used on cygwin: DLL creation program.
19260 DLLTOOL="$DLLTOOL"
19261
19262 # Used on cygwin: object dumper.
19263 OBJDUMP="$OBJDUMP"
19264
19265 # Used on cygwin: assembler.
19266 AS="$AS"
19267
19268 # The name of the directory that contains temporary libtool files.
19269 objdir=$objdir
19270
19271 # How to create reloadable object files.
19272 reload_flag=$lt_reload_flag
19273 reload_cmds=$lt_reload_cmds
19274
19275 # How to pass a linker flag through the compiler.
19276 wl=$lt_lt_prog_compiler_wl_GCJ
19277
19278 # Object file suffix (normally "o").
19279 objext="$ac_objext"
19280
19281 # Old archive suffix (normally "a").
19282 libext="$libext"
19283
19284 # Shared library suffix (normally ".so").
19285 shrext_cmds='$shrext_cmds'
19286
19287 # Executable file suffix (normally "").
19288 exeext="$exeext"
19289
19290 # Additional compiler flags for building library objects.
19291 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19292 pic_mode=$pic_mode
19293
19294 # What is the maximum length of a command?
19295 max_cmd_len=$lt_cv_sys_max_cmd_len
19296
19297 # Does compiler simultaneously support -c and -o options?
19298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19299
19300 # Must we lock files when doing compilation?
19301 need_locks=$lt_need_locks
19302
19303 # Do we need the lib prefix for modules?
19304 need_lib_prefix=$need_lib_prefix
19305
19306 # Do we need a version for libraries?
19307 need_version=$need_version
19308
19309 # Whether dlopen is supported.
19310 dlopen_support=$enable_dlopen
19311
19312 # Whether dlopen of programs is supported.
19313 dlopen_self=$enable_dlopen_self
19314
19315 # Whether dlopen of statically linked programs is supported.
19316 dlopen_self_static=$enable_dlopen_self_static
19317
19318 # Compiler flag to prevent dynamic linking.
19319 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19320
19321 # Compiler flag to turn off builtin functions.
19322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19323
19324 # Compiler flag to allow reflexive dlopens.
19325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19326
19327 # Compiler flag to generate shared objects directly from archives.
19328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19329
19330 # Compiler flag to generate thread-safe objects.
19331 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19332
19333 # Library versioning type.
19334 version_type=$version_type
19335
19336 # Format of library name prefix.
19337 libname_spec=$lt_libname_spec
19338
19339 # List of archive names.  First name is the real one, the rest are links.
19340 # The last name is the one that the linker finds with -lNAME.
19341 library_names_spec=$lt_library_names_spec
19342
19343 # The coded name of the library, if different from the real name.
19344 soname_spec=$lt_soname_spec
19345
19346 # Commands used to build and install an old-style archive.
19347 RANLIB=$lt_RANLIB
19348 old_archive_cmds=$lt_old_archive_cmds_GCJ
19349 old_postinstall_cmds=$lt_old_postinstall_cmds
19350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19351
19352 # Create an old-style archive from a shared archive.
19353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19354
19355 # Create a temporary old-style archive to link instead of a shared archive.
19356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19357
19358 # Commands used to build and install a shared archive.
19359 archive_cmds=$lt_archive_cmds_GCJ
19360 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19361 postinstall_cmds=$lt_postinstall_cmds
19362 postuninstall_cmds=$lt_postuninstall_cmds
19363
19364 # Commands used to build a loadable module (assumed same as above if empty)
19365 module_cmds=$lt_module_cmds_GCJ
19366 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19367
19368 # Commands to strip libraries.
19369 old_striplib=$lt_old_striplib
19370 striplib=$lt_striplib
19371
19372 # Dependencies to place before the objects being linked to create a
19373 # shared library.
19374 predep_objects=$lt_predep_objects_GCJ
19375
19376 # Dependencies to place after the objects being linked to create a
19377 # shared library.
19378 postdep_objects=$lt_postdep_objects_GCJ
19379
19380 # Dependencies to place before the objects being linked to create a
19381 # shared library.
19382 predeps=$lt_predeps_GCJ
19383
19384 # Dependencies to place after the objects being linked to create a
19385 # shared library.
19386 postdeps=$lt_postdeps_GCJ
19387
19388 # The directories searched by this compiler when creating a shared
19389 # library
19390 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19391
19392 # The library search path used internally by the compiler when linking
19393 # a shared library.
19394 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19395
19396 # Method to check whether dependent libraries are shared objects.
19397 deplibs_check_method=$lt_deplibs_check_method
19398
19399 # Command to use when deplibs_check_method == file_magic.
19400 file_magic_cmd=$lt_file_magic_cmd
19401
19402 # Flag that allows shared libraries with undefined symbols to be built.
19403 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19404
19405 # Flag that forces no undefined symbols.
19406 no_undefined_flag=$lt_no_undefined_flag_GCJ
19407
19408 # Commands used to finish a libtool library installation in a directory.
19409 finish_cmds=$lt_finish_cmds
19410
19411 # Same as above, but a single script fragment to be evaled but not shown.
19412 finish_eval=$lt_finish_eval
19413
19414 # Take the output of nm and produce a listing of raw symbols and C names.
19415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19416
19417 # Transform the output of nm in a proper C declaration
19418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19419
19420 # Transform the output of nm in a C name address pair
19421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19422
19423 # This is the shared library runtime path variable.
19424 runpath_var=$runpath_var
19425
19426 # This is the shared library path variable.
19427 shlibpath_var=$shlibpath_var
19428
19429 # Is shlibpath searched before the hard-coded library search path?
19430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19431
19432 # How to hardcode a shared library path into an executable.
19433 hardcode_action=$hardcode_action_GCJ
19434
19435 # Whether we should hardcode library paths into libraries.
19436 hardcode_into_libs=$hardcode_into_libs
19437
19438 # Flag to hardcode \$libdir into a binary during linking.
19439 # This must work even if \$libdir does not exist.
19440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19441
19442 # If ld is used when linking, flag to hardcode \$libdir into
19443 # a binary during linking. This must work even if \$libdir does
19444 # not exist.
19445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19446
19447 # Whether we need a single -rpath flag with a separated argument.
19448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19449
19450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19451 # resulting binary.
19452 hardcode_direct=$hardcode_direct_GCJ
19453
19454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19455 # resulting binary.
19456 hardcode_minus_L=$hardcode_minus_L_GCJ
19457
19458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19459 # the resulting binary.
19460 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19461
19462 # Set to yes if building a shared library automatically hardcodes DIR into the library
19463 # and all subsequent libraries and executables linked against it.
19464 hardcode_automatic=$hardcode_automatic_GCJ
19465
19466 # Variables whose values should be saved in libtool wrapper scripts and
19467 # restored at relink time.
19468 variables_saved_for_relink="$variables_saved_for_relink"
19469
19470 # Whether libtool must link a program against all its dependency libraries.
19471 link_all_deplibs=$link_all_deplibs_GCJ
19472
19473 # Compile-time system search path for libraries
19474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19475
19476 # Run-time system search path for libraries
19477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19478
19479 # Fix the shell variable \$srcfile for the compiler.
19480 fix_srcfile_path=$lt_fix_srcfile_path
19481
19482 # Set to yes if exported symbols are required.
19483 always_export_symbols=$always_export_symbols_GCJ
19484
19485 # The commands to list exported symbols.
19486 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19487
19488 # The commands to extract the exported symbol list from a shared archive.
19489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19490
19491 # Symbols that should not be listed in the preloaded symbols.
19492 exclude_expsyms=$lt_exclude_expsyms_GCJ
19493
19494 # Symbols that must always be exported.
19495 include_expsyms=$lt_include_expsyms_GCJ
19496
19497 # ### END LIBTOOL TAG CONFIG: $tagname
19498
19499 __EOF__
19500
19501
19502 else
19503   # If there is no Makefile yet, we rely on a make rule to execute
19504   # `config.status --recheck' to rerun these tests and create the
19505   # libtool script then.
19506   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19507   if test -f "$ltmain_in"; then
19508     test -f Makefile && make "$ltmain"
19509   fi
19510 fi
19511
19512
19513 ac_ext=c
19514 ac_cpp='$CPP $CPPFLAGS'
19515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19518
19519 CC="$lt_save_CC"
19520
19521         else
19522           tagname=""
19523         fi
19524         ;;
19525
19526       RC)
19527
19528
19529 # Source file extension for RC test sources.
19530 ac_ext=rc
19531
19532 # Object file extension for compiled RC test sources.
19533 objext=o
19534 objext_RC=$objext
19535
19536 # Code to be used in simple compile tests
19537 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19538
19539 # Code to be used in simple link tests
19540 lt_simple_link_test_code="$lt_simple_compile_test_code"
19541
19542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19543
19544 # If no C compiler was specified, use CC.
19545 LTCC=${LTCC-"$CC"}
19546
19547 # If no C compiler flags were specified, use CFLAGS.
19548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19549
19550 # Allow CC to be a program name with arguments.
19551 compiler=$CC
19552
19553
19554 # save warnings/boilerplate of simple test code
19555 ac_outfile=conftest.$ac_objext
19556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19558 _lt_compiler_boilerplate=`cat conftest.err`
19559 $rm conftest*
19560
19561 ac_outfile=conftest.$ac_objext
19562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19564 _lt_linker_boilerplate=`cat conftest.err`
19565 $rm -r conftest*
19566
19567
19568 # Allow CC to be a program name with arguments.
19569 lt_save_CC="$CC"
19570 CC=${RC-"windres"}
19571 compiler=$CC
19572 compiler_RC=$CC
19573 for cc_temp in $compiler""; do
19574   case $cc_temp in
19575     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19576     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19577     \-*) ;;
19578     *) break;;
19579   esac
19580 done
19581 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19582
19583 lt_cv_prog_compiler_c_o_RC=yes
19584
19585 # The else clause should only fire when bootstrapping the
19586 # libtool distribution, otherwise you forgot to ship ltmain.sh
19587 # with your package, and you will get complaints that there are
19588 # no rules to generate ltmain.sh.
19589 if test -f "$ltmain"; then
19590   # See if we are running on zsh, and set the options which allow our commands through
19591   # without removal of \ escapes.
19592   if test -n "${ZSH_VERSION+set}" ; then
19593     setopt NO_GLOB_SUBST
19594   fi
19595   # Now quote all the things that may contain metacharacters while being
19596   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19597   # variables and quote the copies for generation of the libtool script.
19598   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19599     SED SHELL STRIP \
19600     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19601     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19602     deplibs_check_method reload_flag reload_cmds need_locks \
19603     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19604     lt_cv_sys_global_symbol_to_c_name_address \
19605     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19606     old_postinstall_cmds old_postuninstall_cmds \
19607     compiler_RC \
19608     CC_RC \
19609     LD_RC \
19610     lt_prog_compiler_wl_RC \
19611     lt_prog_compiler_pic_RC \
19612     lt_prog_compiler_static_RC \
19613     lt_prog_compiler_no_builtin_flag_RC \
19614     export_dynamic_flag_spec_RC \
19615     thread_safe_flag_spec_RC \
19616     whole_archive_flag_spec_RC \
19617     enable_shared_with_static_runtimes_RC \
19618     old_archive_cmds_RC \
19619     old_archive_from_new_cmds_RC \
19620     predep_objects_RC \
19621     postdep_objects_RC \
19622     predeps_RC \
19623     postdeps_RC \
19624     compiler_lib_search_path_RC \
19625     compiler_lib_search_dirs_RC \
19626     archive_cmds_RC \
19627     archive_expsym_cmds_RC \
19628     postinstall_cmds_RC \
19629     postuninstall_cmds_RC \
19630     old_archive_from_expsyms_cmds_RC \
19631     allow_undefined_flag_RC \
19632     no_undefined_flag_RC \
19633     export_symbols_cmds_RC \
19634     hardcode_libdir_flag_spec_RC \
19635     hardcode_libdir_flag_spec_ld_RC \
19636     hardcode_libdir_separator_RC \
19637     hardcode_automatic_RC \
19638     module_cmds_RC \
19639     module_expsym_cmds_RC \
19640     lt_cv_prog_compiler_c_o_RC \
19641     fix_srcfile_path_RC \
19642     exclude_expsyms_RC \
19643     include_expsyms_RC; do
19644
19645     case $var in
19646     old_archive_cmds_RC | \
19647     old_archive_from_new_cmds_RC | \
19648     archive_cmds_RC | \
19649     archive_expsym_cmds_RC | \
19650     module_cmds_RC | \
19651     module_expsym_cmds_RC | \
19652     old_archive_from_expsyms_cmds_RC | \
19653     export_symbols_cmds_RC | \
19654     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19655     postinstall_cmds | postuninstall_cmds | \
19656     old_postinstall_cmds | old_postuninstall_cmds | \
19657     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19658       # Double-quote double-evaled strings.
19659       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19660       ;;
19661     *)
19662       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19663       ;;
19664     esac
19665   done
19666
19667   case $lt_echo in
19668   *'\$0 --fallback-echo"')
19669     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19670     ;;
19671   esac
19672
19673 cfgfile="$ofile"
19674
19675   cat <<__EOF__ >> "$cfgfile"
19676 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19677
19678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19679
19680 # Shell to use when invoking shell scripts.
19681 SHELL=$lt_SHELL
19682
19683 # Whether or not to build shared libraries.
19684 build_libtool_libs=$enable_shared
19685
19686 # Whether or not to build static libraries.
19687 build_old_libs=$enable_static
19688
19689 # Whether or not to add -lc for building shared libraries.
19690 build_libtool_need_lc=$archive_cmds_need_lc_RC
19691
19692 # Whether or not to disallow shared libs when runtime libs are static
19693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19694
19695 # Whether or not to optimize for fast installation.
19696 fast_install=$enable_fast_install
19697
19698 # The host system.
19699 host_alias=$host_alias
19700 host=$host
19701 host_os=$host_os
19702
19703 # The build system.
19704 build_alias=$build_alias
19705 build=$build
19706 build_os=$build_os
19707
19708 # An echo program that does not interpret backslashes.
19709 echo=$lt_echo
19710
19711 # The archiver.
19712 AR=$lt_AR
19713 AR_FLAGS=$lt_AR_FLAGS
19714
19715 # A C compiler.
19716 LTCC=$lt_LTCC
19717
19718 # LTCC compiler flags.
19719 LTCFLAGS=$lt_LTCFLAGS
19720
19721 # A language-specific compiler.
19722 CC=$lt_compiler_RC
19723
19724 # Is the compiler the GNU C compiler?
19725 with_gcc=$GCC_RC
19726
19727 # An ERE matcher.
19728 EGREP=$lt_EGREP
19729
19730 # The linker used to build libraries.
19731 LD=$lt_LD_RC
19732
19733 # Whether we need hard or soft links.
19734 LN_S=$lt_LN_S
19735
19736 # A BSD-compatible nm program.
19737 NM=$lt_NM
19738
19739 # A symbol stripping program
19740 STRIP=$lt_STRIP
19741
19742 # Used to examine libraries when file_magic_cmd begins "file"
19743 MAGIC_CMD=$MAGIC_CMD
19744
19745 # Used on cygwin: DLL creation program.
19746 DLLTOOL="$DLLTOOL"
19747
19748 # Used on cygwin: object dumper.
19749 OBJDUMP="$OBJDUMP"
19750
19751 # Used on cygwin: assembler.
19752 AS="$AS"
19753
19754 # The name of the directory that contains temporary libtool files.
19755 objdir=$objdir
19756
19757 # How to create reloadable object files.
19758 reload_flag=$lt_reload_flag
19759 reload_cmds=$lt_reload_cmds
19760
19761 # How to pass a linker flag through the compiler.
19762 wl=$lt_lt_prog_compiler_wl_RC
19763
19764 # Object file suffix (normally "o").
19765 objext="$ac_objext"
19766
19767 # Old archive suffix (normally "a").
19768 libext="$libext"
19769
19770 # Shared library suffix (normally ".so").
19771 shrext_cmds='$shrext_cmds'
19772
19773 # Executable file suffix (normally "").
19774 exeext="$exeext"
19775
19776 # Additional compiler flags for building library objects.
19777 pic_flag=$lt_lt_prog_compiler_pic_RC
19778 pic_mode=$pic_mode
19779
19780 # What is the maximum length of a command?
19781 max_cmd_len=$lt_cv_sys_max_cmd_len
19782
19783 # Does compiler simultaneously support -c and -o options?
19784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19785
19786 # Must we lock files when doing compilation?
19787 need_locks=$lt_need_locks
19788
19789 # Do we need the lib prefix for modules?
19790 need_lib_prefix=$need_lib_prefix
19791
19792 # Do we need a version for libraries?
19793 need_version=$need_version
19794
19795 # Whether dlopen is supported.
19796 dlopen_support=$enable_dlopen
19797
19798 # Whether dlopen of programs is supported.
19799 dlopen_self=$enable_dlopen_self
19800
19801 # Whether dlopen of statically linked programs is supported.
19802 dlopen_self_static=$enable_dlopen_self_static
19803
19804 # Compiler flag to prevent dynamic linking.
19805 link_static_flag=$lt_lt_prog_compiler_static_RC
19806
19807 # Compiler flag to turn off builtin functions.
19808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19809
19810 # Compiler flag to allow reflexive dlopens.
19811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19812
19813 # Compiler flag to generate shared objects directly from archives.
19814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19815
19816 # Compiler flag to generate thread-safe objects.
19817 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19818
19819 # Library versioning type.
19820 version_type=$version_type
19821
19822 # Format of library name prefix.
19823 libname_spec=$lt_libname_spec
19824
19825 # List of archive names.  First name is the real one, the rest are links.
19826 # The last name is the one that the linker finds with -lNAME.
19827 library_names_spec=$lt_library_names_spec
19828
19829 # The coded name of the library, if different from the real name.
19830 soname_spec=$lt_soname_spec
19831
19832 # Commands used to build and install an old-style archive.
19833 RANLIB=$lt_RANLIB
19834 old_archive_cmds=$lt_old_archive_cmds_RC
19835 old_postinstall_cmds=$lt_old_postinstall_cmds
19836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19837
19838 # Create an old-style archive from a shared archive.
19839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19840
19841 # Create a temporary old-style archive to link instead of a shared archive.
19842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19843
19844 # Commands used to build and install a shared archive.
19845 archive_cmds=$lt_archive_cmds_RC
19846 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19847 postinstall_cmds=$lt_postinstall_cmds
19848 postuninstall_cmds=$lt_postuninstall_cmds
19849
19850 # Commands used to build a loadable module (assumed same as above if empty)
19851 module_cmds=$lt_module_cmds_RC
19852 module_expsym_cmds=$lt_module_expsym_cmds_RC
19853
19854 # Commands to strip libraries.
19855 old_striplib=$lt_old_striplib
19856 striplib=$lt_striplib
19857
19858 # Dependencies to place before the objects being linked to create a
19859 # shared library.
19860 predep_objects=$lt_predep_objects_RC
19861
19862 # Dependencies to place after the objects being linked to create a
19863 # shared library.
19864 postdep_objects=$lt_postdep_objects_RC
19865
19866 # Dependencies to place before the objects being linked to create a
19867 # shared library.
19868 predeps=$lt_predeps_RC
19869
19870 # Dependencies to place after the objects being linked to create a
19871 # shared library.
19872 postdeps=$lt_postdeps_RC
19873
19874 # The directories searched by this compiler when creating a shared
19875 # library
19876 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19877
19878 # The library search path used internally by the compiler when linking
19879 # a shared library.
19880 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19881
19882 # Method to check whether dependent libraries are shared objects.
19883 deplibs_check_method=$lt_deplibs_check_method
19884
19885 # Command to use when deplibs_check_method == file_magic.
19886 file_magic_cmd=$lt_file_magic_cmd
19887
19888 # Flag that allows shared libraries with undefined symbols to be built.
19889 allow_undefined_flag=$lt_allow_undefined_flag_RC
19890
19891 # Flag that forces no undefined symbols.
19892 no_undefined_flag=$lt_no_undefined_flag_RC
19893
19894 # Commands used to finish a libtool library installation in a directory.
19895 finish_cmds=$lt_finish_cmds
19896
19897 # Same as above, but a single script fragment to be evaled but not shown.
19898 finish_eval=$lt_finish_eval
19899
19900 # Take the output of nm and produce a listing of raw symbols and C names.
19901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19902
19903 # Transform the output of nm in a proper C declaration
19904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19905
19906 # Transform the output of nm in a C name address pair
19907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19908
19909 # This is the shared library runtime path variable.
19910 runpath_var=$runpath_var
19911
19912 # This is the shared library path variable.
19913 shlibpath_var=$shlibpath_var
19914
19915 # Is shlibpath searched before the hard-coded library search path?
19916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19917
19918 # How to hardcode a shared library path into an executable.
19919 hardcode_action=$hardcode_action_RC
19920
19921 # Whether we should hardcode library paths into libraries.
19922 hardcode_into_libs=$hardcode_into_libs
19923
19924 # Flag to hardcode \$libdir into a binary during linking.
19925 # This must work even if \$libdir does not exist.
19926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19927
19928 # If ld is used when linking, flag to hardcode \$libdir into
19929 # a binary during linking. This must work even if \$libdir does
19930 # not exist.
19931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19932
19933 # Whether we need a single -rpath flag with a separated argument.
19934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19935
19936 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19937 # resulting binary.
19938 hardcode_direct=$hardcode_direct_RC
19939
19940 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19941 # resulting binary.
19942 hardcode_minus_L=$hardcode_minus_L_RC
19943
19944 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19945 # the resulting binary.
19946 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19947
19948 # Set to yes if building a shared library automatically hardcodes DIR into the library
19949 # and all subsequent libraries and executables linked against it.
19950 hardcode_automatic=$hardcode_automatic_RC
19951
19952 # Variables whose values should be saved in libtool wrapper scripts and
19953 # restored at relink time.
19954 variables_saved_for_relink="$variables_saved_for_relink"
19955
19956 # Whether libtool must link a program against all its dependency libraries.
19957 link_all_deplibs=$link_all_deplibs_RC
19958
19959 # Compile-time system search path for libraries
19960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19961
19962 # Run-time system search path for libraries
19963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19964
19965 # Fix the shell variable \$srcfile for the compiler.
19966 fix_srcfile_path=$lt_fix_srcfile_path
19967
19968 # Set to yes if exported symbols are required.
19969 always_export_symbols=$always_export_symbols_RC
19970
19971 # The commands to list exported symbols.
19972 export_symbols_cmds=$lt_export_symbols_cmds_RC
19973
19974 # The commands to extract the exported symbol list from a shared archive.
19975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19976
19977 # Symbols that should not be listed in the preloaded symbols.
19978 exclude_expsyms=$lt_exclude_expsyms_RC
19979
19980 # Symbols that must always be exported.
19981 include_expsyms=$lt_include_expsyms_RC
19982
19983 # ### END LIBTOOL TAG CONFIG: $tagname
19984
19985 __EOF__
19986
19987
19988 else
19989   # If there is no Makefile yet, we rely on a make rule to execute
19990   # `config.status --recheck' to rerun these tests and create the
19991   # libtool script then.
19992   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19993   if test -f "$ltmain_in"; then
19994     test -f Makefile && make "$ltmain"
19995   fi
19996 fi
19997
19998
19999 ac_ext=c
20000 ac_cpp='$CPP $CPPFLAGS'
20001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20004
20005 CC="$lt_save_CC"
20006
20007         ;;
20008
20009       *)
20010         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20011 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20012    { (exit 1); exit 1; }; }
20013         ;;
20014       esac
20015
20016       # Append the new tag name to the list of available tags.
20017       if test -n "$tagname" ; then
20018       available_tags="$available_tags $tagname"
20019     fi
20020     fi
20021   done
20022   IFS="$lt_save_ifs"
20023
20024   # Now substitute the updated list of available tags.
20025   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20026     mv "${ofile}T" "$ofile"
20027     chmod +x "$ofile"
20028   else
20029     rm -f "${ofile}T"
20030     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20031 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20032    { (exit 1); exit 1; }; }
20033   fi
20034 fi
20035
20036
20037
20038 # This can be used to rebuild libtool when needed
20039 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20040
20041 # Always use our own libtool.
20042 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20043
20044 # Prevent multiple expansion
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20067 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20068 if test "${ac_cv_c_const+set}" = set; then
20069   $as_echo_n "(cached) " >&6
20070 else
20071   cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077
20078 int
20079 main ()
20080 {
20081 /* FIXME: Include the comments suggested by Paul. */
20082 #ifndef __cplusplus
20083   /* Ultrix mips cc rejects this.  */
20084   typedef int charset[2];
20085   const charset cs;
20086   /* SunOS 4.1.1 cc rejects this.  */
20087   char const *const *pcpcc;
20088   char **ppc;
20089   /* NEC SVR4.0.2 mips cc rejects this.  */
20090   struct point {int x, y;};
20091   static struct point const zero = {0,0};
20092   /* AIX XL C 1.02.0.0 rejects this.
20093      It does not let you subtract one const X* pointer from another in
20094      an arm of an if-expression whose if-part is not a constant
20095      expression */
20096   const char *g = "string";
20097   pcpcc = &g + (g ? g-g : 0);
20098   /* HPUX 7.0 cc rejects these. */
20099   ++pcpcc;
20100   ppc = (char**) pcpcc;
20101   pcpcc = (char const *const *) ppc;
20102   { /* SCO 3.2v4 cc rejects this.  */
20103     char *t;
20104     char const *s = 0 ? (char *) 0 : (char const *) 0;
20105
20106     *t++ = 0;
20107     if (s) return 0;
20108   }
20109   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20110     int x[] = {25, 17};
20111     const int *foo = &x[0];
20112     ++foo;
20113   }
20114   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20115     typedef const int *iptr;
20116     iptr p = 0;
20117     ++p;
20118   }
20119   { /* AIX XL C 1.02.0.0 rejects this saying
20120        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20121     struct s { int j; const int *ap[3]; };
20122     struct s *b; b->j = 5;
20123   }
20124   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20125     const int foo = 10;
20126     if (!foo) return 0;
20127   }
20128   return !cs[0] && !zero.x;
20129 #endif
20130
20131   ;
20132   return 0;
20133 }
20134 _ACEOF
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20142 $as_echo "$ac_try_echo") >&5
20143   (eval "$ac_compile") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } && {
20150          test -z "$ac_c_werror_flag" ||
20151          test ! -s conftest.err
20152        } && test -s conftest.$ac_objext; then
20153   ac_cv_c_const=yes
20154 else
20155   $as_echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158         ac_cv_c_const=no
20159 fi
20160
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20162 fi
20163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20164 $as_echo "$ac_cv_c_const" >&6; }
20165 if test $ac_cv_c_const = no; then
20166
20167 cat >>confdefs.h <<\_ACEOF
20168 #define const /**/
20169 _ACEOF
20170
20171 fi
20172
20173 if test $ac_cv_c_compiler_gnu = yes; then
20174     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20175 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20176 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20177   $as_echo_n "(cached) " >&6
20178 else
20179     ac_pattern="Autoconf.*'x'"
20180   cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 #include <sgtty.h>
20187 Autoconf TIOCGETP
20188 _ACEOF
20189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20190   $EGREP "$ac_pattern" >/dev/null 2>&1; then
20191   ac_cv_prog_gcc_traditional=yes
20192 else
20193   ac_cv_prog_gcc_traditional=no
20194 fi
20195 rm -f conftest*
20196
20197
20198   if test $ac_cv_prog_gcc_traditional = no; then
20199     cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 #include <termio.h>
20206 Autoconf TCGETA
20207 _ACEOF
20208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20209   $EGREP "$ac_pattern" >/dev/null 2>&1; then
20210   ac_cv_prog_gcc_traditional=yes
20211 fi
20212 rm -f conftest*
20213
20214   fi
20215 fi
20216 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20217 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20218   if test $ac_cv_prog_gcc_traditional = yes; then
20219     CC="$CC -traditional"
20220   fi
20221 fi
20222
20223
20224
20225
20226
20227
20228
20229 for ac_header in libutil.h pthread.h sys/prctrl.h utmp.h utmpx.h
20230 do
20231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20234 $as_echo_n "checking for $ac_header... " >&6; }
20235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20236   $as_echo_n "(cached) " >&6
20237 fi
20238 ac_res=`eval 'as_val=${'$as_ac_Header'}
20239                  $as_echo "$as_val"'`
20240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20241 $as_echo "$ac_res" >&6; }
20242 else
20243   # Is the header compilable?
20244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20245 $as_echo_n "checking $ac_header usability... " >&6; }
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 $ac_includes_default
20253 #include <$ac_header>
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (ac_try="$ac_compile"
20257 case "(($ac_try" in
20258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259   *) ac_try_echo=$ac_try;;
20260 esac
20261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20262 $as_echo "$ac_try_echo") >&5
20263   (eval "$ac_compile") 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } && {
20270          test -z "$ac_c_werror_flag" ||
20271          test ! -s conftest.err
20272        } && test -s conftest.$ac_objext; then
20273   ac_header_compiler=yes
20274 else
20275   $as_echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278         ac_header_compiler=no
20279 fi
20280
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20283 $as_echo "$ac_header_compiler" >&6; }
20284
20285 # Is the header present?
20286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20287 $as_echo_n "checking $ac_header presence... " >&6; }
20288 cat >conftest.$ac_ext <<_ACEOF
20289 /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294 #include <$ac_header>
20295 _ACEOF
20296 if { (ac_try="$ac_cpp conftest.$ac_ext"
20297 case "(($ac_try" in
20298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299   *) ac_try_echo=$ac_try;;
20300 esac
20301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302 $as_echo "$ac_try_echo") >&5
20303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20304   ac_status=$?
20305   grep -v '^ *+' conftest.er1 >conftest.err
20306   rm -f conftest.er1
20307   cat conftest.err >&5
20308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } >/dev/null && {
20310          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20311          test ! -s conftest.err
20312        }; then
20313   ac_header_preproc=yes
20314 else
20315   $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318   ac_header_preproc=no
20319 fi
20320
20321 rm -f conftest.err conftest.$ac_ext
20322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20323 $as_echo "$ac_header_preproc" >&6; }
20324
20325 # So?  What about this header?
20326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20327   yes:no: )
20328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20332     ac_header_preproc=yes
20333     ;;
20334   no:yes:* )
20335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20338 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20342 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20347     ( cat <<\_ASBOX
20348 ## ------------------------------------- ##
20349 ## Report this to markus@shellinabox.com ##
20350 ## ------------------------------------- ##
20351 _ASBOX
20352      ) | sed "s/^/$as_me: WARNING:     /" >&2
20353     ;;
20354 esac
20355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20356 $as_echo_n "checking for $ac_header... " >&6; }
20357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20358   $as_echo_n "(cached) " >&6
20359 else
20360   eval "$as_ac_Header=\$ac_header_preproc"
20361 fi
20362 ac_res=`eval 'as_val=${'$as_ac_Header'}
20363                  $as_echo "$as_val"'`
20364                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20365 $as_echo "$ac_res" >&6; }
20366
20367 fi
20368 as_val=`eval 'as_val=${'$as_ac_Header'}
20369                  $as_echo "$as_val"'`
20370    if test "x$as_val" = x""yes; then
20371   cat >>confdefs.h <<_ACEOF
20372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20373 _ACEOF
20374
20375 fi
20376
20377 done
20378
20379
20380
20381 for ac_func in login_tty
20382 do
20383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20384 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20385 $as_echo_n "checking for $ac_func... " >&6; }
20386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20387   $as_echo_n "(cached) " >&6
20388 else
20389   cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h.  */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h.  */
20395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20397 #define $ac_func innocuous_$ac_func
20398
20399 /* System header to define __stub macros and hopefully few prototypes,
20400     which can conflict with char $ac_func (); below.
20401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20402     <limits.h> exists even on freestanding compilers.  */
20403
20404 #ifdef __STDC__
20405 # include <limits.h>
20406 #else
20407 # include <assert.h>
20408 #endif
20409
20410 #undef $ac_func
20411
20412 /* Override any GCC internal prototype to avoid an error.
20413    Use char because int might match the return type of a GCC
20414    builtin and then its argument prototype would still apply.  */
20415 #ifdef __cplusplus
20416 extern "C"
20417 #endif
20418 char $ac_func ();
20419 /* The GNU C library defines this for functions which it implements
20420     to always fail with ENOSYS.  Some functions are actually named
20421     something starting with __ and the normal name is an alias.  */
20422 #if defined __stub_$ac_func || defined __stub___$ac_func
20423 choke me
20424 #endif
20425
20426 int
20427 main ()
20428 {
20429 return $ac_func ();
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20441 $as_echo "$ac_try_echo") >&5
20442   (eval "$ac_link") 2>conftest.er1
20443   ac_status=$?
20444   grep -v '^ *+' conftest.er1 >conftest.err
20445   rm -f conftest.er1
20446   cat conftest.err >&5
20447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); } && {
20449          test -z "$ac_c_werror_flag" ||
20450          test ! -s conftest.err
20451        } && test -s conftest$ac_exeext && {
20452          test "$cross_compiling" = yes ||
20453          $as_test_x conftest$ac_exeext
20454        }; then
20455   eval "$as_ac_var=yes"
20456 else
20457   $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460         eval "$as_ac_var=no"
20461 fi
20462
20463 rm -rf conftest.dSYM
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465       conftest$ac_exeext conftest.$ac_ext
20466 fi
20467 ac_res=`eval 'as_val=${'$as_ac_var'}
20468                  $as_echo "$as_val"'`
20469                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20470 $as_echo "$ac_res" >&6; }
20471 as_val=`eval 'as_val=${'$as_ac_var'}
20472                  $as_echo "$as_val"'`
20473    if test "x$as_val" = x""yes; then
20474   cat >>confdefs.h <<_ACEOF
20475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20476 _ACEOF
20477
20478 else
20479   { $as_echo "$as_me:$LINENO: checking for login_tty in -lutil" >&5
20480 $as_echo_n "checking for login_tty in -lutil... " >&6; }
20481 if test "${ac_cv_lib_util_login_tty+set}" = set; then
20482   $as_echo_n "(cached) " >&6
20483 else
20484   ac_check_lib_save_LIBS=$LIBS
20485 LIBS="-lutil  $LIBS"
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492
20493 /* Override any GCC internal prototype to avoid an error.
20494    Use char because int might match the return type of a GCC
20495    builtin and then its argument prototype would still apply.  */
20496 #ifdef __cplusplus
20497 extern "C"
20498 #endif
20499 char login_tty ();
20500 int
20501 main ()
20502 {
20503 return login_tty ();
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext conftest$ac_exeext
20509 if { (ac_try="$ac_link"
20510 case "(($ac_try" in
20511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512   *) ac_try_echo=$ac_try;;
20513 esac
20514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20515 $as_echo "$ac_try_echo") >&5
20516   (eval "$ac_link") 2>conftest.er1
20517   ac_status=$?
20518   grep -v '^ *+' conftest.er1 >conftest.err
20519   rm -f conftest.er1
20520   cat conftest.err >&5
20521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); } && {
20523          test -z "$ac_c_werror_flag" ||
20524          test ! -s conftest.err
20525        } && test -s conftest$ac_exeext && {
20526          test "$cross_compiling" = yes ||
20527          $as_test_x conftest$ac_exeext
20528        }; then
20529   ac_cv_lib_util_login_tty=yes
20530 else
20531   $as_echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20533
20534         ac_cv_lib_util_login_tty=no
20535 fi
20536
20537 rm -rf conftest.dSYM
20538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20539       conftest$ac_exeext conftest.$ac_ext
20540 LIBS=$ac_check_lib_save_LIBS
20541 fi
20542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_login_tty" >&5
20543 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
20544 if test "x$ac_cv_lib_util_login_tty" = x""yes; then
20545   LIBS="-lutil $LIBS"
20546                  cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_LOGIN_TTY 1
20548 _ACEOF
20549
20550 fi
20551
20552 fi
20553 done
20554
20555
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 #ifndef _XOPEN_SOURCE
20563              #define _XOPEN_SOURCE
20564              #endif
20565              #ifndef _GNU_SOURCE
20566              #define _GNU_SOURCE
20567              #endif
20568              #include <stdlib.h>
20569 int
20570 main ()
20571 {
20572 char buf[10]; ptsname_r(0, buf, sizeof(buf));
20573   ;
20574   return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20584 $as_echo "$ac_try_echo") >&5
20585   (eval "$ac_link") 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } && {
20592          test -z "$ac_c_werror_flag" ||
20593          test ! -s conftest.err
20594        } && test -s conftest$ac_exeext && {
20595          test "$cross_compiling" = yes ||
20596          $as_test_x conftest$ac_exeext
20597        }; then
20598
20599 cat >>confdefs.h <<\_ACEOF
20600 #define HAVE_PTSNAME_R 1
20601 _ACEOF
20602
20603 else
20604   $as_echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607
20608 fi
20609
20610 rm -rf conftest.dSYM
20611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20612       conftest$ac_exeext conftest.$ac_ext
20613
20614 # Check whether --enable-ssl was given.
20615 if test "${enable_ssl+set}" = set; then
20616   enableval=$enable_ssl;
20617 fi
20618
20619
20620 # Check whether --enable-pam was given.
20621 if test "${enable_pam+set}" = set; then
20622   enableval=$enable_pam;
20623 fi
20624
20625
20626 # Check whether --enable-runtime-loading was given.
20627 if test "${enable_runtime_loading+set}" = set; then
20628   enableval=$enable_runtime_loading;
20629 fi
20630
20631
20632 if test "x$enable_ssl" != xno; then
20633
20634
20635
20636 for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
20637 do
20638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20640   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20641 $as_echo_n "checking for $ac_header... " >&6; }
20642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20643   $as_echo_n "(cached) " >&6
20644 fi
20645 ac_res=`eval 'as_val=${'$as_ac_Header'}
20646                  $as_echo "$as_val"'`
20647                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20648 $as_echo "$ac_res" >&6; }
20649 else
20650   # Is the header compilable?
20651 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20652 $as_echo_n "checking $ac_header usability... " >&6; }
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 $ac_includes_default
20660 #include <$ac_header>
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (ac_try="$ac_compile"
20664 case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20669 $as_echo "$ac_try_echo") >&5
20670   (eval "$ac_compile") 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } && {
20677          test -z "$ac_c_werror_flag" ||
20678          test ! -s conftest.err
20679        } && test -s conftest.$ac_objext; then
20680   ac_header_compiler=yes
20681 else
20682   $as_echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685         ac_header_compiler=no
20686 fi
20687
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20690 $as_echo "$ac_header_compiler" >&6; }
20691
20692 # Is the header present?
20693 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20694 $as_echo_n "checking $ac_header presence... " >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 #include <$ac_header>
20702 _ACEOF
20703 if { (ac_try="$ac_cpp conftest.$ac_ext"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20709 $as_echo "$ac_try_echo") >&5
20710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } >/dev/null && {
20717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20718          test ! -s conftest.err
20719        }; then
20720   ac_header_preproc=yes
20721 else
20722   $as_echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725   ac_header_preproc=no
20726 fi
20727
20728 rm -f conftest.err conftest.$ac_ext
20729 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20730 $as_echo "$ac_header_preproc" >&6; }
20731
20732 # So?  What about this header?
20733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20734   yes:no: )
20735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20736 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20737     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20738 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20739     ac_header_preproc=yes
20740     ;;
20741   no:yes:* )
20742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20743 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20745 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20747 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20749 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20751 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20753 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20754     ( cat <<\_ASBOX
20755 ## ------------------------------------- ##
20756 ## Report this to markus@shellinabox.com ##
20757 ## ------------------------------------- ##
20758 _ASBOX
20759      ) | sed "s/^/$as_me: WARNING:     /" >&2
20760     ;;
20761 esac
20762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20763 $as_echo_n "checking for $ac_header... " >&6; }
20764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20765   $as_echo_n "(cached) " >&6
20766 else
20767   eval "$as_ac_Header=\$ac_header_preproc"
20768 fi
20769 ac_res=`eval 'as_val=${'$as_ac_Header'}
20770                  $as_echo "$as_val"'`
20771                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20772 $as_echo "$ac_res" >&6; }
20773
20774 fi
20775 as_val=`eval 'as_val=${'$as_ac_Header'}
20776                  $as_echo "$as_val"'`
20777    if test "x$as_val" = x""yes; then
20778   cat >>confdefs.h <<_ACEOF
20779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780 _ACEOF
20781
20782 fi
20783
20784 done
20785
20786 fi
20787
20788 if test "x$enable_pam" != xno; then
20789
20790
20791
20792 for ac_header in security/pam_appl.h security/pam_client.h                 \
20793                     security/pam_misc.h
20794 do
20795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20797   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 $as_echo_n "checking for $ac_header... " >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800   $as_echo_n "(cached) " >&6
20801 fi
20802 ac_res=`eval 'as_val=${'$as_ac_Header'}
20803                  $as_echo "$as_val"'`
20804                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20805 $as_echo "$ac_res" >&6; }
20806 else
20807   # Is the header compilable?
20808 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20809 $as_echo_n "checking $ac_header usability... " >&6; }
20810 cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 $ac_includes_default
20817 #include <$ac_header>
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20826 $as_echo "$ac_try_echo") >&5
20827   (eval "$ac_compile") 2>conftest.er1
20828   ac_status=$?
20829   grep -v '^ *+' conftest.er1 >conftest.err
20830   rm -f conftest.er1
20831   cat conftest.err >&5
20832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); } && {
20834          test -z "$ac_c_werror_flag" ||
20835          test ! -s conftest.err
20836        } && test -s conftest.$ac_objext; then
20837   ac_header_compiler=yes
20838 else
20839   $as_echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842         ac_header_compiler=no
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20847 $as_echo "$ac_header_compiler" >&6; }
20848
20849 # Is the header present?
20850 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20851 $as_echo_n "checking $ac_header presence... " >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #include <$ac_header>
20859 _ACEOF
20860 if { (ac_try="$ac_cpp conftest.$ac_ext"
20861 case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20866 $as_echo "$ac_try_echo") >&5
20867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20868   ac_status=$?
20869   grep -v '^ *+' conftest.er1 >conftest.err
20870   rm -f conftest.er1
20871   cat conftest.err >&5
20872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } >/dev/null && {
20874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20875          test ! -s conftest.err
20876        }; then
20877   ac_header_preproc=yes
20878 else
20879   $as_echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882   ac_header_preproc=no
20883 fi
20884
20885 rm -f conftest.err conftest.$ac_ext
20886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887 $as_echo "$ac_header_preproc" >&6; }
20888
20889 # So?  What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891   yes:no: )
20892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20893 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20894     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20896     ac_header_preproc=yes
20897     ;;
20898   no:yes:* )
20899     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20900 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20902 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20904 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20906 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20907     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20910 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20911     ( cat <<\_ASBOX
20912 ## ------------------------------------- ##
20913 ## Report this to markus@shellinabox.com ##
20914 ## ------------------------------------- ##
20915 _ASBOX
20916      ) | sed "s/^/$as_me: WARNING:     /" >&2
20917     ;;
20918 esac
20919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20920 $as_echo_n "checking for $ac_header... " >&6; }
20921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20922   $as_echo_n "(cached) " >&6
20923 else
20924   eval "$as_ac_Header=\$ac_header_preproc"
20925 fi
20926 ac_res=`eval 'as_val=${'$as_ac_Header'}
20927                  $as_echo "$as_val"'`
20928                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20929 $as_echo "$ac_res" >&6; }
20930
20931 fi
20932 as_val=`eval 'as_val=${'$as_ac_Header'}
20933                  $as_echo "$as_val"'`
20934    if test "x$as_val" = x""yes; then
20935   cat >>confdefs.h <<_ACEOF
20936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20937 _ACEOF
20938
20939 fi
20940
20941 done
20942
20943 fi
20944
20945 if test "x$enable_runtime_loading" != xno; then
20946
20947 for ac_func in dlopen
20948 do
20949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20950 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20951 $as_echo_n "checking for $ac_func... " >&6; }
20952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20953   $as_echo_n "(cached) " >&6
20954 else
20955   cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20963 #define $ac_func innocuous_$ac_func
20964
20965 /* System header to define __stub macros and hopefully few prototypes,
20966     which can conflict with char $ac_func (); below.
20967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20968     <limits.h> exists even on freestanding compilers.  */
20969
20970 #ifdef __STDC__
20971 # include <limits.h>
20972 #else
20973 # include <assert.h>
20974 #endif
20975
20976 #undef $ac_func
20977
20978 /* Override any GCC internal prototype to avoid an error.
20979    Use char because int might match the return type of a GCC
20980    builtin and then its argument prototype would still apply.  */
20981 #ifdef __cplusplus
20982 extern "C"
20983 #endif
20984 char $ac_func ();
20985 /* The GNU C library defines this for functions which it implements
20986     to always fail with ENOSYS.  Some functions are actually named
20987     something starting with __ and the normal name is an alias.  */
20988 #if defined __stub_$ac_func || defined __stub___$ac_func
20989 choke me
20990 #endif
20991
20992 int
20993 main ()
20994 {
20995 return $ac_func ();
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (ac_try="$ac_link"
21002 case "(($ac_try" in
21003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004   *) ac_try_echo=$ac_try;;
21005 esac
21006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21007 $as_echo "$ac_try_echo") >&5
21008   (eval "$ac_link") 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } && {
21015          test -z "$ac_c_werror_flag" ||
21016          test ! -s conftest.err
21017        } && test -s conftest$ac_exeext && {
21018          test "$cross_compiling" = yes ||
21019          $as_test_x conftest$ac_exeext
21020        }; then
21021   eval "$as_ac_var=yes"
21022 else
21023   $as_echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         eval "$as_ac_var=no"
21027 fi
21028
21029 rm -rf conftest.dSYM
21030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21031       conftest$ac_exeext conftest.$ac_ext
21032 fi
21033 ac_res=`eval 'as_val=${'$as_ac_var'}
21034                  $as_echo "$as_val"'`
21035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21036 $as_echo "$ac_res" >&6; }
21037 as_val=`eval 'as_val=${'$as_ac_var'}
21038                  $as_echo "$as_val"'`
21039    if test "x$as_val" = x""yes; then
21040   cat >>confdefs.h <<_ACEOF
21041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21042 _ACEOF
21043
21044 else
21045   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21046 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21048   $as_echo_n "(cached) " >&6
21049 else
21050   ac_check_lib_save_LIBS=$LIBS
21051 LIBS="-ldl  $LIBS"
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058
21059 /* Override any GCC internal prototype to avoid an error.
21060    Use char because int might match the return type of a GCC
21061    builtin and then its argument prototype would still apply.  */
21062 #ifdef __cplusplus
21063 extern "C"
21064 #endif
21065 char dlopen ();
21066 int
21067 main ()
21068 {
21069 return dlopen ();
21070   ;
21071   return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21081 $as_echo "$ac_try_echo") >&5
21082   (eval "$ac_link") 2>conftest.er1
21083   ac_status=$?
21084   grep -v '^ *+' conftest.er1 >conftest.err
21085   rm -f conftest.er1
21086   cat conftest.err >&5
21087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); } && {
21089          test -z "$ac_c_werror_flag" ||
21090          test ! -s conftest.err
21091        } && test -s conftest$ac_exeext && {
21092          test "$cross_compiling" = yes ||
21093          $as_test_x conftest$ac_exeext
21094        }; then
21095   ac_cv_lib_dl_dlopen=yes
21096 else
21097   $as_echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100         ac_cv_lib_dl_dlopen=no
21101 fi
21102
21103 rm -rf conftest.dSYM
21104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21105       conftest$ac_exeext conftest.$ac_ext
21106 LIBS=$ac_check_lib_save_LIBS
21107 fi
21108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21109 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21110 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
21111   LIBS="-ldl $LIBS"
21112                                 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_DLOPEN 1
21114 _ACEOF
21115
21116 else
21117   enable_runtime_loading=no
21118 fi
21119
21120 fi
21121 done
21122
21123 fi
21124
21125 if test "x$enable_runtime_loading" == xno; then
21126     if test "x$enable_ssl" != xno; then
21127     if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21128   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21129 $as_echo_n "checking for openssl/ssl.h... " >&6; }
21130 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21131   $as_echo_n "(cached) " >&6
21132 fi
21133 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21134 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
21135 else
21136   # Is the header compilable?
21137 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
21138 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 $ac_includes_default
21146 #include <openssl/ssl.h>
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21155 $as_echo "$ac_try_echo") >&5
21156   (eval "$ac_compile") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } && {
21163          test -z "$ac_c_werror_flag" ||
21164          test ! -s conftest.err
21165        } && test -s conftest.$ac_objext; then
21166   ac_header_compiler=yes
21167 else
21168   $as_echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171         ac_header_compiler=no
21172 fi
21173
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21176 $as_echo "$ac_header_compiler" >&6; }
21177
21178 # Is the header present?
21179 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
21180 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 #include <openssl/ssl.h>
21188 _ACEOF
21189 if { (ac_try="$ac_cpp conftest.$ac_ext"
21190 case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21195 $as_echo "$ac_try_echo") >&5
21196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } >/dev/null && {
21203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204          test ! -s conftest.err
21205        }; then
21206   ac_header_preproc=yes
21207 else
21208   $as_echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211   ac_header_preproc=no
21212 fi
21213
21214 rm -f conftest.err conftest.$ac_ext
21215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216 $as_echo "$ac_header_preproc" >&6; }
21217
21218 # So?  What about this header?
21219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220   yes:no: )
21221     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21222 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
21224 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
21225     ac_header_preproc=yes
21226     ;;
21227   no:yes:* )
21228     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
21229 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
21230     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
21231 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
21232     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
21233 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
21234     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
21235 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21236     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
21237 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
21238     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
21239 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
21240     ( cat <<\_ASBOX
21241 ## ------------------------------------- ##
21242 ## Report this to markus@shellinabox.com ##
21243 ## ------------------------------------- ##
21244 _ASBOX
21245      ) | sed "s/^/$as_me: WARNING:     /" >&2
21246     ;;
21247 esac
21248 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21249 $as_echo_n "checking for openssl/ssl.h... " >&6; }
21250 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21251   $as_echo_n "(cached) " >&6
21252 else
21253   ac_cv_header_openssl_ssl_h=$ac_header_preproc
21254 fi
21255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21256 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
21257
21258 fi
21259 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
21260   LIBS="-lssl $LIBS"
21261 fi
21262
21263
21264   fi
21265
21266     if test "x$enable_pam" != xno; then
21267     if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
21268   { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
21269 $as_echo_n "checking for security/pam_appl.h... " >&6; }
21270 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
21271   $as_echo_n "(cached) " >&6
21272 fi
21273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
21274 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
21275 else
21276   # Is the header compilable?
21277 { $as_echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
21278 $as_echo_n "checking security/pam_appl.h usability... " >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 $ac_includes_default
21286 #include <security/pam_appl.h>
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21295 $as_echo "$ac_try_echo") >&5
21296   (eval "$ac_compile") 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } && {
21303          test -z "$ac_c_werror_flag" ||
21304          test ! -s conftest.err
21305        } && test -s conftest.$ac_objext; then
21306   ac_header_compiler=yes
21307 else
21308   $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311         ac_header_compiler=no
21312 fi
21313
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21316 $as_echo "$ac_header_compiler" >&6; }
21317
21318 # Is the header present?
21319 { $as_echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
21320 $as_echo_n "checking security/pam_appl.h presence... " >&6; }
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h.  */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h.  */
21327 #include <security/pam_appl.h>
21328 _ACEOF
21329 if { (ac_try="$ac_cpp conftest.$ac_ext"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21335 $as_echo "$ac_try_echo") >&5
21336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21337   ac_status=$?
21338   grep -v '^ *+' conftest.er1 >conftest.err
21339   rm -f conftest.er1
21340   cat conftest.err >&5
21341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); } >/dev/null && {
21343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21344          test ! -s conftest.err
21345        }; then
21346   ac_header_preproc=yes
21347 else
21348   $as_echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21350
21351   ac_header_preproc=no
21352 fi
21353
21354 rm -f conftest.err conftest.$ac_ext
21355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21356 $as_echo "$ac_header_preproc" >&6; }
21357
21358 # So?  What about this header?
21359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21360   yes:no: )
21361     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21362 $as_echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21363     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
21364 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
21365     ac_header_preproc=yes
21366     ;;
21367   no:yes:* )
21368     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
21369 $as_echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
21370     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
21371 $as_echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
21372     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
21373 $as_echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
21374     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
21375 $as_echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21376     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
21377 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
21378     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
21379 $as_echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
21380     ( cat <<\_ASBOX
21381 ## ------------------------------------- ##
21382 ## Report this to markus@shellinabox.com ##
21383 ## ------------------------------------- ##
21384 _ASBOX
21385      ) | sed "s/^/$as_me: WARNING:     /" >&2
21386     ;;
21387 esac
21388 { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
21389 $as_echo_n "checking for security/pam_appl.h... " >&6; }
21390 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
21391   $as_echo_n "(cached) " >&6
21392 else
21393   ac_cv_header_security_pam_appl_h=$ac_header_preproc
21394 fi
21395 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
21396 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
21397
21398 fi
21399 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then
21400   LIBS="-lpam $LIBS"
21401 fi
21402
21403
21404     if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
21405   { $as_echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
21406 $as_echo_n "checking for security/pam_misc.h... " >&6; }
21407 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
21408   $as_echo_n "(cached) " >&6
21409 fi
21410 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
21411 $as_echo "$ac_cv_header_security_pam_misc_h" >&6; }
21412 else
21413   # Is the header compilable?
21414 { $as_echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
21415 $as_echo_n "checking security/pam_misc.h usability... " >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 $ac_includes_default
21423 #include <security/pam_misc.h>
21424 _ACEOF
21425 rm -f conftest.$ac_objext
21426 if { (ac_try="$ac_compile"
21427 case "(($ac_try" in
21428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429   *) ac_try_echo=$ac_try;;
21430 esac
21431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21432 $as_echo "$ac_try_echo") >&5
21433   (eval "$ac_compile") 2>conftest.er1
21434   ac_status=$?
21435   grep -v '^ *+' conftest.er1 >conftest.err
21436   rm -f conftest.er1
21437   cat conftest.err >&5
21438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); } && {
21440          test -z "$ac_c_werror_flag" ||
21441          test ! -s conftest.err
21442        } && test -s conftest.$ac_objext; then
21443   ac_header_compiler=yes
21444 else
21445   $as_echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448         ac_header_compiler=no
21449 fi
21450
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21453 $as_echo "$ac_header_compiler" >&6; }
21454
21455 # Is the header present?
21456 { $as_echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
21457 $as_echo_n "checking security/pam_misc.h presence... " >&6; }
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h.  */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h.  */
21464 #include <security/pam_misc.h>
21465 _ACEOF
21466 if { (ac_try="$ac_cpp conftest.$ac_ext"
21467 case "(($ac_try" in
21468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469   *) ac_try_echo=$ac_try;;
21470 esac
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } >/dev/null && {
21480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21481          test ! -s conftest.err
21482        }; then
21483   ac_header_preproc=yes
21484 else
21485   $as_echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488   ac_header_preproc=no
21489 fi
21490
21491 rm -f conftest.err conftest.$ac_ext
21492 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 $as_echo "$ac_header_preproc" >&6; }
21494
21495 # So?  What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21497   yes:no: )
21498     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
21499 $as_echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&5
21501 $as_echo "$as_me: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&2;}
21502     ac_header_preproc=yes
21503     ;;
21504   no:yes:* )
21505     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
21506 $as_echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
21507     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h:     check for missing prerequisite headers?" >&5
21508 $as_echo "$as_me: WARNING: security/pam_misc.h:     check for missing prerequisite headers?" >&2;}
21509     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: see the Autoconf documentation" >&5
21510 $as_echo "$as_me: WARNING: security/pam_misc.h: see the Autoconf documentation" >&2;}
21511     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h:     section \"Present But Cannot Be Compiled\"" >&5
21512 $as_echo "$as_me: WARNING: security/pam_misc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21513     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
21514 $as_echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
21515     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&5
21516 $as_echo "$as_me: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&2;}
21517     ( cat <<\_ASBOX
21518 ## ------------------------------------- ##
21519 ## Report this to markus@shellinabox.com ##
21520 ## ------------------------------------- ##
21521 _ASBOX
21522      ) | sed "s/^/$as_me: WARNING:     /" >&2
21523     ;;
21524 esac
21525 { $as_echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
21526 $as_echo_n "checking for security/pam_misc.h... " >&6; }
21527 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
21528   $as_echo_n "(cached) " >&6
21529 else
21530   ac_cv_header_security_pam_misc_h=$ac_header_preproc
21531 fi
21532 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
21533 $as_echo "$ac_cv_header_security_pam_misc_h" >&6; }
21534
21535 fi
21536 if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then
21537   LIBS="-lpam_misc $LIBS"
21538 fi
21539
21540
21541   fi
21542 fi
21543
21544 ac_config_files="$ac_config_files Makefile"
21545
21546 cat >confcache <<\_ACEOF
21547 # This file is a shell script that caches the results of configure
21548 # tests run on this system so they can be shared between configure
21549 # scripts and configure runs, see configure's option --config-cache.
21550 # It is not useful on other systems.  If it contains results you don't
21551 # want to keep, you may remove or edit it.
21552 #
21553 # config.status only pays attention to the cache file if you give it
21554 # the --recheck option to rerun configure.
21555 #
21556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21558 # following values.
21559
21560 _ACEOF
21561
21562 # The following way of writing the cache mishandles newlines in values,
21563 # but we know of no workaround that is simple, portable, and efficient.
21564 # So, we kill variables containing newlines.
21565 # Ultrix sh set writes to stderr and can't be redirected directly,
21566 # and sets the high bit in the cache file unless we assign to the vars.
21567 (
21568   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21569     eval ac_val=\$$ac_var
21570     case $ac_val in #(
21571     *${as_nl}*)
21572       case $ac_var in #(
21573       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21575       esac
21576       case $ac_var in #(
21577       _ | IFS | as_nl) ;; #(
21578       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21579       *) $as_unset $ac_var ;;
21580       esac ;;
21581     esac
21582   done
21583
21584   (set) 2>&1 |
21585     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21586     *${as_nl}ac_space=\ *)
21587       # `set' does not quote correctly, so add quotes (double-quote
21588       # substitution turns \\\\ into \\, and sed turns \\ into \).
21589       sed -n \
21590         "s/'/'\\\\''/g;
21591           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21592       ;; #(
21593     *)
21594       # `set' quotes correctly as required by POSIX, so do not add quotes.
21595       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21596       ;;
21597     esac |
21598     sort
21599 ) |
21600   sed '
21601      /^ac_cv_env_/b end
21602      t clear
21603      :clear
21604      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21605      t end
21606      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21607      :end' >>confcache
21608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21609   if test -w "$cache_file"; then
21610     test "x$cache_file" != "x/dev/null" &&
21611       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21612 $as_echo "$as_me: updating cache $cache_file" >&6;}
21613     cat confcache >$cache_file
21614   else
21615     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21617   fi
21618 fi
21619 rm -f confcache
21620
21621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21622 # Let make expand exec_prefix.
21623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21624
21625 DEFS=-DHAVE_CONFIG_H
21626
21627 ac_libobjs=
21628 ac_ltlibobjs=
21629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21630   # 1. Remove the extension, and $U if already installed.
21631   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21632   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21633   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21634   #    will be set to the directory where LIBOBJS objects are built.
21635   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21636   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21637 done
21638 LIBOBJS=$ac_libobjs
21639
21640 LTLIBOBJS=$ac_ltlibobjs
21641
21642
21643 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21644   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21645 Usually this means the macro was only invoked conditionally." >&5
21646 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21647 Usually this means the macro was only invoked conditionally." >&2;}
21648    { (exit 1); exit 1; }; }
21649 fi
21650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21651   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21652 Usually this means the macro was only invoked conditionally." >&5
21653 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21654 Usually this means the macro was only invoked conditionally." >&2;}
21655    { (exit 1); exit 1; }; }
21656 fi
21657 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21658   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21659 Usually this means the macro was only invoked conditionally." >&5
21660 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21661 Usually this means the macro was only invoked conditionally." >&2;}
21662    { (exit 1); exit 1; }; }
21663 fi
21664
21665 : ${CONFIG_STATUS=./config.status}
21666 ac_write_fail=0
21667 ac_clean_files_save=$ac_clean_files
21668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21669 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21671 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21672 #! $SHELL
21673 # Generated by $as_me.
21674 # Run this file to recreate the current configuration.
21675 # Compiler output produced by configure, useful for debugging
21676 # configure, is in config.log if it exists.
21677
21678 debug=false
21679 ac_cs_recheck=false
21680 ac_cs_silent=false
21681 SHELL=\${CONFIG_SHELL-$SHELL}
21682 _ACEOF
21683
21684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21685 ## --------------------- ##
21686 ## M4sh Initialization.  ##
21687 ## --------------------- ##
21688
21689 # Be more Bourne compatible
21690 DUALCASE=1; export DUALCASE # for MKS sh
21691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21692   emulate sh
21693   NULLCMD=:
21694   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21695   # is contrary to our usage.  Disable this feature.
21696   alias -g '${1+"$@"}'='"$@"'
21697   setopt NO_GLOB_SUBST
21698 else
21699   case `(set -o) 2>/dev/null` in
21700   *posix*) set -o posix ;;
21701 esac
21702
21703 fi
21704
21705
21706
21707
21708 # PATH needs CR
21709 # Avoid depending upon Character Ranges.
21710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21713 as_cr_digits='0123456789'
21714 as_cr_alnum=$as_cr_Letters$as_cr_digits
21715
21716 as_nl='
21717 '
21718 export as_nl
21719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21723 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21724   as_echo='printf %s\n'
21725   as_echo_n='printf %s'
21726 else
21727   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21728     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21729     as_echo_n='/usr/ucb/echo -n'
21730   else
21731     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21732     as_echo_n_body='eval
21733       arg=$1;
21734       case $arg in
21735       *"$as_nl"*)
21736         expr "X$arg" : "X\\(.*\\)$as_nl";
21737         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21738       esac;
21739       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21740     '
21741     export as_echo_n_body
21742     as_echo_n='sh -c $as_echo_n_body as_echo'
21743   fi
21744   export as_echo_body
21745   as_echo='sh -c $as_echo_body as_echo'
21746 fi
21747
21748 # The user is always right.
21749 if test "${PATH_SEPARATOR+set}" != set; then
21750   PATH_SEPARATOR=:
21751   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21752     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21753       PATH_SEPARATOR=';'
21754   }
21755 fi
21756
21757 # Support unset when possible.
21758 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21759   as_unset=unset
21760 else
21761   as_unset=false
21762 fi
21763
21764
21765 # IFS
21766 # We need space, tab and new line, in precisely that order.  Quoting is
21767 # there to prevent editors from complaining about space-tab.
21768 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21769 # splitting by setting IFS to empty value.)
21770 IFS=" ""        $as_nl"
21771
21772 # Find who we are.  Look in the path if we contain no directory separator.
21773 case $0 in
21774   *[\\/]* ) as_myself=$0 ;;
21775   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21776 for as_dir in $PATH
21777 do
21778   IFS=$as_save_IFS
21779   test -z "$as_dir" && as_dir=.
21780   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21781 done
21782 IFS=$as_save_IFS
21783
21784      ;;
21785 esac
21786 # We did not find ourselves, most probably we were run as `sh COMMAND'
21787 # in which case we are not to be found in the path.
21788 if test "x$as_myself" = x; then
21789   as_myself=$0
21790 fi
21791 if test ! -f "$as_myself"; then
21792   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21793   { (exit 1); exit 1; }
21794 fi
21795
21796 # Work around bugs in pre-3.0 UWIN ksh.
21797 for as_var in ENV MAIL MAILPATH
21798 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21799 done
21800 PS1='$ '
21801 PS2='> '
21802 PS4='+ '
21803
21804 # NLS nuisances.
21805 LC_ALL=C
21806 export LC_ALL
21807 LANGUAGE=C
21808 export LANGUAGE
21809
21810 # Required to use basename.
21811 if expr a : '\(a\)' >/dev/null 2>&1 &&
21812    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21813   as_expr=expr
21814 else
21815   as_expr=false
21816 fi
21817
21818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21819   as_basename=basename
21820 else
21821   as_basename=false
21822 fi
21823
21824
21825 # Name of the executable.
21826 as_me=`$as_basename -- "$0" ||
21827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21828          X"$0" : 'X\(//\)$' \| \
21829          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21830 $as_echo X/"$0" |
21831     sed '/^.*\/\([^/][^/]*\)\/*$/{
21832             s//\1/
21833             q
21834           }
21835           /^X\/\(\/\/\)$/{
21836             s//\1/
21837             q
21838           }
21839           /^X\/\(\/\).*/{
21840             s//\1/
21841             q
21842           }
21843           s/.*/./; q'`
21844
21845 # CDPATH.
21846 $as_unset CDPATH
21847
21848
21849
21850   as_lineno_1=$LINENO
21851   as_lineno_2=$LINENO
21852   test "x$as_lineno_1" != "x$as_lineno_2" &&
21853   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21854
21855   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21856   # uniformly replaced by the line number.  The first 'sed' inserts a
21857   # line-number line after each line using $LINENO; the second 'sed'
21858   # does the real work.  The second script uses 'N' to pair each
21859   # line-number line with the line containing $LINENO, and appends
21860   # trailing '-' during substitution so that $LINENO is not a special
21861   # case at line end.
21862   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21863   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21864   # E. McMahon (1931-1989) for sed's syntax.  :-)
21865   sed -n '
21866     p
21867     /[$]LINENO/=
21868   ' <$as_myself |
21869     sed '
21870       s/[$]LINENO.*/&-/
21871       t lineno
21872       b
21873       :lineno
21874       N
21875       :loop
21876       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21877       t loop
21878       s/-\n.*//
21879     ' >$as_me.lineno &&
21880   chmod +x "$as_me.lineno" ||
21881     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21882    { (exit 1); exit 1; }; }
21883
21884   # Don't try to exec as it changes $[0], causing all sort of problems
21885   # (the dirname of $[0] is not the place where we might find the
21886   # original and so on.  Autoconf is especially sensitive to this).
21887   . "./$as_me.lineno"
21888   # Exit status is that of the last command.
21889   exit
21890 }
21891
21892
21893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21894   as_dirname=dirname
21895 else
21896   as_dirname=false
21897 fi
21898
21899 ECHO_C= ECHO_N= ECHO_T=
21900 case `echo -n x` in
21901 -n*)
21902   case `echo 'x\c'` in
21903   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21904   *)   ECHO_C='\c';;
21905   esac;;
21906 *)
21907   ECHO_N='-n';;
21908 esac
21909 if expr a : '\(a\)' >/dev/null 2>&1 &&
21910    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21911   as_expr=expr
21912 else
21913   as_expr=false
21914 fi
21915
21916 rm -f conf$$ conf$$.exe conf$$.file
21917 if test -d conf$$.dir; then
21918   rm -f conf$$.dir/conf$$.file
21919 else
21920   rm -f conf$$.dir
21921   mkdir conf$$.dir 2>/dev/null
21922 fi
21923 if (echo >conf$$.file) 2>/dev/null; then
21924   if ln -s conf$$.file conf$$ 2>/dev/null; then
21925     as_ln_s='ln -s'
21926     # ... but there are two gotchas:
21927     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21928     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21929     # In both cases, we have to default to `cp -p'.
21930     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21931       as_ln_s='cp -p'
21932   elif ln conf$$.file conf$$ 2>/dev/null; then
21933     as_ln_s=ln
21934   else
21935     as_ln_s='cp -p'
21936   fi
21937 else
21938   as_ln_s='cp -p'
21939 fi
21940 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21941 rmdir conf$$.dir 2>/dev/null
21942
21943 if mkdir -p . 2>/dev/null; then
21944   as_mkdir_p=:
21945 else
21946   test -d ./-p && rmdir ./-p
21947   as_mkdir_p=false
21948 fi
21949
21950 if test -x / >/dev/null 2>&1; then
21951   as_test_x='test -x'
21952 else
21953   if ls -dL / >/dev/null 2>&1; then
21954     as_ls_L_option=L
21955   else
21956     as_ls_L_option=
21957   fi
21958   as_test_x='
21959     eval sh -c '\''
21960       if test -d "$1"; then
21961         test -d "$1/.";
21962       else
21963         case $1 in
21964         -*)set "./$1";;
21965         esac;
21966         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21967         ???[sx]*):;;*)false;;esac;fi
21968     '\'' sh
21969   '
21970 fi
21971 as_executable_p=$as_test_x
21972
21973 # Sed expression to map a string onto a valid CPP name.
21974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21975
21976 # Sed expression to map a string onto a valid variable name.
21977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21978
21979
21980 exec 6>&1
21981
21982 # Save the log message, to keep $[0] and so on meaningful, and to
21983 # report actual input values of CONFIG_FILES etc. instead of their
21984 # values after options handling.
21985 ac_log="
21986 This file was extended by shellinabox $as_me 2.7, which was
21987 generated by GNU Autoconf 2.63.  Invocation command line was
21988
21989   CONFIG_FILES    = $CONFIG_FILES
21990   CONFIG_HEADERS  = $CONFIG_HEADERS
21991   CONFIG_LINKS    = $CONFIG_LINKS
21992   CONFIG_COMMANDS = $CONFIG_COMMANDS
21993   $ $0 $@
21994
21995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21996 "
21997
21998 _ACEOF
21999
22000 case $ac_config_files in *"
22001 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22002 esac
22003
22004 case $ac_config_headers in *"
22005 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22006 esac
22007
22008
22009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22010 # Files that config.status was made for.
22011 config_files="$ac_config_files"
22012 config_headers="$ac_config_headers"
22013 config_commands="$ac_config_commands"
22014
22015 _ACEOF
22016
22017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22018 ac_cs_usage="\
22019 \`$as_me' instantiates files from templates according to the
22020 current configuration.
22021
22022 Usage: $0 [OPTION]... [FILE]...
22023
22024   -h, --help       print this help, then exit
22025   -V, --version    print version number and configuration settings, then exit
22026   -q, --quiet, --silent
22027                    do not print progress messages
22028   -d, --debug      don't remove temporary files
22029       --recheck    update $as_me by reconfiguring in the same conditions
22030       --file=FILE[:TEMPLATE]
22031                    instantiate the configuration file FILE
22032       --header=FILE[:TEMPLATE]
22033                    instantiate the configuration header FILE
22034
22035 Configuration files:
22036 $config_files
22037
22038 Configuration headers:
22039 $config_headers
22040
22041 Configuration commands:
22042 $config_commands
22043
22044 Report bugs to <bug-autoconf@gnu.org>."
22045
22046 _ACEOF
22047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22048 ac_cs_version="\\
22049 shellinabox config.status 2.7
22050 configured by $0, generated by GNU Autoconf 2.63,
22051   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22052
22053 Copyright (C) 2008 Free Software Foundation, Inc.
22054 This config.status script is free software; the Free Software Foundation
22055 gives unlimited permission to copy, distribute and modify it."
22056
22057 ac_pwd='$ac_pwd'
22058 srcdir='$srcdir'
22059 INSTALL='$INSTALL'
22060 MKDIR_P='$MKDIR_P'
22061 AWK='$AWK'
22062 test -n "\$AWK" || AWK=awk
22063 _ACEOF
22064
22065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22066 # The default lists apply if the user does not specify any file.
22067 ac_need_defaults=:
22068 while test $# != 0
22069 do
22070   case $1 in
22071   --*=*)
22072     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22073     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22074     ac_shift=:
22075     ;;
22076   *)
22077     ac_option=$1
22078     ac_optarg=$2
22079     ac_shift=shift
22080     ;;
22081   esac
22082
22083   case $ac_option in
22084   # Handling of the options.
22085   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22086     ac_cs_recheck=: ;;
22087   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22088     $as_echo "$ac_cs_version"; exit ;;
22089   --debug | --debu | --deb | --de | --d | -d )
22090     debug=: ;;
22091   --file | --fil | --fi | --f )
22092     $ac_shift
22093     case $ac_optarg in
22094     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22095     esac
22096     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22097     ac_need_defaults=false;;
22098   --header | --heade | --head | --hea )
22099     $ac_shift
22100     case $ac_optarg in
22101     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22102     esac
22103     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22104     ac_need_defaults=false;;
22105   --he | --h)
22106     # Conflict between --help and --header
22107     { $as_echo "$as_me: error: ambiguous option: $1
22108 Try \`$0 --help' for more information." >&2
22109    { (exit 1); exit 1; }; };;
22110   --help | --hel | -h )
22111     $as_echo "$ac_cs_usage"; exit ;;
22112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22113   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22114     ac_cs_silent=: ;;
22115
22116   # This is an error.
22117   -*) { $as_echo "$as_me: error: unrecognized option: $1
22118 Try \`$0 --help' for more information." >&2
22119    { (exit 1); exit 1; }; } ;;
22120
22121   *) ac_config_targets="$ac_config_targets $1"
22122      ac_need_defaults=false ;;
22123
22124   esac
22125   shift
22126 done
22127
22128 ac_configure_extra_args=
22129
22130 if $ac_cs_silent; then
22131   exec 6>/dev/null
22132   ac_configure_extra_args="$ac_configure_extra_args --silent"
22133 fi
22134
22135 _ACEOF
22136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22137 if \$ac_cs_recheck; then
22138   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22139   shift
22140   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22141   CONFIG_SHELL='$SHELL'
22142   export CONFIG_SHELL
22143   exec "\$@"
22144 fi
22145
22146 _ACEOF
22147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22148 exec 5>>config.log
22149 {
22150   echo
22151   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22152 ## Running $as_me. ##
22153 _ASBOX
22154   $as_echo "$ac_log"
22155 } >&5
22156
22157 _ACEOF
22158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22159 #
22160 # INIT-COMMANDS
22161 #
22162 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22163
22164 _ACEOF
22165
22166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22167
22168 # Handling of arguments.
22169 for ac_config_target in $ac_config_targets
22170 do
22171   case $ac_config_target in
22172     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22173     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22174     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22175
22176   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22177 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22178    { (exit 1); exit 1; }; };;
22179   esac
22180 done
22181
22182
22183 # If the user did not use the arguments to specify the items to instantiate,
22184 # then the envvar interface is used.  Set only those that are not.
22185 # We use the long form for the default assignment because of an extremely
22186 # bizarre bug on SunOS 4.1.3.
22187 if $ac_need_defaults; then
22188   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22189   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22190   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22191 fi
22192
22193 # Have a temporary directory for convenience.  Make it in the build tree
22194 # simply because there is no reason against having it here, and in addition,
22195 # creating and moving files from /tmp can sometimes cause problems.
22196 # Hook for its removal unless debugging.
22197 # Note that there is a small window in which the directory will not be cleaned:
22198 # after its creation but before its name has been assigned to `$tmp'.
22199 $debug ||
22200 {
22201   tmp=
22202   trap 'exit_status=$?
22203   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22204 ' 0
22205   trap '{ (exit 1); exit 1; }' 1 2 13 15
22206 }
22207 # Create a (secure) tmp directory for tmp files.
22208
22209 {
22210   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22211   test -n "$tmp" && test -d "$tmp"
22212 }  ||
22213 {
22214   tmp=./conf$$-$RANDOM
22215   (umask 077 && mkdir "$tmp")
22216 } ||
22217 {
22218    $as_echo "$as_me: cannot create a temporary directory in ." >&2
22219    { (exit 1); exit 1; }
22220 }
22221
22222 # Set up the scripts for CONFIG_FILES section.
22223 # No need to generate them if there are no CONFIG_FILES.
22224 # This happens for instance with `./config.status config.h'.
22225 if test -n "$CONFIG_FILES"; then
22226
22227
22228 ac_cr='\r'
22229 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22230 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22231   ac_cs_awk_cr='\\r'
22232 else
22233   ac_cs_awk_cr=$ac_cr
22234 fi
22235
22236 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22237 _ACEOF
22238
22239
22240 {
22241   echo "cat >conf$$subs.awk <<_ACEOF" &&
22242   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22243   echo "_ACEOF"
22244 } >conf$$subs.sh ||
22245   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22246 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22247    { (exit 1); exit 1; }; }
22248 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22249 ac_delim='%!_!# '
22250 for ac_last_try in false false false false false :; do
22251   . ./conf$$subs.sh ||
22252     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22253 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22254    { (exit 1); exit 1; }; }
22255
22256   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22257   if test $ac_delim_n = $ac_delim_num; then
22258     break
22259   elif $ac_last_try; then
22260     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22261 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22262    { (exit 1); exit 1; }; }
22263   else
22264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22265   fi
22266 done
22267 rm -f conf$$subs.sh
22268
22269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22270 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22271 _ACEOF
22272 sed -n '
22273 h
22274 s/^/S["/; s/!.*/"]=/
22275 p
22276 g
22277 s/^[^!]*!//
22278 :repl
22279 t repl
22280 s/'"$ac_delim"'$//
22281 t delim
22282 :nl
22283 h
22284 s/\(.\{148\}\).*/\1/
22285 t more1
22286 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22287 p
22288 n
22289 b repl
22290 :more1
22291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22292 p
22293 g
22294 s/.\{148\}//
22295 t nl
22296 :delim
22297 h
22298 s/\(.\{148\}\).*/\1/
22299 t more2
22300 s/["\\]/\\&/g; s/^/"/; s/$/"/
22301 p
22302 b
22303 :more2
22304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22305 p
22306 g
22307 s/.\{148\}//
22308 t delim
22309 ' <conf$$subs.awk | sed '
22310 /^[^""]/{
22311   N
22312   s/\n//
22313 }
22314 ' >>$CONFIG_STATUS || ac_write_fail=1
22315 rm -f conf$$subs.awk
22316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22317 _ACAWK
22318 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22319   for (key in S) S_is_set[key] = 1
22320   FS = "\a"
22321
22322 }
22323 {
22324   line = $ 0
22325   nfields = split(line, field, "@")
22326   substed = 0
22327   len = length(field[1])
22328   for (i = 2; i < nfields; i++) {
22329     key = field[i]
22330     keylen = length(key)
22331     if (S_is_set[key]) {
22332       value = S[key]
22333       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22334       len += length(value) + length(field[++i])
22335       substed = 1
22336     } else
22337       len += 1 + keylen
22338   }
22339
22340   print line
22341 }
22342
22343 _ACAWK
22344 _ACEOF
22345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22347   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22348 else
22349   cat
22350 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22351   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22352 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22353    { (exit 1); exit 1; }; }
22354 _ACEOF
22355
22356 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22357 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22358 # trailing colons and then remove the whole line if VPATH becomes empty
22359 # (actually we leave an empty line to preserve line numbers).
22360 if test "x$srcdir" = x.; then
22361   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22362 s/:*\$(srcdir):*/:/
22363 s/:*\${srcdir}:*/:/
22364 s/:*@srcdir@:*/:/
22365 s/^\([^=]*=[     ]*\):*/\1/
22366 s/:*$//
22367 s/^[^=]*=[       ]*$//
22368 }'
22369 fi
22370
22371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22372 fi # test -n "$CONFIG_FILES"
22373
22374 # Set up the scripts for CONFIG_HEADERS section.
22375 # No need to generate them if there are no CONFIG_HEADERS.
22376 # This happens for instance with `./config.status Makefile'.
22377 if test -n "$CONFIG_HEADERS"; then
22378 cat >"$tmp/defines.awk" <<\_ACAWK ||
22379 BEGIN {
22380 _ACEOF
22381
22382 # Transform confdefs.h into an awk script `defines.awk', embedded as
22383 # here-document in config.status, that substitutes the proper values into
22384 # config.h.in to produce config.h.
22385
22386 # Create a delimiter string that does not exist in confdefs.h, to ease
22387 # handling of long lines.
22388 ac_delim='%!_!# '
22389 for ac_last_try in false false :; do
22390   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22391   if test -z "$ac_t"; then
22392     break
22393   elif $ac_last_try; then
22394     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22395 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22396    { (exit 1); exit 1; }; }
22397   else
22398     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22399   fi
22400 done
22401
22402 # For the awk script, D is an array of macro values keyed by name,
22403 # likewise P contains macro parameters if any.  Preserve backslash
22404 # newline sequences.
22405
22406 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22407 sed -n '
22408 s/.\{148\}/&'"$ac_delim"'/g
22409 t rset
22410 :rset
22411 s/^[     ]*#[    ]*define[       ][      ]*/ /
22412 t def
22413 d
22414 :def
22415 s/\\$//
22416 t bsnl
22417 s/["\\]/\\&/g
22418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22419 D["\1"]=" \3"/p
22420 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22421 d
22422 :bsnl
22423 s/["\\]/\\&/g
22424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22425 D["\1"]=" \3\\\\\\n"\\/p
22426 t cont
22427 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22428 t cont
22429 d
22430 :cont
22431 n
22432 s/.\{148\}/&'"$ac_delim"'/g
22433 t clear
22434 :clear
22435 s/\\$//
22436 t bsnlc
22437 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22438 d
22439 :bsnlc
22440 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22441 b cont
22442 ' <confdefs.h | sed '
22443 s/'"$ac_delim"'/"\\\
22444 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22445
22446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22447   for (key in D) D_is_set[key] = 1
22448   FS = "\a"
22449 }
22450 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22451   line = \$ 0
22452   split(line, arg, " ")
22453   if (arg[1] == "#") {
22454     defundef = arg[2]
22455     mac1 = arg[3]
22456   } else {
22457     defundef = substr(arg[1], 2)
22458     mac1 = arg[2]
22459   }
22460   split(mac1, mac2, "(") #)
22461   macro = mac2[1]
22462   prefix = substr(line, 1, index(line, defundef) - 1)
22463   if (D_is_set[macro]) {
22464     # Preserve the white space surrounding the "#".
22465     print prefix "define", macro P[macro] D[macro]
22466     next
22467   } else {
22468     # Replace #undef with comments.  This is necessary, for example,
22469     # in the case of _POSIX_SOURCE, which is predefined and required
22470     # on some systems where configure will not decide to define it.
22471     if (defundef == "undef") {
22472       print "/*", prefix defundef, macro, "*/"
22473       next
22474     }
22475   }
22476 }
22477 { print }
22478 _ACAWK
22479 _ACEOF
22480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22481   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22482 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22483    { (exit 1); exit 1; }; }
22484 fi # test -n "$CONFIG_HEADERS"
22485
22486
22487 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22488 shift
22489 for ac_tag
22490 do
22491   case $ac_tag in
22492   :[FHLC]) ac_mode=$ac_tag; continue;;
22493   esac
22494   case $ac_mode$ac_tag in
22495   :[FHL]*:*);;
22496   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22497 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22498    { (exit 1); exit 1; }; };;
22499   :[FH]-) ac_tag=-:-;;
22500   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22501   esac
22502   ac_save_IFS=$IFS
22503   IFS=:
22504   set x $ac_tag
22505   IFS=$ac_save_IFS
22506   shift
22507   ac_file=$1
22508   shift
22509
22510   case $ac_mode in
22511   :L) ac_source=$1;;
22512   :[FH])
22513     ac_file_inputs=
22514     for ac_f
22515     do
22516       case $ac_f in
22517       -) ac_f="$tmp/stdin";;
22518       *) # Look for the file first in the build tree, then in the source tree
22519          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22520          # because $ac_f cannot contain `:'.
22521          test -f "$ac_f" ||
22522            case $ac_f in
22523            [\\/$]*) false;;
22524            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22525            esac ||
22526            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22527 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22528    { (exit 1); exit 1; }; };;
22529       esac
22530       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22531       ac_file_inputs="$ac_file_inputs '$ac_f'"
22532     done
22533
22534     # Let's still pretend it is `configure' which instantiates (i.e., don't
22535     # use $as_me), people would be surprised to read:
22536     #    /* config.h.  Generated by config.status.  */
22537     configure_input='Generated from '`
22538           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22539         `' by configure.'
22540     if test x"$ac_file" != x-; then
22541       configure_input="$ac_file.  $configure_input"
22542       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22543 $as_echo "$as_me: creating $ac_file" >&6;}
22544     fi
22545     # Neutralize special characters interpreted by sed in replacement strings.
22546     case $configure_input in #(
22547     *\&* | *\|* | *\\* )
22548        ac_sed_conf_input=`$as_echo "$configure_input" |
22549        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22550     *) ac_sed_conf_input=$configure_input;;
22551     esac
22552
22553     case $ac_tag in
22554     *:-:* | *:-) cat >"$tmp/stdin" \
22555       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22556 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22557    { (exit 1); exit 1; }; } ;;
22558     esac
22559     ;;
22560   esac
22561
22562   ac_dir=`$as_dirname -- "$ac_file" ||
22563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22564          X"$ac_file" : 'X\(//\)[^/]' \| \
22565          X"$ac_file" : 'X\(//\)$' \| \
22566          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22567 $as_echo X"$ac_file" |
22568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22569             s//\1/
22570             q
22571           }
22572           /^X\(\/\/\)[^/].*/{
22573             s//\1/
22574             q
22575           }
22576           /^X\(\/\/\)$/{
22577             s//\1/
22578             q
22579           }
22580           /^X\(\/\).*/{
22581             s//\1/
22582             q
22583           }
22584           s/.*/./; q'`
22585   { as_dir="$ac_dir"
22586   case $as_dir in #(
22587   -*) as_dir=./$as_dir;;
22588   esac
22589   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22590     as_dirs=
22591     while :; do
22592       case $as_dir in #(
22593       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22594       *) as_qdir=$as_dir;;
22595       esac
22596       as_dirs="'$as_qdir' $as_dirs"
22597       as_dir=`$as_dirname -- "$as_dir" ||
22598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599          X"$as_dir" : 'X\(//\)[^/]' \| \
22600          X"$as_dir" : 'X\(//\)$' \| \
22601          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22602 $as_echo X"$as_dir" |
22603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22604             s//\1/
22605             q
22606           }
22607           /^X\(\/\/\)[^/].*/{
22608             s//\1/
22609             q
22610           }
22611           /^X\(\/\/\)$/{
22612             s//\1/
22613             q
22614           }
22615           /^X\(\/\).*/{
22616             s//\1/
22617             q
22618           }
22619           s/.*/./; q'`
22620       test -d "$as_dir" && break
22621     done
22622     test -z "$as_dirs" || eval "mkdir $as_dirs"
22623   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22624 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22625    { (exit 1); exit 1; }; }; }
22626   ac_builddir=.
22627
22628 case "$ac_dir" in
22629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22630 *)
22631   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22632   # A ".." for each directory in $ac_dir_suffix.
22633   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22634   case $ac_top_builddir_sub in
22635   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22636   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22637   esac ;;
22638 esac
22639 ac_abs_top_builddir=$ac_pwd
22640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22641 # for backward compatibility:
22642 ac_top_builddir=$ac_top_build_prefix
22643
22644 case $srcdir in
22645   .)  # We are building in place.
22646     ac_srcdir=.
22647     ac_top_srcdir=$ac_top_builddir_sub
22648     ac_abs_top_srcdir=$ac_pwd ;;
22649   [\\/]* | ?:[\\/]* )  # Absolute name.
22650     ac_srcdir=$srcdir$ac_dir_suffix;
22651     ac_top_srcdir=$srcdir
22652     ac_abs_top_srcdir=$srcdir ;;
22653   *) # Relative name.
22654     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22655     ac_top_srcdir=$ac_top_build_prefix$srcdir
22656     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22657 esac
22658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22659
22660
22661   case $ac_mode in
22662   :F)
22663   #
22664   # CONFIG_FILE
22665   #
22666
22667   case $INSTALL in
22668   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22669   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22670   esac
22671   ac_MKDIR_P=$MKDIR_P
22672   case $MKDIR_P in
22673   [\\/$]* | ?:[\\/]* ) ;;
22674   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22675   esac
22676 _ACEOF
22677
22678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22679 # If the template does not know about datarootdir, expand it.
22680 # FIXME: This hack should be removed a few years after 2.60.
22681 ac_datarootdir_hack=; ac_datarootdir_seen=
22682
22683 ac_sed_dataroot='
22684 /datarootdir/ {
22685   p
22686   q
22687 }
22688 /@datadir@/p
22689 /@docdir@/p
22690 /@infodir@/p
22691 /@localedir@/p
22692 /@mandir@/p
22693 '
22694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22695 *datarootdir*) ac_datarootdir_seen=yes;;
22696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22697   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22699 _ACEOF
22700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22701   ac_datarootdir_hack='
22702   s&@datadir@&$datadir&g
22703   s&@docdir@&$docdir&g
22704   s&@infodir@&$infodir&g
22705   s&@localedir@&$localedir&g
22706   s&@mandir@&$mandir&g
22707     s&\\\${datarootdir}&$datarootdir&g' ;;
22708 esac
22709 _ACEOF
22710
22711 # Neutralize VPATH when `$srcdir' = `.'.
22712 # Shell code in configure.ac might set extrasub.
22713 # FIXME: do we really want to maintain this feature?
22714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22715 ac_sed_extra="$ac_vpsub
22716 $extrasub
22717 _ACEOF
22718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22719 :t
22720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22721 s|@configure_input@|$ac_sed_conf_input|;t t
22722 s&@top_builddir@&$ac_top_builddir_sub&;t t
22723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22724 s&@srcdir@&$ac_srcdir&;t t
22725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22726 s&@top_srcdir@&$ac_top_srcdir&;t t
22727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22728 s&@builddir@&$ac_builddir&;t t
22729 s&@abs_builddir@&$ac_abs_builddir&;t t
22730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22731 s&@INSTALL@&$ac_INSTALL&;t t
22732 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22733 $ac_datarootdir_hack
22734 "
22735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22736   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22738    { (exit 1); exit 1; }; }
22739
22740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22741   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22742   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22743   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22744 which seems to be undefined.  Please make sure it is defined." >&5
22745 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22746 which seems to be undefined.  Please make sure it is defined." >&2;}
22747
22748   rm -f "$tmp/stdin"
22749   case $ac_file in
22750   -) cat "$tmp/out" && rm -f "$tmp/out";;
22751   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22752   esac \
22753   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22754 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22755    { (exit 1); exit 1; }; }
22756  ;;
22757   :H)
22758   #
22759   # CONFIG_HEADER
22760   #
22761   if test x"$ac_file" != x-; then
22762     {
22763       $as_echo "/* $configure_input  */" \
22764       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22765     } >"$tmp/config.h" \
22766       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22767 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22768    { (exit 1); exit 1; }; }
22769     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22770       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22771 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22772     else
22773       rm -f "$ac_file"
22774       mv "$tmp/config.h" "$ac_file" \
22775         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22776 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22777    { (exit 1); exit 1; }; }
22778     fi
22779   else
22780     $as_echo "/* $configure_input  */" \
22781       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22782       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22783 $as_echo "$as_me: error: could not create -" >&2;}
22784    { (exit 1); exit 1; }; }
22785   fi
22786 # Compute "$ac_file"'s index in $config_headers.
22787 _am_arg="$ac_file"
22788 _am_stamp_count=1
22789 for _am_header in $config_headers :; do
22790   case $_am_header in
22791     $_am_arg | $_am_arg:* )
22792       break ;;
22793     * )
22794       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22795   esac
22796 done
22797 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22798 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22799          X"$_am_arg" : 'X\(//\)[^/]' \| \
22800          X"$_am_arg" : 'X\(//\)$' \| \
22801          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22802 $as_echo X"$_am_arg" |
22803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22804             s//\1/
22805             q
22806           }
22807           /^X\(\/\/\)[^/].*/{
22808             s//\1/
22809             q
22810           }
22811           /^X\(\/\/\)$/{
22812             s//\1/
22813             q
22814           }
22815           /^X\(\/\).*/{
22816             s//\1/
22817             q
22818           }
22819           s/.*/./; q'`/stamp-h$_am_stamp_count
22820  ;;
22821
22822   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22823 $as_echo "$as_me: executing $ac_file commands" >&6;}
22824  ;;
22825   esac
22826
22827
22828   case $ac_file$ac_mode in
22829     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22830   # Strip MF so we end up with the name of the file.
22831   mf=`echo "$mf" | sed -e 's/:.*$//'`
22832   # Check whether this is an Automake generated Makefile or not.
22833   # We used to match only the files named `Makefile.in', but
22834   # some people rename them; so instead we look at the file content.
22835   # Grep'ing the first line is not enough: some people post-process
22836   # each Makefile.in and add a new line on top of each file to say so.
22837   # Grep'ing the whole file is not good either: AIX grep has a line
22838   # limit of 2048, but all sed's we know have understand at least 4000.
22839   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22840     dirpart=`$as_dirname -- "$mf" ||
22841 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22842          X"$mf" : 'X\(//\)[^/]' \| \
22843          X"$mf" : 'X\(//\)$' \| \
22844          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22845 $as_echo X"$mf" |
22846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22847             s//\1/
22848             q
22849           }
22850           /^X\(\/\/\)[^/].*/{
22851             s//\1/
22852             q
22853           }
22854           /^X\(\/\/\)$/{
22855             s//\1/
22856             q
22857           }
22858           /^X\(\/\).*/{
22859             s//\1/
22860             q
22861           }
22862           s/.*/./; q'`
22863   else
22864     continue
22865   fi
22866   # Extract the definition of DEPDIR, am__include, and am__quote
22867   # from the Makefile without running `make'.
22868   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22869   test -z "$DEPDIR" && continue
22870   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22871   test -z "am__include" && continue
22872   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22873   # When using ansi2knr, U may be empty or an underscore; expand it
22874   U=`sed -n 's/^U = //p' < "$mf"`
22875   # Find all dependency output files, they are included files with
22876   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22877   # simplest approach to changing $(DEPDIR) to its actual value in the
22878   # expansion.
22879   for file in `sed -n "
22880     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22881        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22882     # Make sure the directory exists.
22883     test -f "$dirpart/$file" && continue
22884     fdir=`$as_dirname -- "$file" ||
22885 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22886          X"$file" : 'X\(//\)[^/]' \| \
22887          X"$file" : 'X\(//\)$' \| \
22888          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22889 $as_echo X"$file" |
22890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22891             s//\1/
22892             q
22893           }
22894           /^X\(\/\/\)[^/].*/{
22895             s//\1/
22896             q
22897           }
22898           /^X\(\/\/\)$/{
22899             s//\1/
22900             q
22901           }
22902           /^X\(\/\).*/{
22903             s//\1/
22904             q
22905           }
22906           s/.*/./; q'`
22907     { as_dir=$dirpart/$fdir
22908   case $as_dir in #(
22909   -*) as_dir=./$as_dir;;
22910   esac
22911   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22912     as_dirs=
22913     while :; do
22914       case $as_dir in #(
22915       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22916       *) as_qdir=$as_dir;;
22917       esac
22918       as_dirs="'$as_qdir' $as_dirs"
22919       as_dir=`$as_dirname -- "$as_dir" ||
22920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22921          X"$as_dir" : 'X\(//\)[^/]' \| \
22922          X"$as_dir" : 'X\(//\)$' \| \
22923          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22924 $as_echo X"$as_dir" |
22925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22926             s//\1/
22927             q
22928           }
22929           /^X\(\/\/\)[^/].*/{
22930             s//\1/
22931             q
22932           }
22933           /^X\(\/\/\)$/{
22934             s//\1/
22935             q
22936           }
22937           /^X\(\/\).*/{
22938             s//\1/
22939             q
22940           }
22941           s/.*/./; q'`
22942       test -d "$as_dir" && break
22943     done
22944     test -z "$as_dirs" || eval "mkdir $as_dirs"
22945   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22946 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22947    { (exit 1); exit 1; }; }; }
22948     # echo "creating $dirpart/$file"
22949     echo '# dummy' > "$dirpart/$file"
22950   done
22951 done
22952  ;;
22953
22954   esac
22955 done # for ac_tag
22956
22957
22958 { (exit 0); exit 0; }
22959 _ACEOF
22960 chmod +x $CONFIG_STATUS
22961 ac_clean_files=$ac_clean_files_save
22962
22963 test $ac_write_fail = 0 ||
22964   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22965 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22966    { (exit 1); exit 1; }; }
22967
22968
22969 # configure is writing to config.log, and then calls config.status.
22970 # config.status does its own redirection, appending to config.log.
22971 # Unfortunately, on DOS this fails, as config.log is still kept open
22972 # by configure, so config.status won't be able to write to it; its
22973 # output is simply discarded.  So we exec the FD to /dev/null,
22974 # effectively closing config.log, so it can be properly (re)opened and
22975 # appended to by config.status.  When coming back to configure, we
22976 # need to make the FD available again.
22977 if test "$no_create" != yes; then
22978   ac_cs_success=:
22979   ac_config_status_args=
22980   test "$silent" = yes &&
22981     ac_config_status_args="$ac_config_status_args --quiet"
22982   exec 5>/dev/null
22983   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22984   exec 5>>config.log
22985   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22986   # would make configure fail if this is the last instruction.
22987   $ac_cs_success || { (exit 1); exit 1; }
22988 fi
22989 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22990   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22991 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22992 fi
22993
This page took 2.318504 seconds and 5 git commands to generate.