OSDN Git Service

add test scripts
[ultramonkey-l7/ultramonkey-l7-v3.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 echo=${ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $echo works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<EOF
604 $*
605 EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619        echo_test_string=`eval $cmd` &&
620        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621     then
622       break
623     fi
624   done
625 fi
626
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629    test "X$echo_testing_string" = "X$echo_test_string"; then
630   :
631 else
632   # The Solaris, AIX, and Digital Unix default echo programs unquote
633   # backslashes.  This makes it impossible to quote backslashes using
634   #   echo "$something" | sed 's/\\/\\\\/g'
635   #
636   # So, first we look for a working echo in the user's PATH.
637
638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639   for dir in $PATH /usr/ucb; do
640     IFS="$lt_save_ifs"
641     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644        test "X$echo_testing_string" = "X$echo_test_string"; then
645       echo="$dir/echo"
646       break
647     fi
648   done
649   IFS="$lt_save_ifs"
650
651   if test "X$echo" = Xecho; then
652     # We didn't find a better echo, so look for alternatives.
653     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655        test "X$echo_testing_string" = "X$echo_test_string"; then
656       # This shell has a builtin print -r that does the trick.
657       echo='print -r'
658     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659          test "X$CONFIG_SHELL" != X/bin/ksh; then
660       # If we have ksh, try running configure again with it.
661       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662       export ORIGINAL_CONFIG_SHELL
663       CONFIG_SHELL=/bin/ksh
664       export CONFIG_SHELL
665       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666     else
667       # Try using printf.
668       echo='printf %s\n'
669       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671          test "X$echo_testing_string" = "X$echo_test_string"; then
672         # Cool, printf works
673         :
674       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675            test "X$echo_testing_string" = 'X\t' &&
676            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677            test "X$echo_testing_string" = "X$echo_test_string"; then
678         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679         export CONFIG_SHELL
680         SHELL="$CONFIG_SHELL"
681         export SHELL
682         echo="$CONFIG_SHELL $0 --fallback-echo"
683       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684            test "X$echo_testing_string" = 'X\t' &&
685            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686            test "X$echo_testing_string" = "X$echo_test_string"; then
687         echo="$CONFIG_SHELL $0 --fallback-echo"
688       else
689         # maybe with a smaller string...
690         prev=:
691
692         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694           then
695             break
696           fi
697           prev="$cmd"
698         done
699
700         if test "$prev" != 'sed 50q "$0"'; then
701           echo_test_string=`eval $prev`
702           export echo_test_string
703           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704         else
705           # Oops.  We lost completely, so just stick with echo.
706           echo=echo
707         fi
708       fi
709     fi
710   fi
711 fi
712 fi
713
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
716 ECHO=$echo
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719 fi
720
721
722
723
724 tagnames=${tagnames+${tagnames},}CXX
725
726 tagnames=${tagnames+${tagnames},}F77
727
728 exec 7<&0 </dev/null 6>&1
729
730 # Name of the host.
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
735 #
736 # Initializations.
737 #
738 ac_default_prefix=/usr/local
739 ac_clean_files=
740 ac_config_libobj_dir=.
741 LIBOBJS=
742 cross_compiling=no
743 subdirs=
744 MFLAGS=
745 MAKEFLAGS=
746 SHELL=${CONFIG_SHELL-/bin/sh}
747
748 # Identity of this package.
749 PACKAGE_NAME=
750 PACKAGE_TARNAME=
751 PACKAGE_VERSION=
752 PACKAGE_STRING=
753 PACKAGE_BUGREPORT=
754
755 ac_unique_file="l7vsd"
756 ac_unique_file="config.h.in"
757 # Factoring default headers for most tests.
758 ac_includes_default="\
759 #include <stdio.h>
760 #ifdef HAVE_SYS_TYPES_H
761 # include <sys/types.h>
762 #endif
763 #ifdef HAVE_SYS_STAT_H
764 # include <sys/stat.h>
765 #endif
766 #ifdef STDC_HEADERS
767 # include <stdlib.h>
768 # include <stddef.h>
769 #else
770 # ifdef HAVE_STDLIB_H
771 #  include <stdlib.h>
772 # endif
773 #endif
774 #ifdef HAVE_STRING_H
775 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 #  include <memory.h>
777 # endif
778 # include <string.h>
779 #endif
780 #ifdef HAVE_STRINGS_H
781 # include <strings.h>
782 #endif
783 #ifdef HAVE_INTTYPES_H
784 # include <inttypes.h>
785 #endif
786 #ifdef HAVE_STDINT_H
787 # include <stdint.h>
788 #endif
789 #ifdef HAVE_UNISTD_H
790 # include <unistd.h>
791 #endif"
792
793 ac_header_list=
794 ac_func_list=
795 ac_subst_vars='LTLIBOBJS
796 ultramonkeyl7_version
797 snmpagent_libs
798 MANDIR
799 l7vs_config
800 l7vs_max_buffer_size
801 l7vs_moddir
802 l7vsadm_sockdir
803 LIBOBJS
804 LIBTOOL
805 ac_ct_F77
806 FFLAGS
807 F77
808 CXXCPP
809 CPP
810 RANLIB
811 AR
812 ECHO
813 LN_S
814 EGREP
815 GREP
816 SED
817 am__fastdepCC_FALSE
818 am__fastdepCC_TRUE
819 CCDEPMODE
820 ac_ct_CC
821 CFLAGS
822 CC
823 host_os
824 host_vendor
825 host_cpu
826 host
827 build_os
828 build_vendor
829 build_cpu
830 build
831 am__fastdepCXX_FALSE
832 am__fastdepCXX_TRUE
833 CXXDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CXX
843 CPPFLAGS
844 LDFLAGS
845 CXXFLAGS
846 CXX
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 INSTALL_DATA
866 INSTALL_SCRIPT
867 INSTALL_PROGRAM
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 enable_dependency_tracking
909 enable_shared
910 enable_static
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 with_pic
915 with_tags
916 with_l7vs_moddir
917 with_l7vsadm_sockdir
918 with_l7vs_buffer_size
919 with_l7vs_config_dir
920 '
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CXX
925 CXXFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CCC
930 CC
931 CFLAGS
932 CPP
933 CXXCPP
934 F77
935 FFLAGS'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *)    ac_optarg=yes ;;
1000   esac
1001
1002   # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004   case $ac_dashdash$ac_option in
1005   --)
1006     ac_dashdash=yes ;;
1007
1008   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009     ac_prev=bindir ;;
1010   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011     bindir=$ac_optarg ;;
1012
1013   -build | --build | --buil | --bui | --bu)
1014     ac_prev=build_alias ;;
1015   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016     build_alias=$ac_optarg ;;
1017
1018   -cache-file | --cache-file | --cache-fil | --cache-fi \
1019   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020     ac_prev=cache_file ;;
1021   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023     cache_file=$ac_optarg ;;
1024
1025   --config-cache | -C)
1026     cache_file=config.cache ;;
1027
1028   -datadir | --datadir | --datadi | --datad)
1029     ac_prev=datadir ;;
1030   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031     datadir=$ac_optarg ;;
1032
1033   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034   | --dataroo | --dataro | --datar)
1035     ac_prev=datarootdir ;;
1036   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038     datarootdir=$ac_optarg ;;
1039
1040   -disable-* | --disable-*)
1041     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1045    { (exit 1); exit 1; }; }
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1277    { (exit 1); exit 1; }; }
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1294    { (exit 1); exit 1; }; }
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356   case $enable_option_checking in
1357     no) ;;
1358     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1359    { (exit 1); exit 1; }; } ;;
1360     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361   esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366                 datadir sysconfdir sharedstatedir localstatedir includedir \
1367                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368                 libdir localedir mandir
1369 do
1370   eval ac_val=\$$ac_var
1371   # Remove trailing slashes.
1372   case $ac_val in
1373     */ )
1374       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375       eval $ac_var=\$ac_val;;
1376   esac
1377   # Be sure to have absolute directory names.
1378   case $ac_val in
1379     [\\/$]* | ?:[\\/]* )  continue;;
1380     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381   esac
1382   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1383    { (exit 1); exit 1; }; }
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395   if test "x$build_alias" = x; then
1396     cross_compiling=maybe
1397     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398     If a cross compiler is detected then cross compile mode will be used." >&2
1399   elif test "x$build_alias" != "x$host_alias"; then
1400     cross_compiling=yes
1401   fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1414    { (exit 1); exit 1; }; }
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1417    { (exit 1); exit 1; }; }
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422   ac_srcdir_defaulted=yes
1423   # Try the directory containing this script, then the parent directory.
1424   ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426          X"$as_myself" : 'X\(//\)[^/]' \| \
1427          X"$as_myself" : 'X\(//\)$' \| \
1428          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)[^/].*/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\).*/{
1443             s//\1/
1444             q
1445           }
1446           s/.*/./; q'`
1447   srcdir=$ac_confdir
1448   if test ! -r "$srcdir/$ac_unique_file"; then
1449     srcdir=..
1450   fi
1451 else
1452   ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1457    { (exit 1); exit 1; }; }
1458 fi
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1462    { (exit 1); exit 1; }; }
1463         pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466   srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_env_${ac_var}_value=\$${ac_var}
1477   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485   # Omit some internal or obsolete options to make the list less imposing.
1486   # This message is too long to be a string in the A/UX 3.1 sh.
1487   cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498   -h, --help              display this help and exit
1499       --help=short        display options specific to this package
1500       --help=recursive    display the short help of all the included packages
1501   -V, --version           display version information and exit
1502   -q, --quiet, --silent   do not print \`checking...' messages
1503       --cache-file=FILE   cache test results in FILE [disabled]
1504   -C, --config-cache      alias for \`--cache-file=config.cache'
1505   -n, --no-create         do not create output files
1506       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509   --prefix=PREFIX         install architecture-independent files in PREFIX
1510                           [$ac_default_prefix]
1511   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                           [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522   --bindir=DIR            user executables [EPREFIX/bin]
1523   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524   --libexecdir=DIR        program executables [EPREFIX/libexec]
1525   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528   --libdir=DIR            object code libraries [EPREFIX/lib]
1529   --includedir=DIR        C header files [PREFIX/include]
1530   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533   --infodir=DIR           info documentation [DATAROOTDIR/info]
1534   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535   --mandir=DIR            man documentation [DATAROOTDIR/man]
1536   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1537   --htmldir=DIR           html documentation [DOCDIR]
1538   --dvidir=DIR            dvi documentation [DOCDIR]
1539   --pdfdir=DIR            pdf documentation [DOCDIR]
1540   --psdir=DIR             ps documentation [DOCDIR]
1541 _ACEOF
1542
1543   cat <<\_ACEOF
1544
1545 Program names:
1546   --program-prefix=PREFIX            prepend PREFIX to installed program names
1547   --program-suffix=SUFFIX            append SUFFIX to installed program names
1548   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550 System types:
1551   --build=BUILD     configure for building on BUILD [guessed]
1552   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557
1558   cat <<\_ACEOF
1559
1560 Optional Features:
1561   --disable-option-checking  ignore unrecognized --enable/--with options
1562   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1563   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1564   --disable-dependency-tracking  speeds up one-time build
1565   --enable-dependency-tracking   do not reject slow dependency extractors
1566   --enable-shared[=PKGS]  build shared libraries [default=yes]
1567   --enable-static[=PKGS]  build static libraries [default=yes]
1568   --enable-fast-install[=PKGS]
1569                           optimize for fast installation [default=yes]
1570   --disable-libtool-lock  avoid locking (might break parallel builds)
1571
1572 Optional Packages:
1573   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1574   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1575   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576   --with-pic              try to use only PIC/non-PIC objects [default=use
1577                           both]
1578   --with-tags[=TAGS]      include additional configurations [automatic]
1579         --with-l7vs-moddir=DIR  l7vs module is to be installed in DIR.
1580                                                                 default=LIBDIR/l7vs
1581         --with-l7vsadm-sockdir=DIR      l7vsadm sockfile PATH.
1582                                                                         default=/var/run/l7vs
1583         --with-l7vs-buffer-size=NUM     l7vsd using heap buffer size.
1584                                                                         default=4096
1585         --with-l7vs-config-dir=DIR      l7vs configfile PATH.
1586                                                                         default=/etc/l7vs/l7vs.cf
1587
1588 Some influential environment variables:
1589   CXX         C++ compiler command
1590   CXXFLAGS    C++ compiler flags
1591   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592               nonstandard directory <lib dir>
1593   LIBS        libraries to pass to the linker, e.g. -l<library>
1594   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595               you have headers in a nonstandard directory <include dir>
1596   CC          C compiler command
1597   CFLAGS      C compiler flags
1598   CPP         C preprocessor
1599   CXXCPP      C++ preprocessor
1600   F77         Fortran 77 compiler command
1601   FFLAGS      Fortran 77 compiler flags
1602
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" ||
1614       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615       continue
1616     ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622   # A ".." for each directory in $ac_dir_suffix.
1623   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624   case $ac_top_builddir_sub in
1625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627   esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635   .)  # We are building in place.
1636     ac_srcdir=.
1637     ac_top_srcdir=$ac_top_builddir_sub
1638     ac_abs_top_srcdir=$ac_pwd ;;
1639   [\\/]* | ?:[\\/]* )  # Absolute name.
1640     ac_srcdir=$srcdir$ac_dir_suffix;
1641     ac_top_srcdir=$srcdir
1642     ac_abs_top_srcdir=$srcdir ;;
1643   *) # Relative name.
1644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645     ac_top_srcdir=$ac_top_build_prefix$srcdir
1646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650     cd "$ac_dir" || { ac_status=$?; continue; }
1651     # Check for guested configure.
1652     if test -f "$ac_srcdir/configure.gnu"; then
1653       echo &&
1654       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655     elif test -f "$ac_srcdir/configure"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure" --help=recursive
1658     else
1659       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660     fi || ac_status=$?
1661     cd "$ac_pwd" || { ac_status=$?; break; }
1662   done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667   cat <<\_ACEOF
1668 configure
1669 generated by GNU Autoconf 2.63
1670
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675 _ACEOF
1676   exit
1677 fi
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1681
1682 It was created by $as_me, which was
1683 generated by GNU Autoconf 2.63.  Invocation command line was
1684
1685   $ $0 $@
1686
1687 _ACEOF
1688 exec 5>>config.log
1689 {
1690 cat <<_ASUNAME
1691 ## --------- ##
1692 ## Platform. ##
1693 ## --------- ##
1694
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1703
1704 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1705 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1708 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1709 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1710 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1711
1712 _ASUNAME
1713
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   $as_echo "PATH: $as_dir"
1720 done
1721 IFS=$as_save_IFS
1722
1723 } >&5
1724
1725 cat >&5 <<_ACEOF
1726
1727
1728 ## ----------- ##
1729 ## Core tests. ##
1730 ## ----------- ##
1731
1732 _ACEOF
1733
1734
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_configure_args=
1741 ac_configure_args0=
1742 ac_configure_args1=
1743 ac_must_keep_next=false
1744 for ac_pass in 1 2
1745 do
1746   for ac_arg
1747   do
1748     case $ac_arg in
1749     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751     | -silent | --silent | --silen | --sile | --sil)
1752       continue ;;
1753     *\'*)
1754       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755     esac
1756     case $ac_pass in
1757     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758     2)
1759       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760       if test $ac_must_keep_next = true; then
1761         ac_must_keep_next=false # Got value, back to normal.
1762       else
1763         case $ac_arg in
1764           *=* | --config-cache | -C | -disable-* | --disable-* \
1765           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767           | -with-* | --with-* | -without-* | --without-* | --x)
1768             case "$ac_configure_args0 " in
1769               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770             esac
1771             ;;
1772           -* ) ac_must_keep_next=true ;;
1773         esac
1774       fi
1775       ac_configure_args="$ac_configure_args '$ac_arg'"
1776       ;;
1777     esac
1778   done
1779 done
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log.  We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789   # Save into config.log some information that might help in debugging.
1790   {
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1797 _ASBOX
1798     echo
1799     # The following way of writing the cache mishandles newlines in values,
1800 (
1801   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802     eval ac_val=\$$ac_var
1803     case $ac_val in #(
1804     *${as_nl}*)
1805       case $ac_var in #(
1806       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1808       esac
1809       case $ac_var in #(
1810       _ | IFS | as_nl) ;; #(
1811       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1812       *) $as_unset $ac_var ;;
1813       esac ;;
1814     esac
1815   done
1816   (set) 2>&1 |
1817     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818     *${as_nl}ac_space=\ *)
1819       sed -n \
1820         "s/'\''/'\''\\\\'\'''\''/g;
1821           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822       ;; #(
1823     *)
1824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825       ;;
1826     esac |
1827     sort
1828 )
1829     echo
1830
1831     cat <<\_ASBOX
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1835 _ASBOX
1836     echo
1837     for ac_var in $ac_subst_vars
1838     do
1839       eval ac_val=\$$ac_var
1840       case $ac_val in
1841       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842       esac
1843       $as_echo "$ac_var='\''$ac_val'\''"
1844     done | sort
1845     echo
1846
1847     if test -n "$ac_subst_files"; then
1848       cat <<\_ASBOX
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1852 _ASBOX
1853       echo
1854       for ac_var in $ac_subst_files
1855       do
1856         eval ac_val=\$$ac_var
1857         case $ac_val in
1858         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859         esac
1860         $as_echo "$ac_var='\''$ac_val'\''"
1861       done | sort
1862       echo
1863     fi
1864
1865     if test -s confdefs.h; then
1866       cat <<\_ASBOX
1867 ## ----------- ##
1868 ## confdefs.h. ##
1869 ## ----------- ##
1870 _ASBOX
1871       echo
1872       cat confdefs.h
1873       echo
1874     fi
1875     test "$ac_signal" != 0 &&
1876       $as_echo "$as_me: caught signal $ac_signal"
1877     $as_echo "$as_me: exit $exit_status"
1878   } >&5
1879   rm -f core *.core core.conftest.* &&
1880     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881     exit $exit_status
1882 ' 0
1883 for ac_signal in 1 2 13 15; do
1884   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 done
1886 ac_signal=0
1887
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1890
1891 # Predefined preprocessor variables.
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 _ACEOF
1916
1917
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer an explicitly selected file to automatically selected ones.
1920 ac_site_file1=NONE
1921 ac_site_file2=NONE
1922 if test -n "$CONFIG_SITE"; then
1923   ac_site_file1=$CONFIG_SITE
1924 elif test "x$prefix" != xNONE; then
1925   ac_site_file1=$prefix/share/config.site
1926   ac_site_file2=$prefix/etc/config.site
1927 else
1928   ac_site_file1=$ac_default_prefix/share/config.site
1929   ac_site_file2=$ac_default_prefix/etc/config.site
1930 fi
1931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1932 do
1933   test "x$ac_site_file" = xNONE && continue
1934   if test -r "$ac_site_file"; then
1935     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1937     sed 's/^/| /' "$ac_site_file" >&5
1938     . "$ac_site_file"
1939   fi
1940 done
1941
1942 if test -r "$cache_file"; then
1943   # Some versions of bash will fail to source /dev/null (special
1944   # files actually), so we avoid doing that.
1945   if test -f "$cache_file"; then
1946     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 $as_echo "$as_me: loading cache $cache_file" >&6;}
1948     case $cache_file in
1949       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950       *)                      . "./$cache_file";;
1951     esac
1952   fi
1953 else
1954   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 $as_echo "$as_me: creating cache $cache_file" >&6;}
1956   >$cache_file
1957 fi
1958
1959 ac_header_list="$ac_header_list sys/time.h"
1960 ac_header_list="$ac_header_list unistd.h"
1961 ac_func_list="$ac_func_list alarm"
1962 # Check that the precious variables saved in the cache have kept the same
1963 # value.
1964 ac_cache_corrupted=false
1965 for ac_var in $ac_precious_vars; do
1966   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1967   eval ac_new_set=\$ac_env_${ac_var}_set
1968   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1969   eval ac_new_val=\$ac_env_${ac_var}_value
1970   case $ac_old_set,$ac_new_set in
1971     set,)
1972       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1974       ac_cache_corrupted=: ;;
1975     ,set)
1976       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1978       ac_cache_corrupted=: ;;
1979     ,);;
1980     *)
1981       if test "x$ac_old_val" != "x$ac_new_val"; then
1982         # differences in whitespace do not lead to failure.
1983         ac_old_val_w=`echo x $ac_old_val`
1984         ac_new_val_w=`echo x $ac_new_val`
1985         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1986           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988           ac_cache_corrupted=:
1989         else
1990           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1992           eval $ac_var=\$ac_old_val
1993         fi
1994         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1995 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1996         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1997 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1998       fi;;
1999   esac
2000   # Pass precious variables to config.status.
2001   if test "$ac_new_set" = set; then
2002     case $ac_new_val in
2003     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004     *) ac_arg=$ac_var=$ac_new_val ;;
2005     esac
2006     case " $ac_configure_args " in
2007       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2008       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009     esac
2010   fi
2011 done
2012 if $ac_cache_corrupted; then
2013   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2015   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043
2044
2045 PACKAGENAME=l7vsd
2046 VERSION=3.0.0-1
2047
2048 am__api_version="1.9"
2049 ac_aux_dir=
2050 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2051   if test -f "$ac_dir/install-sh"; then
2052     ac_aux_dir=$ac_dir
2053     ac_install_sh="$ac_aux_dir/install-sh -c"
2054     break
2055   elif test -f "$ac_dir/install.sh"; then
2056     ac_aux_dir=$ac_dir
2057     ac_install_sh="$ac_aux_dir/install.sh -c"
2058     break
2059   elif test -f "$ac_dir/shtool"; then
2060     ac_aux_dir=$ac_dir
2061     ac_install_sh="$ac_aux_dir/shtool install -c"
2062     break
2063   fi
2064 done
2065 if test -z "$ac_aux_dir"; then
2066   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2067 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 # These three variables are undocumented and unsupported,
2072 # and are intended to be withdrawn in a future Autoconf release.
2073 # They can cause serious problems if a builder's source tree is in a directory
2074 # whose full name contains unusual characters.
2075 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2076 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2077 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2078
2079
2080 # Find a good install program.  We prefer a C program (faster),
2081 # so one script is as good as another.  But avoid the broken or
2082 # incompatible versions:
2083 # SysV /etc/install, /usr/sbin/install
2084 # SunOS /usr/etc/install
2085 # IRIX /sbin/install
2086 # AIX /bin/install
2087 # AmigaOS /C/install, which installs bootblocks on floppy discs
2088 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091 # OS/2's system install, which has a completely different semantic
2092 # ./install, which can be erroneously created by make from ./install.sh.
2093 # Reject install programs that cannot install multiple files.
2094 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2095 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2096 if test -z "$INSTALL"; then
2097 if test "${ac_cv_path_install+set}" = set; then
2098   $as_echo_n "(cached) " >&6
2099 else
2100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   # Account for people who put trailing slashes in PATH elements.
2106 case $as_dir/ in
2107   ./ | .// | /cC/* | \
2108   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2109   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2110   /usr/ucb/* ) ;;
2111   *)
2112     # OSF1 and SCO ODT 3.0 have their own names for install.
2113     # Don't use installbsd from OSF since it installs stuff as root
2114     # by default.
2115     for ac_prog in ginstall scoinst install; do
2116       for ac_exec_ext in '' $ac_executable_extensions; do
2117         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2118           if test $ac_prog = install &&
2119             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2120             # AIX install.  It has an incompatible calling convention.
2121             :
2122           elif test $ac_prog = install &&
2123             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2124             # program-specific install script used by HP pwplus--don't use.
2125             :
2126           else
2127             rm -rf conftest.one conftest.two conftest.dir
2128             echo one > conftest.one
2129             echo two > conftest.two
2130             mkdir conftest.dir
2131             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2132               test -s conftest.one && test -s conftest.two &&
2133               test -s conftest.dir/conftest.one &&
2134               test -s conftest.dir/conftest.two
2135             then
2136               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2137               break 3
2138             fi
2139           fi
2140         fi
2141       done
2142     done
2143     ;;
2144 esac
2145
2146 done
2147 IFS=$as_save_IFS
2148
2149 rm -rf conftest.one conftest.two conftest.dir
2150
2151 fi
2152   if test "${ac_cv_path_install+set}" = set; then
2153     INSTALL=$ac_cv_path_install
2154   else
2155     # As a last resort, use the slow shell script.  Don't cache a
2156     # value for INSTALL within a source directory, because that will
2157     # break other packages using the cache if that directory is
2158     # removed, or if the value is a relative name.
2159     INSTALL=$ac_install_sh
2160   fi
2161 fi
2162 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2163 $as_echo "$INSTALL" >&6; }
2164
2165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2166 # It thinks the first close brace ends the variable substitution.
2167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2168
2169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2170
2171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2172
2173 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2174 $as_echo_n "checking whether build environment is sane... " >&6; }
2175 # Just in case
2176 sleep 1
2177 echo timestamp > conftest.file
2178 # Do `set' in a subshell so we don't clobber the current shell's
2179 # arguments.  Must try -L first in case configure is actually a
2180 # symlink; some systems play weird games with the mod time of symlinks
2181 # (eg FreeBSD returns the mod time of the symlink's containing
2182 # directory).
2183 if (
2184    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2185    if test "$*" = "X"; then
2186       # -L didn't work.
2187       set X `ls -t $srcdir/configure conftest.file`
2188    fi
2189    rm -f conftest.file
2190    if test "$*" != "X $srcdir/configure conftest.file" \
2191       && test "$*" != "X conftest.file $srcdir/configure"; then
2192
2193       # If neither matched, then we have a broken ls.  This can happen
2194       # if, for instance, CONFIG_SHELL is bash and it inherits a
2195       # broken ls alias from the environment.  This has actually
2196       # happened.  Such a system could not be considered "sane".
2197       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2198 alias in your environment" >&5
2199 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2200 alias in your environment" >&2;}
2201    { (exit 1); exit 1; }; }
2202    fi
2203
2204    test "$2" = conftest.file
2205    )
2206 then
2207    # Ok.
2208    :
2209 else
2210    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2211 Check your system clock" >&5
2212 $as_echo "$as_me: error: newly created file is older than distributed files!
2213 Check your system clock" >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216 { $as_echo "$as_me:$LINENO: result: yes" >&5
2217 $as_echo "yes" >&6; }
2218 test "$program_prefix" != NONE &&
2219   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2220 # Use a double $ so make ignores it.
2221 test "$program_suffix" != NONE &&
2222   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2223 # Double any \ or $.
2224 # By default was `s,x,x', remove it if useless.
2225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2227
2228 # expand $ac_aux_dir to an absolute path
2229 am_aux_dir=`cd $ac_aux_dir && pwd`
2230
2231 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2232 # Use eval to expand $SHELL
2233 if eval "$MISSING --run true"; then
2234   am_missing_run="$MISSING --run "
2235 else
2236   am_missing_run=
2237   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2238 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2239 fi
2240
2241 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2242   # We used to keeping the `.' as first argument, in order to
2243   # allow $(mkdir_p) to be used without argument.  As in
2244   #   $(mkdir_p) $(somedir)
2245   # where $(somedir) is conditionally defined.  However this is wrong
2246   # for two reasons:
2247   #  1. if the package is installed by a user who cannot write `.'
2248   #     make install will fail,
2249   #  2. the above comment should most certainly read
2250   #     $(mkdir_p) $(DESTDIR)$(somedir)
2251   #     so it does not work when $(somedir) is undefined and
2252   #     $(DESTDIR) is not.
2253   #  To support the latter case, we have to write
2254   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2255   #  so the `.' trick is pointless.
2256   mkdir_p='mkdir -p --'
2257 else
2258   # On NextStep and OpenStep, the `mkdir' command does not
2259   # recognize any option.  It will interpret all options as
2260   # directories to create, and then abort because `.' already
2261   # exists.
2262   for d in ./-p ./--version;
2263   do
2264     test -d $d && rmdir $d
2265   done
2266   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2267   if test -f "$ac_aux_dir/mkinstalldirs"; then
2268     mkdir_p='$(mkinstalldirs)'
2269   else
2270     mkdir_p='$(install_sh) -d'
2271   fi
2272 fi
2273
2274 for ac_prog in gawk mawk nawk awk
2275 do
2276   # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 $as_echo_n "checking for $ac_word... " >&6; }
2280 if test "${ac_cv_prog_AWK+set}" = set; then
2281   $as_echo_n "(cached) " >&6
2282 else
2283   if test -n "$AWK"; then
2284   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293     ac_cv_prog_AWK="$ac_prog"
2294     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295     break 2
2296   fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
2303 AWK=$ac_cv_prog_AWK
2304 if test -n "$AWK"; then
2305   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2306 $as_echo "$AWK" >&6; }
2307 else
2308   { $as_echo "$as_me:$LINENO: result: no" >&5
2309 $as_echo "no" >&6; }
2310 fi
2311
2312
2313   test -n "$AWK" && break
2314 done
2315
2316 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2318 set x ${MAKE-make}
2319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2320 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2321   $as_echo_n "(cached) " >&6
2322 else
2323   cat >conftest.make <<\_ACEOF
2324 SHELL = /bin/sh
2325 all:
2326         @echo '@@@%%%=$(MAKE)=@@@%%%'
2327 _ACEOF
2328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2330   *@@@%%%=?*=@@@%%%*)
2331     eval ac_cv_prog_make_${ac_make}_set=yes;;
2332   *)
2333     eval ac_cv_prog_make_${ac_make}_set=no;;
2334 esac
2335 rm -f conftest.make
2336 fi
2337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2338   { $as_echo "$as_me:$LINENO: result: yes" >&5
2339 $as_echo "yes" >&6; }
2340   SET_MAKE=
2341 else
2342   { $as_echo "$as_me:$LINENO: result: no" >&5
2343 $as_echo "no" >&6; }
2344   SET_MAKE="MAKE=${MAKE-make}"
2345 fi
2346
2347 rm -rf .tst 2>/dev/null
2348 mkdir .tst 2>/dev/null
2349 if test -d .tst; then
2350   am__leading_dot=.
2351 else
2352   am__leading_dot=_
2353 fi
2354 rmdir .tst 2>/dev/null
2355
2356 # test to see if srcdir already configured
2357 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2358    test -f $srcdir/config.status; then
2359   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2360 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2361    { (exit 1); exit 1; }; }
2362 fi
2363
2364 # test whether we have cygpath
2365 if test -z "$CYGPATH_W"; then
2366   if (cygpath --version) >/dev/null 2>/dev/null; then
2367     CYGPATH_W='cygpath -w'
2368   else
2369     CYGPATH_W=echo
2370   fi
2371 fi
2372
2373
2374 # Define the identity of the package.
2375  PACKAGE=$PACKAGENAME
2376  VERSION=$VERSION
2377
2378
2379 # Some tools Automake needs.
2380
2381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2382
2383
2384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2385
2386
2387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2388
2389
2390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2391
2392
2393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2394
2395 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2396
2397 # Installed binaries are usually stripped using `strip' when the user
2398 # run `make install-strip'.  However `strip' might not be the right
2399 # tool to use in cross-compilation environments, therefore Automake
2400 # will honor the `STRIP' environment variable to overrule this program.
2401 if test "$cross_compiling" != no; then
2402   if test -n "$ac_tool_prefix"; then
2403   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}strip; ac_word=$2
2405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if test "${ac_cv_prog_STRIP+set}" = set; then
2408   $as_echo_n "(cached) " >&6
2409 else
2410   if test -n "$STRIP"; then
2411   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2421     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 STRIP=$ac_cv_prog_STRIP
2431 if test -n "$STRIP"; then
2432   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2433 $as_echo "$STRIP" >&6; }
2434 else
2435   { $as_echo "$as_me:$LINENO: result: no" >&5
2436 $as_echo "no" >&6; }
2437 fi
2438
2439
2440 fi
2441 if test -z "$ac_cv_prog_STRIP"; then
2442   ac_ct_STRIP=$STRIP
2443   # Extract the first word of "strip", so it can be a program name with args.
2444 set dummy strip; ac_word=$2
2445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2448   $as_echo_n "(cached) " >&6
2449 else
2450   if test -n "$ac_ct_STRIP"; then
2451   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   for ac_exec_ext in '' $ac_executable_extensions; do
2459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460     ac_cv_prog_ac_ct_STRIP="strip"
2461     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2471 if test -n "$ac_ct_STRIP"; then
2472   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2473 $as_echo "$ac_ct_STRIP" >&6; }
2474 else
2475   { $as_echo "$as_me:$LINENO: result: no" >&5
2476 $as_echo "no" >&6; }
2477 fi
2478
2479   if test "x$ac_ct_STRIP" = x; then
2480     STRIP=":"
2481   else
2482     case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486 ac_tool_warned=yes ;;
2487 esac
2488     STRIP=$ac_ct_STRIP
2489   fi
2490 else
2491   STRIP="$ac_cv_prog_STRIP"
2492 fi
2493
2494 fi
2495 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2496
2497 # We need awk for the "check" target.  The system "awk" is bad on
2498 # some platforms.
2499 # Always define AMTAR for backward compatibility.
2500
2501 AMTAR=${AMTAR-"${am_missing_run}tar"}
2502
2503 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2504
2505
2506
2507
2508
2509
2510 ac_config_headers="$ac_config_headers config.h"
2511
2512
2513 # Checks for programs.
2514 ac_ext=cpp
2515 ac_cpp='$CXXCPP $CPPFLAGS'
2516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2519 if test -z "$CXX"; then
2520   if test -n "$CCC"; then
2521     CXX=$CCC
2522   else
2523     if test -n "$ac_tool_prefix"; then
2524   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2525   do
2526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if test "${ac_cv_prog_CXX+set}" = set; then
2531   $as_echo_n "(cached) " >&6
2532 else
2533   if test -n "$CXX"; then
2534   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2544     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 CXX=$ac_cv_prog_CXX
2554 if test -n "$CXX"; then
2555   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2556 $as_echo "$CXX" >&6; }
2557 else
2558   { $as_echo "$as_me:$LINENO: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562
2563     test -n "$CXX" && break
2564   done
2565 fi
2566 if test -z "$CXX"; then
2567   ac_ct_CXX=$CXX
2568   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2569 do
2570   # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test -n "$ac_ct_CXX"; then
2578   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_ac_ct_CXX="$ac_prog"
2588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2598 if test -n "$ac_ct_CXX"; then
2599   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2600 $as_echo "$ac_ct_CXX" >&6; }
2601 else
2602   { $as_echo "$as_me:$LINENO: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606
2607   test -n "$ac_ct_CXX" && break
2608 done
2609
2610   if test "x$ac_ct_CXX" = x; then
2611     CXX="g++"
2612   else
2613     case $cross_compiling:$ac_tool_warned in
2614 yes:)
2615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617 ac_tool_warned=yes ;;
2618 esac
2619     CXX=$ac_ct_CXX
2620   fi
2621 fi
2622
2623   fi
2624 fi
2625 # Provide some information about the compiler.
2626 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2627 set X $ac_compile
2628 ac_compiler=$2
2629 { (ac_try="$ac_compiler --version >&5"
2630 case "(($ac_try" in
2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632   *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636   (eval "$ac_compiler --version >&5") 2>&5
2637   ac_status=$?
2638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }
2640 { (ac_try="$ac_compiler -v >&5"
2641 case "(($ac_try" in
2642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643   *) ac_try_echo=$ac_try;;
2644 esac
2645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2646 $as_echo "$ac_try_echo") >&5
2647   (eval "$ac_compiler -v >&5") 2>&5
2648   ac_status=$?
2649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2652 case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657 $as_echo "$ac_try_echo") >&5
2658   (eval "$ac_compiler -V >&5") 2>&5
2659   ac_status=$?
2660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2682 # of exeext.
2683 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2684 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686
2687 # The possible output files:
2688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2689
2690 ac_rmfiles=
2691 for ac_file in $ac_files
2692 do
2693   case $ac_file in
2694     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2695     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2696   esac
2697 done
2698 rm -f $ac_rmfiles
2699
2700 if { (ac_try="$ac_link_default"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2706 $as_echo "$ac_try_echo") >&5
2707   (eval "$ac_link_default") 2>&5
2708   ac_status=$?
2709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; then
2711   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2713 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2714 # so that the user can short-circuit this test for compilers unknown to
2715 # Autoconf.
2716 for ac_file in $ac_files ''
2717 do
2718   test -f "$ac_file" || continue
2719   case $ac_file in
2720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2721         ;;
2722     [ab].out )
2723         # We found the default executable, but exeext='' is most
2724         # certainly right.
2725         break;;
2726     *.* )
2727         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2728         then :; else
2729            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730         fi
2731         # We set ac_cv_exeext here because the later test for it is not
2732         # safe: cross compilers may not add the suffix if given an `-o'
2733         # argument, so we may need to know it at that point already.
2734         # Even if this section looks crufty: it has the advantage of
2735         # actually working.
2736         break;;
2737     * )
2738         break;;
2739   esac
2740 done
2741 test "$ac_cv_exeext" = no && ac_cv_exeext=
2742
2743 else
2744   ac_file=''
2745 fi
2746
2747 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2748 $as_echo "$ac_file" >&6; }
2749 if test -z "$ac_file"; then
2750   $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2756 See \`config.log' for more details." >&5
2757 $as_echo "$as_me: error: C++ compiler cannot create executables
2758 See \`config.log' for more details." >&2;}
2759    { (exit 77); exit 77; }; }; }
2760 fi
2761
2762 ac_exeext=$ac_cv_exeext
2763
2764 # Check that the compiler produces executables we can run.  If not, either
2765 # the compiler is broken, or we cross compile.
2766 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2767 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2768 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2769 # If not cross compiling, check that we can run a simple program.
2770 if test "$cross_compiling" != yes; then
2771   if { ac_try='./$ac_file'
2772   { (case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778   (eval "$ac_try") 2>&5
2779   ac_status=$?
2780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; }; then
2782     cross_compiling=no
2783   else
2784     if test "$cross_compiling" = maybe; then
2785         cross_compiling=yes
2786     else
2787         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details." >&5
2792 $as_echo "$as_me: error: cannot run C++ compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details." >&2;}
2795    { (exit 1); exit 1; }; }; }
2796     fi
2797   fi
2798 fi
2799 { $as_echo "$as_me:$LINENO: result: yes" >&5
2800 $as_echo "yes" >&6; }
2801
2802 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run.  If not, either
2805 # the compiler is broken, or we cross compile.
2806 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2807 $as_echo_n "checking whether we are cross compiling... " >&6; }
2808 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2809 $as_echo "$cross_compiling" >&6; }
2810
2811 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2812 $as_echo_n "checking for suffix of executables... " >&6; }
2813 if { (ac_try="$ac_link"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819 $as_echo "$ac_try_echo") >&5
2820   (eval "$ac_link") 2>&5
2821   ac_status=$?
2822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; then
2824   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2825 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2826 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 # `rm'.
2828 for ac_file in conftest.exe conftest conftest.*; do
2829   test -f "$ac_file" || continue
2830   case $ac_file in
2831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2832     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833           break;;
2834     * ) break;;
2835   esac
2836 done
2837 else
2838   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2841 See \`config.log' for more details." >&5
2842 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2843 See \`config.log' for more details." >&2;}
2844    { (exit 1); exit 1; }; }; }
2845 fi
2846
2847 rm -f conftest$ac_cv_exeext
2848 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2849 $as_echo "$ac_cv_exeext" >&6; }
2850
2851 rm -f conftest.$ac_ext
2852 EXEEXT=$ac_cv_exeext
2853 ac_exeext=$EXEEXT
2854 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2855 $as_echo_n "checking for suffix of object files... " >&6; }
2856 if test "${ac_cv_objext+set}" = set; then
2857   $as_echo_n "(cached) " >&6
2858 else
2859   cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865
2866 int
2867 main ()
2868 {
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 rm -f conftest.o conftest.obj
2875 if { (ac_try="$ac_compile"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881 $as_echo "$ac_try_echo") >&5
2882   (eval "$ac_compile") 2>&5
2883   ac_status=$?
2884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; then
2886   for ac_file in conftest.o conftest.obj conftest.*; do
2887   test -f "$ac_file" || continue;
2888   case $ac_file in
2889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2890     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2891        break;;
2892   esac
2893 done
2894 else
2895   $as_echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2901 See \`config.log' for more details." >&5
2902 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2903 See \`config.log' for more details." >&2;}
2904    { (exit 1); exit 1; }; }; }
2905 fi
2906
2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2908 fi
2909 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2910 $as_echo "$ac_cv_objext" >&6; }
2911 OBJEXT=$ac_cv_objext
2912 ac_objext=$OBJEXT
2913 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916   $as_echo_n "(cached) " >&6
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928 #ifndef __GNUC__
2929        choke me
2930 #endif
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944   (eval "$ac_compile") 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } && {
2951          test -z "$ac_cxx_werror_flag" ||
2952          test ! -s conftest.err
2953        } && test -s conftest.$ac_objext; then
2954   ac_compiler_gnu=yes
2955 else
2956   $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959         ac_compiler_gnu=no
2960 fi
2961
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2964
2965 fi
2966 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2967 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2968 if test $ac_compiler_gnu = yes; then
2969   GXX=yes
2970 else
2971   GXX=
2972 fi
2973 ac_test_CXXFLAGS=${CXXFLAGS+set}
2974 ac_save_CXXFLAGS=$CXXFLAGS
2975 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2976 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2977 if test "${ac_cv_prog_cxx_g+set}" = set; then
2978   $as_echo_n "(cached) " >&6
2979 else
2980   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2981    ac_cxx_werror_flag=yes
2982    ac_cv_prog_cxx_g=no
2983    CXXFLAGS="-g"
2984    cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990
2991 int
2992 main ()
2993 {
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } && {
3014          test -z "$ac_cxx_werror_flag" ||
3015          test ! -s conftest.err
3016        } && test -s conftest.$ac_objext; then
3017   ac_cv_prog_cxx_g=yes
3018 else
3019   $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022         CXXFLAGS=""
3023       cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_cxx_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   :
3057 else
3058   $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3062          CXXFLAGS="-g"
3063          cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } && {
3093          test -z "$ac_cxx_werror_flag" ||
3094          test ! -s conftest.err
3095        } && test -s conftest.$ac_objext; then
3096   ac_cv_prog_cxx_g=yes
3097 else
3098   $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101
3102 fi
3103
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112 fi
3113 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3114 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3115 if test "$ac_test_CXXFLAGS" = set; then
3116   CXXFLAGS=$ac_save_CXXFLAGS
3117 elif test $ac_cv_prog_cxx_g = yes; then
3118   if test "$GXX" = yes; then
3119     CXXFLAGS="-g -O2"
3120   else
3121     CXXFLAGS="-g"
3122   fi
3123 else
3124   if test "$GXX" = yes; then
3125     CXXFLAGS="-O2"
3126   else
3127     CXXFLAGS=
3128   fi
3129 fi
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 DEPDIR="${am__leading_dot}deps"
3136
3137 ac_config_commands="$ac_config_commands depfiles"
3138
3139
3140 am_make=${MAKE-make}
3141 cat > confinc << 'END'
3142 am__doit:
3143         @echo done
3144 .PHONY: am__doit
3145 END
3146 # If we don't find an include directive, just comment out the code.
3147 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3148 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3149 am__include="#"
3150 am__quote=
3151 _am_result=none
3152 # First try GNU make style include.
3153 echo "include confinc" > confmf
3154 # We grep out `Entering directory' and `Leaving directory'
3155 # messages which can occur if `w' ends up in MAKEFLAGS.
3156 # In particular we don't look at `^make:' because GNU make might
3157 # be invoked under some other name (usually "gmake"), in which
3158 # case it prints its new name instead of `make'.
3159 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3160    am__include=include
3161    am__quote=
3162    _am_result=GNU
3163 fi
3164 # Now try BSD make style include.
3165 if test "$am__include" = "#"; then
3166    echo '.include "confinc"' > confmf
3167    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3168       am__include=.include
3169       am__quote="\""
3170       _am_result=BSD
3171    fi
3172 fi
3173
3174
3175 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3176 $as_echo "$_am_result" >&6; }
3177 rm -f confinc confmf
3178
3179 # Check whether --enable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then
3181   enableval=$enable_dependency_tracking;
3182 fi
3183
3184 if test "x$enable_dependency_tracking" != xno; then
3185   am_depcomp="$ac_aux_dir/depcomp"
3186   AMDEPBACKSLASH='\'
3187 fi
3188
3189
3190 if test "x$enable_dependency_tracking" != xno; then
3191   AMDEP_TRUE=
3192   AMDEP_FALSE='#'
3193 else
3194   AMDEP_TRUE='#'
3195   AMDEP_FALSE=
3196 fi
3197
3198
3199
3200
3201 depcc="$CXX"  am_compiler_list=
3202
3203 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 $as_echo_n "checking dependency style of $depcc... " >&6; }
3205 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209   # We make a subdir and do the tests there.  Otherwise we can end up
3210   # making bogus files that we don't know about and never remove.  For
3211   # instance it was reported that on HP-UX the gcc test will end up
3212   # making a dummy file named `D' -- because `-MD' means `put the output
3213   # in D'.
3214   mkdir conftest.dir
3215   # Copy depcomp to subdir because otherwise we won't find it if we're
3216   # using a relative directory.
3217   cp "$am_depcomp" conftest.dir
3218   cd conftest.dir
3219   # We will build objects and dependencies in a subdirectory because
3220   # it helps to detect inapplicable dependency modes.  For instance
3221   # both Tru64's cc and ICC support -MD to output dependencies as a
3222   # side effect of compilation, but ICC will put the dependencies in
3223   # the current directory while Tru64 will put them in the object
3224   # directory.
3225   mkdir sub
3226
3227   am_cv_CXX_dependencies_compiler_type=none
3228   if test "$am_compiler_list" = ""; then
3229      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3230   fi
3231   for depmode in $am_compiler_list; do
3232     # Setup a source with many dependencies, because some compilers
3233     # like to wrap large dependency lists on column 80 (with \), and
3234     # we should not choose a depcomp mode which is confused by this.
3235     #
3236     # We need to recreate these files for each test, as the compiler may
3237     # overwrite some of them when testing with obscure command lines.
3238     # This happens at least with the AIX C compiler.
3239     : > sub/conftest.c
3240     for i in 1 2 3 4 5 6; do
3241       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243       # Solaris 8's {/usr,}/bin/sh.
3244       touch sub/conftst$i.h
3245     done
3246     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3247
3248     case $depmode in
3249     nosideeffect)
3250       # after this tag, mechanisms are not by side-effect, so they'll
3251       # only be used when explicitly requested
3252       if test "x$enable_dependency_tracking" = xyes; then
3253         continue
3254       else
3255         break
3256       fi
3257       ;;
3258     none) break ;;
3259     esac
3260     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261     # mode.  It turns out that the SunPro C++ compiler does not properly
3262     # handle `-M -o', and we need to detect this.
3263     if depmode=$depmode \
3264        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267          >/dev/null 2>conftest.err &&
3268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271       # icc doesn't choke on unknown options, it will just issue warnings
3272       # or remarks (even with -Werror).  So we grep stderr for any message
3273       # that says an option was ignored or not supported.
3274       # When given -MP, icc 7.0 and 7.1 complain thusly:
3275       #   icc: Command line warning: ignoring option '-M'; no argument required
3276       # The diagnosis changed in icc 8.0:
3277       #   icc: Command line remark: option '-MP' not supported
3278       if (grep 'ignoring option' conftest.err ||
3279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280         am_cv_CXX_dependencies_compiler_type=$depmode
3281         break
3282       fi
3283     fi
3284   done
3285
3286   cd ..
3287   rm -rf conftest.dir
3288 else
3289   am_cv_CXX_dependencies_compiler_type=none
3290 fi
3291
3292 fi
3293 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3294 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3295 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3296
3297
3298
3299 if
3300   test "x$enable_dependency_tracking" != xno \
3301   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3302   am__fastdepCXX_TRUE=
3303   am__fastdepCXX_FALSE='#'
3304 else
3305   am__fastdepCXX_TRUE='#'
3306   am__fastdepCXX_FALSE=
3307 fi
3308
3309
3310 # Check whether --enable-shared was given.
3311 if test "${enable_shared+set}" = set; then
3312   enableval=$enable_shared; p=${PACKAGE-default}
3313     case $enableval in
3314     yes) enable_shared=yes ;;
3315     no) enable_shared=no ;;
3316     *)
3317       enable_shared=no
3318       # Look at the argument we got.  We use all the common list separators.
3319       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3320       for pkg in $enableval; do
3321         IFS="$lt_save_ifs"
3322         if test "X$pkg" = "X$p"; then
3323           enable_shared=yes
3324         fi
3325       done
3326       IFS="$lt_save_ifs"
3327       ;;
3328     esac
3329 else
3330   enable_shared=yes
3331 fi
3332
3333
3334 # Check whether --enable-static was given.
3335 if test "${enable_static+set}" = set; then
3336   enableval=$enable_static; p=${PACKAGE-default}
3337     case $enableval in
3338     yes) enable_static=yes ;;
3339     no) enable_static=no ;;
3340     *)
3341      enable_static=no
3342       # Look at the argument we got.  We use all the common list separators.
3343       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344       for pkg in $enableval; do
3345         IFS="$lt_save_ifs"
3346         if test "X$pkg" = "X$p"; then
3347           enable_static=yes
3348         fi
3349       done
3350       IFS="$lt_save_ifs"
3351       ;;
3352     esac
3353 else
3354   enable_static=yes
3355 fi
3356
3357
3358 # Check whether --enable-fast-install was given.
3359 if test "${enable_fast_install+set}" = set; then
3360   enableval=$enable_fast_install; p=${PACKAGE-default}
3361     case $enableval in
3362     yes) enable_fast_install=yes ;;
3363     no) enable_fast_install=no ;;
3364     *)
3365       enable_fast_install=no
3366       # Look at the argument we got.  We use all the common list separators.
3367       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3368       for pkg in $enableval; do
3369         IFS="$lt_save_ifs"
3370         if test "X$pkg" = "X$p"; then
3371           enable_fast_install=yes
3372         fi
3373       done
3374       IFS="$lt_save_ifs"
3375       ;;
3376     esac
3377 else
3378   enable_fast_install=yes
3379 fi
3380
3381
3382 # Make sure we can run config.sub.
3383 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3384   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3385 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3386    { (exit 1); exit 1; }; }
3387
3388 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3389 $as_echo_n "checking build system type... " >&6; }
3390 if test "${ac_cv_build+set}" = set; then
3391   $as_echo_n "(cached) " >&6
3392 else
3393   ac_build_alias=$build_alias
3394 test "x$ac_build_alias" = x &&
3395   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3396 test "x$ac_build_alias" = x &&
3397   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3398 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3399    { (exit 1); exit 1; }; }
3400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3401   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3402 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3403    { (exit 1); exit 1; }; }
3404
3405 fi
3406 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3407 $as_echo "$ac_cv_build" >&6; }
3408 case $ac_cv_build in
3409 *-*-*) ;;
3410 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3411 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3412    { (exit 1); exit 1; }; };;
3413 esac
3414 build=$ac_cv_build
3415 ac_save_IFS=$IFS; IFS='-'
3416 set x $ac_cv_build
3417 shift
3418 build_cpu=$1
3419 build_vendor=$2
3420 shift; shift
3421 # Remember, the first character of IFS is used to create $*,
3422 # except with old shells:
3423 build_os=$*
3424 IFS=$ac_save_IFS
3425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3426
3427
3428 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3429 $as_echo_n "checking host system type... " >&6; }
3430 if test "${ac_cv_host+set}" = set; then
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test "x$host_alias" = x; then
3434   ac_cv_host=$ac_cv_build
3435 else
3436   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3437     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3438 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 fi
3443 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3444 $as_echo "$ac_cv_host" >&6; }
3445 case $ac_cv_host in
3446 *-*-*) ;;
3447 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3448 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3449    { (exit 1); exit 1; }; };;
3450 esac
3451 host=$ac_cv_host
3452 ac_save_IFS=$IFS; IFS='-'
3453 set x $ac_cv_host
3454 shift
3455 host_cpu=$1
3456 host_vendor=$2
3457 shift; shift
3458 # Remember, the first character of IFS is used to create $*,
3459 # except with old shells:
3460 host_os=$*
3461 IFS=$ac_save_IFS
3462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3463
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 if test -n "$ac_tool_prefix"; then
3471   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test -n "$CC"; then
3479   ac_cv_prog_CC="$CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3489     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 CC=$ac_cv_prog_CC
3499 if test -n "$CC"; then
3500   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3502 else
3503   { $as_echo "$as_me:$LINENO: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507
3508 fi
3509 if test -z "$ac_cv_prog_CC"; then
3510   ac_ct_CC=$CC
3511   # Extract the first word of "gcc", so it can be a program name with args.
3512 set dummy gcc; ac_word=$2
3513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516   $as_echo_n "(cached) " >&6
3517 else
3518   if test -n "$ac_ct_CC"; then
3519   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526   for ac_exec_ext in '' $ac_executable_extensions; do
3527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528     ac_cv_prog_ac_ct_CC="gcc"
3529     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 fi
3537 fi
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 $as_echo "$ac_ct_CC" >&6; }
3542 else
3543   { $as_echo "$as_me:$LINENO: result: no" >&5
3544 $as_echo "no" >&6; }
3545 fi
3546
3547   if test "x$ac_ct_CC" = x; then
3548     CC=""
3549   else
3550     case $cross_compiling:$ac_tool_warned in
3551 yes:)
3552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3555 esac
3556     CC=$ac_ct_CC
3557   fi
3558 else
3559   CC="$ac_cv_prog_CC"
3560 fi
3561
3562 if test -z "$CC"; then
3563           if test -n "$ac_tool_prefix"; then
3564     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3565 set dummy ${ac_tool_prefix}cc; ac_word=$2
3566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_CC+set}" = set; then
3569   $as_echo_n "(cached) " >&6
3570 else
3571   if test -n "$CC"; then
3572   ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579   for ac_exec_ext in '' $ac_executable_extensions; do
3580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581     ac_cv_prog_CC="${ac_tool_prefix}cc"
3582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583     break 2
3584   fi
3585 done
3586 done
3587 IFS=$as_save_IFS
3588
3589 fi
3590 fi
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3595 else
3596   { $as_echo "$as_me:$LINENO: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601   fi
3602 fi
3603 if test -z "$CC"; then
3604   # Extract the first word of "cc", so it can be a program name with args.
3605 set dummy cc; ac_word=$2
3606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if test "${ac_cv_prog_CC+set}" = set; then
3609   $as_echo_n "(cached) " >&6
3610 else
3611   if test -n "$CC"; then
3612   ac_cv_prog_CC="$CC" # Let the user override the test.
3613 else
3614   ac_prog_rejected=no
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620   for ac_exec_ext in '' $ac_executable_extensions; do
3621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3623        ac_prog_rejected=yes
3624        continue
3625      fi
3626     ac_cv_prog_CC="cc"
3627     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628     break 2
3629   fi
3630 done
3631 done
3632 IFS=$as_save_IFS
3633
3634 if test $ac_prog_rejected = yes; then
3635   # We found a bogon in the path, so make sure we never use it.
3636   set dummy $ac_cv_prog_CC
3637   shift
3638   if test $# != 0; then
3639     # We chose a different compiler from the bogus one.
3640     # However, it has the same basename, so the bogon will be chosen
3641     # first if we set CC to just the basename; use the full file name.
3642     shift
3643     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3644   fi
3645 fi
3646 fi
3647 fi
3648 CC=$ac_cv_prog_CC
3649 if test -n "$CC"; then
3650   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3652 else
3653   { $as_echo "$as_me:$LINENO: result: no" >&5
3654 $as_echo "no" >&6; }
3655 fi
3656
3657
3658 fi
3659 if test -z "$CC"; then
3660   if test -n "$ac_tool_prefix"; then
3661   for ac_prog in cl.exe
3662   do
3663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if test "${ac_cv_prog_CC+set}" = set; then
3668   $as_echo_n "(cached) " >&6
3669 else
3670   if test -n "$CC"; then
3671   ac_cv_prog_CC="$CC" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678   for ac_exec_ext in '' $ac_executable_extensions; do
3679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3681     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682     break 2
3683   fi
3684 done
3685 done
3686 IFS=$as_save_IFS
3687
3688 fi
3689 fi
3690 CC=$ac_cv_prog_CC
3691 if test -n "$CC"; then
3692   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3694 else
3695   { $as_echo "$as_me:$LINENO: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699
3700     test -n "$CC" && break
3701   done
3702 fi
3703 if test -z "$CC"; then
3704   ac_ct_CC=$CC
3705   for ac_prog in cl.exe
3706 do
3707   # Extract the first word of "$ac_prog", so it can be a program name with args.
3708 set dummy $ac_prog; ac_word=$2
3709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3712   $as_echo_n "(cached) " >&6
3713 else
3714   if test -n "$ac_ct_CC"; then
3715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3719 do
3720   IFS=$as_save_IFS
3721   test -z "$as_dir" && as_dir=.
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724     ac_cv_prog_ac_ct_CC="$ac_prog"
3725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726     break 2
3727   fi
3728 done
3729 done
3730 IFS=$as_save_IFS
3731
3732 fi
3733 fi
3734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3735 if test -n "$ac_ct_CC"; then
3736   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3737 $as_echo "$ac_ct_CC" >&6; }
3738 else
3739   { $as_echo "$as_me:$LINENO: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744   test -n "$ac_ct_CC" && break
3745 done
3746
3747   if test "x$ac_ct_CC" = x; then
3748     CC=""
3749   else
3750     case $cross_compiling:$ac_tool_warned in
3751 yes:)
3752 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3754 ac_tool_warned=yes ;;
3755 esac
3756     CC=$ac_ct_CC
3757   fi
3758 fi
3759
3760 fi
3761
3762
3763 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3766 See \`config.log' for more details." >&5
3767 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details." >&2;}
3769    { (exit 1); exit 1; }; }; }
3770
3771 # Provide some information about the compiler.
3772 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3773 set X $ac_compile
3774 ac_compiler=$2
3775 { (ac_try="$ac_compiler --version >&5"
3776 case "(($ac_try" in
3777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778   *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3781 $as_echo "$ac_try_echo") >&5
3782   (eval "$ac_compiler --version >&5") 2>&5
3783   ac_status=$?
3784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }
3786 { (ac_try="$ac_compiler -v >&5"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3792 $as_echo "$ac_try_echo") >&5
3793   (eval "$ac_compiler -v >&5") 2>&5
3794   ac_status=$?
3795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }
3797 { (ac_try="$ac_compiler -V >&5"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803 $as_echo "$ac_try_echo") >&5
3804   (eval "$ac_compiler -V >&5") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }
3808
3809 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3810 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3811 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3812   $as_echo_n "(cached) " >&6
3813 else
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824 #ifndef __GNUC__
3825        choke me
3826 #endif
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3839 $as_echo "$ac_try_echo") >&5
3840   (eval "$ac_compile") 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } && {
3847          test -z "$ac_c_werror_flag" ||
3848          test ! -s conftest.err
3849        } && test -s conftest.$ac_objext; then
3850   ac_compiler_gnu=yes
3851 else
3852   $as_echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855         ac_compiler_gnu=no
3856 fi
3857
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860
3861 fi
3862 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3865   GCC=yes
3866 else
3867   GCC=
3868 fi
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if test "${ac_cv_prog_cc_g+set}" = set; then
3874   $as_echo_n "(cached) " >&6
3875 else
3876   ac_save_c_werror_flag=$ac_c_werror_flag
3877    ac_c_werror_flag=yes
3878    ac_cv_prog_cc_g=no
3879    CFLAGS="-g"
3880    cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h.  */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903   (eval "$ac_compile") 2>conftest.er1
3904   ac_status=$?
3905   grep -v '^ *+' conftest.er1 >conftest.err
3906   rm -f conftest.er1
3907   cat conftest.err >&5
3908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); } && {
3910          test -z "$ac_c_werror_flag" ||
3911          test ! -s conftest.err
3912        } && test -s conftest.$ac_objext; then
3913   ac_cv_prog_cc_g=yes
3914 else
3915   $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918         CFLAGS=""
3919       cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941 $as_echo "$ac_try_echo") >&5
3942   (eval "$ac_compile") 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } && {
3949          test -z "$ac_c_werror_flag" ||
3950          test ! -s conftest.err
3951        } && test -s conftest.$ac_objext; then
3952   :
3953 else
3954   $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957         ac_c_werror_flag=$ac_save_c_werror_flag
3958          CFLAGS="-g"
3959          cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965
3966 int
3967 main ()
3968 {
3969
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 rm -f conftest.$ac_objext
3975 if { (ac_try="$ac_compile"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3981 $as_echo "$ac_try_echo") >&5
3982   (eval "$ac_compile") 2>conftest.er1
3983   ac_status=$?
3984   grep -v '^ *+' conftest.er1 >conftest.err
3985   rm -f conftest.er1
3986   cat conftest.err >&5
3987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } && {
3989          test -z "$ac_c_werror_flag" ||
3990          test ! -s conftest.err
3991        } && test -s conftest.$ac_objext; then
3992   ac_cv_prog_cc_g=yes
3993 else
3994   $as_echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997
3998 fi
3999
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 fi
4002
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 fi
4005
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007    ac_c_werror_flag=$ac_save_c_werror_flag
4008 fi
4009 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4010 $as_echo "$ac_cv_prog_cc_g" >&6; }
4011 if test "$ac_test_CFLAGS" = set; then
4012   CFLAGS=$ac_save_CFLAGS
4013 elif test $ac_cv_prog_cc_g = yes; then
4014   if test "$GCC" = yes; then
4015     CFLAGS="-g -O2"
4016   else
4017     CFLAGS="-g"
4018   fi
4019 else
4020   if test "$GCC" = yes; then
4021     CFLAGS="-O2"
4022   else
4023     CFLAGS=
4024   fi
4025 fi
4026 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4027 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4028 if test "${ac_cv_prog_cc_c89+set}" = set; then
4029   $as_echo_n "(cached) " >&6
4030 else
4031   ac_cv_prog_cc_c89=no
4032 ac_save_CC=$CC
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h.  */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h.  */
4039 #include <stdarg.h>
4040 #include <stdio.h>
4041 #include <sys/types.h>
4042 #include <sys/stat.h>
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4047      char **p;
4048      int i;
4049 {
4050   return p[i];
4051 }
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4053 {
4054   char *s;
4055   va_list v;
4056   va_start (v,p);
4057   s = g (p, va_arg (v,int));
4058   va_end (v);
4059   return s;
4060 }
4061
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4063    function prototypes and stuff, but not '\xHH' hex character constants.
4064    These don't provoke an error unfortunately, instead are silently treated
4065    as 'x'.  The following induces an error, until -std is added to get
4066    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4067    array size at least.  It's necessary to write '\x00'==0 to get something
4068    that's true only with -std.  */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4070
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072    inside strings and character constants.  */
4073 #define FOO(x) 'x'
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 int argc;
4081 char **argv;
4082 int
4083 main ()
4084 {
4085 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4092 do
4093   CC="$ac_save_CC $ac_arg"
4094   rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4101 $as_echo "$ac_try_echo") >&5
4102   (eval "$ac_compile") 2>conftest.er1
4103   ac_status=$?
4104   grep -v '^ *+' conftest.er1 >conftest.err
4105   rm -f conftest.er1
4106   cat conftest.err >&5
4107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); } && {
4109          test -z "$ac_c_werror_flag" ||
4110          test ! -s conftest.err
4111        } && test -s conftest.$ac_objext; then
4112   ac_cv_prog_cc_c89=$ac_arg
4113 else
4114   $as_echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117
4118 fi
4119
4120 rm -f core conftest.err conftest.$ac_objext
4121   test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4125
4126 fi
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4129   x)
4130     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132   xno)
4133     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4135   *)
4136     CC="$CC $ac_cv_prog_cc_c89"
4137     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4140
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148 depcc="$CC"   am_compiler_list=
4149
4150 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4151 $as_echo_n "checking dependency style of $depcc... " >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4153   $as_echo_n "(cached) " >&6
4154 else
4155   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156   # We make a subdir and do the tests there.  Otherwise we can end up
4157   # making bogus files that we don't know about and never remove.  For
4158   # instance it was reported that on HP-UX the gcc test will end up
4159   # making a dummy file named `D' -- because `-MD' means `put the output
4160   # in D'.
4161   mkdir conftest.dir
4162   # Copy depcomp to subdir because otherwise we won't find it if we're
4163   # using a relative directory.
4164   cp "$am_depcomp" conftest.dir
4165   cd conftest.dir
4166   # We will build objects and dependencies in a subdirectory because
4167   # it helps to detect inapplicable dependency modes.  For instance
4168   # both Tru64's cc and ICC support -MD to output dependencies as a
4169   # side effect of compilation, but ICC will put the dependencies in
4170   # the current directory while Tru64 will put them in the object
4171   # directory.
4172   mkdir sub
4173
4174   am_cv_CC_dependencies_compiler_type=none
4175   if test "$am_compiler_list" = ""; then
4176      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4177   fi
4178   for depmode in $am_compiler_list; do
4179     # Setup a source with many dependencies, because some compilers
4180     # like to wrap large dependency lists on column 80 (with \), and
4181     # we should not choose a depcomp mode which is confused by this.
4182     #
4183     # We need to recreate these files for each test, as the compiler may
4184     # overwrite some of them when testing with obscure command lines.
4185     # This happens at least with the AIX C compiler.
4186     : > sub/conftest.c
4187     for i in 1 2 3 4 5 6; do
4188       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4189       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4190       # Solaris 8's {/usr,}/bin/sh.
4191       touch sub/conftst$i.h
4192     done
4193     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4194
4195     case $depmode in
4196     nosideeffect)
4197       # after this tag, mechanisms are not by side-effect, so they'll
4198       # only be used when explicitly requested
4199       if test "x$enable_dependency_tracking" = xyes; then
4200         continue
4201       else
4202         break
4203       fi
4204       ;;
4205     none) break ;;
4206     esac
4207     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4208     # mode.  It turns out that the SunPro C++ compiler does not properly
4209     # handle `-M -o', and we need to detect this.
4210     if depmode=$depmode \
4211        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4212        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4213        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4214          >/dev/null 2>conftest.err &&
4215        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4217        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218       # icc doesn't choke on unknown options, it will just issue warnings
4219       # or remarks (even with -Werror).  So we grep stderr for any message
4220       # that says an option was ignored or not supported.
4221       # When given -MP, icc 7.0 and 7.1 complain thusly:
4222       #   icc: Command line warning: ignoring option '-M'; no argument required
4223       # The diagnosis changed in icc 8.0:
4224       #   icc: Command line remark: option '-MP' not supported
4225       if (grep 'ignoring option' conftest.err ||
4226           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227         am_cv_CC_dependencies_compiler_type=$depmode
4228         break
4229       fi
4230     fi
4231   done
4232
4233   cd ..
4234   rm -rf conftest.dir
4235 else
4236   am_cv_CC_dependencies_compiler_type=none
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4242 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4243
4244
4245
4246 if
4247   test "x$enable_dependency_tracking" != xno \
4248   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4249   am__fastdepCC_TRUE=
4250   am__fastdepCC_FALSE='#'
4251 else
4252   am__fastdepCC_TRUE='#'
4253   am__fastdepCC_FALSE=
4254 fi
4255
4256
4257 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4258 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4259 if test "${lt_cv_path_SED+set}" = set; then
4260   $as_echo_n "(cached) " >&6
4261 else
4262   # Loop through the user's path and test for sed and gsed.
4263 # Then use that list of sed's as ones to test for truncation.
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267   IFS=$as_save_IFS
4268   test -z "$as_dir" && as_dir=.
4269   for lt_ac_prog in sed gsed; do
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4272         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4273       fi
4274     done
4275   done
4276 done
4277 IFS=$as_save_IFS
4278 lt_ac_max=0
4279 lt_ac_count=0
4280 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4281 # along with /bin/sed that truncates output.
4282 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4283   test ! -f $lt_ac_sed && continue
4284   cat /dev/null > conftest.in
4285   lt_ac_count=0
4286   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4287   # Check for GNU sed and select it if it is found.
4288   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4289     lt_cv_path_SED=$lt_ac_sed
4290     break
4291   fi
4292   while true; do
4293     cat conftest.in conftest.in >conftest.tmp
4294     mv conftest.tmp conftest.in
4295     cp conftest.in conftest.nl
4296     echo >>conftest.nl
4297     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4298     cmp -s conftest.out conftest.nl || break
4299     # 10000 chars as input seems more than enough
4300     test $lt_ac_count -gt 10 && break
4301     lt_ac_count=`expr $lt_ac_count + 1`
4302     if test $lt_ac_count -gt $lt_ac_max; then
4303       lt_ac_max=$lt_ac_count
4304       lt_cv_path_SED=$lt_ac_sed
4305     fi
4306   done
4307 done
4308
4309 fi
4310
4311 SED=$lt_cv_path_SED
4312
4313 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4314 $as_echo "$SED" >&6; }
4315
4316 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4317 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4318 if test "${ac_cv_path_GREP+set}" = set; then
4319   $as_echo_n "(cached) " >&6
4320 else
4321   if test -z "$GREP"; then
4322   ac_path_GREP_found=false
4323   # Loop through the user's path and test for each of PROGNAME-LIST
4324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_prog in grep ggrep; do
4330     for ac_exec_ext in '' $ac_executable_extensions; do
4331       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4332       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4333 # Check for GNU ac_path_GREP and select it if it is found.
4334   # Check for GNU $ac_path_GREP
4335 case `"$ac_path_GREP" --version 2>&1` in
4336 *GNU*)
4337   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4338 *)
4339   ac_count=0
4340   $as_echo_n 0123456789 >"conftest.in"
4341   while :
4342   do
4343     cat "conftest.in" "conftest.in" >"conftest.tmp"
4344     mv "conftest.tmp" "conftest.in"
4345     cp "conftest.in" "conftest.nl"
4346     $as_echo 'GREP' >> "conftest.nl"
4347     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349     ac_count=`expr $ac_count + 1`
4350     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4351       # Best one so far, save it but keep looking for a better one
4352       ac_cv_path_GREP="$ac_path_GREP"
4353       ac_path_GREP_max=$ac_count
4354     fi
4355     # 10*(2^10) chars as input seems more than enough
4356     test $ac_count -gt 10 && break
4357   done
4358   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 esac
4360
4361       $ac_path_GREP_found && break 3
4362     done
4363   done
4364 done
4365 IFS=$as_save_IFS
4366   if test -z "$ac_cv_path_GREP"; then
4367     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4368 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4369    { (exit 1); exit 1; }; }
4370   fi
4371 else
4372   ac_cv_path_GREP=$GREP
4373 fi
4374
4375 fi
4376 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4377 $as_echo "$ac_cv_path_GREP" >&6; }
4378  GREP="$ac_cv_path_GREP"
4379
4380
4381 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4382 $as_echo_n "checking for egrep... " >&6; }
4383 if test "${ac_cv_path_EGREP+set}" = set; then
4384   $as_echo_n "(cached) " >&6
4385 else
4386   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4387    then ac_cv_path_EGREP="$GREP -E"
4388    else
4389      if test -z "$EGREP"; then
4390   ac_path_EGREP_found=false
4391   # Loop through the user's path and test for each of PROGNAME-LIST
4392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397   for ac_prog in egrep; do
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4400       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4401 # Check for GNU ac_path_EGREP and select it if it is found.
4402   # Check for GNU $ac_path_EGREP
4403 case `"$ac_path_EGREP" --version 2>&1` in
4404 *GNU*)
4405   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4406 *)
4407   ac_count=0
4408   $as_echo_n 0123456789 >"conftest.in"
4409   while :
4410   do
4411     cat "conftest.in" "conftest.in" >"conftest.tmp"
4412     mv "conftest.tmp" "conftest.in"
4413     cp "conftest.in" "conftest.nl"
4414     $as_echo 'EGREP' >> "conftest.nl"
4415     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417     ac_count=`expr $ac_count + 1`
4418     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4419       # Best one so far, save it but keep looking for a better one
4420       ac_cv_path_EGREP="$ac_path_EGREP"
4421       ac_path_EGREP_max=$ac_count
4422     fi
4423     # 10*(2^10) chars as input seems more than enough
4424     test $ac_count -gt 10 && break
4425   done
4426   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 esac
4428
4429       $ac_path_EGREP_found && break 3
4430     done
4431   done
4432 done
4433 IFS=$as_save_IFS
4434   if test -z "$ac_cv_path_EGREP"; then
4435     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4436 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4437    { (exit 1); exit 1; }; }
4438   fi
4439 else
4440   ac_cv_path_EGREP=$EGREP
4441 fi
4442
4443    fi
4444 fi
4445 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4446 $as_echo "$ac_cv_path_EGREP" >&6; }
4447  EGREP="$ac_cv_path_EGREP"
4448
4449
4450
4451 # Check whether --with-gnu-ld was given.
4452 if test "${with_gnu_ld+set}" = set; then
4453   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4454 else
4455   with_gnu_ld=no
4456 fi
4457
4458 ac_prog=ld
4459 if test "$GCC" = yes; then
4460   # Check if gcc -print-prog-name=ld gives a path.
4461   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4462 $as_echo_n "checking for ld used by $CC... " >&6; }
4463   case $host in
4464   *-*-mingw*)
4465     # gcc leaves a trailing carriage return which upsets mingw
4466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4467   *)
4468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4469   esac
4470   case $ac_prog in
4471     # Accept absolute paths.
4472     [\\/]* | ?:[\\/]*)
4473       re_direlt='/[^/][^/]*/\.\./'
4474       # Canonicalize the pathname of ld
4475       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4476       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4477         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4478       done
4479       test -z "$LD" && LD="$ac_prog"
4480       ;;
4481   "")
4482     # If it fails, then pretend we aren't using GCC.
4483     ac_prog=ld
4484     ;;
4485   *)
4486     # If it is relative, then search for the first ld in PATH.
4487     with_gnu_ld=unknown
4488     ;;
4489   esac
4490 elif test "$with_gnu_ld" = yes; then
4491   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4492 $as_echo_n "checking for GNU ld... " >&6; }
4493 else
4494   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4495 $as_echo_n "checking for non-GNU ld... " >&6; }
4496 fi
4497 if test "${lt_cv_path_LD+set}" = set; then
4498   $as_echo_n "(cached) " >&6
4499 else
4500   if test -z "$LD"; then
4501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4502   for ac_dir in $PATH; do
4503     IFS="$lt_save_ifs"
4504     test -z "$ac_dir" && ac_dir=.
4505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4506       lt_cv_path_LD="$ac_dir/$ac_prog"
4507       # Check to see if the program is GNU ld.  I'd rather use --version,
4508       # but apparently some variants of GNU ld only accept -v.
4509       # Break only if it was the GNU/non-GNU ld that we prefer.
4510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4511       *GNU* | *'with BFD'*)
4512         test "$with_gnu_ld" != no && break
4513         ;;
4514       *)
4515         test "$with_gnu_ld" != yes && break
4516         ;;
4517       esac
4518     fi
4519   done
4520   IFS="$lt_save_ifs"
4521 else
4522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4523 fi
4524 fi
4525
4526 LD="$lt_cv_path_LD"
4527 if test -n "$LD"; then
4528   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4529 $as_echo "$LD" >&6; }
4530 else
4531   { $as_echo "$as_me:$LINENO: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4535 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4536    { (exit 1); exit 1; }; }
4537 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4540   $as_echo_n "(cached) " >&6
4541 else
4542   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4543 case `$LD -v 2>&1 </dev/null` in
4544 *GNU* | *'with BFD'*)
4545   lt_cv_prog_gnu_ld=yes
4546   ;;
4547 *)
4548   lt_cv_prog_gnu_ld=no
4549   ;;
4550 esac
4551 fi
4552 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4553 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4554 with_gnu_ld=$lt_cv_prog_gnu_ld
4555
4556
4557 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if test "${lt_cv_ld_reload_flag+set}" = set; then
4560   $as_echo_n "(cached) " >&6
4561 else
4562   lt_cv_ld_reload_flag='-r'
4563 fi
4564 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4568 "" | " "*) ;;
4569 *) reload_flag=" $reload_flag" ;;
4570 esac
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4572 case $host_os in
4573   darwin*)
4574     if test "$GCC" = yes; then
4575       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4576     else
4577       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4578     fi
4579     ;;
4580 esac
4581
4582 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4583 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4584 if test "${lt_cv_path_NM+set}" = set; then
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -n "$NM"; then
4588   # Let the user override the test.
4589   lt_cv_path_NM="$NM"
4590 else
4591   lt_nm_to_check="${ac_tool_prefix}nm"
4592   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4593     lt_nm_to_check="$lt_nm_to_check nm"
4594   fi
4595   for lt_tmp_nm in $lt_nm_to_check; do
4596     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4597     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4598       IFS="$lt_save_ifs"
4599       test -z "$ac_dir" && ac_dir=.
4600       tmp_nm="$ac_dir/$lt_tmp_nm"
4601       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4602         # Check to see if the nm accepts a BSD-compat flag.
4603         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4604         #   nm: unknown option "B" ignored
4605         # Tru64's nm complains that /dev/null is an invalid object file
4606         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4607         */dev/null* | *'Invalid file or object type'*)
4608           lt_cv_path_NM="$tmp_nm -B"
4609           break
4610           ;;
4611         *)
4612           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4613           */dev/null*)
4614             lt_cv_path_NM="$tmp_nm -p"
4615             break
4616             ;;
4617           *)
4618             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4619             continue # so that we can try to find one that supports BSD flags
4620             ;;
4621           esac
4622           ;;
4623         esac
4624       fi
4625     done
4626     IFS="$lt_save_ifs"
4627   done
4628   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4629 fi
4630 fi
4631 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4632 $as_echo "$lt_cv_path_NM" >&6; }
4633 NM="$lt_cv_path_NM"
4634
4635 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4636 $as_echo_n "checking whether ln -s works... " >&6; }
4637 LN_S=$as_ln_s
4638 if test "$LN_S" = "ln -s"; then
4639   { $as_echo "$as_me:$LINENO: result: yes" >&5
4640 $as_echo "yes" >&6; }
4641 else
4642   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4643 $as_echo "no, using $LN_S" >&6; }
4644 fi
4645
4646 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4647 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4648 if test "${lt_cv_deplibs_check_method+set}" = set; then
4649   $as_echo_n "(cached) " >&6
4650 else
4651   lt_cv_file_magic_cmd='$MAGIC_CMD'
4652 lt_cv_file_magic_test_file=
4653 lt_cv_deplibs_check_method='unknown'
4654 # Need to set the preceding variable on all platforms that support
4655 # interlibrary dependencies.
4656 # 'none' -- dependencies not supported.
4657 # `unknown' -- same as none, but documents that we really don't know.
4658 # 'pass_all' -- all dependencies passed with no checks.
4659 # 'test_compile' -- check by making test program.
4660 # 'file_magic [[regex]]' -- check by looking for files in library path
4661 # which responds to the $file_magic_cmd with a given extended regex.
4662 # If you have `file' or equivalent on your system and you're not sure
4663 # whether `pass_all' will *always* work, you probably want this one.
4664
4665 case $host_os in
4666 aix4* | aix5*)
4667   lt_cv_deplibs_check_method=pass_all
4668   ;;
4669
4670 beos*)
4671   lt_cv_deplibs_check_method=pass_all
4672   ;;
4673
4674 bsdi[45]*)
4675   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4676   lt_cv_file_magic_cmd='/usr/bin/file -L'
4677   lt_cv_file_magic_test_file=/shlib/libc.so
4678   ;;
4679
4680 cygwin*)
4681   # func_win32_libid is a shell function defined in ltmain.sh
4682   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4683   lt_cv_file_magic_cmd='func_win32_libid'
4684   ;;
4685
4686 mingw* | pw32*)
4687   # Base MSYS/MinGW do not provide the 'file' command needed by
4688   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4689   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4690   lt_cv_file_magic_cmd='$OBJDUMP -f'
4691   ;;
4692
4693 darwin* | rhapsody*)
4694   lt_cv_deplibs_check_method=pass_all
4695   ;;
4696
4697 freebsd* | kfreebsd*-gnu | dragonfly*)
4698   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4699     case $host_cpu in
4700     i*86 )
4701       # Not sure whether the presence of OpenBSD here was a mistake.
4702       # Let's accept both of them until this is cleared up.
4703       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4704       lt_cv_file_magic_cmd=/usr/bin/file
4705       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4706       ;;
4707     esac
4708   else
4709     lt_cv_deplibs_check_method=pass_all
4710   fi
4711   ;;
4712
4713 gnu*)
4714   lt_cv_deplibs_check_method=pass_all
4715   ;;
4716
4717 hpux10.20* | hpux11*)
4718   lt_cv_file_magic_cmd=/usr/bin/file
4719   case $host_cpu in
4720   ia64*)
4721     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4722     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4723     ;;
4724   hppa*64*)
4725     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]'
4726     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4727     ;;
4728   *)
4729     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4730     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4731     ;;
4732   esac
4733   ;;
4734
4735 interix3*)
4736   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4737   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4738   ;;
4739
4740 irix5* | irix6* | nonstopux*)
4741   case $LD in
4742   *-32|*"-32 ") libmagic=32-bit;;
4743   *-n32|*"-n32 ") libmagic=N32;;
4744   *-64|*"-64 ") libmagic=64-bit;;
4745   *) libmagic=never-match;;
4746   esac
4747   lt_cv_deplibs_check_method=pass_all
4748   ;;
4749
4750 # This must be Linux ELF.
4751 linux*)
4752   lt_cv_deplibs_check_method=pass_all
4753   ;;
4754
4755 netbsd*)
4756   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4757     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4758   else
4759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4760   fi
4761   ;;
4762
4763 newos6*)
4764   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4765   lt_cv_file_magic_cmd=/usr/bin/file
4766   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4767   ;;
4768
4769 nto-qnx*)
4770   lt_cv_deplibs_check_method=unknown
4771   ;;
4772
4773 openbsd*)
4774   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4775     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4776   else
4777     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4778   fi
4779   ;;
4780
4781 osf3* | osf4* | osf5*)
4782   lt_cv_deplibs_check_method=pass_all
4783   ;;
4784
4785 solaris*)
4786   lt_cv_deplibs_check_method=pass_all
4787   ;;
4788
4789 sysv4 | sysv4.3*)
4790   case $host_vendor in
4791   motorola)
4792     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]'
4793     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4794     ;;
4795   ncr)
4796     lt_cv_deplibs_check_method=pass_all
4797     ;;
4798   sequent)
4799     lt_cv_file_magic_cmd='/bin/file'
4800     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4801     ;;
4802   sni)
4803     lt_cv_file_magic_cmd='/bin/file'
4804     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4805     lt_cv_file_magic_test_file=/lib/libc.so
4806     ;;
4807   siemens)
4808     lt_cv_deplibs_check_method=pass_all
4809     ;;
4810   pc)
4811     lt_cv_deplibs_check_method=pass_all
4812     ;;
4813   esac
4814   ;;
4815
4816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4817   lt_cv_deplibs_check_method=pass_all
4818   ;;
4819 esac
4820
4821 fi
4822 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4823 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4824 file_magic_cmd=$lt_cv_file_magic_cmd
4825 deplibs_check_method=$lt_cv_deplibs_check_method
4826 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4827
4828
4829
4830
4831 # If no C compiler was specified, use CC.
4832 LTCC=${LTCC-"$CC"}
4833
4834 # If no C compiler flags were specified, use CFLAGS.
4835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4836
4837 # Allow CC to be a program name with arguments.
4838 compiler=$CC
4839
4840
4841 # Check whether --enable-libtool-lock was given.
4842 if test "${enable_libtool_lock+set}" = set; then
4843   enableval=$enable_libtool_lock;
4844 fi
4845
4846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4847
4848 # Some flags need to be propagated to the compiler or linker for good
4849 # libtool support.
4850 case $host in
4851 ia64-*-hpux*)
4852   # Find out which ABI we are using.
4853   echo 'int i;' > conftest.$ac_ext
4854   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855   (eval $ac_compile) 2>&5
4856   ac_status=$?
4857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; then
4859     case `/usr/bin/file conftest.$ac_objext` in
4860     *ELF-32*)
4861       HPUX_IA64_MODE="32"
4862       ;;
4863     *ELF-64*)
4864       HPUX_IA64_MODE="64"
4865       ;;
4866     esac
4867   fi
4868   rm -rf conftest*
4869   ;;
4870 *-*-irix6*)
4871   # Find out which ABI we are using.
4872   echo '#line 4872 "configure"' > conftest.$ac_ext
4873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>&5
4875   ac_status=$?
4876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; then
4878    if test "$lt_cv_prog_gnu_ld" = yes; then
4879     case `/usr/bin/file conftest.$ac_objext` in
4880     *32-bit*)
4881       LD="${LD-ld} -melf32bsmip"
4882       ;;
4883     *N32*)
4884       LD="${LD-ld} -melf32bmipn32"
4885       ;;
4886     *64-bit*)
4887       LD="${LD-ld} -melf64bmip"
4888       ;;
4889     esac
4890    else
4891     case `/usr/bin/file conftest.$ac_objext` in
4892     *32-bit*)
4893       LD="${LD-ld} -32"
4894       ;;
4895     *N32*)
4896       LD="${LD-ld} -n32"
4897       ;;
4898     *64-bit*)
4899       LD="${LD-ld} -64"
4900       ;;
4901     esac
4902    fi
4903   fi
4904   rm -rf conftest*
4905   ;;
4906
4907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4908   # Find out which ABI we are using.
4909   echo 'int i;' > conftest.$ac_ext
4910   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911   (eval $ac_compile) 2>&5
4912   ac_status=$?
4913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; then
4915     case `/usr/bin/file conftest.o` in
4916     *32-bit*)
4917       case $host in
4918         x86_64-*linux*)
4919           LD="${LD-ld} -m elf_i386"
4920           ;;
4921         ppc64-*linux*|powerpc64-*linux*)
4922           LD="${LD-ld} -m elf32ppclinux"
4923           ;;
4924         s390x-*linux*)
4925           LD="${LD-ld} -m elf_s390"
4926           ;;
4927         sparc64-*linux*)
4928           LD="${LD-ld} -m elf32_sparc"
4929           ;;
4930       esac
4931       ;;
4932     *64-bit*)
4933       case $host in
4934         x86_64-*linux*)
4935           LD="${LD-ld} -m elf_x86_64"
4936           ;;
4937         ppc*-*linux*|powerpc*-*linux*)
4938           LD="${LD-ld} -m elf64ppc"
4939           ;;
4940         s390*-*linux*)
4941           LD="${LD-ld} -m elf64_s390"
4942           ;;
4943         sparc*-*linux*)
4944           LD="${LD-ld} -m elf64_sparc"
4945           ;;
4946       esac
4947       ;;
4948     esac
4949   fi
4950   rm -rf conftest*
4951   ;;
4952
4953 *-*-sco3.2v5*)
4954   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4955   SAVE_CFLAGS="$CFLAGS"
4956   CFLAGS="$CFLAGS -belf"
4957   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4958 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4959 if test "${lt_cv_cc_needs_belf+set}" = set; then
4960   $as_echo_n "(cached) " >&6
4961 else
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      cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974
4975 int
4976 main ()
4977 {
4978
4979   ;
4980   return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (ac_try="$ac_link"
4985 case "(($ac_try" in
4986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987   *) ac_try_echo=$ac_try;;
4988 esac
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991   (eval "$ac_link") 2>conftest.er1
4992   ac_status=$?
4993   grep -v '^ *+' conftest.er1 >conftest.err
4994   rm -f conftest.er1
4995   cat conftest.err >&5
4996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } && {
4998          test -z "$ac_c_werror_flag" ||
4999          test ! -s conftest.err
5000        } && test -s conftest$ac_exeext && {
5001          test "$cross_compiling" = yes ||
5002          $as_test_x conftest$ac_exeext
5003        }; then
5004   lt_cv_cc_needs_belf=yes
5005 else
5006   $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009         lt_cv_cc_needs_belf=no
5010 fi
5011
5012 rm -rf conftest.dSYM
5013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5014       conftest$ac_exeext conftest.$ac_ext
5015      ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020
5021 fi
5022 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5023 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5024   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5025     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5026     CFLAGS="$SAVE_CFLAGS"
5027   fi
5028   ;;
5029 sparc*-*solaris*)
5030   # Find out which ABI we are using.
5031   echo 'int i;' > conftest.$ac_ext
5032   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033   (eval $ac_compile) 2>&5
5034   ac_status=$?
5035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; then
5037     case `/usr/bin/file conftest.o` in
5038     *64-bit*)
5039       case $lt_cv_prog_gnu_ld in
5040       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5041       *)    LD="${LD-ld} -64" ;;
5042       esac
5043       ;;
5044     esac
5045   fi
5046   rm -rf conftest*
5047   ;;
5048
5049
5050 esac
5051
5052 need_locks="$enable_libtool_lock"
5053
5054
5055 ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5061 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5062 # On Suns, sometimes $CPP names a directory.
5063 if test -n "$CPP" && test -d "$CPP"; then
5064   CPP=
5065 fi
5066 if test -z "$CPP"; then
5067   if test "${ac_cv_prog_CPP+set}" = set; then
5068   $as_echo_n "(cached) " >&6
5069 else
5070       # Double quotes because CPP needs to be expanded
5071     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5072     do
5073       ac_preproc_ok=false
5074 for ac_c_preproc_warn_flag in '' yes
5075 do
5076   # Use a header file that comes with gcc, so configuring glibc
5077   # with a fresh cross-compiler works.
5078   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079   # <limits.h> exists even on freestanding compilers.
5080   # On the NeXT, cc -E runs the code through the compiler's parser,
5081   # not just through cpp. "Syntax error" is here to catch this case.
5082   cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 #ifdef __STDC__
5089 # include <limits.h>
5090 #else
5091 # include <assert.h>
5092 #endif
5093                      Syntax error
5094 _ACEOF
5095 if { (ac_try="$ac_cpp conftest.$ac_ext"
5096 case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101 $as_echo "$ac_try_echo") >&5
5102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null && {
5109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110          test ! -s conftest.err
5111        }; then
5112   :
5113 else
5114   $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117   # Broken: fails on valid input.
5118 continue
5119 fi
5120
5121 rm -f conftest.err conftest.$ac_ext
5122
5123   # OK, works on sane cases.  Now check whether nonexistent headers
5124   # can be detected and how.
5125   cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h.  */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h.  */
5131 #include <ac_nonexistent.h>
5132 _ACEOF
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5134 case "(($ac_try" in
5135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136   *) ac_try_echo=$ac_try;;
5137 esac
5138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139 $as_echo "$ac_try_echo") >&5
5140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } >/dev/null && {
5147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5148          test ! -s conftest.err
5149        }; then
5150   # Broken: success on invalid input.
5151 continue
5152 else
5153   $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156   # Passes both tests.
5157 ac_preproc_ok=:
5158 break
5159 fi
5160
5161 rm -f conftest.err conftest.$ac_ext
5162
5163 done
5164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5165 rm -f conftest.err conftest.$ac_ext
5166 if $ac_preproc_ok; then
5167   break
5168 fi
5169
5170     done
5171     ac_cv_prog_CPP=$CPP
5172
5173 fi
5174   CPP=$ac_cv_prog_CPP
5175 else
5176   ac_cv_prog_CPP=$CPP
5177 fi
5178 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5179 $as_echo "$CPP" >&6; }
5180 ac_preproc_ok=false
5181 for ac_c_preproc_warn_flag in '' yes
5182 do
5183   # Use a header file that comes with gcc, so configuring glibc
5184   # with a fresh cross-compiler works.
5185   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5186   # <limits.h> exists even on freestanding compilers.
5187   # On the NeXT, cc -E runs the code through the compiler's parser,
5188   # not just through cpp. "Syntax error" is here to catch this case.
5189   cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h.  */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h.  */
5195 #ifdef __STDC__
5196 # include <limits.h>
5197 #else
5198 # include <assert.h>
5199 #endif
5200                      Syntax error
5201 _ACEOF
5202 if { (ac_try="$ac_cpp conftest.$ac_ext"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } >/dev/null && {
5216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5217          test ! -s conftest.err
5218        }; then
5219   :
5220 else
5221   $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224   # Broken: fails on valid input.
5225 continue
5226 fi
5227
5228 rm -f conftest.err conftest.$ac_ext
5229
5230   # OK, works on sane cases.  Now check whether nonexistent headers
5231   # can be detected and how.
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 #include <ac_nonexistent.h>
5239 _ACEOF
5240 if { (ac_try="$ac_cpp conftest.$ac_ext"
5241 case "(($ac_try" in
5242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243   *) ac_try_echo=$ac_try;;
5244 esac
5245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5246 $as_echo "$ac_try_echo") >&5
5247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5248   ac_status=$?
5249   grep -v '^ *+' conftest.er1 >conftest.err
5250   rm -f conftest.er1
5251   cat conftest.err >&5
5252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } >/dev/null && {
5254          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5255          test ! -s conftest.err
5256        }; then
5257   # Broken: success on invalid input.
5258 continue
5259 else
5260   $as_echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263   # Passes both tests.
5264 ac_preproc_ok=:
5265 break
5266 fi
5267
5268 rm -f conftest.err conftest.$ac_ext
5269
5270 done
5271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272 rm -f conftest.err conftest.$ac_ext
5273 if $ac_preproc_ok; then
5274   :
5275 else
5276   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5278 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5279 See \`config.log' for more details." >&5
5280 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5281 See \`config.log' for more details." >&2;}
5282    { (exit 1); exit 1; }; }; }
5283 fi
5284
5285 ac_ext=c
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290
5291
5292 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5293 $as_echo_n "checking for ANSI C header files... " >&6; }
5294 if test "${ac_cv_header_stdc+set}" = set; then
5295   $as_echo_n "(cached) " >&6
5296 else
5297   cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 #include <stdlib.h>
5304 #include <stdarg.h>
5305 #include <string.h>
5306 #include <float.h>
5307
5308 int
5309 main ()
5310 {
5311
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (ac_try="$ac_compile"
5318 case "(($ac_try" in
5319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320   *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324   (eval "$ac_compile") 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } && {
5331          test -z "$ac_c_werror_flag" ||
5332          test ! -s conftest.err
5333        } && test -s conftest.$ac_objext; then
5334   ac_cv_header_stdc=yes
5335 else
5336   $as_echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339         ac_cv_header_stdc=no
5340 fi
5341
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343
5344 if test $ac_cv_header_stdc = yes; then
5345   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 #include <string.h>
5353
5354 _ACEOF
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356   $EGREP "memchr" >/dev/null 2>&1; then
5357   :
5358 else
5359   ac_cv_header_stdc=no
5360 fi
5361 rm -f conftest*
5362
5363 fi
5364
5365 if test $ac_cv_header_stdc = yes; then
5366   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 #include <stdlib.h>
5374
5375 _ACEOF
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377   $EGREP "free" >/dev/null 2>&1; then
5378   :
5379 else
5380   ac_cv_header_stdc=no
5381 fi
5382 rm -f conftest*
5383
5384 fi
5385
5386 if test $ac_cv_header_stdc = yes; then
5387   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5388   if test "$cross_compiling" = yes; then
5389   :
5390 else
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #include <ctype.h>
5398 #include <stdlib.h>
5399 #if ((' ' & 0x0FF) == 0x020)
5400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5402 #else
5403 # define ISLOWER(c) \
5404                    (('a' <= (c) && (c) <= 'i') \
5405                      || ('j' <= (c) && (c) <= 'r') \
5406                      || ('s' <= (c) && (c) <= 'z'))
5407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5408 #endif
5409
5410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5411 int
5412 main ()
5413 {
5414   int i;
5415   for (i = 0; i < 256; i++)
5416     if (XOR (islower (i), ISLOWER (i))
5417         || toupper (i) != TOUPPER (i))
5418       return 2;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest$ac_exeext
5423 if { (ac_try="$ac_link"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429 $as_echo "$ac_try_echo") >&5
5430   (eval "$ac_link") 2>&5
5431   ac_status=$?
5432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5434   { (case "(($ac_try" in
5435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436   *) ac_try_echo=$ac_try;;
5437 esac
5438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5439 $as_echo "$ac_try_echo") >&5
5440   (eval "$ac_try") 2>&5
5441   ac_status=$?
5442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; }; then
5444   :
5445 else
5446   $as_echo "$as_me: program exited with status $ac_status" >&5
5447 $as_echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 ( exit $ac_status )
5451 ac_cv_header_stdc=no
5452 fi
5453 rm -rf conftest.dSYM
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 fi
5456
5457
5458 fi
5459 fi
5460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5461 $as_echo "$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5463
5464 cat >>confdefs.h <<\_ACEOF
5465 #define STDC_HEADERS 1
5466 _ACEOF
5467
5468 fi
5469
5470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5481                   inttypes.h stdint.h unistd.h
5482 do
5483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 $as_echo_n "checking for $ac_header... " >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487   $as_echo_n "(cached) " >&6
5488 else
5489   cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 $ac_includes_default
5496
5497 #include <$ac_header>
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503   *) ac_try_echo=$ac_try;;
5504 esac
5505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5506 $as_echo "$ac_try_echo") >&5
5507   (eval "$ac_compile") 2>conftest.er1
5508   ac_status=$?
5509   grep -v '^ *+' conftest.er1 >conftest.err
5510   rm -f conftest.er1
5511   cat conftest.err >&5
5512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); } && {
5514          test -z "$ac_c_werror_flag" ||
5515          test ! -s conftest.err
5516        } && test -s conftest.$ac_objext; then
5517   eval "$as_ac_Header=yes"
5518 else
5519   $as_echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522         eval "$as_ac_Header=no"
5523 fi
5524
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 fi
5527 ac_res=`eval 'as_val=${'$as_ac_Header'}
5528                  $as_echo "$as_val"'`
5529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5530 $as_echo "$ac_res" >&6; }
5531 as_val=`eval 'as_val=${'$as_ac_Header'}
5532                  $as_echo "$as_val"'`
5533    if test "x$as_val" = x""yes; then
5534   cat >>confdefs.h <<_ACEOF
5535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5537
5538 fi
5539
5540 done
5541
5542
5543
5544 for ac_header in dlfcn.h
5545 do
5546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 $as_echo_n "checking for $ac_header... " >&6; }
5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551   $as_echo_n "(cached) " >&6
5552 fi
5553 ac_res=`eval 'as_val=${'$as_ac_Header'}
5554                  $as_echo "$as_val"'`
5555                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5556 $as_echo "$ac_res" >&6; }
5557 else
5558   # Is the header compilable?
5559 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5560 $as_echo_n "checking $ac_header usability... " >&6; }
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 $ac_includes_default
5568 #include <$ac_header>
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574   *) ac_try_echo=$ac_try;;
5575 esac
5576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5577 $as_echo "$ac_try_echo") >&5
5578   (eval "$ac_compile") 2>conftest.er1
5579   ac_status=$?
5580   grep -v '^ *+' conftest.er1 >conftest.err
5581   rm -f conftest.er1
5582   cat conftest.err >&5
5583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); } && {
5585          test -z "$ac_c_werror_flag" ||
5586          test ! -s conftest.err
5587        } && test -s conftest.$ac_objext; then
5588   ac_header_compiler=yes
5589 else
5590   $as_echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593         ac_header_compiler=no
5594 fi
5595
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5598 $as_echo "$ac_header_compiler" >&6; }
5599
5600 # Is the header present?
5601 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5602 $as_echo_n "checking $ac_header presence... " >&6; }
5603 cat >conftest.$ac_ext <<_ACEOF
5604 /* confdefs.h.  */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h.  */
5609 #include <$ac_header>
5610 _ACEOF
5611 if { (ac_try="$ac_cpp conftest.$ac_ext"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617 $as_echo "$ac_try_echo") >&5
5618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } >/dev/null && {
5625          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5626          test ! -s conftest.err
5627        }; then
5628   ac_header_preproc=yes
5629 else
5630   $as_echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633   ac_header_preproc=no
5634 fi
5635
5636 rm -f conftest.err conftest.$ac_ext
5637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5638 $as_echo "$ac_header_preproc" >&6; }
5639
5640 # So?  What about this header?
5641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5642   yes:no: )
5643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5644 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5647     ac_header_preproc=yes
5648     ;;
5649   no:yes:* )
5650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5651 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5653 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5655 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5657 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5658     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5661 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5662
5663     ;;
5664 esac
5665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5666 $as_echo_n "checking for $ac_header... " >&6; }
5667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5668   $as_echo_n "(cached) " >&6
5669 else
5670   eval "$as_ac_Header=\$ac_header_preproc"
5671 fi
5672 ac_res=`eval 'as_val=${'$as_ac_Header'}
5673                  $as_echo "$as_val"'`
5674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5675 $as_echo "$ac_res" >&6; }
5676
5677 fi
5678 as_val=`eval 'as_val=${'$as_ac_Header'}
5679                  $as_echo "$as_val"'`
5680    if test "x$as_val" = x""yes; then
5681   cat >>confdefs.h <<_ACEOF
5682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5683 _ACEOF
5684
5685 fi
5686
5687 done
5688
5689
5690
5691 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5692     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5693     (test "X$CXX" != "Xg++"))) ; then
5694   ac_ext=cpp
5695 ac_cpp='$CXXCPP $CPPFLAGS'
5696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5699 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5700 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5701 if test -z "$CXXCPP"; then
5702   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5703   $as_echo_n "(cached) " >&6
5704 else
5705       # Double quotes because CXXCPP needs to be expanded
5706     for CXXCPP in "$CXX -E" "/lib/cpp"
5707     do
5708       ac_preproc_ok=false
5709 for ac_cxx_preproc_warn_flag in '' yes
5710 do
5711   # Use a header file that comes with gcc, so configuring glibc
5712   # with a fresh cross-compiler works.
5713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5714   # <limits.h> exists even on freestanding compilers.
5715   # On the NeXT, cc -E runs the code through the compiler's parser,
5716   # not just through cpp. "Syntax error" is here to catch this case.
5717   cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723 #ifdef __STDC__
5724 # include <limits.h>
5725 #else
5726 # include <assert.h>
5727 #endif
5728                      Syntax error
5729 _ACEOF
5730 if { (ac_try="$ac_cpp conftest.$ac_ext"
5731 case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5736 $as_echo "$ac_try_echo") >&5
5737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5738   ac_status=$?
5739   grep -v '^ *+' conftest.er1 >conftest.err
5740   rm -f conftest.er1
5741   cat conftest.err >&5
5742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } >/dev/null && {
5744          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5745          test ! -s conftest.err
5746        }; then
5747   :
5748 else
5749   $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5751
5752   # Broken: fails on valid input.
5753 continue
5754 fi
5755
5756 rm -f conftest.err conftest.$ac_ext
5757
5758   # OK, works on sane cases.  Now check whether nonexistent headers
5759   # can be detected and how.
5760   cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766 #include <ac_nonexistent.h>
5767 _ACEOF
5768 if { (ac_try="$ac_cpp conftest.$ac_ext"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5776   ac_status=$?
5777   grep -v '^ *+' conftest.er1 >conftest.err
5778   rm -f conftest.er1
5779   cat conftest.err >&5
5780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); } >/dev/null && {
5782          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5783          test ! -s conftest.err
5784        }; then
5785   # Broken: success on invalid input.
5786 continue
5787 else
5788   $as_echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791   # Passes both tests.
5792 ac_preproc_ok=:
5793 break
5794 fi
5795
5796 rm -f conftest.err conftest.$ac_ext
5797
5798 done
5799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800 rm -f conftest.err conftest.$ac_ext
5801 if $ac_preproc_ok; then
5802   break
5803 fi
5804
5805     done
5806     ac_cv_prog_CXXCPP=$CXXCPP
5807
5808 fi
5809   CXXCPP=$ac_cv_prog_CXXCPP
5810 else
5811   ac_cv_prog_CXXCPP=$CXXCPP
5812 fi
5813 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5814 $as_echo "$CXXCPP" >&6; }
5815 ac_preproc_ok=false
5816 for ac_cxx_preproc_warn_flag in '' yes
5817 do
5818   # Use a header file that comes with gcc, so configuring glibc
5819   # with a fresh cross-compiler works.
5820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821   # <limits.h> exists even on freestanding compilers.
5822   # On the NeXT, cc -E runs the code through the compiler's parser,
5823   # not just through cpp. "Syntax error" is here to catch this case.
5824   cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h.  */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h.  */
5830 #ifdef __STDC__
5831 # include <limits.h>
5832 #else
5833 # include <assert.h>
5834 #endif
5835                      Syntax error
5836 _ACEOF
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5843 $as_echo "$ac_try_echo") >&5
5844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845   ac_status=$?
5846   grep -v '^ *+' conftest.er1 >conftest.err
5847   rm -f conftest.er1
5848   cat conftest.err >&5
5849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } >/dev/null && {
5851          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852          test ! -s conftest.err
5853        }; then
5854   :
5855 else
5856   $as_echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859   # Broken: fails on valid input.
5860 continue
5861 fi
5862
5863 rm -f conftest.err conftest.$ac_ext
5864
5865   # OK, works on sane cases.  Now check whether nonexistent headers
5866   # can be detected and how.
5867   cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873 #include <ac_nonexistent.h>
5874 _ACEOF
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5881 $as_echo "$ac_try_echo") >&5
5882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5883   ac_status=$?
5884   grep -v '^ *+' conftest.er1 >conftest.err
5885   rm -f conftest.er1
5886   cat conftest.err >&5
5887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } >/dev/null && {
5889          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5890          test ! -s conftest.err
5891        }; then
5892   # Broken: success on invalid input.
5893 continue
5894 else
5895   $as_echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898   # Passes both tests.
5899 ac_preproc_ok=:
5900 break
5901 fi
5902
5903 rm -f conftest.err conftest.$ac_ext
5904
5905 done
5906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5907 rm -f conftest.err conftest.$ac_ext
5908 if $ac_preproc_ok; then
5909   :
5910 else
5911   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5913 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5914 See \`config.log' for more details." >&5
5915 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5916 See \`config.log' for more details." >&2;}
5917    { (exit 1); exit 1; }; }; }
5918 fi
5919
5920 ac_ext=cpp
5921 ac_cpp='$CXXCPP $CPPFLAGS'
5922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5925
5926 fi
5927
5928
5929 ac_ext=f
5930 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5931 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5933 if test -n "$ac_tool_prefix"; then
5934   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
5935   do
5936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if test "${ac_cv_prog_F77+set}" = set; then
5941   $as_echo_n "(cached) " >&6
5942 else
5943   if test -n "$F77"; then
5944   ac_cv_prog_F77="$F77" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949   IFS=$as_save_IFS
5950   test -z "$as_dir" && as_dir=.
5951   for ac_exec_ext in '' $ac_executable_extensions; do
5952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5954     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955     break 2
5956   fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 F77=$ac_cv_prog_F77
5964 if test -n "$F77"; then
5965   { $as_echo "$as_me:$LINENO: result: $F77" >&5
5966 $as_echo "$F77" >&6; }
5967 else
5968   { $as_echo "$as_me:$LINENO: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972
5973     test -n "$F77" && break
5974   done
5975 fi
5976 if test -z "$F77"; then
5977   ac_ct_F77=$F77
5978   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
5979 do
5980   # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if test -n "$ac_ct_F77"; then
5988   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997     ac_cv_prog_ac_ct_F77="$ac_prog"
5998     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6008 if test -n "$ac_ct_F77"; then
6009   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6010 $as_echo "$ac_ct_F77" >&6; }
6011 else
6012   { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016
6017   test -n "$ac_ct_F77" && break
6018 done
6019
6020   if test "x$ac_ct_F77" = x; then
6021     F77=""
6022   else
6023     case $cross_compiling:$ac_tool_warned in
6024 yes:)
6025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027 ac_tool_warned=yes ;;
6028 esac
6029     F77=$ac_ct_F77
6030   fi
6031 fi
6032
6033
6034 # Provide some information about the compiler.
6035 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6036 set X $ac_compile
6037 ac_compiler=$2
6038 { (ac_try="$ac_compiler --version >&5"
6039 case "(($ac_try" in
6040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041   *) ac_try_echo=$ac_try;;
6042 esac
6043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044 $as_echo "$ac_try_echo") >&5
6045   (eval "$ac_compiler --version >&5") 2>&5
6046   ac_status=$?
6047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }
6049 { (ac_try="$ac_compiler -v >&5"
6050 case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6055 $as_echo "$ac_try_echo") >&5
6056   (eval "$ac_compiler -v >&5") 2>&5
6057   ac_status=$?
6058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }
6060 { (ac_try="$ac_compiler -V >&5"
6061 case "(($ac_try" in
6062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063   *) ac_try_echo=$ac_try;;
6064 esac
6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6066 $as_echo "$ac_try_echo") >&5
6067   (eval "$ac_compiler -V >&5") 2>&5
6068   ac_status=$?
6069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }
6071 rm -f a.out
6072
6073 # If we don't use `.F' as extension, the preprocessor is not run on the
6074 # input file.  (Note that this only needs to work for GNU compilers.)
6075 ac_save_ext=$ac_ext
6076 ac_ext=F
6077 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6078 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6079 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6080   $as_echo_n "(cached) " >&6
6081 else
6082   cat >conftest.$ac_ext <<_ACEOF
6083       program main
6084 #ifndef __GNUC__
6085        choke me
6086 #endif
6087
6088       end
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098   (eval "$ac_compile") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } && {
6105          test -z "$ac_f77_werror_flag" ||
6106          test ! -s conftest.err
6107        } && test -s conftest.$ac_objext; then
6108   ac_compiler_gnu=yes
6109 else
6110   $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113         ac_compiler_gnu=no
6114 fi
6115
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6118
6119 fi
6120 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6121 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6122 ac_ext=$ac_save_ext
6123 ac_test_FFLAGS=${FFLAGS+set}
6124 ac_save_FFLAGS=$FFLAGS
6125 FFLAGS=
6126 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6127 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6128 if test "${ac_cv_prog_f77_g+set}" = set; then
6129   $as_echo_n "(cached) " >&6
6130 else
6131   FFLAGS=-g
6132 cat >conftest.$ac_ext <<_ACEOF
6133       program main
6134
6135       end
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (ac_try="$ac_compile"
6139 case "(($ac_try" in
6140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141   *) ac_try_echo=$ac_try;;
6142 esac
6143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6144 $as_echo "$ac_try_echo") >&5
6145   (eval "$ac_compile") 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } && {
6152          test -z "$ac_f77_werror_flag" ||
6153          test ! -s conftest.err
6154        } && test -s conftest.$ac_objext; then
6155   ac_cv_prog_f77_g=yes
6156 else
6157   $as_echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160         ac_cv_prog_f77_g=no
6161 fi
6162
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164
6165 fi
6166 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6167 $as_echo "$ac_cv_prog_f77_g" >&6; }
6168 if test "$ac_test_FFLAGS" = set; then
6169   FFLAGS=$ac_save_FFLAGS
6170 elif test $ac_cv_prog_f77_g = yes; then
6171   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6172     FFLAGS="-g -O2"
6173   else
6174     FFLAGS="-g"
6175   fi
6176 else
6177   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6178     FFLAGS="-O2"
6179   else
6180     FFLAGS=
6181   fi
6182 fi
6183
6184 if test $ac_compiler_gnu = yes; then
6185   G77=yes
6186 else
6187   G77=
6188 fi
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195
6196
6197 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6198
6199 # find the maximum length of command line arguments
6200 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203   $as_echo_n "(cached) " >&6
6204 else
6205     i=0
6206   teststring="ABCD"
6207
6208   case $build_os in
6209   msdosdjgpp*)
6210     # On DJGPP, this test can blow up pretty badly due to problems in libc
6211     # (any single argument exceeding 2000 bytes causes a buffer overrun
6212     # during glob expansion).  Even if it were fixed, the result of this
6213     # check would be larger than it should be.
6214     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6215     ;;
6216
6217   gnu*)
6218     # Under GNU Hurd, this test is not required because there is
6219     # no limit to the length of command line arguments.
6220     # Libtool will interpret -1 as no limit whatsoever
6221     lt_cv_sys_max_cmd_len=-1;
6222     ;;
6223
6224   cygwin* | mingw*)
6225     # On Win9x/ME, this test blows up -- it succeeds, but takes
6226     # about 5 minutes as the teststring grows exponentially.
6227     # Worse, since 9x/ME are not pre-emptively multitasking,
6228     # you end up with a "frozen" computer, even though with patience
6229     # the test eventually succeeds (with a max line length of 256k).
6230     # Instead, let's just punt: use the minimum linelength reported by
6231     # all of the supported platforms: 8192 (on NT/2K/XP).
6232     lt_cv_sys_max_cmd_len=8192;
6233     ;;
6234
6235   amigaos*)
6236     # On AmigaOS with pdksh, this test takes hours, literally.
6237     # So we just punt and use a minimum line length of 8192.
6238     lt_cv_sys_max_cmd_len=8192;
6239     ;;
6240
6241   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242     # This has been around since 386BSD, at least.  Likely further.
6243     if test -x /sbin/sysctl; then
6244       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245     elif test -x /usr/sbin/sysctl; then
6246       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6247     else
6248       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6249     fi
6250     # And add a safety zone
6251     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6253     ;;
6254
6255   interix*)
6256     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257     lt_cv_sys_max_cmd_len=196608
6258     ;;
6259
6260   osf*)
6261     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263     # nice to cause kernel panics so lets avoid the loop below.
6264     # First set a reasonable default.
6265     lt_cv_sys_max_cmd_len=16384
6266     #
6267     if test -x /sbin/sysconfig; then
6268       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6270       esac
6271     fi
6272     ;;
6273   sco3.2v5*)
6274     lt_cv_sys_max_cmd_len=102400
6275     ;;
6276   sysv5* | sco5v6* | sysv4.2uw2*)
6277     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278     if test -n "$kargmax"; then
6279       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6280     else
6281       lt_cv_sys_max_cmd_len=32768
6282     fi
6283     ;;
6284   *)
6285     # If test is not a shell built-in, we'll probably end up computing a
6286     # maximum length that is only half of the actual maximum length, but
6287     # we can't tell.
6288     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6289     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6290                = "XX$teststring") >/dev/null 2>&1 &&
6291             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6292             lt_cv_sys_max_cmd_len=$new_result &&
6293             test $i != 17 # 1/2 MB should be enough
6294     do
6295       i=`expr $i + 1`
6296       teststring=$teststring$teststring
6297     done
6298     teststring=
6299     # Add a significant safety factor because C++ compilers can tack on massive
6300     # amounts of additional arguments before passing them to the linker.
6301     # It appears as though 1/2 is a usable value.
6302     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6303     ;;
6304   esac
6305
6306 fi
6307
6308 if test -n $lt_cv_sys_max_cmd_len ; then
6309   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6310 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6311 else
6312   { $as_echo "$as_me:$LINENO: result: none" >&5
6313 $as_echo "none" >&6; }
6314 fi
6315
6316
6317
6318
6319 # Check for command to grab the raw symbol name followed by C symbol from nm.
6320 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6321 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6322 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6323   $as_echo_n "(cached) " >&6
6324 else
6325
6326 # These are sane defaults that work on at least a few old systems.
6327 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6328
6329 # Character class describing NM global symbol codes.
6330 symcode='[BCDEGRST]'
6331
6332 # Regexp to match symbols that can be accessed directly from C.
6333 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6334
6335 # Transform an extracted symbol line into a proper C declaration
6336 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6337
6338 # Transform an extracted symbol line into symbol name and symbol address
6339 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'"
6340
6341 # Define system-specific variables.
6342 case $host_os in
6343 aix*)
6344   symcode='[BCDT]'
6345   ;;
6346 cygwin* | mingw* | pw32*)
6347   symcode='[ABCDGISTW]'
6348   ;;
6349 hpux*) # Its linker distinguishes data from code symbols
6350   if test "$host_cpu" = ia64; then
6351     symcode='[ABCDEGRST]'
6352   fi
6353   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6354   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'"
6355   ;;
6356 linux*)
6357   if test "$host_cpu" = ia64; then
6358     symcode='[ABCDGIRSTW]'
6359     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6360     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'"
6361   fi
6362   ;;
6363 irix* | nonstopux*)
6364   symcode='[BCDEGRST]'
6365   ;;
6366 osf*)
6367   symcode='[BCDEGQRST]'
6368   ;;
6369 solaris*)
6370   symcode='[BDRT]'
6371   ;;
6372 sco3.2v5*)
6373   symcode='[DT]'
6374   ;;
6375 sysv4.2uw2*)
6376   symcode='[DT]'
6377   ;;
6378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6379   symcode='[ABDT]'
6380   ;;
6381 sysv4)
6382   symcode='[DFNSTU]'
6383   ;;
6384 esac
6385
6386 # Handle CRLF in mingw tool chain
6387 opt_cr=
6388 case $build_os in
6389 mingw*)
6390   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6391   ;;
6392 esac
6393
6394 # If we're using GNU nm, then use its standard symbol codes.
6395 case `$NM -V 2>&1` in
6396 *GNU* | *'with BFD'*)
6397   symcode='[ABCDGIRSTW]' ;;
6398 esac
6399
6400 # Try without a prefix undercore, then with it.
6401 for ac_symprfx in "" "_"; do
6402
6403   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6404   symxfrm="\\1 $ac_symprfx\\2 \\2"
6405
6406   # Write the raw and C identifiers.
6407   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6408
6409   # Check to see that the pipe works correctly.
6410   pipe_works=no
6411
6412   rm -f conftest*
6413   cat > conftest.$ac_ext <<EOF
6414 #ifdef __cplusplus
6415 extern "C" {
6416 #endif
6417 char nm_test_var;
6418 void nm_test_func(){}
6419 #ifdef __cplusplus
6420 }
6421 #endif
6422 int main(){nm_test_var='a';nm_test_func();return(0);}
6423 EOF
6424
6425   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426   (eval $ac_compile) 2>&5
6427   ac_status=$?
6428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; then
6430     # Now try to grab the symbols.
6431     nlist=conftest.nm
6432     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6433   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6434   ac_status=$?
6435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } && test -s "$nlist"; then
6437       # Try sorting and uniquifying the output.
6438       if sort "$nlist" | uniq > "$nlist"T; then
6439         mv -f "$nlist"T "$nlist"
6440       else
6441         rm -f "$nlist"T
6442       fi
6443
6444       # Make sure that we snagged all the symbols we need.
6445       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6446         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6447           cat <<EOF > conftest.$ac_ext
6448 #ifdef __cplusplus
6449 extern "C" {
6450 #endif
6451
6452 EOF
6453           # Now generate the symbol file.
6454           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6455
6456           cat <<EOF >> conftest.$ac_ext
6457 #if defined (__STDC__) && __STDC__
6458 # define lt_ptr_t void *
6459 #else
6460 # define lt_ptr_t char *
6461 # define const
6462 #endif
6463
6464 /* The mapping between symbol names and symbols. */
6465 const struct {
6466   const char *name;
6467   lt_ptr_t address;
6468 }
6469 lt_preloaded_symbols[] =
6470 {
6471 EOF
6472           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6473           cat <<\EOF >> conftest.$ac_ext
6474   {0, (lt_ptr_t) 0}
6475 };
6476
6477 #ifdef __cplusplus
6478 }
6479 #endif
6480 EOF
6481           # Now try linking the two files.
6482           mv conftest.$ac_objext conftstm.$ac_objext
6483           lt_save_LIBS="$LIBS"
6484           lt_save_CFLAGS="$CFLAGS"
6485           LIBS="conftstm.$ac_objext"
6486           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6487           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>&5
6489   ac_status=$?
6490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6492             pipe_works=yes
6493           fi
6494           LIBS="$lt_save_LIBS"
6495           CFLAGS="$lt_save_CFLAGS"
6496         else
6497           echo "cannot find nm_test_func in $nlist" >&5
6498         fi
6499       else
6500         echo "cannot find nm_test_var in $nlist" >&5
6501       fi
6502     else
6503       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6504     fi
6505   else
6506     echo "$progname: failed program was:" >&5
6507     cat conftest.$ac_ext >&5
6508   fi
6509   rm -f conftest* conftst*
6510
6511   # Do not use the global_symbol_pipe unless it works.
6512   if test "$pipe_works" = yes; then
6513     break
6514   else
6515     lt_cv_sys_global_symbol_pipe=
6516   fi
6517 done
6518
6519 fi
6520
6521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6522   lt_cv_sys_global_symbol_to_cdecl=
6523 fi
6524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6525   { $as_echo "$as_me:$LINENO: result: failed" >&5
6526 $as_echo "failed" >&6; }
6527 else
6528   { $as_echo "$as_me:$LINENO: result: ok" >&5
6529 $as_echo "ok" >&6; }
6530 fi
6531
6532 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6533 $as_echo_n "checking for objdir... " >&6; }
6534 if test "${lt_cv_objdir+set}" = set; then
6535   $as_echo_n "(cached) " >&6
6536 else
6537   rm -f .libs 2>/dev/null
6538 mkdir .libs 2>/dev/null
6539 if test -d .libs; then
6540   lt_cv_objdir=.libs
6541 else
6542   # MS-DOS does not allow filenames that begin with a dot.
6543   lt_cv_objdir=_libs
6544 fi
6545 rmdir .libs 2>/dev/null
6546 fi
6547 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6548 $as_echo "$lt_cv_objdir" >&6; }
6549 objdir=$lt_cv_objdir
6550
6551
6552
6553
6554
6555 case $host_os in
6556 aix3*)
6557   # AIX sometimes has problems with the GCC collect2 program.  For some
6558   # reason, if we set the COLLECT_NAMES environment variable, the problems
6559   # vanish in a puff of smoke.
6560   if test "X${COLLECT_NAMES+set}" != Xset; then
6561     COLLECT_NAMES=
6562     export COLLECT_NAMES
6563   fi
6564   ;;
6565 esac
6566
6567 # Sed substitution that helps us do robust quoting.  It backslashifies
6568 # metacharacters that are still active within double-quoted strings.
6569 Xsed='sed -e 1s/^X//'
6570 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6571
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6574
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
6579 # Sed substitution to avoid accidental globbing in evaled expressions
6580 no_glob_subst='s/\*/\\\*/g'
6581
6582 # Constants:
6583 rm="rm -f"
6584
6585 # Global variables:
6586 default_ofile=libtool
6587 can_build_shared=yes
6588
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6591 libext=a
6592 ltmain="$ac_aux_dir/ltmain.sh"
6593 ofile="$default_ofile"
6594 with_gnu_ld="$lt_cv_prog_gnu_ld"
6595
6596 if test -n "$ac_tool_prefix"; then
6597   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}ar; ac_word=$2
6599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_AR+set}" = set; then
6602   $as_echo_n "(cached) " >&6
6603 else
6604   if test -n "$AR"; then
6605   ac_cv_prog_AR="$AR" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_prog_AR="${ac_tool_prefix}ar"
6615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 AR=$ac_cv_prog_AR
6625 if test -n "$AR"; then
6626   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6627 $as_echo "$AR" >&6; }
6628 else
6629   { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_AR"; then
6636   ac_ct_AR=$AR
6637   # Extract the first word of "ar", so it can be a program name with args.
6638 set dummy ar; ac_word=$2
6639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$ac_ct_AR"; then
6645   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_ac_ct_AR="ar"
6655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6665 if test -n "$ac_ct_AR"; then
6666   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6667 $as_echo "$ac_ct_AR" >&6; }
6668 else
6669   { $as_echo "$as_me:$LINENO: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673   if test "x$ac_ct_AR" = x; then
6674     AR="false"
6675   else
6676     case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682     AR=$ac_ct_AR
6683   fi
6684 else
6685   AR="$ac_cv_prog_AR"
6686 fi
6687
6688 if test -n "$ac_tool_prefix"; then
6689   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_RANLIB+set}" = set; then
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$RANLIB"; then
6697   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 RANLIB=$ac_cv_prog_RANLIB
6717 if test -n "$RANLIB"; then
6718   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6719 $as_echo "$RANLIB" >&6; }
6720 else
6721   { $as_echo "$as_me:$LINENO: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725
6726 fi
6727 if test -z "$ac_cv_prog_RANLIB"; then
6728   ac_ct_RANLIB=$RANLIB
6729   # Extract the first word of "ranlib", so it can be a program name with args.
6730 set dummy ranlib; ac_word=$2
6731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$ac_ct_RANLIB"; then
6737   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_prog_ac_ct_RANLIB="ranlib"
6747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6757 if test -n "$ac_ct_RANLIB"; then
6758   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6759 $as_echo "$ac_ct_RANLIB" >&6; }
6760 else
6761   { $as_echo "$as_me:$LINENO: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765   if test "x$ac_ct_RANLIB" = x; then
6766     RANLIB=":"
6767   else
6768     case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774     RANLIB=$ac_ct_RANLIB
6775   fi
6776 else
6777   RANLIB="$ac_cv_prog_RANLIB"
6778 fi
6779
6780 if test -n "$ac_tool_prefix"; then
6781   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}strip; ac_word=$2
6783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_STRIP+set}" = set; then
6786   $as_echo_n "(cached) " >&6
6787 else
6788   if test -n "$STRIP"; then
6789   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796   for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6799     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 STRIP=$ac_cv_prog_STRIP
6809 if test -n "$STRIP"; then
6810   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6811 $as_echo "$STRIP" >&6; }
6812 else
6813   { $as_echo "$as_me:$LINENO: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_STRIP"; then
6820   ac_ct_STRIP=$STRIP
6821   # Extract the first word of "strip", so it can be a program name with args.
6822 set dummy strip; ac_word=$2
6823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$ac_ct_STRIP"; then
6829   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_ac_ct_STRIP="strip"
6839     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6849 if test -n "$ac_ct_STRIP"; then
6850   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6851 $as_echo "$ac_ct_STRIP" >&6; }
6852 else
6853   { $as_echo "$as_me:$LINENO: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857   if test "x$ac_ct_STRIP" = x; then
6858     STRIP=":"
6859   else
6860     case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     STRIP=$ac_ct_STRIP
6867   fi
6868 else
6869   STRIP="$ac_cv_prog_STRIP"
6870 fi
6871
6872
6873 old_CC="$CC"
6874 old_CFLAGS="$CFLAGS"
6875
6876 # Set sane defaults for various variables
6877 test -z "$AR" && AR=ar
6878 test -z "$AR_FLAGS" && AR_FLAGS=cru
6879 test -z "$AS" && AS=as
6880 test -z "$CC" && CC=cc
6881 test -z "$LTCC" && LTCC=$CC
6882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6883 test -z "$DLLTOOL" && DLLTOOL=dlltool
6884 test -z "$LD" && LD=ld
6885 test -z "$LN_S" && LN_S="ln -s"
6886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6887 test -z "$NM" && NM=nm
6888 test -z "$SED" && SED=sed
6889 test -z "$OBJDUMP" && OBJDUMP=objdump
6890 test -z "$RANLIB" && RANLIB=:
6891 test -z "$STRIP" && STRIP=:
6892 test -z "$ac_objext" && ac_objext=o
6893
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6898
6899 if test -n "$RANLIB"; then
6900   case $host_os in
6901   openbsd*)
6902     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6903     ;;
6904   *)
6905     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6906     ;;
6907   esac
6908   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6909 fi
6910
6911 for cc_temp in $compiler""; do
6912   case $cc_temp in
6913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6915     \-*) ;;
6916     *) break;;
6917   esac
6918 done
6919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6920
6921
6922 # Only perform the check for file, if the check method requires it
6923 case $deplibs_check_method in
6924 file_magic*)
6925   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6926     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6927 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6929   $as_echo_n "(cached) " >&6
6930 else
6931   case $MAGIC_CMD in
6932 [\\/*] |  ?:[\\/]*)
6933   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6934   ;;
6935 *)
6936   lt_save_MAGIC_CMD="$MAGIC_CMD"
6937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6938   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6939   for ac_dir in $ac_dummy; do
6940     IFS="$lt_save_ifs"
6941     test -z "$ac_dir" && ac_dir=.
6942     if test -f $ac_dir/${ac_tool_prefix}file; then
6943       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6944       if test -n "$file_magic_test_file"; then
6945         case $deplibs_check_method in
6946         "file_magic "*)
6947           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6948           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6949           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6950             $EGREP "$file_magic_regex" > /dev/null; then
6951             :
6952           else
6953             cat <<EOF 1>&2
6954
6955 *** Warning: the command libtool uses to detect shared libraries,
6956 *** $file_magic_cmd, produces output that libtool cannot recognize.
6957 *** The result is that libtool may fail to recognize shared libraries
6958 *** as such.  This will affect the creation of libtool libraries that
6959 *** depend on shared libraries, but programs linked with such libtool
6960 *** libraries will work regardless of this problem.  Nevertheless, you
6961 *** may want to report the problem to your system manager and/or to
6962 *** bug-libtool@gnu.org
6963
6964 EOF
6965           fi ;;
6966         esac
6967       fi
6968       break
6969     fi
6970   done
6971   IFS="$lt_save_ifs"
6972   MAGIC_CMD="$lt_save_MAGIC_CMD"
6973   ;;
6974 esac
6975 fi
6976
6977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6978 if test -n "$MAGIC_CMD"; then
6979   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6980 $as_echo "$MAGIC_CMD" >&6; }
6981 else
6982   { $as_echo "$as_me:$LINENO: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986 if test -z "$lt_cv_path_MAGIC_CMD"; then
6987   if test -n "$ac_tool_prefix"; then
6988     { $as_echo "$as_me:$LINENO: checking for file" >&5
6989 $as_echo_n "checking for file... " >&6; }
6990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6991   $as_echo_n "(cached) " >&6
6992 else
6993   case $MAGIC_CMD in
6994 [\\/*] |  ?:[\\/]*)
6995   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6996   ;;
6997 *)
6998   lt_save_MAGIC_CMD="$MAGIC_CMD"
6999   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7000   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7001   for ac_dir in $ac_dummy; do
7002     IFS="$lt_save_ifs"
7003     test -z "$ac_dir" && ac_dir=.
7004     if test -f $ac_dir/file; then
7005       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7006       if test -n "$file_magic_test_file"; then
7007         case $deplibs_check_method in
7008         "file_magic "*)
7009           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7010           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7011           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7012             $EGREP "$file_magic_regex" > /dev/null; then
7013             :
7014           else
7015             cat <<EOF 1>&2
7016
7017 *** Warning: the command libtool uses to detect shared libraries,
7018 *** $file_magic_cmd, produces output that libtool cannot recognize.
7019 *** The result is that libtool may fail to recognize shared libraries
7020 *** as such.  This will affect the creation of libtool libraries that
7021 *** depend on shared libraries, but programs linked with such libtool
7022 *** libraries will work regardless of this problem.  Nevertheless, you
7023 *** may want to report the problem to your system manager and/or to
7024 *** bug-libtool@gnu.org
7025
7026 EOF
7027           fi ;;
7028         esac
7029       fi
7030       break
7031     fi
7032   done
7033   IFS="$lt_save_ifs"
7034   MAGIC_CMD="$lt_save_MAGIC_CMD"
7035   ;;
7036 esac
7037 fi
7038
7039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7040 if test -n "$MAGIC_CMD"; then
7041   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7042 $as_echo "$MAGIC_CMD" >&6; }
7043 else
7044   { $as_echo "$as_me:$LINENO: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048   else
7049     MAGIC_CMD=:
7050   fi
7051 fi
7052
7053   fi
7054   ;;
7055 esac
7056
7057 enable_dlopen=no
7058 enable_win32_dll=no
7059
7060 # Check whether --enable-libtool-lock was given.
7061 if test "${enable_libtool_lock+set}" = set; then
7062   enableval=$enable_libtool_lock;
7063 fi
7064
7065 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7066
7067
7068 # Check whether --with-pic was given.
7069 if test "${with_pic+set}" = set; then
7070   withval=$with_pic; pic_mode="$withval"
7071 else
7072   pic_mode=default
7073 fi
7074
7075 test -z "$pic_mode" && pic_mode=default
7076
7077 # Use C for the default configuration in the libtool script
7078 tagname=
7079 lt_save_CC="$CC"
7080 ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086
7087 # Source file extension for C test sources.
7088 ac_ext=c
7089
7090 # Object file extension for compiled C test sources.
7091 objext=o
7092 objext=$objext
7093
7094 # Code to be used in simple compile tests
7095 lt_simple_compile_test_code="int some_variable = 0;\n"
7096
7097 # Code to be used in simple link tests
7098 lt_simple_link_test_code='int main(){return(0);}\n'
7099
7100
7101 # If no C compiler was specified, use CC.
7102 LTCC=${LTCC-"$CC"}
7103
7104 # If no C compiler flags were specified, use CFLAGS.
7105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7106
7107 # Allow CC to be a program name with arguments.
7108 compiler=$CC
7109
7110
7111 # save warnings/boilerplate of simple test code
7112 ac_outfile=conftest.$ac_objext
7113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7115 _lt_compiler_boilerplate=`cat conftest.err`
7116 $rm conftest*
7117
7118 ac_outfile=conftest.$ac_objext
7119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7121 _lt_linker_boilerplate=`cat conftest.err`
7122 $rm conftest*
7123
7124
7125
7126 lt_prog_compiler_no_builtin_flag=
7127
7128 if test "$GCC" = yes; then
7129   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7130
7131
7132 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7133 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7135   $as_echo_n "(cached) " >&6
7136 else
7137   lt_cv_prog_compiler_rtti_exceptions=no
7138   ac_outfile=conftest.$ac_objext
7139    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7140    lt_compiler_flag="-fno-rtti -fno-exceptions"
7141    # Insert the option either (1) after the last *FLAGS variable, or
7142    # (2) before a word containing "conftest.", or (3) at the end.
7143    # Note that $ac_compile itself does not contain backslashes and begins
7144    # with a dollar sign (not a hyphen), so the echo should work correctly.
7145    # The option is referenced via a variable to avoid confusing sed.
7146    lt_compile=`echo "$ac_compile" | $SED \
7147    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7148    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7149    -e 's:$: $lt_compiler_flag:'`
7150    (eval echo "\"\$as_me:7150: $lt_compile\"" >&5)
7151    (eval "$lt_compile" 2>conftest.err)
7152    ac_status=$?
7153    cat conftest.err >&5
7154    echo "$as_me:7154: \$? = $ac_status" >&5
7155    if (exit $ac_status) && test -s "$ac_outfile"; then
7156      # The compiler can only warn and ignore the option if not recognized
7157      # So say no if there are warnings other than the usual output.
7158      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7159      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7160      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7161        lt_cv_prog_compiler_rtti_exceptions=yes
7162      fi
7163    fi
7164    $rm conftest*
7165
7166 fi
7167 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7168 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7169
7170 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7171     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7172 else
7173     :
7174 fi
7175
7176 fi
7177
7178 lt_prog_compiler_wl=
7179 lt_prog_compiler_pic=
7180 lt_prog_compiler_static=
7181
7182 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7183 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7184
7185   if test "$GCC" = yes; then
7186     lt_prog_compiler_wl='-Wl,'
7187     lt_prog_compiler_static='-static'
7188
7189     case $host_os in
7190       aix*)
7191       # All AIX code is PIC.
7192       if test "$host_cpu" = ia64; then
7193         # AIX 5 now supports IA64 processor
7194         lt_prog_compiler_static='-Bstatic'
7195       fi
7196       ;;
7197
7198     amigaos*)
7199       # FIXME: we need at least 68020 code to build shared libraries, but
7200       # adding the `-m68020' flag to GCC prevents building anything better,
7201       # like `-m68040'.
7202       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7203       ;;
7204
7205     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7206       # PIC is the default for these OSes.
7207       ;;
7208
7209     mingw* | pw32* | os2*)
7210       # This hack is so that the source file can tell whether it is being
7211       # built for inclusion in a dll (and should export symbols for example).
7212       lt_prog_compiler_pic='-DDLL_EXPORT'
7213       ;;
7214
7215     darwin* | rhapsody*)
7216       # PIC is the default on this platform
7217       # Common symbols not allowed in MH_DYLIB files
7218       lt_prog_compiler_pic='-fno-common'
7219       ;;
7220
7221     interix3*)
7222       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7223       # Instead, we relocate shared libraries at runtime.
7224       ;;
7225
7226     msdosdjgpp*)
7227       # Just because we use GCC doesn't mean we suddenly get shared libraries
7228       # on systems that don't support them.
7229       lt_prog_compiler_can_build_shared=no
7230       enable_shared=no
7231       ;;
7232
7233     sysv4*MP*)
7234       if test -d /usr/nec; then
7235         lt_prog_compiler_pic=-Kconform_pic
7236       fi
7237       ;;
7238
7239     hpux*)
7240       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7241       # not for PA HP-UX.
7242       case $host_cpu in
7243       hppa*64*|ia64*)
7244         # +Z the default
7245         ;;
7246       *)
7247         lt_prog_compiler_pic='-fPIC'
7248         ;;
7249       esac
7250       ;;
7251
7252     *)
7253       lt_prog_compiler_pic='-fPIC'
7254       ;;
7255     esac
7256   else
7257     # PORTME Check for flag to pass linker flags through the system compiler.
7258     case $host_os in
7259     aix*)
7260       lt_prog_compiler_wl='-Wl,'
7261       if test "$host_cpu" = ia64; then
7262         # AIX 5 now supports IA64 processor
7263         lt_prog_compiler_static='-Bstatic'
7264       else
7265         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7266       fi
7267       ;;
7268       darwin*)
7269         # PIC is the default on this platform
7270         # Common symbols not allowed in MH_DYLIB files
7271        case $cc_basename in
7272          xlc*)
7273          lt_prog_compiler_pic='-qnocommon'
7274          lt_prog_compiler_wl='-Wl,'
7275          ;;
7276        esac
7277        ;;
7278
7279     mingw* | pw32* | os2*)
7280       # This hack is so that the source file can tell whether it is being
7281       # built for inclusion in a dll (and should export symbols for example).
7282       lt_prog_compiler_pic='-DDLL_EXPORT'
7283       ;;
7284
7285     hpux9* | hpux10* | hpux11*)
7286       lt_prog_compiler_wl='-Wl,'
7287       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7288       # not for PA HP-UX.
7289       case $host_cpu in
7290       hppa*64*|ia64*)
7291         # +Z the default
7292         ;;
7293       *)
7294         lt_prog_compiler_pic='+Z'
7295         ;;
7296       esac
7297       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7298       lt_prog_compiler_static='${wl}-a ${wl}archive'
7299       ;;
7300
7301     irix5* | irix6* | nonstopux*)
7302       lt_prog_compiler_wl='-Wl,'
7303       # PIC (with -KPIC) is the default.
7304       lt_prog_compiler_static='-non_shared'
7305       ;;
7306
7307     newsos6)
7308       lt_prog_compiler_pic='-KPIC'
7309       lt_prog_compiler_static='-Bstatic'
7310       ;;
7311
7312     linux*)
7313       case $cc_basename in
7314       icc* | ecc*)
7315         lt_prog_compiler_wl='-Wl,'
7316         lt_prog_compiler_pic='-KPIC'
7317         lt_prog_compiler_static='-static'
7318         ;;
7319       pgcc* | pgf77* | pgf90* | pgf95*)
7320         # Portland Group compilers (*not* the Pentium gcc compiler,
7321         # which looks to be a dead project)
7322         lt_prog_compiler_wl='-Wl,'
7323         lt_prog_compiler_pic='-fpic'
7324         lt_prog_compiler_static='-Bstatic'
7325         ;;
7326       ccc*)
7327         lt_prog_compiler_wl='-Wl,'
7328         # All Alpha code is PIC.
7329         lt_prog_compiler_static='-non_shared'
7330         ;;
7331       esac
7332       ;;
7333
7334     osf3* | osf4* | osf5*)
7335       lt_prog_compiler_wl='-Wl,'
7336       # All OSF/1 code is PIC.
7337       lt_prog_compiler_static='-non_shared'
7338       ;;
7339
7340     solaris*)
7341       lt_prog_compiler_pic='-KPIC'
7342       lt_prog_compiler_static='-Bstatic'
7343       case $cc_basename in
7344       f77* | f90* | f95*)
7345         lt_prog_compiler_wl='-Qoption ld ';;
7346       *)
7347         lt_prog_compiler_wl='-Wl,';;
7348       esac
7349       ;;
7350
7351     sunos4*)
7352       lt_prog_compiler_wl='-Qoption ld '
7353       lt_prog_compiler_pic='-PIC'
7354       lt_prog_compiler_static='-Bstatic'
7355       ;;
7356
7357     sysv4 | sysv4.2uw2* | sysv4.3*)
7358       lt_prog_compiler_wl='-Wl,'
7359       lt_prog_compiler_pic='-KPIC'
7360       lt_prog_compiler_static='-Bstatic'
7361       ;;
7362
7363     sysv4*MP*)
7364       if test -d /usr/nec ;then
7365         lt_prog_compiler_pic='-Kconform_pic'
7366         lt_prog_compiler_static='-Bstatic'
7367       fi
7368       ;;
7369
7370     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7371       lt_prog_compiler_wl='-Wl,'
7372       lt_prog_compiler_pic='-KPIC'
7373       lt_prog_compiler_static='-Bstatic'
7374       ;;
7375
7376     unicos*)
7377       lt_prog_compiler_wl='-Wl,'
7378       lt_prog_compiler_can_build_shared=no
7379       ;;
7380
7381     uts4*)
7382       lt_prog_compiler_pic='-pic'
7383       lt_prog_compiler_static='-Bstatic'
7384       ;;
7385
7386     *)
7387       lt_prog_compiler_can_build_shared=no
7388       ;;
7389     esac
7390   fi
7391
7392 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7393 $as_echo "$lt_prog_compiler_pic" >&6; }
7394
7395 #
7396 # Check to make sure the PIC flag actually works.
7397 #
7398 if test -n "$lt_prog_compiler_pic"; then
7399
7400 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7401 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7402 if test "${lt_prog_compiler_pic_works+set}" = set; then
7403   $as_echo_n "(cached) " >&6
7404 else
7405   lt_prog_compiler_pic_works=no
7406   ac_outfile=conftest.$ac_objext
7407    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7408    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7409    # Insert the option either (1) after the last *FLAGS variable, or
7410    # (2) before a word containing "conftest.", or (3) at the end.
7411    # Note that $ac_compile itself does not contain backslashes and begins
7412    # with a dollar sign (not a hyphen), so the echo should work correctly.
7413    # The option is referenced via a variable to avoid confusing sed.
7414    lt_compile=`echo "$ac_compile" | $SED \
7415    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7417    -e 's:$: $lt_compiler_flag:'`
7418    (eval echo "\"\$as_me:7418: $lt_compile\"" >&5)
7419    (eval "$lt_compile" 2>conftest.err)
7420    ac_status=$?
7421    cat conftest.err >&5
7422    echo "$as_me:7422: \$? = $ac_status" >&5
7423    if (exit $ac_status) && test -s "$ac_outfile"; then
7424      # The compiler can only warn and ignore the option if not recognized
7425      # So say no if there are warnings other than the usual output.
7426      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7427      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7428      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7429        lt_prog_compiler_pic_works=yes
7430      fi
7431    fi
7432    $rm conftest*
7433
7434 fi
7435 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7436 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7437
7438 if test x"$lt_prog_compiler_pic_works" = xyes; then
7439     case $lt_prog_compiler_pic in
7440      "" | " "*) ;;
7441      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7442      esac
7443 else
7444     lt_prog_compiler_pic=
7445      lt_prog_compiler_can_build_shared=no
7446 fi
7447
7448 fi
7449 case $host_os in
7450   # For platforms which do not support PIC, -DPIC is meaningless:
7451   *djgpp*)
7452     lt_prog_compiler_pic=
7453     ;;
7454   *)
7455     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7456     ;;
7457 esac
7458
7459 #
7460 # Check to make sure the static flag actually works.
7461 #
7462 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7463 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7464 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7465 if test "${lt_prog_compiler_static_works+set}" = set; then
7466   $as_echo_n "(cached) " >&6
7467 else
7468   lt_prog_compiler_static_works=no
7469    save_LDFLAGS="$LDFLAGS"
7470    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7471    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7472    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7473      # The linker can only warn and ignore the option if not recognized
7474      # So say no if there are warnings
7475      if test -s conftest.err; then
7476        # Append any errors to the config.log.
7477        cat conftest.err 1>&5
7478        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7479        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7480        if diff conftest.exp conftest.er2 >/dev/null; then
7481          lt_prog_compiler_static_works=yes
7482        fi
7483      else
7484        lt_prog_compiler_static_works=yes
7485      fi
7486    fi
7487    $rm conftest*
7488    LDFLAGS="$save_LDFLAGS"
7489
7490 fi
7491 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7492 $as_echo "$lt_prog_compiler_static_works" >&6; }
7493
7494 if test x"$lt_prog_compiler_static_works" = xyes; then
7495     :
7496 else
7497     lt_prog_compiler_static=
7498 fi
7499
7500
7501 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7504   $as_echo_n "(cached) " >&6
7505 else
7506   lt_cv_prog_compiler_c_o=no
7507    $rm -r conftest 2>/dev/null
7508    mkdir conftest
7509    cd conftest
7510    mkdir out
7511    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7512
7513    lt_compiler_flag="-o out/conftest2.$ac_objext"
7514    # Insert the option either (1) after the last *FLAGS variable, or
7515    # (2) before a word containing "conftest.", or (3) at the end.
7516    # Note that $ac_compile itself does not contain backslashes and begins
7517    # with a dollar sign (not a hyphen), so the echo should work correctly.
7518    lt_compile=`echo "$ac_compile" | $SED \
7519    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7521    -e 's:$: $lt_compiler_flag:'`
7522    (eval echo "\"\$as_me:7522: $lt_compile\"" >&5)
7523    (eval "$lt_compile" 2>out/conftest.err)
7524    ac_status=$?
7525    cat out/conftest.err >&5
7526    echo "$as_me:7526: \$? = $ac_status" >&5
7527    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7528    then
7529      # The compiler can only warn and ignore the option if not recognized
7530      # So say no if there are warnings
7531      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7532      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7533      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7534        lt_cv_prog_compiler_c_o=yes
7535      fi
7536    fi
7537    chmod u+w . 2>&5
7538    $rm conftest*
7539    # SGI C++ compiler will create directory out/ii_files/ for
7540    # template instantiation
7541    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7542    $rm out/* && rmdir out
7543    cd ..
7544    rmdir conftest
7545    $rm conftest*
7546
7547 fi
7548 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7550
7551
7552 hard_links="nottested"
7553 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7554   # do not overwrite the value of need_locks provided by the user
7555   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7556 $as_echo_n "checking if we can lock with hard links... " >&6; }
7557   hard_links=yes
7558   $rm conftest*
7559   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7560   touch conftest.a
7561   ln conftest.a conftest.b 2>&5 || hard_links=no
7562   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7563   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7564 $as_echo "$hard_links" >&6; }
7565   if test "$hard_links" = no; then
7566     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7567 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7568     need_locks=warn
7569   fi
7570 else
7571   need_locks=no
7572 fi
7573
7574 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7576
7577   runpath_var=
7578   allow_undefined_flag=
7579   enable_shared_with_static_runtimes=no
7580   archive_cmds=
7581   archive_expsym_cmds=
7582   old_archive_From_new_cmds=
7583   old_archive_from_expsyms_cmds=
7584   export_dynamic_flag_spec=
7585   whole_archive_flag_spec=
7586   thread_safe_flag_spec=
7587   hardcode_libdir_flag_spec=
7588   hardcode_libdir_flag_spec_ld=
7589   hardcode_libdir_separator=
7590   hardcode_direct=no
7591   hardcode_minus_L=no
7592   hardcode_shlibpath_var=unsupported
7593   link_all_deplibs=unknown
7594   hardcode_automatic=no
7595   module_cmds=
7596   module_expsym_cmds=
7597   always_export_symbols=no
7598   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7599   # include_expsyms should be a list of space-separated symbols to be *always*
7600   # included in the symbol list
7601   include_expsyms=
7602   # exclude_expsyms can be an extended regexp of symbols to exclude
7603   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7604   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7605   # as well as any symbol that contains `d'.
7606   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7607   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7608   # platforms (ab)use it in PIC code, but their linkers get confused if
7609   # the symbol is explicitly referenced.  Since portable code cannot
7610   # rely on this symbol name, it's probably fine to never include it in
7611   # preloaded symbol tables.
7612   extract_expsyms_cmds=
7613   # Just being paranoid about ensuring that cc_basename is set.
7614   for cc_temp in $compiler""; do
7615   case $cc_temp in
7616     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7617     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7618     \-*) ;;
7619     *) break;;
7620   esac
7621 done
7622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7623
7624   case $host_os in
7625   cygwin* | mingw* | pw32*)
7626     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7627     # When not using gcc, we currently assume that we are using
7628     # Microsoft Visual C++.
7629     if test "$GCC" != yes; then
7630       with_gnu_ld=no
7631     fi
7632     ;;
7633   interix*)
7634     # we just hope/assume this is gcc and not c89 (= MSVC++)
7635     with_gnu_ld=yes
7636     ;;
7637   openbsd*)
7638     with_gnu_ld=no
7639     ;;
7640   esac
7641
7642   ld_shlibs=yes
7643   if test "$with_gnu_ld" = yes; then
7644     # If archive_cmds runs LD, not CC, wlarc should be empty
7645     wlarc='${wl}'
7646
7647     # Set some defaults for GNU ld with shared library support. These
7648     # are reset later if shared libraries are not supported. Putting them
7649     # here allows them to be overridden if necessary.
7650     runpath_var=LD_RUN_PATH
7651     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7652     export_dynamic_flag_spec='${wl}--export-dynamic'
7653     # ancient GNU ld didn't support --whole-archive et. al.
7654     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7655         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7656       else
7657         whole_archive_flag_spec=
7658     fi
7659     supports_anon_versioning=no
7660     case `$LD -v 2>/dev/null` in
7661       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7662       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7663       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7664       *\ 2.11.*) ;; # other 2.11 versions
7665       *) supports_anon_versioning=yes ;;
7666     esac
7667
7668     # See if GNU ld supports shared libraries.
7669     case $host_os in
7670     aix3* | aix4* | aix5*)
7671       # On AIX/PPC, the GNU linker is very broken
7672       if test "$host_cpu" != ia64; then
7673         ld_shlibs=no
7674         cat <<EOF 1>&2
7675
7676 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7677 *** to be unable to reliably create shared libraries on AIX.
7678 *** Therefore, libtool is disabling shared libraries support.  If you
7679 *** really care for shared libraries, you may want to modify your PATH
7680 *** so that a non-GNU linker is found, and then restart.
7681
7682 EOF
7683       fi
7684       ;;
7685
7686     amigaos*)
7687       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)'
7688       hardcode_libdir_flag_spec='-L$libdir'
7689       hardcode_minus_L=yes
7690
7691       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7692       # that the semantics of dynamic libraries on AmigaOS, at least up
7693       # to version 4, is to share data among multiple programs linked
7694       # with the same dynamic library.  Since this doesn't match the
7695       # behavior of shared libraries on other platforms, we can't use
7696       # them.
7697       ld_shlibs=no
7698       ;;
7699
7700     beos*)
7701       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702         allow_undefined_flag=unsupported
7703         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7704         # support --undefined.  This deserves some investigation.  FIXME
7705         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706       else
7707         ld_shlibs=no
7708       fi
7709       ;;
7710
7711     cygwin* | mingw* | pw32*)
7712       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7713       # as there is no search path for DLLs.
7714       hardcode_libdir_flag_spec='-L$libdir'
7715       allow_undefined_flag=unsupported
7716       always_export_symbols=no
7717       enable_shared_with_static_runtimes=yes
7718       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7719
7720       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7722         # If the export-symbols file already is a .def file (1st line
7723         # is EXPORTS), use it as is; otherwise, prepend...
7724         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7725           cp $export_symbols $output_objdir/$soname.def;
7726         else
7727           echo EXPORTS > $output_objdir/$soname.def;
7728           cat $export_symbols >> $output_objdir/$soname.def;
7729         fi~
7730         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7731       else
7732         ld_shlibs=no
7733       fi
7734       ;;
7735
7736     interix3*)
7737       hardcode_direct=no
7738       hardcode_shlibpath_var=no
7739       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7740       export_dynamic_flag_spec='${wl}-E'
7741       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7742       # Instead, shared libraries are loaded at an image base (0x10000000 by
7743       # default) and relocated if they conflict, which is a slow very memory
7744       # consuming and fragmenting process.  To avoid this, we pick a random,
7745       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7746       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7747       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7748       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'
7749       ;;
7750
7751     linux*)
7752       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7753         tmp_addflag=
7754         case $cc_basename,$host_cpu in
7755         pgcc*)                          # Portland Group C compiler
7756           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'
7757           tmp_addflag=' $pic_flag'
7758           ;;
7759         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7760           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'
7761           tmp_addflag=' $pic_flag -Mnomain' ;;
7762         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7763           tmp_addflag=' -i_dynamic' ;;
7764         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7765           tmp_addflag=' -i_dynamic -nofor_main' ;;
7766         ifc* | ifort*)                  # Intel Fortran compiler
7767           tmp_addflag=' -nofor_main' ;;
7768         esac
7769         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770
7771         if test $supports_anon_versioning = yes; then
7772           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7773   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7774   $echo "local: *; };" >> $output_objdir/$libname.ver~
7775           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7776         fi
7777       else
7778         ld_shlibs=no
7779       fi
7780       ;;
7781
7782     netbsd*)
7783       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7784         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7785         wlarc=
7786       else
7787         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7788         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7789       fi
7790       ;;
7791
7792     solaris*)
7793       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7794         ld_shlibs=no
7795         cat <<EOF 1>&2
7796
7797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7798 *** create shared libraries on Solaris systems.  Therefore, libtool
7799 *** is disabling shared libraries support.  We urge you to upgrade GNU
7800 *** binutils to release 2.9.1 or newer.  Another option is to modify
7801 *** your PATH or compiler configuration so that the native linker is
7802 *** used, and then restart.
7803
7804 EOF
7805       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7806         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7808       else
7809         ld_shlibs=no
7810       fi
7811       ;;
7812
7813     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7814       case `$LD -v 2>&1` in
7815         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7816         ld_shlibs=no
7817         cat <<_LT_EOF 1>&2
7818
7819 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7820 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7821 *** is disabling shared libraries support.  We urge you to upgrade GNU
7822 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7823 *** your PATH or compiler configuration so that the native linker is
7824 *** used, and then restart.
7825
7826 _LT_EOF
7827         ;;
7828         *)
7829           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7830             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7831             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7832             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7833           else
7834             ld_shlibs=no
7835           fi
7836         ;;
7837       esac
7838       ;;
7839
7840     sunos4*)
7841       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7842       wlarc=
7843       hardcode_direct=yes
7844       hardcode_shlibpath_var=no
7845       ;;
7846
7847     *)
7848       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7850         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7851       else
7852         ld_shlibs=no
7853       fi
7854       ;;
7855     esac
7856
7857     if test "$ld_shlibs" = no; then
7858       runpath_var=
7859       hardcode_libdir_flag_spec=
7860       export_dynamic_flag_spec=
7861       whole_archive_flag_spec=
7862     fi
7863   else
7864     # PORTME fill in a description of your system's linker (not GNU ld)
7865     case $host_os in
7866     aix3*)
7867       allow_undefined_flag=unsupported
7868       always_export_symbols=yes
7869       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'
7870       # Note: this linker hardcodes the directories in LIBPATH if there
7871       # are no directories specified by -L.
7872       hardcode_minus_L=yes
7873       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7874         # Neither direct hardcoding nor static linking is supported with a
7875         # broken collect2.
7876         hardcode_direct=unsupported
7877       fi
7878       ;;
7879
7880     aix4* | aix5*)
7881       if test "$host_cpu" = ia64; then
7882         # On IA64, the linker does run time linking by default, so we don't
7883         # have to do anything special.
7884         aix_use_runtimelinking=no
7885         exp_sym_flag='-Bexport'
7886         no_entry_flag=""
7887       else
7888         # If we're using GNU nm, then we don't want the "-C" option.
7889         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7890         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7891           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'
7892         else
7893           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'
7894         fi
7895         aix_use_runtimelinking=no
7896
7897         # Test if we are trying to use run time linking or normal
7898         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7899         # need to do runtime linking.
7900         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7901           for ld_flag in $LDFLAGS; do
7902           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7903             aix_use_runtimelinking=yes
7904             break
7905           fi
7906           done
7907           ;;
7908         esac
7909
7910         exp_sym_flag='-bexport'
7911         no_entry_flag='-bnoentry'
7912       fi
7913
7914       # When large executables or shared objects are built, AIX ld can
7915       # have problems creating the table of contents.  If linking a library
7916       # or program results in "error TOC overflow" add -mminimal-toc to
7917       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7918       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7919
7920       archive_cmds=''
7921       hardcode_direct=yes
7922       hardcode_libdir_separator=':'
7923       link_all_deplibs=yes
7924
7925       if test "$GCC" = yes; then
7926         case $host_os in aix4.[012]|aix4.[012].*)
7927         # We only want to do this on AIX 4.2 and lower, the check
7928         # below for broken collect2 doesn't work under 4.3+
7929           collect2name=`${CC} -print-prog-name=collect2`
7930           if test -f "$collect2name" && \
7931            strings "$collect2name" | grep resolve_lib_name >/dev/null
7932           then
7933           # We have reworked collect2
7934           hardcode_direct=yes
7935           else
7936           # We have old collect2
7937           hardcode_direct=unsupported
7938           # It fails to find uninstalled libraries when the uninstalled
7939           # path is not listed in the libpath.  Setting hardcode_minus_L
7940           # to unsupported forces relinking
7941           hardcode_minus_L=yes
7942           hardcode_libdir_flag_spec='-L$libdir'
7943           hardcode_libdir_separator=
7944           fi
7945           ;;
7946         esac
7947         shared_flag='-shared'
7948         if test "$aix_use_runtimelinking" = yes; then
7949           shared_flag="$shared_flag "'${wl}-G'
7950         fi
7951       else
7952         # not using gcc
7953         if test "$host_cpu" = ia64; then
7954         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7955         # chokes on -Wl,-G. The following line is correct:
7956           shared_flag='-G'
7957         else
7958           if test "$aix_use_runtimelinking" = yes; then
7959             shared_flag='${wl}-G'
7960           else
7961             shared_flag='${wl}-bM:SRE'
7962           fi
7963         fi
7964       fi
7965
7966       # It seems that -bexpall does not export symbols beginning with
7967       # underscore (_), so it is better to generate a list of symbols to export.
7968       always_export_symbols=yes
7969       if test "$aix_use_runtimelinking" = yes; then
7970         # Warning - without using the other runtime loading flags (-brtl),
7971         # -berok will link without error, but may produce a broken library.
7972         allow_undefined_flag='-berok'
7973        # Determine the default libpath from the value encoded in an empty executable.
7974        cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980
7981 int
7982 main ()
7983 {
7984
7985   ;
7986   return 0;
7987 }
7988 _ACEOF
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (ac_try="$ac_link"
7991 case "(($ac_try" in
7992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993   *) ac_try_echo=$ac_try;;
7994 esac
7995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7996 $as_echo "$ac_try_echo") >&5
7997   (eval "$ac_link") 2>conftest.er1
7998   ac_status=$?
7999   grep -v '^ *+' conftest.er1 >conftest.err
8000   rm -f conftest.er1
8001   cat conftest.err >&5
8002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } && {
8004          test -z "$ac_c_werror_flag" ||
8005          test ! -s conftest.err
8006        } && test -s conftest$ac_exeext && {
8007          test "$cross_compiling" = yes ||
8008          $as_test_x conftest$ac_exeext
8009        }; then
8010
8011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8012 }'`
8013 # Check for a 64-bit object if we didn't find anything.
8014 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8015 }'`; fi
8016 else
8017   $as_echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020
8021 fi
8022
8023 rm -rf conftest.dSYM
8024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8025       conftest$ac_exeext conftest.$ac_ext
8026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8027
8028        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8029         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"
8030        else
8031         if test "$host_cpu" = ia64; then
8032           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8033           allow_undefined_flag="-z nodefs"
8034           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"
8035         else
8036          # Determine the default libpath from the value encoded in an empty executable.
8037          cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 int
8045 main ()
8046 {
8047
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (ac_try="$ac_link"
8054 case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8059 $as_echo "$ac_try_echo") >&5
8060   (eval "$ac_link") 2>conftest.er1
8061   ac_status=$?
8062   grep -v '^ *+' conftest.er1 >conftest.err
8063   rm -f conftest.er1
8064   cat conftest.err >&5
8065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } && {
8067          test -z "$ac_c_werror_flag" ||
8068          test ! -s conftest.err
8069        } && test -s conftest$ac_exeext && {
8070          test "$cross_compiling" = yes ||
8071          $as_test_x conftest$ac_exeext
8072        }; then
8073
8074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8075 }'`
8076 # Check for a 64-bit object if we didn't find anything.
8077 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8078 }'`; fi
8079 else
8080   $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083
8084 fi
8085
8086 rm -rf conftest.dSYM
8087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8088       conftest$ac_exeext conftest.$ac_ext
8089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8090
8091          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8092           # Warning - without using the other run time loading flags,
8093           # -berok will link without error, but may produce a broken library.
8094           no_undefined_flag=' ${wl}-bernotok'
8095           allow_undefined_flag=' ${wl}-berok'
8096           # Exported symbols can be pulled into shared objects from archives
8097           whole_archive_flag_spec='$convenience'
8098           archive_cmds_need_lc=yes
8099           # This is similar to how AIX traditionally builds its shared libraries.
8100           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'
8101         fi
8102       fi
8103       ;;
8104
8105     amigaos*)
8106       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)'
8107       hardcode_libdir_flag_spec='-L$libdir'
8108       hardcode_minus_L=yes
8109       # see comment about different semantics on the GNU ld section
8110       ld_shlibs=no
8111       ;;
8112
8113     bsdi[45]*)
8114       export_dynamic_flag_spec=-rdynamic
8115       ;;
8116
8117     cygwin* | mingw* | pw32*)
8118       # When not using gcc, we currently assume that we are using
8119       # Microsoft Visual C++.
8120       # hardcode_libdir_flag_spec is actually meaningless, as there is
8121       # no search path for DLLs.
8122       hardcode_libdir_flag_spec=' '
8123       allow_undefined_flag=unsupported
8124       # Tell ltmain to make .lib files, not .a files.
8125       libext=lib
8126       # Tell ltmain to make .dll files, not .so files.
8127       shrext_cmds=".dll"
8128       # FIXME: Setting linknames here is a bad hack.
8129       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8130       # The linker will automatically build a .lib file if we build a DLL.
8131       old_archive_From_new_cmds='true'
8132       # FIXME: Should let the user specify the lib program.
8133       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8134       fix_srcfile_path='`cygpath -w "$srcfile"`'
8135       enable_shared_with_static_runtimes=yes
8136       ;;
8137
8138     darwin* | rhapsody*)
8139       case $host_os in
8140         rhapsody* | darwin1.[012])
8141          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8142          ;;
8143        *) # Darwin 1.3 on
8144          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8145            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8146          else
8147            case ${MACOSX_DEPLOYMENT_TARGET} in
8148              10.[012])
8149                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8150                ;;
8151              10.*)
8152                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8153                ;;
8154            esac
8155          fi
8156          ;;
8157       esac
8158       archive_cmds_need_lc=no
8159       hardcode_direct=no
8160       hardcode_automatic=yes
8161       hardcode_shlibpath_var=unsupported
8162       whole_archive_flag_spec=''
8163       link_all_deplibs=yes
8164     if test "$GCC" = yes ; then
8165         output_verbose_link_cmd='echo'
8166         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8167       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8168       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8169       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8170       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}'
8171     else
8172       case $cc_basename in
8173         xlc*)
8174          output_verbose_link_cmd='echo'
8175          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8176          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8177           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8178          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8179           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}'
8180           ;;
8181        *)
8182          ld_shlibs=no
8183           ;;
8184       esac
8185     fi
8186       ;;
8187
8188     dgux*)
8189       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8190       hardcode_libdir_flag_spec='-L$libdir'
8191       hardcode_shlibpath_var=no
8192       ;;
8193
8194     freebsd1*)
8195       ld_shlibs=no
8196       ;;
8197
8198     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8199     # support.  Future versions do this automatically, but an explicit c++rt0.o
8200     # does not break anything, and helps significantly (at the cost of a little
8201     # extra space).
8202     freebsd2.2*)
8203       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8204       hardcode_libdir_flag_spec='-R$libdir'
8205       hardcode_direct=yes
8206       hardcode_shlibpath_var=no
8207       ;;
8208
8209     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8210     freebsd2*)
8211       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8212       hardcode_direct=yes
8213       hardcode_minus_L=yes
8214       hardcode_shlibpath_var=no
8215       ;;
8216
8217     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8218     freebsd* | kfreebsd*-gnu | dragonfly*)
8219       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8220       hardcode_libdir_flag_spec='-R$libdir'
8221       hardcode_direct=yes
8222       hardcode_shlibpath_var=no
8223       ;;
8224
8225     hpux9*)
8226       if test "$GCC" = yes; then
8227         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'
8228       else
8229         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'
8230       fi
8231       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8232       hardcode_libdir_separator=:
8233       hardcode_direct=yes
8234
8235       # hardcode_minus_L: Not really in the search PATH,
8236       # but as the default location of the library.
8237       hardcode_minus_L=yes
8238       export_dynamic_flag_spec='${wl}-E'
8239       ;;
8240
8241     hpux10*)
8242       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8243         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8244       else
8245         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8246       fi
8247       if test "$with_gnu_ld" = no; then
8248         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249         hardcode_libdir_separator=:
8250
8251         hardcode_direct=yes
8252         export_dynamic_flag_spec='${wl}-E'
8253
8254         # hardcode_minus_L: Not really in the search PATH,
8255         # but as the default location of the library.
8256         hardcode_minus_L=yes
8257       fi
8258       ;;
8259
8260     hpux11*)
8261       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8262         case $host_cpu in
8263         hppa*64*)
8264           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265           ;;
8266         ia64*)
8267           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8268           ;;
8269         *)
8270           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8271           ;;
8272         esac
8273       else
8274         case $host_cpu in
8275         hppa*64*)
8276           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8277           ;;
8278         ia64*)
8279           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8280           ;;
8281         *)
8282           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8283           ;;
8284         esac
8285       fi
8286       if test "$with_gnu_ld" = no; then
8287         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8288         hardcode_libdir_separator=:
8289
8290         case $host_cpu in
8291         hppa*64*|ia64*)
8292           hardcode_libdir_flag_spec_ld='+b $libdir'
8293           hardcode_direct=no
8294           hardcode_shlibpath_var=no
8295           ;;
8296         *)
8297           hardcode_direct=yes
8298           export_dynamic_flag_spec='${wl}-E'
8299
8300           # hardcode_minus_L: Not really in the search PATH,
8301           # but as the default location of the library.
8302           hardcode_minus_L=yes
8303           ;;
8304         esac
8305       fi
8306       ;;
8307
8308     irix5* | irix6* | nonstopux*)
8309       if test "$GCC" = yes; then
8310         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'
8311       else
8312         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'
8313         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8314       fi
8315       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316       hardcode_libdir_separator=:
8317       link_all_deplibs=yes
8318       ;;
8319
8320     netbsd*)
8321       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8323       else
8324         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8325       fi
8326       hardcode_libdir_flag_spec='-R$libdir'
8327       hardcode_direct=yes
8328       hardcode_shlibpath_var=no
8329       ;;
8330
8331     newsos6)
8332       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333       hardcode_direct=yes
8334       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335       hardcode_libdir_separator=:
8336       hardcode_shlibpath_var=no
8337       ;;
8338
8339     openbsd*)
8340       hardcode_direct=yes
8341       hardcode_shlibpath_var=no
8342       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8343         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8344         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8345         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8346         export_dynamic_flag_spec='${wl}-E'
8347       else
8348        case $host_os in
8349          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8350            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351            hardcode_libdir_flag_spec='-R$libdir'
8352            ;;
8353          *)
8354            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8355            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8356            ;;
8357        esac
8358       fi
8359       ;;
8360
8361     os2*)
8362       hardcode_libdir_flag_spec='-L$libdir'
8363       hardcode_minus_L=yes
8364       allow_undefined_flag=unsupported
8365       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'
8366       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8367       ;;
8368
8369     osf3*)
8370       if test "$GCC" = yes; then
8371         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8372         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'
8373       else
8374         allow_undefined_flag=' -expect_unresolved \*'
8375         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'
8376       fi
8377       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378       hardcode_libdir_separator=:
8379       ;;
8380
8381     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8382       if test "$GCC" = yes; then
8383         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8384         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'
8385         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386       else
8387         allow_undefined_flag=' -expect_unresolved \*'
8388         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'
8389         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8390         $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'
8391
8392         # Both c and cxx compiler support -rpath directly
8393         hardcode_libdir_flag_spec='-rpath $libdir'
8394       fi
8395       hardcode_libdir_separator=:
8396       ;;
8397
8398     solaris*)
8399       no_undefined_flag=' -z text'
8400       if test "$GCC" = yes; then
8401         wlarc='${wl}'
8402         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8404           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8405       else
8406         wlarc=''
8407         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8410       fi
8411       hardcode_libdir_flag_spec='-R$libdir'
8412       hardcode_shlibpath_var=no
8413       case $host_os in
8414       solaris2.[0-5] | solaris2.[0-5].*) ;;
8415       *)
8416         # The compiler driver will combine linker options so we
8417         # cannot just pass the convience library names through
8418         # without $wl, iff we do not link with $LD.
8419         # Luckily, gcc supports the same syntax we need for Sun Studio.
8420         # Supported since Solaris 2.6 (maybe 2.5.1?)
8421         case $wlarc in
8422         '')
8423           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8424         *)
8425           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8426         esac ;;
8427       esac
8428       link_all_deplibs=yes
8429       ;;
8430
8431     sunos4*)
8432       if test "x$host_vendor" = xsequent; then
8433         # Use $CC to link under sequent, because it throws in some extra .o
8434         # files that make .init and .fini sections work.
8435         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8436       else
8437         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8438       fi
8439       hardcode_libdir_flag_spec='-L$libdir'
8440       hardcode_direct=yes
8441       hardcode_minus_L=yes
8442       hardcode_shlibpath_var=no
8443       ;;
8444
8445     sysv4)
8446       case $host_vendor in
8447         sni)
8448           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449           hardcode_direct=yes # is this really true???
8450         ;;
8451         siemens)
8452           ## LD is ld it makes a PLAMLIB
8453           ## CC just makes a GrossModule.
8454           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8455           reload_cmds='$CC -r -o $output$reload_objs'
8456           hardcode_direct=no
8457         ;;
8458         motorola)
8459           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8461         ;;
8462       esac
8463       runpath_var='LD_RUN_PATH'
8464       hardcode_shlibpath_var=no
8465       ;;
8466
8467     sysv4.3*)
8468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469       hardcode_shlibpath_var=no
8470       export_dynamic_flag_spec='-Bexport'
8471       ;;
8472
8473     sysv4*MP*)
8474       if test -d /usr/nec; then
8475         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8476         hardcode_shlibpath_var=no
8477         runpath_var=LD_RUN_PATH
8478         hardcode_runpath_var=yes
8479         ld_shlibs=yes
8480       fi
8481       ;;
8482
8483     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8484       no_undefined_flag='${wl}-z,text'
8485       archive_cmds_need_lc=no
8486       hardcode_shlibpath_var=no
8487       runpath_var='LD_RUN_PATH'
8488
8489       if test "$GCC" = yes; then
8490         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8491         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8492       else
8493         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8495       fi
8496       ;;
8497
8498     sysv5* | sco3.2v5* | sco5v6*)
8499       # Note: We can NOT use -z defs as we might desire, because we do not
8500       # link with -lc, and that would cause any symbols used from libc to
8501       # always be unresolved, which means just about no library would
8502       # ever link correctly.  If we're not using GNU ld we use -z text
8503       # though, which does catch some bad symbols but isn't as heavy-handed
8504       # as -z defs.
8505       no_undefined_flag='${wl}-z,text'
8506       allow_undefined_flag='${wl}-z,nodefs'
8507       archive_cmds_need_lc=no
8508       hardcode_shlibpath_var=no
8509       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8510       hardcode_libdir_separator=':'
8511       link_all_deplibs=yes
8512       export_dynamic_flag_spec='${wl}-Bexport'
8513       runpath_var='LD_RUN_PATH'
8514
8515       if test "$GCC" = yes; then
8516         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518       else
8519         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521       fi
8522       ;;
8523
8524     uts4*)
8525       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526       hardcode_libdir_flag_spec='-L$libdir'
8527       hardcode_shlibpath_var=no
8528       ;;
8529
8530     *)
8531       ld_shlibs=no
8532       ;;
8533     esac
8534   fi
8535
8536 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8537 $as_echo "$ld_shlibs" >&6; }
8538 test "$ld_shlibs" = no && can_build_shared=no
8539
8540 #
8541 # Do we need to explicitly link libc?
8542 #
8543 case "x$archive_cmds_need_lc" in
8544 x|xyes)
8545   # Assume -lc should be added
8546   archive_cmds_need_lc=yes
8547
8548   if test "$enable_shared" = yes && test "$GCC" = yes; then
8549     case $archive_cmds in
8550     *'~'*)
8551       # FIXME: we may have to deal with multi-command sequences.
8552       ;;
8553     '$CC '*)
8554       # Test whether the compiler implicitly links with -lc since on some
8555       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8556       # to ld, don't add -lc before -lgcc.
8557       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8559       $rm conftest*
8560       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8561
8562       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563   (eval $ac_compile) 2>&5
8564   ac_status=$?
8565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } 2>conftest.err; then
8567         soname=conftest
8568         lib=conftest
8569         libobjs=conftest.$ac_objext
8570         deplibs=
8571         wl=$lt_prog_compiler_wl
8572         pic_flag=$lt_prog_compiler_pic
8573         compiler_flags=-v
8574         linker_flags=-v
8575         verstring=
8576         output_objdir=.
8577         libname=conftest
8578         lt_save_allow_undefined_flag=$allow_undefined_flag
8579         allow_undefined_flag=
8580         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8581   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8582   ac_status=$?
8583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }
8585         then
8586           archive_cmds_need_lc=no
8587         else
8588           archive_cmds_need_lc=yes
8589         fi
8590         allow_undefined_flag=$lt_save_allow_undefined_flag
8591       else
8592         cat conftest.err 1>&5
8593       fi
8594       $rm conftest*
8595       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8596 $as_echo "$archive_cmds_need_lc" >&6; }
8597       ;;
8598     esac
8599   fi
8600   ;;
8601 esac
8602
8603 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8604 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8605 library_names_spec=
8606 libname_spec='lib$name'
8607 soname_spec=
8608 shrext_cmds=".so"
8609 postinstall_cmds=
8610 postuninstall_cmds=
8611 finish_cmds=
8612 finish_eval=
8613 shlibpath_var=
8614 shlibpath_overrides_runpath=unknown
8615 version_type=none
8616 dynamic_linker="$host_os ld.so"
8617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618 if test "$GCC" = yes; then
8619   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8620   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8621     # if the path contains ";" then we assume it to be the separator
8622     # otherwise default to the standard path separator (i.e. ":") - it is
8623     # assumed that no part of a normal pathname contains ";" but that should
8624     # okay in the real world where ";" in dirpaths is itself problematic.
8625     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8626   else
8627     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8628   fi
8629 else
8630   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8631 fi
8632 need_lib_prefix=unknown
8633 hardcode_into_libs=no
8634
8635 # when you set need_version to no, make sure it does not cause -set_version
8636 # flags to be left without arguments
8637 need_version=unknown
8638
8639 case $host_os in
8640 aix3*)
8641   version_type=linux
8642   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8643   shlibpath_var=LIBPATH
8644
8645   # AIX 3 has no versioning support, so we append a major version to the name.
8646   soname_spec='${libname}${release}${shared_ext}$major'
8647   ;;
8648
8649 aix4* | aix5*)
8650   version_type=linux
8651   need_lib_prefix=no
8652   need_version=no
8653   hardcode_into_libs=yes
8654   if test "$host_cpu" = ia64; then
8655     # AIX 5 supports IA64
8656     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8657     shlibpath_var=LD_LIBRARY_PATH
8658   else
8659     # With GCC up to 2.95.x, collect2 would create an import file
8660     # for dependence libraries.  The import file would start with
8661     # the line `#! .'.  This would cause the generated library to
8662     # depend on `.', always an invalid library.  This was fixed in
8663     # development snapshots of GCC prior to 3.0.
8664     case $host_os in
8665       aix4 | aix4.[01] | aix4.[01].*)
8666       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8667            echo ' yes '
8668            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8669         :
8670       else
8671         can_build_shared=no
8672       fi
8673       ;;
8674     esac
8675     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8676     # soname into executable. Probably we can add versioning support to
8677     # collect2, so additional links can be useful in future.
8678     if test "$aix_use_runtimelinking" = yes; then
8679       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8680       # instead of lib<name>.a to let people know that these are not
8681       # typical AIX shared libraries.
8682       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683     else
8684       # We preserve .a as extension for shared libraries through AIX4.2
8685       # and later when we are not doing run time linking.
8686       library_names_spec='${libname}${release}.a $libname.a'
8687       soname_spec='${libname}${release}${shared_ext}$major'
8688     fi
8689     shlibpath_var=LIBPATH
8690   fi
8691   ;;
8692
8693 amigaos*)
8694   library_names_spec='$libname.ixlibrary $libname.a'
8695   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696   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'
8697   ;;
8698
8699 beos*)
8700   library_names_spec='${libname}${shared_ext}'
8701   dynamic_linker="$host_os ld.so"
8702   shlibpath_var=LIBRARY_PATH
8703   ;;
8704
8705 bsdi[45]*)
8706   version_type=linux
8707   need_version=no
8708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709   soname_spec='${libname}${release}${shared_ext}$major'
8710   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711   shlibpath_var=LD_LIBRARY_PATH
8712   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714   # the default ld.so.conf also contains /usr/contrib/lib and
8715   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716   # libtool to hard-code these into programs
8717   ;;
8718
8719 cygwin* | mingw* | pw32*)
8720   version_type=windows
8721   shrext_cmds=".dll"
8722   need_version=no
8723   need_lib_prefix=no
8724
8725   case $GCC,$host_os in
8726   yes,cygwin* | yes,mingw* | yes,pw32*)
8727     library_names_spec='$libname.dll.a'
8728     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729     postinstall_cmds='base_file=`basename \${file}`~
8730       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8731       dldir=$destdir/`dirname \$dlpath`~
8732       test -d \$dldir || mkdir -p \$dldir~
8733       $install_prog $dir/$dlname \$dldir/$dlname~
8734       chmod a+x \$dldir/$dlname'
8735     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8736       dlpath=$dir/\$dldll~
8737        $rm \$dlpath'
8738     shlibpath_overrides_runpath=yes
8739
8740     case $host_os in
8741     cygwin*)
8742       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8743       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8745       ;;
8746     mingw*)
8747       # MinGW DLLs use traditional 'lib' prefix
8748       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8750       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8751         # It is most probably a Windows format PATH printed by
8752         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8753         # path with ; separators, and with drive letters. We can handle the
8754         # drive letters (cygwin fileutils understands them), so leave them,
8755         # especially as we might pass files found there to a mingw objdump,
8756         # which wouldn't understand a cygwinified path. Ahh.
8757         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758       else
8759         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8760       fi
8761       ;;
8762     pw32*)
8763       # pw32 DLLs use 'pw' prefix rather than 'lib'
8764       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765       ;;
8766     esac
8767     ;;
8768
8769   *)
8770     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8771     ;;
8772   esac
8773   dynamic_linker='Win32 ld.exe'
8774   # FIXME: first we should search . and the directory the executable is in
8775   shlibpath_var=PATH
8776   ;;
8777
8778 darwin* | rhapsody*)
8779   dynamic_linker="$host_os dyld"
8780   version_type=darwin
8781   need_lib_prefix=no
8782   need_version=no
8783   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8784   soname_spec='${libname}${release}${major}$shared_ext'
8785   shlibpath_overrides_runpath=yes
8786   shlibpath_var=DYLD_LIBRARY_PATH
8787   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8788   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8789   if test "$GCC" = yes; then
8790     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8791   else
8792     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8793   fi
8794   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8795   ;;
8796
8797 dgux*)
8798   version_type=linux
8799   need_lib_prefix=no
8800   need_version=no
8801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8802   soname_spec='${libname}${release}${shared_ext}$major'
8803   shlibpath_var=LD_LIBRARY_PATH
8804   ;;
8805
8806 freebsd1*)
8807   dynamic_linker=no
8808   ;;
8809
8810 kfreebsd*-gnu)
8811   version_type=linux
8812   need_lib_prefix=no
8813   need_version=no
8814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815   soname_spec='${libname}${release}${shared_ext}$major'
8816   shlibpath_var=LD_LIBRARY_PATH
8817   shlibpath_overrides_runpath=no
8818   hardcode_into_libs=yes
8819   dynamic_linker='GNU ld.so'
8820   ;;
8821
8822 freebsd* | dragonfly*)
8823   # DragonFly does not have aout.  When/if they implement a new
8824   # versioning mechanism, adjust this.
8825   if test -x /usr/bin/objformat; then
8826     objformat=`/usr/bin/objformat`
8827   else
8828     case $host_os in
8829     freebsd[123]*) objformat=aout ;;
8830     *) objformat=elf ;;
8831     esac
8832   fi
8833   version_type=freebsd-$objformat
8834   case $version_type in
8835     freebsd-elf*)
8836       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837       need_version=no
8838       need_lib_prefix=no
8839       ;;
8840     freebsd-*)
8841       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8842       need_version=yes
8843       ;;
8844   esac
8845   shlibpath_var=LD_LIBRARY_PATH
8846   case $host_os in
8847   freebsd2*)
8848     shlibpath_overrides_runpath=yes
8849     ;;
8850   freebsd3.[01]* | freebsdelf3.[01]*)
8851     shlibpath_overrides_runpath=yes
8852     hardcode_into_libs=yes
8853     ;;
8854   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856     shlibpath_overrides_runpath=no
8857     hardcode_into_libs=yes
8858     ;;
8859   freebsd*) # from 4.6 on
8860     shlibpath_overrides_runpath=yes
8861     hardcode_into_libs=yes
8862     ;;
8863   esac
8864   ;;
8865
8866 gnu*)
8867   version_type=linux
8868   need_lib_prefix=no
8869   need_version=no
8870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871   soname_spec='${libname}${release}${shared_ext}$major'
8872   shlibpath_var=LD_LIBRARY_PATH
8873   hardcode_into_libs=yes
8874   ;;
8875
8876 hpux9* | hpux10* | hpux11*)
8877   # Give a soname corresponding to the major version so that dld.sl refuses to
8878   # link against other versions.
8879   version_type=sunos
8880   need_lib_prefix=no
8881   need_version=no
8882   case $host_cpu in
8883   ia64*)
8884     shrext_cmds='.so'
8885     hardcode_into_libs=yes
8886     dynamic_linker="$host_os dld.so"
8887     shlibpath_var=LD_LIBRARY_PATH
8888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890     soname_spec='${libname}${release}${shared_ext}$major'
8891     if test "X$HPUX_IA64_MODE" = X32; then
8892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893     else
8894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895     fi
8896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897     ;;
8898    hppa*64*)
8899      shrext_cmds='.sl'
8900      hardcode_into_libs=yes
8901      dynamic_linker="$host_os dld.sl"
8902      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905      soname_spec='${libname}${release}${shared_ext}$major'
8906      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908      ;;
8909    *)
8910     shrext_cmds='.sl'
8911     dynamic_linker="$host_os dld.sl"
8912     shlibpath_var=SHLIB_PATH
8913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915     soname_spec='${libname}${release}${shared_ext}$major'
8916     ;;
8917   esac
8918   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919   postinstall_cmds='chmod 555 $lib'
8920   ;;
8921
8922 interix3*)
8923   version_type=linux
8924   need_lib_prefix=no
8925   need_version=no
8926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927   soname_spec='${libname}${release}${shared_ext}$major'
8928   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929   shlibpath_var=LD_LIBRARY_PATH
8930   shlibpath_overrides_runpath=no
8931   hardcode_into_libs=yes
8932   ;;
8933
8934 irix5* | irix6* | nonstopux*)
8935   case $host_os in
8936     nonstopux*) version_type=nonstopux ;;
8937     *)
8938         if test "$lt_cv_prog_gnu_ld" = yes; then
8939                 version_type=linux
8940         else
8941                 version_type=irix
8942         fi ;;
8943   esac
8944   need_lib_prefix=no
8945   need_version=no
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948   case $host_os in
8949   irix5* | nonstopux*)
8950     libsuff= shlibsuff=
8951     ;;
8952   *)
8953     case $LD in # libtool.m4 will add one of these switches to LD
8954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955       libsuff= shlibsuff= libmagic=32-bit;;
8956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957       libsuff=32 shlibsuff=N32 libmagic=N32;;
8958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960     *) libsuff= shlibsuff= libmagic=never-match;;
8961     esac
8962     ;;
8963   esac
8964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965   shlibpath_overrides_runpath=no
8966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968   hardcode_into_libs=yes
8969   ;;
8970
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8973   dynamic_linker=no
8974   ;;
8975
8976 # This must be Linux ELF.
8977 linux*)
8978   version_type=linux
8979   need_lib_prefix=no
8980   need_version=no
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   # This implies no fast_install, which is unacceptable.
8987   # Some rework will be needed to allow for fast_install
8988   # before this can be enabled.
8989   hardcode_into_libs=yes
8990
8991   # find out which ABI we are using
8992   libsuff=
8993   case "$host_cpu" in
8994   x86_64*|s390x*|powerpc64*)
8995     echo '#line 8995 "configure"' > conftest.$ac_ext
8996     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997   (eval $ac_compile) 2>&5
8998   ac_status=$?
8999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; then
9001       case `/usr/bin/file conftest.$ac_objext` in
9002       *64-bit*)
9003         libsuff=64
9004         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9005         ;;
9006       esac
9007     fi
9008     rm -rf conftest*
9009     ;;
9010   esac
9011
9012   # Append ld.so.conf contents to the search path
9013   if test -f /etc/ld.so.conf; then
9014     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9015     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9016   fi
9017
9018   # We used to test for /lib/ld.so.1 and disable shared libraries on
9019   # powerpc, because MkLinux only supported shared libraries with the
9020   # GNU dynamic linker.  Since this was broken with cross compilers,
9021   # most powerpc-linux boxes support dynamic linking these days and
9022   # people can always --disable-shared, the test was removed, and we
9023   # assume the GNU/Linux dynamic linker is in use.
9024   dynamic_linker='GNU/Linux ld.so'
9025   ;;
9026
9027 knetbsd*-gnu)
9028   version_type=linux
9029   need_lib_prefix=no
9030   need_version=no
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032   soname_spec='${libname}${release}${shared_ext}$major'
9033   shlibpath_var=LD_LIBRARY_PATH
9034   shlibpath_overrides_runpath=no
9035   hardcode_into_libs=yes
9036   dynamic_linker='GNU ld.so'
9037   ;;
9038
9039 netbsd*)
9040   version_type=sunos
9041   need_lib_prefix=no
9042   need_version=no
9043   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046     dynamic_linker='NetBSD (a.out) ld.so'
9047   else
9048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9049     soname_spec='${libname}${release}${shared_ext}$major'
9050     dynamic_linker='NetBSD ld.elf_so'
9051   fi
9052   shlibpath_var=LD_LIBRARY_PATH
9053   shlibpath_overrides_runpath=yes
9054   hardcode_into_libs=yes
9055   ;;
9056
9057 newsos6)
9058   version_type=linux
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=yes
9062   ;;
9063
9064 nto-qnx*)
9065   version_type=linux
9066   need_lib_prefix=no
9067   need_version=no
9068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069   soname_spec='${libname}${release}${shared_ext}$major'
9070   shlibpath_var=LD_LIBRARY_PATH
9071   shlibpath_overrides_runpath=yes
9072   ;;
9073
9074 openbsd*)
9075   version_type=sunos
9076   sys_lib_dlsearch_path_spec="/usr/lib"
9077   need_lib_prefix=no
9078   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9079   case $host_os in
9080     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9081     *)                         need_version=no  ;;
9082   esac
9083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9087     case $host_os in
9088       openbsd2.[89] | openbsd2.[89].*)
9089         shlibpath_overrides_runpath=no
9090         ;;
9091       *)
9092         shlibpath_overrides_runpath=yes
9093         ;;
9094       esac
9095   else
9096     shlibpath_overrides_runpath=yes
9097   fi
9098   ;;
9099
9100 os2*)
9101   libname_spec='$name'
9102   shrext_cmds=".dll"
9103   need_lib_prefix=no
9104   library_names_spec='$libname${shared_ext} $libname.a'
9105   dynamic_linker='OS/2 ld.exe'
9106   shlibpath_var=LIBPATH
9107   ;;
9108
9109 osf3* | osf4* | osf5*)
9110   version_type=osf
9111   need_lib_prefix=no
9112   need_version=no
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9117   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9118   ;;
9119
9120 solaris*)
9121   version_type=linux
9122   need_lib_prefix=no
9123   need_version=no
9124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125   soname_spec='${libname}${release}${shared_ext}$major'
9126   shlibpath_var=LD_LIBRARY_PATH
9127   shlibpath_overrides_runpath=yes
9128   hardcode_into_libs=yes
9129   # ldd complains unless libraries are executable
9130   postinstall_cmds='chmod +x $lib'
9131   ;;
9132
9133 sunos4*)
9134   version_type=sunos
9135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9136   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9137   shlibpath_var=LD_LIBRARY_PATH
9138   shlibpath_overrides_runpath=yes
9139   if test "$with_gnu_ld" = yes; then
9140     need_lib_prefix=no
9141   fi
9142   need_version=yes
9143   ;;
9144
9145 sysv4 | sysv4.3*)
9146   version_type=linux
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   case $host_vendor in
9151     sni)
9152       shlibpath_overrides_runpath=no
9153       need_lib_prefix=no
9154       export_dynamic_flag_spec='${wl}-Blargedynsym'
9155       runpath_var=LD_RUN_PATH
9156       ;;
9157     siemens)
9158       need_lib_prefix=no
9159       ;;
9160     motorola)
9161       need_lib_prefix=no
9162       need_version=no
9163       shlibpath_overrides_runpath=no
9164       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9165       ;;
9166   esac
9167   ;;
9168
9169 sysv4*MP*)
9170   if test -d /usr/nec ;then
9171     version_type=linux
9172     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9173     soname_spec='$libname${shared_ext}.$major'
9174     shlibpath_var=LD_LIBRARY_PATH
9175   fi
9176   ;;
9177
9178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9179   version_type=freebsd-elf
9180   need_lib_prefix=no
9181   need_version=no
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   shlibpath_var=LD_LIBRARY_PATH
9185   hardcode_into_libs=yes
9186   if test "$with_gnu_ld" = yes; then
9187     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9188     shlibpath_overrides_runpath=no
9189   else
9190     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9191     shlibpath_overrides_runpath=yes
9192     case $host_os in
9193       sco3.2v5*)
9194         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9195         ;;
9196     esac
9197   fi
9198   sys_lib_dlsearch_path_spec='/usr/lib'
9199   ;;
9200
9201 uts4*)
9202   version_type=linux
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204   soname_spec='${libname}${release}${shared_ext}$major'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   ;;
9207
9208 *)
9209   dynamic_linker=no
9210   ;;
9211 esac
9212 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9213 $as_echo "$dynamic_linker" >&6; }
9214 test "$dynamic_linker" = no && can_build_shared=no
9215
9216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9217 if test "$GCC" = yes; then
9218   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9219 fi
9220
9221 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9223 hardcode_action=
9224 if test -n "$hardcode_libdir_flag_spec" || \
9225    test -n "$runpath_var" || \
9226    test "X$hardcode_automatic" = "Xyes" ; then
9227
9228   # We can hardcode non-existant directories.
9229   if test "$hardcode_direct" != no &&
9230      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9231      # have to relink, otherwise we might link with an installed library
9232      # when we should be linking with a yet-to-be-installed one
9233      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9234      test "$hardcode_minus_L" != no; then
9235     # Linking always hardcodes the temporary library directory.
9236     hardcode_action=relink
9237   else
9238     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9239     hardcode_action=immediate
9240   fi
9241 else
9242   # We cannot hardcode anything, or else we can only hardcode existing
9243   # directories.
9244   hardcode_action=unsupported
9245 fi
9246 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9247 $as_echo "$hardcode_action" >&6; }
9248
9249 if test "$hardcode_action" = relink; then
9250   # Fast installation is not supported
9251   enable_fast_install=no
9252 elif test "$shlibpath_overrides_runpath" = yes ||
9253      test "$enable_shared" = no; then
9254   # Fast installation is not necessary
9255   enable_fast_install=needless
9256 fi
9257
9258 striplib=
9259 old_striplib=
9260 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9261 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9262 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9263   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9264   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9265   { $as_echo "$as_me:$LINENO: result: yes" >&5
9266 $as_echo "yes" >&6; }
9267 else
9268 # FIXME - insert some real tests, host_os isn't really good enough
9269   case $host_os in
9270    darwin*)
9271        if test -n "$STRIP" ; then
9272          striplib="$STRIP -x"
9273          { $as_echo "$as_me:$LINENO: result: yes" >&5
9274 $as_echo "yes" >&6; }
9275        else
9276   { $as_echo "$as_me:$LINENO: result: no" >&5
9277 $as_echo "no" >&6; }
9278 fi
9279        ;;
9280    *)
9281   { $as_echo "$as_me:$LINENO: result: no" >&5
9282 $as_echo "no" >&6; }
9283     ;;
9284   esac
9285 fi
9286
9287 if test "x$enable_dlopen" != xyes; then
9288   enable_dlopen=unknown
9289   enable_dlopen_self=unknown
9290   enable_dlopen_self_static=unknown
9291 else
9292   lt_cv_dlopen=no
9293   lt_cv_dlopen_libs=
9294
9295   case $host_os in
9296   beos*)
9297     lt_cv_dlopen="load_add_on"
9298     lt_cv_dlopen_libs=
9299     lt_cv_dlopen_self=yes
9300     ;;
9301
9302   mingw* | pw32*)
9303     lt_cv_dlopen="LoadLibrary"
9304     lt_cv_dlopen_libs=
9305    ;;
9306
9307   cygwin*)
9308     lt_cv_dlopen="dlopen"
9309     lt_cv_dlopen_libs=
9310    ;;
9311
9312   darwin*)
9313   # if libdl is installed we need to link against it
9314     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9317   $as_echo_n "(cached) " >&6
9318 else
9319   ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-ldl  $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329    Use char because int might match the return type of a GCC
9330    builtin and then its argument prototype would still apply.  */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char dlopen ();
9335 int
9336 main ()
9337 {
9338 return dlopen ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351   (eval "$ac_link") 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && {
9358          test -z "$ac_c_werror_flag" ||
9359          test ! -s conftest.err
9360        } && test -s conftest$ac_exeext && {
9361          test "$cross_compiling" = yes ||
9362          $as_test_x conftest$ac_exeext
9363        }; then
9364   ac_cv_lib_dl_dlopen=yes
9365 else
9366   $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369         ac_cv_lib_dl_dlopen=no
9370 fi
9371
9372 rm -rf conftest.dSYM
9373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374       conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9376 fi
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9379 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9381 else
9382
9383     lt_cv_dlopen="dyld"
9384     lt_cv_dlopen_libs=
9385     lt_cv_dlopen_self=yes
9386
9387 fi
9388
9389    ;;
9390
9391   *)
9392     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9393 $as_echo_n "checking for shl_load... " >&6; }
9394 if test "${ac_cv_func_shl_load+set}" = set; then
9395   $as_echo_n "(cached) " >&6
9396 else
9397   cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h.  */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h.  */
9403 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9405 #define shl_load innocuous_shl_load
9406
9407 /* System header to define __stub macros and hopefully few prototypes,
9408     which can conflict with char shl_load (); below.
9409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9410     <limits.h> exists even on freestanding compilers.  */
9411
9412 #ifdef __STDC__
9413 # include <limits.h>
9414 #else
9415 # include <assert.h>
9416 #endif
9417
9418 #undef shl_load
9419
9420 /* Override any GCC internal prototype to avoid an error.
9421    Use char because int might match the return type of a GCC
9422    builtin and then its argument prototype would still apply.  */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 char shl_load ();
9427 /* The GNU C library defines this for functions which it implements
9428     to always fail with ENOSYS.  Some functions are actually named
9429     something starting with __ and the normal name is an alias.  */
9430 #if defined __stub_shl_load || defined __stub___shl_load
9431 choke me
9432 #endif
9433
9434 int
9435 main ()
9436 {
9437 return shl_load ();
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext conftest$ac_exeext
9443 if { (ac_try="$ac_link"
9444 case "(($ac_try" in
9445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446   *) ac_try_echo=$ac_try;;
9447 esac
9448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9449 $as_echo "$ac_try_echo") >&5
9450   (eval "$ac_link") 2>conftest.er1
9451   ac_status=$?
9452   grep -v '^ *+' conftest.er1 >conftest.err
9453   rm -f conftest.er1
9454   cat conftest.err >&5
9455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } && {
9457          test -z "$ac_c_werror_flag" ||
9458          test ! -s conftest.err
9459        } && test -s conftest$ac_exeext && {
9460          test "$cross_compiling" = yes ||
9461          $as_test_x conftest$ac_exeext
9462        }; then
9463   ac_cv_func_shl_load=yes
9464 else
9465   $as_echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468         ac_cv_func_shl_load=no
9469 fi
9470
9471 rm -rf conftest.dSYM
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473       conftest$ac_exeext conftest.$ac_ext
9474 fi
9475 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9476 $as_echo "$ac_cv_func_shl_load" >&6; }
9477 if test "x$ac_cv_func_shl_load" = x""yes; then
9478   lt_cv_dlopen="shl_load"
9479 else
9480   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9481 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9482 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9483   $as_echo_n "(cached) " >&6
9484 else
9485   ac_check_lib_save_LIBS=$LIBS
9486 LIBS="-ldld  $LIBS"
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493
9494 /* Override any GCC internal prototype to avoid an error.
9495    Use char because int might match the return type of a GCC
9496    builtin and then its argument prototype would still apply.  */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 char shl_load ();
9501 int
9502 main ()
9503 {
9504 return shl_load ();
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (ac_try="$ac_link"
9511 case "(($ac_try" in
9512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513   *) ac_try_echo=$ac_try;;
9514 esac
9515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9516 $as_echo "$ac_try_echo") >&5
9517   (eval "$ac_link") 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } && {
9524          test -z "$ac_c_werror_flag" ||
9525          test ! -s conftest.err
9526        } && test -s conftest$ac_exeext && {
9527          test "$cross_compiling" = yes ||
9528          $as_test_x conftest$ac_exeext
9529        }; then
9530   ac_cv_lib_dld_shl_load=yes
9531 else
9532   $as_echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535         ac_cv_lib_dld_shl_load=no
9536 fi
9537
9538 rm -rf conftest.dSYM
9539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9540       conftest$ac_exeext conftest.$ac_ext
9541 LIBS=$ac_check_lib_save_LIBS
9542 fi
9543 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9545 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9546   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9547 else
9548   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9549 $as_echo_n "checking for dlopen... " >&6; }
9550 if test "${ac_cv_func_dlopen+set}" = set; then
9551   $as_echo_n "(cached) " >&6
9552 else
9553   cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9561 #define dlopen innocuous_dlopen
9562
9563 /* System header to define __stub macros and hopefully few prototypes,
9564     which can conflict with char dlopen (); below.
9565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566     <limits.h> exists even on freestanding compilers.  */
9567
9568 #ifdef __STDC__
9569 # include <limits.h>
9570 #else
9571 # include <assert.h>
9572 #endif
9573
9574 #undef dlopen
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577    Use char because int might match the return type of a GCC
9578    builtin and then its argument prototype would still apply.  */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char dlopen ();
9583 /* The GNU C library defines this for functions which it implements
9584     to always fail with ENOSYS.  Some functions are actually named
9585     something starting with __ and the normal name is an alias.  */
9586 #if defined __stub_dlopen || defined __stub___dlopen
9587 choke me
9588 #endif
9589
9590 int
9591 main ()
9592 {
9593 return dlopen ();
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9605 $as_echo "$ac_try_echo") >&5
9606   (eval "$ac_link") 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && {
9613          test -z "$ac_c_werror_flag" ||
9614          test ! -s conftest.err
9615        } && test -s conftest$ac_exeext && {
9616          test "$cross_compiling" = yes ||
9617          $as_test_x conftest$ac_exeext
9618        }; then
9619   ac_cv_func_dlopen=yes
9620 else
9621   $as_echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624         ac_cv_func_dlopen=no
9625 fi
9626
9627 rm -rf conftest.dSYM
9628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9629       conftest$ac_exeext conftest.$ac_ext
9630 fi
9631 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9632 $as_echo "$ac_cv_func_dlopen" >&6; }
9633 if test "x$ac_cv_func_dlopen" = x""yes; then
9634   lt_cv_dlopen="dlopen"
9635 else
9636   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9639   $as_echo_n "(cached) " >&6
9640 else
9641   ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-ldl  $LIBS"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651    Use char because int might match the return type of a GCC
9652    builtin and then its argument prototype would still apply.  */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char dlopen ();
9657 int
9658 main ()
9659 {
9660 return dlopen ();
9661   ;
9662   return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9672 $as_echo "$ac_try_echo") >&5
9673   (eval "$ac_link") 2>conftest.er1
9674   ac_status=$?
9675   grep -v '^ *+' conftest.er1 >conftest.err
9676   rm -f conftest.er1
9677   cat conftest.err >&5
9678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && {
9680          test -z "$ac_c_werror_flag" ||
9681          test ! -s conftest.err
9682        } && test -s conftest$ac_exeext && {
9683          test "$cross_compiling" = yes ||
9684          $as_test_x conftest$ac_exeext
9685        }; then
9686   ac_cv_lib_dl_dlopen=yes
9687 else
9688   $as_echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691         ac_cv_lib_dl_dlopen=no
9692 fi
9693
9694 rm -rf conftest.dSYM
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696       conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9698 fi
9699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9701 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9702   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9703 else
9704   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9706 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9707   $as_echo_n "(cached) " >&6
9708 else
9709   ac_check_lib_save_LIBS=$LIBS
9710 LIBS="-lsvld  $LIBS"
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717
9718 /* Override any GCC internal prototype to avoid an error.
9719    Use char because int might match the return type of a GCC
9720    builtin and then its argument prototype would still apply.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 char dlopen ();
9725 int
9726 main ()
9727 {
9728 return dlopen ();
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9740 $as_echo "$ac_try_echo") >&5
9741   (eval "$ac_link") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } && {
9748          test -z "$ac_c_werror_flag" ||
9749          test ! -s conftest.err
9750        } && test -s conftest$ac_exeext && {
9751          test "$cross_compiling" = yes ||
9752          $as_test_x conftest$ac_exeext
9753        }; then
9754   ac_cv_lib_svld_dlopen=yes
9755 else
9756   $as_echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_lib_svld_dlopen=no
9760 fi
9761
9762 rm -rf conftest.dSYM
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764       conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9766 fi
9767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9768 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9769 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9771 else
9772   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9773 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9774 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9775   $as_echo_n "(cached) " >&6
9776 else
9777   ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-ldld  $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h.  */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h.  */
9785
9786 /* Override any GCC internal prototype to avoid an error.
9787    Use char because int might match the return type of a GCC
9788    builtin and then its argument prototype would still apply.  */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char dld_link ();
9793 int
9794 main ()
9795 {
9796 return dld_link ();
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9803 case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809   (eval "$ac_link") 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } && {
9816          test -z "$ac_c_werror_flag" ||
9817          test ! -s conftest.err
9818        } && test -s conftest$ac_exeext && {
9819          test "$cross_compiling" = yes ||
9820          $as_test_x conftest$ac_exeext
9821        }; then
9822   ac_cv_lib_dld_dld_link=yes
9823 else
9824   $as_echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827         ac_cv_lib_dld_dld_link=no
9828 fi
9829
9830 rm -rf conftest.dSYM
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832       conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9834 fi
9835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9836 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9837 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9838   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9839 fi
9840
9841
9842 fi
9843
9844
9845 fi
9846
9847
9848 fi
9849
9850
9851 fi
9852
9853
9854 fi
9855
9856     ;;
9857   esac
9858
9859   if test "x$lt_cv_dlopen" != xno; then
9860     enable_dlopen=yes
9861   else
9862     enable_dlopen=no
9863   fi
9864
9865   case $lt_cv_dlopen in
9866   dlopen)
9867     save_CPPFLAGS="$CPPFLAGS"
9868     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9869
9870     save_LDFLAGS="$LDFLAGS"
9871     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9872
9873     save_LIBS="$LIBS"
9874     LIBS="$lt_cv_dlopen_libs $LIBS"
9875
9876     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9877 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9878 if test "${lt_cv_dlopen_self+set}" = set; then
9879   $as_echo_n "(cached) " >&6
9880 else
9881           if test "$cross_compiling" = yes; then :
9882   lt_cv_dlopen_self=cross
9883 else
9884   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9885   lt_status=$lt_dlunknown
9886   cat > conftest.$ac_ext <<EOF
9887 #line 9887 "configure"
9888 #include "confdefs.h"
9889
9890 #if HAVE_DLFCN_H
9891 #include <dlfcn.h>
9892 #endif
9893
9894 #include <stdio.h>
9895
9896 #ifdef RTLD_GLOBAL
9897 #  define LT_DLGLOBAL           RTLD_GLOBAL
9898 #else
9899 #  ifdef DL_GLOBAL
9900 #    define LT_DLGLOBAL         DL_GLOBAL
9901 #  else
9902 #    define LT_DLGLOBAL         0
9903 #  endif
9904 #endif
9905
9906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9907    find out it does not work in some platform. */
9908 #ifndef LT_DLLAZY_OR_NOW
9909 #  ifdef RTLD_LAZY
9910 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9911 #  else
9912 #    ifdef DL_LAZY
9913 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9914 #    else
9915 #      ifdef RTLD_NOW
9916 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9917 #      else
9918 #        ifdef DL_NOW
9919 #          define LT_DLLAZY_OR_NOW      DL_NOW
9920 #        else
9921 #          define LT_DLLAZY_OR_NOW      0
9922 #        endif
9923 #      endif
9924 #    endif
9925 #  endif
9926 #endif
9927
9928 #ifdef __cplusplus
9929 extern "C" void exit (int);
9930 #endif
9931
9932 void fnord() { int i=42;}
9933 int main ()
9934 {
9935   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9936   int status = $lt_dlunknown;
9937
9938   if (self)
9939     {
9940       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9941       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9942       /* dlclose (self); */
9943     }
9944   else
9945     puts (dlerror ());
9946
9947     exit (status);
9948 }
9949 EOF
9950   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951   (eval $ac_link) 2>&5
9952   ac_status=$?
9953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9955     (./conftest; exit; ) >&5 2>/dev/null
9956     lt_status=$?
9957     case x$lt_status in
9958       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9959       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9960       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9961     esac
9962   else :
9963     # compilation failed
9964     lt_cv_dlopen_self=no
9965   fi
9966 fi
9967 rm -fr conftest*
9968
9969
9970 fi
9971 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9972 $as_echo "$lt_cv_dlopen_self" >&6; }
9973
9974     if test "x$lt_cv_dlopen_self" = xyes; then
9975       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9976       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9977 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9978 if test "${lt_cv_dlopen_self_static+set}" = set; then
9979   $as_echo_n "(cached) " >&6
9980 else
9981           if test "$cross_compiling" = yes; then :
9982   lt_cv_dlopen_self_static=cross
9983 else
9984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9985   lt_status=$lt_dlunknown
9986   cat > conftest.$ac_ext <<EOF
9987 #line 9987 "configure"
9988 #include "confdefs.h"
9989
9990 #if HAVE_DLFCN_H
9991 #include <dlfcn.h>
9992 #endif
9993
9994 #include <stdio.h>
9995
9996 #ifdef RTLD_GLOBAL
9997 #  define LT_DLGLOBAL           RTLD_GLOBAL
9998 #else
9999 #  ifdef DL_GLOBAL
10000 #    define LT_DLGLOBAL         DL_GLOBAL
10001 #  else
10002 #    define LT_DLGLOBAL         0
10003 #  endif
10004 #endif
10005
10006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10007    find out it does not work in some platform. */
10008 #ifndef LT_DLLAZY_OR_NOW
10009 #  ifdef RTLD_LAZY
10010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10011 #  else
10012 #    ifdef DL_LAZY
10013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10014 #    else
10015 #      ifdef RTLD_NOW
10016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10017 #      else
10018 #        ifdef DL_NOW
10019 #          define LT_DLLAZY_OR_NOW      DL_NOW
10020 #        else
10021 #          define LT_DLLAZY_OR_NOW      0
10022 #        endif
10023 #      endif
10024 #    endif
10025 #  endif
10026 #endif
10027
10028 #ifdef __cplusplus
10029 extern "C" void exit (int);
10030 #endif
10031
10032 void fnord() { int i=42;}
10033 int main ()
10034 {
10035   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10036   int status = $lt_dlunknown;
10037
10038   if (self)
10039     {
10040       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10041       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10042       /* dlclose (self); */
10043     }
10044   else
10045     puts (dlerror ());
10046
10047     exit (status);
10048 }
10049 EOF
10050   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051   (eval $ac_link) 2>&5
10052   ac_status=$?
10053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10055     (./conftest; exit; ) >&5 2>/dev/null
10056     lt_status=$?
10057     case x$lt_status in
10058       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10059       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10060       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10061     esac
10062   else :
10063     # compilation failed
10064     lt_cv_dlopen_self_static=no
10065   fi
10066 fi
10067 rm -fr conftest*
10068
10069
10070 fi
10071 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10072 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10073     fi
10074
10075     CPPFLAGS="$save_CPPFLAGS"
10076     LDFLAGS="$save_LDFLAGS"
10077     LIBS="$save_LIBS"
10078     ;;
10079   esac
10080
10081   case $lt_cv_dlopen_self in
10082   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10083   *) enable_dlopen_self=unknown ;;
10084   esac
10085
10086   case $lt_cv_dlopen_self_static in
10087   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10088   *) enable_dlopen_self_static=unknown ;;
10089   esac
10090 fi
10091
10092
10093 # Report which library types will actually be built
10094 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10095 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10096 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10097 $as_echo "$can_build_shared" >&6; }
10098
10099 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10100 $as_echo_n "checking whether to build shared libraries... " >&6; }
10101 test "$can_build_shared" = "no" && enable_shared=no
10102
10103 # On AIX, shared libraries and static libraries use the same namespace, and
10104 # are all built from PIC.
10105 case $host_os in
10106 aix3*)
10107   test "$enable_shared" = yes && enable_static=no
10108   if test -n "$RANLIB"; then
10109     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10110     postinstall_cmds='$RANLIB $lib'
10111   fi
10112   ;;
10113
10114 aix4* | aix5*)
10115   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10116     test "$enable_shared" = yes && enable_static=no
10117   fi
10118     ;;
10119 esac
10120 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10121 $as_echo "$enable_shared" >&6; }
10122
10123 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10124 $as_echo_n "checking whether to build static libraries... " >&6; }
10125 # Make sure either enable_shared or enable_static is yes.
10126 test "$enable_shared" = yes || enable_static=yes
10127 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10128 $as_echo "$enable_static" >&6; }
10129
10130 # The else clause should only fire when bootstrapping the
10131 # libtool distribution, otherwise you forgot to ship ltmain.sh
10132 # with your package, and you will get complaints that there are
10133 # no rules to generate ltmain.sh.
10134 if test -f "$ltmain"; then
10135   # See if we are running on zsh, and set the options which allow our commands through
10136   # without removal of \ escapes.
10137   if test -n "${ZSH_VERSION+set}" ; then
10138     setopt NO_GLOB_SUBST
10139   fi
10140   # Now quote all the things that may contain metacharacters while being
10141   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10142   # variables and quote the copies for generation of the libtool script.
10143   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10144     SED SHELL STRIP \
10145     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10146     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10147     deplibs_check_method reload_flag reload_cmds need_locks \
10148     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10149     lt_cv_sys_global_symbol_to_c_name_address \
10150     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10151     old_postinstall_cmds old_postuninstall_cmds \
10152     compiler \
10153     CC \
10154     LD \
10155     lt_prog_compiler_wl \
10156     lt_prog_compiler_pic \
10157     lt_prog_compiler_static \
10158     lt_prog_compiler_no_builtin_flag \
10159     export_dynamic_flag_spec \
10160     thread_safe_flag_spec \
10161     whole_archive_flag_spec \
10162     enable_shared_with_static_runtimes \
10163     old_archive_cmds \
10164     old_archive_from_new_cmds \
10165     predep_objects \
10166     postdep_objects \
10167     predeps \
10168     postdeps \
10169     compiler_lib_search_path \
10170     archive_cmds \
10171     archive_expsym_cmds \
10172     postinstall_cmds \
10173     postuninstall_cmds \
10174     old_archive_from_expsyms_cmds \
10175     allow_undefined_flag \
10176     no_undefined_flag \
10177     export_symbols_cmds \
10178     hardcode_libdir_flag_spec \
10179     hardcode_libdir_flag_spec_ld \
10180     hardcode_libdir_separator \
10181     hardcode_automatic \
10182     module_cmds \
10183     module_expsym_cmds \
10184     lt_cv_prog_compiler_c_o \
10185     exclude_expsyms \
10186     include_expsyms; do
10187
10188     case $var in
10189     old_archive_cmds | \
10190     old_archive_from_new_cmds | \
10191     archive_cmds | \
10192     archive_expsym_cmds | \
10193     module_cmds | \
10194     module_expsym_cmds | \
10195     old_archive_from_expsyms_cmds | \
10196     export_symbols_cmds | \
10197     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10198     postinstall_cmds | postuninstall_cmds | \
10199     old_postinstall_cmds | old_postuninstall_cmds | \
10200     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10201       # Double-quote double-evaled strings.
10202       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10203       ;;
10204     *)
10205       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10206       ;;
10207     esac
10208   done
10209
10210   case $lt_echo in
10211   *'\$0 --fallback-echo"')
10212     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10213     ;;
10214   esac
10215
10216 cfgfile="${ofile}T"
10217   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10218   $rm -f "$cfgfile"
10219   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10220 $as_echo "$as_me: creating $ofile" >&6;}
10221
10222   cat <<__EOF__ >> "$cfgfile"
10223 #! $SHELL
10224
10225 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10226 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10227 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10228 #
10229 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10230 # Free Software Foundation, Inc.
10231 #
10232 # This file is part of GNU Libtool:
10233 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10234 #
10235 # This program is free software; you can redistribute it and/or modify
10236 # it under the terms of the GNU General Public License as published by
10237 # the Free Software Foundation; either version 2 of the License, or
10238 # (at your option) any later version.
10239 #
10240 # This program is distributed in the hope that it will be useful, but
10241 # WITHOUT ANY WARRANTY; without even the implied warranty of
10242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10243 # General Public License for more details.
10244 #
10245 # You should have received a copy of the GNU General Public License
10246 # along with this program; if not, write to the Free Software
10247 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10248 #
10249 # As a special exception to the GNU General Public License, if you
10250 # distribute this file as part of a program that contains a
10251 # configuration script generated by Autoconf, you may include it under
10252 # the same distribution terms that you use for the rest of that program.
10253
10254 # A sed program that does not truncate output.
10255 SED=$lt_SED
10256
10257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10258 Xsed="$SED -e 1s/^X//"
10259
10260 # The HP-UX ksh and POSIX shell print the target directory to stdout
10261 # if CDPATH is set.
10262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10263
10264 # The names of the tagged configurations supported by this script.
10265 available_tags=
10266
10267 # ### BEGIN LIBTOOL CONFIG
10268
10269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10270
10271 # Shell to use when invoking shell scripts.
10272 SHELL=$lt_SHELL
10273
10274 # Whether or not to build shared libraries.
10275 build_libtool_libs=$enable_shared
10276
10277 # Whether or not to build static libraries.
10278 build_old_libs=$enable_static
10279
10280 # Whether or not to add -lc for building shared libraries.
10281 build_libtool_need_lc=$archive_cmds_need_lc
10282
10283 # Whether or not to disallow shared libs when runtime libs are static
10284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10285
10286 # Whether or not to optimize for fast installation.
10287 fast_install=$enable_fast_install
10288
10289 # The host system.
10290 host_alias=$host_alias
10291 host=$host
10292 host_os=$host_os
10293
10294 # The build system.
10295 build_alias=$build_alias
10296 build=$build
10297 build_os=$build_os
10298
10299 # An echo program that does not interpret backslashes.
10300 echo=$lt_echo
10301
10302 # The archiver.
10303 AR=$lt_AR
10304 AR_FLAGS=$lt_AR_FLAGS
10305
10306 # A C compiler.
10307 LTCC=$lt_LTCC
10308
10309 # LTCC compiler flags.
10310 LTCFLAGS=$lt_LTCFLAGS
10311
10312 # A language-specific compiler.
10313 CC=$lt_compiler
10314
10315 # Is the compiler the GNU C compiler?
10316 with_gcc=$GCC
10317
10318 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10319 gcc_ver=\`gcc -dumpversion\`
10320
10321 # An ERE matcher.
10322 EGREP=$lt_EGREP
10323
10324 # The linker used to build libraries.
10325 LD=$lt_LD
10326
10327 # Whether we need hard or soft links.
10328 LN_S=$lt_LN_S
10329
10330 # A BSD-compatible nm program.
10331 NM=$lt_NM
10332
10333 # A symbol stripping program
10334 STRIP=$lt_STRIP
10335
10336 # Used to examine libraries when file_magic_cmd begins "file"
10337 MAGIC_CMD=$MAGIC_CMD
10338
10339 # Used on cygwin: DLL creation program.
10340 DLLTOOL="$DLLTOOL"
10341
10342 # Used on cygwin: object dumper.
10343 OBJDUMP="$OBJDUMP"
10344
10345 # Used on cygwin: assembler.
10346 AS="$AS"
10347
10348 # The name of the directory that contains temporary libtool files.
10349 objdir=$objdir
10350
10351 # How to create reloadable object files.
10352 reload_flag=$lt_reload_flag
10353 reload_cmds=$lt_reload_cmds
10354
10355 # How to pass a linker flag through the compiler.
10356 wl=$lt_lt_prog_compiler_wl
10357
10358 # Object file suffix (normally "o").
10359 objext="$ac_objext"
10360
10361 # Old archive suffix (normally "a").
10362 libext="$libext"
10363
10364 # Shared library suffix (normally ".so").
10365 shrext_cmds='$shrext_cmds'
10366
10367 # Executable file suffix (normally "").
10368 exeext="$exeext"
10369
10370 # Additional compiler flags for building library objects.
10371 pic_flag=$lt_lt_prog_compiler_pic
10372 pic_mode=$pic_mode
10373
10374 # What is the maximum length of a command?
10375 max_cmd_len=$lt_cv_sys_max_cmd_len
10376
10377 # Does compiler simultaneously support -c and -o options?
10378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10379
10380 # Must we lock files when doing compilation?
10381 need_locks=$lt_need_locks
10382
10383 # Do we need the lib prefix for modules?
10384 need_lib_prefix=$need_lib_prefix
10385
10386 # Do we need a version for libraries?
10387 need_version=$need_version
10388
10389 # Whether dlopen is supported.
10390 dlopen_support=$enable_dlopen
10391
10392 # Whether dlopen of programs is supported.
10393 dlopen_self=$enable_dlopen_self
10394
10395 # Whether dlopen of statically linked programs is supported.
10396 dlopen_self_static=$enable_dlopen_self_static
10397
10398 # Compiler flag to prevent dynamic linking.
10399 link_static_flag=$lt_lt_prog_compiler_static
10400
10401 # Compiler flag to turn off builtin functions.
10402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10403
10404 # Compiler flag to allow reflexive dlopens.
10405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10406
10407 # Compiler flag to generate shared objects directly from archives.
10408 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10409
10410 # Compiler flag to generate thread-safe objects.
10411 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10412
10413 # Library versioning type.
10414 version_type=$version_type
10415
10416 # Format of library name prefix.
10417 libname_spec=$lt_libname_spec
10418
10419 # List of archive names.  First name is the real one, the rest are links.
10420 # The last name is the one that the linker finds with -lNAME.
10421 library_names_spec=$lt_library_names_spec
10422
10423 # The coded name of the library, if different from the real name.
10424 soname_spec=$lt_soname_spec
10425
10426 # Commands used to build and install an old-style archive.
10427 RANLIB=$lt_RANLIB
10428 old_archive_cmds=$lt_old_archive_cmds
10429 old_postinstall_cmds=$lt_old_postinstall_cmds
10430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10431
10432 # Create an old-style archive from a shared archive.
10433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10434
10435 # Create a temporary old-style archive to link instead of a shared archive.
10436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10437
10438 # Commands used to build and install a shared archive.
10439 archive_cmds=$lt_archive_cmds
10440 archive_expsym_cmds=$lt_archive_expsym_cmds
10441 postinstall_cmds=$lt_postinstall_cmds
10442 postuninstall_cmds=$lt_postuninstall_cmds
10443
10444 # Commands used to build a loadable module (assumed same as above if empty)
10445 module_cmds=$lt_module_cmds
10446 module_expsym_cmds=$lt_module_expsym_cmds
10447
10448 # Commands to strip libraries.
10449 old_striplib=$lt_old_striplib
10450 striplib=$lt_striplib
10451
10452 # Dependencies to place before the objects being linked to create a
10453 # shared library.
10454 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10455
10456 # Dependencies to place after the objects being linked to create a
10457 # shared library.
10458 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10459
10460 # Dependencies to place before the objects being linked to create a
10461 # shared library.
10462 predeps=$lt_predeps
10463
10464 # Dependencies to place after the objects being linked to create a
10465 # shared library.
10466 postdeps=$lt_postdeps
10467
10468 # The library search path used internally by the compiler when linking
10469 # a shared library.
10470 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10471
10472 # Method to check whether dependent libraries are shared objects.
10473 deplibs_check_method=$lt_deplibs_check_method
10474
10475 # Command to use when deplibs_check_method == file_magic.
10476 file_magic_cmd=$lt_file_magic_cmd
10477
10478 # Flag that allows shared libraries with undefined symbols to be built.
10479 allow_undefined_flag=$lt_allow_undefined_flag
10480
10481 # Flag that forces no undefined symbols.
10482 no_undefined_flag=$lt_no_undefined_flag
10483
10484 # Commands used to finish a libtool library installation in a directory.
10485 finish_cmds=$lt_finish_cmds
10486
10487 # Same as above, but a single script fragment to be evaled but not shown.
10488 finish_eval=$lt_finish_eval
10489
10490 # Take the output of nm and produce a listing of raw symbols and C names.
10491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10492
10493 # Transform the output of nm in a proper C declaration
10494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10495
10496 # Transform the output of nm in a C name address pair
10497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10498
10499 # This is the shared library runtime path variable.
10500 runpath_var=$runpath_var
10501
10502 # This is the shared library path variable.
10503 shlibpath_var=$shlibpath_var
10504
10505 # Is shlibpath searched before the hard-coded library search path?
10506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10507
10508 # How to hardcode a shared library path into an executable.
10509 hardcode_action=$hardcode_action
10510
10511 # Whether we should hardcode library paths into libraries.
10512 hardcode_into_libs=$hardcode_into_libs
10513
10514 # Flag to hardcode \$libdir into a binary during linking.
10515 # This must work even if \$libdir does not exist.
10516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10517
10518 # If ld is used when linking, flag to hardcode \$libdir into
10519 # a binary during linking. This must work even if \$libdir does
10520 # not exist.
10521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10522
10523 # Whether we need a single -rpath flag with a separated argument.
10524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10525
10526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10527 # resulting binary.
10528 hardcode_direct=$hardcode_direct
10529
10530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10531 # resulting binary.
10532 hardcode_minus_L=$hardcode_minus_L
10533
10534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10535 # the resulting binary.
10536 hardcode_shlibpath_var=$hardcode_shlibpath_var
10537
10538 # Set to yes if building a shared library automatically hardcodes DIR into the library
10539 # and all subsequent libraries and executables linked against it.
10540 hardcode_automatic=$hardcode_automatic
10541
10542 # Variables whose values should be saved in libtool wrapper scripts and
10543 # restored at relink time.
10544 variables_saved_for_relink="$variables_saved_for_relink"
10545
10546 # Whether libtool must link a program against all its dependency libraries.
10547 link_all_deplibs=$link_all_deplibs
10548
10549 # Compile-time system search path for libraries
10550 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10551
10552 # Run-time system search path for libraries
10553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10554
10555 # Fix the shell variable \$srcfile for the compiler.
10556 fix_srcfile_path="$fix_srcfile_path"
10557
10558 # Set to yes if exported symbols are required.
10559 always_export_symbols=$always_export_symbols
10560
10561 # The commands to list exported symbols.
10562 export_symbols_cmds=$lt_export_symbols_cmds
10563
10564 # The commands to extract the exported symbol list from a shared archive.
10565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10566
10567 # Symbols that should not be listed in the preloaded symbols.
10568 exclude_expsyms=$lt_exclude_expsyms
10569
10570 # Symbols that must always be exported.
10571 include_expsyms=$lt_include_expsyms
10572
10573 # ### END LIBTOOL CONFIG
10574
10575 __EOF__
10576
10577
10578   case $host_os in
10579   aix3*)
10580     cat <<\EOF >> "$cfgfile"
10581
10582 # AIX sometimes has problems with the GCC collect2 program.  For some
10583 # reason, if we set the COLLECT_NAMES environment variable, the problems
10584 # vanish in a puff of smoke.
10585 if test "X${COLLECT_NAMES+set}" != Xset; then
10586   COLLECT_NAMES=
10587   export COLLECT_NAMES
10588 fi
10589 EOF
10590     ;;
10591   esac
10592
10593   # We use sed instead of cat because bash on DJGPP gets confused if
10594   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10595   # text mode, it properly converts lines to CR/LF.  This bash problem
10596   # is reportedly fixed, but why not run on old versions too?
10597   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10598
10599   mv -f "$cfgfile" "$ofile" || \
10600     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10601   chmod +x "$ofile"
10602
10603 else
10604   # If there is no Makefile yet, we rely on a make rule to execute
10605   # `config.status --recheck' to rerun these tests and create the
10606   # libtool script then.
10607   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10608   if test -f "$ltmain_in"; then
10609     test -f Makefile && make "$ltmain"
10610   fi
10611 fi
10612
10613
10614 ac_ext=c
10615 ac_cpp='$CPP $CPPFLAGS'
10616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10619
10620 CC="$lt_save_CC"
10621
10622
10623 # Check whether --with-tags was given.
10624 if test "${with_tags+set}" = set; then
10625   withval=$with_tags; tagnames="$withval"
10626 fi
10627
10628
10629 if test -f "$ltmain" && test -n "$tagnames"; then
10630   if test ! -f "${ofile}"; then
10631     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10632 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10633   fi
10634
10635   if test -z "$LTCC"; then
10636     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10637     if test -z "$LTCC"; then
10638       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10639 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10640     else
10641       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10642 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10643     fi
10644   fi
10645   if test -z "$LTCFLAGS"; then
10646     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10647   fi
10648
10649   # Extract list of available tagged configurations in $ofile.
10650   # Note that this assumes the entire list is on one line.
10651   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10652
10653   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10654   for tagname in $tagnames; do
10655     IFS="$lt_save_ifs"
10656     # Check whether tagname contains only valid characters
10657     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10658     "") ;;
10659     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10660 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10661    { (exit 1); exit 1; }; }
10662         ;;
10663     esac
10664
10665     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10666     then
10667       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10668 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10669    { (exit 1); exit 1; }; }
10670     fi
10671
10672     # Update the list of available tags.
10673     if test -n "$tagname"; then
10674       echo appending configuration tag \"$tagname\" to $ofile
10675
10676       case $tagname in
10677       CXX)
10678         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10679             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10680             (test "X$CXX" != "Xg++"))) ; then
10681           ac_ext=cpp
10682 ac_cpp='$CXXCPP $CPPFLAGS'
10683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10686
10687
10688
10689
10690 archive_cmds_need_lc_CXX=no
10691 allow_undefined_flag_CXX=
10692 always_export_symbols_CXX=no
10693 archive_expsym_cmds_CXX=
10694 export_dynamic_flag_spec_CXX=
10695 hardcode_direct_CXX=no
10696 hardcode_libdir_flag_spec_CXX=
10697 hardcode_libdir_flag_spec_ld_CXX=
10698 hardcode_libdir_separator_CXX=
10699 hardcode_minus_L_CXX=no
10700 hardcode_shlibpath_var_CXX=unsupported
10701 hardcode_automatic_CXX=no
10702 module_cmds_CXX=
10703 module_expsym_cmds_CXX=
10704 link_all_deplibs_CXX=unknown
10705 old_archive_cmds_CXX=$old_archive_cmds
10706 no_undefined_flag_CXX=
10707 whole_archive_flag_spec_CXX=
10708 enable_shared_with_static_runtimes_CXX=no
10709
10710 # Dependencies to place before and after the object being linked:
10711 predep_objects_CXX=
10712 postdep_objects_CXX=
10713 predeps_CXX=
10714 postdeps_CXX=
10715 compiler_lib_search_path_CXX=
10716
10717 # Source file extension for C++ test sources.
10718 ac_ext=cpp
10719
10720 # Object file extension for compiled C++ test sources.
10721 objext=o
10722 objext_CXX=$objext
10723
10724 # Code to be used in simple compile tests
10725 lt_simple_compile_test_code="int some_variable = 0;\n"
10726
10727 # Code to be used in simple link tests
10728 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10729
10730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10731
10732 # If no C compiler was specified, use CC.
10733 LTCC=${LTCC-"$CC"}
10734
10735 # If no C compiler flags were specified, use CFLAGS.
10736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10737
10738 # Allow CC to be a program name with arguments.
10739 compiler=$CC
10740
10741
10742 # save warnings/boilerplate of simple test code
10743 ac_outfile=conftest.$ac_objext
10744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10746 _lt_compiler_boilerplate=`cat conftest.err`
10747 $rm conftest*
10748
10749 ac_outfile=conftest.$ac_objext
10750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10752 _lt_linker_boilerplate=`cat conftest.err`
10753 $rm conftest*
10754
10755
10756 # Allow CC to be a program name with arguments.
10757 lt_save_CC=$CC
10758 lt_save_LD=$LD
10759 lt_save_GCC=$GCC
10760 GCC=$GXX
10761 lt_save_with_gnu_ld=$with_gnu_ld
10762 lt_save_path_LD=$lt_cv_path_LD
10763 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10764   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10765 else
10766   $as_unset lt_cv_prog_gnu_ld
10767 fi
10768 if test -n "${lt_cv_path_LDCXX+set}"; then
10769   lt_cv_path_LD=$lt_cv_path_LDCXX
10770 else
10771   $as_unset lt_cv_path_LD
10772 fi
10773 test -z "${LDCXX+set}" || LD=$LDCXX
10774 CC=${CXX-"c++"}
10775 compiler=$CC
10776 compiler_CXX=$CC
10777 for cc_temp in $compiler""; do
10778   case $cc_temp in
10779     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10780     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10781     \-*) ;;
10782     *) break;;
10783   esac
10784 done
10785 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10786
10787
10788 # We don't want -fno-exception wen compiling C++ code, so set the
10789 # no_builtin_flag separately
10790 if test "$GXX" = yes; then
10791   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10792 else
10793   lt_prog_compiler_no_builtin_flag_CXX=
10794 fi
10795
10796 if test "$GXX" = yes; then
10797   # Set up default GNU C++ configuration
10798
10799
10800 # Check whether --with-gnu-ld was given.
10801 if test "${with_gnu_ld+set}" = set; then
10802   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10803 else
10804   with_gnu_ld=no
10805 fi
10806
10807 ac_prog=ld
10808 if test "$GCC" = yes; then
10809   # Check if gcc -print-prog-name=ld gives a path.
10810   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10811 $as_echo_n "checking for ld used by $CC... " >&6; }
10812   case $host in
10813   *-*-mingw*)
10814     # gcc leaves a trailing carriage return which upsets mingw
10815     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10816   *)
10817     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10818   esac
10819   case $ac_prog in
10820     # Accept absolute paths.
10821     [\\/]* | ?:[\\/]*)
10822       re_direlt='/[^/][^/]*/\.\./'
10823       # Canonicalize the pathname of ld
10824       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10825       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10826         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10827       done
10828       test -z "$LD" && LD="$ac_prog"
10829       ;;
10830   "")
10831     # If it fails, then pretend we aren't using GCC.
10832     ac_prog=ld
10833     ;;
10834   *)
10835     # If it is relative, then search for the first ld in PATH.
10836     with_gnu_ld=unknown
10837     ;;
10838   esac
10839 elif test "$with_gnu_ld" = yes; then
10840   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10841 $as_echo_n "checking for GNU ld... " >&6; }
10842 else
10843   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10844 $as_echo_n "checking for non-GNU ld... " >&6; }
10845 fi
10846 if test "${lt_cv_path_LD+set}" = set; then
10847   $as_echo_n "(cached) " >&6
10848 else
10849   if test -z "$LD"; then
10850   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10851   for ac_dir in $PATH; do
10852     IFS="$lt_save_ifs"
10853     test -z "$ac_dir" && ac_dir=.
10854     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10855       lt_cv_path_LD="$ac_dir/$ac_prog"
10856       # Check to see if the program is GNU ld.  I'd rather use --version,
10857       # but apparently some variants of GNU ld only accept -v.
10858       # Break only if it was the GNU/non-GNU ld that we prefer.
10859       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10860       *GNU* | *'with BFD'*)
10861         test "$with_gnu_ld" != no && break
10862         ;;
10863       *)
10864         test "$with_gnu_ld" != yes && break
10865         ;;
10866       esac
10867     fi
10868   done
10869   IFS="$lt_save_ifs"
10870 else
10871   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10872 fi
10873 fi
10874
10875 LD="$lt_cv_path_LD"
10876 if test -n "$LD"; then
10877   { $as_echo "$as_me:$LINENO: result: $LD" >&5
10878 $as_echo "$LD" >&6; }
10879 else
10880   { $as_echo "$as_me:$LINENO: result: no" >&5
10881 $as_echo "no" >&6; }
10882 fi
10883 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10884 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10885    { (exit 1); exit 1; }; }
10886 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10888 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10889   $as_echo_n "(cached) " >&6
10890 else
10891   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10892 case `$LD -v 2>&1 </dev/null` in
10893 *GNU* | *'with BFD'*)
10894   lt_cv_prog_gnu_ld=yes
10895   ;;
10896 *)
10897   lt_cv_prog_gnu_ld=no
10898   ;;
10899 esac
10900 fi
10901 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10903 with_gnu_ld=$lt_cv_prog_gnu_ld
10904
10905
10906
10907   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10908   # archiving commands below assume that GNU ld is being used.
10909   if test "$with_gnu_ld" = yes; then
10910     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10911     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'
10912
10913     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10914     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10915
10916     # If archive_cmds runs LD, not CC, wlarc should be empty
10917     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10918     #     investigate it a little bit more. (MM)
10919     wlarc='${wl}'
10920
10921     # ancient GNU ld didn't support --whole-archive et. al.
10922     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10923         grep 'no-whole-archive' > /dev/null; then
10924       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10925     else
10926       whole_archive_flag_spec_CXX=
10927     fi
10928   else
10929     with_gnu_ld=no
10930     wlarc=
10931
10932     # A generic and very simple default shared library creation
10933     # command for GNU C++ for the case where it uses the native
10934     # linker, instead of GNU ld.  If possible, this setting should
10935     # overridden to take advantage of the native linker features on
10936     # the platform it is being used on.
10937     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10938   fi
10939
10940   # Commands to make compiler produce verbose output that lists
10941   # what "hidden" libraries, object files and flags are used when
10942   # linking a shared library.
10943   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10944
10945 else
10946   GXX=no
10947   with_gnu_ld=no
10948   wlarc=
10949 fi
10950
10951 # PORTME: fill in a description of your system's C++ link characteristics
10952 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10954 ld_shlibs_CXX=yes
10955 case $host_os in
10956   aix3*)
10957     # FIXME: insert proper C++ library support
10958     ld_shlibs_CXX=no
10959     ;;
10960   aix4* | aix5*)
10961     if test "$host_cpu" = ia64; then
10962       # On IA64, the linker does run time linking by default, so we don't
10963       # have to do anything special.
10964       aix_use_runtimelinking=no
10965       exp_sym_flag='-Bexport'
10966       no_entry_flag=""
10967     else
10968       aix_use_runtimelinking=no
10969
10970       # Test if we are trying to use run time linking or normal
10971       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10972       # need to do runtime linking.
10973       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10974         for ld_flag in $LDFLAGS; do
10975           case $ld_flag in
10976           *-brtl*)
10977             aix_use_runtimelinking=yes
10978             break
10979             ;;
10980           esac
10981         done
10982         ;;
10983       esac
10984
10985       exp_sym_flag='-bexport'
10986       no_entry_flag='-bnoentry'
10987     fi
10988
10989     # When large executables or shared objects are built, AIX ld can
10990     # have problems creating the table of contents.  If linking a library
10991     # or program results in "error TOC overflow" add -mminimal-toc to
10992     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10993     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10994
10995     archive_cmds_CXX=''
10996     hardcode_direct_CXX=yes
10997     hardcode_libdir_separator_CXX=':'
10998     link_all_deplibs_CXX=yes
10999
11000     if test "$GXX" = yes; then
11001       case $host_os in aix4.[012]|aix4.[012].*)
11002       # We only want to do this on AIX 4.2 and lower, the check
11003       # below for broken collect2 doesn't work under 4.3+
11004         collect2name=`${CC} -print-prog-name=collect2`
11005         if test -f "$collect2name" && \
11006            strings "$collect2name" | grep resolve_lib_name >/dev/null
11007         then
11008           # We have reworked collect2
11009           hardcode_direct_CXX=yes
11010         else
11011           # We have old collect2
11012           hardcode_direct_CXX=unsupported
11013           # It fails to find uninstalled libraries when the uninstalled
11014           # path is not listed in the libpath.  Setting hardcode_minus_L
11015           # to unsupported forces relinking
11016           hardcode_minus_L_CXX=yes
11017           hardcode_libdir_flag_spec_CXX='-L$libdir'
11018           hardcode_libdir_separator_CXX=
11019         fi
11020         ;;
11021       esac
11022       shared_flag='-shared'
11023       if test "$aix_use_runtimelinking" = yes; then
11024         shared_flag="$shared_flag "'${wl}-G'
11025       fi
11026     else
11027       # not using gcc
11028       if test "$host_cpu" = ia64; then
11029         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11030         # chokes on -Wl,-G. The following line is correct:
11031         shared_flag='-G'
11032       else
11033         if test "$aix_use_runtimelinking" = yes; then
11034           shared_flag='${wl}-G'
11035         else
11036           shared_flag='${wl}-bM:SRE'
11037         fi
11038       fi
11039     fi
11040
11041     # It seems that -bexpall does not export symbols beginning with
11042     # underscore (_), so it is better to generate a list of symbols to export.
11043     always_export_symbols_CXX=yes
11044     if test "$aix_use_runtimelinking" = yes; then
11045       # Warning - without using the other runtime loading flags (-brtl),
11046       # -berok will link without error, but may produce a broken library.
11047       allow_undefined_flag_CXX='-berok'
11048       # Determine the default libpath from the value encoded in an empty executable.
11049       cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055
11056 int
11057 main ()
11058 {
11059
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (ac_try="$ac_link"
11066 case "(($ac_try" in
11067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068   *) ac_try_echo=$ac_try;;
11069 esac
11070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071 $as_echo "$ac_try_echo") >&5
11072   (eval "$ac_link") 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } && {
11079          test -z "$ac_cxx_werror_flag" ||
11080          test ! -s conftest.err
11081        } && test -s conftest$ac_exeext && {
11082          test "$cross_compiling" = yes ||
11083          $as_test_x conftest$ac_exeext
11084        }; then
11085
11086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11087 }'`
11088 # Check for a 64-bit object if we didn't find anything.
11089 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11090 }'`; fi
11091 else
11092   $as_echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095
11096 fi
11097
11098 rm -rf conftest.dSYM
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100       conftest$ac_exeext conftest.$ac_ext
11101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11102
11103       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11104
11105       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"
11106      else
11107       if test "$host_cpu" = ia64; then
11108         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11109         allow_undefined_flag_CXX="-z nodefs"
11110         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"
11111       else
11112         # Determine the default libpath from the value encoded in an empty executable.
11113         cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119
11120 int
11121 main ()
11122 {
11123
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132   *) ac_try_echo=$ac_try;;
11133 esac
11134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136   (eval "$ac_link") 2>conftest.er1
11137   ac_status=$?
11138   grep -v '^ *+' conftest.er1 >conftest.err
11139   rm -f conftest.er1
11140   cat conftest.err >&5
11141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } && {
11143          test -z "$ac_cxx_werror_flag" ||
11144          test ! -s conftest.err
11145        } && test -s conftest$ac_exeext && {
11146          test "$cross_compiling" = yes ||
11147          $as_test_x conftest$ac_exeext
11148        }; then
11149
11150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11151 }'`
11152 # Check for a 64-bit object if we didn't find anything.
11153 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11154 }'`; fi
11155 else
11156   $as_echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159
11160 fi
11161
11162 rm -rf conftest.dSYM
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164       conftest$ac_exeext conftest.$ac_ext
11165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11166
11167         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11168         # Warning - without using the other run time loading flags,
11169         # -berok will link without error, but may produce a broken library.
11170         no_undefined_flag_CXX=' ${wl}-bernotok'
11171         allow_undefined_flag_CXX=' ${wl}-berok'
11172         # Exported symbols can be pulled into shared objects from archives
11173         whole_archive_flag_spec_CXX='$convenience'
11174         archive_cmds_need_lc_CXX=yes
11175         # This is similar to how AIX traditionally builds its shared libraries.
11176         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'
11177       fi
11178     fi
11179     ;;
11180
11181   beos*)
11182     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11183       allow_undefined_flag_CXX=unsupported
11184       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11185       # support --undefined.  This deserves some investigation.  FIXME
11186       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11187     else
11188       ld_shlibs_CXX=no
11189     fi
11190     ;;
11191
11192   chorus*)
11193     case $cc_basename in
11194       *)
11195         # FIXME: insert proper C++ library support
11196         ld_shlibs_CXX=no
11197         ;;
11198     esac
11199     ;;
11200
11201   cygwin* | mingw* | pw32*)
11202     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11203     # as there is no search path for DLLs.
11204     hardcode_libdir_flag_spec_CXX='-L$libdir'
11205     allow_undefined_flag_CXX=unsupported
11206     always_export_symbols_CXX=no
11207     enable_shared_with_static_runtimes_CXX=yes
11208
11209     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11210       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'
11211       # If the export-symbols file already is a .def file (1st line
11212       # is EXPORTS), use it as is; otherwise, prepend...
11213       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11214         cp $export_symbols $output_objdir/$soname.def;
11215       else
11216         echo EXPORTS > $output_objdir/$soname.def;
11217         cat $export_symbols >> $output_objdir/$soname.def;
11218       fi~
11219       $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'
11220     else
11221       ld_shlibs_CXX=no
11222     fi
11223   ;;
11224       darwin* | rhapsody*)
11225         case $host_os in
11226         rhapsody* | darwin1.[012])
11227          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11228          ;;
11229        *) # Darwin 1.3 on
11230          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11231            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11232          else
11233            case ${MACOSX_DEPLOYMENT_TARGET} in
11234              10.[012])
11235                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11236                ;;
11237              10.*)
11238                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11239                ;;
11240            esac
11241          fi
11242          ;;
11243         esac
11244       archive_cmds_need_lc_CXX=no
11245       hardcode_direct_CXX=no
11246       hardcode_automatic_CXX=yes
11247       hardcode_shlibpath_var_CXX=unsupported
11248       whole_archive_flag_spec_CXX=''
11249       link_all_deplibs_CXX=yes
11250
11251     if test "$GXX" = yes ; then
11252       lt_int_apple_cc_single_mod=no
11253       output_verbose_link_cmd='echo'
11254       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11255        lt_int_apple_cc_single_mod=yes
11256       fi
11257       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11258        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11259       else
11260           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'
11261         fi
11262         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11263         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11264           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11265             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11266           else
11267             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11268           fi
11269             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}'
11270       else
11271       case $cc_basename in
11272         xlc*)
11273          output_verbose_link_cmd='echo'
11274           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11275           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11276           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11277           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11278           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}'
11279           ;;
11280        *)
11281          ld_shlibs_CXX=no
11282           ;;
11283       esac
11284       fi
11285         ;;
11286
11287   dgux*)
11288     case $cc_basename in
11289       ec++*)
11290         # FIXME: insert proper C++ library support
11291         ld_shlibs_CXX=no
11292         ;;
11293       ghcx*)
11294         # Green Hills C++ Compiler
11295         # FIXME: insert proper C++ library support
11296         ld_shlibs_CXX=no
11297         ;;
11298       *)
11299         # FIXME: insert proper C++ library support
11300         ld_shlibs_CXX=no
11301         ;;
11302     esac
11303     ;;
11304   freebsd[12]*)
11305     # C++ shared libraries reported to be fairly broken before switch to ELF
11306     ld_shlibs_CXX=no
11307     ;;
11308   freebsd-elf*)
11309     archive_cmds_need_lc_CXX=no
11310     ;;
11311   freebsd* | kfreebsd*-gnu | dragonfly*)
11312     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11313     # conventions
11314     ld_shlibs_CXX=yes
11315     ;;
11316   gnu*)
11317     ;;
11318   hpux9*)
11319     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11320     hardcode_libdir_separator_CXX=:
11321     export_dynamic_flag_spec_CXX='${wl}-E'
11322     hardcode_direct_CXX=yes
11323     hardcode_minus_L_CXX=yes # Not in the search PATH,
11324                                 # but as the default
11325                                 # location of the library.
11326
11327     case $cc_basename in
11328     CC*)
11329       # FIXME: insert proper C++ library support
11330       ld_shlibs_CXX=no
11331       ;;
11332     aCC*)
11333       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'
11334       # Commands to make compiler produce verbose output that lists
11335       # what "hidden" libraries, object files and flags are used when
11336       # linking a shared library.
11337       #
11338       # There doesn't appear to be a way to prevent this compiler from
11339       # explicitly linking system object files so we need to strip them
11340       # from the output so that they don't get included in the library
11341       # dependencies.
11342       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'
11343       ;;
11344     *)
11345       if test "$GXX" = yes; then
11346         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'
11347       else
11348         # FIXME: insert proper C++ library support
11349         ld_shlibs_CXX=no
11350       fi
11351       ;;
11352     esac
11353     ;;
11354   hpux10*|hpux11*)
11355     if test $with_gnu_ld = no; then
11356       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11357       hardcode_libdir_separator_CXX=:
11358
11359       case $host_cpu in
11360       hppa*64*|ia64*)
11361         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11362         ;;
11363       *)
11364         export_dynamic_flag_spec_CXX='${wl}-E'
11365         ;;
11366       esac
11367     fi
11368     case $host_cpu in
11369     hppa*64*|ia64*)
11370       hardcode_direct_CXX=no
11371       hardcode_shlibpath_var_CXX=no
11372       ;;
11373     *)
11374       hardcode_direct_CXX=yes
11375       hardcode_minus_L_CXX=yes # Not in the search PATH,
11376                                               # but as the default
11377                                               # location of the library.
11378       ;;
11379     esac
11380
11381     case $cc_basename in
11382       CC*)
11383         # FIXME: insert proper C++ library support
11384         ld_shlibs_CXX=no
11385         ;;
11386       aCC*)
11387         case $host_cpu in
11388         hppa*64*)
11389           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11390           ;;
11391         ia64*)
11392           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11393           ;;
11394         *)
11395           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11396           ;;
11397         esac
11398         # Commands to make compiler produce verbose output that lists
11399         # what "hidden" libraries, object files and flags are used when
11400         # linking a shared library.
11401         #
11402         # There doesn't appear to be a way to prevent this compiler from
11403         # explicitly linking system object files so we need to strip them
11404         # from the output so that they don't get included in the library
11405         # dependencies.
11406         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'
11407         ;;
11408       *)
11409         if test "$GXX" = yes; then
11410           if test $with_gnu_ld = no; then
11411             case $host_cpu in
11412             hppa*64*)
11413               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11414               ;;
11415             ia64*)
11416               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11417               ;;
11418             *)
11419               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'
11420               ;;
11421             esac
11422           fi
11423         else
11424           # FIXME: insert proper C++ library support
11425           ld_shlibs_CXX=no
11426         fi
11427         ;;
11428     esac
11429     ;;
11430   interix3*)
11431     hardcode_direct_CXX=no
11432     hardcode_shlibpath_var_CXX=no
11433     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11434     export_dynamic_flag_spec_CXX='${wl}-E'
11435     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11436     # Instead, shared libraries are loaded at an image base (0x10000000 by
11437     # default) and relocated if they conflict, which is a slow very memory
11438     # consuming and fragmenting process.  To avoid this, we pick a random,
11439     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11440     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11441     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'
11442     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'
11443     ;;
11444   irix5* | irix6*)
11445     case $cc_basename in
11446       CC*)
11447         # SGI C++
11448         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'
11449
11450         # Archives containing C++ object files must be created using
11451         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11452         # necessary to make sure instantiated templates are included
11453         # in the archive.
11454         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11455         ;;
11456       *)
11457         if test "$GXX" = yes; then
11458           if test "$with_gnu_ld" = no; then
11459             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'
11460           else
11461             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'
11462           fi
11463         fi
11464         link_all_deplibs_CXX=yes
11465         ;;
11466     esac
11467     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11468     hardcode_libdir_separator_CXX=:
11469     ;;
11470   linux*)
11471     case $cc_basename in
11472       KCC*)
11473         # Kuck and Associates, Inc. (KAI) C++ Compiler
11474
11475         # KCC will only create a shared library if the output file
11476         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11477         # to its proper name (with version) after linking.
11478         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'
11479         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'
11480         # Commands to make compiler produce verbose output that lists
11481         # what "hidden" libraries, object files and flags are used when
11482         # linking a shared library.
11483         #
11484         # There doesn't appear to be a way to prevent this compiler from
11485         # explicitly linking system object files so we need to strip them
11486         # from the output so that they don't get included in the library
11487         # dependencies.
11488         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'
11489
11490         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11491         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11492
11493         # Archives containing C++ object files must be created using
11494         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11495         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11496         ;;
11497       icpc*)
11498         # Intel C++
11499         with_gnu_ld=yes
11500         # version 8.0 and above of icpc choke on multiply defined symbols
11501         # if we add $predep_objects and $postdep_objects, however 7.1 and
11502         # earlier do not add the objects themselves.
11503         case `$CC -V 2>&1` in
11504         *"Version 7."*)
11505           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506           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'
11507           ;;
11508         *)  # Version 8.0 or newer
11509           tmp_idyn=
11510           case $host_cpu in
11511             ia64*) tmp_idyn=' -i_dynamic';;
11512           esac
11513           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514           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'
11515           ;;
11516         esac
11517         archive_cmds_need_lc_CXX=no
11518         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11519         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11520         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11521         ;;
11522       pgCC*)
11523         # Portland Group C++ compiler
11524         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11525         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'
11526
11527         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11528         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11529         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'
11530         ;;
11531       cxx*)
11532         # Compaq C++
11533         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11534         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'
11535
11536         runpath_var=LD_RUN_PATH
11537         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11538         hardcode_libdir_separator_CXX=:
11539
11540         # Commands to make compiler produce verbose output that lists
11541         # what "hidden" libraries, object files and flags are used when
11542         # linking a shared library.
11543         #
11544         # There doesn't appear to be a way to prevent this compiler from
11545         # explicitly linking system object files so we need to strip them
11546         # from the output so that they don't get included in the library
11547         # dependencies.
11548         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'
11549         ;;
11550     esac
11551     ;;
11552   lynxos*)
11553     # FIXME: insert proper C++ library support
11554     ld_shlibs_CXX=no
11555     ;;
11556   m88k*)
11557     # FIXME: insert proper C++ library support
11558     ld_shlibs_CXX=no
11559     ;;
11560   mvs*)
11561     case $cc_basename in
11562       cxx*)
11563         # FIXME: insert proper C++ library support
11564         ld_shlibs_CXX=no
11565         ;;
11566       *)
11567         # FIXME: insert proper C++ library support
11568         ld_shlibs_CXX=no
11569         ;;
11570     esac
11571     ;;
11572   netbsd*)
11573     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11574       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11575       wlarc=
11576       hardcode_libdir_flag_spec_CXX='-R$libdir'
11577       hardcode_direct_CXX=yes
11578       hardcode_shlibpath_var_CXX=no
11579     fi
11580     # Workaround some broken pre-1.5 toolchains
11581     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11582     ;;
11583   openbsd2*)
11584     # C++ shared libraries are fairly broken
11585     ld_shlibs_CXX=no
11586     ;;
11587   openbsd*)
11588     hardcode_direct_CXX=yes
11589     hardcode_shlibpath_var_CXX=no
11590     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11591     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11592     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11593       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11594       export_dynamic_flag_spec_CXX='${wl}-E'
11595       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11596     fi
11597     output_verbose_link_cmd='echo'
11598     ;;
11599   osf3*)
11600     case $cc_basename in
11601       KCC*)
11602         # Kuck and Associates, Inc. (KAI) C++ Compiler
11603
11604         # KCC will only create a shared library if the output file
11605         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606         # to its proper name (with version) after linking.
11607         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'
11608
11609         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11610         hardcode_libdir_separator_CXX=:
11611
11612         # Archives containing C++ object files must be created using
11613         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11614         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11615
11616         ;;
11617       RCC*)
11618         # Rational C++ 2.4.1
11619         # FIXME: insert proper C++ library support
11620         ld_shlibs_CXX=no
11621         ;;
11622       cxx*)
11623         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11624         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'
11625
11626         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11627         hardcode_libdir_separator_CXX=:
11628
11629         # Commands to make compiler produce verbose output that lists
11630         # what "hidden" libraries, object files and flags are used when
11631         # linking a shared library.
11632         #
11633         # There doesn't appear to be a way to prevent this compiler from
11634         # explicitly linking system object files so we need to strip them
11635         # from the output so that they don't get included in the library
11636         # dependencies.
11637         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'
11638         ;;
11639       *)
11640         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11641           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11642           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'
11643
11644           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11645           hardcode_libdir_separator_CXX=:
11646
11647           # Commands to make compiler produce verbose output that lists
11648           # what "hidden" libraries, object files and flags are used when
11649           # linking a shared library.
11650           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11651
11652         else
11653           # FIXME: insert proper C++ library support
11654           ld_shlibs_CXX=no
11655         fi
11656         ;;
11657     esac
11658     ;;
11659   osf4* | osf5*)
11660     case $cc_basename in
11661       KCC*)
11662         # Kuck and Associates, Inc. (KAI) C++ Compiler
11663
11664         # KCC will only create a shared library if the output file
11665         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11666         # to its proper name (with version) after linking.
11667         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'
11668
11669         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11670         hardcode_libdir_separator_CXX=:
11671
11672         # Archives containing C++ object files must be created using
11673         # the KAI C++ compiler.
11674         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11675         ;;
11676       RCC*)
11677         # Rational C++ 2.4.1
11678         # FIXME: insert proper C++ library support
11679         ld_shlibs_CXX=no
11680         ;;
11681       cxx*)
11682         allow_undefined_flag_CXX=' -expect_unresolved \*'
11683         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'
11684         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11685           echo "-hidden">> $lib.exp~
11686           $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~
11687           $rm $lib.exp'
11688
11689         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11690         hardcode_libdir_separator_CXX=:
11691
11692         # Commands to make compiler produce verbose output that lists
11693         # what "hidden" libraries, object files and flags are used when
11694         # linking a shared library.
11695         #
11696         # There doesn't appear to be a way to prevent this compiler from
11697         # explicitly linking system object files so we need to strip them
11698         # from the output so that they don't get included in the library
11699         # dependencies.
11700         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'
11701         ;;
11702       *)
11703         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11704           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11705          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'
11706
11707           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11708           hardcode_libdir_separator_CXX=:
11709
11710           # Commands to make compiler produce verbose output that lists
11711           # what "hidden" libraries, object files and flags are used when
11712           # linking a shared library.
11713           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11714
11715         else
11716           # FIXME: insert proper C++ library support
11717           ld_shlibs_CXX=no
11718         fi
11719         ;;
11720     esac
11721     ;;
11722   psos*)
11723     # FIXME: insert proper C++ library support
11724     ld_shlibs_CXX=no
11725     ;;
11726   sunos4*)
11727     case $cc_basename in
11728       CC*)
11729         # Sun C++ 4.x
11730         # FIXME: insert proper C++ library support
11731         ld_shlibs_CXX=no
11732         ;;
11733       lcc*)
11734         # Lucid
11735         # FIXME: insert proper C++ library support
11736         ld_shlibs_CXX=no
11737         ;;
11738       *)
11739         # FIXME: insert proper C++ library support
11740         ld_shlibs_CXX=no
11741         ;;
11742     esac
11743     ;;
11744   solaris*)
11745     case $cc_basename in
11746       CC*)
11747         # Sun C++ 4.2, 5.x and Centerline C++
11748         archive_cmds_need_lc_CXX=yes
11749         no_undefined_flag_CXX=' -zdefs'
11750         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11751         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11752         $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'
11753
11754         hardcode_libdir_flag_spec_CXX='-R$libdir'
11755         hardcode_shlibpath_var_CXX=no
11756         case $host_os in
11757           solaris2.[0-5] | solaris2.[0-5].*) ;;
11758           *)
11759             # The C++ compiler is used as linker so we must use $wl
11760             # flag to pass the commands to the underlying system
11761             # linker. We must also pass each convience library through
11762             # to the system linker between allextract/defaultextract.
11763             # The C++ compiler will combine linker options so we
11764             # cannot just pass the convience library names through
11765             # without $wl.
11766             # Supported since Solaris 2.6 (maybe 2.5.1?)
11767             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11768             ;;
11769         esac
11770         link_all_deplibs_CXX=yes
11771
11772         output_verbose_link_cmd='echo'
11773
11774         # Archives containing C++ object files must be created using
11775         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11776         # necessary to make sure instantiated templates are included
11777         # in the archive.
11778         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11779         ;;
11780       gcx*)
11781         # Green Hills C++ Compiler
11782         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11783
11784         # The C++ compiler must be used to create the archive.
11785         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11786         ;;
11787       *)
11788         # GNU C++ compiler with Solaris linker
11789         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11790           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11791           if $CC --version | grep -v '^2\.7' > /dev/null; then
11792             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11795
11796             # Commands to make compiler produce verbose output that lists
11797             # what "hidden" libraries, object files and flags are used when
11798             # linking a shared library.
11799             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11800           else
11801             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11802             # platform.
11803             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11805                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11806
11807             # Commands to make compiler produce verbose output that lists
11808             # what "hidden" libraries, object files and flags are used when
11809             # linking a shared library.
11810             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11811           fi
11812
11813           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11814         fi
11815         ;;
11816     esac
11817     ;;
11818   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11819     no_undefined_flag_CXX='${wl}-z,text'
11820     archive_cmds_need_lc_CXX=no
11821     hardcode_shlibpath_var_CXX=no
11822     runpath_var='LD_RUN_PATH'
11823
11824     case $cc_basename in
11825       CC*)
11826         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11827         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11828         ;;
11829       *)
11830         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11832         ;;
11833     esac
11834     ;;
11835   sysv5* | sco3.2v5* | sco5v6*)
11836     # Note: We can NOT use -z defs as we might desire, because we do not
11837     # link with -lc, and that would cause any symbols used from libc to
11838     # always be unresolved, which means just about no library would
11839     # ever link correctly.  If we're not using GNU ld we use -z text
11840     # though, which does catch some bad symbols but isn't as heavy-handed
11841     # as -z defs.
11842     # For security reasons, it is highly recommended that you always
11843     # use absolute paths for naming shared libraries, and exclude the
11844     # DT_RUNPATH tag from executables and libraries.  But doing so
11845     # requires that you compile everything twice, which is a pain.
11846     # So that behaviour is only enabled if SCOABSPATH is set to a
11847     # non-empty value in the environment.  Most likely only useful for
11848     # creating official distributions of packages.
11849     # This is a hack until libtool officially supports absolute path
11850     # names for shared libraries.
11851     no_undefined_flag_CXX='${wl}-z,text'
11852     allow_undefined_flag_CXX='${wl}-z,nodefs'
11853     archive_cmds_need_lc_CXX=no
11854     hardcode_shlibpath_var_CXX=no
11855     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11856     hardcode_libdir_separator_CXX=':'
11857     link_all_deplibs_CXX=yes
11858     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11859     runpath_var='LD_RUN_PATH'
11860
11861     case $cc_basename in
11862       CC*)
11863         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11864         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11865         ;;
11866       *)
11867         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869         ;;
11870     esac
11871     ;;
11872   tandem*)
11873     case $cc_basename in
11874       NCC*)
11875         # NonStop-UX NCC 3.20
11876         # FIXME: insert proper C++ library support
11877         ld_shlibs_CXX=no
11878         ;;
11879       *)
11880         # FIXME: insert proper C++ library support
11881         ld_shlibs_CXX=no
11882         ;;
11883     esac
11884     ;;
11885   vxworks*)
11886     # FIXME: insert proper C++ library support
11887     ld_shlibs_CXX=no
11888     ;;
11889   *)
11890     # FIXME: insert proper C++ library support
11891     ld_shlibs_CXX=no
11892     ;;
11893 esac
11894 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11895 $as_echo "$ld_shlibs_CXX" >&6; }
11896 test "$ld_shlibs_CXX" = no && can_build_shared=no
11897
11898 GCC_CXX="$GXX"
11899 LD_CXX="$LD"
11900
11901
11902 cat > conftest.$ac_ext <<EOF
11903 class Foo
11904 {
11905 public:
11906   Foo (void) { a = 0; }
11907 private:
11908   int a;
11909 };
11910 EOF
11911
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913   (eval $ac_compile) 2>&5
11914   ac_status=$?
11915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; then
11917   # Parse the compiler output and extract the necessary
11918   # objects, libraries and library flags.
11919
11920   # Sentinel used to keep track of whether or not we are before
11921   # the conftest object file.
11922   pre_test_object_deps_done=no
11923
11924   # The `*' in the case matches for architectures that use `case' in
11925   # $output_verbose_cmd can trigger glob expansion during the loop
11926   # eval without this substitution.
11927   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11928
11929   for p in `eval $output_verbose_link_cmd`; do
11930     case $p in
11931
11932     -L* | -R* | -l*)
11933        # Some compilers place space between "-{L,R}" and the path.
11934        # Remove the space.
11935        if test $p = "-L" \
11936           || test $p = "-R"; then
11937          prev=$p
11938          continue
11939        else
11940          prev=
11941        fi
11942
11943        if test "$pre_test_object_deps_done" = no; then
11944          case $p in
11945          -L* | -R*)
11946            # Internal compiler library paths should come after those
11947            # provided the user.  The postdeps already come after the
11948            # user supplied libs so there is no need to process them.
11949            if test -z "$compiler_lib_search_path_CXX"; then
11950              compiler_lib_search_path_CXX="${prev}${p}"
11951            else
11952              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11953            fi
11954            ;;
11955          # The "-l" case would never come before the object being
11956          # linked, so don't bother handling this case.
11957          esac
11958        else
11959          if test -z "$postdeps_CXX"; then
11960            postdeps_CXX="${prev}${p}"
11961          else
11962            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11963          fi
11964        fi
11965        ;;
11966
11967     *.$objext)
11968        # This assumes that the test object file only shows up
11969        # once in the compiler output.
11970        if test "$p" = "conftest.$objext"; then
11971          pre_test_object_deps_done=yes
11972          continue
11973        fi
11974
11975        if test "$pre_test_object_deps_done" = no; then
11976          if test -z "$predep_objects_CXX"; then
11977            predep_objects_CXX="$p"
11978          else
11979            predep_objects_CXX="$predep_objects_CXX $p"
11980          fi
11981        else
11982          if test -z "$postdep_objects_CXX"; then
11983            postdep_objects_CXX="$p"
11984          else
11985            postdep_objects_CXX="$postdep_objects_CXX $p"
11986          fi
11987        fi
11988        ;;
11989
11990     *) ;; # Ignore the rest.
11991
11992     esac
11993   done
11994
11995   # Clean up.
11996   rm -f a.out a.exe
11997 else
11998   echo "libtool.m4: error: problem compiling CXX test program"
11999 fi
12000
12001 $rm -f confest.$objext
12002
12003 # PORTME: override above test on systems where it is broken
12004 case $host_os in
12005 interix3*)
12006   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12007   # hack all around it, let's just trust "g++" to DTRT.
12008   predep_objects_CXX=
12009   postdep_objects_CXX=
12010   postdeps_CXX=
12011   ;;
12012
12013 solaris*)
12014   case $cc_basename in
12015   CC*)
12016     # Adding this requires a known-good setup of shared libraries for
12017     # Sun compiler versions before 5.6, else PIC objects from an old
12018     # archive will be linked into the output, leading to subtle bugs.
12019     postdeps_CXX='-lCstd -lCrun'
12020     ;;
12021   esac
12022   ;;
12023 esac
12024
12025
12026 case " $postdeps_CXX " in
12027 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12028 esac
12029
12030 lt_prog_compiler_wl_CXX=
12031 lt_prog_compiler_pic_CXX=
12032 lt_prog_compiler_static_CXX=
12033
12034 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12035 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12036
12037   # C++ specific cases for pic, static, wl, etc.
12038   if test "$GXX" = yes; then
12039     lt_prog_compiler_wl_CXX='-Wl,'
12040     lt_prog_compiler_static_CXX='-static'
12041
12042     case $host_os in
12043     aix*)
12044       # All AIX code is PIC.
12045       if test "$host_cpu" = ia64; then
12046         # AIX 5 now supports IA64 processor
12047         lt_prog_compiler_static_CXX='-Bstatic'
12048       fi
12049       ;;
12050     amigaos*)
12051       # FIXME: we need at least 68020 code to build shared libraries, but
12052       # adding the `-m68020' flag to GCC prevents building anything better,
12053       # like `-m68040'.
12054       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12055       ;;
12056     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12057       # PIC is the default for these OSes.
12058       ;;
12059     mingw* | os2* | pw32*)
12060       # This hack is so that the source file can tell whether it is being
12061       # built for inclusion in a dll (and should export symbols for example).
12062       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12063       ;;
12064     darwin* | rhapsody*)
12065       # PIC is the default on this platform
12066       # Common symbols not allowed in MH_DYLIB files
12067       lt_prog_compiler_pic_CXX='-fno-common'
12068       ;;
12069     *djgpp*)
12070       # DJGPP does not support shared libraries at all
12071       lt_prog_compiler_pic_CXX=
12072       ;;
12073     interix3*)
12074       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12075       # Instead, we relocate shared libraries at runtime.
12076       ;;
12077     sysv4*MP*)
12078       if test -d /usr/nec; then
12079         lt_prog_compiler_pic_CXX=-Kconform_pic
12080       fi
12081       ;;
12082     hpux*)
12083       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12084       # not for PA HP-UX.
12085       case $host_cpu in
12086       hppa*64*|ia64*)
12087         ;;
12088       *)
12089         lt_prog_compiler_pic_CXX='-fPIC'
12090         ;;
12091       esac
12092       ;;
12093     *)
12094       lt_prog_compiler_pic_CXX='-fPIC'
12095       ;;
12096     esac
12097   else
12098     case $host_os in
12099       aix4* | aix5*)
12100         # All AIX code is PIC.
12101         if test "$host_cpu" = ia64; then
12102           # AIX 5 now supports IA64 processor
12103           lt_prog_compiler_static_CXX='-Bstatic'
12104         else
12105           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12106         fi
12107         ;;
12108       chorus*)
12109         case $cc_basename in
12110         cxch68*)
12111           # Green Hills C++ Compiler
12112           # _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"
12113           ;;
12114         esac
12115         ;;
12116        darwin*)
12117          # PIC is the default on this platform
12118          # Common symbols not allowed in MH_DYLIB files
12119          case $cc_basename in
12120            xlc*)
12121            lt_prog_compiler_pic_CXX='-qnocommon'
12122            lt_prog_compiler_wl_CXX='-Wl,'
12123            ;;
12124          esac
12125        ;;
12126       dgux*)
12127         case $cc_basename in
12128           ec++*)
12129             lt_prog_compiler_pic_CXX='-KPIC'
12130             ;;
12131           ghcx*)
12132             # Green Hills C++ Compiler
12133             lt_prog_compiler_pic_CXX='-pic'
12134             ;;
12135           *)
12136             ;;
12137         esac
12138         ;;
12139       freebsd* | kfreebsd*-gnu | dragonfly*)
12140         # FreeBSD uses GNU C++
12141         ;;
12142       hpux9* | hpux10* | hpux11*)
12143         case $cc_basename in
12144           CC*)
12145             lt_prog_compiler_wl_CXX='-Wl,'
12146             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12147             if test "$host_cpu" != ia64; then
12148               lt_prog_compiler_pic_CXX='+Z'
12149             fi
12150             ;;
12151           aCC*)
12152             lt_prog_compiler_wl_CXX='-Wl,'
12153             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12154             case $host_cpu in
12155             hppa*64*|ia64*)
12156               # +Z the default
12157               ;;
12158             *)
12159               lt_prog_compiler_pic_CXX='+Z'
12160               ;;
12161             esac
12162             ;;
12163           *)
12164             ;;
12165         esac
12166         ;;
12167       interix*)
12168         # This is c89, which is MS Visual C++ (no shared libs)
12169         # Anyone wants to do a port?
12170         ;;
12171       irix5* | irix6* | nonstopux*)
12172         case $cc_basename in
12173           CC*)
12174             lt_prog_compiler_wl_CXX='-Wl,'
12175             lt_prog_compiler_static_CXX='-non_shared'
12176             # CC pic flag -KPIC is the default.
12177             ;;
12178           *)
12179             ;;
12180         esac
12181         ;;
12182       linux*)
12183         case $cc_basename in
12184           KCC*)
12185             # KAI C++ Compiler
12186             lt_prog_compiler_wl_CXX='--backend -Wl,'
12187             lt_prog_compiler_pic_CXX='-fPIC'
12188             ;;
12189           icpc* | ecpc*)
12190             # Intel C++
12191             lt_prog_compiler_wl_CXX='-Wl,'
12192             lt_prog_compiler_pic_CXX='-KPIC'
12193             lt_prog_compiler_static_CXX='-static'
12194             ;;
12195           pgCC*)
12196             # Portland Group C++ compiler.
12197             lt_prog_compiler_wl_CXX='-Wl,'
12198             lt_prog_compiler_pic_CXX='-fpic'
12199             lt_prog_compiler_static_CXX='-Bstatic'
12200             ;;
12201           cxx*)
12202             # Compaq C++
12203             # Make sure the PIC flag is empty.  It appears that all Alpha
12204             # Linux and Compaq Tru64 Unix objects are PIC.
12205             lt_prog_compiler_pic_CXX=
12206             lt_prog_compiler_static_CXX='-non_shared'
12207             ;;
12208           *)
12209             ;;
12210         esac
12211         ;;
12212       lynxos*)
12213         ;;
12214       m88k*)
12215         ;;
12216       mvs*)
12217         case $cc_basename in
12218           cxx*)
12219             lt_prog_compiler_pic_CXX='-W c,exportall'
12220             ;;
12221           *)
12222             ;;
12223         esac
12224         ;;
12225       netbsd*)
12226         ;;
12227       osf3* | osf4* | osf5*)
12228         case $cc_basename in
12229           KCC*)
12230             lt_prog_compiler_wl_CXX='--backend -Wl,'
12231             ;;
12232           RCC*)
12233             # Rational C++ 2.4.1
12234             lt_prog_compiler_pic_CXX='-pic'
12235             ;;
12236           cxx*)
12237             # Digital/Compaq C++
12238             lt_prog_compiler_wl_CXX='-Wl,'
12239             # Make sure the PIC flag is empty.  It appears that all Alpha
12240             # Linux and Compaq Tru64 Unix objects are PIC.
12241             lt_prog_compiler_pic_CXX=
12242             lt_prog_compiler_static_CXX='-non_shared'
12243             ;;
12244           *)
12245             ;;
12246         esac
12247         ;;
12248       psos*)
12249         ;;
12250       solaris*)
12251         case $cc_basename in
12252           CC*)
12253             # Sun C++ 4.2, 5.x and Centerline C++
12254             lt_prog_compiler_pic_CXX='-KPIC'
12255             lt_prog_compiler_static_CXX='-Bstatic'
12256             lt_prog_compiler_wl_CXX='-Qoption ld '
12257             ;;
12258           gcx*)
12259             # Green Hills C++ Compiler
12260             lt_prog_compiler_pic_CXX='-PIC'
12261             ;;
12262           *)
12263             ;;
12264         esac
12265         ;;
12266       sunos4*)
12267         case $cc_basename in
12268           CC*)
12269             # Sun C++ 4.x
12270             lt_prog_compiler_pic_CXX='-pic'
12271             lt_prog_compiler_static_CXX='-Bstatic'
12272             ;;
12273           lcc*)
12274             # Lucid
12275             lt_prog_compiler_pic_CXX='-pic'
12276             ;;
12277           *)
12278             ;;
12279         esac
12280         ;;
12281       tandem*)
12282         case $cc_basename in
12283           NCC*)
12284             # NonStop-UX NCC 3.20
12285             lt_prog_compiler_pic_CXX='-KPIC'
12286             ;;
12287           *)
12288             ;;
12289         esac
12290         ;;
12291       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12292         case $cc_basename in
12293           CC*)
12294             lt_prog_compiler_wl_CXX='-Wl,'
12295             lt_prog_compiler_pic_CXX='-KPIC'
12296             lt_prog_compiler_static_CXX='-Bstatic'
12297             ;;
12298         esac
12299         ;;
12300       vxworks*)
12301         ;;
12302       *)
12303         lt_prog_compiler_can_build_shared_CXX=no
12304         ;;
12305     esac
12306   fi
12307
12308 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12309 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12310
12311 #
12312 # Check to make sure the PIC flag actually works.
12313 #
12314 if test -n "$lt_prog_compiler_pic_CXX"; then
12315
12316 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12318 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12319   $as_echo_n "(cached) " >&6
12320 else
12321   lt_prog_compiler_pic_works_CXX=no
12322   ac_outfile=conftest.$ac_objext
12323    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12324    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12325    # Insert the option either (1) after the last *FLAGS variable, or
12326    # (2) before a word containing "conftest.", or (3) at the end.
12327    # Note that $ac_compile itself does not contain backslashes and begins
12328    # with a dollar sign (not a hyphen), so the echo should work correctly.
12329    # The option is referenced via a variable to avoid confusing sed.
12330    lt_compile=`echo "$ac_compile" | $SED \
12331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333    -e 's:$: $lt_compiler_flag:'`
12334    (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
12335    (eval "$lt_compile" 2>conftest.err)
12336    ac_status=$?
12337    cat conftest.err >&5
12338    echo "$as_me:12338: \$? = $ac_status" >&5
12339    if (exit $ac_status) && test -s "$ac_outfile"; then
12340      # The compiler can only warn and ignore the option if not recognized
12341      # So say no if there are warnings other than the usual output.
12342      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12343      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12344      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12345        lt_prog_compiler_pic_works_CXX=yes
12346      fi
12347    fi
12348    $rm conftest*
12349
12350 fi
12351 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12352 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12353
12354 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12355     case $lt_prog_compiler_pic_CXX in
12356      "" | " "*) ;;
12357      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12358      esac
12359 else
12360     lt_prog_compiler_pic_CXX=
12361      lt_prog_compiler_can_build_shared_CXX=no
12362 fi
12363
12364 fi
12365 case $host_os in
12366   # For platforms which do not support PIC, -DPIC is meaningless:
12367   *djgpp*)
12368     lt_prog_compiler_pic_CXX=
12369     ;;
12370   *)
12371     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12372     ;;
12373 esac
12374
12375 #
12376 # Check to make sure the static flag actually works.
12377 #
12378 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12379 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12380 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12381 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12382   $as_echo_n "(cached) " >&6
12383 else
12384   lt_prog_compiler_static_works_CXX=no
12385    save_LDFLAGS="$LDFLAGS"
12386    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12387    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12388    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12389      # The linker can only warn and ignore the option if not recognized
12390      # So say no if there are warnings
12391      if test -s conftest.err; then
12392        # Append any errors to the config.log.
12393        cat conftest.err 1>&5
12394        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12395        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12396        if diff conftest.exp conftest.er2 >/dev/null; then
12397          lt_prog_compiler_static_works_CXX=yes
12398        fi
12399      else
12400        lt_prog_compiler_static_works_CXX=yes
12401      fi
12402    fi
12403    $rm conftest*
12404    LDFLAGS="$save_LDFLAGS"
12405
12406 fi
12407 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12408 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12409
12410 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12411     :
12412 else
12413     lt_prog_compiler_static_CXX=
12414 fi
12415
12416
12417 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12418 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12419 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12420   $as_echo_n "(cached) " >&6
12421 else
12422   lt_cv_prog_compiler_c_o_CXX=no
12423    $rm -r conftest 2>/dev/null
12424    mkdir conftest
12425    cd conftest
12426    mkdir out
12427    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12428
12429    lt_compiler_flag="-o out/conftest2.$ac_objext"
12430    # Insert the option either (1) after the last *FLAGS variable, or
12431    # (2) before a word containing "conftest.", or (3) at the end.
12432    # Note that $ac_compile itself does not contain backslashes and begins
12433    # with a dollar sign (not a hyphen), so the echo should work correctly.
12434    lt_compile=`echo "$ac_compile" | $SED \
12435    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12436    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12437    -e 's:$: $lt_compiler_flag:'`
12438    (eval echo "\"\$as_me:12438: $lt_compile\"" >&5)
12439    (eval "$lt_compile" 2>out/conftest.err)
12440    ac_status=$?
12441    cat out/conftest.err >&5
12442    echo "$as_me:12442: \$? = $ac_status" >&5
12443    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12444    then
12445      # The compiler can only warn and ignore the option if not recognized
12446      # So say no if there are warnings
12447      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12448      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12449      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12450        lt_cv_prog_compiler_c_o_CXX=yes
12451      fi
12452    fi
12453    chmod u+w . 2>&5
12454    $rm conftest*
12455    # SGI C++ compiler will create directory out/ii_files/ for
12456    # template instantiation
12457    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12458    $rm out/* && rmdir out
12459    cd ..
12460    rmdir conftest
12461    $rm conftest*
12462
12463 fi
12464 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12465 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12466
12467
12468 hard_links="nottested"
12469 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12470   # do not overwrite the value of need_locks provided by the user
12471   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12472 $as_echo_n "checking if we can lock with hard links... " >&6; }
12473   hard_links=yes
12474   $rm conftest*
12475   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12476   touch conftest.a
12477   ln conftest.a conftest.b 2>&5 || hard_links=no
12478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12479   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12480 $as_echo "$hard_links" >&6; }
12481   if test "$hard_links" = no; then
12482     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12483 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12484     need_locks=warn
12485   fi
12486 else
12487   need_locks=no
12488 fi
12489
12490 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12492
12493   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12494   case $host_os in
12495   aix4* | aix5*)
12496     # If we're using GNU nm, then we don't want the "-C" option.
12497     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12498     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12499       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'
12500     else
12501       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'
12502     fi
12503     ;;
12504   pw32*)
12505     export_symbols_cmds_CXX="$ltdll_cmds"
12506   ;;
12507   cygwin* | mingw*)
12508     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'
12509   ;;
12510   *)
12511     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12512   ;;
12513   esac
12514
12515 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12516 $as_echo "$ld_shlibs_CXX" >&6; }
12517 test "$ld_shlibs_CXX" = no && can_build_shared=no
12518
12519 #
12520 # Do we need to explicitly link libc?
12521 #
12522 case "x$archive_cmds_need_lc_CXX" in
12523 x|xyes)
12524   # Assume -lc should be added
12525   archive_cmds_need_lc_CXX=yes
12526
12527   if test "$enable_shared" = yes && test "$GCC" = yes; then
12528     case $archive_cmds_CXX in
12529     *'~'*)
12530       # FIXME: we may have to deal with multi-command sequences.
12531       ;;
12532     '$CC '*)
12533       # Test whether the compiler implicitly links with -lc since on some
12534       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12535       # to ld, don't add -lc before -lgcc.
12536       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12538       $rm conftest*
12539       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12540
12541       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542   (eval $ac_compile) 2>&5
12543   ac_status=$?
12544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } 2>conftest.err; then
12546         soname=conftest
12547         lib=conftest
12548         libobjs=conftest.$ac_objext
12549         deplibs=
12550         wl=$lt_prog_compiler_wl_CXX
12551         pic_flag=$lt_prog_compiler_pic_CXX
12552         compiler_flags=-v
12553         linker_flags=-v
12554         verstring=
12555         output_objdir=.
12556         libname=conftest
12557         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12558         allow_undefined_flag_CXX=
12559         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12560   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12561   ac_status=$?
12562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }
12564         then
12565           archive_cmds_need_lc_CXX=no
12566         else
12567           archive_cmds_need_lc_CXX=yes
12568         fi
12569         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12570       else
12571         cat conftest.err 1>&5
12572       fi
12573       $rm conftest*
12574       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12575 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12576       ;;
12577     esac
12578   fi
12579   ;;
12580 esac
12581
12582 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12583 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12584 library_names_spec=
12585 libname_spec='lib$name'
12586 soname_spec=
12587 shrext_cmds=".so"
12588 postinstall_cmds=
12589 postuninstall_cmds=
12590 finish_cmds=
12591 finish_eval=
12592 shlibpath_var=
12593 shlibpath_overrides_runpath=unknown
12594 version_type=none
12595 dynamic_linker="$host_os ld.so"
12596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12597 if test "$GCC" = yes; then
12598   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12599   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12600     # if the path contains ";" then we assume it to be the separator
12601     # otherwise default to the standard path separator (i.e. ":") - it is
12602     # assumed that no part of a normal pathname contains ";" but that should
12603     # okay in the real world where ";" in dirpaths is itself problematic.
12604     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12605   else
12606     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12607   fi
12608 else
12609   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12610 fi
12611 need_lib_prefix=unknown
12612 hardcode_into_libs=no
12613
12614 # when you set need_version to no, make sure it does not cause -set_version
12615 # flags to be left without arguments
12616 need_version=unknown
12617
12618 case $host_os in
12619 aix3*)
12620   version_type=linux
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12622   shlibpath_var=LIBPATH
12623
12624   # AIX 3 has no versioning support, so we append a major version to the name.
12625   soname_spec='${libname}${release}${shared_ext}$major'
12626   ;;
12627
12628 aix4* | aix5*)
12629   version_type=linux
12630   need_lib_prefix=no
12631   need_version=no
12632   hardcode_into_libs=yes
12633   if test "$host_cpu" = ia64; then
12634     # AIX 5 supports IA64
12635     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12636     shlibpath_var=LD_LIBRARY_PATH
12637   else
12638     # With GCC up to 2.95.x, collect2 would create an import file
12639     # for dependence libraries.  The import file would start with
12640     # the line `#! .'.  This would cause the generated library to
12641     # depend on `.', always an invalid library.  This was fixed in
12642     # development snapshots of GCC prior to 3.0.
12643     case $host_os in
12644       aix4 | aix4.[01] | aix4.[01].*)
12645       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12646            echo ' yes '
12647            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12648         :
12649       else
12650         can_build_shared=no
12651       fi
12652       ;;
12653     esac
12654     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12655     # soname into executable. Probably we can add versioning support to
12656     # collect2, so additional links can be useful in future.
12657     if test "$aix_use_runtimelinking" = yes; then
12658       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12659       # instead of lib<name>.a to let people know that these are not
12660       # typical AIX shared libraries.
12661       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662     else
12663       # We preserve .a as extension for shared libraries through AIX4.2
12664       # and later when we are not doing run time linking.
12665       library_names_spec='${libname}${release}.a $libname.a'
12666       soname_spec='${libname}${release}${shared_ext}$major'
12667     fi
12668     shlibpath_var=LIBPATH
12669   fi
12670   ;;
12671
12672 amigaos*)
12673   library_names_spec='$libname.ixlibrary $libname.a'
12674   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12675   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'
12676   ;;
12677
12678 beos*)
12679   library_names_spec='${libname}${shared_ext}'
12680   dynamic_linker="$host_os ld.so"
12681   shlibpath_var=LIBRARY_PATH
12682   ;;
12683
12684 bsdi[45]*)
12685   version_type=linux
12686   need_version=no
12687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12688   soname_spec='${libname}${release}${shared_ext}$major'
12689   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12690   shlibpath_var=LD_LIBRARY_PATH
12691   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12692   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12693   # the default ld.so.conf also contains /usr/contrib/lib and
12694   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12695   # libtool to hard-code these into programs
12696   ;;
12697
12698 cygwin* | mingw* | pw32*)
12699   version_type=windows
12700   shrext_cmds=".dll"
12701   need_version=no
12702   need_lib_prefix=no
12703
12704   case $GCC,$host_os in
12705   yes,cygwin* | yes,mingw* | yes,pw32*)
12706     library_names_spec='$libname.dll.a'
12707     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12708     postinstall_cmds='base_file=`basename \${file}`~
12709       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12710       dldir=$destdir/`dirname \$dlpath`~
12711       test -d \$dldir || mkdir -p \$dldir~
12712       $install_prog $dir/$dlname \$dldir/$dlname~
12713       chmod a+x \$dldir/$dlname'
12714     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12715       dlpath=$dir/\$dldll~
12716        $rm \$dlpath'
12717     shlibpath_overrides_runpath=yes
12718
12719     case $host_os in
12720     cygwin*)
12721       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12722       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12723       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12724       ;;
12725     mingw*)
12726       # MinGW DLLs use traditional 'lib' prefix
12727       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12728       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12729       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12730         # It is most probably a Windows format PATH printed by
12731         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12732         # path with ; separators, and with drive letters. We can handle the
12733         # drive letters (cygwin fileutils understands them), so leave them,
12734         # especially as we might pass files found there to a mingw objdump,
12735         # which wouldn't understand a cygwinified path. Ahh.
12736         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12737       else
12738         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12739       fi
12740       ;;
12741     pw32*)
12742       # pw32 DLLs use 'pw' prefix rather than 'lib'
12743       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12744       ;;
12745     esac
12746     ;;
12747
12748   *)
12749     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12750     ;;
12751   esac
12752   dynamic_linker='Win32 ld.exe'
12753   # FIXME: first we should search . and the directory the executable is in
12754   shlibpath_var=PATH
12755   ;;
12756
12757 darwin* | rhapsody*)
12758   dynamic_linker="$host_os dyld"
12759   version_type=darwin
12760   need_lib_prefix=no
12761   need_version=no
12762   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12763   soname_spec='${libname}${release}${major}$shared_ext'
12764   shlibpath_overrides_runpath=yes
12765   shlibpath_var=DYLD_LIBRARY_PATH
12766   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12767   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12768   if test "$GCC" = yes; then
12769     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12770   else
12771     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12772   fi
12773   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12774   ;;
12775
12776 dgux*)
12777   version_type=linux
12778   need_lib_prefix=no
12779   need_version=no
12780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12781   soname_spec='${libname}${release}${shared_ext}$major'
12782   shlibpath_var=LD_LIBRARY_PATH
12783   ;;
12784
12785 freebsd1*)
12786   dynamic_linker=no
12787   ;;
12788
12789 kfreebsd*-gnu)
12790   version_type=linux
12791   need_lib_prefix=no
12792   need_version=no
12793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12794   soname_spec='${libname}${release}${shared_ext}$major'
12795   shlibpath_var=LD_LIBRARY_PATH
12796   shlibpath_overrides_runpath=no
12797   hardcode_into_libs=yes
12798   dynamic_linker='GNU ld.so'
12799   ;;
12800
12801 freebsd* | dragonfly*)
12802   # DragonFly does not have aout.  When/if they implement a new
12803   # versioning mechanism, adjust this.
12804   if test -x /usr/bin/objformat; then
12805     objformat=`/usr/bin/objformat`
12806   else
12807     case $host_os in
12808     freebsd[123]*) objformat=aout ;;
12809     *) objformat=elf ;;
12810     esac
12811   fi
12812   version_type=freebsd-$objformat
12813   case $version_type in
12814     freebsd-elf*)
12815       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12816       need_version=no
12817       need_lib_prefix=no
12818       ;;
12819     freebsd-*)
12820       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12821       need_version=yes
12822       ;;
12823   esac
12824   shlibpath_var=LD_LIBRARY_PATH
12825   case $host_os in
12826   freebsd2*)
12827     shlibpath_overrides_runpath=yes
12828     ;;
12829   freebsd3.[01]* | freebsdelf3.[01]*)
12830     shlibpath_overrides_runpath=yes
12831     hardcode_into_libs=yes
12832     ;;
12833   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12834   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12835     shlibpath_overrides_runpath=no
12836     hardcode_into_libs=yes
12837     ;;
12838   freebsd*) # from 4.6 on
12839     shlibpath_overrides_runpath=yes
12840     hardcode_into_libs=yes
12841     ;;
12842   esac
12843   ;;
12844
12845 gnu*)
12846   version_type=linux
12847   need_lib_prefix=no
12848   need_version=no
12849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12850   soname_spec='${libname}${release}${shared_ext}$major'
12851   shlibpath_var=LD_LIBRARY_PATH
12852   hardcode_into_libs=yes
12853   ;;
12854
12855 hpux9* | hpux10* | hpux11*)
12856   # Give a soname corresponding to the major version so that dld.sl refuses to
12857   # link against other versions.
12858   version_type=sunos
12859   need_lib_prefix=no
12860   need_version=no
12861   case $host_cpu in
12862   ia64*)
12863     shrext_cmds='.so'
12864     hardcode_into_libs=yes
12865     dynamic_linker="$host_os dld.so"
12866     shlibpath_var=LD_LIBRARY_PATH
12867     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869     soname_spec='${libname}${release}${shared_ext}$major'
12870     if test "X$HPUX_IA64_MODE" = X32; then
12871       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12872     else
12873       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12874     fi
12875     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12876     ;;
12877    hppa*64*)
12878      shrext_cmds='.sl'
12879      hardcode_into_libs=yes
12880      dynamic_linker="$host_os dld.sl"
12881      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12882      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12883      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884      soname_spec='${libname}${release}${shared_ext}$major'
12885      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12886      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12887      ;;
12888    *)
12889     shrext_cmds='.sl'
12890     dynamic_linker="$host_os dld.sl"
12891     shlibpath_var=SHLIB_PATH
12892     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12894     soname_spec='${libname}${release}${shared_ext}$major'
12895     ;;
12896   esac
12897   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12898   postinstall_cmds='chmod 555 $lib'
12899   ;;
12900
12901 interix3*)
12902   version_type=linux
12903   need_lib_prefix=no
12904   need_version=no
12905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12906   soname_spec='${libname}${release}${shared_ext}$major'
12907   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12908   shlibpath_var=LD_LIBRARY_PATH
12909   shlibpath_overrides_runpath=no
12910   hardcode_into_libs=yes
12911   ;;
12912
12913 irix5* | irix6* | nonstopux*)
12914   case $host_os in
12915     nonstopux*) version_type=nonstopux ;;
12916     *)
12917         if test "$lt_cv_prog_gnu_ld" = yes; then
12918                 version_type=linux
12919         else
12920                 version_type=irix
12921         fi ;;
12922   esac
12923   need_lib_prefix=no
12924   need_version=no
12925   soname_spec='${libname}${release}${shared_ext}$major'
12926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12927   case $host_os in
12928   irix5* | nonstopux*)
12929     libsuff= shlibsuff=
12930     ;;
12931   *)
12932     case $LD in # libtool.m4 will add one of these switches to LD
12933     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12934       libsuff= shlibsuff= libmagic=32-bit;;
12935     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12936       libsuff=32 shlibsuff=N32 libmagic=N32;;
12937     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12938       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12939     *) libsuff= shlibsuff= libmagic=never-match;;
12940     esac
12941     ;;
12942   esac
12943   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12944   shlibpath_overrides_runpath=no
12945   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12946   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12947   hardcode_into_libs=yes
12948   ;;
12949
12950 # No shared lib support for Linux oldld, aout, or coff.
12951 linux*oldld* | linux*aout* | linux*coff*)
12952   dynamic_linker=no
12953   ;;
12954
12955 # This must be Linux ELF.
12956 linux*)
12957   version_type=linux
12958   need_lib_prefix=no
12959   need_version=no
12960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961   soname_spec='${libname}${release}${shared_ext}$major'
12962   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12963   shlibpath_var=LD_LIBRARY_PATH
12964   shlibpath_overrides_runpath=no
12965   # This implies no fast_install, which is unacceptable.
12966   # Some rework will be needed to allow for fast_install
12967   # before this can be enabled.
12968   hardcode_into_libs=yes
12969
12970   # find out which ABI we are using
12971   libsuff=
12972   case "$host_cpu" in
12973   x86_64*|s390x*|powerpc64*)
12974     echo '#line 12974 "configure"' > conftest.$ac_ext
12975     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976   (eval $ac_compile) 2>&5
12977   ac_status=$?
12978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; then
12980       case `/usr/bin/file conftest.$ac_objext` in
12981       *64-bit*)
12982         libsuff=64
12983         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12984         ;;
12985       esac
12986     fi
12987     rm -rf conftest*
12988     ;;
12989   esac
12990
12991   # Append ld.so.conf contents to the search path
12992   if test -f /etc/ld.so.conf; then
12993     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12994     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12995   fi
12996
12997   # We used to test for /lib/ld.so.1 and disable shared libraries on
12998   # powerpc, because MkLinux only supported shared libraries with the
12999   # GNU dynamic linker.  Since this was broken with cross compilers,
13000   # most powerpc-linux boxes support dynamic linking these days and
13001   # people can always --disable-shared, the test was removed, and we
13002   # assume the GNU/Linux dynamic linker is in use.
13003   dynamic_linker='GNU/Linux ld.so'
13004   ;;
13005
13006 knetbsd*-gnu)
13007   version_type=linux
13008   need_lib_prefix=no
13009   need_version=no
13010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13011   soname_spec='${libname}${release}${shared_ext}$major'
13012   shlibpath_var=LD_LIBRARY_PATH
13013   shlibpath_overrides_runpath=no
13014   hardcode_into_libs=yes
13015   dynamic_linker='GNU ld.so'
13016   ;;
13017
13018 netbsd*)
13019   version_type=sunos
13020   need_lib_prefix=no
13021   need_version=no
13022   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025     dynamic_linker='NetBSD (a.out) ld.so'
13026   else
13027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13028     soname_spec='${libname}${release}${shared_ext}$major'
13029     dynamic_linker='NetBSD ld.elf_so'
13030   fi
13031   shlibpath_var=LD_LIBRARY_PATH
13032   shlibpath_overrides_runpath=yes
13033   hardcode_into_libs=yes
13034   ;;
13035
13036 newsos6)
13037   version_type=linux
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039   shlibpath_var=LD_LIBRARY_PATH
13040   shlibpath_overrides_runpath=yes
13041   ;;
13042
13043 nto-qnx*)
13044   version_type=linux
13045   need_lib_prefix=no
13046   need_version=no
13047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048   soname_spec='${libname}${release}${shared_ext}$major'
13049   shlibpath_var=LD_LIBRARY_PATH
13050   shlibpath_overrides_runpath=yes
13051   ;;
13052
13053 openbsd*)
13054   version_type=sunos
13055   sys_lib_dlsearch_path_spec="/usr/lib"
13056   need_lib_prefix=no
13057   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13058   case $host_os in
13059     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13060     *)                         need_version=no  ;;
13061   esac
13062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13064   shlibpath_var=LD_LIBRARY_PATH
13065   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13066     case $host_os in
13067       openbsd2.[89] | openbsd2.[89].*)
13068         shlibpath_overrides_runpath=no
13069         ;;
13070       *)
13071         shlibpath_overrides_runpath=yes
13072         ;;
13073       esac
13074   else
13075     shlibpath_overrides_runpath=yes
13076   fi
13077   ;;
13078
13079 os2*)
13080   libname_spec='$name'
13081   shrext_cmds=".dll"
13082   need_lib_prefix=no
13083   library_names_spec='$libname${shared_ext} $libname.a'
13084   dynamic_linker='OS/2 ld.exe'
13085   shlibpath_var=LIBPATH
13086   ;;
13087
13088 osf3* | osf4* | osf5*)
13089   version_type=osf
13090   need_lib_prefix=no
13091   need_version=no
13092   soname_spec='${libname}${release}${shared_ext}$major'
13093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094   shlibpath_var=LD_LIBRARY_PATH
13095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13097   ;;
13098
13099 solaris*)
13100   version_type=linux
13101   need_lib_prefix=no
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   shlibpath_var=LD_LIBRARY_PATH
13106   shlibpath_overrides_runpath=yes
13107   hardcode_into_libs=yes
13108   # ldd complains unless libraries are executable
13109   postinstall_cmds='chmod +x $lib'
13110   ;;
13111
13112 sunos4*)
13113   version_type=sunos
13114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116   shlibpath_var=LD_LIBRARY_PATH
13117   shlibpath_overrides_runpath=yes
13118   if test "$with_gnu_ld" = yes; then
13119     need_lib_prefix=no
13120   fi
13121   need_version=yes
13122   ;;
13123
13124 sysv4 | sysv4.3*)
13125   version_type=linux
13126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127   soname_spec='${libname}${release}${shared_ext}$major'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   case $host_vendor in
13130     sni)
13131       shlibpath_overrides_runpath=no
13132       need_lib_prefix=no
13133       export_dynamic_flag_spec='${wl}-Blargedynsym'
13134       runpath_var=LD_RUN_PATH
13135       ;;
13136     siemens)
13137       need_lib_prefix=no
13138       ;;
13139     motorola)
13140       need_lib_prefix=no
13141       need_version=no
13142       shlibpath_overrides_runpath=no
13143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13144       ;;
13145   esac
13146   ;;
13147
13148 sysv4*MP*)
13149   if test -d /usr/nec ;then
13150     version_type=linux
13151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13152     soname_spec='$libname${shared_ext}.$major'
13153     shlibpath_var=LD_LIBRARY_PATH
13154   fi
13155   ;;
13156
13157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13158   version_type=freebsd-elf
13159   need_lib_prefix=no
13160   need_version=no
13161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13162   soname_spec='${libname}${release}${shared_ext}$major'
13163   shlibpath_var=LD_LIBRARY_PATH
13164   hardcode_into_libs=yes
13165   if test "$with_gnu_ld" = yes; then
13166     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13167     shlibpath_overrides_runpath=no
13168   else
13169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13170     shlibpath_overrides_runpath=yes
13171     case $host_os in
13172       sco3.2v5*)
13173         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13174         ;;
13175     esac
13176   fi
13177   sys_lib_dlsearch_path_spec='/usr/lib'
13178   ;;
13179
13180 uts4*)
13181   version_type=linux
13182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183   soname_spec='${libname}${release}${shared_ext}$major'
13184   shlibpath_var=LD_LIBRARY_PATH
13185   ;;
13186
13187 *)
13188   dynamic_linker=no
13189   ;;
13190 esac
13191 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13192 $as_echo "$dynamic_linker" >&6; }
13193 test "$dynamic_linker" = no && can_build_shared=no
13194
13195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13196 if test "$GCC" = yes; then
13197   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13198 fi
13199
13200 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13201 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13202 hardcode_action_CXX=
13203 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13204    test -n "$runpath_var_CXX" || \
13205    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13206
13207   # We can hardcode non-existant directories.
13208   if test "$hardcode_direct_CXX" != no &&
13209      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13210      # have to relink, otherwise we might link with an installed library
13211      # when we should be linking with a yet-to-be-installed one
13212      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13213      test "$hardcode_minus_L_CXX" != no; then
13214     # Linking always hardcodes the temporary library directory.
13215     hardcode_action_CXX=relink
13216   else
13217     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13218     hardcode_action_CXX=immediate
13219   fi
13220 else
13221   # We cannot hardcode anything, or else we can only hardcode existing
13222   # directories.
13223   hardcode_action_CXX=unsupported
13224 fi
13225 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13226 $as_echo "$hardcode_action_CXX" >&6; }
13227
13228 if test "$hardcode_action_CXX" = relink; then
13229   # Fast installation is not supported
13230   enable_fast_install=no
13231 elif test "$shlibpath_overrides_runpath" = yes ||
13232      test "$enable_shared" = no; then
13233   # Fast installation is not necessary
13234   enable_fast_install=needless
13235 fi
13236
13237
13238 # The else clause should only fire when bootstrapping the
13239 # libtool distribution, otherwise you forgot to ship ltmain.sh
13240 # with your package, and you will get complaints that there are
13241 # no rules to generate ltmain.sh.
13242 if test -f "$ltmain"; then
13243   # See if we are running on zsh, and set the options which allow our commands through
13244   # without removal of \ escapes.
13245   if test -n "${ZSH_VERSION+set}" ; then
13246     setopt NO_GLOB_SUBST
13247   fi
13248   # Now quote all the things that may contain metacharacters while being
13249   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13250   # variables and quote the copies for generation of the libtool script.
13251   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13252     SED SHELL STRIP \
13253     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13254     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13255     deplibs_check_method reload_flag reload_cmds need_locks \
13256     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13257     lt_cv_sys_global_symbol_to_c_name_address \
13258     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13259     old_postinstall_cmds old_postuninstall_cmds \
13260     compiler_CXX \
13261     CC_CXX \
13262     LD_CXX \
13263     lt_prog_compiler_wl_CXX \
13264     lt_prog_compiler_pic_CXX \
13265     lt_prog_compiler_static_CXX \
13266     lt_prog_compiler_no_builtin_flag_CXX \
13267     export_dynamic_flag_spec_CXX \
13268     thread_safe_flag_spec_CXX \
13269     whole_archive_flag_spec_CXX \
13270     enable_shared_with_static_runtimes_CXX \
13271     old_archive_cmds_CXX \
13272     old_archive_from_new_cmds_CXX \
13273     predep_objects_CXX \
13274     postdep_objects_CXX \
13275     predeps_CXX \
13276     postdeps_CXX \
13277     compiler_lib_search_path_CXX \
13278     archive_cmds_CXX \
13279     archive_expsym_cmds_CXX \
13280     postinstall_cmds_CXX \
13281     postuninstall_cmds_CXX \
13282     old_archive_from_expsyms_cmds_CXX \
13283     allow_undefined_flag_CXX \
13284     no_undefined_flag_CXX \
13285     export_symbols_cmds_CXX \
13286     hardcode_libdir_flag_spec_CXX \
13287     hardcode_libdir_flag_spec_ld_CXX \
13288     hardcode_libdir_separator_CXX \
13289     hardcode_automatic_CXX \
13290     module_cmds_CXX \
13291     module_expsym_cmds_CXX \
13292     lt_cv_prog_compiler_c_o_CXX \
13293     exclude_expsyms_CXX \
13294     include_expsyms_CXX; do
13295
13296     case $var in
13297     old_archive_cmds_CXX | \
13298     old_archive_from_new_cmds_CXX | \
13299     archive_cmds_CXX | \
13300     archive_expsym_cmds_CXX | \
13301     module_cmds_CXX | \
13302     module_expsym_cmds_CXX | \
13303     old_archive_from_expsyms_cmds_CXX | \
13304     export_symbols_cmds_CXX | \
13305     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13306     postinstall_cmds | postuninstall_cmds | \
13307     old_postinstall_cmds | old_postuninstall_cmds | \
13308     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13309       # Double-quote double-evaled strings.
13310       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13311       ;;
13312     *)
13313       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13314       ;;
13315     esac
13316   done
13317
13318   case $lt_echo in
13319   *'\$0 --fallback-echo"')
13320     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13321     ;;
13322   esac
13323
13324 cfgfile="$ofile"
13325
13326   cat <<__EOF__ >> "$cfgfile"
13327 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13328
13329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13330
13331 # Shell to use when invoking shell scripts.
13332 SHELL=$lt_SHELL
13333
13334 # Whether or not to build shared libraries.
13335 build_libtool_libs=$enable_shared
13336
13337 # Whether or not to build static libraries.
13338 build_old_libs=$enable_static
13339
13340 # Whether or not to add -lc for building shared libraries.
13341 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13342
13343 # Whether or not to disallow shared libs when runtime libs are static
13344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13345
13346 # Whether or not to optimize for fast installation.
13347 fast_install=$enable_fast_install
13348
13349 # The host system.
13350 host_alias=$host_alias
13351 host=$host
13352 host_os=$host_os
13353
13354 # The build system.
13355 build_alias=$build_alias
13356 build=$build
13357 build_os=$build_os
13358
13359 # An echo program that does not interpret backslashes.
13360 echo=$lt_echo
13361
13362 # The archiver.
13363 AR=$lt_AR
13364 AR_FLAGS=$lt_AR_FLAGS
13365
13366 # A C compiler.
13367 LTCC=$lt_LTCC
13368
13369 # LTCC compiler flags.
13370 LTCFLAGS=$lt_LTCFLAGS
13371
13372 # A language-specific compiler.
13373 CC=$lt_compiler_CXX
13374
13375 # Is the compiler the GNU C compiler?
13376 with_gcc=$GCC_CXX
13377
13378 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13379 gcc_ver=\`gcc -dumpversion\`
13380
13381 # An ERE matcher.
13382 EGREP=$lt_EGREP
13383
13384 # The linker used to build libraries.
13385 LD=$lt_LD_CXX
13386
13387 # Whether we need hard or soft links.
13388 LN_S=$lt_LN_S
13389
13390 # A BSD-compatible nm program.
13391 NM=$lt_NM
13392
13393 # A symbol stripping program
13394 STRIP=$lt_STRIP
13395
13396 # Used to examine libraries when file_magic_cmd begins "file"
13397 MAGIC_CMD=$MAGIC_CMD
13398
13399 # Used on cygwin: DLL creation program.
13400 DLLTOOL="$DLLTOOL"
13401
13402 # Used on cygwin: object dumper.
13403 OBJDUMP="$OBJDUMP"
13404
13405 # Used on cygwin: assembler.
13406 AS="$AS"
13407
13408 # The name of the directory that contains temporary libtool files.
13409 objdir=$objdir
13410
13411 # How to create reloadable object files.
13412 reload_flag=$lt_reload_flag
13413 reload_cmds=$lt_reload_cmds
13414
13415 # How to pass a linker flag through the compiler.
13416 wl=$lt_lt_prog_compiler_wl_CXX
13417
13418 # Object file suffix (normally "o").
13419 objext="$ac_objext"
13420
13421 # Old archive suffix (normally "a").
13422 libext="$libext"
13423
13424 # Shared library suffix (normally ".so").
13425 shrext_cmds='$shrext_cmds'
13426
13427 # Executable file suffix (normally "").
13428 exeext="$exeext"
13429
13430 # Additional compiler flags for building library objects.
13431 pic_flag=$lt_lt_prog_compiler_pic_CXX
13432 pic_mode=$pic_mode
13433
13434 # What is the maximum length of a command?
13435 max_cmd_len=$lt_cv_sys_max_cmd_len
13436
13437 # Does compiler simultaneously support -c and -o options?
13438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13439
13440 # Must we lock files when doing compilation?
13441 need_locks=$lt_need_locks
13442
13443 # Do we need the lib prefix for modules?
13444 need_lib_prefix=$need_lib_prefix
13445
13446 # Do we need a version for libraries?
13447 need_version=$need_version
13448
13449 # Whether dlopen is supported.
13450 dlopen_support=$enable_dlopen
13451
13452 # Whether dlopen of programs is supported.
13453 dlopen_self=$enable_dlopen_self
13454
13455 # Whether dlopen of statically linked programs is supported.
13456 dlopen_self_static=$enable_dlopen_self_static
13457
13458 # Compiler flag to prevent dynamic linking.
13459 link_static_flag=$lt_lt_prog_compiler_static_CXX
13460
13461 # Compiler flag to turn off builtin functions.
13462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13463
13464 # Compiler flag to allow reflexive dlopens.
13465 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13466
13467 # Compiler flag to generate shared objects directly from archives.
13468 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13469
13470 # Compiler flag to generate thread-safe objects.
13471 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13472
13473 # Library versioning type.
13474 version_type=$version_type
13475
13476 # Format of library name prefix.
13477 libname_spec=$lt_libname_spec
13478
13479 # List of archive names.  First name is the real one, the rest are links.
13480 # The last name is the one that the linker finds with -lNAME.
13481 library_names_spec=$lt_library_names_spec
13482
13483 # The coded name of the library, if different from the real name.
13484 soname_spec=$lt_soname_spec
13485
13486 # Commands used to build and install an old-style archive.
13487 RANLIB=$lt_RANLIB
13488 old_archive_cmds=$lt_old_archive_cmds_CXX
13489 old_postinstall_cmds=$lt_old_postinstall_cmds
13490 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13491
13492 # Create an old-style archive from a shared archive.
13493 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13494
13495 # Create a temporary old-style archive to link instead of a shared archive.
13496 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13497
13498 # Commands used to build and install a shared archive.
13499 archive_cmds=$lt_archive_cmds_CXX
13500 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13501 postinstall_cmds=$lt_postinstall_cmds
13502 postuninstall_cmds=$lt_postuninstall_cmds
13503
13504 # Commands used to build a loadable module (assumed same as above if empty)
13505 module_cmds=$lt_module_cmds_CXX
13506 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13507
13508 # Commands to strip libraries.
13509 old_striplib=$lt_old_striplib
13510 striplib=$lt_striplib
13511
13512 # Dependencies to place before the objects being linked to create a
13513 # shared library.
13514 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13515
13516 # Dependencies to place after the objects being linked to create a
13517 # shared library.
13518 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13519
13520 # Dependencies to place before the objects being linked to create a
13521 # shared library.
13522 predeps=$lt_predeps_CXX
13523
13524 # Dependencies to place after the objects being linked to create a
13525 # shared library.
13526 postdeps=$lt_postdeps_CXX
13527
13528 # The library search path used internally by the compiler when linking
13529 # a shared library.
13530 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13531
13532 # Method to check whether dependent libraries are shared objects.
13533 deplibs_check_method=$lt_deplibs_check_method
13534
13535 # Command to use when deplibs_check_method == file_magic.
13536 file_magic_cmd=$lt_file_magic_cmd
13537
13538 # Flag that allows shared libraries with undefined symbols to be built.
13539 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13540
13541 # Flag that forces no undefined symbols.
13542 no_undefined_flag=$lt_no_undefined_flag_CXX
13543
13544 # Commands used to finish a libtool library installation in a directory.
13545 finish_cmds=$lt_finish_cmds
13546
13547 # Same as above, but a single script fragment to be evaled but not shown.
13548 finish_eval=$lt_finish_eval
13549
13550 # Take the output of nm and produce a listing of raw symbols and C names.
13551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13552
13553 # Transform the output of nm in a proper C declaration
13554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13555
13556 # Transform the output of nm in a C name address pair
13557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13558
13559 # This is the shared library runtime path variable.
13560 runpath_var=$runpath_var
13561
13562 # This is the shared library path variable.
13563 shlibpath_var=$shlibpath_var
13564
13565 # Is shlibpath searched before the hard-coded library search path?
13566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13567
13568 # How to hardcode a shared library path into an executable.
13569 hardcode_action=$hardcode_action_CXX
13570
13571 # Whether we should hardcode library paths into libraries.
13572 hardcode_into_libs=$hardcode_into_libs
13573
13574 # Flag to hardcode \$libdir into a binary during linking.
13575 # This must work even if \$libdir does not exist.
13576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13577
13578 # If ld is used when linking, flag to hardcode \$libdir into
13579 # a binary during linking. This must work even if \$libdir does
13580 # not exist.
13581 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13582
13583 # Whether we need a single -rpath flag with a separated argument.
13584 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13585
13586 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13587 # resulting binary.
13588 hardcode_direct=$hardcode_direct_CXX
13589
13590 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13591 # resulting binary.
13592 hardcode_minus_L=$hardcode_minus_L_CXX
13593
13594 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13595 # the resulting binary.
13596 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13597
13598 # Set to yes if building a shared library automatically hardcodes DIR into the library
13599 # and all subsequent libraries and executables linked against it.
13600 hardcode_automatic=$hardcode_automatic_CXX
13601
13602 # Variables whose values should be saved in libtool wrapper scripts and
13603 # restored at relink time.
13604 variables_saved_for_relink="$variables_saved_for_relink"
13605
13606 # Whether libtool must link a program against all its dependency libraries.
13607 link_all_deplibs=$link_all_deplibs_CXX
13608
13609 # Compile-time system search path for libraries
13610 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13611
13612 # Run-time system search path for libraries
13613 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13614
13615 # Fix the shell variable \$srcfile for the compiler.
13616 fix_srcfile_path="$fix_srcfile_path_CXX"
13617
13618 # Set to yes if exported symbols are required.
13619 always_export_symbols=$always_export_symbols_CXX
13620
13621 # The commands to list exported symbols.
13622 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13623
13624 # The commands to extract the exported symbol list from a shared archive.
13625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13626
13627 # Symbols that should not be listed in the preloaded symbols.
13628 exclude_expsyms=$lt_exclude_expsyms_CXX
13629
13630 # Symbols that must always be exported.
13631 include_expsyms=$lt_include_expsyms_CXX
13632
13633 # ### END LIBTOOL TAG CONFIG: $tagname
13634
13635 __EOF__
13636
13637
13638 else
13639   # If there is no Makefile yet, we rely on a make rule to execute
13640   # `config.status --recheck' to rerun these tests and create the
13641   # libtool script then.
13642   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13643   if test -f "$ltmain_in"; then
13644     test -f Makefile && make "$ltmain"
13645   fi
13646 fi
13647
13648
13649 ac_ext=c
13650 ac_cpp='$CPP $CPPFLAGS'
13651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13654
13655 CC=$lt_save_CC
13656 LDCXX=$LD
13657 LD=$lt_save_LD
13658 GCC=$lt_save_GCC
13659 with_gnu_ldcxx=$with_gnu_ld
13660 with_gnu_ld=$lt_save_with_gnu_ld
13661 lt_cv_path_LDCXX=$lt_cv_path_LD
13662 lt_cv_path_LD=$lt_save_path_LD
13663 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13664 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13665
13666         else
13667           tagname=""
13668         fi
13669         ;;
13670
13671       F77)
13672         if test -n "$F77" && test "X$F77" != "Xno"; then
13673
13674 ac_ext=f
13675 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13676 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13678
13679
13680 archive_cmds_need_lc_F77=no
13681 allow_undefined_flag_F77=
13682 always_export_symbols_F77=no
13683 archive_expsym_cmds_F77=
13684 export_dynamic_flag_spec_F77=
13685 hardcode_direct_F77=no
13686 hardcode_libdir_flag_spec_F77=
13687 hardcode_libdir_flag_spec_ld_F77=
13688 hardcode_libdir_separator_F77=
13689 hardcode_minus_L_F77=no
13690 hardcode_automatic_F77=no
13691 module_cmds_F77=
13692 module_expsym_cmds_F77=
13693 link_all_deplibs_F77=unknown
13694 old_archive_cmds_F77=$old_archive_cmds
13695 no_undefined_flag_F77=
13696 whole_archive_flag_spec_F77=
13697 enable_shared_with_static_runtimes_F77=no
13698
13699 # Source file extension for f77 test sources.
13700 ac_ext=f
13701
13702 # Object file extension for compiled f77 test sources.
13703 objext=o
13704 objext_F77=$objext
13705
13706 # Code to be used in simple compile tests
13707 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13708
13709 # Code to be used in simple link tests
13710 lt_simple_link_test_code="      program t\n      end\n"
13711
13712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13713
13714 # If no C compiler was specified, use CC.
13715 LTCC=${LTCC-"$CC"}
13716
13717 # If no C compiler flags were specified, use CFLAGS.
13718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13719
13720 # Allow CC to be a program name with arguments.
13721 compiler=$CC
13722
13723
13724 # save warnings/boilerplate of simple test code
13725 ac_outfile=conftest.$ac_objext
13726 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13728 _lt_compiler_boilerplate=`cat conftest.err`
13729 $rm conftest*
13730
13731 ac_outfile=conftest.$ac_objext
13732 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13734 _lt_linker_boilerplate=`cat conftest.err`
13735 $rm conftest*
13736
13737
13738 # Allow CC to be a program name with arguments.
13739 lt_save_CC="$CC"
13740 CC=${F77-"f77"}
13741 compiler=$CC
13742 compiler_F77=$CC
13743 for cc_temp in $compiler""; do
13744   case $cc_temp in
13745     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13746     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13747     \-*) ;;
13748     *) break;;
13749   esac
13750 done
13751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13752
13753
13754 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13756 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13757 $as_echo "$can_build_shared" >&6; }
13758
13759 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13760 $as_echo_n "checking whether to build shared libraries... " >&6; }
13761 test "$can_build_shared" = "no" && enable_shared=no
13762
13763 # On AIX, shared libraries and static libraries use the same namespace, and
13764 # are all built from PIC.
13765 case $host_os in
13766 aix3*)
13767   test "$enable_shared" = yes && enable_static=no
13768   if test -n "$RANLIB"; then
13769     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13770     postinstall_cmds='$RANLIB $lib'
13771   fi
13772   ;;
13773 aix4* | aix5*)
13774   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13775     test "$enable_shared" = yes && enable_static=no
13776   fi
13777   ;;
13778 esac
13779 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13780 $as_echo "$enable_shared" >&6; }
13781
13782 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13783 $as_echo_n "checking whether to build static libraries... " >&6; }
13784 # Make sure either enable_shared or enable_static is yes.
13785 test "$enable_shared" = yes || enable_static=yes
13786 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13787 $as_echo "$enable_static" >&6; }
13788
13789 GCC_F77="$G77"
13790 LD_F77="$LD"
13791
13792 lt_prog_compiler_wl_F77=
13793 lt_prog_compiler_pic_F77=
13794 lt_prog_compiler_static_F77=
13795
13796 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13797 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13798
13799   if test "$GCC" = yes; then
13800     lt_prog_compiler_wl_F77='-Wl,'
13801     lt_prog_compiler_static_F77='-static'
13802
13803     case $host_os in
13804       aix*)
13805       # All AIX code is PIC.
13806       if test "$host_cpu" = ia64; then
13807         # AIX 5 now supports IA64 processor
13808         lt_prog_compiler_static_F77='-Bstatic'
13809       fi
13810       ;;
13811
13812     amigaos*)
13813       # FIXME: we need at least 68020 code to build shared libraries, but
13814       # adding the `-m68020' flag to GCC prevents building anything better,
13815       # like `-m68040'.
13816       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13817       ;;
13818
13819     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13820       # PIC is the default for these OSes.
13821       ;;
13822
13823     mingw* | pw32* | os2*)
13824       # This hack is so that the source file can tell whether it is being
13825       # built for inclusion in a dll (and should export symbols for example).
13826       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13827       ;;
13828
13829     darwin* | rhapsody*)
13830       # PIC is the default on this platform
13831       # Common symbols not allowed in MH_DYLIB files
13832       lt_prog_compiler_pic_F77='-fno-common'
13833       ;;
13834
13835     interix3*)
13836       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13837       # Instead, we relocate shared libraries at runtime.
13838       ;;
13839
13840     msdosdjgpp*)
13841       # Just because we use GCC doesn't mean we suddenly get shared libraries
13842       # on systems that don't support them.
13843       lt_prog_compiler_can_build_shared_F77=no
13844       enable_shared=no
13845       ;;
13846
13847     sysv4*MP*)
13848       if test -d /usr/nec; then
13849         lt_prog_compiler_pic_F77=-Kconform_pic
13850       fi
13851       ;;
13852
13853     hpux*)
13854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13855       # not for PA HP-UX.
13856       case $host_cpu in
13857       hppa*64*|ia64*)
13858         # +Z the default
13859         ;;
13860       *)
13861         lt_prog_compiler_pic_F77='-fPIC'
13862         ;;
13863       esac
13864       ;;
13865
13866     *)
13867       lt_prog_compiler_pic_F77='-fPIC'
13868       ;;
13869     esac
13870   else
13871     # PORTME Check for flag to pass linker flags through the system compiler.
13872     case $host_os in
13873     aix*)
13874       lt_prog_compiler_wl_F77='-Wl,'
13875       if test "$host_cpu" = ia64; then
13876         # AIX 5 now supports IA64 processor
13877         lt_prog_compiler_static_F77='-Bstatic'
13878       else
13879         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13880       fi
13881       ;;
13882       darwin*)
13883         # PIC is the default on this platform
13884         # Common symbols not allowed in MH_DYLIB files
13885        case $cc_basename in
13886          xlc*)
13887          lt_prog_compiler_pic_F77='-qnocommon'
13888          lt_prog_compiler_wl_F77='-Wl,'
13889          ;;
13890        esac
13891        ;;
13892
13893     mingw* | pw32* | os2*)
13894       # This hack is so that the source file can tell whether it is being
13895       # built for inclusion in a dll (and should export symbols for example).
13896       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13897       ;;
13898
13899     hpux9* | hpux10* | hpux11*)
13900       lt_prog_compiler_wl_F77='-Wl,'
13901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13902       # not for PA HP-UX.
13903       case $host_cpu in
13904       hppa*64*|ia64*)
13905         # +Z the default
13906         ;;
13907       *)
13908         lt_prog_compiler_pic_F77='+Z'
13909         ;;
13910       esac
13911       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13912       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13913       ;;
13914
13915     irix5* | irix6* | nonstopux*)
13916       lt_prog_compiler_wl_F77='-Wl,'
13917       # PIC (with -KPIC) is the default.
13918       lt_prog_compiler_static_F77='-non_shared'
13919       ;;
13920
13921     newsos6)
13922       lt_prog_compiler_pic_F77='-KPIC'
13923       lt_prog_compiler_static_F77='-Bstatic'
13924       ;;
13925
13926     linux*)
13927       case $cc_basename in
13928       icc* | ecc*)
13929         lt_prog_compiler_wl_F77='-Wl,'
13930         lt_prog_compiler_pic_F77='-KPIC'
13931         lt_prog_compiler_static_F77='-static'
13932         ;;
13933       pgcc* | pgf77* | pgf90* | pgf95*)
13934         # Portland Group compilers (*not* the Pentium gcc compiler,
13935         # which looks to be a dead project)
13936         lt_prog_compiler_wl_F77='-Wl,'
13937         lt_prog_compiler_pic_F77='-fpic'
13938         lt_prog_compiler_static_F77='-Bstatic'
13939         ;;
13940       ccc*)
13941         lt_prog_compiler_wl_F77='-Wl,'
13942         # All Alpha code is PIC.
13943         lt_prog_compiler_static_F77='-non_shared'
13944         ;;
13945       esac
13946       ;;
13947
13948     osf3* | osf4* | osf5*)
13949       lt_prog_compiler_wl_F77='-Wl,'
13950       # All OSF/1 code is PIC.
13951       lt_prog_compiler_static_F77='-non_shared'
13952       ;;
13953
13954     solaris*)
13955       lt_prog_compiler_pic_F77='-KPIC'
13956       lt_prog_compiler_static_F77='-Bstatic'
13957       case $cc_basename in
13958       f77* | f90* | f95*)
13959         lt_prog_compiler_wl_F77='-Qoption ld ';;
13960       *)
13961         lt_prog_compiler_wl_F77='-Wl,';;
13962       esac
13963       ;;
13964
13965     sunos4*)
13966       lt_prog_compiler_wl_F77='-Qoption ld '
13967       lt_prog_compiler_pic_F77='-PIC'
13968       lt_prog_compiler_static_F77='-Bstatic'
13969       ;;
13970
13971     sysv4 | sysv4.2uw2* | sysv4.3*)
13972       lt_prog_compiler_wl_F77='-Wl,'
13973       lt_prog_compiler_pic_F77='-KPIC'
13974       lt_prog_compiler_static_F77='-Bstatic'
13975       ;;
13976
13977     sysv4*MP*)
13978       if test -d /usr/nec ;then
13979         lt_prog_compiler_pic_F77='-Kconform_pic'
13980         lt_prog_compiler_static_F77='-Bstatic'
13981       fi
13982       ;;
13983
13984     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13985       lt_prog_compiler_wl_F77='-Wl,'
13986       lt_prog_compiler_pic_F77='-KPIC'
13987       lt_prog_compiler_static_F77='-Bstatic'
13988       ;;
13989
13990     unicos*)
13991       lt_prog_compiler_wl_F77='-Wl,'
13992       lt_prog_compiler_can_build_shared_F77=no
13993       ;;
13994
13995     uts4*)
13996       lt_prog_compiler_pic_F77='-pic'
13997       lt_prog_compiler_static_F77='-Bstatic'
13998       ;;
13999
14000     *)
14001       lt_prog_compiler_can_build_shared_F77=no
14002       ;;
14003     esac
14004   fi
14005
14006 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14007 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14008
14009 #
14010 # Check to make sure the PIC flag actually works.
14011 #
14012 if test -n "$lt_prog_compiler_pic_F77"; then
14013
14014 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14015 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14016 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14017   $as_echo_n "(cached) " >&6
14018 else
14019   lt_prog_compiler_pic_works_F77=no
14020   ac_outfile=conftest.$ac_objext
14021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14022    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14023    # Insert the option either (1) after the last *FLAGS variable, or
14024    # (2) before a word containing "conftest.", or (3) at the end.
14025    # Note that $ac_compile itself does not contain backslashes and begins
14026    # with a dollar sign (not a hyphen), so the echo should work correctly.
14027    # The option is referenced via a variable to avoid confusing sed.
14028    lt_compile=`echo "$ac_compile" | $SED \
14029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14031    -e 's:$: $lt_compiler_flag:'`
14032    (eval echo "\"\$as_me:14032: $lt_compile\"" >&5)
14033    (eval "$lt_compile" 2>conftest.err)
14034    ac_status=$?
14035    cat conftest.err >&5
14036    echo "$as_me:14036: \$? = $ac_status" >&5
14037    if (exit $ac_status) && test -s "$ac_outfile"; then
14038      # The compiler can only warn and ignore the option if not recognized
14039      # So say no if there are warnings other than the usual output.
14040      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14041      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14043        lt_prog_compiler_pic_works_F77=yes
14044      fi
14045    fi
14046    $rm conftest*
14047
14048 fi
14049 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14050 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14051
14052 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14053     case $lt_prog_compiler_pic_F77 in
14054      "" | " "*) ;;
14055      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14056      esac
14057 else
14058     lt_prog_compiler_pic_F77=
14059      lt_prog_compiler_can_build_shared_F77=no
14060 fi
14061
14062 fi
14063 case $host_os in
14064   # For platforms which do not support PIC, -DPIC is meaningless:
14065   *djgpp*)
14066     lt_prog_compiler_pic_F77=
14067     ;;
14068   *)
14069     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14070     ;;
14071 esac
14072
14073 #
14074 # Check to make sure the static flag actually works.
14075 #
14076 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14077 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14078 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14079 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14080   $as_echo_n "(cached) " >&6
14081 else
14082   lt_prog_compiler_static_works_F77=no
14083    save_LDFLAGS="$LDFLAGS"
14084    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14085    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14086    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14087      # The linker can only warn and ignore the option if not recognized
14088      # So say no if there are warnings
14089      if test -s conftest.err; then
14090        # Append any errors to the config.log.
14091        cat conftest.err 1>&5
14092        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14093        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094        if diff conftest.exp conftest.er2 >/dev/null; then
14095          lt_prog_compiler_static_works_F77=yes
14096        fi
14097      else
14098        lt_prog_compiler_static_works_F77=yes
14099      fi
14100    fi
14101    $rm conftest*
14102    LDFLAGS="$save_LDFLAGS"
14103
14104 fi
14105 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14106 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14107
14108 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14109     :
14110 else
14111     lt_prog_compiler_static_F77=
14112 fi
14113
14114
14115 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14117 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14118   $as_echo_n "(cached) " >&6
14119 else
14120   lt_cv_prog_compiler_c_o_F77=no
14121    $rm -r conftest 2>/dev/null
14122    mkdir conftest
14123    cd conftest
14124    mkdir out
14125    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14126
14127    lt_compiler_flag="-o out/conftest2.$ac_objext"
14128    # Insert the option either (1) after the last *FLAGS variable, or
14129    # (2) before a word containing "conftest.", or (3) at the end.
14130    # Note that $ac_compile itself does not contain backslashes and begins
14131    # with a dollar sign (not a hyphen), so the echo should work correctly.
14132    lt_compile=`echo "$ac_compile" | $SED \
14133    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135    -e 's:$: $lt_compiler_flag:'`
14136    (eval echo "\"\$as_me:14136: $lt_compile\"" >&5)
14137    (eval "$lt_compile" 2>out/conftest.err)
14138    ac_status=$?
14139    cat out/conftest.err >&5
14140    echo "$as_me:14140: \$? = $ac_status" >&5
14141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14142    then
14143      # The compiler can only warn and ignore the option if not recognized
14144      # So say no if there are warnings
14145      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14146      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14147      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14148        lt_cv_prog_compiler_c_o_F77=yes
14149      fi
14150    fi
14151    chmod u+w . 2>&5
14152    $rm conftest*
14153    # SGI C++ compiler will create directory out/ii_files/ for
14154    # template instantiation
14155    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14156    $rm out/* && rmdir out
14157    cd ..
14158    rmdir conftest
14159    $rm conftest*
14160
14161 fi
14162 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14163 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14164
14165
14166 hard_links="nottested"
14167 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14168   # do not overwrite the value of need_locks provided by the user
14169   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14170 $as_echo_n "checking if we can lock with hard links... " >&6; }
14171   hard_links=yes
14172   $rm conftest*
14173   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14174   touch conftest.a
14175   ln conftest.a conftest.b 2>&5 || hard_links=no
14176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14177   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14178 $as_echo "$hard_links" >&6; }
14179   if test "$hard_links" = no; then
14180     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14181 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14182     need_locks=warn
14183   fi
14184 else
14185   need_locks=no
14186 fi
14187
14188 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14190
14191   runpath_var=
14192   allow_undefined_flag_F77=
14193   enable_shared_with_static_runtimes_F77=no
14194   archive_cmds_F77=
14195   archive_expsym_cmds_F77=
14196   old_archive_From_new_cmds_F77=
14197   old_archive_from_expsyms_cmds_F77=
14198   export_dynamic_flag_spec_F77=
14199   whole_archive_flag_spec_F77=
14200   thread_safe_flag_spec_F77=
14201   hardcode_libdir_flag_spec_F77=
14202   hardcode_libdir_flag_spec_ld_F77=
14203   hardcode_libdir_separator_F77=
14204   hardcode_direct_F77=no
14205   hardcode_minus_L_F77=no
14206   hardcode_shlibpath_var_F77=unsupported
14207   link_all_deplibs_F77=unknown
14208   hardcode_automatic_F77=no
14209   module_cmds_F77=
14210   module_expsym_cmds_F77=
14211   always_export_symbols_F77=no
14212   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14213   # include_expsyms should be a list of space-separated symbols to be *always*
14214   # included in the symbol list
14215   include_expsyms_F77=
14216   # exclude_expsyms can be an extended regexp of symbols to exclude
14217   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14218   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14219   # as well as any symbol that contains `d'.
14220   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14221   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14222   # platforms (ab)use it in PIC code, but their linkers get confused if
14223   # the symbol is explicitly referenced.  Since portable code cannot
14224   # rely on this symbol name, it's probably fine to never include it in
14225   # preloaded symbol tables.
14226   extract_expsyms_cmds=
14227   # Just being paranoid about ensuring that cc_basename is set.
14228   for cc_temp in $compiler""; do
14229   case $cc_temp in
14230     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14231     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14232     \-*) ;;
14233     *) break;;
14234   esac
14235 done
14236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14237
14238   case $host_os in
14239   cygwin* | mingw* | pw32*)
14240     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14241     # When not using gcc, we currently assume that we are using
14242     # Microsoft Visual C++.
14243     if test "$GCC" != yes; then
14244       with_gnu_ld=no
14245     fi
14246     ;;
14247   interix*)
14248     # we just hope/assume this is gcc and not c89 (= MSVC++)
14249     with_gnu_ld=yes
14250     ;;
14251   openbsd*)
14252     with_gnu_ld=no
14253     ;;
14254   esac
14255
14256   ld_shlibs_F77=yes
14257   if test "$with_gnu_ld" = yes; then
14258     # If archive_cmds runs LD, not CC, wlarc should be empty
14259     wlarc='${wl}'
14260
14261     # Set some defaults for GNU ld with shared library support. These
14262     # are reset later if shared libraries are not supported. Putting them
14263     # here allows them to be overridden if necessary.
14264     runpath_var=LD_RUN_PATH
14265     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14266     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14267     # ancient GNU ld didn't support --whole-archive et. al.
14268     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14269         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14270       else
14271         whole_archive_flag_spec_F77=
14272     fi
14273     supports_anon_versioning=no
14274     case `$LD -v 2>/dev/null` in
14275       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14276       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14277       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14278       *\ 2.11.*) ;; # other 2.11 versions
14279       *) supports_anon_versioning=yes ;;
14280     esac
14281
14282     # See if GNU ld supports shared libraries.
14283     case $host_os in
14284     aix3* | aix4* | aix5*)
14285       # On AIX/PPC, the GNU linker is very broken
14286       if test "$host_cpu" != ia64; then
14287         ld_shlibs_F77=no
14288         cat <<EOF 1>&2
14289
14290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14291 *** to be unable to reliably create shared libraries on AIX.
14292 *** Therefore, libtool is disabling shared libraries support.  If you
14293 *** really care for shared libraries, you may want to modify your PATH
14294 *** so that a non-GNU linker is found, and then restart.
14295
14296 EOF
14297       fi
14298       ;;
14299
14300     amigaos*)
14301       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)'
14302       hardcode_libdir_flag_spec_F77='-L$libdir'
14303       hardcode_minus_L_F77=yes
14304
14305       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14306       # that the semantics of dynamic libraries on AmigaOS, at least up
14307       # to version 4, is to share data among multiple programs linked
14308       # with the same dynamic library.  Since this doesn't match the
14309       # behavior of shared libraries on other platforms, we can't use
14310       # them.
14311       ld_shlibs_F77=no
14312       ;;
14313
14314     beos*)
14315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14316         allow_undefined_flag_F77=unsupported
14317         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14318         # support --undefined.  This deserves some investigation.  FIXME
14319         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320       else
14321         ld_shlibs_F77=no
14322       fi
14323       ;;
14324
14325     cygwin* | mingw* | pw32*)
14326       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14327       # as there is no search path for DLLs.
14328       hardcode_libdir_flag_spec_F77='-L$libdir'
14329       allow_undefined_flag_F77=unsupported
14330       always_export_symbols_F77=no
14331       enable_shared_with_static_runtimes_F77=yes
14332       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14333
14334       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14335         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14336         # If the export-symbols file already is a .def file (1st line
14337         # is EXPORTS), use it as is; otherwise, prepend...
14338         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14339           cp $export_symbols $output_objdir/$soname.def;
14340         else
14341           echo EXPORTS > $output_objdir/$soname.def;
14342           cat $export_symbols >> $output_objdir/$soname.def;
14343         fi~
14344         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14345       else
14346         ld_shlibs_F77=no
14347       fi
14348       ;;
14349
14350     interix3*)
14351       hardcode_direct_F77=no
14352       hardcode_shlibpath_var_F77=no
14353       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14354       export_dynamic_flag_spec_F77='${wl}-E'
14355       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14356       # Instead, shared libraries are loaded at an image base (0x10000000 by
14357       # default) and relocated if they conflict, which is a slow very memory
14358       # consuming and fragmenting process.  To avoid this, we pick a random,
14359       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14360       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14361       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'
14362       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'
14363       ;;
14364
14365     linux*)
14366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14367         tmp_addflag=
14368         case $cc_basename,$host_cpu in
14369         pgcc*)                          # Portland Group C compiler
14370           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'
14371           tmp_addflag=' $pic_flag'
14372           ;;
14373         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14374           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'
14375           tmp_addflag=' $pic_flag -Mnomain' ;;
14376         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14377           tmp_addflag=' -i_dynamic' ;;
14378         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14379           tmp_addflag=' -i_dynamic -nofor_main' ;;
14380         ifc* | ifort*)                  # Intel Fortran compiler
14381           tmp_addflag=' -nofor_main' ;;
14382         esac
14383         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14384
14385         if test $supports_anon_versioning = yes; then
14386           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14387   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14388   $echo "local: *; };" >> $output_objdir/$libname.ver~
14389           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14390         fi
14391       else
14392         ld_shlibs_F77=no
14393       fi
14394       ;;
14395
14396     netbsd*)
14397       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14398         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14399         wlarc=
14400       else
14401         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403       fi
14404       ;;
14405
14406     solaris*)
14407       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14408         ld_shlibs_F77=no
14409         cat <<EOF 1>&2
14410
14411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14412 *** create shared libraries on Solaris systems.  Therefore, libtool
14413 *** is disabling shared libraries support.  We urge you to upgrade GNU
14414 *** binutils to release 2.9.1 or newer.  Another option is to modify
14415 *** your PATH or compiler configuration so that the native linker is
14416 *** used, and then restart.
14417
14418 EOF
14419       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14420         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14421         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14422       else
14423         ld_shlibs_F77=no
14424       fi
14425       ;;
14426
14427     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14428       case `$LD -v 2>&1` in
14429         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14430         ld_shlibs_F77=no
14431         cat <<_LT_EOF 1>&2
14432
14433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14434 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14435 *** is disabling shared libraries support.  We urge you to upgrade GNU
14436 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14437 *** your PATH or compiler configuration so that the native linker is
14438 *** used, and then restart.
14439
14440 _LT_EOF
14441         ;;
14442         *)
14443           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14444             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14445             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14446             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14447           else
14448             ld_shlibs_F77=no
14449           fi
14450         ;;
14451       esac
14452       ;;
14453
14454     sunos4*)
14455       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14456       wlarc=
14457       hardcode_direct_F77=yes
14458       hardcode_shlibpath_var_F77=no
14459       ;;
14460
14461     *)
14462       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14463         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14465       else
14466         ld_shlibs_F77=no
14467       fi
14468       ;;
14469     esac
14470
14471     if test "$ld_shlibs_F77" = no; then
14472       runpath_var=
14473       hardcode_libdir_flag_spec_F77=
14474       export_dynamic_flag_spec_F77=
14475       whole_archive_flag_spec_F77=
14476     fi
14477   else
14478     # PORTME fill in a description of your system's linker (not GNU ld)
14479     case $host_os in
14480     aix3*)
14481       allow_undefined_flag_F77=unsupported
14482       always_export_symbols_F77=yes
14483       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'
14484       # Note: this linker hardcodes the directories in LIBPATH if there
14485       # are no directories specified by -L.
14486       hardcode_minus_L_F77=yes
14487       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14488         # Neither direct hardcoding nor static linking is supported with a
14489         # broken collect2.
14490         hardcode_direct_F77=unsupported
14491       fi
14492       ;;
14493
14494     aix4* | aix5*)
14495       if test "$host_cpu" = ia64; then
14496         # On IA64, the linker does run time linking by default, so we don't
14497         # have to do anything special.
14498         aix_use_runtimelinking=no
14499         exp_sym_flag='-Bexport'
14500         no_entry_flag=""
14501       else
14502         # If we're using GNU nm, then we don't want the "-C" option.
14503         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14504         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14505           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'
14506         else
14507           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'
14508         fi
14509         aix_use_runtimelinking=no
14510
14511         # Test if we are trying to use run time linking or normal
14512         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14513         # need to do runtime linking.
14514         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14515           for ld_flag in $LDFLAGS; do
14516           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14517             aix_use_runtimelinking=yes
14518             break
14519           fi
14520           done
14521           ;;
14522         esac
14523
14524         exp_sym_flag='-bexport'
14525         no_entry_flag='-bnoentry'
14526       fi
14527
14528       # When large executables or shared objects are built, AIX ld can
14529       # have problems creating the table of contents.  If linking a library
14530       # or program results in "error TOC overflow" add -mminimal-toc to
14531       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14532       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14533
14534       archive_cmds_F77=''
14535       hardcode_direct_F77=yes
14536       hardcode_libdir_separator_F77=':'
14537       link_all_deplibs_F77=yes
14538
14539       if test "$GCC" = yes; then
14540         case $host_os in aix4.[012]|aix4.[012].*)
14541         # We only want to do this on AIX 4.2 and lower, the check
14542         # below for broken collect2 doesn't work under 4.3+
14543           collect2name=`${CC} -print-prog-name=collect2`
14544           if test -f "$collect2name" && \
14545            strings "$collect2name" | grep resolve_lib_name >/dev/null
14546           then
14547           # We have reworked collect2
14548           hardcode_direct_F77=yes
14549           else
14550           # We have old collect2
14551           hardcode_direct_F77=unsupported
14552           # It fails to find uninstalled libraries when the uninstalled
14553           # path is not listed in the libpath.  Setting hardcode_minus_L
14554           # to unsupported forces relinking
14555           hardcode_minus_L_F77=yes
14556           hardcode_libdir_flag_spec_F77='-L$libdir'
14557           hardcode_libdir_separator_F77=
14558           fi
14559           ;;
14560         esac
14561         shared_flag='-shared'
14562         if test "$aix_use_runtimelinking" = yes; then
14563           shared_flag="$shared_flag "'${wl}-G'
14564         fi
14565       else
14566         # not using gcc
14567         if test "$host_cpu" = ia64; then
14568         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14569         # chokes on -Wl,-G. The following line is correct:
14570           shared_flag='-G'
14571         else
14572           if test "$aix_use_runtimelinking" = yes; then
14573             shared_flag='${wl}-G'
14574           else
14575             shared_flag='${wl}-bM:SRE'
14576           fi
14577         fi
14578       fi
14579
14580       # It seems that -bexpall does not export symbols beginning with
14581       # underscore (_), so it is better to generate a list of symbols to export.
14582       always_export_symbols_F77=yes
14583       if test "$aix_use_runtimelinking" = yes; then
14584         # Warning - without using the other runtime loading flags (-brtl),
14585         # -berok will link without error, but may produce a broken library.
14586         allow_undefined_flag_F77='-berok'
14587        # Determine the default libpath from the value encoded in an empty executable.
14588        cat >conftest.$ac_ext <<_ACEOF
14589       program main
14590
14591       end
14592 _ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14600 $as_echo "$ac_try_echo") >&5
14601   (eval "$ac_link") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } && {
14608          test -z "$ac_f77_werror_flag" ||
14609          test ! -s conftest.err
14610        } && test -s conftest$ac_exeext && {
14611          test "$cross_compiling" = yes ||
14612          $as_test_x conftest$ac_exeext
14613        }; then
14614
14615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14616 }'`
14617 # Check for a 64-bit object if we didn't find anything.
14618 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14619 }'`; fi
14620 else
14621   $as_echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624
14625 fi
14626
14627 rm -rf conftest.dSYM
14628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629       conftest$ac_exeext conftest.$ac_ext
14630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14631
14632        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14633         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"
14634        else
14635         if test "$host_cpu" = ia64; then
14636           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14637           allow_undefined_flag_F77="-z nodefs"
14638           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"
14639         else
14640          # Determine the default libpath from the value encoded in an empty executable.
14641          cat >conftest.$ac_ext <<_ACEOF
14642       program main
14643
14644       end
14645 _ACEOF
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14653 $as_echo "$ac_try_echo") >&5
14654   (eval "$ac_link") 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } && {
14661          test -z "$ac_f77_werror_flag" ||
14662          test ! -s conftest.err
14663        } && test -s conftest$ac_exeext && {
14664          test "$cross_compiling" = yes ||
14665          $as_test_x conftest$ac_exeext
14666        }; then
14667
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14669 }'`
14670 # Check for a 64-bit object if we didn't find anything.
14671 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14672 }'`; fi
14673 else
14674   $as_echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677
14678 fi
14679
14680 rm -rf conftest.dSYM
14681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14682       conftest$ac_exeext conftest.$ac_ext
14683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14684
14685          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14686           # Warning - without using the other run time loading flags,
14687           # -berok will link without error, but may produce a broken library.
14688           no_undefined_flag_F77=' ${wl}-bernotok'
14689           allow_undefined_flag_F77=' ${wl}-berok'
14690           # Exported symbols can be pulled into shared objects from archives
14691           whole_archive_flag_spec_F77='$convenience'
14692           archive_cmds_need_lc_F77=yes
14693           # This is similar to how AIX traditionally builds its shared libraries.
14694           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'
14695         fi
14696       fi
14697       ;;
14698
14699     amigaos*)
14700       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)'
14701       hardcode_libdir_flag_spec_F77='-L$libdir'
14702       hardcode_minus_L_F77=yes
14703       # see comment about different semantics on the GNU ld section
14704       ld_shlibs_F77=no
14705       ;;
14706
14707     bsdi[45]*)
14708       export_dynamic_flag_spec_F77=-rdynamic
14709       ;;
14710
14711     cygwin* | mingw* | pw32*)
14712       # When not using gcc, we currently assume that we are using
14713       # Microsoft Visual C++.
14714       # hardcode_libdir_flag_spec is actually meaningless, as there is
14715       # no search path for DLLs.
14716       hardcode_libdir_flag_spec_F77=' '
14717       allow_undefined_flag_F77=unsupported
14718       # Tell ltmain to make .lib files, not .a files.
14719       libext=lib
14720       # Tell ltmain to make .dll files, not .so files.
14721       shrext_cmds=".dll"
14722       # FIXME: Setting linknames here is a bad hack.
14723       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14724       # The linker will automatically build a .lib file if we build a DLL.
14725       old_archive_From_new_cmds_F77='true'
14726       # FIXME: Should let the user specify the lib program.
14727       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14728       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14729       enable_shared_with_static_runtimes_F77=yes
14730       ;;
14731
14732     darwin* | rhapsody*)
14733       case $host_os in
14734         rhapsody* | darwin1.[012])
14735          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14736          ;;
14737        *) # Darwin 1.3 on
14738          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14739            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14740          else
14741            case ${MACOSX_DEPLOYMENT_TARGET} in
14742              10.[012])
14743                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14744                ;;
14745              10.*)
14746                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14747                ;;
14748            esac
14749          fi
14750          ;;
14751       esac
14752       archive_cmds_need_lc_F77=no
14753       hardcode_direct_F77=no
14754       hardcode_automatic_F77=yes
14755       hardcode_shlibpath_var_F77=unsupported
14756       whole_archive_flag_spec_F77=''
14757       link_all_deplibs_F77=yes
14758     if test "$GCC" = yes ; then
14759         output_verbose_link_cmd='echo'
14760         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14761       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14762       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14763       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14764       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}'
14765     else
14766       case $cc_basename in
14767         xlc*)
14768          output_verbose_link_cmd='echo'
14769          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14770          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14771           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14772          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14773           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}'
14774           ;;
14775        *)
14776          ld_shlibs_F77=no
14777           ;;
14778       esac
14779     fi
14780       ;;
14781
14782     dgux*)
14783       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14784       hardcode_libdir_flag_spec_F77='-L$libdir'
14785       hardcode_shlibpath_var_F77=no
14786       ;;
14787
14788     freebsd1*)
14789       ld_shlibs_F77=no
14790       ;;
14791
14792     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14793     # support.  Future versions do this automatically, but an explicit c++rt0.o
14794     # does not break anything, and helps significantly (at the cost of a little
14795     # extra space).
14796     freebsd2.2*)
14797       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14798       hardcode_libdir_flag_spec_F77='-R$libdir'
14799       hardcode_direct_F77=yes
14800       hardcode_shlibpath_var_F77=no
14801       ;;
14802
14803     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14804     freebsd2*)
14805       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14806       hardcode_direct_F77=yes
14807       hardcode_minus_L_F77=yes
14808       hardcode_shlibpath_var_F77=no
14809       ;;
14810
14811     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14812     freebsd* | kfreebsd*-gnu | dragonfly*)
14813       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14814       hardcode_libdir_flag_spec_F77='-R$libdir'
14815       hardcode_direct_F77=yes
14816       hardcode_shlibpath_var_F77=no
14817       ;;
14818
14819     hpux9*)
14820       if test "$GCC" = yes; then
14821         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'
14822       else
14823         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'
14824       fi
14825       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14826       hardcode_libdir_separator_F77=:
14827       hardcode_direct_F77=yes
14828
14829       # hardcode_minus_L: Not really in the search PATH,
14830       # but as the default location of the library.
14831       hardcode_minus_L_F77=yes
14832       export_dynamic_flag_spec_F77='${wl}-E'
14833       ;;
14834
14835     hpux10*)
14836       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14837         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14838       else
14839         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14840       fi
14841       if test "$with_gnu_ld" = no; then
14842         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14843         hardcode_libdir_separator_F77=:
14844
14845         hardcode_direct_F77=yes
14846         export_dynamic_flag_spec_F77='${wl}-E'
14847
14848         # hardcode_minus_L: Not really in the search PATH,
14849         # but as the default location of the library.
14850         hardcode_minus_L_F77=yes
14851       fi
14852       ;;
14853
14854     hpux11*)
14855       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14856         case $host_cpu in
14857         hppa*64*)
14858           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14859           ;;
14860         ia64*)
14861           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14862           ;;
14863         *)
14864           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14865           ;;
14866         esac
14867       else
14868         case $host_cpu in
14869         hppa*64*)
14870           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14871           ;;
14872         ia64*)
14873           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14874           ;;
14875         *)
14876           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14877           ;;
14878         esac
14879       fi
14880       if test "$with_gnu_ld" = no; then
14881         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14882         hardcode_libdir_separator_F77=:
14883
14884         case $host_cpu in
14885         hppa*64*|ia64*)
14886           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14887           hardcode_direct_F77=no
14888           hardcode_shlibpath_var_F77=no
14889           ;;
14890         *)
14891           hardcode_direct_F77=yes
14892           export_dynamic_flag_spec_F77='${wl}-E'
14893
14894           # hardcode_minus_L: Not really in the search PATH,
14895           # but as the default location of the library.
14896           hardcode_minus_L_F77=yes
14897           ;;
14898         esac
14899       fi
14900       ;;
14901
14902     irix5* | irix6* | nonstopux*)
14903       if test "$GCC" = yes; then
14904         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'
14905       else
14906         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'
14907         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14908       fi
14909       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14910       hardcode_libdir_separator_F77=:
14911       link_all_deplibs_F77=yes
14912       ;;
14913
14914     netbsd*)
14915       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14916         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14917       else
14918         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14919       fi
14920       hardcode_libdir_flag_spec_F77='-R$libdir'
14921       hardcode_direct_F77=yes
14922       hardcode_shlibpath_var_F77=no
14923       ;;
14924
14925     newsos6)
14926       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14927       hardcode_direct_F77=yes
14928       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14929       hardcode_libdir_separator_F77=:
14930       hardcode_shlibpath_var_F77=no
14931       ;;
14932
14933     openbsd*)
14934       hardcode_direct_F77=yes
14935       hardcode_shlibpath_var_F77=no
14936       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14937         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14938         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14939         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14940         export_dynamic_flag_spec_F77='${wl}-E'
14941       else
14942        case $host_os in
14943          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14944            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14945            hardcode_libdir_flag_spec_F77='-R$libdir'
14946            ;;
14947          *)
14948            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14949            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14950            ;;
14951        esac
14952       fi
14953       ;;
14954
14955     os2*)
14956       hardcode_libdir_flag_spec_F77='-L$libdir'
14957       hardcode_minus_L_F77=yes
14958       allow_undefined_flag_F77=unsupported
14959       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'
14960       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14961       ;;
14962
14963     osf3*)
14964       if test "$GCC" = yes; then
14965         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14966         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'
14967       else
14968         allow_undefined_flag_F77=' -expect_unresolved \*'
14969         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'
14970       fi
14971       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14972       hardcode_libdir_separator_F77=:
14973       ;;
14974
14975     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14976       if test "$GCC" = yes; then
14977         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14978         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'
14979         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14980       else
14981         allow_undefined_flag_F77=' -expect_unresolved \*'
14982         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'
14983         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~
14984         $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'
14985
14986         # Both c and cxx compiler support -rpath directly
14987         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14988       fi
14989       hardcode_libdir_separator_F77=:
14990       ;;
14991
14992     solaris*)
14993       no_undefined_flag_F77=' -z text'
14994       if test "$GCC" = yes; then
14995         wlarc='${wl}'
14996         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14997         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14998           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14999       else
15000         wlarc=''
15001         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15003         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15004       fi
15005       hardcode_libdir_flag_spec_F77='-R$libdir'
15006       hardcode_shlibpath_var_F77=no
15007       case $host_os in
15008       solaris2.[0-5] | solaris2.[0-5].*) ;;
15009       *)
15010         # The compiler driver will combine linker options so we
15011         # cannot just pass the convience library names through
15012         # without $wl, iff we do not link with $LD.
15013         # Luckily, gcc supports the same syntax we need for Sun Studio.
15014         # Supported since Solaris 2.6 (maybe 2.5.1?)
15015         case $wlarc in
15016         '')
15017           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15018         *)
15019           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15020         esac ;;
15021       esac
15022       link_all_deplibs_F77=yes
15023       ;;
15024
15025     sunos4*)
15026       if test "x$host_vendor" = xsequent; then
15027         # Use $CC to link under sequent, because it throws in some extra .o
15028         # files that make .init and .fini sections work.
15029         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15030       else
15031         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15032       fi
15033       hardcode_libdir_flag_spec_F77='-L$libdir'
15034       hardcode_direct_F77=yes
15035       hardcode_minus_L_F77=yes
15036       hardcode_shlibpath_var_F77=no
15037       ;;
15038
15039     sysv4)
15040       case $host_vendor in
15041         sni)
15042           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043           hardcode_direct_F77=yes # is this really true???
15044         ;;
15045         siemens)
15046           ## LD is ld it makes a PLAMLIB
15047           ## CC just makes a GrossModule.
15048           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15049           reload_cmds_F77='$CC -r -o $output$reload_objs'
15050           hardcode_direct_F77=no
15051         ;;
15052         motorola)
15053           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15055         ;;
15056       esac
15057       runpath_var='LD_RUN_PATH'
15058       hardcode_shlibpath_var_F77=no
15059       ;;
15060
15061     sysv4.3*)
15062       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063       hardcode_shlibpath_var_F77=no
15064       export_dynamic_flag_spec_F77='-Bexport'
15065       ;;
15066
15067     sysv4*MP*)
15068       if test -d /usr/nec; then
15069         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070         hardcode_shlibpath_var_F77=no
15071         runpath_var=LD_RUN_PATH
15072         hardcode_runpath_var=yes
15073         ld_shlibs_F77=yes
15074       fi
15075       ;;
15076
15077     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15078       no_undefined_flag_F77='${wl}-z,text'
15079       archive_cmds_need_lc_F77=no
15080       hardcode_shlibpath_var_F77=no
15081       runpath_var='LD_RUN_PATH'
15082
15083       if test "$GCC" = yes; then
15084         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15086       else
15087         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15088         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089       fi
15090       ;;
15091
15092     sysv5* | sco3.2v5* | sco5v6*)
15093       # Note: We can NOT use -z defs as we might desire, because we do not
15094       # link with -lc, and that would cause any symbols used from libc to
15095       # always be unresolved, which means just about no library would
15096       # ever link correctly.  If we're not using GNU ld we use -z text
15097       # though, which does catch some bad symbols but isn't as heavy-handed
15098       # as -z defs.
15099       no_undefined_flag_F77='${wl}-z,text'
15100       allow_undefined_flag_F77='${wl}-z,nodefs'
15101       archive_cmds_need_lc_F77=no
15102       hardcode_shlibpath_var_F77=no
15103       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15104       hardcode_libdir_separator_F77=':'
15105       link_all_deplibs_F77=yes
15106       export_dynamic_flag_spec_F77='${wl}-Bexport'
15107       runpath_var='LD_RUN_PATH'
15108
15109       if test "$GCC" = yes; then
15110         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15111         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15112       else
15113         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15114         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15115       fi
15116       ;;
15117
15118     uts4*)
15119       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120       hardcode_libdir_flag_spec_F77='-L$libdir'
15121       hardcode_shlibpath_var_F77=no
15122       ;;
15123
15124     *)
15125       ld_shlibs_F77=no
15126       ;;
15127     esac
15128   fi
15129
15130 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15131 $as_echo "$ld_shlibs_F77" >&6; }
15132 test "$ld_shlibs_F77" = no && can_build_shared=no
15133
15134 #
15135 # Do we need to explicitly link libc?
15136 #
15137 case "x$archive_cmds_need_lc_F77" in
15138 x|xyes)
15139   # Assume -lc should be added
15140   archive_cmds_need_lc_F77=yes
15141
15142   if test "$enable_shared" = yes && test "$GCC" = yes; then
15143     case $archive_cmds_F77 in
15144     *'~'*)
15145       # FIXME: we may have to deal with multi-command sequences.
15146       ;;
15147     '$CC '*)
15148       # Test whether the compiler implicitly links with -lc since on some
15149       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150       # to ld, don't add -lc before -lgcc.
15151       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15153       $rm conftest*
15154       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15155
15156       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157   (eval $ac_compile) 2>&5
15158   ac_status=$?
15159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); } 2>conftest.err; then
15161         soname=conftest
15162         lib=conftest
15163         libobjs=conftest.$ac_objext
15164         deplibs=
15165         wl=$lt_prog_compiler_wl_F77
15166         pic_flag=$lt_prog_compiler_pic_F77
15167         compiler_flags=-v
15168         linker_flags=-v
15169         verstring=
15170         output_objdir=.
15171         libname=conftest
15172         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15173         allow_undefined_flag_F77=
15174         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15175   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15176   ac_status=$?
15177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }
15179         then
15180           archive_cmds_need_lc_F77=no
15181         else
15182           archive_cmds_need_lc_F77=yes
15183         fi
15184         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15185       else
15186         cat conftest.err 1>&5
15187       fi
15188       $rm conftest*
15189       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15190 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15191       ;;
15192     esac
15193   fi
15194   ;;
15195 esac
15196
15197 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15199 library_names_spec=
15200 libname_spec='lib$name'
15201 soname_spec=
15202 shrext_cmds=".so"
15203 postinstall_cmds=
15204 postuninstall_cmds=
15205 finish_cmds=
15206 finish_eval=
15207 shlibpath_var=
15208 shlibpath_overrides_runpath=unknown
15209 version_type=none
15210 dynamic_linker="$host_os ld.so"
15211 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15212 if test "$GCC" = yes; then
15213   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15214   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15215     # if the path contains ";" then we assume it to be the separator
15216     # otherwise default to the standard path separator (i.e. ":") - it is
15217     # assumed that no part of a normal pathname contains ";" but that should
15218     # okay in the real world where ";" in dirpaths is itself problematic.
15219     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15220   else
15221     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15222   fi
15223 else
15224   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15225 fi
15226 need_lib_prefix=unknown
15227 hardcode_into_libs=no
15228
15229 # when you set need_version to no, make sure it does not cause -set_version
15230 # flags to be left without arguments
15231 need_version=unknown
15232
15233 case $host_os in
15234 aix3*)
15235   version_type=linux
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15237   shlibpath_var=LIBPATH
15238
15239   # AIX 3 has no versioning support, so we append a major version to the name.
15240   soname_spec='${libname}${release}${shared_ext}$major'
15241   ;;
15242
15243 aix4* | aix5*)
15244   version_type=linux
15245   need_lib_prefix=no
15246   need_version=no
15247   hardcode_into_libs=yes
15248   if test "$host_cpu" = ia64; then
15249     # AIX 5 supports IA64
15250     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15251     shlibpath_var=LD_LIBRARY_PATH
15252   else
15253     # With GCC up to 2.95.x, collect2 would create an import file
15254     # for dependence libraries.  The import file would start with
15255     # the line `#! .'.  This would cause the generated library to
15256     # depend on `.', always an invalid library.  This was fixed in
15257     # development snapshots of GCC prior to 3.0.
15258     case $host_os in
15259       aix4 | aix4.[01] | aix4.[01].*)
15260       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15261            echo ' yes '
15262            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15263         :
15264       else
15265         can_build_shared=no
15266       fi
15267       ;;
15268     esac
15269     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15270     # soname into executable. Probably we can add versioning support to
15271     # collect2, so additional links can be useful in future.
15272     if test "$aix_use_runtimelinking" = yes; then
15273       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15274       # instead of lib<name>.a to let people know that these are not
15275       # typical AIX shared libraries.
15276       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277     else
15278       # We preserve .a as extension for shared libraries through AIX4.2
15279       # and later when we are not doing run time linking.
15280       library_names_spec='${libname}${release}.a $libname.a'
15281       soname_spec='${libname}${release}${shared_ext}$major'
15282     fi
15283     shlibpath_var=LIBPATH
15284   fi
15285   ;;
15286
15287 amigaos*)
15288   library_names_spec='$libname.ixlibrary $libname.a'
15289   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15290   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'
15291   ;;
15292
15293 beos*)
15294   library_names_spec='${libname}${shared_ext}'
15295   dynamic_linker="$host_os ld.so"
15296   shlibpath_var=LIBRARY_PATH
15297   ;;
15298
15299 bsdi[45]*)
15300   version_type=linux
15301   need_version=no
15302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303   soname_spec='${libname}${release}${shared_ext}$major'
15304   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15305   shlibpath_var=LD_LIBRARY_PATH
15306   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15307   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15308   # the default ld.so.conf also contains /usr/contrib/lib and
15309   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15310   # libtool to hard-code these into programs
15311   ;;
15312
15313 cygwin* | mingw* | pw32*)
15314   version_type=windows
15315   shrext_cmds=".dll"
15316   need_version=no
15317   need_lib_prefix=no
15318
15319   case $GCC,$host_os in
15320   yes,cygwin* | yes,mingw* | yes,pw32*)
15321     library_names_spec='$libname.dll.a'
15322     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15323     postinstall_cmds='base_file=`basename \${file}`~
15324       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15325       dldir=$destdir/`dirname \$dlpath`~
15326       test -d \$dldir || mkdir -p \$dldir~
15327       $install_prog $dir/$dlname \$dldir/$dlname~
15328       chmod a+x \$dldir/$dlname'
15329     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15330       dlpath=$dir/\$dldll~
15331        $rm \$dlpath'
15332     shlibpath_overrides_runpath=yes
15333
15334     case $host_os in
15335     cygwin*)
15336       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15337       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15339       ;;
15340     mingw*)
15341       # MinGW DLLs use traditional 'lib' prefix
15342       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15343       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15345         # It is most probably a Windows format PATH printed by
15346         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15347         # path with ; separators, and with drive letters. We can handle the
15348         # drive letters (cygwin fileutils understands them), so leave them,
15349         # especially as we might pass files found there to a mingw objdump,
15350         # which wouldn't understand a cygwinified path. Ahh.
15351         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15352       else
15353         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15354       fi
15355       ;;
15356     pw32*)
15357       # pw32 DLLs use 'pw' prefix rather than 'lib'
15358       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15359       ;;
15360     esac
15361     ;;
15362
15363   *)
15364     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15365     ;;
15366   esac
15367   dynamic_linker='Win32 ld.exe'
15368   # FIXME: first we should search . and the directory the executable is in
15369   shlibpath_var=PATH
15370   ;;
15371
15372 darwin* | rhapsody*)
15373   dynamic_linker="$host_os dyld"
15374   version_type=darwin
15375   need_lib_prefix=no
15376   need_version=no
15377   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15378   soname_spec='${libname}${release}${major}$shared_ext'
15379   shlibpath_overrides_runpath=yes
15380   shlibpath_var=DYLD_LIBRARY_PATH
15381   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15382   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15383   if test "$GCC" = yes; then
15384     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15385   else
15386     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15387   fi
15388   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15389   ;;
15390
15391 dgux*)
15392   version_type=linux
15393   need_lib_prefix=no
15394   need_version=no
15395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15396   soname_spec='${libname}${release}${shared_ext}$major'
15397   shlibpath_var=LD_LIBRARY_PATH
15398   ;;
15399
15400 freebsd1*)
15401   dynamic_linker=no
15402   ;;
15403
15404 kfreebsd*-gnu)
15405   version_type=linux
15406   need_lib_prefix=no
15407   need_version=no
15408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409   soname_spec='${libname}${release}${shared_ext}$major'
15410   shlibpath_var=LD_LIBRARY_PATH
15411   shlibpath_overrides_runpath=no
15412   hardcode_into_libs=yes
15413   dynamic_linker='GNU ld.so'
15414   ;;
15415
15416 freebsd* | dragonfly*)
15417   # DragonFly does not have aout.  When/if they implement a new
15418   # versioning mechanism, adjust this.
15419   if test -x /usr/bin/objformat; then
15420     objformat=`/usr/bin/objformat`
15421   else
15422     case $host_os in
15423     freebsd[123]*) objformat=aout ;;
15424     *) objformat=elf ;;
15425     esac
15426   fi
15427   version_type=freebsd-$objformat
15428   case $version_type in
15429     freebsd-elf*)
15430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15431       need_version=no
15432       need_lib_prefix=no
15433       ;;
15434     freebsd-*)
15435       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15436       need_version=yes
15437       ;;
15438   esac
15439   shlibpath_var=LD_LIBRARY_PATH
15440   case $host_os in
15441   freebsd2*)
15442     shlibpath_overrides_runpath=yes
15443     ;;
15444   freebsd3.[01]* | freebsdelf3.[01]*)
15445     shlibpath_overrides_runpath=yes
15446     hardcode_into_libs=yes
15447     ;;
15448   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15449   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15450     shlibpath_overrides_runpath=no
15451     hardcode_into_libs=yes
15452     ;;
15453   freebsd*) # from 4.6 on
15454     shlibpath_overrides_runpath=yes
15455     hardcode_into_libs=yes
15456     ;;
15457   esac
15458   ;;
15459
15460 gnu*)
15461   version_type=linux
15462   need_lib_prefix=no
15463   need_version=no
15464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15465   soname_spec='${libname}${release}${shared_ext}$major'
15466   shlibpath_var=LD_LIBRARY_PATH
15467   hardcode_into_libs=yes
15468   ;;
15469
15470 hpux9* | hpux10* | hpux11*)
15471   # Give a soname corresponding to the major version so that dld.sl refuses to
15472   # link against other versions.
15473   version_type=sunos
15474   need_lib_prefix=no
15475   need_version=no
15476   case $host_cpu in
15477   ia64*)
15478     shrext_cmds='.so'
15479     hardcode_into_libs=yes
15480     dynamic_linker="$host_os dld.so"
15481     shlibpath_var=LD_LIBRARY_PATH
15482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484     soname_spec='${libname}${release}${shared_ext}$major'
15485     if test "X$HPUX_IA64_MODE" = X32; then
15486       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15487     else
15488       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15489     fi
15490     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15491     ;;
15492    hppa*64*)
15493      shrext_cmds='.sl'
15494      hardcode_into_libs=yes
15495      dynamic_linker="$host_os dld.sl"
15496      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15497      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15498      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499      soname_spec='${libname}${release}${shared_ext}$major'
15500      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15501      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15502      ;;
15503    *)
15504     shrext_cmds='.sl'
15505     dynamic_linker="$host_os dld.sl"
15506     shlibpath_var=SHLIB_PATH
15507     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509     soname_spec='${libname}${release}${shared_ext}$major'
15510     ;;
15511   esac
15512   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15513   postinstall_cmds='chmod 555 $lib'
15514   ;;
15515
15516 interix3*)
15517   version_type=linux
15518   need_lib_prefix=no
15519   need_version=no
15520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15521   soname_spec='${libname}${release}${shared_ext}$major'
15522   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15523   shlibpath_var=LD_LIBRARY_PATH
15524   shlibpath_overrides_runpath=no
15525   hardcode_into_libs=yes
15526   ;;
15527
15528 irix5* | irix6* | nonstopux*)
15529   case $host_os in
15530     nonstopux*) version_type=nonstopux ;;
15531     *)
15532         if test "$lt_cv_prog_gnu_ld" = yes; then
15533                 version_type=linux
15534         else
15535                 version_type=irix
15536         fi ;;
15537   esac
15538   need_lib_prefix=no
15539   need_version=no
15540   soname_spec='${libname}${release}${shared_ext}$major'
15541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15542   case $host_os in
15543   irix5* | nonstopux*)
15544     libsuff= shlibsuff=
15545     ;;
15546   *)
15547     case $LD in # libtool.m4 will add one of these switches to LD
15548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15549       libsuff= shlibsuff= libmagic=32-bit;;
15550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15551       libsuff=32 shlibsuff=N32 libmagic=N32;;
15552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15554     *) libsuff= shlibsuff= libmagic=never-match;;
15555     esac
15556     ;;
15557   esac
15558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15559   shlibpath_overrides_runpath=no
15560   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15561   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15562   hardcode_into_libs=yes
15563   ;;
15564
15565 # No shared lib support for Linux oldld, aout, or coff.
15566 linux*oldld* | linux*aout* | linux*coff*)
15567   dynamic_linker=no
15568   ;;
15569
15570 # This must be Linux ELF.
15571 linux*)
15572   version_type=linux
15573   need_lib_prefix=no
15574   need_version=no
15575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576   soname_spec='${libname}${release}${shared_ext}$major'
15577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   shlibpath_overrides_runpath=no
15580   # This implies no fast_install, which is unacceptable.
15581   # Some rework will be needed to allow for fast_install
15582   # before this can be enabled.
15583   hardcode_into_libs=yes
15584
15585   # find out which ABI we are using
15586   libsuff=
15587   case "$host_cpu" in
15588   x86_64*|s390x*|powerpc64*)
15589     echo '#line 15589 "configure"' > conftest.$ac_ext
15590     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591   (eval $ac_compile) 2>&5
15592   ac_status=$?
15593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; then
15595       case `/usr/bin/file conftest.$ac_objext` in
15596       *64-bit*)
15597         libsuff=64
15598         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15599         ;;
15600       esac
15601     fi
15602     rm -rf conftest*
15603     ;;
15604   esac
15605
15606   # Append ld.so.conf contents to the search path
15607   if test -f /etc/ld.so.conf; then
15608     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15609     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15610   fi
15611
15612   # We used to test for /lib/ld.so.1 and disable shared libraries on
15613   # powerpc, because MkLinux only supported shared libraries with the
15614   # GNU dynamic linker.  Since this was broken with cross compilers,
15615   # most powerpc-linux boxes support dynamic linking these days and
15616   # people can always --disable-shared, the test was removed, and we
15617   # assume the GNU/Linux dynamic linker is in use.
15618   dynamic_linker='GNU/Linux ld.so'
15619   ;;
15620
15621 knetbsd*-gnu)
15622   version_type=linux
15623   need_lib_prefix=no
15624   need_version=no
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15626   soname_spec='${libname}${release}${shared_ext}$major'
15627   shlibpath_var=LD_LIBRARY_PATH
15628   shlibpath_overrides_runpath=no
15629   hardcode_into_libs=yes
15630   dynamic_linker='GNU ld.so'
15631   ;;
15632
15633 netbsd*)
15634   version_type=sunos
15635   need_lib_prefix=no
15636   need_version=no
15637   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15640     dynamic_linker='NetBSD (a.out) ld.so'
15641   else
15642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15643     soname_spec='${libname}${release}${shared_ext}$major'
15644     dynamic_linker='NetBSD ld.elf_so'
15645   fi
15646   shlibpath_var=LD_LIBRARY_PATH
15647   shlibpath_overrides_runpath=yes
15648   hardcode_into_libs=yes
15649   ;;
15650
15651 newsos6)
15652   version_type=linux
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654   shlibpath_var=LD_LIBRARY_PATH
15655   shlibpath_overrides_runpath=yes
15656   ;;
15657
15658 nto-qnx*)
15659   version_type=linux
15660   need_lib_prefix=no
15661   need_version=no
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663   soname_spec='${libname}${release}${shared_ext}$major'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   shlibpath_overrides_runpath=yes
15666   ;;
15667
15668 openbsd*)
15669   version_type=sunos
15670   sys_lib_dlsearch_path_spec="/usr/lib"
15671   need_lib_prefix=no
15672   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15673   case $host_os in
15674     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15675     *)                         need_version=no  ;;
15676   esac
15677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15678   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15679   shlibpath_var=LD_LIBRARY_PATH
15680   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15681     case $host_os in
15682       openbsd2.[89] | openbsd2.[89].*)
15683         shlibpath_overrides_runpath=no
15684         ;;
15685       *)
15686         shlibpath_overrides_runpath=yes
15687         ;;
15688       esac
15689   else
15690     shlibpath_overrides_runpath=yes
15691   fi
15692   ;;
15693
15694 os2*)
15695   libname_spec='$name'
15696   shrext_cmds=".dll"
15697   need_lib_prefix=no
15698   library_names_spec='$libname${shared_ext} $libname.a'
15699   dynamic_linker='OS/2 ld.exe'
15700   shlibpath_var=LIBPATH
15701   ;;
15702
15703 osf3* | osf4* | osf5*)
15704   version_type=osf
15705   need_lib_prefix=no
15706   need_version=no
15707   soname_spec='${libname}${release}${shared_ext}$major'
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15711   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15712   ;;
15713
15714 solaris*)
15715   version_type=linux
15716   need_lib_prefix=no
15717   need_version=no
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719   soname_spec='${libname}${release}${shared_ext}$major'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   shlibpath_overrides_runpath=yes
15722   hardcode_into_libs=yes
15723   # ldd complains unless libraries are executable
15724   postinstall_cmds='chmod +x $lib'
15725   ;;
15726
15727 sunos4*)
15728   version_type=sunos
15729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15730   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15731   shlibpath_var=LD_LIBRARY_PATH
15732   shlibpath_overrides_runpath=yes
15733   if test "$with_gnu_ld" = yes; then
15734     need_lib_prefix=no
15735   fi
15736   need_version=yes
15737   ;;
15738
15739 sysv4 | sysv4.3*)
15740   version_type=linux
15741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742   soname_spec='${libname}${release}${shared_ext}$major'
15743   shlibpath_var=LD_LIBRARY_PATH
15744   case $host_vendor in
15745     sni)
15746       shlibpath_overrides_runpath=no
15747       need_lib_prefix=no
15748       export_dynamic_flag_spec='${wl}-Blargedynsym'
15749       runpath_var=LD_RUN_PATH
15750       ;;
15751     siemens)
15752       need_lib_prefix=no
15753       ;;
15754     motorola)
15755       need_lib_prefix=no
15756       need_version=no
15757       shlibpath_overrides_runpath=no
15758       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15759       ;;
15760   esac
15761   ;;
15762
15763 sysv4*MP*)
15764   if test -d /usr/nec ;then
15765     version_type=linux
15766     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15767     soname_spec='$libname${shared_ext}.$major'
15768     shlibpath_var=LD_LIBRARY_PATH
15769   fi
15770   ;;
15771
15772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15773   version_type=freebsd-elf
15774   need_lib_prefix=no
15775   need_version=no
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15777   soname_spec='${libname}${release}${shared_ext}$major'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   hardcode_into_libs=yes
15780   if test "$with_gnu_ld" = yes; then
15781     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15782     shlibpath_overrides_runpath=no
15783   else
15784     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15785     shlibpath_overrides_runpath=yes
15786     case $host_os in
15787       sco3.2v5*)
15788         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15789         ;;
15790     esac
15791   fi
15792   sys_lib_dlsearch_path_spec='/usr/lib'
15793   ;;
15794
15795 uts4*)
15796   version_type=linux
15797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798   soname_spec='${libname}${release}${shared_ext}$major'
15799   shlibpath_var=LD_LIBRARY_PATH
15800   ;;
15801
15802 *)
15803   dynamic_linker=no
15804   ;;
15805 esac
15806 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15807 $as_echo "$dynamic_linker" >&6; }
15808 test "$dynamic_linker" = no && can_build_shared=no
15809
15810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15811 if test "$GCC" = yes; then
15812   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15813 fi
15814
15815 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15817 hardcode_action_F77=
15818 if test -n "$hardcode_libdir_flag_spec_F77" || \
15819    test -n "$runpath_var_F77" || \
15820    test "X$hardcode_automatic_F77" = "Xyes" ; then
15821
15822   # We can hardcode non-existant directories.
15823   if test "$hardcode_direct_F77" != no &&
15824      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15825      # have to relink, otherwise we might link with an installed library
15826      # when we should be linking with a yet-to-be-installed one
15827      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15828      test "$hardcode_minus_L_F77" != no; then
15829     # Linking always hardcodes the temporary library directory.
15830     hardcode_action_F77=relink
15831   else
15832     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15833     hardcode_action_F77=immediate
15834   fi
15835 else
15836   # We cannot hardcode anything, or else we can only hardcode existing
15837   # directories.
15838   hardcode_action_F77=unsupported
15839 fi
15840 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15841 $as_echo "$hardcode_action_F77" >&6; }
15842
15843 if test "$hardcode_action_F77" = relink; then
15844   # Fast installation is not supported
15845   enable_fast_install=no
15846 elif test "$shlibpath_overrides_runpath" = yes ||
15847      test "$enable_shared" = no; then
15848   # Fast installation is not necessary
15849   enable_fast_install=needless
15850 fi
15851
15852
15853 # The else clause should only fire when bootstrapping the
15854 # libtool distribution, otherwise you forgot to ship ltmain.sh
15855 # with your package, and you will get complaints that there are
15856 # no rules to generate ltmain.sh.
15857 if test -f "$ltmain"; then
15858   # See if we are running on zsh, and set the options which allow our commands through
15859   # without removal of \ escapes.
15860   if test -n "${ZSH_VERSION+set}" ; then
15861     setopt NO_GLOB_SUBST
15862   fi
15863   # Now quote all the things that may contain metacharacters while being
15864   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15865   # variables and quote the copies for generation of the libtool script.
15866   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15867     SED SHELL STRIP \
15868     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15869     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15870     deplibs_check_method reload_flag reload_cmds need_locks \
15871     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15872     lt_cv_sys_global_symbol_to_c_name_address \
15873     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15874     old_postinstall_cmds old_postuninstall_cmds \
15875     compiler_F77 \
15876     CC_F77 \
15877     LD_F77 \
15878     lt_prog_compiler_wl_F77 \
15879     lt_prog_compiler_pic_F77 \
15880     lt_prog_compiler_static_F77 \
15881     lt_prog_compiler_no_builtin_flag_F77 \
15882     export_dynamic_flag_spec_F77 \
15883     thread_safe_flag_spec_F77 \
15884     whole_archive_flag_spec_F77 \
15885     enable_shared_with_static_runtimes_F77 \
15886     old_archive_cmds_F77 \
15887     old_archive_from_new_cmds_F77 \
15888     predep_objects_F77 \
15889     postdep_objects_F77 \
15890     predeps_F77 \
15891     postdeps_F77 \
15892     compiler_lib_search_path_F77 \
15893     archive_cmds_F77 \
15894     archive_expsym_cmds_F77 \
15895     postinstall_cmds_F77 \
15896     postuninstall_cmds_F77 \
15897     old_archive_from_expsyms_cmds_F77 \
15898     allow_undefined_flag_F77 \
15899     no_undefined_flag_F77 \
15900     export_symbols_cmds_F77 \
15901     hardcode_libdir_flag_spec_F77 \
15902     hardcode_libdir_flag_spec_ld_F77 \
15903     hardcode_libdir_separator_F77 \
15904     hardcode_automatic_F77 \
15905     module_cmds_F77 \
15906     module_expsym_cmds_F77 \
15907     lt_cv_prog_compiler_c_o_F77 \
15908     exclude_expsyms_F77 \
15909     include_expsyms_F77; do
15910
15911     case $var in
15912     old_archive_cmds_F77 | \
15913     old_archive_from_new_cmds_F77 | \
15914     archive_cmds_F77 | \
15915     archive_expsym_cmds_F77 | \
15916     module_cmds_F77 | \
15917     module_expsym_cmds_F77 | \
15918     old_archive_from_expsyms_cmds_F77 | \
15919     export_symbols_cmds_F77 | \
15920     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15921     postinstall_cmds | postuninstall_cmds | \
15922     old_postinstall_cmds | old_postuninstall_cmds | \
15923     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15924       # Double-quote double-evaled strings.
15925       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15926       ;;
15927     *)
15928       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15929       ;;
15930     esac
15931   done
15932
15933   case $lt_echo in
15934   *'\$0 --fallback-echo"')
15935     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15936     ;;
15937   esac
15938
15939 cfgfile="$ofile"
15940
15941   cat <<__EOF__ >> "$cfgfile"
15942 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15943
15944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15945
15946 # Shell to use when invoking shell scripts.
15947 SHELL=$lt_SHELL
15948
15949 # Whether or not to build shared libraries.
15950 build_libtool_libs=$enable_shared
15951
15952 # Whether or not to build static libraries.
15953 build_old_libs=$enable_static
15954
15955 # Whether or not to add -lc for building shared libraries.
15956 build_libtool_need_lc=$archive_cmds_need_lc_F77
15957
15958 # Whether or not to disallow shared libs when runtime libs are static
15959 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15960
15961 # Whether or not to optimize for fast installation.
15962 fast_install=$enable_fast_install
15963
15964 # The host system.
15965 host_alias=$host_alias
15966 host=$host
15967 host_os=$host_os
15968
15969 # The build system.
15970 build_alias=$build_alias
15971 build=$build
15972 build_os=$build_os
15973
15974 # An echo program that does not interpret backslashes.
15975 echo=$lt_echo
15976
15977 # The archiver.
15978 AR=$lt_AR
15979 AR_FLAGS=$lt_AR_FLAGS
15980
15981 # A C compiler.
15982 LTCC=$lt_LTCC
15983
15984 # LTCC compiler flags.
15985 LTCFLAGS=$lt_LTCFLAGS
15986
15987 # A language-specific compiler.
15988 CC=$lt_compiler_F77
15989
15990 # Is the compiler the GNU C compiler?
15991 with_gcc=$GCC_F77
15992
15993 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15994 gcc_ver=\`gcc -dumpversion\`
15995
15996 # An ERE matcher.
15997 EGREP=$lt_EGREP
15998
15999 # The linker used to build libraries.
16000 LD=$lt_LD_F77
16001
16002 # Whether we need hard or soft links.
16003 LN_S=$lt_LN_S
16004
16005 # A BSD-compatible nm program.
16006 NM=$lt_NM
16007
16008 # A symbol stripping program
16009 STRIP=$lt_STRIP
16010
16011 # Used to examine libraries when file_magic_cmd begins "file"
16012 MAGIC_CMD=$MAGIC_CMD
16013
16014 # Used on cygwin: DLL creation program.
16015 DLLTOOL="$DLLTOOL"
16016
16017 # Used on cygwin: object dumper.
16018 OBJDUMP="$OBJDUMP"
16019
16020 # Used on cygwin: assembler.
16021 AS="$AS"
16022
16023 # The name of the directory that contains temporary libtool files.
16024 objdir=$objdir
16025
16026 # How to create reloadable object files.
16027 reload_flag=$lt_reload_flag
16028 reload_cmds=$lt_reload_cmds
16029
16030 # How to pass a linker flag through the compiler.
16031 wl=$lt_lt_prog_compiler_wl_F77
16032
16033 # Object file suffix (normally "o").
16034 objext="$ac_objext"
16035
16036 # Old archive suffix (normally "a").
16037 libext="$libext"
16038
16039 # Shared library suffix (normally ".so").
16040 shrext_cmds='$shrext_cmds'
16041
16042 # Executable file suffix (normally "").
16043 exeext="$exeext"
16044
16045 # Additional compiler flags for building library objects.
16046 pic_flag=$lt_lt_prog_compiler_pic_F77
16047 pic_mode=$pic_mode
16048
16049 # What is the maximum length of a command?
16050 max_cmd_len=$lt_cv_sys_max_cmd_len
16051
16052 # Does compiler simultaneously support -c and -o options?
16053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16054
16055 # Must we lock files when doing compilation?
16056 need_locks=$lt_need_locks
16057
16058 # Do we need the lib prefix for modules?
16059 need_lib_prefix=$need_lib_prefix
16060
16061 # Do we need a version for libraries?
16062 need_version=$need_version
16063
16064 # Whether dlopen is supported.
16065 dlopen_support=$enable_dlopen
16066
16067 # Whether dlopen of programs is supported.
16068 dlopen_self=$enable_dlopen_self
16069
16070 # Whether dlopen of statically linked programs is supported.
16071 dlopen_self_static=$enable_dlopen_self_static
16072
16073 # Compiler flag to prevent dynamic linking.
16074 link_static_flag=$lt_lt_prog_compiler_static_F77
16075
16076 # Compiler flag to turn off builtin functions.
16077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16078
16079 # Compiler flag to allow reflexive dlopens.
16080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16081
16082 # Compiler flag to generate shared objects directly from archives.
16083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16084
16085 # Compiler flag to generate thread-safe objects.
16086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16087
16088 # Library versioning type.
16089 version_type=$version_type
16090
16091 # Format of library name prefix.
16092 libname_spec=$lt_libname_spec
16093
16094 # List of archive names.  First name is the real one, the rest are links.
16095 # The last name is the one that the linker finds with -lNAME.
16096 library_names_spec=$lt_library_names_spec
16097
16098 # The coded name of the library, if different from the real name.
16099 soname_spec=$lt_soname_spec
16100
16101 # Commands used to build and install an old-style archive.
16102 RANLIB=$lt_RANLIB
16103 old_archive_cmds=$lt_old_archive_cmds_F77
16104 old_postinstall_cmds=$lt_old_postinstall_cmds
16105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16106
16107 # Create an old-style archive from a shared archive.
16108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16109
16110 # Create a temporary old-style archive to link instead of a shared archive.
16111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16112
16113 # Commands used to build and install a shared archive.
16114 archive_cmds=$lt_archive_cmds_F77
16115 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16116 postinstall_cmds=$lt_postinstall_cmds
16117 postuninstall_cmds=$lt_postuninstall_cmds
16118
16119 # Commands used to build a loadable module (assumed same as above if empty)
16120 module_cmds=$lt_module_cmds_F77
16121 module_expsym_cmds=$lt_module_expsym_cmds_F77
16122
16123 # Commands to strip libraries.
16124 old_striplib=$lt_old_striplib
16125 striplib=$lt_striplib
16126
16127 # Dependencies to place before the objects being linked to create a
16128 # shared library.
16129 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16130
16131 # Dependencies to place after the objects being linked to create a
16132 # shared library.
16133 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16134
16135 # Dependencies to place before the objects being linked to create a
16136 # shared library.
16137 predeps=$lt_predeps_F77
16138
16139 # Dependencies to place after the objects being linked to create a
16140 # shared library.
16141 postdeps=$lt_postdeps_F77
16142
16143 # The library search path used internally by the compiler when linking
16144 # a shared library.
16145 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16146
16147 # Method to check whether dependent libraries are shared objects.
16148 deplibs_check_method=$lt_deplibs_check_method
16149
16150 # Command to use when deplibs_check_method == file_magic.
16151 file_magic_cmd=$lt_file_magic_cmd
16152
16153 # Flag that allows shared libraries with undefined symbols to be built.
16154 allow_undefined_flag=$lt_allow_undefined_flag_F77
16155
16156 # Flag that forces no undefined symbols.
16157 no_undefined_flag=$lt_no_undefined_flag_F77
16158
16159 # Commands used to finish a libtool library installation in a directory.
16160 finish_cmds=$lt_finish_cmds
16161
16162 # Same as above, but a single script fragment to be evaled but not shown.
16163 finish_eval=$lt_finish_eval
16164
16165 # Take the output of nm and produce a listing of raw symbols and C names.
16166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16167
16168 # Transform the output of nm in a proper C declaration
16169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16170
16171 # Transform the output of nm in a C name address pair
16172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16173
16174 # This is the shared library runtime path variable.
16175 runpath_var=$runpath_var
16176
16177 # This is the shared library path variable.
16178 shlibpath_var=$shlibpath_var
16179
16180 # Is shlibpath searched before the hard-coded library search path?
16181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16182
16183 # How to hardcode a shared library path into an executable.
16184 hardcode_action=$hardcode_action_F77
16185
16186 # Whether we should hardcode library paths into libraries.
16187 hardcode_into_libs=$hardcode_into_libs
16188
16189 # Flag to hardcode \$libdir into a binary during linking.
16190 # This must work even if \$libdir does not exist.
16191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16192
16193 # If ld is used when linking, flag to hardcode \$libdir into
16194 # a binary during linking. This must work even if \$libdir does
16195 # not exist.
16196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16197
16198 # Whether we need a single -rpath flag with a separated argument.
16199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16200
16201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16202 # resulting binary.
16203 hardcode_direct=$hardcode_direct_F77
16204
16205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16206 # resulting binary.
16207 hardcode_minus_L=$hardcode_minus_L_F77
16208
16209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16210 # the resulting binary.
16211 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16212
16213 # Set to yes if building a shared library automatically hardcodes DIR into the library
16214 # and all subsequent libraries and executables linked against it.
16215 hardcode_automatic=$hardcode_automatic_F77
16216
16217 # Variables whose values should be saved in libtool wrapper scripts and
16218 # restored at relink time.
16219 variables_saved_for_relink="$variables_saved_for_relink"
16220
16221 # Whether libtool must link a program against all its dependency libraries.
16222 link_all_deplibs=$link_all_deplibs_F77
16223
16224 # Compile-time system search path for libraries
16225 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16226
16227 # Run-time system search path for libraries
16228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16229
16230 # Fix the shell variable \$srcfile for the compiler.
16231 fix_srcfile_path="$fix_srcfile_path_F77"
16232
16233 # Set to yes if exported symbols are required.
16234 always_export_symbols=$always_export_symbols_F77
16235
16236 # The commands to list exported symbols.
16237 export_symbols_cmds=$lt_export_symbols_cmds_F77
16238
16239 # The commands to extract the exported symbol list from a shared archive.
16240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16241
16242 # Symbols that should not be listed in the preloaded symbols.
16243 exclude_expsyms=$lt_exclude_expsyms_F77
16244
16245 # Symbols that must always be exported.
16246 include_expsyms=$lt_include_expsyms_F77
16247
16248 # ### END LIBTOOL TAG CONFIG: $tagname
16249
16250 __EOF__
16251
16252
16253 else
16254   # If there is no Makefile yet, we rely on a make rule to execute
16255   # `config.status --recheck' to rerun these tests and create the
16256   # libtool script then.
16257   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16258   if test -f "$ltmain_in"; then
16259     test -f Makefile && make "$ltmain"
16260   fi
16261 fi
16262
16263
16264 ac_ext=c
16265 ac_cpp='$CPP $CPPFLAGS'
16266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16269
16270 CC="$lt_save_CC"
16271
16272         else
16273           tagname=""
16274         fi
16275         ;;
16276
16277       GCJ)
16278         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16279
16280
16281 # Source file extension for Java test sources.
16282 ac_ext=java
16283
16284 # Object file extension for compiled Java test sources.
16285 objext=o
16286 objext_GCJ=$objext
16287
16288 # Code to be used in simple compile tests
16289 lt_simple_compile_test_code="class foo {}\n"
16290
16291 # Code to be used in simple link tests
16292 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16293
16294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16295
16296 # If no C compiler was specified, use CC.
16297 LTCC=${LTCC-"$CC"}
16298
16299 # If no C compiler flags were specified, use CFLAGS.
16300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16301
16302 # Allow CC to be a program name with arguments.
16303 compiler=$CC
16304
16305
16306 # save warnings/boilerplate of simple test code
16307 ac_outfile=conftest.$ac_objext
16308 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16310 _lt_compiler_boilerplate=`cat conftest.err`
16311 $rm conftest*
16312
16313 ac_outfile=conftest.$ac_objext
16314 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16316 _lt_linker_boilerplate=`cat conftest.err`
16317 $rm conftest*
16318
16319
16320 # Allow CC to be a program name with arguments.
16321 lt_save_CC="$CC"
16322 CC=${GCJ-"gcj"}
16323 compiler=$CC
16324 compiler_GCJ=$CC
16325 for cc_temp in $compiler""; do
16326   case $cc_temp in
16327     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16328     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16329     \-*) ;;
16330     *) break;;
16331   esac
16332 done
16333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16334
16335
16336 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16337 archive_cmds_need_lc_GCJ=no
16338
16339 old_archive_cmds_GCJ=$old_archive_cmds
16340
16341
16342 lt_prog_compiler_no_builtin_flag_GCJ=
16343
16344 if test "$GCC" = yes; then
16345   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16346
16347
16348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16350 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16351   $as_echo_n "(cached) " >&6
16352 else
16353   lt_cv_prog_compiler_rtti_exceptions=no
16354   ac_outfile=conftest.$ac_objext
16355    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16356    lt_compiler_flag="-fno-rtti -fno-exceptions"
16357    # Insert the option either (1) after the last *FLAGS variable, or
16358    # (2) before a word containing "conftest.", or (3) at the end.
16359    # Note that $ac_compile itself does not contain backslashes and begins
16360    # with a dollar sign (not a hyphen), so the echo should work correctly.
16361    # The option is referenced via a variable to avoid confusing sed.
16362    lt_compile=`echo "$ac_compile" | $SED \
16363    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16365    -e 's:$: $lt_compiler_flag:'`
16366    (eval echo "\"\$as_me:16366: $lt_compile\"" >&5)
16367    (eval "$lt_compile" 2>conftest.err)
16368    ac_status=$?
16369    cat conftest.err >&5
16370    echo "$as_me:16370: \$? = $ac_status" >&5
16371    if (exit $ac_status) && test -s "$ac_outfile"; then
16372      # The compiler can only warn and ignore the option if not recognized
16373      # So say no if there are warnings other than the usual output.
16374      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16375      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16376      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16377        lt_cv_prog_compiler_rtti_exceptions=yes
16378      fi
16379    fi
16380    $rm conftest*
16381
16382 fi
16383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16385
16386 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16387     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16388 else
16389     :
16390 fi
16391
16392 fi
16393
16394 lt_prog_compiler_wl_GCJ=
16395 lt_prog_compiler_pic_GCJ=
16396 lt_prog_compiler_static_GCJ=
16397
16398 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16400
16401   if test "$GCC" = yes; then
16402     lt_prog_compiler_wl_GCJ='-Wl,'
16403     lt_prog_compiler_static_GCJ='-static'
16404
16405     case $host_os in
16406       aix*)
16407       # All AIX code is PIC.
16408       if test "$host_cpu" = ia64; then
16409         # AIX 5 now supports IA64 processor
16410         lt_prog_compiler_static_GCJ='-Bstatic'
16411       fi
16412       ;;
16413
16414     amigaos*)
16415       # FIXME: we need at least 68020 code to build shared libraries, but
16416       # adding the `-m68020' flag to GCC prevents building anything better,
16417       # like `-m68040'.
16418       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16419       ;;
16420
16421     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16422       # PIC is the default for these OSes.
16423       ;;
16424
16425     mingw* | pw32* | os2*)
16426       # This hack is so that the source file can tell whether it is being
16427       # built for inclusion in a dll (and should export symbols for example).
16428       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16429       ;;
16430
16431     darwin* | rhapsody*)
16432       # PIC is the default on this platform
16433       # Common symbols not allowed in MH_DYLIB files
16434       lt_prog_compiler_pic_GCJ='-fno-common'
16435       ;;
16436
16437     interix3*)
16438       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16439       # Instead, we relocate shared libraries at runtime.
16440       ;;
16441
16442     msdosdjgpp*)
16443       # Just because we use GCC doesn't mean we suddenly get shared libraries
16444       # on systems that don't support them.
16445       lt_prog_compiler_can_build_shared_GCJ=no
16446       enable_shared=no
16447       ;;
16448
16449     sysv4*MP*)
16450       if test -d /usr/nec; then
16451         lt_prog_compiler_pic_GCJ=-Kconform_pic
16452       fi
16453       ;;
16454
16455     hpux*)
16456       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16457       # not for PA HP-UX.
16458       case $host_cpu in
16459       hppa*64*|ia64*)
16460         # +Z the default
16461         ;;
16462       *)
16463         lt_prog_compiler_pic_GCJ='-fPIC'
16464         ;;
16465       esac
16466       ;;
16467
16468     *)
16469       lt_prog_compiler_pic_GCJ='-fPIC'
16470       ;;
16471     esac
16472   else
16473     # PORTME Check for flag to pass linker flags through the system compiler.
16474     case $host_os in
16475     aix*)
16476       lt_prog_compiler_wl_GCJ='-Wl,'
16477       if test "$host_cpu" = ia64; then
16478         # AIX 5 now supports IA64 processor
16479         lt_prog_compiler_static_GCJ='-Bstatic'
16480       else
16481         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16482       fi
16483       ;;
16484       darwin*)
16485         # PIC is the default on this platform
16486         # Common symbols not allowed in MH_DYLIB files
16487        case $cc_basename in
16488          xlc*)
16489          lt_prog_compiler_pic_GCJ='-qnocommon'
16490          lt_prog_compiler_wl_GCJ='-Wl,'
16491          ;;
16492        esac
16493        ;;
16494
16495     mingw* | pw32* | os2*)
16496       # This hack is so that the source file can tell whether it is being
16497       # built for inclusion in a dll (and should export symbols for example).
16498       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16499       ;;
16500
16501     hpux9* | hpux10* | hpux11*)
16502       lt_prog_compiler_wl_GCJ='-Wl,'
16503       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16504       # not for PA HP-UX.
16505       case $host_cpu in
16506       hppa*64*|ia64*)
16507         # +Z the default
16508         ;;
16509       *)
16510         lt_prog_compiler_pic_GCJ='+Z'
16511         ;;
16512       esac
16513       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16514       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16515       ;;
16516
16517     irix5* | irix6* | nonstopux*)
16518       lt_prog_compiler_wl_GCJ='-Wl,'
16519       # PIC (with -KPIC) is the default.
16520       lt_prog_compiler_static_GCJ='-non_shared'
16521       ;;
16522
16523     newsos6)
16524       lt_prog_compiler_pic_GCJ='-KPIC'
16525       lt_prog_compiler_static_GCJ='-Bstatic'
16526       ;;
16527
16528     linux*)
16529       case $cc_basename in
16530       icc* | ecc*)
16531         lt_prog_compiler_wl_GCJ='-Wl,'
16532         lt_prog_compiler_pic_GCJ='-KPIC'
16533         lt_prog_compiler_static_GCJ='-static'
16534         ;;
16535       pgcc* | pgf77* | pgf90* | pgf95*)
16536         # Portland Group compilers (*not* the Pentium gcc compiler,
16537         # which looks to be a dead project)
16538         lt_prog_compiler_wl_GCJ='-Wl,'
16539         lt_prog_compiler_pic_GCJ='-fpic'
16540         lt_prog_compiler_static_GCJ='-Bstatic'
16541         ;;
16542       ccc*)
16543         lt_prog_compiler_wl_GCJ='-Wl,'
16544         # All Alpha code is PIC.
16545         lt_prog_compiler_static_GCJ='-non_shared'
16546         ;;
16547       esac
16548       ;;
16549
16550     osf3* | osf4* | osf5*)
16551       lt_prog_compiler_wl_GCJ='-Wl,'
16552       # All OSF/1 code is PIC.
16553       lt_prog_compiler_static_GCJ='-non_shared'
16554       ;;
16555
16556     solaris*)
16557       lt_prog_compiler_pic_GCJ='-KPIC'
16558       lt_prog_compiler_static_GCJ='-Bstatic'
16559       case $cc_basename in
16560       f77* | f90* | f95*)
16561         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16562       *)
16563         lt_prog_compiler_wl_GCJ='-Wl,';;
16564       esac
16565       ;;
16566
16567     sunos4*)
16568       lt_prog_compiler_wl_GCJ='-Qoption ld '
16569       lt_prog_compiler_pic_GCJ='-PIC'
16570       lt_prog_compiler_static_GCJ='-Bstatic'
16571       ;;
16572
16573     sysv4 | sysv4.2uw2* | sysv4.3*)
16574       lt_prog_compiler_wl_GCJ='-Wl,'
16575       lt_prog_compiler_pic_GCJ='-KPIC'
16576       lt_prog_compiler_static_GCJ='-Bstatic'
16577       ;;
16578
16579     sysv4*MP*)
16580       if test -d /usr/nec ;then
16581         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16582         lt_prog_compiler_static_GCJ='-Bstatic'
16583       fi
16584       ;;
16585
16586     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16587       lt_prog_compiler_wl_GCJ='-Wl,'
16588       lt_prog_compiler_pic_GCJ='-KPIC'
16589       lt_prog_compiler_static_GCJ='-Bstatic'
16590       ;;
16591
16592     unicos*)
16593       lt_prog_compiler_wl_GCJ='-Wl,'
16594       lt_prog_compiler_can_build_shared_GCJ=no
16595       ;;
16596
16597     uts4*)
16598       lt_prog_compiler_pic_GCJ='-pic'
16599       lt_prog_compiler_static_GCJ='-Bstatic'
16600       ;;
16601
16602     *)
16603       lt_prog_compiler_can_build_shared_GCJ=no
16604       ;;
16605     esac
16606   fi
16607
16608 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16609 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16610
16611 #
16612 # Check to make sure the PIC flag actually works.
16613 #
16614 if test -n "$lt_prog_compiler_pic_GCJ"; then
16615
16616 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16618 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16619   $as_echo_n "(cached) " >&6
16620 else
16621   lt_prog_compiler_pic_works_GCJ=no
16622   ac_outfile=conftest.$ac_objext
16623    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16624    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16625    # Insert the option either (1) after the last *FLAGS variable, or
16626    # (2) before a word containing "conftest.", or (3) at the end.
16627    # Note that $ac_compile itself does not contain backslashes and begins
16628    # with a dollar sign (not a hyphen), so the echo should work correctly.
16629    # The option is referenced via a variable to avoid confusing sed.
16630    lt_compile=`echo "$ac_compile" | $SED \
16631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16633    -e 's:$: $lt_compiler_flag:'`
16634    (eval echo "\"\$as_me:16634: $lt_compile\"" >&5)
16635    (eval "$lt_compile" 2>conftest.err)
16636    ac_status=$?
16637    cat conftest.err >&5
16638    echo "$as_me:16638: \$? = $ac_status" >&5
16639    if (exit $ac_status) && test -s "$ac_outfile"; then
16640      # The compiler can only warn and ignore the option if not recognized
16641      # So say no if there are warnings other than the usual output.
16642      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16643      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16644      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16645        lt_prog_compiler_pic_works_GCJ=yes
16646      fi
16647    fi
16648    $rm conftest*
16649
16650 fi
16651 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16652 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16653
16654 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16655     case $lt_prog_compiler_pic_GCJ in
16656      "" | " "*) ;;
16657      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16658      esac
16659 else
16660     lt_prog_compiler_pic_GCJ=
16661      lt_prog_compiler_can_build_shared_GCJ=no
16662 fi
16663
16664 fi
16665 case $host_os in
16666   # For platforms which do not support PIC, -DPIC is meaningless:
16667   *djgpp*)
16668     lt_prog_compiler_pic_GCJ=
16669     ;;
16670   *)
16671     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16672     ;;
16673 esac
16674
16675 #
16676 # Check to make sure the static flag actually works.
16677 #
16678 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16679 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16680 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16681 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16682   $as_echo_n "(cached) " >&6
16683 else
16684   lt_prog_compiler_static_works_GCJ=no
16685    save_LDFLAGS="$LDFLAGS"
16686    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16687    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16688    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16689      # The linker can only warn and ignore the option if not recognized
16690      # So say no if there are warnings
16691      if test -s conftest.err; then
16692        # Append any errors to the config.log.
16693        cat conftest.err 1>&5
16694        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16695        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16696        if diff conftest.exp conftest.er2 >/dev/null; then
16697          lt_prog_compiler_static_works_GCJ=yes
16698        fi
16699      else
16700        lt_prog_compiler_static_works_GCJ=yes
16701      fi
16702    fi
16703    $rm conftest*
16704    LDFLAGS="$save_LDFLAGS"
16705
16706 fi
16707 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16708 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16709
16710 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16711     :
16712 else
16713     lt_prog_compiler_static_GCJ=
16714 fi
16715
16716
16717 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16719 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16720   $as_echo_n "(cached) " >&6
16721 else
16722   lt_cv_prog_compiler_c_o_GCJ=no
16723    $rm -r conftest 2>/dev/null
16724    mkdir conftest
16725    cd conftest
16726    mkdir out
16727    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16728
16729    lt_compiler_flag="-o out/conftest2.$ac_objext"
16730    # Insert the option either (1) after the last *FLAGS variable, or
16731    # (2) before a word containing "conftest.", or (3) at the end.
16732    # Note that $ac_compile itself does not contain backslashes and begins
16733    # with a dollar sign (not a hyphen), so the echo should work correctly.
16734    lt_compile=`echo "$ac_compile" | $SED \
16735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16737    -e 's:$: $lt_compiler_flag:'`
16738    (eval echo "\"\$as_me:16738: $lt_compile\"" >&5)
16739    (eval "$lt_compile" 2>out/conftest.err)
16740    ac_status=$?
16741    cat out/conftest.err >&5
16742    echo "$as_me:16742: \$? = $ac_status" >&5
16743    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16744    then
16745      # The compiler can only warn and ignore the option if not recognized
16746      # So say no if there are warnings
16747      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16748      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16749      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16750        lt_cv_prog_compiler_c_o_GCJ=yes
16751      fi
16752    fi
16753    chmod u+w . 2>&5
16754    $rm conftest*
16755    # SGI C++ compiler will create directory out/ii_files/ for
16756    # template instantiation
16757    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16758    $rm out/* && rmdir out
16759    cd ..
16760    rmdir conftest
16761    $rm conftest*
16762
16763 fi
16764 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16765 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16766
16767
16768 hard_links="nottested"
16769 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16770   # do not overwrite the value of need_locks provided by the user
16771   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16772 $as_echo_n "checking if we can lock with hard links... " >&6; }
16773   hard_links=yes
16774   $rm conftest*
16775   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16776   touch conftest.a
16777   ln conftest.a conftest.b 2>&5 || hard_links=no
16778   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16779   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16780 $as_echo "$hard_links" >&6; }
16781   if test "$hard_links" = no; then
16782     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16784     need_locks=warn
16785   fi
16786 else
16787   need_locks=no
16788 fi
16789
16790 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16792
16793   runpath_var=
16794   allow_undefined_flag_GCJ=
16795   enable_shared_with_static_runtimes_GCJ=no
16796   archive_cmds_GCJ=
16797   archive_expsym_cmds_GCJ=
16798   old_archive_From_new_cmds_GCJ=
16799   old_archive_from_expsyms_cmds_GCJ=
16800   export_dynamic_flag_spec_GCJ=
16801   whole_archive_flag_spec_GCJ=
16802   thread_safe_flag_spec_GCJ=
16803   hardcode_libdir_flag_spec_GCJ=
16804   hardcode_libdir_flag_spec_ld_GCJ=
16805   hardcode_libdir_separator_GCJ=
16806   hardcode_direct_GCJ=no
16807   hardcode_minus_L_GCJ=no
16808   hardcode_shlibpath_var_GCJ=unsupported
16809   link_all_deplibs_GCJ=unknown
16810   hardcode_automatic_GCJ=no
16811   module_cmds_GCJ=
16812   module_expsym_cmds_GCJ=
16813   always_export_symbols_GCJ=no
16814   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16815   # include_expsyms should be a list of space-separated symbols to be *always*
16816   # included in the symbol list
16817   include_expsyms_GCJ=
16818   # exclude_expsyms can be an extended regexp of symbols to exclude
16819   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16820   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16821   # as well as any symbol that contains `d'.
16822   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16823   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16824   # platforms (ab)use it in PIC code, but their linkers get confused if
16825   # the symbol is explicitly referenced.  Since portable code cannot
16826   # rely on this symbol name, it's probably fine to never include it in
16827   # preloaded symbol tables.
16828   extract_expsyms_cmds=
16829   # Just being paranoid about ensuring that cc_basename is set.
16830   for cc_temp in $compiler""; do
16831   case $cc_temp in
16832     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16833     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16834     \-*) ;;
16835     *) break;;
16836   esac
16837 done
16838 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16839
16840   case $host_os in
16841   cygwin* | mingw* | pw32*)
16842     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16843     # When not using gcc, we currently assume that we are using
16844     # Microsoft Visual C++.
16845     if test "$GCC" != yes; then
16846       with_gnu_ld=no
16847     fi
16848     ;;
16849   interix*)
16850     # we just hope/assume this is gcc and not c89 (= MSVC++)
16851     with_gnu_ld=yes
16852     ;;
16853   openbsd*)
16854     with_gnu_ld=no
16855     ;;
16856   esac
16857
16858   ld_shlibs_GCJ=yes
16859   if test "$with_gnu_ld" = yes; then
16860     # If archive_cmds runs LD, not CC, wlarc should be empty
16861     wlarc='${wl}'
16862
16863     # Set some defaults for GNU ld with shared library support. These
16864     # are reset later if shared libraries are not supported. Putting them
16865     # here allows them to be overridden if necessary.
16866     runpath_var=LD_RUN_PATH
16867     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16868     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16869     # ancient GNU ld didn't support --whole-archive et. al.
16870     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16871         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16872       else
16873         whole_archive_flag_spec_GCJ=
16874     fi
16875     supports_anon_versioning=no
16876     case `$LD -v 2>/dev/null` in
16877       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16878       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16879       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16880       *\ 2.11.*) ;; # other 2.11 versions
16881       *) supports_anon_versioning=yes ;;
16882     esac
16883
16884     # See if GNU ld supports shared libraries.
16885     case $host_os in
16886     aix3* | aix4* | aix5*)
16887       # On AIX/PPC, the GNU linker is very broken
16888       if test "$host_cpu" != ia64; then
16889         ld_shlibs_GCJ=no
16890         cat <<EOF 1>&2
16891
16892 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16893 *** to be unable to reliably create shared libraries on AIX.
16894 *** Therefore, libtool is disabling shared libraries support.  If you
16895 *** really care for shared libraries, you may want to modify your PATH
16896 *** so that a non-GNU linker is found, and then restart.
16897
16898 EOF
16899       fi
16900       ;;
16901
16902     amigaos*)
16903       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)'
16904       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16905       hardcode_minus_L_GCJ=yes
16906
16907       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16908       # that the semantics of dynamic libraries on AmigaOS, at least up
16909       # to version 4, is to share data among multiple programs linked
16910       # with the same dynamic library.  Since this doesn't match the
16911       # behavior of shared libraries on other platforms, we can't use
16912       # them.
16913       ld_shlibs_GCJ=no
16914       ;;
16915
16916     beos*)
16917       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16918         allow_undefined_flag_GCJ=unsupported
16919         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16920         # support --undefined.  This deserves some investigation.  FIXME
16921         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922       else
16923         ld_shlibs_GCJ=no
16924       fi
16925       ;;
16926
16927     cygwin* | mingw* | pw32*)
16928       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16929       # as there is no search path for DLLs.
16930       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16931       allow_undefined_flag_GCJ=unsupported
16932       always_export_symbols_GCJ=no
16933       enable_shared_with_static_runtimes_GCJ=yes
16934       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16935
16936       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16937         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16938         # If the export-symbols file already is a .def file (1st line
16939         # is EXPORTS), use it as is; otherwise, prepend...
16940         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16941           cp $export_symbols $output_objdir/$soname.def;
16942         else
16943           echo EXPORTS > $output_objdir/$soname.def;
16944           cat $export_symbols >> $output_objdir/$soname.def;
16945         fi~
16946         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16947       else
16948         ld_shlibs_GCJ=no
16949       fi
16950       ;;
16951
16952     interix3*)
16953       hardcode_direct_GCJ=no
16954       hardcode_shlibpath_var_GCJ=no
16955       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16956       export_dynamic_flag_spec_GCJ='${wl}-E'
16957       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16958       # Instead, shared libraries are loaded at an image base (0x10000000 by
16959       # default) and relocated if they conflict, which is a slow very memory
16960       # consuming and fragmenting process.  To avoid this, we pick a random,
16961       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16962       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16963       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'
16964       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'
16965       ;;
16966
16967     linux*)
16968       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16969         tmp_addflag=
16970         case $cc_basename,$host_cpu in
16971         pgcc*)                          # Portland Group C compiler
16972           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'
16973           tmp_addflag=' $pic_flag'
16974           ;;
16975         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16976           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'
16977           tmp_addflag=' $pic_flag -Mnomain' ;;
16978         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16979           tmp_addflag=' -i_dynamic' ;;
16980         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16981           tmp_addflag=' -i_dynamic -nofor_main' ;;
16982         ifc* | ifort*)                  # Intel Fortran compiler
16983           tmp_addflag=' -nofor_main' ;;
16984         esac
16985         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16986
16987         if test $supports_anon_versioning = yes; then
16988           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16989   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16990   $echo "local: *; };" >> $output_objdir/$libname.ver~
16991           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16992         fi
16993       else
16994         ld_shlibs_GCJ=no
16995       fi
16996       ;;
16997
16998     netbsd*)
16999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17000         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17001         wlarc=
17002       else
17003         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17005       fi
17006       ;;
17007
17008     solaris*)
17009       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17010         ld_shlibs_GCJ=no
17011         cat <<EOF 1>&2
17012
17013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17014 *** create shared libraries on Solaris systems.  Therefore, libtool
17015 *** is disabling shared libraries support.  We urge you to upgrade GNU
17016 *** binutils to release 2.9.1 or newer.  Another option is to modify
17017 *** your PATH or compiler configuration so that the native linker is
17018 *** used, and then restart.
17019
17020 EOF
17021       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17022         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17023         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17024       else
17025         ld_shlibs_GCJ=no
17026       fi
17027       ;;
17028
17029     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17030       case `$LD -v 2>&1` in
17031         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17032         ld_shlibs_GCJ=no
17033         cat <<_LT_EOF 1>&2
17034
17035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17036 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17037 *** is disabling shared libraries support.  We urge you to upgrade GNU
17038 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17039 *** your PATH or compiler configuration so that the native linker is
17040 *** used, and then restart.
17041
17042 _LT_EOF
17043         ;;
17044         *)
17045           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17046             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17047             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17048             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17049           else
17050             ld_shlibs_GCJ=no
17051           fi
17052         ;;
17053       esac
17054       ;;
17055
17056     sunos4*)
17057       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17058       wlarc=
17059       hardcode_direct_GCJ=yes
17060       hardcode_shlibpath_var_GCJ=no
17061       ;;
17062
17063     *)
17064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17065         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17067       else
17068         ld_shlibs_GCJ=no
17069       fi
17070       ;;
17071     esac
17072
17073     if test "$ld_shlibs_GCJ" = no; then
17074       runpath_var=
17075       hardcode_libdir_flag_spec_GCJ=
17076       export_dynamic_flag_spec_GCJ=
17077       whole_archive_flag_spec_GCJ=
17078     fi
17079   else
17080     # PORTME fill in a description of your system's linker (not GNU ld)
17081     case $host_os in
17082     aix3*)
17083       allow_undefined_flag_GCJ=unsupported
17084       always_export_symbols_GCJ=yes
17085       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'
17086       # Note: this linker hardcodes the directories in LIBPATH if there
17087       # are no directories specified by -L.
17088       hardcode_minus_L_GCJ=yes
17089       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17090         # Neither direct hardcoding nor static linking is supported with a
17091         # broken collect2.
17092         hardcode_direct_GCJ=unsupported
17093       fi
17094       ;;
17095
17096     aix4* | aix5*)
17097       if test "$host_cpu" = ia64; then
17098         # On IA64, the linker does run time linking by default, so we don't
17099         # have to do anything special.
17100         aix_use_runtimelinking=no
17101         exp_sym_flag='-Bexport'
17102         no_entry_flag=""
17103       else
17104         # If we're using GNU nm, then we don't want the "-C" option.
17105         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17106         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17107           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'
17108         else
17109           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'
17110         fi
17111         aix_use_runtimelinking=no
17112
17113         # Test if we are trying to use run time linking or normal
17114         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17115         # need to do runtime linking.
17116         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17117           for ld_flag in $LDFLAGS; do
17118           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17119             aix_use_runtimelinking=yes
17120             break
17121           fi
17122           done
17123           ;;
17124         esac
17125
17126         exp_sym_flag='-bexport'
17127         no_entry_flag='-bnoentry'
17128       fi
17129
17130       # When large executables or shared objects are built, AIX ld can
17131       # have problems creating the table of contents.  If linking a library
17132       # or program results in "error TOC overflow" add -mminimal-toc to
17133       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17134       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17135
17136       archive_cmds_GCJ=''
17137       hardcode_direct_GCJ=yes
17138       hardcode_libdir_separator_GCJ=':'
17139       link_all_deplibs_GCJ=yes
17140
17141       if test "$GCC" = yes; then
17142         case $host_os in aix4.[012]|aix4.[012].*)
17143         # We only want to do this on AIX 4.2 and lower, the check
17144         # below for broken collect2 doesn't work under 4.3+
17145           collect2name=`${CC} -print-prog-name=collect2`
17146           if test -f "$collect2name" && \
17147            strings "$collect2name" | grep resolve_lib_name >/dev/null
17148           then
17149           # We have reworked collect2
17150           hardcode_direct_GCJ=yes
17151           else
17152           # We have old collect2
17153           hardcode_direct_GCJ=unsupported
17154           # It fails to find uninstalled libraries when the uninstalled
17155           # path is not listed in the libpath.  Setting hardcode_minus_L
17156           # to unsupported forces relinking
17157           hardcode_minus_L_GCJ=yes
17158           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17159           hardcode_libdir_separator_GCJ=
17160           fi
17161           ;;
17162         esac
17163         shared_flag='-shared'
17164         if test "$aix_use_runtimelinking" = yes; then
17165           shared_flag="$shared_flag "'${wl}-G'
17166         fi
17167       else
17168         # not using gcc
17169         if test "$host_cpu" = ia64; then
17170         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17171         # chokes on -Wl,-G. The following line is correct:
17172           shared_flag='-G'
17173         else
17174           if test "$aix_use_runtimelinking" = yes; then
17175             shared_flag='${wl}-G'
17176           else
17177             shared_flag='${wl}-bM:SRE'
17178           fi
17179         fi
17180       fi
17181
17182       # It seems that -bexpall does not export symbols beginning with
17183       # underscore (_), so it is better to generate a list of symbols to export.
17184       always_export_symbols_GCJ=yes
17185       if test "$aix_use_runtimelinking" = yes; then
17186         # Warning - without using the other runtime loading flags (-brtl),
17187         # -berok will link without error, but may produce a broken library.
17188         allow_undefined_flag_GCJ='-berok'
17189        # Determine the default libpath from the value encoded in an empty executable.
17190        cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196
17197 int
17198 main ()
17199 {
17200
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17212 $as_echo "$ac_try_echo") >&5
17213   (eval "$ac_link") 2>conftest.er1
17214   ac_status=$?
17215   grep -v '^ *+' conftest.er1 >conftest.err
17216   rm -f conftest.er1
17217   cat conftest.err >&5
17218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } && {
17220          test -z "$ac_c_werror_flag" ||
17221          test ! -s conftest.err
17222        } && test -s conftest$ac_exeext && {
17223          test "$cross_compiling" = yes ||
17224          $as_test_x conftest$ac_exeext
17225        }; then
17226
17227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17228 }'`
17229 # Check for a 64-bit object if we didn't find anything.
17230 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17231 }'`; fi
17232 else
17233   $as_echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236
17237 fi
17238
17239 rm -rf conftest.dSYM
17240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17241       conftest$ac_exeext conftest.$ac_ext
17242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17243
17244        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17245         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"
17246        else
17247         if test "$host_cpu" = ia64; then
17248           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17249           allow_undefined_flag_GCJ="-z nodefs"
17250           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"
17251         else
17252          # Determine the default libpath from the value encoded in an empty executable.
17253          cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259
17260 int
17261 main ()
17262 {
17263
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17275 $as_echo "$ac_try_echo") >&5
17276   (eval "$ac_link") 2>conftest.er1
17277   ac_status=$?
17278   grep -v '^ *+' conftest.er1 >conftest.err
17279   rm -f conftest.er1
17280   cat conftest.err >&5
17281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); } && {
17283          test -z "$ac_c_werror_flag" ||
17284          test ! -s conftest.err
17285        } && test -s conftest$ac_exeext && {
17286          test "$cross_compiling" = yes ||
17287          $as_test_x conftest$ac_exeext
17288        }; then
17289
17290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17291 }'`
17292 # Check for a 64-bit object if we didn't find anything.
17293 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17294 }'`; fi
17295 else
17296   $as_echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17298
17299
17300 fi
17301
17302 rm -rf conftest.dSYM
17303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17304       conftest$ac_exeext conftest.$ac_ext
17305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17306
17307          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17308           # Warning - without using the other run time loading flags,
17309           # -berok will link without error, but may produce a broken library.
17310           no_undefined_flag_GCJ=' ${wl}-bernotok'
17311           allow_undefined_flag_GCJ=' ${wl}-berok'
17312           # Exported symbols can be pulled into shared objects from archives
17313           whole_archive_flag_spec_GCJ='$convenience'
17314           archive_cmds_need_lc_GCJ=yes
17315           # This is similar to how AIX traditionally builds its shared libraries.
17316           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'
17317         fi
17318       fi
17319       ;;
17320
17321     amigaos*)
17322       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)'
17323       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324       hardcode_minus_L_GCJ=yes
17325       # see comment about different semantics on the GNU ld section
17326       ld_shlibs_GCJ=no
17327       ;;
17328
17329     bsdi[45]*)
17330       export_dynamic_flag_spec_GCJ=-rdynamic
17331       ;;
17332
17333     cygwin* | mingw* | pw32*)
17334       # When not using gcc, we currently assume that we are using
17335       # Microsoft Visual C++.
17336       # hardcode_libdir_flag_spec is actually meaningless, as there is
17337       # no search path for DLLs.
17338       hardcode_libdir_flag_spec_GCJ=' '
17339       allow_undefined_flag_GCJ=unsupported
17340       # Tell ltmain to make .lib files, not .a files.
17341       libext=lib
17342       # Tell ltmain to make .dll files, not .so files.
17343       shrext_cmds=".dll"
17344       # FIXME: Setting linknames here is a bad hack.
17345       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17346       # The linker will automatically build a .lib file if we build a DLL.
17347       old_archive_From_new_cmds_GCJ='true'
17348       # FIXME: Should let the user specify the lib program.
17349       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17350       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17351       enable_shared_with_static_runtimes_GCJ=yes
17352       ;;
17353
17354     darwin* | rhapsody*)
17355       case $host_os in
17356         rhapsody* | darwin1.[012])
17357          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17358          ;;
17359        *) # Darwin 1.3 on
17360          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17361            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17362          else
17363            case ${MACOSX_DEPLOYMENT_TARGET} in
17364              10.[012])
17365                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17366                ;;
17367              10.*)
17368                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17369                ;;
17370            esac
17371          fi
17372          ;;
17373       esac
17374       archive_cmds_need_lc_GCJ=no
17375       hardcode_direct_GCJ=no
17376       hardcode_automatic_GCJ=yes
17377       hardcode_shlibpath_var_GCJ=unsupported
17378       whole_archive_flag_spec_GCJ=''
17379       link_all_deplibs_GCJ=yes
17380     if test "$GCC" = yes ; then
17381         output_verbose_link_cmd='echo'
17382         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17383       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17384       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17385       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17386       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}'
17387     else
17388       case $cc_basename in
17389         xlc*)
17390          output_verbose_link_cmd='echo'
17391          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17392          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17393           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17394          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17395           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}'
17396           ;;
17397        *)
17398          ld_shlibs_GCJ=no
17399           ;;
17400       esac
17401     fi
17402       ;;
17403
17404     dgux*)
17405       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17406       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17407       hardcode_shlibpath_var_GCJ=no
17408       ;;
17409
17410     freebsd1*)
17411       ld_shlibs_GCJ=no
17412       ;;
17413
17414     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17415     # support.  Future versions do this automatically, but an explicit c++rt0.o
17416     # does not break anything, and helps significantly (at the cost of a little
17417     # extra space).
17418     freebsd2.2*)
17419       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17420       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17421       hardcode_direct_GCJ=yes
17422       hardcode_shlibpath_var_GCJ=no
17423       ;;
17424
17425     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17426     freebsd2*)
17427       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17428       hardcode_direct_GCJ=yes
17429       hardcode_minus_L_GCJ=yes
17430       hardcode_shlibpath_var_GCJ=no
17431       ;;
17432
17433     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17434     freebsd* | kfreebsd*-gnu | dragonfly*)
17435       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17436       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17437       hardcode_direct_GCJ=yes
17438       hardcode_shlibpath_var_GCJ=no
17439       ;;
17440
17441     hpux9*)
17442       if test "$GCC" = yes; then
17443         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'
17444       else
17445         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'
17446       fi
17447       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17448       hardcode_libdir_separator_GCJ=:
17449       hardcode_direct_GCJ=yes
17450
17451       # hardcode_minus_L: Not really in the search PATH,
17452       # but as the default location of the library.
17453       hardcode_minus_L_GCJ=yes
17454       export_dynamic_flag_spec_GCJ='${wl}-E'
17455       ;;
17456
17457     hpux10*)
17458       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17459         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17460       else
17461         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17462       fi
17463       if test "$with_gnu_ld" = no; then
17464         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17465         hardcode_libdir_separator_GCJ=:
17466
17467         hardcode_direct_GCJ=yes
17468         export_dynamic_flag_spec_GCJ='${wl}-E'
17469
17470         # hardcode_minus_L: Not really in the search PATH,
17471         # but as the default location of the library.
17472         hardcode_minus_L_GCJ=yes
17473       fi
17474       ;;
17475
17476     hpux11*)
17477       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17478         case $host_cpu in
17479         hppa*64*)
17480           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17481           ;;
17482         ia64*)
17483           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17484           ;;
17485         *)
17486           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17487           ;;
17488         esac
17489       else
17490         case $host_cpu in
17491         hppa*64*)
17492           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17493           ;;
17494         ia64*)
17495           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17496           ;;
17497         *)
17498           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17499           ;;
17500         esac
17501       fi
17502       if test "$with_gnu_ld" = no; then
17503         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17504         hardcode_libdir_separator_GCJ=:
17505
17506         case $host_cpu in
17507         hppa*64*|ia64*)
17508           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17509           hardcode_direct_GCJ=no
17510           hardcode_shlibpath_var_GCJ=no
17511           ;;
17512         *)
17513           hardcode_direct_GCJ=yes
17514           export_dynamic_flag_spec_GCJ='${wl}-E'
17515
17516           # hardcode_minus_L: Not really in the search PATH,
17517           # but as the default location of the library.
17518           hardcode_minus_L_GCJ=yes
17519           ;;
17520         esac
17521       fi
17522       ;;
17523
17524     irix5* | irix6* | nonstopux*)
17525       if test "$GCC" = yes; then
17526         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'
17527       else
17528         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'
17529         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17530       fi
17531       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17532       hardcode_libdir_separator_GCJ=:
17533       link_all_deplibs_GCJ=yes
17534       ;;
17535
17536     netbsd*)
17537       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17538         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17539       else
17540         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17541       fi
17542       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17543       hardcode_direct_GCJ=yes
17544       hardcode_shlibpath_var_GCJ=no
17545       ;;
17546
17547     newsos6)
17548       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549       hardcode_direct_GCJ=yes
17550       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17551       hardcode_libdir_separator_GCJ=:
17552       hardcode_shlibpath_var_GCJ=no
17553       ;;
17554
17555     openbsd*)
17556       hardcode_direct_GCJ=yes
17557       hardcode_shlibpath_var_GCJ=no
17558       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17559         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17560         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17561         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17562         export_dynamic_flag_spec_GCJ='${wl}-E'
17563       else
17564        case $host_os in
17565          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17566            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17567            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17568            ;;
17569          *)
17570            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17571            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17572            ;;
17573        esac
17574       fi
17575       ;;
17576
17577     os2*)
17578       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579       hardcode_minus_L_GCJ=yes
17580       allow_undefined_flag_GCJ=unsupported
17581       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'
17582       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17583       ;;
17584
17585     osf3*)
17586       if test "$GCC" = yes; then
17587         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588         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'
17589       else
17590         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591         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'
17592       fi
17593       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594       hardcode_libdir_separator_GCJ=:
17595       ;;
17596
17597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17598       if test "$GCC" = yes; then
17599         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600         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'
17601         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602       else
17603         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604         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'
17605         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~
17606         $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'
17607
17608         # Both c and cxx compiler support -rpath directly
17609         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17610       fi
17611       hardcode_libdir_separator_GCJ=:
17612       ;;
17613
17614     solaris*)
17615       no_undefined_flag_GCJ=' -z text'
17616       if test "$GCC" = yes; then
17617         wlarc='${wl}'
17618         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17620           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17621       else
17622         wlarc=''
17623         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17625         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17626       fi
17627       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628       hardcode_shlibpath_var_GCJ=no
17629       case $host_os in
17630       solaris2.[0-5] | solaris2.[0-5].*) ;;
17631       *)
17632         # The compiler driver will combine linker options so we
17633         # cannot just pass the convience library names through
17634         # without $wl, iff we do not link with $LD.
17635         # Luckily, gcc supports the same syntax we need for Sun Studio.
17636         # Supported since Solaris 2.6 (maybe 2.5.1?)
17637         case $wlarc in
17638         '')
17639           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17640         *)
17641           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17642         esac ;;
17643       esac
17644       link_all_deplibs_GCJ=yes
17645       ;;
17646
17647     sunos4*)
17648       if test "x$host_vendor" = xsequent; then
17649         # Use $CC to link under sequent, because it throws in some extra .o
17650         # files that make .init and .fini sections work.
17651         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17652       else
17653         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17654       fi
17655       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17656       hardcode_direct_GCJ=yes
17657       hardcode_minus_L_GCJ=yes
17658       hardcode_shlibpath_var_GCJ=no
17659       ;;
17660
17661     sysv4)
17662       case $host_vendor in
17663         sni)
17664           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17665           hardcode_direct_GCJ=yes # is this really true???
17666         ;;
17667         siemens)
17668           ## LD is ld it makes a PLAMLIB
17669           ## CC just makes a GrossModule.
17670           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17671           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17672           hardcode_direct_GCJ=no
17673         ;;
17674         motorola)
17675           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17677         ;;
17678       esac
17679       runpath_var='LD_RUN_PATH'
17680       hardcode_shlibpath_var_GCJ=no
17681       ;;
17682
17683     sysv4.3*)
17684       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17685       hardcode_shlibpath_var_GCJ=no
17686       export_dynamic_flag_spec_GCJ='-Bexport'
17687       ;;
17688
17689     sysv4*MP*)
17690       if test -d /usr/nec; then
17691         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17692         hardcode_shlibpath_var_GCJ=no
17693         runpath_var=LD_RUN_PATH
17694         hardcode_runpath_var=yes
17695         ld_shlibs_GCJ=yes
17696       fi
17697       ;;
17698
17699     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17700       no_undefined_flag_GCJ='${wl}-z,text'
17701       archive_cmds_need_lc_GCJ=no
17702       hardcode_shlibpath_var_GCJ=no
17703       runpath_var='LD_RUN_PATH'
17704
17705       if test "$GCC" = yes; then
17706         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17707         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17708       else
17709         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17710         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17711       fi
17712       ;;
17713
17714     sysv5* | sco3.2v5* | sco5v6*)
17715       # Note: We can NOT use -z defs as we might desire, because we do not
17716       # link with -lc, and that would cause any symbols used from libc to
17717       # always be unresolved, which means just about no library would
17718       # ever link correctly.  If we're not using GNU ld we use -z text
17719       # though, which does catch some bad symbols but isn't as heavy-handed
17720       # as -z defs.
17721       no_undefined_flag_GCJ='${wl}-z,text'
17722       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17723       archive_cmds_need_lc_GCJ=no
17724       hardcode_shlibpath_var_GCJ=no
17725       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17726       hardcode_libdir_separator_GCJ=':'
17727       link_all_deplibs_GCJ=yes
17728       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17729       runpath_var='LD_RUN_PATH'
17730
17731       if test "$GCC" = yes; then
17732         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17733         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17734       else
17735         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17736         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17737       fi
17738       ;;
17739
17740     uts4*)
17741       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17743       hardcode_shlibpath_var_GCJ=no
17744       ;;
17745
17746     *)
17747       ld_shlibs_GCJ=no
17748       ;;
17749     esac
17750   fi
17751
17752 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17753 $as_echo "$ld_shlibs_GCJ" >&6; }
17754 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17755
17756 #
17757 # Do we need to explicitly link libc?
17758 #
17759 case "x$archive_cmds_need_lc_GCJ" in
17760 x|xyes)
17761   # Assume -lc should be added
17762   archive_cmds_need_lc_GCJ=yes
17763
17764   if test "$enable_shared" = yes && test "$GCC" = yes; then
17765     case $archive_cmds_GCJ in
17766     *'~'*)
17767       # FIXME: we may have to deal with multi-command sequences.
17768       ;;
17769     '$CC '*)
17770       # Test whether the compiler implicitly links with -lc since on some
17771       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17772       # to ld, don't add -lc before -lgcc.
17773       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17774 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17775       $rm conftest*
17776       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17777
17778       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779   (eval $ac_compile) 2>&5
17780   ac_status=$?
17781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } 2>conftest.err; then
17783         soname=conftest
17784         lib=conftest
17785         libobjs=conftest.$ac_objext
17786         deplibs=
17787         wl=$lt_prog_compiler_wl_GCJ
17788         pic_flag=$lt_prog_compiler_pic_GCJ
17789         compiler_flags=-v
17790         linker_flags=-v
17791         verstring=
17792         output_objdir=.
17793         libname=conftest
17794         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17795         allow_undefined_flag_GCJ=
17796         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17797   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17798   ac_status=$?
17799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }
17801         then
17802           archive_cmds_need_lc_GCJ=no
17803         else
17804           archive_cmds_need_lc_GCJ=yes
17805         fi
17806         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17807       else
17808         cat conftest.err 1>&5
17809       fi
17810       $rm conftest*
17811       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17812 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17813       ;;
17814     esac
17815   fi
17816   ;;
17817 esac
17818
17819 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17820 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17821 library_names_spec=
17822 libname_spec='lib$name'
17823 soname_spec=
17824 shrext_cmds=".so"
17825 postinstall_cmds=
17826 postuninstall_cmds=
17827 finish_cmds=
17828 finish_eval=
17829 shlibpath_var=
17830 shlibpath_overrides_runpath=unknown
17831 version_type=none
17832 dynamic_linker="$host_os ld.so"
17833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17834 if test "$GCC" = yes; then
17835   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17836   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17837     # if the path contains ";" then we assume it to be the separator
17838     # otherwise default to the standard path separator (i.e. ":") - it is
17839     # assumed that no part of a normal pathname contains ";" but that should
17840     # okay in the real world where ";" in dirpaths is itself problematic.
17841     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17842   else
17843     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17844   fi
17845 else
17846   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17847 fi
17848 need_lib_prefix=unknown
17849 hardcode_into_libs=no
17850
17851 # when you set need_version to no, make sure it does not cause -set_version
17852 # flags to be left without arguments
17853 need_version=unknown
17854
17855 case $host_os in
17856 aix3*)
17857   version_type=linux
17858   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17859   shlibpath_var=LIBPATH
17860
17861   # AIX 3 has no versioning support, so we append a major version to the name.
17862   soname_spec='${libname}${release}${shared_ext}$major'
17863   ;;
17864
17865 aix4* | aix5*)
17866   version_type=linux
17867   need_lib_prefix=no
17868   need_version=no
17869   hardcode_into_libs=yes
17870   if test "$host_cpu" = ia64; then
17871     # AIX 5 supports IA64
17872     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17873     shlibpath_var=LD_LIBRARY_PATH
17874   else
17875     # With GCC up to 2.95.x, collect2 would create an import file
17876     # for dependence libraries.  The import file would start with
17877     # the line `#! .'.  This would cause the generated library to
17878     # depend on `.', always an invalid library.  This was fixed in
17879     # development snapshots of GCC prior to 3.0.
17880     case $host_os in
17881       aix4 | aix4.[01] | aix4.[01].*)
17882       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17883            echo ' yes '
17884            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17885         :
17886       else
17887         can_build_shared=no
17888       fi
17889       ;;
17890     esac
17891     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17892     # soname into executable. Probably we can add versioning support to
17893     # collect2, so additional links can be useful in future.
17894     if test "$aix_use_runtimelinking" = yes; then
17895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17896       # instead of lib<name>.a to let people know that these are not
17897       # typical AIX shared libraries.
17898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899     else
17900       # We preserve .a as extension for shared libraries through AIX4.2
17901       # and later when we are not doing run time linking.
17902       library_names_spec='${libname}${release}.a $libname.a'
17903       soname_spec='${libname}${release}${shared_ext}$major'
17904     fi
17905     shlibpath_var=LIBPATH
17906   fi
17907   ;;
17908
17909 amigaos*)
17910   library_names_spec='$libname.ixlibrary $libname.a'
17911   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17912   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'
17913   ;;
17914
17915 beos*)
17916   library_names_spec='${libname}${shared_ext}'
17917   dynamic_linker="$host_os ld.so"
17918   shlibpath_var=LIBRARY_PATH
17919   ;;
17920
17921 bsdi[45]*)
17922   version_type=linux
17923   need_version=no
17924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925   soname_spec='${libname}${release}${shared_ext}$major'
17926   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17927   shlibpath_var=LD_LIBRARY_PATH
17928   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17929   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17930   # the default ld.so.conf also contains /usr/contrib/lib and
17931   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17932   # libtool to hard-code these into programs
17933   ;;
17934
17935 cygwin* | mingw* | pw32*)
17936   version_type=windows
17937   shrext_cmds=".dll"
17938   need_version=no
17939   need_lib_prefix=no
17940
17941   case $GCC,$host_os in
17942   yes,cygwin* | yes,mingw* | yes,pw32*)
17943     library_names_spec='$libname.dll.a'
17944     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17945     postinstall_cmds='base_file=`basename \${file}`~
17946       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17947       dldir=$destdir/`dirname \$dlpath`~
17948       test -d \$dldir || mkdir -p \$dldir~
17949       $install_prog $dir/$dlname \$dldir/$dlname~
17950       chmod a+x \$dldir/$dlname'
17951     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17952       dlpath=$dir/\$dldll~
17953        $rm \$dlpath'
17954     shlibpath_overrides_runpath=yes
17955
17956     case $host_os in
17957     cygwin*)
17958       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17959       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17960       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17961       ;;
17962     mingw*)
17963       # MinGW DLLs use traditional 'lib' prefix
17964       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17965       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17966       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17967         # It is most probably a Windows format PATH printed by
17968         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17969         # path with ; separators, and with drive letters. We can handle the
17970         # drive letters (cygwin fileutils understands them), so leave them,
17971         # especially as we might pass files found there to a mingw objdump,
17972         # which wouldn't understand a cygwinified path. Ahh.
17973         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17974       else
17975         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17976       fi
17977       ;;
17978     pw32*)
17979       # pw32 DLLs use 'pw' prefix rather than 'lib'
17980       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17981       ;;
17982     esac
17983     ;;
17984
17985   *)
17986     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17987     ;;
17988   esac
17989   dynamic_linker='Win32 ld.exe'
17990   # FIXME: first we should search . and the directory the executable is in
17991   shlibpath_var=PATH
17992   ;;
17993
17994 darwin* | rhapsody*)
17995   dynamic_linker="$host_os dyld"
17996   version_type=darwin
17997   need_lib_prefix=no
17998   need_version=no
17999   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18000   soname_spec='${libname}${release}${major}$shared_ext'
18001   shlibpath_overrides_runpath=yes
18002   shlibpath_var=DYLD_LIBRARY_PATH
18003   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18004   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18005   if test "$GCC" = yes; then
18006     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18007   else
18008     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18009   fi
18010   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18011   ;;
18012
18013 dgux*)
18014   version_type=linux
18015   need_lib_prefix=no
18016   need_version=no
18017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18018   soname_spec='${libname}${release}${shared_ext}$major'
18019   shlibpath_var=LD_LIBRARY_PATH
18020   ;;
18021
18022 freebsd1*)
18023   dynamic_linker=no
18024   ;;
18025
18026 kfreebsd*-gnu)
18027   version_type=linux
18028   need_lib_prefix=no
18029   need_version=no
18030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18031   soname_spec='${libname}${release}${shared_ext}$major'
18032   shlibpath_var=LD_LIBRARY_PATH
18033   shlibpath_overrides_runpath=no
18034   hardcode_into_libs=yes
18035   dynamic_linker='GNU ld.so'
18036   ;;
18037
18038 freebsd* | dragonfly*)
18039   # DragonFly does not have aout.  When/if they implement a new
18040   # versioning mechanism, adjust this.
18041   if test -x /usr/bin/objformat; then
18042     objformat=`/usr/bin/objformat`
18043   else
18044     case $host_os in
18045     freebsd[123]*) objformat=aout ;;
18046     *) objformat=elf ;;
18047     esac
18048   fi
18049   version_type=freebsd-$objformat
18050   case $version_type in
18051     freebsd-elf*)
18052       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18053       need_version=no
18054       need_lib_prefix=no
18055       ;;
18056     freebsd-*)
18057       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18058       need_version=yes
18059       ;;
18060   esac
18061   shlibpath_var=LD_LIBRARY_PATH
18062   case $host_os in
18063   freebsd2*)
18064     shlibpath_overrides_runpath=yes
18065     ;;
18066   freebsd3.[01]* | freebsdelf3.[01]*)
18067     shlibpath_overrides_runpath=yes
18068     hardcode_into_libs=yes
18069     ;;
18070   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18071   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18072     shlibpath_overrides_runpath=no
18073     hardcode_into_libs=yes
18074     ;;
18075   freebsd*) # from 4.6 on
18076     shlibpath_overrides_runpath=yes
18077     hardcode_into_libs=yes
18078     ;;
18079   esac
18080   ;;
18081
18082 gnu*)
18083   version_type=linux
18084   need_lib_prefix=no
18085   need_version=no
18086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18087   soname_spec='${libname}${release}${shared_ext}$major'
18088   shlibpath_var=LD_LIBRARY_PATH
18089   hardcode_into_libs=yes
18090   ;;
18091
18092 hpux9* | hpux10* | hpux11*)
18093   # Give a soname corresponding to the major version so that dld.sl refuses to
18094   # link against other versions.
18095   version_type=sunos
18096   need_lib_prefix=no
18097   need_version=no
18098   case $host_cpu in
18099   ia64*)
18100     shrext_cmds='.so'
18101     hardcode_into_libs=yes
18102     dynamic_linker="$host_os dld.so"
18103     shlibpath_var=LD_LIBRARY_PATH
18104     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18106     soname_spec='${libname}${release}${shared_ext}$major'
18107     if test "X$HPUX_IA64_MODE" = X32; then
18108       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18109     else
18110       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18111     fi
18112     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18113     ;;
18114    hppa*64*)
18115      shrext_cmds='.sl'
18116      hardcode_into_libs=yes
18117      dynamic_linker="$host_os dld.sl"
18118      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18119      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18120      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121      soname_spec='${libname}${release}${shared_ext}$major'
18122      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18123      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18124      ;;
18125    *)
18126     shrext_cmds='.sl'
18127     dynamic_linker="$host_os dld.sl"
18128     shlibpath_var=SHLIB_PATH
18129     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131     soname_spec='${libname}${release}${shared_ext}$major'
18132     ;;
18133   esac
18134   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18135   postinstall_cmds='chmod 555 $lib'
18136   ;;
18137
18138 interix3*)
18139   version_type=linux
18140   need_lib_prefix=no
18141   need_version=no
18142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18143   soname_spec='${libname}${release}${shared_ext}$major'
18144   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18145   shlibpath_var=LD_LIBRARY_PATH
18146   shlibpath_overrides_runpath=no
18147   hardcode_into_libs=yes
18148   ;;
18149
18150 irix5* | irix6* | nonstopux*)
18151   case $host_os in
18152     nonstopux*) version_type=nonstopux ;;
18153     *)
18154         if test "$lt_cv_prog_gnu_ld" = yes; then
18155                 version_type=linux
18156         else
18157                 version_type=irix
18158         fi ;;
18159   esac
18160   need_lib_prefix=no
18161   need_version=no
18162   soname_spec='${libname}${release}${shared_ext}$major'
18163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18164   case $host_os in
18165   irix5* | nonstopux*)
18166     libsuff= shlibsuff=
18167     ;;
18168   *)
18169     case $LD in # libtool.m4 will add one of these switches to LD
18170     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18171       libsuff= shlibsuff= libmagic=32-bit;;
18172     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18173       libsuff=32 shlibsuff=N32 libmagic=N32;;
18174     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18175       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18176     *) libsuff= shlibsuff= libmagic=never-match;;
18177     esac
18178     ;;
18179   esac
18180   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18181   shlibpath_overrides_runpath=no
18182   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18183   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18184   hardcode_into_libs=yes
18185   ;;
18186
18187 # No shared lib support for Linux oldld, aout, or coff.
18188 linux*oldld* | linux*aout* | linux*coff*)
18189   dynamic_linker=no
18190   ;;
18191
18192 # This must be Linux ELF.
18193 linux*)
18194   version_type=linux
18195   need_lib_prefix=no
18196   need_version=no
18197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198   soname_spec='${libname}${release}${shared_ext}$major'
18199   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18200   shlibpath_var=LD_LIBRARY_PATH
18201   shlibpath_overrides_runpath=no
18202   # This implies no fast_install, which is unacceptable.
18203   # Some rework will be needed to allow for fast_install
18204   # before this can be enabled.
18205   hardcode_into_libs=yes
18206
18207   # find out which ABI we are using
18208   libsuff=
18209   case "$host_cpu" in
18210   x86_64*|s390x*|powerpc64*)
18211     echo '#line 18211 "configure"' > conftest.$ac_ext
18212     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213   (eval $ac_compile) 2>&5
18214   ac_status=$?
18215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; then
18217       case `/usr/bin/file conftest.$ac_objext` in
18218       *64-bit*)
18219         libsuff=64
18220         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18221         ;;
18222       esac
18223     fi
18224     rm -rf conftest*
18225     ;;
18226   esac
18227
18228   # Append ld.so.conf contents to the search path
18229   if test -f /etc/ld.so.conf; then
18230     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18231     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18232   fi
18233
18234   # We used to test for /lib/ld.so.1 and disable shared libraries on
18235   # powerpc, because MkLinux only supported shared libraries with the
18236   # GNU dynamic linker.  Since this was broken with cross compilers,
18237   # most powerpc-linux boxes support dynamic linking these days and
18238   # people can always --disable-shared, the test was removed, and we
18239   # assume the GNU/Linux dynamic linker is in use.
18240   dynamic_linker='GNU/Linux ld.so'
18241   ;;
18242
18243 knetbsd*-gnu)
18244   version_type=linux
18245   need_lib_prefix=no
18246   need_version=no
18247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18248   soname_spec='${libname}${release}${shared_ext}$major'
18249   shlibpath_var=LD_LIBRARY_PATH
18250   shlibpath_overrides_runpath=no
18251   hardcode_into_libs=yes
18252   dynamic_linker='GNU ld.so'
18253   ;;
18254
18255 netbsd*)
18256   version_type=sunos
18257   need_lib_prefix=no
18258   need_version=no
18259   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18261     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18262     dynamic_linker='NetBSD (a.out) ld.so'
18263   else
18264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18265     soname_spec='${libname}${release}${shared_ext}$major'
18266     dynamic_linker='NetBSD ld.elf_so'
18267   fi
18268   shlibpath_var=LD_LIBRARY_PATH
18269   shlibpath_overrides_runpath=yes
18270   hardcode_into_libs=yes
18271   ;;
18272
18273 newsos6)
18274   version_type=linux
18275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276   shlibpath_var=LD_LIBRARY_PATH
18277   shlibpath_overrides_runpath=yes
18278   ;;
18279
18280 nto-qnx*)
18281   version_type=linux
18282   need_lib_prefix=no
18283   need_version=no
18284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285   soname_spec='${libname}${release}${shared_ext}$major'
18286   shlibpath_var=LD_LIBRARY_PATH
18287   shlibpath_overrides_runpath=yes
18288   ;;
18289
18290 openbsd*)
18291   version_type=sunos
18292   sys_lib_dlsearch_path_spec="/usr/lib"
18293   need_lib_prefix=no
18294   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18295   case $host_os in
18296     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18297     *)                         need_version=no  ;;
18298   esac
18299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18300   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18301   shlibpath_var=LD_LIBRARY_PATH
18302   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18303     case $host_os in
18304       openbsd2.[89] | openbsd2.[89].*)
18305         shlibpath_overrides_runpath=no
18306         ;;
18307       *)
18308         shlibpath_overrides_runpath=yes
18309         ;;
18310       esac
18311   else
18312     shlibpath_overrides_runpath=yes
18313   fi
18314   ;;
18315
18316 os2*)
18317   libname_spec='$name'
18318   shrext_cmds=".dll"
18319   need_lib_prefix=no
18320   library_names_spec='$libname${shared_ext} $libname.a'
18321   dynamic_linker='OS/2 ld.exe'
18322   shlibpath_var=LIBPATH
18323   ;;
18324
18325 osf3* | osf4* | osf5*)
18326   version_type=osf
18327   need_lib_prefix=no
18328   need_version=no
18329   soname_spec='${libname}${release}${shared_ext}$major'
18330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18331   shlibpath_var=LD_LIBRARY_PATH
18332   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18333   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18334   ;;
18335
18336 solaris*)
18337   version_type=linux
18338   need_lib_prefix=no
18339   need_version=no
18340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341   soname_spec='${libname}${release}${shared_ext}$major'
18342   shlibpath_var=LD_LIBRARY_PATH
18343   shlibpath_overrides_runpath=yes
18344   hardcode_into_libs=yes
18345   # ldd complains unless libraries are executable
18346   postinstall_cmds='chmod +x $lib'
18347   ;;
18348
18349 sunos4*)
18350   version_type=sunos
18351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18353   shlibpath_var=LD_LIBRARY_PATH
18354   shlibpath_overrides_runpath=yes
18355   if test "$with_gnu_ld" = yes; then
18356     need_lib_prefix=no
18357   fi
18358   need_version=yes
18359   ;;
18360
18361 sysv4 | sysv4.3*)
18362   version_type=linux
18363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364   soname_spec='${libname}${release}${shared_ext}$major'
18365   shlibpath_var=LD_LIBRARY_PATH
18366   case $host_vendor in
18367     sni)
18368       shlibpath_overrides_runpath=no
18369       need_lib_prefix=no
18370       export_dynamic_flag_spec='${wl}-Blargedynsym'
18371       runpath_var=LD_RUN_PATH
18372       ;;
18373     siemens)
18374       need_lib_prefix=no
18375       ;;
18376     motorola)
18377       need_lib_prefix=no
18378       need_version=no
18379       shlibpath_overrides_runpath=no
18380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18381       ;;
18382   esac
18383   ;;
18384
18385 sysv4*MP*)
18386   if test -d /usr/nec ;then
18387     version_type=linux
18388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18389     soname_spec='$libname${shared_ext}.$major'
18390     shlibpath_var=LD_LIBRARY_PATH
18391   fi
18392   ;;
18393
18394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18395   version_type=freebsd-elf
18396   need_lib_prefix=no
18397   need_version=no
18398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18399   soname_spec='${libname}${release}${shared_ext}$major'
18400   shlibpath_var=LD_LIBRARY_PATH
18401   hardcode_into_libs=yes
18402   if test "$with_gnu_ld" = yes; then
18403     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18404     shlibpath_overrides_runpath=no
18405   else
18406     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18407     shlibpath_overrides_runpath=yes
18408     case $host_os in
18409       sco3.2v5*)
18410         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18411         ;;
18412     esac
18413   fi
18414   sys_lib_dlsearch_path_spec='/usr/lib'
18415   ;;
18416
18417 uts4*)
18418   version_type=linux
18419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420   soname_spec='${libname}${release}${shared_ext}$major'
18421   shlibpath_var=LD_LIBRARY_PATH
18422   ;;
18423
18424 *)
18425   dynamic_linker=no
18426   ;;
18427 esac
18428 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18429 $as_echo "$dynamic_linker" >&6; }
18430 test "$dynamic_linker" = no && can_build_shared=no
18431
18432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18433 if test "$GCC" = yes; then
18434   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18435 fi
18436
18437 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18439 hardcode_action_GCJ=
18440 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18441    test -n "$runpath_var_GCJ" || \
18442    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18443
18444   # We can hardcode non-existant directories.
18445   if test "$hardcode_direct_GCJ" != no &&
18446      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18447      # have to relink, otherwise we might link with an installed library
18448      # when we should be linking with a yet-to-be-installed one
18449      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18450      test "$hardcode_minus_L_GCJ" != no; then
18451     # Linking always hardcodes the temporary library directory.
18452     hardcode_action_GCJ=relink
18453   else
18454     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18455     hardcode_action_GCJ=immediate
18456   fi
18457 else
18458   # We cannot hardcode anything, or else we can only hardcode existing
18459   # directories.
18460   hardcode_action_GCJ=unsupported
18461 fi
18462 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18463 $as_echo "$hardcode_action_GCJ" >&6; }
18464
18465 if test "$hardcode_action_GCJ" = relink; then
18466   # Fast installation is not supported
18467   enable_fast_install=no
18468 elif test "$shlibpath_overrides_runpath" = yes ||
18469      test "$enable_shared" = no; then
18470   # Fast installation is not necessary
18471   enable_fast_install=needless
18472 fi
18473
18474
18475 # The else clause should only fire when bootstrapping the
18476 # libtool distribution, otherwise you forgot to ship ltmain.sh
18477 # with your package, and you will get complaints that there are
18478 # no rules to generate ltmain.sh.
18479 if test -f "$ltmain"; then
18480   # See if we are running on zsh, and set the options which allow our commands through
18481   # without removal of \ escapes.
18482   if test -n "${ZSH_VERSION+set}" ; then
18483     setopt NO_GLOB_SUBST
18484   fi
18485   # Now quote all the things that may contain metacharacters while being
18486   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18487   # variables and quote the copies for generation of the libtool script.
18488   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18489     SED SHELL STRIP \
18490     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18491     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18492     deplibs_check_method reload_flag reload_cmds need_locks \
18493     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18494     lt_cv_sys_global_symbol_to_c_name_address \
18495     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18496     old_postinstall_cmds old_postuninstall_cmds \
18497     compiler_GCJ \
18498     CC_GCJ \
18499     LD_GCJ \
18500     lt_prog_compiler_wl_GCJ \
18501     lt_prog_compiler_pic_GCJ \
18502     lt_prog_compiler_static_GCJ \
18503     lt_prog_compiler_no_builtin_flag_GCJ \
18504     export_dynamic_flag_spec_GCJ \
18505     thread_safe_flag_spec_GCJ \
18506     whole_archive_flag_spec_GCJ \
18507     enable_shared_with_static_runtimes_GCJ \
18508     old_archive_cmds_GCJ \
18509     old_archive_from_new_cmds_GCJ \
18510     predep_objects_GCJ \
18511     postdep_objects_GCJ \
18512     predeps_GCJ \
18513     postdeps_GCJ \
18514     compiler_lib_search_path_GCJ \
18515     archive_cmds_GCJ \
18516     archive_expsym_cmds_GCJ \
18517     postinstall_cmds_GCJ \
18518     postuninstall_cmds_GCJ \
18519     old_archive_from_expsyms_cmds_GCJ \
18520     allow_undefined_flag_GCJ \
18521     no_undefined_flag_GCJ \
18522     export_symbols_cmds_GCJ \
18523     hardcode_libdir_flag_spec_GCJ \
18524     hardcode_libdir_flag_spec_ld_GCJ \
18525     hardcode_libdir_separator_GCJ \
18526     hardcode_automatic_GCJ \
18527     module_cmds_GCJ \
18528     module_expsym_cmds_GCJ \
18529     lt_cv_prog_compiler_c_o_GCJ \
18530     exclude_expsyms_GCJ \
18531     include_expsyms_GCJ; do
18532
18533     case $var in
18534     old_archive_cmds_GCJ | \
18535     old_archive_from_new_cmds_GCJ | \
18536     archive_cmds_GCJ | \
18537     archive_expsym_cmds_GCJ | \
18538     module_cmds_GCJ | \
18539     module_expsym_cmds_GCJ | \
18540     old_archive_from_expsyms_cmds_GCJ | \
18541     export_symbols_cmds_GCJ | \
18542     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18543     postinstall_cmds | postuninstall_cmds | \
18544     old_postinstall_cmds | old_postuninstall_cmds | \
18545     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18546       # Double-quote double-evaled strings.
18547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18548       ;;
18549     *)
18550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18551       ;;
18552     esac
18553   done
18554
18555   case $lt_echo in
18556   *'\$0 --fallback-echo"')
18557     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18558     ;;
18559   esac
18560
18561 cfgfile="$ofile"
18562
18563   cat <<__EOF__ >> "$cfgfile"
18564 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18565
18566 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18567
18568 # Shell to use when invoking shell scripts.
18569 SHELL=$lt_SHELL
18570
18571 # Whether or not to build shared libraries.
18572 build_libtool_libs=$enable_shared
18573
18574 # Whether or not to build static libraries.
18575 build_old_libs=$enable_static
18576
18577 # Whether or not to add -lc for building shared libraries.
18578 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18579
18580 # Whether or not to disallow shared libs when runtime libs are static
18581 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18582
18583 # Whether or not to optimize for fast installation.
18584 fast_install=$enable_fast_install
18585
18586 # The host system.
18587 host_alias=$host_alias
18588 host=$host
18589 host_os=$host_os
18590
18591 # The build system.
18592 build_alias=$build_alias
18593 build=$build
18594 build_os=$build_os
18595
18596 # An echo program that does not interpret backslashes.
18597 echo=$lt_echo
18598
18599 # The archiver.
18600 AR=$lt_AR
18601 AR_FLAGS=$lt_AR_FLAGS
18602
18603 # A C compiler.
18604 LTCC=$lt_LTCC
18605
18606 # LTCC compiler flags.
18607 LTCFLAGS=$lt_LTCFLAGS
18608
18609 # A language-specific compiler.
18610 CC=$lt_compiler_GCJ
18611
18612 # Is the compiler the GNU C compiler?
18613 with_gcc=$GCC_GCJ
18614
18615 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18616 gcc_ver=\`gcc -dumpversion\`
18617
18618 # An ERE matcher.
18619 EGREP=$lt_EGREP
18620
18621 # The linker used to build libraries.
18622 LD=$lt_LD_GCJ
18623
18624 # Whether we need hard or soft links.
18625 LN_S=$lt_LN_S
18626
18627 # A BSD-compatible nm program.
18628 NM=$lt_NM
18629
18630 # A symbol stripping program
18631 STRIP=$lt_STRIP
18632
18633 # Used to examine libraries when file_magic_cmd begins "file"
18634 MAGIC_CMD=$MAGIC_CMD
18635
18636 # Used on cygwin: DLL creation program.
18637 DLLTOOL="$DLLTOOL"
18638
18639 # Used on cygwin: object dumper.
18640 OBJDUMP="$OBJDUMP"
18641
18642 # Used on cygwin: assembler.
18643 AS="$AS"
18644
18645 # The name of the directory that contains temporary libtool files.
18646 objdir=$objdir
18647
18648 # How to create reloadable object files.
18649 reload_flag=$lt_reload_flag
18650 reload_cmds=$lt_reload_cmds
18651
18652 # How to pass a linker flag through the compiler.
18653 wl=$lt_lt_prog_compiler_wl_GCJ
18654
18655 # Object file suffix (normally "o").
18656 objext="$ac_objext"
18657
18658 # Old archive suffix (normally "a").
18659 libext="$libext"
18660
18661 # Shared library suffix (normally ".so").
18662 shrext_cmds='$shrext_cmds'
18663
18664 # Executable file suffix (normally "").
18665 exeext="$exeext"
18666
18667 # Additional compiler flags for building library objects.
18668 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18669 pic_mode=$pic_mode
18670
18671 # What is the maximum length of a command?
18672 max_cmd_len=$lt_cv_sys_max_cmd_len
18673
18674 # Does compiler simultaneously support -c and -o options?
18675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18676
18677 # Must we lock files when doing compilation?
18678 need_locks=$lt_need_locks
18679
18680 # Do we need the lib prefix for modules?
18681 need_lib_prefix=$need_lib_prefix
18682
18683 # Do we need a version for libraries?
18684 need_version=$need_version
18685
18686 # Whether dlopen is supported.
18687 dlopen_support=$enable_dlopen
18688
18689 # Whether dlopen of programs is supported.
18690 dlopen_self=$enable_dlopen_self
18691
18692 # Whether dlopen of statically linked programs is supported.
18693 dlopen_self_static=$enable_dlopen_self_static
18694
18695 # Compiler flag to prevent dynamic linking.
18696 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18697
18698 # Compiler flag to turn off builtin functions.
18699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18700
18701 # Compiler flag to allow reflexive dlopens.
18702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18703
18704 # Compiler flag to generate shared objects directly from archives.
18705 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18706
18707 # Compiler flag to generate thread-safe objects.
18708 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18709
18710 # Library versioning type.
18711 version_type=$version_type
18712
18713 # Format of library name prefix.
18714 libname_spec=$lt_libname_spec
18715
18716 # List of archive names.  First name is the real one, the rest are links.
18717 # The last name is the one that the linker finds with -lNAME.
18718 library_names_spec=$lt_library_names_spec
18719
18720 # The coded name of the library, if different from the real name.
18721 soname_spec=$lt_soname_spec
18722
18723 # Commands used to build and install an old-style archive.
18724 RANLIB=$lt_RANLIB
18725 old_archive_cmds=$lt_old_archive_cmds_GCJ
18726 old_postinstall_cmds=$lt_old_postinstall_cmds
18727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18728
18729 # Create an old-style archive from a shared archive.
18730 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18731
18732 # Create a temporary old-style archive to link instead of a shared archive.
18733 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18734
18735 # Commands used to build and install a shared archive.
18736 archive_cmds=$lt_archive_cmds_GCJ
18737 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18738 postinstall_cmds=$lt_postinstall_cmds
18739 postuninstall_cmds=$lt_postuninstall_cmds
18740
18741 # Commands used to build a loadable module (assumed same as above if empty)
18742 module_cmds=$lt_module_cmds_GCJ
18743 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18744
18745 # Commands to strip libraries.
18746 old_striplib=$lt_old_striplib
18747 striplib=$lt_striplib
18748
18749 # Dependencies to place before the objects being linked to create a
18750 # shared library.
18751 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18752
18753 # Dependencies to place after the objects being linked to create a
18754 # shared library.
18755 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18756
18757 # Dependencies to place before the objects being linked to create a
18758 # shared library.
18759 predeps=$lt_predeps_GCJ
18760
18761 # Dependencies to place after the objects being linked to create a
18762 # shared library.
18763 postdeps=$lt_postdeps_GCJ
18764
18765 # The library search path used internally by the compiler when linking
18766 # a shared library.
18767 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18768
18769 # Method to check whether dependent libraries are shared objects.
18770 deplibs_check_method=$lt_deplibs_check_method
18771
18772 # Command to use when deplibs_check_method == file_magic.
18773 file_magic_cmd=$lt_file_magic_cmd
18774
18775 # Flag that allows shared libraries with undefined symbols to be built.
18776 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18777
18778 # Flag that forces no undefined symbols.
18779 no_undefined_flag=$lt_no_undefined_flag_GCJ
18780
18781 # Commands used to finish a libtool library installation in a directory.
18782 finish_cmds=$lt_finish_cmds
18783
18784 # Same as above, but a single script fragment to be evaled but not shown.
18785 finish_eval=$lt_finish_eval
18786
18787 # Take the output of nm and produce a listing of raw symbols and C names.
18788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18789
18790 # Transform the output of nm in a proper C declaration
18791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18792
18793 # Transform the output of nm in a C name address pair
18794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18795
18796 # This is the shared library runtime path variable.
18797 runpath_var=$runpath_var
18798
18799 # This is the shared library path variable.
18800 shlibpath_var=$shlibpath_var
18801
18802 # Is shlibpath searched before the hard-coded library search path?
18803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18804
18805 # How to hardcode a shared library path into an executable.
18806 hardcode_action=$hardcode_action_GCJ
18807
18808 # Whether we should hardcode library paths into libraries.
18809 hardcode_into_libs=$hardcode_into_libs
18810
18811 # Flag to hardcode \$libdir into a binary during linking.
18812 # This must work even if \$libdir does not exist.
18813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18814
18815 # If ld is used when linking, flag to hardcode \$libdir into
18816 # a binary during linking. This must work even if \$libdir does
18817 # not exist.
18818 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18819
18820 # Whether we need a single -rpath flag with a separated argument.
18821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18822
18823 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18824 # resulting binary.
18825 hardcode_direct=$hardcode_direct_GCJ
18826
18827 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18828 # resulting binary.
18829 hardcode_minus_L=$hardcode_minus_L_GCJ
18830
18831 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18832 # the resulting binary.
18833 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18834
18835 # Set to yes if building a shared library automatically hardcodes DIR into the library
18836 # and all subsequent libraries and executables linked against it.
18837 hardcode_automatic=$hardcode_automatic_GCJ
18838
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at relink time.
18841 variables_saved_for_relink="$variables_saved_for_relink"
18842
18843 # Whether libtool must link a program against all its dependency libraries.
18844 link_all_deplibs=$link_all_deplibs_GCJ
18845
18846 # Compile-time system search path for libraries
18847 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18848
18849 # Run-time system search path for libraries
18850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18851
18852 # Fix the shell variable \$srcfile for the compiler.
18853 fix_srcfile_path="$fix_srcfile_path_GCJ"
18854
18855 # Set to yes if exported symbols are required.
18856 always_export_symbols=$always_export_symbols_GCJ
18857
18858 # The commands to list exported symbols.
18859 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18860
18861 # The commands to extract the exported symbol list from a shared archive.
18862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18863
18864 # Symbols that should not be listed in the preloaded symbols.
18865 exclude_expsyms=$lt_exclude_expsyms_GCJ
18866
18867 # Symbols that must always be exported.
18868 include_expsyms=$lt_include_expsyms_GCJ
18869
18870 # ### END LIBTOOL TAG CONFIG: $tagname
18871
18872 __EOF__
18873
18874
18875 else
18876   # If there is no Makefile yet, we rely on a make rule to execute
18877   # `config.status --recheck' to rerun these tests and create the
18878   # libtool script then.
18879   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18880   if test -f "$ltmain_in"; then
18881     test -f Makefile && make "$ltmain"
18882   fi
18883 fi
18884
18885
18886 ac_ext=c
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892 CC="$lt_save_CC"
18893
18894         else
18895           tagname=""
18896         fi
18897         ;;
18898
18899       RC)
18900
18901
18902 # Source file extension for RC test sources.
18903 ac_ext=rc
18904
18905 # Object file extension for compiled RC test sources.
18906 objext=o
18907 objext_RC=$objext
18908
18909 # Code to be used in simple compile tests
18910 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18911
18912 # Code to be used in simple link tests
18913 lt_simple_link_test_code="$lt_simple_compile_test_code"
18914
18915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18916
18917 # If no C compiler was specified, use CC.
18918 LTCC=${LTCC-"$CC"}
18919
18920 # If no C compiler flags were specified, use CFLAGS.
18921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18922
18923 # Allow CC to be a program name with arguments.
18924 compiler=$CC
18925
18926
18927 # save warnings/boilerplate of simple test code
18928 ac_outfile=conftest.$ac_objext
18929 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18931 _lt_compiler_boilerplate=`cat conftest.err`
18932 $rm conftest*
18933
18934 ac_outfile=conftest.$ac_objext
18935 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18937 _lt_linker_boilerplate=`cat conftest.err`
18938 $rm conftest*
18939
18940
18941 # Allow CC to be a program name with arguments.
18942 lt_save_CC="$CC"
18943 CC=${RC-"windres"}
18944 compiler=$CC
18945 compiler_RC=$CC
18946 for cc_temp in $compiler""; do
18947   case $cc_temp in
18948     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18949     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18950     \-*) ;;
18951     *) break;;
18952   esac
18953 done
18954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18955
18956 lt_cv_prog_compiler_c_o_RC=yes
18957
18958 # The else clause should only fire when bootstrapping the
18959 # libtool distribution, otherwise you forgot to ship ltmain.sh
18960 # with your package, and you will get complaints that there are
18961 # no rules to generate ltmain.sh.
18962 if test -f "$ltmain"; then
18963   # See if we are running on zsh, and set the options which allow our commands through
18964   # without removal of \ escapes.
18965   if test -n "${ZSH_VERSION+set}" ; then
18966     setopt NO_GLOB_SUBST
18967   fi
18968   # Now quote all the things that may contain metacharacters while being
18969   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18970   # variables and quote the copies for generation of the libtool script.
18971   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18972     SED SHELL STRIP \
18973     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18974     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18975     deplibs_check_method reload_flag reload_cmds need_locks \
18976     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18977     lt_cv_sys_global_symbol_to_c_name_address \
18978     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18979     old_postinstall_cmds old_postuninstall_cmds \
18980     compiler_RC \
18981     CC_RC \
18982     LD_RC \
18983     lt_prog_compiler_wl_RC \
18984     lt_prog_compiler_pic_RC \
18985     lt_prog_compiler_static_RC \
18986     lt_prog_compiler_no_builtin_flag_RC \
18987     export_dynamic_flag_spec_RC \
18988     thread_safe_flag_spec_RC \
18989     whole_archive_flag_spec_RC \
18990     enable_shared_with_static_runtimes_RC \
18991     old_archive_cmds_RC \
18992     old_archive_from_new_cmds_RC \
18993     predep_objects_RC \
18994     postdep_objects_RC \
18995     predeps_RC \
18996     postdeps_RC \
18997     compiler_lib_search_path_RC \
18998     archive_cmds_RC \
18999     archive_expsym_cmds_RC \
19000     postinstall_cmds_RC \
19001     postuninstall_cmds_RC \
19002     old_archive_from_expsyms_cmds_RC \
19003     allow_undefined_flag_RC \
19004     no_undefined_flag_RC \
19005     export_symbols_cmds_RC \
19006     hardcode_libdir_flag_spec_RC \
19007     hardcode_libdir_flag_spec_ld_RC \
19008     hardcode_libdir_separator_RC \
19009     hardcode_automatic_RC \
19010     module_cmds_RC \
19011     module_expsym_cmds_RC \
19012     lt_cv_prog_compiler_c_o_RC \
19013     exclude_expsyms_RC \
19014     include_expsyms_RC; do
19015
19016     case $var in
19017     old_archive_cmds_RC | \
19018     old_archive_from_new_cmds_RC | \
19019     archive_cmds_RC | \
19020     archive_expsym_cmds_RC | \
19021     module_cmds_RC | \
19022     module_expsym_cmds_RC | \
19023     old_archive_from_expsyms_cmds_RC | \
19024     export_symbols_cmds_RC | \
19025     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19026     postinstall_cmds | postuninstall_cmds | \
19027     old_postinstall_cmds | old_postuninstall_cmds | \
19028     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19029       # Double-quote double-evaled strings.
19030       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19031       ;;
19032     *)
19033       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19034       ;;
19035     esac
19036   done
19037
19038   case $lt_echo in
19039   *'\$0 --fallback-echo"')
19040     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19041     ;;
19042   esac
19043
19044 cfgfile="$ofile"
19045
19046   cat <<__EOF__ >> "$cfgfile"
19047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19048
19049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19050
19051 # Shell to use when invoking shell scripts.
19052 SHELL=$lt_SHELL
19053
19054 # Whether or not to build shared libraries.
19055 build_libtool_libs=$enable_shared
19056
19057 # Whether or not to build static libraries.
19058 build_old_libs=$enable_static
19059
19060 # Whether or not to add -lc for building shared libraries.
19061 build_libtool_need_lc=$archive_cmds_need_lc_RC
19062
19063 # Whether or not to disallow shared libs when runtime libs are static
19064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19065
19066 # Whether or not to optimize for fast installation.
19067 fast_install=$enable_fast_install
19068
19069 # The host system.
19070 host_alias=$host_alias
19071 host=$host
19072 host_os=$host_os
19073
19074 # The build system.
19075 build_alias=$build_alias
19076 build=$build
19077 build_os=$build_os
19078
19079 # An echo program that does not interpret backslashes.
19080 echo=$lt_echo
19081
19082 # The archiver.
19083 AR=$lt_AR
19084 AR_FLAGS=$lt_AR_FLAGS
19085
19086 # A C compiler.
19087 LTCC=$lt_LTCC
19088
19089 # LTCC compiler flags.
19090 LTCFLAGS=$lt_LTCFLAGS
19091
19092 # A language-specific compiler.
19093 CC=$lt_compiler_RC
19094
19095 # Is the compiler the GNU C compiler?
19096 with_gcc=$GCC_RC
19097
19098 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19099 gcc_ver=\`gcc -dumpversion\`
19100
19101 # An ERE matcher.
19102 EGREP=$lt_EGREP
19103
19104 # The linker used to build libraries.
19105 LD=$lt_LD_RC
19106
19107 # Whether we need hard or soft links.
19108 LN_S=$lt_LN_S
19109
19110 # A BSD-compatible nm program.
19111 NM=$lt_NM
19112
19113 # A symbol stripping program
19114 STRIP=$lt_STRIP
19115
19116 # Used to examine libraries when file_magic_cmd begins "file"
19117 MAGIC_CMD=$MAGIC_CMD
19118
19119 # Used on cygwin: DLL creation program.
19120 DLLTOOL="$DLLTOOL"
19121
19122 # Used on cygwin: object dumper.
19123 OBJDUMP="$OBJDUMP"
19124
19125 # Used on cygwin: assembler.
19126 AS="$AS"
19127
19128 # The name of the directory that contains temporary libtool files.
19129 objdir=$objdir
19130
19131 # How to create reloadable object files.
19132 reload_flag=$lt_reload_flag
19133 reload_cmds=$lt_reload_cmds
19134
19135 # How to pass a linker flag through the compiler.
19136 wl=$lt_lt_prog_compiler_wl_RC
19137
19138 # Object file suffix (normally "o").
19139 objext="$ac_objext"
19140
19141 # Old archive suffix (normally "a").
19142 libext="$libext"
19143
19144 # Shared library suffix (normally ".so").
19145 shrext_cmds='$shrext_cmds'
19146
19147 # Executable file suffix (normally "").
19148 exeext="$exeext"
19149
19150 # Additional compiler flags for building library objects.
19151 pic_flag=$lt_lt_prog_compiler_pic_RC
19152 pic_mode=$pic_mode
19153
19154 # What is the maximum length of a command?
19155 max_cmd_len=$lt_cv_sys_max_cmd_len
19156
19157 # Does compiler simultaneously support -c and -o options?
19158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19159
19160 # Must we lock files when doing compilation?
19161 need_locks=$lt_need_locks
19162
19163 # Do we need the lib prefix for modules?
19164 need_lib_prefix=$need_lib_prefix
19165
19166 # Do we need a version for libraries?
19167 need_version=$need_version
19168
19169 # Whether dlopen is supported.
19170 dlopen_support=$enable_dlopen
19171
19172 # Whether dlopen of programs is supported.
19173 dlopen_self=$enable_dlopen_self
19174
19175 # Whether dlopen of statically linked programs is supported.
19176 dlopen_self_static=$enable_dlopen_self_static
19177
19178 # Compiler flag to prevent dynamic linking.
19179 link_static_flag=$lt_lt_prog_compiler_static_RC
19180
19181 # Compiler flag to turn off builtin functions.
19182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19183
19184 # Compiler flag to allow reflexive dlopens.
19185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19186
19187 # Compiler flag to generate shared objects directly from archives.
19188 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19189
19190 # Compiler flag to generate thread-safe objects.
19191 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19192
19193 # Library versioning type.
19194 version_type=$version_type
19195
19196 # Format of library name prefix.
19197 libname_spec=$lt_libname_spec
19198
19199 # List of archive names.  First name is the real one, the rest are links.
19200 # The last name is the one that the linker finds with -lNAME.
19201 library_names_spec=$lt_library_names_spec
19202
19203 # The coded name of the library, if different from the real name.
19204 soname_spec=$lt_soname_spec
19205
19206 # Commands used to build and install an old-style archive.
19207 RANLIB=$lt_RANLIB
19208 old_archive_cmds=$lt_old_archive_cmds_RC
19209 old_postinstall_cmds=$lt_old_postinstall_cmds
19210 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19211
19212 # Create an old-style archive from a shared archive.
19213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19214
19215 # Create a temporary old-style archive to link instead of a shared archive.
19216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19217
19218 # Commands used to build and install a shared archive.
19219 archive_cmds=$lt_archive_cmds_RC
19220 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19221 postinstall_cmds=$lt_postinstall_cmds
19222 postuninstall_cmds=$lt_postuninstall_cmds
19223
19224 # Commands used to build a loadable module (assumed same as above if empty)
19225 module_cmds=$lt_module_cmds_RC
19226 module_expsym_cmds=$lt_module_expsym_cmds_RC
19227
19228 # Commands to strip libraries.
19229 old_striplib=$lt_old_striplib
19230 striplib=$lt_striplib
19231
19232 # Dependencies to place before the objects being linked to create a
19233 # shared library.
19234 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19235
19236 # Dependencies to place after the objects being linked to create a
19237 # shared library.
19238 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19239
19240 # Dependencies to place before the objects being linked to create a
19241 # shared library.
19242 predeps=$lt_predeps_RC
19243
19244 # Dependencies to place after the objects being linked to create a
19245 # shared library.
19246 postdeps=$lt_postdeps_RC
19247
19248 # The library search path used internally by the compiler when linking
19249 # a shared library.
19250 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19251
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19254
19255 # Command to use when deplibs_check_method == file_magic.
19256 file_magic_cmd=$lt_file_magic_cmd
19257
19258 # Flag that allows shared libraries with undefined symbols to be built.
19259 allow_undefined_flag=$lt_allow_undefined_flag_RC
19260
19261 # Flag that forces no undefined symbols.
19262 no_undefined_flag=$lt_no_undefined_flag_RC
19263
19264 # Commands used to finish a libtool library installation in a directory.
19265 finish_cmds=$lt_finish_cmds
19266
19267 # Same as above, but a single script fragment to be evaled but not shown.
19268 finish_eval=$lt_finish_eval
19269
19270 # Take the output of nm and produce a listing of raw symbols and C names.
19271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19272
19273 # Transform the output of nm in a proper C declaration
19274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19275
19276 # Transform the output of nm in a C name address pair
19277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19278
19279 # This is the shared library runtime path variable.
19280 runpath_var=$runpath_var
19281
19282 # This is the shared library path variable.
19283 shlibpath_var=$shlibpath_var
19284
19285 # Is shlibpath searched before the hard-coded library search path?
19286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19287
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action_RC
19290
19291 # Whether we should hardcode library paths into libraries.
19292 hardcode_into_libs=$hardcode_into_libs
19293
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist.
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19297
19298 # If ld is used when linking, flag to hardcode \$libdir into
19299 # a binary during linking. This must work even if \$libdir does
19300 # not exist.
19301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19302
19303 # Whether we need a single -rpath flag with a separated argument.
19304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19305
19306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19307 # resulting binary.
19308 hardcode_direct=$hardcode_direct_RC
19309
19310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_RC
19313
19314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19315 # the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19317
19318 # Set to yes if building a shared library automatically hardcodes DIR into the library
19319 # and all subsequent libraries and executables linked against it.
19320 hardcode_automatic=$hardcode_automatic_RC
19321
19322 # Variables whose values should be saved in libtool wrapper scripts and
19323 # restored at relink time.
19324 variables_saved_for_relink="$variables_saved_for_relink"
19325
19326 # Whether libtool must link a program against all its dependency libraries.
19327 link_all_deplibs=$link_all_deplibs_RC
19328
19329 # Compile-time system search path for libraries
19330 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19331
19332 # Run-time system search path for libraries
19333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19334
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path="$fix_srcfile_path_RC"
19337
19338 # Set to yes if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_RC
19340
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_RC
19343
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19346
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms_RC
19349
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms_RC
19352
19353 # ### END LIBTOOL TAG CONFIG: $tagname
19354
19355 __EOF__
19356
19357
19358 else
19359   # If there is no Makefile yet, we rely on a make rule to execute
19360   # `config.status --recheck' to rerun these tests and create the
19361   # libtool script then.
19362   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19363   if test -f "$ltmain_in"; then
19364     test -f Makefile && make "$ltmain"
19365   fi
19366 fi
19367
19368
19369 ac_ext=c
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374
19375 CC="$lt_save_CC"
19376
19377         ;;
19378
19379       *)
19380         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19381 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19382    { (exit 1); exit 1; }; }
19383         ;;
19384       esac
19385
19386       # Append the new tag name to the list of available tags.
19387       if test -n "$tagname" ; then
19388       available_tags="$available_tags $tagname"
19389     fi
19390     fi
19391   done
19392   IFS="$lt_save_ifs"
19393
19394   # Now substitute the updated list of available tags.
19395   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19396     mv "${ofile}T" "$ofile"
19397     chmod +x "$ofile"
19398   else
19399     rm -f "${ofile}T"
19400     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19401 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19402    { (exit 1); exit 1; }; }
19403   fi
19404 fi
19405
19406
19407
19408 # This can be used to rebuild libtool when needed
19409 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19410
19411 # Always use our own libtool.
19412 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19413
19414 # Prevent multiple expansion
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435 ac_ext=c
19436 ac_cpp='$CPP $CPPFLAGS'
19437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19440 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19441 $as_echo_n "checking how to run the C preprocessor... " >&6; }
19442 # On Suns, sometimes $CPP names a directory.
19443 if test -n "$CPP" && test -d "$CPP"; then
19444   CPP=
19445 fi
19446 if test -z "$CPP"; then
19447   if test "${ac_cv_prog_CPP+set}" = set; then
19448   $as_echo_n "(cached) " >&6
19449 else
19450       # Double quotes because CPP needs to be expanded
19451     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19452     do
19453       ac_preproc_ok=false
19454 for ac_c_preproc_warn_flag in '' yes
19455 do
19456   # Use a header file that comes with gcc, so configuring glibc
19457   # with a fresh cross-compiler works.
19458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459   # <limits.h> exists even on freestanding compilers.
19460   # On the NeXT, cc -E runs the code through the compiler's parser,
19461   # not just through cpp. "Syntax error" is here to catch this case.
19462   cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 #ifdef __STDC__
19469 # include <limits.h>
19470 #else
19471 # include <assert.h>
19472 #endif
19473                      Syntax error
19474 _ACEOF
19475 if { (ac_try="$ac_cpp conftest.$ac_ext"
19476 case "(($ac_try" in
19477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478   *) ac_try_echo=$ac_try;;
19479 esac
19480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } >/dev/null && {
19489          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19490          test ! -s conftest.err
19491        }; then
19492   :
19493 else
19494   $as_echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497   # Broken: fails on valid input.
19498 continue
19499 fi
19500
19501 rm -f conftest.err conftest.$ac_ext
19502
19503   # OK, works on sane cases.  Now check whether nonexistent headers
19504   # can be detected and how.
19505   cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 #include <ac_nonexistent.h>
19512 _ACEOF
19513 if { (ac_try="$ac_cpp conftest.$ac_ext"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19519 $as_echo "$ac_try_echo") >&5
19520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19521   ac_status=$?
19522   grep -v '^ *+' conftest.er1 >conftest.err
19523   rm -f conftest.er1
19524   cat conftest.err >&5
19525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); } >/dev/null && {
19527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19528          test ! -s conftest.err
19529        }; then
19530   # Broken: success on invalid input.
19531 continue
19532 else
19533   $as_echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19535
19536   # Passes both tests.
19537 ac_preproc_ok=:
19538 break
19539 fi
19540
19541 rm -f conftest.err conftest.$ac_ext
19542
19543 done
19544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19545 rm -f conftest.err conftest.$ac_ext
19546 if $ac_preproc_ok; then
19547   break
19548 fi
19549
19550     done
19551     ac_cv_prog_CPP=$CPP
19552
19553 fi
19554   CPP=$ac_cv_prog_CPP
19555 else
19556   ac_cv_prog_CPP=$CPP
19557 fi
19558 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
19559 $as_echo "$CPP" >&6; }
19560 ac_preproc_ok=false
19561 for ac_c_preproc_warn_flag in '' yes
19562 do
19563   # Use a header file that comes with gcc, so configuring glibc
19564   # with a fresh cross-compiler works.
19565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19566   # <limits.h> exists even on freestanding compilers.
19567   # On the NeXT, cc -E runs the code through the compiler's parser,
19568   # not just through cpp. "Syntax error" is here to catch this case.
19569   cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575 #ifdef __STDC__
19576 # include <limits.h>
19577 #else
19578 # include <assert.h>
19579 #endif
19580                      Syntax error
19581 _ACEOF
19582 if { (ac_try="$ac_cpp conftest.$ac_ext"
19583 case "(($ac_try" in
19584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585   *) ac_try_echo=$ac_try;;
19586 esac
19587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19588 $as_echo "$ac_try_echo") >&5
19589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } >/dev/null && {
19596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19597          test ! -s conftest.err
19598        }; then
19599   :
19600 else
19601   $as_echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604   # Broken: fails on valid input.
19605 continue
19606 fi
19607
19608 rm -f conftest.err conftest.$ac_ext
19609
19610   # OK, works on sane cases.  Now check whether nonexistent headers
19611   # can be detected and how.
19612   cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618 #include <ac_nonexistent.h>
19619 _ACEOF
19620 if { (ac_try="$ac_cpp conftest.$ac_ext"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19626 $as_echo "$ac_try_echo") >&5
19627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } >/dev/null && {
19634          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19635          test ! -s conftest.err
19636        }; then
19637   # Broken: success on invalid input.
19638 continue
19639 else
19640   $as_echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643   # Passes both tests.
19644 ac_preproc_ok=:
19645 break
19646 fi
19647
19648 rm -f conftest.err conftest.$ac_ext
19649
19650 done
19651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19652 rm -f conftest.err conftest.$ac_ext
19653 if $ac_preproc_ok; then
19654   :
19655 else
19656   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19658 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19659 See \`config.log' for more details." >&5
19660 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19661 See \`config.log' for more details." >&2;}
19662    { (exit 1); exit 1; }; }; }
19663 fi
19664
19665 ac_ext=c
19666 ac_cpp='$CPP $CPPFLAGS'
19667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670
19671 # Find a good install program.  We prefer a C program (faster),
19672 # so one script is as good as another.  But avoid the broken or
19673 # incompatible versions:
19674 # SysV /etc/install, /usr/sbin/install
19675 # SunOS /usr/etc/install
19676 # IRIX /sbin/install
19677 # AIX /bin/install
19678 # AmigaOS /C/install, which installs bootblocks on floppy discs
19679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19682 # OS/2's system install, which has a completely different semantic
19683 # ./install, which can be erroneously created by make from ./install.sh.
19684 # Reject install programs that cannot install multiple files.
19685 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19687 if test -z "$INSTALL"; then
19688 if test "${ac_cv_path_install+set}" = set; then
19689   $as_echo_n "(cached) " >&6
19690 else
19691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19692 for as_dir in $PATH
19693 do
19694   IFS=$as_save_IFS
19695   test -z "$as_dir" && as_dir=.
19696   # Account for people who put trailing slashes in PATH elements.
19697 case $as_dir/ in
19698   ./ | .// | /cC/* | \
19699   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19700   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19701   /usr/ucb/* ) ;;
19702   *)
19703     # OSF1 and SCO ODT 3.0 have their own names for install.
19704     # Don't use installbsd from OSF since it installs stuff as root
19705     # by default.
19706     for ac_prog in ginstall scoinst install; do
19707       for ac_exec_ext in '' $ac_executable_extensions; do
19708         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19709           if test $ac_prog = install &&
19710             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19711             # AIX install.  It has an incompatible calling convention.
19712             :
19713           elif test $ac_prog = install &&
19714             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19715             # program-specific install script used by HP pwplus--don't use.
19716             :
19717           else
19718             rm -rf conftest.one conftest.two conftest.dir
19719             echo one > conftest.one
19720             echo two > conftest.two
19721             mkdir conftest.dir
19722             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19723               test -s conftest.one && test -s conftest.two &&
19724               test -s conftest.dir/conftest.one &&
19725               test -s conftest.dir/conftest.two
19726             then
19727               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19728               break 3
19729             fi
19730           fi
19731         fi
19732       done
19733     done
19734     ;;
19735 esac
19736
19737 done
19738 IFS=$as_save_IFS
19739
19740 rm -rf conftest.one conftest.two conftest.dir
19741
19742 fi
19743   if test "${ac_cv_path_install+set}" = set; then
19744     INSTALL=$ac_cv_path_install
19745   else
19746     # As a last resort, use the slow shell script.  Don't cache a
19747     # value for INSTALL within a source directory, because that will
19748     # break other packages using the cache if that directory is
19749     # removed, or if the value is a relative name.
19750     INSTALL=$ac_install_sh
19751   fi
19752 fi
19753 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19754 $as_echo "$INSTALL" >&6; }
19755
19756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19757 # It thinks the first close brace ends the variable substitution.
19758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19759
19760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19761
19762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19763
19764 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19765 $as_echo_n "checking whether ln -s works... " >&6; }
19766 LN_S=$as_ln_s
19767 if test "$LN_S" = "ln -s"; then
19768   { $as_echo "$as_me:$LINENO: result: yes" >&5
19769 $as_echo "yes" >&6; }
19770 else
19771   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19772 $as_echo "no, using $LN_S" >&6; }
19773 fi
19774
19775 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19776 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19777 set x ${MAKE-make}
19778 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19779 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19780   $as_echo_n "(cached) " >&6
19781 else
19782   cat >conftest.make <<\_ACEOF
19783 SHELL = /bin/sh
19784 all:
19785         @echo '@@@%%%=$(MAKE)=@@@%%%'
19786 _ACEOF
19787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19789   *@@@%%%=?*=@@@%%%*)
19790     eval ac_cv_prog_make_${ac_make}_set=yes;;
19791   *)
19792     eval ac_cv_prog_make_${ac_make}_set=no;;
19793 esac
19794 rm -f conftest.make
19795 fi
19796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19797   { $as_echo "$as_me:$LINENO: result: yes" >&5
19798 $as_echo "yes" >&6; }
19799   SET_MAKE=
19800 else
19801   { $as_echo "$as_me:$LINENO: result: no" >&5
19802 $as_echo "no" >&6; }
19803   SET_MAKE="MAKE=${MAKE-make}"
19804 fi
19805
19806
19807 # Checks for libraries.
19808
19809 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19812   $as_echo_n "(cached) " >&6
19813 else
19814   ac_check_lib_save_LIBS=$LIBS
19815 LIBS="-ldl  $LIBS"
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h.  */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h.  */
19822
19823 /* Override any GCC internal prototype to avoid an error.
19824    Use char because int might match the return type of a GCC
19825    builtin and then its argument prototype would still apply.  */
19826 #ifdef __cplusplus
19827 extern "C"
19828 #endif
19829 char dlopen ();
19830 int
19831 main ()
19832 {
19833 return dlopen ();
19834   ;
19835   return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846   (eval "$ac_link") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && {
19853          test -z "$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        } && test -s conftest$ac_exeext && {
19856          test "$cross_compiling" = yes ||
19857          $as_test_x conftest$ac_exeext
19858        }; then
19859   ac_cv_lib_dl_dlopen=yes
19860 else
19861   $as_echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864         ac_cv_lib_dl_dlopen=no
19865 fi
19866
19867 rm -rf conftest.dSYM
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869       conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19873 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19874 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
19875   cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBDL 1
19877 _ACEOF
19878
19879   LIBS="-ldl $LIBS"
19880
19881 fi
19882
19883 { $as_echo "$as_me:$LINENO: checking for main in -llog4cxx" >&5
19884 $as_echo_n "checking for main in -llog4cxx... " >&6; }
19885 if test "${ac_cv_lib_log4cxx_main+set}" = set; then
19886   $as_echo_n "(cached) " >&6
19887 else
19888   ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-llog4cxx  $LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h.  */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h.  */
19896
19897
19898 int
19899 main ()
19900 {
19901 return main ();
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19913 $as_echo "$ac_try_echo") >&5
19914   (eval "$ac_link") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } && {
19921          test -z "$ac_c_werror_flag" ||
19922          test ! -s conftest.err
19923        } && test -s conftest$ac_exeext && {
19924          test "$cross_compiling" = yes ||
19925          $as_test_x conftest$ac_exeext
19926        }; then
19927   ac_cv_lib_log4cxx_main=yes
19928 else
19929   $as_echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19931
19932         ac_cv_lib_log4cxx_main=no
19933 fi
19934
19935 rm -rf conftest.dSYM
19936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19937       conftest$ac_exeext conftest.$ac_ext
19938 LIBS=$ac_check_lib_save_LIBS
19939 fi
19940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_log4cxx_main" >&5
19941 $as_echo "$ac_cv_lib_log4cxx_main" >&6; }
19942 if test "x$ac_cv_lib_log4cxx_main" = x""yes; then
19943   :
19944 else
19945   { { $as_echo "$as_me:$LINENO: error: l7vsd require log4cxx library. " >&5
19946 $as_echo "$as_me: error: l7vsd require log4cxx library. " >&2;}
19947    { (exit 1); exit 1; }; }
19948 fi
19949
19950 { $as_echo "$as_me:$LINENO: checking for main in -lrt" >&5
19951 $as_echo_n "checking for main in -lrt... " >&6; }
19952 if test "${ac_cv_lib_rt_main+set}" = set; then
19953   $as_echo_n "(cached) " >&6
19954 else
19955   ac_check_lib_save_LIBS=$LIBS
19956 LIBS="-lrt  $LIBS"
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963
19964
19965 int
19966 main ()
19967 {
19968 return main ();
19969   ;
19970   return 0;
19971 }
19972 _ACEOF
19973 rm -f conftest.$ac_objext conftest$ac_exeext
19974 if { (ac_try="$ac_link"
19975 case "(($ac_try" in
19976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977   *) ac_try_echo=$ac_try;;
19978 esac
19979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19980 $as_echo "$ac_try_echo") >&5
19981   (eval "$ac_link") 2>conftest.er1
19982   ac_status=$?
19983   grep -v '^ *+' conftest.er1 >conftest.err
19984   rm -f conftest.er1
19985   cat conftest.err >&5
19986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); } && {
19988          test -z "$ac_c_werror_flag" ||
19989          test ! -s conftest.err
19990        } && test -s conftest$ac_exeext && {
19991          test "$cross_compiling" = yes ||
19992          $as_test_x conftest$ac_exeext
19993        }; then
19994   ac_cv_lib_rt_main=yes
19995 else
19996   $as_echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999         ac_cv_lib_rt_main=no
20000 fi
20001
20002 rm -rf conftest.dSYM
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004       conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20006 fi
20007 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_main" >&5
20008 $as_echo "$ac_cv_lib_rt_main" >&6; }
20009 if test "x$ac_cv_lib_rt_main" = x""yes; then
20010   :
20011 else
20012   { { $as_echo "$as_me:$LINENO: error: l7vsd require rt library. " >&5
20013 $as_echo "$as_me: error: l7vsd require rt library. " >&2;}
20014    { (exit 1); exit 1; }; }
20015 fi
20016
20017 { $as_echo "$as_me:$LINENO: checking for main in -lboost_thread-mt" >&5
20018 $as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
20019 if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then
20020   $as_echo_n "(cached) " >&6
20021 else
20022   ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lboost_thread-mt  $LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030
20031
20032 int
20033 main ()
20034 {
20035 return main ();
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048   (eval "$ac_link") 2>conftest.er1
20049   ac_status=$?
20050   grep -v '^ *+' conftest.er1 >conftest.err
20051   rm -f conftest.er1
20052   cat conftest.err >&5
20053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } && {
20055          test -z "$ac_c_werror_flag" ||
20056          test ! -s conftest.err
20057        } && test -s conftest$ac_exeext && {
20058          test "$cross_compiling" = yes ||
20059          $as_test_x conftest$ac_exeext
20060        }; then
20061   ac_cv_lib_boost_thread_mt_main=yes
20062 else
20063   $as_echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066         ac_cv_lib_boost_thread_mt_main=no
20067 fi
20068
20069 rm -rf conftest.dSYM
20070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20071       conftest$ac_exeext conftest.$ac_ext
20072 LIBS=$ac_check_lib_save_LIBS
20073 fi
20074 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_mt_main" >&5
20075 $as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
20076 if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then
20077   :
20078 else
20079   { { $as_echo "$as_me:$LINENO: error: l7vsd require boost library. " >&5
20080 $as_echo "$as_me: error: l7vsd require boost library. " >&2;}
20081    { (exit 1); exit 1; }; }
20082 fi
20083
20084 { $as_echo "$as_me:$LINENO: checking for main in -lboost_system-mt" >&5
20085 $as_echo_n "checking for main in -lboost_system-mt... " >&6; }
20086 if test "${ac_cv_lib_boost_system_mt_main+set}" = set; then
20087   $as_echo_n "(cached) " >&6
20088 else
20089   ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-lboost_system-mt  $LIBS"
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h.  */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h.  */
20097
20098
20099 int
20100 main ()
20101 {
20102 return main ();
20103   ;
20104   return 0;
20105 }
20106 _ACEOF
20107 rm -f conftest.$ac_objext conftest$ac_exeext
20108 if { (ac_try="$ac_link"
20109 case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20114 $as_echo "$ac_try_echo") >&5
20115   (eval "$ac_link") 2>conftest.er1
20116   ac_status=$?
20117   grep -v '^ *+' conftest.er1 >conftest.err
20118   rm -f conftest.er1
20119   cat conftest.err >&5
20120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); } && {
20122          test -z "$ac_c_werror_flag" ||
20123          test ! -s conftest.err
20124        } && test -s conftest$ac_exeext && {
20125          test "$cross_compiling" = yes ||
20126          $as_test_x conftest$ac_exeext
20127        }; then
20128   ac_cv_lib_boost_system_mt_main=yes
20129 else
20130   $as_echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133         ac_cv_lib_boost_system_mt_main=no
20134 fi
20135
20136 rm -rf conftest.dSYM
20137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20138       conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20140 fi
20141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_system_mt_main" >&5
20142 $as_echo "$ac_cv_lib_boost_system_mt_main" >&6; }
20143 if test "x$ac_cv_lib_boost_system_mt_main" = x""yes; then
20144   :
20145 else
20146   { { $as_echo "$as_me:$LINENO: error: l7vsd require boost library. " >&5
20147 $as_echo "$as_me: error: l7vsd require boost library. " >&2;}
20148    { (exit 1); exit 1; }; }
20149 fi
20150
20151
20152 # Checks for header files.
20153
20154
20155 for ac_header in limits.h unistd.h
20156 do
20157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20159   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20160 $as_echo_n "checking for $ac_header... " >&6; }
20161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20162   $as_echo_n "(cached) " >&6
20163 fi
20164 ac_res=`eval 'as_val=${'$as_ac_Header'}
20165                  $as_echo "$as_val"'`
20166                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20167 $as_echo "$ac_res" >&6; }
20168 else
20169   # Is the header compilable?
20170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20171 $as_echo_n "checking $ac_header usability... " >&6; }
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178 $ac_includes_default
20179 #include <$ac_header>
20180 _ACEOF
20181 rm -f conftest.$ac_objext
20182 if { (ac_try="$ac_compile"
20183 case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20188 $as_echo "$ac_try_echo") >&5
20189   (eval "$ac_compile") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } && {
20196          test -z "$ac_c_werror_flag" ||
20197          test ! -s conftest.err
20198        } && test -s conftest.$ac_objext; then
20199   ac_header_compiler=yes
20200 else
20201   $as_echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204         ac_header_compiler=no
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20209 $as_echo "$ac_header_compiler" >&6; }
20210
20211 # Is the header present?
20212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20213 $as_echo_n "checking $ac_header presence... " >&6; }
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 #include <$ac_header>
20221 _ACEOF
20222 if { (ac_try="$ac_cpp conftest.$ac_ext"
20223 case "(($ac_try" in
20224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225   *) ac_try_echo=$ac_try;;
20226 esac
20227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20228 $as_echo "$ac_try_echo") >&5
20229   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } >/dev/null && {
20236          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20237          test ! -s conftest.err
20238        }; then
20239   ac_header_preproc=yes
20240 else
20241   $as_echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244   ac_header_preproc=no
20245 fi
20246
20247 rm -f conftest.err conftest.$ac_ext
20248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20249 $as_echo "$ac_header_preproc" >&6; }
20250
20251 # So?  What about this header?
20252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20253   yes:no: )
20254     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20256     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20258     ac_header_preproc=yes
20259     ;;
20260   no:yes:* )
20261     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20263     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20264 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20268 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20269     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20271     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20273
20274     ;;
20275 esac
20276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20277 $as_echo_n "checking for $ac_header... " >&6; }
20278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20279   $as_echo_n "(cached) " >&6
20280 else
20281   eval "$as_ac_Header=\$ac_header_preproc"
20282 fi
20283 ac_res=`eval 'as_val=${'$as_ac_Header'}
20284                  $as_echo "$as_val"'`
20285                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20286 $as_echo "$ac_res" >&6; }
20287
20288 fi
20289 as_val=`eval 'as_val=${'$as_ac_Header'}
20290                  $as_echo "$as_val"'`
20291    if test "x$as_val" = x""yes; then
20292   cat >>confdefs.h <<_ACEOF
20293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20294 _ACEOF
20295
20296 fi
20297
20298 done
20299
20300
20301 # Checks for declarations.
20302 { $as_echo "$as_me:$LINENO: checking whether IP_TRANSPARENT is declared" >&5
20303 $as_echo_n "checking whether IP_TRANSPARENT is declared... " >&6; }
20304 if test "${ac_cv_have_decl_IP_TRANSPARENT+set}" = set; then
20305   $as_echo_n "(cached) " >&6
20306 else
20307   cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h.  */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h.  */
20313
20314         #include <sys/socket.h>
20315         #include <linux/in.h>
20316
20317
20318 int
20319 main ()
20320 {
20321 #ifndef IP_TRANSPARENT
20322   (void) IP_TRANSPARENT;
20323 #endif
20324
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20336 $as_echo "$ac_try_echo") >&5
20337   (eval "$ac_compile") 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } && {
20344          test -z "$ac_c_werror_flag" ||
20345          test ! -s conftest.err
20346        } && test -s conftest.$ac_objext; then
20347   ac_cv_have_decl_IP_TRANSPARENT=yes
20348 else
20349   $as_echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352         ac_cv_have_decl_IP_TRANSPARENT=no
20353 fi
20354
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 fi
20357 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_IP_TRANSPARENT" >&5
20358 $as_echo "$ac_cv_have_decl_IP_TRANSPARENT" >&6; }
20359 if test "x$ac_cv_have_decl_IP_TRANSPARENT" = x""yes; then
20360
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_DECL_IP_TRANSPARENT 1
20363 _ACEOF
20364
20365
20366 else
20367   cat >>confdefs.h <<_ACEOF
20368 #define HAVE_DECL_IP_TRANSPARENT 0
20369 _ACEOF
20370
20371
20372 fi
20373
20374
20375
20376 # Checks for typedefs, structures, and compiler characteristics.
20377 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20378 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20379 if test "${ac_cv_header_stdbool_h+set}" = set; then
20380   $as_echo_n "(cached) " >&6
20381 else
20382   cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388
20389 #include <stdbool.h>
20390 #ifndef bool
20391  "error: bool is not defined"
20392 #endif
20393 #ifndef false
20394  "error: false is not defined"
20395 #endif
20396 #if false
20397  "error: false is not 0"
20398 #endif
20399 #ifndef true
20400  "error: true is not defined"
20401 #endif
20402 #if true != 1
20403  "error: true is not 1"
20404 #endif
20405 #ifndef __bool_true_false_are_defined
20406  "error: __bool_true_false_are_defined is not defined"
20407 #endif
20408
20409         struct s { _Bool s: 1; _Bool t; } s;
20410
20411         char a[true == 1 ? 1 : -1];
20412         char b[false == 0 ? 1 : -1];
20413         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20414         char d[(bool) 0.5 == true ? 1 : -1];
20415         bool e = &s;
20416         char f[(_Bool) 0.0 == false ? 1 : -1];
20417         char g[true];
20418         char h[sizeof (_Bool)];
20419         char i[sizeof s.t];
20420         enum { j = false, k = true, l = false * true, m = true * 256 };
20421         /* The following fails for
20422            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20423         _Bool n[m];
20424         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20425         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20426 #       if defined __xlc__ || defined __GNUC__
20427          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20428             reported by James Lemley on 2005-10-05; see
20429             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20430             This test is not quite right, since xlc is allowed to
20431             reject this program, as the initializer for xlcbug is
20432             not one of the forms that C requires support for.
20433             However, doing the test right would require a runtime
20434             test, and that would make cross-compilation harder.
20435             Let us hope that IBM fixes the xlc bug, and also adds
20436             support for this kind of constant expression.  In the
20437             meantime, this test will reject xlc, which is OK, since
20438             our stdbool.h substitute should suffice.  We also test
20439             this with GCC, where it should work, to detect more
20440             quickly whether someone messes up the test in the
20441             future.  */
20442          char digs[] = "0123456789";
20443          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20444 #       endif
20445         /* Catch a bug in an HP-UX C compiler.  See
20446            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20447            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20448          */
20449         _Bool q = true;
20450         _Bool *pq = &q;
20451
20452 int
20453 main ()
20454 {
20455
20456         *pq |= q;
20457         *pq |= ! q;
20458         /* Refer to every declared value, to avoid compiler optimizations.  */
20459         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20460                 + !m + !n + !o + !p + !q + !pq);
20461
20462   ;
20463   return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext
20467 if { (ac_try="$ac_compile"
20468 case "(($ac_try" in
20469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470   *) ac_try_echo=$ac_try;;
20471 esac
20472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20473 $as_echo "$ac_try_echo") >&5
20474   (eval "$ac_compile") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } && {
20481          test -z "$ac_c_werror_flag" ||
20482          test ! -s conftest.err
20483        } && test -s conftest.$ac_objext; then
20484   ac_cv_header_stdbool_h=yes
20485 else
20486   $as_echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489         ac_cv_header_stdbool_h=no
20490 fi
20491
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 fi
20494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20495 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20496 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
20497 $as_echo_n "checking for _Bool... " >&6; }
20498 if test "${ac_cv_type__Bool+set}" = set; then
20499   $as_echo_n "(cached) " >&6
20500 else
20501   ac_cv_type__Bool=no
20502 cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 $ac_includes_default
20509 int
20510 main ()
20511 {
20512 if (sizeof (_Bool))
20513        return 0;
20514   ;
20515   return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20525 $as_echo "$ac_try_echo") >&5
20526   (eval "$ac_compile") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } && {
20533          test -z "$ac_c_werror_flag" ||
20534          test ! -s conftest.err
20535        } && test -s conftest.$ac_objext; then
20536   cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 $ac_includes_default
20543 int
20544 main ()
20545 {
20546 if (sizeof ((_Bool)))
20547           return 0;
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (ac_try="$ac_compile"
20554 case "(($ac_try" in
20555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556   *) ac_try_echo=$ac_try;;
20557 esac
20558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559 $as_echo "$ac_try_echo") >&5
20560   (eval "$ac_compile") 2>conftest.er1
20561   ac_status=$?
20562   grep -v '^ *+' conftest.er1 >conftest.err
20563   rm -f conftest.er1
20564   cat conftest.err >&5
20565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } && {
20567          test -z "$ac_c_werror_flag" ||
20568          test ! -s conftest.err
20569        } && test -s conftest.$ac_objext; then
20570   :
20571 else
20572   $as_echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575         ac_cv_type__Bool=yes
20576 fi
20577
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579 else
20580   $as_echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583
20584 fi
20585
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 fi
20588 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20589 $as_echo "$ac_cv_type__Bool" >&6; }
20590 if test "x$ac_cv_type__Bool" = x""yes; then
20591
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE__BOOL 1
20594 _ACEOF
20595
20596
20597 fi
20598
20599 if test $ac_cv_header_stdbool_h = yes; then
20600
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_STDBOOL_H 1
20603 _ACEOF
20604
20605 fi
20606
20607 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20608 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20609 if test "${ac_cv_c_const+set}" = set; then
20610   $as_echo_n "(cached) " >&6
20611 else
20612   cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h.  */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h.  */
20618
20619 int
20620 main ()
20621 {
20622 /* FIXME: Include the comments suggested by Paul. */
20623 #ifndef __cplusplus
20624   /* Ultrix mips cc rejects this.  */
20625   typedef int charset[2];
20626   const charset cs;
20627   /* SunOS 4.1.1 cc rejects this.  */
20628   char const *const *pcpcc;
20629   char **ppc;
20630   /* NEC SVR4.0.2 mips cc rejects this.  */
20631   struct point {int x, y;};
20632   static struct point const zero = {0,0};
20633   /* AIX XL C 1.02.0.0 rejects this.
20634      It does not let you subtract one const X* pointer from another in
20635      an arm of an if-expression whose if-part is not a constant
20636      expression */
20637   const char *g = "string";
20638   pcpcc = &g + (g ? g-g : 0);
20639   /* HPUX 7.0 cc rejects these. */
20640   ++pcpcc;
20641   ppc = (char**) pcpcc;
20642   pcpcc = (char const *const *) ppc;
20643   { /* SCO 3.2v4 cc rejects this.  */
20644     char *t;
20645     char const *s = 0 ? (char *) 0 : (char const *) 0;
20646
20647     *t++ = 0;
20648     if (s) return 0;
20649   }
20650   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20651     int x[] = {25, 17};
20652     const int *foo = &x[0];
20653     ++foo;
20654   }
20655   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20656     typedef const int *iptr;
20657     iptr p = 0;
20658     ++p;
20659   }
20660   { /* AIX XL C 1.02.0.0 rejects this saying
20661        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20662     struct s { int j; const int *ap[3]; };
20663     struct s *b; b->j = 5;
20664   }
20665   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20666     const int foo = 10;
20667     if (!foo) return 0;
20668   }
20669   return !cs[0] && !zero.x;
20670 #endif
20671
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20683 $as_echo "$ac_try_echo") >&5
20684   (eval "$ac_compile") 2>conftest.er1
20685   ac_status=$?
20686   grep -v '^ *+' conftest.er1 >conftest.err
20687   rm -f conftest.er1
20688   cat conftest.err >&5
20689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); } && {
20691          test -z "$ac_c_werror_flag" ||
20692          test ! -s conftest.err
20693        } && test -s conftest.$ac_objext; then
20694   ac_cv_c_const=yes
20695 else
20696   $as_echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20698
20699         ac_cv_c_const=no
20700 fi
20701
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20703 fi
20704 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20705 $as_echo "$ac_cv_c_const" >&6; }
20706 if test $ac_cv_c_const = no; then
20707
20708 cat >>confdefs.h <<\_ACEOF
20709 #define const /**/
20710 _ACEOF
20711
20712 fi
20713
20714 { $as_echo "$as_me:$LINENO: checking for inline" >&5
20715 $as_echo_n "checking for inline... " >&6; }
20716 if test "${ac_cv_c_inline+set}" = set; then
20717   $as_echo_n "(cached) " >&6
20718 else
20719   ac_cv_c_inline=no
20720 for ac_kw in inline __inline__ __inline; do
20721   cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #ifndef __cplusplus
20728 typedef int foo_t;
20729 static $ac_kw foo_t static_foo () {return 0; }
20730 $ac_kw foo_t foo () {return 0; }
20731 #endif
20732
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (ac_try="$ac_compile"
20736 case "(($ac_try" in
20737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738   *) ac_try_echo=$ac_try;;
20739 esac
20740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20741 $as_echo "$ac_try_echo") >&5
20742   (eval "$ac_compile") 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } && {
20749          test -z "$ac_c_werror_flag" ||
20750          test ! -s conftest.err
20751        } && test -s conftest.$ac_objext; then
20752   ac_cv_c_inline=$ac_kw
20753 else
20754   $as_echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757
20758 fi
20759
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761   test "$ac_cv_c_inline" != no && break
20762 done
20763
20764 fi
20765 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20766 $as_echo "$ac_cv_c_inline" >&6; }
20767
20768
20769 case $ac_cv_c_inline in
20770   inline | yes) ;;
20771   *)
20772     case $ac_cv_c_inline in
20773       no) ac_val=;;
20774       *) ac_val=$ac_cv_c_inline;;
20775     esac
20776     cat >>confdefs.h <<_ACEOF
20777 #ifndef __cplusplus
20778 #define inline $ac_val
20779 #endif
20780 _ACEOF
20781     ;;
20782 esac
20783
20784 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20785 $as_echo_n "checking for size_t... " >&6; }
20786 if test "${ac_cv_type_size_t+set}" = set; then
20787   $as_echo_n "(cached) " >&6
20788 else
20789   ac_cv_type_size_t=no
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796 $ac_includes_default
20797 int
20798 main ()
20799 {
20800 if (sizeof (size_t))
20801        return 0;
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest.$ac_objext
20807 if { (ac_try="$ac_compile"
20808 case "(($ac_try" in
20809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810   *) ac_try_echo=$ac_try;;
20811 esac
20812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20813 $as_echo "$ac_try_echo") >&5
20814   (eval "$ac_compile") 2>conftest.er1
20815   ac_status=$?
20816   grep -v '^ *+' conftest.er1 >conftest.err
20817   rm -f conftest.er1
20818   cat conftest.err >&5
20819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } && {
20821          test -z "$ac_c_werror_flag" ||
20822          test ! -s conftest.err
20823        } && test -s conftest.$ac_objext; then
20824   cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830 $ac_includes_default
20831 int
20832 main ()
20833 {
20834 if (sizeof ((size_t)))
20835           return 0;
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext
20841 if { (ac_try="$ac_compile"
20842 case "(($ac_try" in
20843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844   *) ac_try_echo=$ac_try;;
20845 esac
20846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20847 $as_echo "$ac_try_echo") >&5
20848   (eval "$ac_compile") 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } && {
20855          test -z "$ac_c_werror_flag" ||
20856          test ! -s conftest.err
20857        } && test -s conftest.$ac_objext; then
20858   :
20859 else
20860   $as_echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863         ac_cv_type_size_t=yes
20864 fi
20865
20866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20867 else
20868   $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875 fi
20876 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20877 $as_echo "$ac_cv_type_size_t" >&6; }
20878 if test "x$ac_cv_type_size_t" = x""yes; then
20879   :
20880 else
20881
20882 cat >>confdefs.h <<_ACEOF
20883 #define size_t unsigned int
20884 _ACEOF
20885
20886 fi
20887
20888 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20889 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20890 if test "${ac_cv_struct_tm+set}" = set; then
20891   $as_echo_n "(cached) " >&6
20892 else
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 #include <sys/types.h>
20900 #include <time.h>
20901
20902 int
20903 main ()
20904 {
20905 struct tm tm;
20906                                      int *p = &tm.tm_sec;
20907                                      return !p;
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext
20913 if { (ac_try="$ac_compile"
20914 case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20919 $as_echo "$ac_try_echo") >&5
20920   (eval "$ac_compile") 2>conftest.er1
20921   ac_status=$?
20922   grep -v '^ *+' conftest.er1 >conftest.err
20923   rm -f conftest.er1
20924   cat conftest.err >&5
20925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); } && {
20927          test -z "$ac_c_werror_flag" ||
20928          test ! -s conftest.err
20929        } && test -s conftest.$ac_objext; then
20930   ac_cv_struct_tm=time.h
20931 else
20932   $as_echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         ac_cv_struct_tm=sys/time.h
20936 fi
20937
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20939 fi
20940 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20941 $as_echo "$ac_cv_struct_tm" >&6; }
20942 if test $ac_cv_struct_tm = sys/time.h; then
20943
20944 cat >>confdefs.h <<\_ACEOF
20945 #define TM_IN_SYS_TIME 1
20946 _ACEOF
20947
20948 fi
20949
20950
20951 # Checks for library functions.
20952 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20953 $as_echo_n "checking for ANSI C header files... " >&6; }
20954 if test "${ac_cv_header_stdc+set}" = set; then
20955   $as_echo_n "(cached) " >&6
20956 else
20957   cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h.  */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h.  */
20963 #include <stdlib.h>
20964 #include <stdarg.h>
20965 #include <string.h>
20966 #include <float.h>
20967
20968 int
20969 main ()
20970 {
20971
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20983 $as_echo "$ac_try_echo") >&5
20984   (eval "$ac_compile") 2>conftest.er1
20985   ac_status=$?
20986   grep -v '^ *+' conftest.er1 >conftest.err
20987   rm -f conftest.er1
20988   cat conftest.err >&5
20989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } && {
20991          test -z "$ac_c_werror_flag" ||
20992          test ! -s conftest.err
20993        } && test -s conftest.$ac_objext; then
20994   ac_cv_header_stdc=yes
20995 else
20996   $as_echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999         ac_cv_header_stdc=no
21000 fi
21001
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003
21004 if test $ac_cv_header_stdc = yes; then
21005   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012 #include <string.h>
21013
21014 _ACEOF
21015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21016   $EGREP "memchr" >/dev/null 2>&1; then
21017   :
21018 else
21019   ac_cv_header_stdc=no
21020 fi
21021 rm -f conftest*
21022
21023 fi
21024
21025 if test $ac_cv_header_stdc = yes; then
21026   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21027   cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033 #include <stdlib.h>
21034
21035 _ACEOF
21036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21037   $EGREP "free" >/dev/null 2>&1; then
21038   :
21039 else
21040   ac_cv_header_stdc=no
21041 fi
21042 rm -f conftest*
21043
21044 fi
21045
21046 if test $ac_cv_header_stdc = yes; then
21047   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21048   if test "$cross_compiling" = yes; then
21049   :
21050 else
21051   cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h.  */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h.  */
21057 #include <ctype.h>
21058 #include <stdlib.h>
21059 #if ((' ' & 0x0FF) == 0x020)
21060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21062 #else
21063 # define ISLOWER(c) \
21064                    (('a' <= (c) && (c) <= 'i') \
21065                      || ('j' <= (c) && (c) <= 'r') \
21066                      || ('s' <= (c) && (c) <= 'z'))
21067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21068 #endif
21069
21070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21071 int
21072 main ()
21073 {
21074   int i;
21075   for (i = 0; i < 256; i++)
21076     if (XOR (islower (i), ISLOWER (i))
21077         || toupper (i) != TOUPPER (i))
21078       return 2;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest$ac_exeext
21083 if { (ac_try="$ac_link"
21084 case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21089 $as_echo "$ac_try_echo") >&5
21090   (eval "$ac_link") 2>&5
21091   ac_status=$?
21092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21094   { (case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21099 $as_echo "$ac_try_echo") >&5
21100   (eval "$ac_try") 2>&5
21101   ac_status=$?
21102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; }; then
21104   :
21105 else
21106   $as_echo "$as_me: program exited with status $ac_status" >&5
21107 $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110 ( exit $ac_status )
21111 ac_cv_header_stdc=no
21112 fi
21113 rm -rf conftest.dSYM
21114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21115 fi
21116
21117
21118 fi
21119 fi
21120 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21121 $as_echo "$ac_cv_header_stdc" >&6; }
21122 if test $ac_cv_header_stdc = yes; then
21123
21124 cat >>confdefs.h <<\_ACEOF
21125 #define STDC_HEADERS 1
21126 _ACEOF
21127
21128 fi
21129
21130 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21131 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21132 if test "${ac_cv_header_time+set}" = set; then
21133   $as_echo_n "(cached) " >&6
21134 else
21135   cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 #include <sys/types.h>
21142 #include <sys/time.h>
21143 #include <time.h>
21144
21145 int
21146 main ()
21147 {
21148 if ((struct tm *) 0)
21149 return 0;
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21161 $as_echo "$ac_try_echo") >&5
21162   (eval "$ac_compile") 2>conftest.er1
21163   ac_status=$?
21164   grep -v '^ *+' conftest.er1 >conftest.err
21165   rm -f conftest.er1
21166   cat conftest.err >&5
21167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } && {
21169          test -z "$ac_c_werror_flag" ||
21170          test ! -s conftest.err
21171        } && test -s conftest.$ac_objext; then
21172   ac_cv_header_time=yes
21173 else
21174   $as_echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177         ac_cv_header_time=no
21178 fi
21179
21180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21181 fi
21182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21183 $as_echo "$ac_cv_header_time" >&6; }
21184 if test $ac_cv_header_time = yes; then
21185
21186 cat >>confdefs.h <<\_ACEOF
21187 #define TIME_WITH_SYS_TIME 1
21188 _ACEOF
21189
21190 fi
21191
21192
21193
21194
21195
21196 for ac_header in $ac_header_list
21197 do
21198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21200   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21201 $as_echo_n "checking for $ac_header... " >&6; }
21202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21203   $as_echo_n "(cached) " >&6
21204 fi
21205 ac_res=`eval 'as_val=${'$as_ac_Header'}
21206                  $as_echo "$as_val"'`
21207                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21208 $as_echo "$ac_res" >&6; }
21209 else
21210   # Is the header compilable?
21211 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21212 $as_echo_n "checking $ac_header usability... " >&6; }
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 $ac_includes_default
21220 #include <$ac_header>
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21229 $as_echo "$ac_try_echo") >&5
21230   (eval "$ac_compile") 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } && {
21237          test -z "$ac_c_werror_flag" ||
21238          test ! -s conftest.err
21239        } && test -s conftest.$ac_objext; then
21240   ac_header_compiler=yes
21241 else
21242   $as_echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245         ac_header_compiler=no
21246 fi
21247
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21250 $as_echo "$ac_header_compiler" >&6; }
21251
21252 # Is the header present?
21253 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21254 $as_echo_n "checking $ac_header presence... " >&6; }
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h.  */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h.  */
21261 #include <$ac_header>
21262 _ACEOF
21263 if { (ac_try="$ac_cpp conftest.$ac_ext"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21269 $as_echo "$ac_try_echo") >&5
21270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } >/dev/null && {
21277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21278          test ! -s conftest.err
21279        }; then
21280   ac_header_preproc=yes
21281 else
21282   $as_echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285   ac_header_preproc=no
21286 fi
21287
21288 rm -f conftest.err conftest.$ac_ext
21289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 $as_echo "$ac_header_preproc" >&6; }
21291
21292 # So?  What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21294   yes:no: )
21295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21296 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21298 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21299     ac_header_preproc=yes
21300     ;;
21301   no:yes:* )
21302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21303 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21305 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21307 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21309 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21311 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21313 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21314
21315     ;;
21316 esac
21317 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21318 $as_echo_n "checking for $ac_header... " >&6; }
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320   $as_echo_n "(cached) " >&6
21321 else
21322   eval "$as_ac_Header=\$ac_header_preproc"
21323 fi
21324 ac_res=`eval 'as_val=${'$as_ac_Header'}
21325                  $as_echo "$as_val"'`
21326                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21327 $as_echo "$ac_res" >&6; }
21328
21329 fi
21330 as_val=`eval 'as_val=${'$as_ac_Header'}
21331                  $as_echo "$as_val"'`
21332    if test "x$as_val" = x""yes; then
21333   cat >>confdefs.h <<_ACEOF
21334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21335 _ACEOF
21336
21337 fi
21338
21339 done
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349 for ac_func in $ac_func_list
21350 do
21351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21353 $as_echo_n "checking for $ac_func... " >&6; }
21354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21355   $as_echo_n "(cached) " >&6
21356 else
21357   cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h.  */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h.  */
21363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21365 #define $ac_func innocuous_$ac_func
21366
21367 /* System header to define __stub macros and hopefully few prototypes,
21368     which can conflict with char $ac_func (); below.
21369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21370     <limits.h> exists even on freestanding compilers.  */
21371
21372 #ifdef __STDC__
21373 # include <limits.h>
21374 #else
21375 # include <assert.h>
21376 #endif
21377
21378 #undef $ac_func
21379
21380 /* Override any GCC internal prototype to avoid an error.
21381    Use char because int might match the return type of a GCC
21382    builtin and then its argument prototype would still apply.  */
21383 #ifdef __cplusplus
21384 extern "C"
21385 #endif
21386 char $ac_func ();
21387 /* The GNU C library defines this for functions which it implements
21388     to always fail with ENOSYS.  Some functions are actually named
21389     something starting with __ and the normal name is an alias.  */
21390 #if defined __stub_$ac_func || defined __stub___$ac_func
21391 choke me
21392 #endif
21393
21394 int
21395 main ()
21396 {
21397 return $ac_func ();
21398   ;
21399   return 0;
21400 }
21401 _ACEOF
21402 rm -f conftest.$ac_objext conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410   (eval "$ac_link") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && {
21417          test -z "$ac_c_werror_flag" ||
21418          test ! -s conftest.err
21419        } && test -s conftest$ac_exeext && {
21420          test "$cross_compiling" = yes ||
21421          $as_test_x conftest$ac_exeext
21422        }; then
21423   eval "$as_ac_var=yes"
21424 else
21425   $as_echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428         eval "$as_ac_var=no"
21429 fi
21430
21431 rm -rf conftest.dSYM
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433       conftest$ac_exeext conftest.$ac_ext
21434 fi
21435 ac_res=`eval 'as_val=${'$as_ac_var'}
21436                  $as_echo "$as_val"'`
21437                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21438 $as_echo "$ac_res" >&6; }
21439 as_val=`eval 'as_val=${'$as_ac_var'}
21440                  $as_echo "$as_val"'`
21441    if test "x$as_val" = x""yes; then
21442   cat >>confdefs.h <<_ACEOF
21443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21444 _ACEOF
21445
21446 fi
21447 done
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
21466 $as_echo_n "checking for working mktime... " >&6; }
21467 if test "${ac_cv_func_working_mktime+set}" = set; then
21468   $as_echo_n "(cached) " >&6
21469 else
21470   if test "$cross_compiling" = yes; then
21471   ac_cv_func_working_mktime=no
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 /* Test program from Paul Eggert and Tony Leneis.  */
21480 #ifdef TIME_WITH_SYS_TIME
21481 # include <sys/time.h>
21482 # include <time.h>
21483 #else
21484 # ifdef HAVE_SYS_TIME_H
21485 #  include <sys/time.h>
21486 # else
21487 #  include <time.h>
21488 # endif
21489 #endif
21490
21491 #include <limits.h>
21492 #include <stdlib.h>
21493
21494 #ifdef HAVE_UNISTD_H
21495 # include <unistd.h>
21496 #endif
21497
21498 #ifndef HAVE_ALARM
21499 # define alarm(X) /* empty */
21500 #endif
21501
21502 /* Work around redefinition to rpl_putenv by other config tests.  */
21503 #undef putenv
21504
21505 static time_t time_t_max;
21506 static time_t time_t_min;
21507
21508 /* Values we'll use to set the TZ environment variable.  */
21509 static char *tz_strings[] = {
21510   (char *) 0, "TZ=GMT0", "TZ=JST-9",
21511   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21512 };
21513 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21514
21515 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21516    Based on a problem report from Andreas Jaeger.  */
21517 static int
21518 spring_forward_gap ()
21519 {
21520   /* glibc (up to about 1998-10-07) failed this test. */
21521   struct tm tm;
21522
21523   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21524      instead of "TZ=America/Vancouver" in order to detect the bug even
21525      on systems that don't support the Olson extension, or don't have the
21526      full zoneinfo tables installed.  */
21527   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21528
21529   tm.tm_year = 98;
21530   tm.tm_mon = 3;
21531   tm.tm_mday = 5;
21532   tm.tm_hour = 2;
21533   tm.tm_min = 0;
21534   tm.tm_sec = 0;
21535   tm.tm_isdst = -1;
21536   return mktime (&tm) != (time_t) -1;
21537 }
21538
21539 static int
21540 mktime_test1 (now)
21541      time_t now;
21542 {
21543   struct tm *lt;
21544   return ! (lt = localtime (&now)) || mktime (lt) == now;
21545 }
21546
21547 static int
21548 mktime_test (now)
21549      time_t now;
21550 {
21551   return (mktime_test1 (now)
21552           && mktime_test1 ((time_t) (time_t_max - now))
21553           && mktime_test1 ((time_t) (time_t_min + now)));
21554 }
21555
21556 static int
21557 irix_6_4_bug ()
21558 {
21559   /* Based on code from Ariel Faigon.  */
21560   struct tm tm;
21561   tm.tm_year = 96;
21562   tm.tm_mon = 3;
21563   tm.tm_mday = 0;
21564   tm.tm_hour = 0;
21565   tm.tm_min = 0;
21566   tm.tm_sec = 0;
21567   tm.tm_isdst = -1;
21568   mktime (&tm);
21569   return tm.tm_mon == 2 && tm.tm_mday == 31;
21570 }
21571
21572 static int
21573 bigtime_test (j)
21574      int j;
21575 {
21576   struct tm tm;
21577   time_t now;
21578   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21579   now = mktime (&tm);
21580   if (now != (time_t) -1)
21581     {
21582       struct tm *lt = localtime (&now);
21583       if (! (lt
21584              && lt->tm_year == tm.tm_year
21585              && lt->tm_mon == tm.tm_mon
21586              && lt->tm_mday == tm.tm_mday
21587              && lt->tm_hour == tm.tm_hour
21588              && lt->tm_min == tm.tm_min
21589              && lt->tm_sec == tm.tm_sec
21590              && lt->tm_yday == tm.tm_yday
21591              && lt->tm_wday == tm.tm_wday
21592              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21593                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21594         return 0;
21595     }
21596   return 1;
21597 }
21598
21599 static int
21600 year_2050_test ()
21601 {
21602   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21603      ignoring leap seconds.  */
21604   unsigned long int answer = 2527315200UL;
21605
21606   struct tm tm;
21607   time_t t;
21608   tm.tm_year = 2050 - 1900;
21609   tm.tm_mon = 2 - 1;
21610   tm.tm_mday = 1;
21611   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21612   tm.tm_isdst = -1;
21613
21614   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21615      instead of "TZ=America/Vancouver" in order to detect the bug even
21616      on systems that don't support the Olson extension, or don't have the
21617      full zoneinfo tables installed.  */
21618   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21619
21620   t = mktime (&tm);
21621
21622   /* Check that the result is either a failure, or close enough
21623      to the correct answer that we can assume the discrepancy is
21624      due to leap seconds.  */
21625   return (t == (time_t) -1
21626           || (0 < t && answer - 120 <= t && t <= answer + 120));
21627 }
21628
21629 int
21630 main ()
21631 {
21632   time_t t, delta;
21633   int i, j;
21634
21635   /* This test makes some buggy mktime implementations loop.
21636      Give up after 60 seconds; a mktime slower than that
21637      isn't worth using anyway.  */
21638   alarm (60);
21639
21640   for (;;)
21641     {
21642       t = (time_t_max << 1) + 1;
21643       if (t <= time_t_max)
21644         break;
21645       time_t_max = t;
21646     }
21647   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
21648
21649   delta = time_t_max / 997; /* a suitable prime number */
21650   for (i = 0; i < N_STRINGS; i++)
21651     {
21652       if (tz_strings[i])
21653         putenv (tz_strings[i]);
21654
21655       for (t = 0; t <= time_t_max - delta; t += delta)
21656         if (! mktime_test (t))
21657           return 1;
21658       if (! (mktime_test ((time_t) 1)
21659              && mktime_test ((time_t) (60 * 60))
21660              && mktime_test ((time_t) (60 * 60 * 24))))
21661         return 1;
21662
21663       for (j = 1; ; j <<= 1)
21664         if (! bigtime_test (j))
21665           return 1;
21666         else if (INT_MAX / 2 < j)
21667           break;
21668       if (! bigtime_test (INT_MAX))
21669         return 1;
21670     }
21671   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
21672 }
21673 _ACEOF
21674 rm -f conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678   *) ac_try_echo=$ac_try;;
21679 esac
21680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21681 $as_echo "$ac_try_echo") >&5
21682   (eval "$ac_link") 2>&5
21683   ac_status=$?
21684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21686   { (case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692   (eval "$ac_try") 2>&5
21693   ac_status=$?
21694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); }; }; then
21696   ac_cv_func_working_mktime=yes
21697 else
21698   $as_echo "$as_me: program exited with status $ac_status" >&5
21699 $as_echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21701
21702 ( exit $ac_status )
21703 ac_cv_func_working_mktime=no
21704 fi
21705 rm -rf conftest.dSYM
21706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21707 fi
21708
21709
21710 fi
21711 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21712 $as_echo "$ac_cv_func_working_mktime" >&6; }
21713 if test $ac_cv_func_working_mktime = no; then
21714   case " $LIBOBJS " in
21715   *" mktime.$ac_objext "* ) ;;
21716   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
21717  ;;
21718 esac
21719
21720 fi
21721
21722
21723 for ac_func in strftime
21724 do
21725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21727 $as_echo_n "checking for $ac_func... " >&6; }
21728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21729   $as_echo_n "(cached) " >&6
21730 else
21731   cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21739 #define $ac_func innocuous_$ac_func
21740
21741 /* System header to define __stub macros and hopefully few prototypes,
21742     which can conflict with char $ac_func (); below.
21743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21744     <limits.h> exists even on freestanding compilers.  */
21745
21746 #ifdef __STDC__
21747 # include <limits.h>
21748 #else
21749 # include <assert.h>
21750 #endif
21751
21752 #undef $ac_func
21753
21754 /* Override any GCC internal prototype to avoid an error.
21755    Use char because int might match the return type of a GCC
21756    builtin and then its argument prototype would still apply.  */
21757 #ifdef __cplusplus
21758 extern "C"
21759 #endif
21760 char $ac_func ();
21761 /* The GNU C library defines this for functions which it implements
21762     to always fail with ENOSYS.  Some functions are actually named
21763     something starting with __ and the normal name is an alias.  */
21764 #if defined __stub_$ac_func || defined __stub___$ac_func
21765 choke me
21766 #endif
21767
21768 int
21769 main ()
21770 {
21771 return $ac_func ();
21772   ;
21773   return 0;
21774 }
21775 _ACEOF
21776 rm -f conftest.$ac_objext conftest$ac_exeext
21777 if { (ac_try="$ac_link"
21778 case "(($ac_try" in
21779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780   *) ac_try_echo=$ac_try;;
21781 esac
21782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21783 $as_echo "$ac_try_echo") >&5
21784   (eval "$ac_link") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && {
21791          test -z "$ac_c_werror_flag" ||
21792          test ! -s conftest.err
21793        } && test -s conftest$ac_exeext && {
21794          test "$cross_compiling" = yes ||
21795          $as_test_x conftest$ac_exeext
21796        }; then
21797   eval "$as_ac_var=yes"
21798 else
21799   $as_echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802         eval "$as_ac_var=no"
21803 fi
21804
21805 rm -rf conftest.dSYM
21806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21807       conftest$ac_exeext conftest.$ac_ext
21808 fi
21809 ac_res=`eval 'as_val=${'$as_ac_var'}
21810                  $as_echo "$as_val"'`
21811                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21812 $as_echo "$ac_res" >&6; }
21813 as_val=`eval 'as_val=${'$as_ac_var'}
21814                  $as_echo "$as_val"'`
21815    if test "x$as_val" = x""yes; then
21816   cat >>confdefs.h <<_ACEOF
21817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21818 _ACEOF
21819
21820 else
21821   # strftime is in -lintl on SCO UNIX.
21822 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21823 $as_echo_n "checking for strftime in -lintl... " >&6; }
21824 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21825   $as_echo_n "(cached) " >&6
21826 else
21827   ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lintl  $LIBS"
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835
21836 /* Override any GCC internal prototype to avoid an error.
21837    Use char because int might match the return type of a GCC
21838    builtin and then its argument prototype would still apply.  */
21839 #ifdef __cplusplus
21840 extern "C"
21841 #endif
21842 char strftime ();
21843 int
21844 main ()
21845 {
21846 return strftime ();
21847   ;
21848   return 0;
21849 }
21850 _ACEOF
21851 rm -f conftest.$ac_objext conftest$ac_exeext
21852 if { (ac_try="$ac_link"
21853 case "(($ac_try" in
21854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855   *) ac_try_echo=$ac_try;;
21856 esac
21857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21858 $as_echo "$ac_try_echo") >&5
21859   (eval "$ac_link") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } && {
21866          test -z "$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        } && test -s conftest$ac_exeext && {
21869          test "$cross_compiling" = yes ||
21870          $as_test_x conftest$ac_exeext
21871        }; then
21872   ac_cv_lib_intl_strftime=yes
21873 else
21874   $as_echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877         ac_cv_lib_intl_strftime=no
21878 fi
21879
21880 rm -rf conftest.dSYM
21881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21882       conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21884 fi
21885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21886 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21887 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
21888   cat >>confdefs.h <<\_ACEOF
21889 #define HAVE_STRFTIME 1
21890 _ACEOF
21891
21892 LIBS="-lintl $LIBS"
21893 fi
21894
21895 fi
21896 done
21897
21898
21899
21900
21901 for ac_func in gethostname localtime_r memset
21902 do
21903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21905 $as_echo_n "checking for $ac_func... " >&6; }
21906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21907   $as_echo_n "(cached) " >&6
21908 else
21909   cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h.  */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h.  */
21915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21917 #define $ac_func innocuous_$ac_func
21918
21919 /* System header to define __stub macros and hopefully few prototypes,
21920     which can conflict with char $ac_func (); below.
21921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21922     <limits.h> exists even on freestanding compilers.  */
21923
21924 #ifdef __STDC__
21925 # include <limits.h>
21926 #else
21927 # include <assert.h>
21928 #endif
21929
21930 #undef $ac_func
21931
21932 /* Override any GCC internal prototype to avoid an error.
21933    Use char because int might match the return type of a GCC
21934    builtin and then its argument prototype would still apply.  */
21935 #ifdef __cplusplus
21936 extern "C"
21937 #endif
21938 char $ac_func ();
21939 /* The GNU C library defines this for functions which it implements
21940     to always fail with ENOSYS.  Some functions are actually named
21941     something starting with __ and the normal name is an alias.  */
21942 #if defined __stub_$ac_func || defined __stub___$ac_func
21943 choke me
21944 #endif
21945
21946 int
21947 main ()
21948 {
21949 return $ac_func ();
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958   *) ac_try_echo=$ac_try;;
21959 esac
21960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21961 $as_echo "$ac_try_echo") >&5
21962   (eval "$ac_link") 2>conftest.er1
21963   ac_status=$?
21964   grep -v '^ *+' conftest.er1 >conftest.err
21965   rm -f conftest.er1
21966   cat conftest.err >&5
21967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); } && {
21969          test -z "$ac_c_werror_flag" ||
21970          test ! -s conftest.err
21971        } && test -s conftest$ac_exeext && {
21972          test "$cross_compiling" = yes ||
21973          $as_test_x conftest$ac_exeext
21974        }; then
21975   eval "$as_ac_var=yes"
21976 else
21977   $as_echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980         eval "$as_ac_var=no"
21981 fi
21982
21983 rm -rf conftest.dSYM
21984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21985       conftest$ac_exeext conftest.$ac_ext
21986 fi
21987 ac_res=`eval 'as_val=${'$as_ac_var'}
21988                  $as_echo "$as_val"'`
21989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21990 $as_echo "$ac_res" >&6; }
21991 as_val=`eval 'as_val=${'$as_ac_var'}
21992                  $as_echo "$as_val"'`
21993    if test "x$as_val" = x""yes; then
21994   cat >>confdefs.h <<_ACEOF
21995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21996 _ACEOF
21997
21998 fi
21999 done
22000
22001
22002 # application-specific option
22003 if test `uname -m` == "x86_64"; then
22004         libdir=/usr/lib64
22005
22006 else
22007         libdir=/usr/lib
22008
22009         CXXFLAGS=-march=i686
22010
22011 fi
22012
22013
22014 # Check whether --with-l7vs-moddir was given.
22015 if test "${with_l7vs_moddir+set}" = set; then
22016   withval=$with_l7vs_moddir;    l7vs_moddir="$withval"
22017 else
22018         l7vs_moddir="${libdir}/l7vs"
22019
22020 fi
22021
22022
22023
22024 # Check whether --with-l7vsadm-sockdir was given.
22025 if test "${with_l7vsadm_sockdir+set}" = set; then
22026   withval=$with_l7vsadm_sockdir;        l7vsadm_sockdir="$withval"
22027 else
22028         l7vsadm_sockdir="/var/run/l7vs"
22029
22030 fi
22031
22032
22033
22034 # Check whether --with-l7vs-buffer-size was given.
22035 if test "${with_l7vs_buffer_size+set}" = set; then
22036   withval=$with_l7vs_buffer_size;       l7vs_max_buffer_size="$withval"
22037 else
22038         l7vs_max_buffer_size=4096
22039
22040 fi
22041
22042
22043
22044 # Check whether --with-l7vs-config-dir was given.
22045 if test "${with_l7vs_config_dir+set}" = set; then
22046   withval=$with_l7vs_config_dir;        l7vs_config="$withval"
22047 else
22048         l7vs_config="/etc/l7vs/l7vs.cf"
22049
22050 fi
22051
22052
22053 CC=g++
22054
22055 exec_prefix=/usr
22056
22057
22058
22059
22060
22061
22062
22063 ultramonkeyl7_version=ultramonkeyl7-$VERSION
22064
22065
22066 ac_config_files="$ac_config_files doc/Makefile doc/conf/Makefile doc/sslfiles/Makefile doc/heartbeat-ra/Makefile l7directord/Makefile l7vsd/Makefile l7vsd/init.d/Makefile l7vsd/module/Makefile l7vsd/module/protocol/Makefile l7vsd/module/schedule/Makefile l7vsd/src/Makefile snmpagent/Makefile Makefile"
22067
22068
22069 ac_config_files="$ac_config_files l7vsd.spec"
22070
22071 cat >confcache <<\_ACEOF
22072 # This file is a shell script that caches the results of configure
22073 # tests run on this system so they can be shared between configure
22074 # scripts and configure runs, see configure's option --config-cache.
22075 # It is not useful on other systems.  If it contains results you don't
22076 # want to keep, you may remove or edit it.
22077 #
22078 # config.status only pays attention to the cache file if you give it
22079 # the --recheck option to rerun configure.
22080 #
22081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22083 # following values.
22084
22085 _ACEOF
22086
22087 # The following way of writing the cache mishandles newlines in values,
22088 # but we know of no workaround that is simple, portable, and efficient.
22089 # So, we kill variables containing newlines.
22090 # Ultrix sh set writes to stderr and can't be redirected directly,
22091 # and sets the high bit in the cache file unless we assign to the vars.
22092 (
22093   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22094     eval ac_val=\$$ac_var
22095     case $ac_val in #(
22096     *${as_nl}*)
22097       case $ac_var in #(
22098       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22100       esac
22101       case $ac_var in #(
22102       _ | IFS | as_nl) ;; #(
22103       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22104       *) $as_unset $ac_var ;;
22105       esac ;;
22106     esac
22107   done
22108
22109   (set) 2>&1 |
22110     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22111     *${as_nl}ac_space=\ *)
22112       # `set' does not quote correctly, so add quotes (double-quote
22113       # substitution turns \\\\ into \\, and sed turns \\ into \).
22114       sed -n \
22115         "s/'/'\\\\''/g;
22116           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22117       ;; #(
22118     *)
22119       # `set' quotes correctly as required by POSIX, so do not add quotes.
22120       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22121       ;;
22122     esac |
22123     sort
22124 ) |
22125   sed '
22126      /^ac_cv_env_/b end
22127      t clear
22128      :clear
22129      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22130      t end
22131      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22132      :end' >>confcache
22133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22134   if test -w "$cache_file"; then
22135     test "x$cache_file" != "x/dev/null" &&
22136       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22137 $as_echo "$as_me: updating cache $cache_file" >&6;}
22138     cat confcache >$cache_file
22139   else
22140     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22142   fi
22143 fi
22144 rm -f confcache
22145
22146 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22147 # Let make expand exec_prefix.
22148 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22149
22150 DEFS=-DHAVE_CONFIG_H
22151
22152 ac_libobjs=
22153 ac_ltlibobjs=
22154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22155   # 1. Remove the extension, and $U if already installed.
22156   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22157   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22158   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22159   #    will be set to the directory where LIBOBJS objects are built.
22160   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22161   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22162 done
22163 LIBOBJS=$ac_libobjs
22164
22165 LTLIBOBJS=$ac_ltlibobjs
22166
22167
22168 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22169   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22170 Usually this means the macro was only invoked conditionally." >&5
22171 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22172 Usually this means the macro was only invoked conditionally." >&2;}
22173    { (exit 1); exit 1; }; }
22174 fi
22175 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22176   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22177 Usually this means the macro was only invoked conditionally." >&5
22178 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22179 Usually this means the macro was only invoked conditionally." >&2;}
22180    { (exit 1); exit 1; }; }
22181 fi
22182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22183   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22184 Usually this means the macro was only invoked conditionally." >&5
22185 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22186 Usually this means the macro was only invoked conditionally." >&2;}
22187    { (exit 1); exit 1; }; }
22188 fi
22189
22190 : ${CONFIG_STATUS=./config.status}
22191 ac_write_fail=0
22192 ac_clean_files_save=$ac_clean_files
22193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22194 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22196 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22197 #! $SHELL
22198 # Generated by $as_me.
22199 # Run this file to recreate the current configuration.
22200 # Compiler output produced by configure, useful for debugging
22201 # configure, is in config.log if it exists.
22202
22203 debug=false
22204 ac_cs_recheck=false
22205 ac_cs_silent=false
22206 SHELL=\${CONFIG_SHELL-$SHELL}
22207 _ACEOF
22208
22209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22210 ## --------------------- ##
22211 ## M4sh Initialization.  ##
22212 ## --------------------- ##
22213
22214 # Be more Bourne compatible
22215 DUALCASE=1; export DUALCASE # for MKS sh
22216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22217   emulate sh
22218   NULLCMD=:
22219   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22220   # is contrary to our usage.  Disable this feature.
22221   alias -g '${1+"$@"}'='"$@"'
22222   setopt NO_GLOB_SUBST
22223 else
22224   case `(set -o) 2>/dev/null` in
22225   *posix*) set -o posix ;;
22226 esac
22227
22228 fi
22229
22230
22231
22232
22233 # PATH needs CR
22234 # Avoid depending upon Character Ranges.
22235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22238 as_cr_digits='0123456789'
22239 as_cr_alnum=$as_cr_Letters$as_cr_digits
22240
22241 as_nl='
22242 '
22243 export as_nl
22244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22248 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22249   as_echo='printf %s\n'
22250   as_echo_n='printf %s'
22251 else
22252   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22253     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22254     as_echo_n='/usr/ucb/echo -n'
22255   else
22256     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22257     as_echo_n_body='eval
22258       arg=$1;
22259       case $arg in
22260       *"$as_nl"*)
22261         expr "X$arg" : "X\\(.*\\)$as_nl";
22262         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22263       esac;
22264       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22265     '
22266     export as_echo_n_body
22267     as_echo_n='sh -c $as_echo_n_body as_echo'
22268   fi
22269   export as_echo_body
22270   as_echo='sh -c $as_echo_body as_echo'
22271 fi
22272
22273 # The user is always right.
22274 if test "${PATH_SEPARATOR+set}" != set; then
22275   PATH_SEPARATOR=:
22276   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22277     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22278       PATH_SEPARATOR=';'
22279   }
22280 fi
22281
22282 # Support unset when possible.
22283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22284   as_unset=unset
22285 else
22286   as_unset=false
22287 fi
22288
22289
22290 # IFS
22291 # We need space, tab and new line, in precisely that order.  Quoting is
22292 # there to prevent editors from complaining about space-tab.
22293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22294 # splitting by setting IFS to empty value.)
22295 IFS=" ""        $as_nl"
22296
22297 # Find who we are.  Look in the path if we contain no directory separator.
22298 case $0 in
22299   *[\\/]* ) as_myself=$0 ;;
22300   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22301 for as_dir in $PATH
22302 do
22303   IFS=$as_save_IFS
22304   test -z "$as_dir" && as_dir=.
22305   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22306 done
22307 IFS=$as_save_IFS
22308
22309      ;;
22310 esac
22311 # We did not find ourselves, most probably we were run as `sh COMMAND'
22312 # in which case we are not to be found in the path.
22313 if test "x$as_myself" = x; then
22314   as_myself=$0
22315 fi
22316 if test ! -f "$as_myself"; then
22317   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22318   { (exit 1); exit 1; }
22319 fi
22320
22321 # Work around bugs in pre-3.0 UWIN ksh.
22322 for as_var in ENV MAIL MAILPATH
22323 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22324 done
22325 PS1='$ '
22326 PS2='> '
22327 PS4='+ '
22328
22329 # NLS nuisances.
22330 LC_ALL=C
22331 export LC_ALL
22332 LANGUAGE=C
22333 export LANGUAGE
22334
22335 # Required to use basename.
22336 if expr a : '\(a\)' >/dev/null 2>&1 &&
22337    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22338   as_expr=expr
22339 else
22340   as_expr=false
22341 fi
22342
22343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22344   as_basename=basename
22345 else
22346   as_basename=false
22347 fi
22348
22349
22350 # Name of the executable.
22351 as_me=`$as_basename -- "$0" ||
22352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22353          X"$0" : 'X\(//\)$' \| \
22354          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22355 $as_echo X/"$0" |
22356     sed '/^.*\/\([^/][^/]*\)\/*$/{
22357             s//\1/
22358             q
22359           }
22360           /^X\/\(\/\/\)$/{
22361             s//\1/
22362             q
22363           }
22364           /^X\/\(\/\).*/{
22365             s//\1/
22366             q
22367           }
22368           s/.*/./; q'`
22369
22370 # CDPATH.
22371 $as_unset CDPATH
22372
22373
22374
22375   as_lineno_1=$LINENO
22376   as_lineno_2=$LINENO
22377   test "x$as_lineno_1" != "x$as_lineno_2" &&
22378   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22379
22380   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22381   # uniformly replaced by the line number.  The first 'sed' inserts a
22382   # line-number line after each line using $LINENO; the second 'sed'
22383   # does the real work.  The second script uses 'N' to pair each
22384   # line-number line with the line containing $LINENO, and appends
22385   # trailing '-' during substitution so that $LINENO is not a special
22386   # case at line end.
22387   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22388   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22389   # E. McMahon (1931-1989) for sed's syntax.  :-)
22390   sed -n '
22391     p
22392     /[$]LINENO/=
22393   ' <$as_myself |
22394     sed '
22395       s/[$]LINENO.*/&-/
22396       t lineno
22397       b
22398       :lineno
22399       N
22400       :loop
22401       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22402       t loop
22403       s/-\n.*//
22404     ' >$as_me.lineno &&
22405   chmod +x "$as_me.lineno" ||
22406     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22407    { (exit 1); exit 1; }; }
22408
22409   # Don't try to exec as it changes $[0], causing all sort of problems
22410   # (the dirname of $[0] is not the place where we might find the
22411   # original and so on.  Autoconf is especially sensitive to this).
22412   . "./$as_me.lineno"
22413   # Exit status is that of the last command.
22414   exit
22415 }
22416
22417
22418 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22419   as_dirname=dirname
22420 else
22421   as_dirname=false
22422 fi
22423
22424 ECHO_C= ECHO_N= ECHO_T=
22425 case `echo -n x` in
22426 -n*)
22427   case `echo 'x\c'` in
22428   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22429   *)   ECHO_C='\c';;
22430   esac;;
22431 *)
22432   ECHO_N='-n';;
22433 esac
22434 if expr a : '\(a\)' >/dev/null 2>&1 &&
22435    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22436   as_expr=expr
22437 else
22438   as_expr=false
22439 fi
22440
22441 rm -f conf$$ conf$$.exe conf$$.file
22442 if test -d conf$$.dir; then
22443   rm -f conf$$.dir/conf$$.file
22444 else
22445   rm -f conf$$.dir
22446   mkdir conf$$.dir 2>/dev/null
22447 fi
22448 if (echo >conf$$.file) 2>/dev/null; then
22449   if ln -s conf$$.file conf$$ 2>/dev/null; then
22450     as_ln_s='ln -s'
22451     # ... but there are two gotchas:
22452     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22453     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22454     # In both cases, we have to default to `cp -p'.
22455     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22456       as_ln_s='cp -p'
22457   elif ln conf$$.file conf$$ 2>/dev/null; then
22458     as_ln_s=ln
22459   else
22460     as_ln_s='cp -p'
22461   fi
22462 else
22463   as_ln_s='cp -p'
22464 fi
22465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22466 rmdir conf$$.dir 2>/dev/null
22467
22468 if mkdir -p . 2>/dev/null; then
22469   as_mkdir_p=:
22470 else
22471   test -d ./-p && rmdir ./-p
22472   as_mkdir_p=false
22473 fi
22474
22475 if test -x / >/dev/null 2>&1; then
22476   as_test_x='test -x'
22477 else
22478   if ls -dL / >/dev/null 2>&1; then
22479     as_ls_L_option=L
22480   else
22481     as_ls_L_option=
22482   fi
22483   as_test_x='
22484     eval sh -c '\''
22485       if test -d "$1"; then
22486         test -d "$1/.";
22487       else
22488         case $1 in
22489         -*)set "./$1";;
22490         esac;
22491         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22492         ???[sx]*):;;*)false;;esac;fi
22493     '\'' sh
22494   '
22495 fi
22496 as_executable_p=$as_test_x
22497
22498 # Sed expression to map a string onto a valid CPP name.
22499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22500
22501 # Sed expression to map a string onto a valid variable name.
22502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22503
22504
22505 exec 6>&1
22506
22507 # Save the log message, to keep $[0] and so on meaningful, and to
22508 # report actual input values of CONFIG_FILES etc. instead of their
22509 # values after options handling.
22510 ac_log="
22511 This file was extended by $as_me, which was
22512 generated by GNU Autoconf 2.63.  Invocation command line was
22513
22514   CONFIG_FILES    = $CONFIG_FILES
22515   CONFIG_HEADERS  = $CONFIG_HEADERS
22516   CONFIG_LINKS    = $CONFIG_LINKS
22517   CONFIG_COMMANDS = $CONFIG_COMMANDS
22518   $ $0 $@
22519
22520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22521 "
22522
22523 _ACEOF
22524
22525 case $ac_config_files in *"
22526 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22527 esac
22528
22529 case $ac_config_headers in *"
22530 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22531 esac
22532
22533
22534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22535 # Files that config.status was made for.
22536 config_files="$ac_config_files"
22537 config_headers="$ac_config_headers"
22538 config_commands="$ac_config_commands"
22539
22540 _ACEOF
22541
22542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22543 ac_cs_usage="\
22544 \`$as_me' instantiates files from templates according to the
22545 current configuration.
22546
22547 Usage: $0 [OPTION]... [FILE]...
22548
22549   -h, --help       print this help, then exit
22550   -V, --version    print version number and configuration settings, then exit
22551   -q, --quiet, --silent
22552                    do not print progress messages
22553   -d, --debug      don't remove temporary files
22554       --recheck    update $as_me by reconfiguring in the same conditions
22555       --file=FILE[:TEMPLATE]
22556                    instantiate the configuration file FILE
22557       --header=FILE[:TEMPLATE]
22558                    instantiate the configuration header FILE
22559
22560 Configuration files:
22561 $config_files
22562
22563 Configuration headers:
22564 $config_headers
22565
22566 Configuration commands:
22567 $config_commands
22568
22569 Report bugs to <bug-autoconf@gnu.org>."
22570
22571 _ACEOF
22572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22573 ac_cs_version="\\
22574 config.status
22575 configured by $0, generated by GNU Autoconf 2.63,
22576   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22577
22578 Copyright (C) 2008 Free Software Foundation, Inc.
22579 This config.status script is free software; the Free Software Foundation
22580 gives unlimited permission to copy, distribute and modify it."
22581
22582 ac_pwd='$ac_pwd'
22583 srcdir='$srcdir'
22584 INSTALL='$INSTALL'
22585 AWK='$AWK'
22586 test -n "\$AWK" || AWK=awk
22587 _ACEOF
22588
22589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22590 # The default lists apply if the user does not specify any file.
22591 ac_need_defaults=:
22592 while test $# != 0
22593 do
22594   case $1 in
22595   --*=*)
22596     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22597     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22598     ac_shift=:
22599     ;;
22600   *)
22601     ac_option=$1
22602     ac_optarg=$2
22603     ac_shift=shift
22604     ;;
22605   esac
22606
22607   case $ac_option in
22608   # Handling of the options.
22609   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22610     ac_cs_recheck=: ;;
22611   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22612     $as_echo "$ac_cs_version"; exit ;;
22613   --debug | --debu | --deb | --de | --d | -d )
22614     debug=: ;;
22615   --file | --fil | --fi | --f )
22616     $ac_shift
22617     case $ac_optarg in
22618     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22619     esac
22620     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22621     ac_need_defaults=false;;
22622   --header | --heade | --head | --hea )
22623     $ac_shift
22624     case $ac_optarg in
22625     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22626     esac
22627     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22628     ac_need_defaults=false;;
22629   --he | --h)
22630     # Conflict between --help and --header
22631     { $as_echo "$as_me: error: ambiguous option: $1
22632 Try \`$0 --help' for more information." >&2
22633    { (exit 1); exit 1; }; };;
22634   --help | --hel | -h )
22635     $as_echo "$ac_cs_usage"; exit ;;
22636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22637   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22638     ac_cs_silent=: ;;
22639
22640   # This is an error.
22641   -*) { $as_echo "$as_me: error: unrecognized option: $1
22642 Try \`$0 --help' for more information." >&2
22643    { (exit 1); exit 1; }; } ;;
22644
22645   *) ac_config_targets="$ac_config_targets $1"
22646      ac_need_defaults=false ;;
22647
22648   esac
22649   shift
22650 done
22651
22652 ac_configure_extra_args=
22653
22654 if $ac_cs_silent; then
22655   exec 6>/dev/null
22656   ac_configure_extra_args="$ac_configure_extra_args --silent"
22657 fi
22658
22659 _ACEOF
22660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22661 if \$ac_cs_recheck; then
22662   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22663   shift
22664   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22665   CONFIG_SHELL='$SHELL'
22666   export CONFIG_SHELL
22667   exec "\$@"
22668 fi
22669
22670 _ACEOF
22671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22672 exec 5>>config.log
22673 {
22674   echo
22675   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22676 ## Running $as_me. ##
22677 _ASBOX
22678   $as_echo "$ac_log"
22679 } >&5
22680
22681 _ACEOF
22682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22683 #
22684 # INIT-COMMANDS
22685 #
22686 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22687
22688 _ACEOF
22689
22690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22691
22692 # Handling of arguments.
22693 for ac_config_target in $ac_config_targets
22694 do
22695   case $ac_config_target in
22696     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22697     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22698     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22699     "doc/conf/Makefile") CONFIG_FILES="$CONFIG_FILES doc/conf/Makefile" ;;
22700     "doc/sslfiles/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sslfiles/Makefile" ;;
22701     "doc/heartbeat-ra/Makefile") CONFIG_FILES="$CONFIG_FILES doc/heartbeat-ra/Makefile" ;;
22702     "l7directord/Makefile") CONFIG_FILES="$CONFIG_FILES l7directord/Makefile" ;;
22703     "l7vsd/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/Makefile" ;;
22704     "l7vsd/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/init.d/Makefile" ;;
22705     "l7vsd/module/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/Makefile" ;;
22706     "l7vsd/module/protocol/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/protocol/Makefile" ;;
22707     "l7vsd/module/schedule/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/schedule/Makefile" ;;
22708     "l7vsd/src/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/src/Makefile" ;;
22709     "snmpagent/Makefile") CONFIG_FILES="$CONFIG_FILES snmpagent/Makefile" ;;
22710     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22711     "l7vsd.spec") CONFIG_FILES="$CONFIG_FILES l7vsd.spec" ;;
22712
22713   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22714 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22715    { (exit 1); exit 1; }; };;
22716   esac
22717 done
22718
22719
22720 # If the user did not use the arguments to specify the items to instantiate,
22721 # then the envvar interface is used.  Set only those that are not.
22722 # We use the long form for the default assignment because of an extremely
22723 # bizarre bug on SunOS 4.1.3.
22724 if $ac_need_defaults; then
22725   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22726   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22727   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22728 fi
22729
22730 # Have a temporary directory for convenience.  Make it in the build tree
22731 # simply because there is no reason against having it here, and in addition,
22732 # creating and moving files from /tmp can sometimes cause problems.
22733 # Hook for its removal unless debugging.
22734 # Note that there is a small window in which the directory will not be cleaned:
22735 # after its creation but before its name has been assigned to `$tmp'.
22736 $debug ||
22737 {
22738   tmp=
22739   trap 'exit_status=$?
22740   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22741 ' 0
22742   trap '{ (exit 1); exit 1; }' 1 2 13 15
22743 }
22744 # Create a (secure) tmp directory for tmp files.
22745
22746 {
22747   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22748   test -n "$tmp" && test -d "$tmp"
22749 }  ||
22750 {
22751   tmp=./conf$$-$RANDOM
22752   (umask 077 && mkdir "$tmp")
22753 } ||
22754 {
22755    $as_echo "$as_me: cannot create a temporary directory in ." >&2
22756    { (exit 1); exit 1; }
22757 }
22758
22759 # Set up the scripts for CONFIG_FILES section.
22760 # No need to generate them if there are no CONFIG_FILES.
22761 # This happens for instance with `./config.status config.h'.
22762 if test -n "$CONFIG_FILES"; then
22763
22764
22765 ac_cr='\r'
22766 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22768   ac_cs_awk_cr='\\r'
22769 else
22770   ac_cs_awk_cr=$ac_cr
22771 fi
22772
22773 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22774 _ACEOF
22775
22776
22777 {
22778   echo "cat >conf$$subs.awk <<_ACEOF" &&
22779   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22780   echo "_ACEOF"
22781 } >conf$$subs.sh ||
22782   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22783 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22784    { (exit 1); exit 1; }; }
22785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22786 ac_delim='%!_!# '
22787 for ac_last_try in false false false false false :; do
22788   . ./conf$$subs.sh ||
22789     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22790 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22791    { (exit 1); exit 1; }; }
22792
22793   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22794   if test $ac_delim_n = $ac_delim_num; then
22795     break
22796   elif $ac_last_try; then
22797     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22798 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22799    { (exit 1); exit 1; }; }
22800   else
22801     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22802   fi
22803 done
22804 rm -f conf$$subs.sh
22805
22806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22807 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22808 _ACEOF
22809 sed -n '
22810 h
22811 s/^/S["/; s/!.*/"]=/
22812 p
22813 g
22814 s/^[^!]*!//
22815 :repl
22816 t repl
22817 s/'"$ac_delim"'$//
22818 t delim
22819 :nl
22820 h
22821 s/\(.\{148\}\).*/\1/
22822 t more1
22823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22824 p
22825 n
22826 b repl
22827 :more1
22828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22829 p
22830 g
22831 s/.\{148\}//
22832 t nl
22833 :delim
22834 h
22835 s/\(.\{148\}\).*/\1/
22836 t more2
22837 s/["\\]/\\&/g; s/^/"/; s/$/"/
22838 p
22839 b
22840 :more2
22841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22842 p
22843 g
22844 s/.\{148\}//
22845 t delim
22846 ' <conf$$subs.awk | sed '
22847 /^[^""]/{
22848   N
22849   s/\n//
22850 }
22851 ' >>$CONFIG_STATUS || ac_write_fail=1
22852 rm -f conf$$subs.awk
22853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22854 _ACAWK
22855 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22856   for (key in S) S_is_set[key] = 1
22857   FS = "\a"
22858
22859 }
22860 {
22861   line = $ 0
22862   nfields = split(line, field, "@")
22863   substed = 0
22864   len = length(field[1])
22865   for (i = 2; i < nfields; i++) {
22866     key = field[i]
22867     keylen = length(key)
22868     if (S_is_set[key]) {
22869       value = S[key]
22870       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22871       len += length(value) + length(field[++i])
22872       substed = 1
22873     } else
22874       len += 1 + keylen
22875   }
22876
22877   print line
22878 }
22879
22880 _ACAWK
22881 _ACEOF
22882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22884   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22885 else
22886   cat
22887 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22888   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22889 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22890    { (exit 1); exit 1; }; }
22891 _ACEOF
22892
22893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22895 # trailing colons and then remove the whole line if VPATH becomes empty
22896 # (actually we leave an empty line to preserve line numbers).
22897 if test "x$srcdir" = x.; then
22898   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22899 s/:*\$(srcdir):*/:/
22900 s/:*\${srcdir}:*/:/
22901 s/:*@srcdir@:*/:/
22902 s/^\([^=]*=[     ]*\):*/\1/
22903 s/:*$//
22904 s/^[^=]*=[       ]*$//
22905 }'
22906 fi
22907
22908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22909 fi # test -n "$CONFIG_FILES"
22910
22911 # Set up the scripts for CONFIG_HEADERS section.
22912 # No need to generate them if there are no CONFIG_HEADERS.
22913 # This happens for instance with `./config.status Makefile'.
22914 if test -n "$CONFIG_HEADERS"; then
22915 cat >"$tmp/defines.awk" <<\_ACAWK ||
22916 BEGIN {
22917 _ACEOF
22918
22919 # Transform confdefs.h into an awk script `defines.awk', embedded as
22920 # here-document in config.status, that substitutes the proper values into
22921 # config.h.in to produce config.h.
22922
22923 # Create a delimiter string that does not exist in confdefs.h, to ease
22924 # handling of long lines.
22925 ac_delim='%!_!# '
22926 for ac_last_try in false false :; do
22927   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22928   if test -z "$ac_t"; then
22929     break
22930   elif $ac_last_try; then
22931     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22932 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22933    { (exit 1); exit 1; }; }
22934   else
22935     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22936   fi
22937 done
22938
22939 # For the awk script, D is an array of macro values keyed by name,
22940 # likewise P contains macro parameters if any.  Preserve backslash
22941 # newline sequences.
22942
22943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22944 sed -n '
22945 s/.\{148\}/&'"$ac_delim"'/g
22946 t rset
22947 :rset
22948 s/^[     ]*#[    ]*define[       ][      ]*/ /
22949 t def
22950 d
22951 :def
22952 s/\\$//
22953 t bsnl
22954 s/["\\]/\\&/g
22955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22956 D["\1"]=" \3"/p
22957 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22958 d
22959 :bsnl
22960 s/["\\]/\\&/g
22961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22962 D["\1"]=" \3\\\\\\n"\\/p
22963 t cont
22964 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22965 t cont
22966 d
22967 :cont
22968 n
22969 s/.\{148\}/&'"$ac_delim"'/g
22970 t clear
22971 :clear
22972 s/\\$//
22973 t bsnlc
22974 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22975 d
22976 :bsnlc
22977 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22978 b cont
22979 ' <confdefs.h | sed '
22980 s/'"$ac_delim"'/"\\\
22981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22982
22983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22984   for (key in D) D_is_set[key] = 1
22985   FS = "\a"
22986 }
22987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22988   line = \$ 0
22989   split(line, arg, " ")
22990   if (arg[1] == "#") {
22991     defundef = arg[2]
22992     mac1 = arg[3]
22993   } else {
22994     defundef = substr(arg[1], 2)
22995     mac1 = arg[2]
22996   }
22997   split(mac1, mac2, "(") #)
22998   macro = mac2[1]
22999   prefix = substr(line, 1, index(line, defundef) - 1)
23000   if (D_is_set[macro]) {
23001     # Preserve the white space surrounding the "#".
23002     print prefix "define", macro P[macro] D[macro]
23003     next
23004   } else {
23005     # Replace #undef with comments.  This is necessary, for example,
23006     # in the case of _POSIX_SOURCE, which is predefined and required
23007     # on some systems where configure will not decide to define it.
23008     if (defundef == "undef") {
23009       print "/*", prefix defundef, macro, "*/"
23010       next
23011     }
23012   }
23013 }
23014 { print }
23015 _ACAWK
23016 _ACEOF
23017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23018   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23019 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23020    { (exit 1); exit 1; }; }
23021 fi # test -n "$CONFIG_HEADERS"
23022
23023
23024 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23025 shift
23026 for ac_tag
23027 do
23028   case $ac_tag in
23029   :[FHLC]) ac_mode=$ac_tag; continue;;
23030   esac
23031   case $ac_mode$ac_tag in
23032   :[FHL]*:*);;
23033   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23034 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23035    { (exit 1); exit 1; }; };;
23036   :[FH]-) ac_tag=-:-;;
23037   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23038   esac
23039   ac_save_IFS=$IFS
23040   IFS=:
23041   set x $ac_tag
23042   IFS=$ac_save_IFS
23043   shift
23044   ac_file=$1
23045   shift
23046
23047   case $ac_mode in
23048   :L) ac_source=$1;;
23049   :[FH])
23050     ac_file_inputs=
23051     for ac_f
23052     do
23053       case $ac_f in
23054       -) ac_f="$tmp/stdin";;
23055       *) # Look for the file first in the build tree, then in the source tree
23056          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23057          # because $ac_f cannot contain `:'.
23058          test -f "$ac_f" ||
23059            case $ac_f in
23060            [\\/$]*) false;;
23061            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23062            esac ||
23063            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23064 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23065    { (exit 1); exit 1; }; };;
23066       esac
23067       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23068       ac_file_inputs="$ac_file_inputs '$ac_f'"
23069     done
23070
23071     # Let's still pretend it is `configure' which instantiates (i.e., don't
23072     # use $as_me), people would be surprised to read:
23073     #    /* config.h.  Generated by config.status.  */
23074     configure_input='Generated from '`
23075           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23076         `' by configure.'
23077     if test x"$ac_file" != x-; then
23078       configure_input="$ac_file.  $configure_input"
23079       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23080 $as_echo "$as_me: creating $ac_file" >&6;}
23081     fi
23082     # Neutralize special characters interpreted by sed in replacement strings.
23083     case $configure_input in #(
23084     *\&* | *\|* | *\\* )
23085        ac_sed_conf_input=`$as_echo "$configure_input" |
23086        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23087     *) ac_sed_conf_input=$configure_input;;
23088     esac
23089
23090     case $ac_tag in
23091     *:-:* | *:-) cat >"$tmp/stdin" \
23092       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23093 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23094    { (exit 1); exit 1; }; } ;;
23095     esac
23096     ;;
23097   esac
23098
23099   ac_dir=`$as_dirname -- "$ac_file" ||
23100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101          X"$ac_file" : 'X\(//\)[^/]' \| \
23102          X"$ac_file" : 'X\(//\)$' \| \
23103          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23104 $as_echo X"$ac_file" |
23105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23106             s//\1/
23107             q
23108           }
23109           /^X\(\/\/\)[^/].*/{
23110             s//\1/
23111             q
23112           }
23113           /^X\(\/\/\)$/{
23114             s//\1/
23115             q
23116           }
23117           /^X\(\/\).*/{
23118             s//\1/
23119             q
23120           }
23121           s/.*/./; q'`
23122   { as_dir="$ac_dir"
23123   case $as_dir in #(
23124   -*) as_dir=./$as_dir;;
23125   esac
23126   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23127     as_dirs=
23128     while :; do
23129       case $as_dir in #(
23130       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23131       *) as_qdir=$as_dir;;
23132       esac
23133       as_dirs="'$as_qdir' $as_dirs"
23134       as_dir=`$as_dirname -- "$as_dir" ||
23135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136          X"$as_dir" : 'X\(//\)[^/]' \| \
23137          X"$as_dir" : 'X\(//\)$' \| \
23138          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23139 $as_echo X"$as_dir" |
23140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23141             s//\1/
23142             q
23143           }
23144           /^X\(\/\/\)[^/].*/{
23145             s//\1/
23146             q
23147           }
23148           /^X\(\/\/\)$/{
23149             s//\1/
23150             q
23151           }
23152           /^X\(\/\).*/{
23153             s//\1/
23154             q
23155           }
23156           s/.*/./; q'`
23157       test -d "$as_dir" && break
23158     done
23159     test -z "$as_dirs" || eval "mkdir $as_dirs"
23160   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23161 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23162    { (exit 1); exit 1; }; }; }
23163   ac_builddir=.
23164
23165 case "$ac_dir" in
23166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23167 *)
23168   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23169   # A ".." for each directory in $ac_dir_suffix.
23170   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23171   case $ac_top_builddir_sub in
23172   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23173   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23174   esac ;;
23175 esac
23176 ac_abs_top_builddir=$ac_pwd
23177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23178 # for backward compatibility:
23179 ac_top_builddir=$ac_top_build_prefix
23180
23181 case $srcdir in
23182   .)  # We are building in place.
23183     ac_srcdir=.
23184     ac_top_srcdir=$ac_top_builddir_sub
23185     ac_abs_top_srcdir=$ac_pwd ;;
23186   [\\/]* | ?:[\\/]* )  # Absolute name.
23187     ac_srcdir=$srcdir$ac_dir_suffix;
23188     ac_top_srcdir=$srcdir
23189     ac_abs_top_srcdir=$srcdir ;;
23190   *) # Relative name.
23191     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23192     ac_top_srcdir=$ac_top_build_prefix$srcdir
23193     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23194 esac
23195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23196
23197
23198   case $ac_mode in
23199   :F)
23200   #
23201   # CONFIG_FILE
23202   #
23203
23204   case $INSTALL in
23205   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23206   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23207   esac
23208 _ACEOF
23209
23210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23211 # If the template does not know about datarootdir, expand it.
23212 # FIXME: This hack should be removed a few years after 2.60.
23213 ac_datarootdir_hack=; ac_datarootdir_seen=
23214
23215 ac_sed_dataroot='
23216 /datarootdir/ {
23217   p
23218   q
23219 }
23220 /@datadir@/p
23221 /@docdir@/p
23222 /@infodir@/p
23223 /@localedir@/p
23224 /@mandir@/p
23225 '
23226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23227 *datarootdir*) ac_datarootdir_seen=yes;;
23228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23229   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23231 _ACEOF
23232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23233   ac_datarootdir_hack='
23234   s&@datadir@&$datadir&g
23235   s&@docdir@&$docdir&g
23236   s&@infodir@&$infodir&g
23237   s&@localedir@&$localedir&g
23238   s&@mandir@&$mandir&g
23239     s&\\\${datarootdir}&$datarootdir&g' ;;
23240 esac
23241 _ACEOF
23242
23243 # Neutralize VPATH when `$srcdir' = `.'.
23244 # Shell code in configure.ac might set extrasub.
23245 # FIXME: do we really want to maintain this feature?
23246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23247 ac_sed_extra="$ac_vpsub
23248 $extrasub
23249 _ACEOF
23250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23251 :t
23252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23253 s|@configure_input@|$ac_sed_conf_input|;t t
23254 s&@top_builddir@&$ac_top_builddir_sub&;t t
23255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23256 s&@srcdir@&$ac_srcdir&;t t
23257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23258 s&@top_srcdir@&$ac_top_srcdir&;t t
23259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23260 s&@builddir@&$ac_builddir&;t t
23261 s&@abs_builddir@&$ac_abs_builddir&;t t
23262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23263 s&@INSTALL@&$ac_INSTALL&;t t
23264 $ac_datarootdir_hack
23265 "
23266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23267   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23269    { (exit 1); exit 1; }; }
23270
23271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23272   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23273   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23274   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23275 which seems to be undefined.  Please make sure it is defined." >&5
23276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23277 which seems to be undefined.  Please make sure it is defined." >&2;}
23278
23279   rm -f "$tmp/stdin"
23280   case $ac_file in
23281   -) cat "$tmp/out" && rm -f "$tmp/out";;
23282   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23283   esac \
23284   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23286    { (exit 1); exit 1; }; }
23287  ;;
23288   :H)
23289   #
23290   # CONFIG_HEADER
23291   #
23292   if test x"$ac_file" != x-; then
23293     {
23294       $as_echo "/* $configure_input  */" \
23295       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23296     } >"$tmp/config.h" \
23297       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23299    { (exit 1); exit 1; }; }
23300     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23301       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23302 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23303     else
23304       rm -f "$ac_file"
23305       mv "$tmp/config.h" "$ac_file" \
23306         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23307 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23308    { (exit 1); exit 1; }; }
23309     fi
23310   else
23311     $as_echo "/* $configure_input  */" \
23312       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23313       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23314 $as_echo "$as_me: error: could not create -" >&2;}
23315    { (exit 1); exit 1; }; }
23316   fi
23317 # Compute "$ac_file"'s index in $config_headers.
23318 _am_stamp_count=1
23319 for _am_header in $config_headers :; do
23320   case $_am_header in
23321     "$ac_file" | "$ac_file":* )
23322       break ;;
23323     * )
23324       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23325   esac
23326 done
23327 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
23328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329          X"$ac_file" : 'X\(//\)[^/]' \| \
23330          X"$ac_file" : 'X\(//\)$' \| \
23331          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23332 $as_echo X"$ac_file" |
23333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23334             s//\1/
23335             q
23336           }
23337           /^X\(\/\/\)[^/].*/{
23338             s//\1/
23339             q
23340           }
23341           /^X\(\/\/\)$/{
23342             s//\1/
23343             q
23344           }
23345           /^X\(\/\).*/{
23346             s//\1/
23347             q
23348           }
23349           s/.*/./; q'`/stamp-h$_am_stamp_count
23350  ;;
23351
23352   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23353 $as_echo "$as_me: executing $ac_file commands" >&6;}
23354  ;;
23355   esac
23356
23357
23358   case $ac_file$ac_mode in
23359     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23360   # Strip MF so we end up with the name of the file.
23361   mf=`echo "$mf" | sed -e 's/:.*$//'`
23362   # Check whether this is an Automake generated Makefile or not.
23363   # We used to match only the files named `Makefile.in', but
23364   # some people rename them; so instead we look at the file content.
23365   # Grep'ing the first line is not enough: some people post-process
23366   # each Makefile.in and add a new line on top of each file to say so.
23367   # So let's grep whole file.
23368   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23369     dirpart=`$as_dirname -- "$mf" ||
23370 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23371          X"$mf" : 'X\(//\)[^/]' \| \
23372          X"$mf" : 'X\(//\)$' \| \
23373          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23374 $as_echo X"$mf" |
23375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23376             s//\1/
23377             q
23378           }
23379           /^X\(\/\/\)[^/].*/{
23380             s//\1/
23381             q
23382           }
23383           /^X\(\/\/\)$/{
23384             s//\1/
23385             q
23386           }
23387           /^X\(\/\).*/{
23388             s//\1/
23389             q
23390           }
23391           s/.*/./; q'`
23392   else
23393     continue
23394   fi
23395   # Extract the definition of DEPDIR, am__include, and am__quote
23396   # from the Makefile without running `make'.
23397   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23398   test -z "$DEPDIR" && continue
23399   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23400   test -z "am__include" && continue
23401   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23402   # When using ansi2knr, U may be empty or an underscore; expand it
23403   U=`sed -n 's/^U = //p' < "$mf"`
23404   # Find all dependency output files, they are included files with
23405   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23406   # simplest approach to changing $(DEPDIR) to its actual value in the
23407   # expansion.
23408   for file in `sed -n "
23409     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23410        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23411     # Make sure the directory exists.
23412     test -f "$dirpart/$file" && continue
23413     fdir=`$as_dirname -- "$file" ||
23414 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23415          X"$file" : 'X\(//\)[^/]' \| \
23416          X"$file" : 'X\(//\)$' \| \
23417          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23418 $as_echo X"$file" |
23419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23420             s//\1/
23421             q
23422           }
23423           /^X\(\/\/\)[^/].*/{
23424             s//\1/
23425             q
23426           }
23427           /^X\(\/\/\)$/{
23428             s//\1/
23429             q
23430           }
23431           /^X\(\/\).*/{
23432             s//\1/
23433             q
23434           }
23435           s/.*/./; q'`
23436     { as_dir=$dirpart/$fdir
23437   case $as_dir in #(
23438   -*) as_dir=./$as_dir;;
23439   esac
23440   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23441     as_dirs=
23442     while :; do
23443       case $as_dir in #(
23444       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23445       *) as_qdir=$as_dir;;
23446       esac
23447       as_dirs="'$as_qdir' $as_dirs"
23448       as_dir=`$as_dirname -- "$as_dir" ||
23449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23450          X"$as_dir" : 'X\(//\)[^/]' \| \
23451          X"$as_dir" : 'X\(//\)$' \| \
23452          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23453 $as_echo X"$as_dir" |
23454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23455             s//\1/
23456             q
23457           }
23458           /^X\(\/\/\)[^/].*/{
23459             s//\1/
23460             q
23461           }
23462           /^X\(\/\/\)$/{
23463             s//\1/
23464             q
23465           }
23466           /^X\(\/\).*/{
23467             s//\1/
23468             q
23469           }
23470           s/.*/./; q'`
23471       test -d "$as_dir" && break
23472     done
23473     test -z "$as_dirs" || eval "mkdir $as_dirs"
23474   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23475 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23476    { (exit 1); exit 1; }; }; }
23477     # echo "creating $dirpart/$file"
23478     echo '# dummy' > "$dirpart/$file"
23479   done
23480 done
23481  ;;
23482
23483   esac
23484 done # for ac_tag
23485
23486
23487 { (exit 0); exit 0; }
23488 _ACEOF
23489 chmod +x $CONFIG_STATUS
23490 ac_clean_files=$ac_clean_files_save
23491
23492 test $ac_write_fail = 0 ||
23493   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23494 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23495    { (exit 1); exit 1; }; }
23496
23497
23498 # configure is writing to config.log, and then calls config.status.
23499 # config.status does its own redirection, appending to config.log.
23500 # Unfortunately, on DOS this fails, as config.log is still kept open
23501 # by configure, so config.status won't be able to write to it; its
23502 # output is simply discarded.  So we exec the FD to /dev/null,
23503 # effectively closing config.log, so it can be properly (re)opened and
23504 # appended to by config.status.  When coming back to configure, we
23505 # need to make the FD available again.
23506 if test "$no_create" != yes; then
23507   ac_cs_success=:
23508   ac_config_status_args=
23509   test "$silent" = yes &&
23510     ac_config_status_args="$ac_config_status_args --quiet"
23511   exec 5>/dev/null
23512   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23513   exec 5>>config.log
23514   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23515   # would make configure fail if this is the last instruction.
23516   $ac_cs_success || { (exit 1); exit 1; }
23517 fi
23518 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23519   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23520 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23521 fi
23522