OSDN Git Service

Merge branch 'branch_0.12.0'
[modchxj/mod_chxj.git] / src / css / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for scss 1.0.0.
4 #
5 # Report bugs to <konn@users.sourceforge.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='scss'
730 PACKAGE_TARNAME='scss'
731 PACKAGE_VERSION='1.0.0'
732 PACKAGE_STRING='scss 1.0.0'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
734
735 ac_unique_file="src/main.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBTOOL_DEPS
878 APR_CONFIG
879 APR_1_CONFIG
880 APU_CONFIG
881 APU_1_CONFIG
882 LIBOBJS
883 LTLIBOBJS'
884 ac_subst_files=''
885       ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
893 CPP
894 CXX
895 CXXFLAGS
896 CCC
897 CXXCPP
898 F77
899 FFLAGS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
958
959   case $ac_option in
960   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *)    ac_optarg=yes ;;
962   esac
963
964   # Accept the important Cygnus configure options, so we can diagnose typos.
965
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
969
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
974
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
979
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
986
987   --config-cache | -C)
988     cache_file=config.cache ;;
989
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
994
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1001
1002   -disable-* | --disable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=no ;;
1010
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1015
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1020
1021   -enable-* | --enable-*)
1022     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028     eval enable_$ac_feature=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=\$ac_optarg ;;
1226
1227   -without-* | --without-*)
1228     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       { echo "$as_me: error: invalid package name: $ac_package" >&2
1232    { (exit 1); exit 1; }; }
1233     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234     eval with_$ac_package=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 # Be sure to have absolute directory names.
1286 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287                 datadir sysconfdir sharedstatedir localstatedir includedir \
1288                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289                 libdir localedir mandir
1290 do
1291   eval ac_val=\$$ac_var
1292   case $ac_val in
1293     [\\/$]* | ?:[\\/]* )  continue;;
1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295   esac
1296   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297    { (exit 1); exit 1; }; }
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309   if test "x$build_alias" = x; then
1310     cross_compiling=maybe
1311     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312     If a cross compiler is detected then cross compile mode will be used." >&2
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   { echo "$as_me: error: Working directory cannot be determined" >&2
1328    { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   { echo "$as_me: error: pwd does not report name of working directory" >&2
1331    { (exit 1); exit 1; }; }
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$0" : 'X\(//\)[^/]' \| \
1341          X"$0" : 'X\(//\)$' \| \
1342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371    { (exit 1); exit 1; }; }
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376    { (exit 1); exit 1; }; }
1377         pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380   srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_env_${ac_var}_value=\$${ac_var}
1391   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399   # Omit some internal or obsolete options to make the list less imposing.
1400   # This message is too long to be a string in the A/UX 3.1 sh.
1401   cat <<_ACEOF
1402 \`configure' configures scss 1.0.0 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412   -h, --help              display this help and exit
1413       --help=short        display options specific to this package
1414       --help=recursive    display the short help of all the included packages
1415   -V, --version           display version information and exit
1416   -q, --quiet, --silent   do not print \`checking...' messages
1417       --cache-file=FILE   cache test results in FILE [disabled]
1418   -C, --config-cache      alias for \`--cache-file=config.cache'
1419   -n, --no-create         do not create output files
1420       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423   --prefix=PREFIX         install architecture-independent files in PREFIX
1424                           [$ac_default_prefix]
1425   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                           [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436   --bindir=DIR           user executables [EPREFIX/bin]
1437   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438   --libexecdir=DIR       program executables [EPREFIX/libexec]
1439   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442   --libdir=DIR           object code libraries [EPREFIX/lib]
1443   --includedir=DIR       C header files [PREFIX/include]
1444   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447   --infodir=DIR          info documentation [DATAROOTDIR/info]
1448   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449   --mandir=DIR           man documentation [DATAROOTDIR/man]
1450   --docdir=DIR           documentation root [DATAROOTDIR/doc/scss]
1451   --htmldir=DIR          html documentation [DOCDIR]
1452   --dvidir=DIR           dvi documentation [DOCDIR]
1453   --pdfdir=DIR           pdf documentation [DOCDIR]
1454   --psdir=DIR            ps documentation [DOCDIR]
1455 _ACEOF
1456
1457   cat <<\_ACEOF
1458
1459 Program names:
1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467   --target=TARGET   configure for building compilers for TARGET [HOST]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472   case $ac_init_help in
1473      short | recursive ) echo "Configuration of scss 1.0.0:";;
1474    esac
1475   cat <<\_ACEOF
1476
1477 Optional Features:
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --enable-shared[=PKGS]  build shared libraries [default=yes]
1481   --enable-static[=PKGS]  build static libraries [default=yes]
1482   --enable-fast-install[=PKGS]
1483                           optimize for fast installation [default=yes]
1484   --disable-dependency-tracking  speeds up one-time build
1485   --enable-dependency-tracking   do not reject slow dependency extractors
1486   --disable-libtool-lock  avoid locking (might break parallel builds)
1487
1488 Optional Packages:
1489   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492   --with-pic              try to use only PIC/non-PIC objects [default=use
1493                           both]
1494   --with-tags[=TAGS]      include additional configurations [automatic]
1495   --with-apr-config=ARG  Path of apr-config program file.
1496   --with-apu-config=ARG  Path of apu-config program file.
1497
1498 Some influential environment variables:
1499   CC          C compiler command
1500   CFLAGS      C compiler flags
1501   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502               nonstandard directory <lib dir>
1503   LIBS        libraries to pass to the linker, e.g. -l<library>
1504   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1505               you have headers in a nonstandard directory <include dir>
1506   CPP         C preprocessor
1507   CXX         C++ compiler command
1508   CXXFLAGS    C++ compiler flags
1509   CXXCPP      C++ preprocessor
1510   F77         Fortran 77 compiler command
1511   FFLAGS      Fortran 77 compiler flags
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <konn@users.sourceforge.jp>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522   # If there are subdirs, report their specific --help.
1523   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524     test -d "$ac_dir" || continue
1525     ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1531   # A ".." for each directory in $ac_dir_suffix.
1532   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1533   case $ac_top_builddir_sub in
1534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536   esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544   .)  # We are building in place.
1545     ac_srcdir=.
1546     ac_top_srcdir=$ac_top_builddir_sub
1547     ac_abs_top_srcdir=$ac_pwd ;;
1548   [\\/]* | ?:[\\/]* )  # Absolute name.
1549     ac_srcdir=$srcdir$ac_dir_suffix;
1550     ac_top_srcdir=$srcdir
1551     ac_abs_top_srcdir=$srcdir ;;
1552   *) # Relative name.
1553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554     ac_top_srcdir=$ac_top_build_prefix$srcdir
1555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559     cd "$ac_dir" || { ac_status=$?; continue; }
1560     # Check for guested configure.
1561     if test -f "$ac_srcdir/configure.gnu"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564     elif test -f "$ac_srcdir/configure"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure" --help=recursive
1567     else
1568       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569     fi || ac_status=$?
1570     cd "$ac_pwd" || { ac_status=$?; break; }
1571   done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576   cat <<\_ACEOF
1577 scss configure 1.0.0
1578 generated by GNU Autoconf 2.61
1579
1580 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1581 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585   exit
1586 fi
1587 cat >config.log <<_ACEOF
1588 This file contains any messages produced by compilers while
1589 running configure, to aid debugging if configure makes a mistake.
1590
1591 It was created by scss $as_me 1.0.0, which was
1592 generated by GNU Autoconf 2.61.  Invocation command line was
1593
1594   $ $0 $@
1595
1596 _ACEOF
1597 exec 5>>config.log
1598 {
1599 cat <<_ASUNAME
1600 ## --------- ##
1601 ## Platform. ##
1602 ## --------- ##
1603
1604 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609
1610 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1612
1613 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1614 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1615 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1616 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1617 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1618 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1619 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1620
1621 _ASUNAME
1622
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1625 do
1626   IFS=$as_save_IFS
1627   test -z "$as_dir" && as_dir=.
1628   echo "PATH: $as_dir"
1629 done
1630 IFS=$as_save_IFS
1631
1632 } >&5
1633
1634 cat >&5 <<_ACEOF
1635
1636
1637 ## ----------- ##
1638 ## Core tests. ##
1639 ## ----------- ##
1640
1641 _ACEOF
1642
1643
1644 # Keep a trace of the command line.
1645 # Strip out --no-create and --no-recursion so they do not pile up.
1646 # Strip out --silent because we don't want to record it for future runs.
1647 # Also quote any args containing shell meta-characters.
1648 # Make two passes to allow for proper duplicate-argument suppression.
1649 ac_configure_args=
1650 ac_configure_args0=
1651 ac_configure_args1=
1652 ac_must_keep_next=false
1653 for ac_pass in 1 2
1654 do
1655   for ac_arg
1656   do
1657     case $ac_arg in
1658     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660     | -silent | --silent | --silen | --sile | --sil)
1661       continue ;;
1662     *\'*)
1663       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664     esac
1665     case $ac_pass in
1666     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667     2)
1668       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669       if test $ac_must_keep_next = true; then
1670         ac_must_keep_next=false # Got value, back to normal.
1671       else
1672         case $ac_arg in
1673           *=* | --config-cache | -C | -disable-* | --disable-* \
1674           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676           | -with-* | --with-* | -without-* | --without-* | --x)
1677             case "$ac_configure_args0 " in
1678               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679             esac
1680             ;;
1681           -* ) ac_must_keep_next=true ;;
1682         esac
1683       fi
1684       ac_configure_args="$ac_configure_args '$ac_arg'"
1685       ;;
1686     esac
1687   done
1688 done
1689 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691
1692 # When interrupted or exit'd, cleanup temporary files, and complete
1693 # config.log.  We remove comments because anyway the quotes in there
1694 # would cause problems or look ugly.
1695 # WARNING: Use '\'' to represent an apostrophe within the trap.
1696 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1697 trap 'exit_status=$?
1698   # Save into config.log some information that might help in debugging.
1699   {
1700     echo
1701
1702     cat <<\_ASBOX
1703 ## ---------------- ##
1704 ## Cache variables. ##
1705 ## ---------------- ##
1706 _ASBOX
1707     echo
1708     # The following way of writing the cache mishandles newlines in values,
1709 (
1710   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711     eval ac_val=\$$ac_var
1712     case $ac_val in #(
1713     *${as_nl}*)
1714       case $ac_var in #(
1715       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717       esac
1718       case $ac_var in #(
1719       _ | IFS | as_nl) ;; #(
1720       *) $as_unset $ac_var ;;
1721       esac ;;
1722     esac
1723   done
1724   (set) 2>&1 |
1725     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726     *${as_nl}ac_space=\ *)
1727       sed -n \
1728         "s/'\''/'\''\\\\'\'''\''/g;
1729           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730       ;; #(
1731     *)
1732       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733       ;;
1734     esac |
1735     sort
1736 )
1737     echo
1738
1739     cat <<\_ASBOX
1740 ## ----------------- ##
1741 ## Output variables. ##
1742 ## ----------------- ##
1743 _ASBOX
1744     echo
1745     for ac_var in $ac_subst_vars
1746     do
1747       eval ac_val=\$$ac_var
1748       case $ac_val in
1749       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750       esac
1751       echo "$ac_var='\''$ac_val'\''"
1752     done | sort
1753     echo
1754
1755     if test -n "$ac_subst_files"; then
1756       cat <<\_ASBOX
1757 ## ------------------- ##
1758 ## File substitutions. ##
1759 ## ------------------- ##
1760 _ASBOX
1761       echo
1762       for ac_var in $ac_subst_files
1763       do
1764         eval ac_val=\$$ac_var
1765         case $ac_val in
1766         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767         esac
1768         echo "$ac_var='\''$ac_val'\''"
1769       done | sort
1770       echo
1771     fi
1772
1773     if test -s confdefs.h; then
1774       cat <<\_ASBOX
1775 ## ----------- ##
1776 ## confdefs.h. ##
1777 ## ----------- ##
1778 _ASBOX
1779       echo
1780       cat confdefs.h
1781       echo
1782     fi
1783     test "$ac_signal" != 0 &&
1784       echo "$as_me: caught signal $ac_signal"
1785     echo "$as_me: exit $exit_status"
1786   } >&5
1787   rm -f core *.core core.conftest.* &&
1788     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789     exit $exit_status
1790 ' 0
1791 for ac_signal in 1 2 13 15; do
1792   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793 done
1794 ac_signal=0
1795
1796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1797 rm -f -r conftest* confdefs.h
1798
1799 # Predefined preprocessor variables.
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_STRING "$PACKAGE_STRING"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823 _ACEOF
1824
1825
1826 # Let the site file select an alternate cache file if it wants to.
1827 # Prefer explicitly selected file to automatically selected ones.
1828 if test -n "$CONFIG_SITE"; then
1829   set x "$CONFIG_SITE"
1830 elif test "x$prefix" != xNONE; then
1831   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 else
1833   set x "$ac_default_prefix/share/config.site" \
1834         "$ac_default_prefix/etc/config.site"
1835 fi
1836 shift
1837 for ac_site_file
1838 do
1839   if test -r "$ac_site_file"; then
1840     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841 echo "$as_me: loading site script $ac_site_file" >&6;}
1842     sed 's/^/| /' "$ac_site_file" >&5
1843     . "$ac_site_file"
1844   fi
1845 done
1846
1847 if test -r "$cache_file"; then
1848   # Some versions of bash will fail to source /dev/null (special
1849   # files actually), so we avoid doing that.
1850   if test -f "$cache_file"; then
1851     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852 echo "$as_me: loading cache $cache_file" >&6;}
1853     case $cache_file in
1854       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855       *)                      . "./$cache_file";;
1856     esac
1857   fi
1858 else
1859   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860 echo "$as_me: creating cache $cache_file" >&6;}
1861   >$cache_file
1862 fi
1863
1864 # Check that the precious variables saved in the cache have kept the same
1865 # value.
1866 ac_cache_corrupted=false
1867 for ac_var in $ac_precious_vars; do
1868   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869   eval ac_new_set=\$ac_env_${ac_var}_set
1870   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871   eval ac_new_val=\$ac_env_${ac_var}_value
1872   case $ac_old_set,$ac_new_set in
1873     set,)
1874       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876       ac_cache_corrupted=: ;;
1877     ,set)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,);;
1882     *)
1883       if test "x$ac_old_val" != "x$ac_new_val"; then
1884         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1887 echo "$as_me:   former value:  $ac_old_val" >&2;}
1888         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1889 echo "$as_me:   current value: $ac_new_val" >&2;}
1890         ac_cache_corrupted=:
1891       fi;;
1892   esac
1893   # Pass precious variables to config.status.
1894   if test "$ac_new_set" = set; then
1895     case $ac_new_val in
1896     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1897     *) ac_arg=$ac_var=$ac_new_val ;;
1898     esac
1899     case " $ac_configure_args " in
1900       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1901       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1902     esac
1903   fi
1904 done
1905 if $ac_cache_corrupted; then
1906   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1907 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1909 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910    { (exit 1); exit 1; }; }
1911 fi
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944 ac_aux_dir=
1945 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1946   if test -f "$ac_dir/install-sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install-sh -c"
1949     break
1950   elif test -f "$ac_dir/install.sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install.sh -c"
1953     break
1954   elif test -f "$ac_dir/shtool"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/shtool install -c"
1957     break
1958   fi
1959 done
1960 if test -z "$ac_aux_dir"; then
1961   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1973
1974
1975 # Make sure we can run config.sub.
1976 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1977   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1978 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1979    { (exit 1); exit 1; }; }
1980
1981 { echo "$as_me:$LINENO: checking build system type" >&5
1982 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1983 if test "${ac_cv_build+set}" = set; then
1984   echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986   ac_build_alias=$build_alias
1987 test "x$ac_build_alias" = x &&
1988   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1989 test "x$ac_build_alias" = x &&
1990   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1991 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1992    { (exit 1); exit 1; }; }
1993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1994   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1996    { (exit 1); exit 1; }; }
1997
1998 fi
1999 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2000 echo "${ECHO_T}$ac_cv_build" >&6; }
2001 case $ac_cv_build in
2002 *-*-*) ;;
2003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2004 echo "$as_me: error: invalid value of canonical build" >&2;}
2005    { (exit 1); exit 1; }; };;
2006 esac
2007 build=$ac_cv_build
2008 ac_save_IFS=$IFS; IFS='-'
2009 set x $ac_cv_build
2010 shift
2011 build_cpu=$1
2012 build_vendor=$2
2013 shift; shift
2014 # Remember, the first character of IFS is used to create $*,
2015 # except with old shells:
2016 build_os=$*
2017 IFS=$ac_save_IFS
2018 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2019
2020
2021 { echo "$as_me:$LINENO: checking host system type" >&5
2022 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_host+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test "x$host_alias" = x; then
2027   ac_cv_host=$ac_cv_build
2028 else
2029   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2030     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2031 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035 fi
2036 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2037 echo "${ECHO_T}$ac_cv_host" >&6; }
2038 case $ac_cv_host in
2039 *-*-*) ;;
2040 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2041 echo "$as_me: error: invalid value of canonical host" >&2;}
2042    { (exit 1); exit 1; }; };;
2043 esac
2044 host=$ac_cv_host
2045 ac_save_IFS=$IFS; IFS='-'
2046 set x $ac_cv_host
2047 shift
2048 host_cpu=$1
2049 host_vendor=$2
2050 shift; shift
2051 # Remember, the first character of IFS is used to create $*,
2052 # except with old shells:
2053 host_os=$*
2054 IFS=$ac_save_IFS
2055 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2056
2057
2058 { echo "$as_me:$LINENO: checking target system type" >&5
2059 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_target+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   if test "x$target_alias" = x; then
2064   ac_cv_target=$ac_cv_host
2065 else
2066   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2067     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2068 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2069    { (exit 1); exit 1; }; }
2070 fi
2071
2072 fi
2073 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2074 echo "${ECHO_T}$ac_cv_target" >&6; }
2075 case $ac_cv_target in
2076 *-*-*) ;;
2077 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2078 echo "$as_me: error: invalid value of canonical target" >&2;}
2079    { (exit 1); exit 1; }; };;
2080 esac
2081 target=$ac_cv_target
2082 ac_save_IFS=$IFS; IFS='-'
2083 set x $ac_cv_target
2084 shift
2085 target_cpu=$1
2086 target_vendor=$2
2087 shift; shift
2088 # Remember, the first character of IFS is used to create $*,
2089 # except with old shells:
2090 target_os=$*
2091 IFS=$ac_save_IFS
2092 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2093
2094
2095 # The aliases save the names the user supplied, while $host etc.
2096 # will get canonicalized.
2097 test -n "$target_alias" &&
2098   test "$program_prefix$program_suffix$program_transform_name" = \
2099     NONENONEs,x,x, &&
2100   program_prefix=${target_alias}-
2101 am__api_version='1.10'
2102
2103 # Find a good install program.  We prefer a C program (faster),
2104 # so one script is as good as another.  But avoid the broken or
2105 # incompatible versions:
2106 # SysV /etc/install, /usr/sbin/install
2107 # SunOS /usr/etc/install
2108 # IRIX /sbin/install
2109 # AIX /bin/install
2110 # AmigaOS /C/install, which installs bootblocks on floppy discs
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # OS/2's system install, which has a completely different semantic
2115 # ./install, which can be erroneously created by make from ./install.sh.
2116 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2117 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2118 if test -z "$INSTALL"; then
2119 if test "${ac_cv_path_install+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   # Account for people who put trailing slashes in PATH elements.
2128 case $as_dir/ in
2129   ./ | .// | /cC/* | \
2130   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2131   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2132   /usr/ucb/* ) ;;
2133   *)
2134     # OSF1 and SCO ODT 3.0 have their own names for install.
2135     # Don't use installbsd from OSF since it installs stuff as root
2136     # by default.
2137     for ac_prog in ginstall scoinst install; do
2138       for ac_exec_ext in '' $ac_executable_extensions; do
2139         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2140           if test $ac_prog = install &&
2141             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2142             # AIX install.  It has an incompatible calling convention.
2143             :
2144           elif test $ac_prog = install &&
2145             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146             # program-specific install script used by HP pwplus--don't use.
2147             :
2148           else
2149             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2150             break 3
2151           fi
2152         fi
2153       done
2154     done
2155     ;;
2156 esac
2157 done
2158 IFS=$as_save_IFS
2159
2160
2161 fi
2162   if test "${ac_cv_path_install+set}" = set; then
2163     INSTALL=$ac_cv_path_install
2164   else
2165     # As a last resort, use the slow shell script.  Don't cache a
2166     # value for INSTALL within a source directory, because that will
2167     # break other packages using the cache if that directory is
2168     # removed, or if the value is a relative name.
2169     INSTALL=$ac_install_sh
2170   fi
2171 fi
2172 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2173 echo "${ECHO_T}$INSTALL" >&6; }
2174
2175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176 # It thinks the first close brace ends the variable substitution.
2177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2178
2179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2180
2181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2182
2183 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2184 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2185 # Just in case
2186 sleep 1
2187 echo timestamp > conftest.file
2188 # Do `set' in a subshell so we don't clobber the current shell's
2189 # arguments.  Must try -L first in case configure is actually a
2190 # symlink; some systems play weird games with the mod time of symlinks
2191 # (eg FreeBSD returns the mod time of the symlink's containing
2192 # directory).
2193 if (
2194    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2195    if test "$*" = "X"; then
2196       # -L didn't work.
2197       set X `ls -t $srcdir/configure conftest.file`
2198    fi
2199    rm -f conftest.file
2200    if test "$*" != "X $srcdir/configure conftest.file" \
2201       && test "$*" != "X conftest.file $srcdir/configure"; then
2202
2203       # If neither matched, then we have a broken ls.  This can happen
2204       # if, for instance, CONFIG_SHELL is bash and it inherits a
2205       # broken ls alias from the environment.  This has actually
2206       # happened.  Such a system could not be considered "sane".
2207       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2208 alias in your environment" >&5
2209 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2210 alias in your environment" >&2;}
2211    { (exit 1); exit 1; }; }
2212    fi
2213
2214    test "$2" = conftest.file
2215    )
2216 then
2217    # Ok.
2218    :
2219 else
2220    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2221 Check your system clock" >&5
2222 echo "$as_me: error: newly created file is older than distributed files!
2223 Check your system clock" >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228 test "$program_prefix" != NONE &&
2229   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2230 # Use a double $ so make ignores it.
2231 test "$program_suffix" != NONE &&
2232   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2233 # Double any \ or $.  echo might interpret backslashes.
2234 # By default was `s,x,x', remove it if useless.
2235 cat <<\_ACEOF >conftest.sed
2236 s/[\\$]/&&/g;s/;s,x,x,$//
2237 _ACEOF
2238 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2239 rm -f conftest.sed
2240
2241 # expand $ac_aux_dir to an absolute path
2242 am_aux_dir=`cd $ac_aux_dir && pwd`
2243
2244 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2245 # Use eval to expand $SHELL
2246 if eval "$MISSING --run true"; then
2247   am_missing_run="$MISSING --run "
2248 else
2249   am_missing_run=
2250   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2251 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2252 fi
2253
2254 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2255 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2256 if test -z "$MKDIR_P"; then
2257   if test "${ac_cv_path_mkdir+set}" = set; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265   for ac_prog in mkdir gmkdir; do
2266          for ac_exec_ext in '' $ac_executable_extensions; do
2267            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2268            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2269              'mkdir (GNU coreutils) '* | \
2270              'mkdir (coreutils) '* | \
2271              'mkdir (fileutils) '4.1*)
2272                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2273                break 3;;
2274            esac
2275          done
2276        done
2277 done
2278 IFS=$as_save_IFS
2279
2280 fi
2281
2282   if test "${ac_cv_path_mkdir+set}" = set; then
2283     MKDIR_P="$ac_cv_path_mkdir -p"
2284   else
2285     # As a last resort, use the slow shell script.  Don't cache a
2286     # value for MKDIR_P within a source directory, because that will
2287     # break other packages using the cache if that directory is
2288     # removed, or if the value is a relative name.
2289     test -d ./--version && rmdir ./--version
2290     MKDIR_P="$ac_install_sh -d"
2291   fi
2292 fi
2293 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2294 echo "${ECHO_T}$MKDIR_P" >&6; }
2295
2296 mkdir_p="$MKDIR_P"
2297 case $mkdir_p in
2298   [\\/$]* | ?:[\\/]*) ;;
2299   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2300 esac
2301
2302 for ac_prog in gawk mawk nawk awk
2303 do
2304   # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_AWK+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$AWK"; then
2312   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321     ac_cv_prog_AWK="$ac_prog"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 AWK=$ac_cv_prog_AWK
2332 if test -n "$AWK"; then
2333   { echo "$as_me:$LINENO: result: $AWK" >&5
2334 echo "${ECHO_T}$AWK" >&6; }
2335 else
2336   { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341   test -n "$AWK" && break
2342 done
2343
2344 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2345 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2346 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2347 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   cat >conftest.make <<\_ACEOF
2351 SHELL = /bin/sh
2352 all:
2353         @echo '@@@%%%=$(MAKE)=@@@%%%'
2354 _ACEOF
2355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2357   *@@@%%%=?*=@@@%%%*)
2358     eval ac_cv_prog_make_${ac_make}_set=yes;;
2359   *)
2360     eval ac_cv_prog_make_${ac_make}_set=no;;
2361 esac
2362 rm -f conftest.make
2363 fi
2364 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2365   { echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6; }
2367   SET_MAKE=
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371   SET_MAKE="MAKE=${MAKE-make}"
2372 fi
2373
2374 rm -rf .tst 2>/dev/null
2375 mkdir .tst 2>/dev/null
2376 if test -d .tst; then
2377   am__leading_dot=.
2378 else
2379   am__leading_dot=_
2380 fi
2381 rmdir .tst 2>/dev/null
2382
2383 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2384   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2385   # is not polluted with repeated "-I."
2386   am__isrc=' -I$(srcdir)'
2387   # test to see if srcdir already configured
2388   if test -f $srcdir/config.status; then
2389     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2390 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2391    { (exit 1); exit 1; }; }
2392   fi
2393 fi
2394
2395 # test whether we have cygpath
2396 if test -z "$CYGPATH_W"; then
2397   if (cygpath --version) >/dev/null 2>/dev/null; then
2398     CYGPATH_W='cygpath -w'
2399   else
2400     CYGPATH_W=echo
2401   fi
2402 fi
2403
2404
2405 # Define the identity of the package.
2406  PACKAGE=scss
2407  VERSION=1.0.0
2408
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE "$PACKAGE"
2412 _ACEOF
2413
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define VERSION "$VERSION"
2417 _ACEOF
2418
2419 # Some tools Automake needs.
2420
2421 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2422
2423
2424 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2425
2426
2427 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2428
2429
2430 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2431
2432
2433 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2434
2435 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2436
2437 # Installed binaries are usually stripped using `strip' when the user
2438 # run `make install-strip'.  However `strip' might not be the right
2439 # tool to use in cross-compilation environments, therefore Automake
2440 # will honor the `STRIP' environment variable to overrule this program.
2441 if test "$cross_compiling" != no; then
2442   if test -n "$ac_tool_prefix"; then
2443   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}strip; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_STRIP+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$STRIP"; then
2451   ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
2461     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 STRIP=$ac_cv_prog_STRIP
2471 if test -n "$STRIP"; then
2472   { echo "$as_me:$LINENO: result: $STRIP" >&5
2473 echo "${ECHO_T}$STRIP" >&6; }
2474 else
2475   { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479
2480 fi
2481 if test -z "$ac_cv_prog_STRIP"; then
2482   ac_ct_STRIP=$STRIP
2483   # Extract the first word of "strip", so it can be a program name with args.
2484 set dummy strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$ac_ct_STRIP"; then
2491   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_ac_ct_STRIP="strip"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511 if test -n "$ac_ct_STRIP"; then
2512   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2513 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519   if test "x$ac_ct_STRIP" = x; then
2520     STRIP=":"
2521   else
2522     case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet.  If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet.  If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530 ac_tool_warned=yes ;;
2531 esac
2532     STRIP=$ac_ct_STRIP
2533   fi
2534 else
2535   STRIP="$ac_cv_prog_STRIP"
2536 fi
2537
2538 fi
2539 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2540
2541 # We need awk for the "check" target.  The system "awk" is bad on
2542 # some platforms.
2543 # Always define AMTAR for backward compatibility.
2544
2545 AMTAR=${AMTAR-"${am_missing_run}tar"}
2546
2547 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2548
2549
2550
2551
2552
2553
2554 ac_config_headers="$ac_config_headers include/config.h"
2555
2556
2557 # Checks for programs.
2558 # Check whether --enable-shared was given.
2559 if test "${enable_shared+set}" = set; then
2560   enableval=$enable_shared; p=${PACKAGE-default}
2561     case $enableval in
2562     yes) enable_shared=yes ;;
2563     no) enable_shared=no ;;
2564     *)
2565       enable_shared=no
2566       # Look at the argument we got.  We use all the common list separators.
2567       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2568       for pkg in $enableval; do
2569         IFS="$lt_save_ifs"
2570         if test "X$pkg" = "X$p"; then
2571           enable_shared=yes
2572         fi
2573       done
2574       IFS="$lt_save_ifs"
2575       ;;
2576     esac
2577 else
2578   enable_shared=yes
2579 fi
2580
2581
2582 # Check whether --enable-static was given.
2583 if test "${enable_static+set}" = set; then
2584   enableval=$enable_static; p=${PACKAGE-default}
2585     case $enableval in
2586     yes) enable_static=yes ;;
2587     no) enable_static=no ;;
2588     *)
2589      enable_static=no
2590       # Look at the argument we got.  We use all the common list separators.
2591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2592       for pkg in $enableval; do
2593         IFS="$lt_save_ifs"
2594         if test "X$pkg" = "X$p"; then
2595           enable_static=yes
2596         fi
2597       done
2598       IFS="$lt_save_ifs"
2599       ;;
2600     esac
2601 else
2602   enable_static=yes
2603 fi
2604
2605
2606 # Check whether --enable-fast-install was given.
2607 if test "${enable_fast_install+set}" = set; then
2608   enableval=$enable_fast_install; p=${PACKAGE-default}
2609     case $enableval in
2610     yes) enable_fast_install=yes ;;
2611     no) enable_fast_install=no ;;
2612     *)
2613       enable_fast_install=no
2614       # Look at the argument we got.  We use all the common list separators.
2615       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2616       for pkg in $enableval; do
2617         IFS="$lt_save_ifs"
2618         if test "X$pkg" = "X$p"; then
2619           enable_fast_install=yes
2620         fi
2621       done
2622       IFS="$lt_save_ifs"
2623       ;;
2624     esac
2625 else
2626   enable_fast_install=yes
2627 fi
2628
2629
2630 DEPDIR="${am__leading_dot}deps"
2631
2632 ac_config_commands="$ac_config_commands depfiles"
2633
2634
2635 am_make=${MAKE-make}
2636 cat > confinc << 'END'
2637 am__doit:
2638         @echo done
2639 .PHONY: am__doit
2640 END
2641 # If we don't find an include directive, just comment out the code.
2642 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2643 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2644 am__include="#"
2645 am__quote=
2646 _am_result=none
2647 # First try GNU make style include.
2648 echo "include confinc" > confmf
2649 # We grep out `Entering directory' and `Leaving directory'
2650 # messages which can occur if `w' ends up in MAKEFLAGS.
2651 # In particular we don't look at `^make:' because GNU make might
2652 # be invoked under some other name (usually "gmake"), in which
2653 # case it prints its new name instead of `make'.
2654 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2655    am__include=include
2656    am__quote=
2657    _am_result=GNU
2658 fi
2659 # Now try BSD make style include.
2660 if test "$am__include" = "#"; then
2661    echo '.include "confinc"' > confmf
2662    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2663       am__include=.include
2664       am__quote="\""
2665       _am_result=BSD
2666    fi
2667 fi
2668
2669
2670 { echo "$as_me:$LINENO: result: $_am_result" >&5
2671 echo "${ECHO_T}$_am_result" >&6; }
2672 rm -f confinc confmf
2673
2674 # Check whether --enable-dependency-tracking was given.
2675 if test "${enable_dependency_tracking+set}" = set; then
2676   enableval=$enable_dependency_tracking;
2677 fi
2678
2679 if test "x$enable_dependency_tracking" != xno; then
2680   am_depcomp="$ac_aux_dir/depcomp"
2681   AMDEPBACKSLASH='\'
2682 fi
2683  if test "x$enable_dependency_tracking" != xno; then
2684   AMDEP_TRUE=
2685   AMDEP_FALSE='#'
2686 else
2687   AMDEP_TRUE='#'
2688   AMDEP_FALSE=
2689 fi
2690
2691
2692 ac_ext=c
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697 if test -n "$ac_tool_prefix"; then
2698   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   if test -n "$CC"; then
2706   ac_cv_prog_CC="$CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727   { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2729 else
2730   { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735 fi
2736 if test -z "$ac_cv_prog_CC"; then
2737   ac_ct_CC=$CC
2738   # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -n "$ac_ct_CC"; then
2746   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753   for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_ac_ct_CC="gcc"
2756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2766 if test -n "$ac_ct_CC"; then
2767   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2768 echo "${ECHO_T}$ac_ct_CC" >&6; }
2769 else
2770   { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2772 fi
2773
2774   if test "x$ac_ct_CC" = x; then
2775     CC=""
2776   else
2777     case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2780 whose name does not start with the host triplet.  If you think this
2781 configuration is useful to you, please write to autoconf@gnu.org." >&5
2782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2783 whose name does not start with the host triplet.  If you think this
2784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2785 ac_tool_warned=yes ;;
2786 esac
2787     CC=$ac_ct_CC
2788   fi
2789 else
2790   CC="$ac_cv_prog_CC"
2791 fi
2792
2793 if test -z "$CC"; then
2794           if test -n "$ac_tool_prefix"; then
2795     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}cc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_CC="${ac_tool_prefix}cc"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824   { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2826 else
2827   { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2829 fi
2830
2831
2832   fi
2833 fi
2834 if test -z "$CC"; then
2835   # Extract the first word of "cc", so it can be a program name with args.
2836 set dummy cc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$CC"; then
2843   ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845   ac_prog_rejected=no
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854        ac_prog_rejected=yes
2855        continue
2856      fi
2857     ac_cv_prog_CC="cc"
2858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859     break 2
2860   fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 if test $ac_prog_rejected = yes; then
2866   # We found a bogon in the path, so make sure we never use it.
2867   set dummy $ac_cv_prog_CC
2868   shift
2869   if test $# != 0; then
2870     # We chose a different compiler from the bogus one.
2871     # However, it has the same basename, so the bogon will be chosen
2872     # first if we set CC to just the basename; use the full file name.
2873     shift
2874     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2875   fi
2876 fi
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881   { echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6; }
2883 else
2884   { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2886 fi
2887
2888
2889 fi
2890 if test -z "$CC"; then
2891   if test -n "$ac_tool_prefix"; then
2892   for ac_prog in cl.exe
2893   do
2894     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899   echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901   if test -n "$CC"; then
2902   ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907   IFS=$as_save_IFS
2908   test -z "$as_dir" && as_dir=.
2909   for ac_exec_ext in '' $ac_executable_extensions; do
2910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913     break 2
2914   fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923   { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2925 else
2926   { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2928 fi
2929
2930
2931     test -n "$CC" && break
2932   done
2933 fi
2934 if test -z "$CC"; then
2935   ac_ct_CC=$CC
2936   for ac_prog in cl.exe
2937 do
2938   # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 set dummy $ac_prog; ac_word=$2
2940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   if test -n "$ac_ct_CC"; then
2946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955     ac_cv_prog_ac_ct_CC="$ac_prog"
2956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2968 echo "${ECHO_T}$ac_ct_CC" >&6; }
2969 else
2970   { echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6; }
2972 fi
2973
2974
2975   test -n "$ac_ct_CC" && break
2976 done
2977
2978   if test "x$ac_ct_CC" = x; then
2979     CC=""
2980   else
2981     case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet.  If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&5
2986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2987 whose name does not start with the host triplet.  If you think this
2988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2989 ac_tool_warned=yes ;;
2990 esac
2991     CC=$ac_ct_CC
2992   fi
2993 fi
2994
2995 fi
2996
2997
2998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: no acceptable C compiler found in \$PATH
3001 See \`config.log' for more details." >&2;}
3002    { (exit 1); exit 1; }; }
3003
3004 # Provide some information about the compiler.
3005 echo "$as_me:$LINENO: checking for C compiler version" >&5
3006 ac_compiler=`set X $ac_compile; echo $2`
3007 { (ac_try="$ac_compiler --version >&5"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compiler --version >&5") 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }
3017 { (ac_try="$ac_compiler -v >&5"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compiler -v >&5") 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }
3027 { (ac_try="$ac_compiler -V >&5"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compiler -V >&5") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }
3037
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 ac_clean_files_save=$ac_clean_files
3054 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3055 # Try to create an executable without -o first, disregard a.out.
3056 # It will help us diagnose broken compilers, and finding out an intuition
3057 # of exeext.
3058 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3059 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3060 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3061 #
3062 # List of possible output files, starting from the most likely.
3063 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3064 # only as a last resort.  b.out is created by i960 compilers.
3065 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3066 #
3067 # The IRIX 6 linker writes into existing files which may not be
3068 # executable, retaining their permissions.  Remove them first so a
3069 # subsequent execution test works.
3070 ac_rmfiles=
3071 for ac_file in $ac_files
3072 do
3073   case $ac_file in
3074     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3075     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076   esac
3077 done
3078 rm -f $ac_rmfiles
3079
3080 if { (ac_try="$ac_link_default"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_link_default") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; then
3090   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3093 # so that the user can short-circuit this test for compilers unknown to
3094 # Autoconf.
3095 for ac_file in $ac_files ''
3096 do
3097   test -f "$ac_file" || continue
3098   case $ac_file in
3099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3100         ;;
3101     [ab].out )
3102         # We found the default executable, but exeext='' is most
3103         # certainly right.
3104         break;;
3105     *.* )
3106         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3107         then :; else
3108            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109         fi
3110         # We set ac_cv_exeext here because the later test for it is not
3111         # safe: cross compilers may not add the suffix if given an `-o'
3112         # argument, so we may need to know it at that point already.
3113         # Even if this section looks crufty: it has the advantage of
3114         # actually working.
3115         break;;
3116     * )
3117         break;;
3118   esac
3119 done
3120 test "$ac_cv_exeext" = no && ac_cv_exeext=
3121
3122 else
3123   ac_file=''
3124 fi
3125
3126 { echo "$as_me:$LINENO: result: $ac_file" >&5
3127 echo "${ECHO_T}$ac_file" >&6; }
3128 if test -z "$ac_file"; then
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: C compiler cannot create executables
3135 See \`config.log' for more details." >&2;}
3136    { (exit 77); exit 77; }; }
3137 fi
3138
3139 ac_exeext=$ac_cv_exeext
3140
3141 # Check that the compiler produces executables we can run.  If not, either
3142 # the compiler is broken, or we cross compile.
3143 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3144 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3145 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3146 # If not cross compiling, check that we can run a simple program.
3147 if test "$cross_compiling" != yes; then
3148   if { ac_try='./$ac_file'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158     cross_compiling=no
3159   else
3160     if test "$cross_compiling" = maybe; then
3161         cross_compiling=yes
3162     else
3163         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3164 If you meant to cross compile, use \`--host'.
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details." >&2;}
3169    { (exit 1); exit 1; }; }
3170     fi
3171   fi
3172 fi
3173 { echo "$as_me:$LINENO: result: yes" >&5
3174 echo "${ECHO_T}yes" >&6; }
3175
3176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3177 ac_clean_files=$ac_clean_files_save
3178 # Check that the compiler produces executables we can run.  If not, either
3179 # the compiler is broken, or we cross compile.
3180 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3182 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3183 echo "${ECHO_T}$cross_compiling" >&6; }
3184
3185 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3187 if { (ac_try="$ac_link"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_link") 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; then
3197   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3198 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3199 # work properly (i.e., refer to `conftest.exe'), while it won't with
3200 # `rm'.
3201 for ac_file in conftest.exe conftest conftest.*; do
3202   test -f "$ac_file" || continue
3203   case $ac_file in
3204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3205     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206           break;;
3207     * ) break;;
3208   esac
3209 done
3210 else
3211   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." >&2;}
3215    { (exit 1); exit 1; }; }
3216 fi
3217
3218 rm -f conftest$ac_cv_exeext
3219 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3220 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3221
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3224 ac_exeext=$EXEEXT
3225 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3226 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3227 if test "${ac_cv_objext+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.o conftest.obj
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_compile") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; then
3256   for ac_file in conftest.o conftest.obj conftest.*; do
3257   test -f "$ac_file" || continue;
3258   case $ac_file in
3259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3260     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261        break;;
3262   esac
3263 done
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3271 See \`config.log' for more details." >&2;}
3272    { (exit 1); exit 1; }; }
3273 fi
3274
3275 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3276 fi
3277 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3278 echo "${ECHO_T}$ac_cv_objext" >&6; }
3279 OBJEXT=$ac_cv_objext
3280 ac_objext=$OBJEXT
3281 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292
3293 int
3294 main ()
3295 {
3296 #ifndef __GNUC__
3297        choke me
3298 #endif
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311   (eval "$ac_compile") 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } && {
3318          test -z "$ac_c_werror_flag" ||
3319          test ! -s conftest.err
3320        } && test -s conftest.$ac_objext; then
3321   ac_compiler_gnu=yes
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326         ac_compiler_gnu=no
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3331
3332 fi
3333 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3335 GCC=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3340 if test "${ac_cv_prog_cc_g+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343   ac_save_c_werror_flag=$ac_c_werror_flag
3344    ac_c_werror_flag=yes
3345    ac_cv_prog_cc_g=no
3346    CFLAGS="-g"
3347    cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353
3354 int
3355 main ()
3356 {
3357
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3364 case "(($ac_try" in
3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366   *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369   (eval "$ac_compile") 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } && {
3376          test -z "$ac_c_werror_flag" ||
3377          test ! -s conftest.err
3378        } && test -s conftest.$ac_objext; then
3379   ac_cv_prog_cc_g=yes
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384         CFLAGS=""
3385       cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_compile") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } && {
3414          test -z "$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        } && test -s conftest.$ac_objext; then
3417   :
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422         ac_c_werror_flag=$ac_save_c_werror_flag
3423          CFLAGS="-g"
3424          cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_compile") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } && {
3453          test -z "$ac_c_werror_flag" ||
3454          test ! -s conftest.err
3455        } && test -s conftest.$ac_objext; then
3456   ac_cv_prog_cc_g=yes
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461
3462 fi
3463
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471    ac_c_werror_flag=$ac_save_c_werror_flag
3472 fi
3473 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3475 if test "$ac_test_CFLAGS" = set; then
3476   CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478   if test "$GCC" = yes; then
3479     CFLAGS="-g -O2"
3480   else
3481     CFLAGS="-g"
3482   fi
3483 else
3484   if test "$GCC" = yes; then
3485     CFLAGS="-O2"
3486   else
3487     CFLAGS=
3488   fi
3489 fi
3490 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3491 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3492 if test "${ac_cv_prog_cc_c89+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   ac_cv_prog_cc_c89=no
3496 ac_save_CC=$CC
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 #include <stdarg.h>
3504 #include <stdio.h>
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3511      char **p;
3512      int i;
3513 {
3514   return p[i];
3515 }
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3517 {
3518   char *s;
3519   va_list v;
3520   va_start (v,p);
3521   s = g (p, va_arg (v,int));
3522   va_end (v);
3523   return s;
3524 }
3525
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3527    function prototypes and stuff, but not '\xHH' hex character constants.
3528    These don't provoke an error unfortunately, instead are silently treated
3529    as 'x'.  The following induces an error, until -std is added to get
3530    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3531    array size at least.  It's necessary to write '\x00'==0 to get something
3532    that's true only with -std.  */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
3535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3536    inside strings and character constants.  */
3537 #define FOO(x) 'x'
3538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3539
3540 int test (int i, double x);
3541 struct s1 {int (*f) (int a);};
3542 struct s2 {int (*f) (double a);};
3543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544 int argc;
3545 char **argv;
3546 int
3547 main ()
3548 {
3549 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3555         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3556 do
3557   CC="$ac_save_CC $ac_arg"
3558   rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_compile") 2>conftest.er1
3566   ac_status=$?
3567   grep -v '^ *+' conftest.er1 >conftest.err
3568   rm -f conftest.er1
3569   cat conftest.err >&5
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } && {
3572          test -z "$ac_c_werror_flag" ||
3573          test ! -s conftest.err
3574        } && test -s conftest.$ac_objext; then
3575   ac_cv_prog_cc_c89=$ac_arg
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580
3581 fi
3582
3583 rm -f core conftest.err conftest.$ac_objext
3584   test "x$ac_cv_prog_cc_c89" != "xno" && break
3585 done
3586 rm -f conftest.$ac_ext
3587 CC=$ac_save_CC
3588
3589 fi
3590 # AC_CACHE_VAL
3591 case "x$ac_cv_prog_cc_c89" in
3592   x)
3593     { echo "$as_me:$LINENO: result: none needed" >&5
3594 echo "${ECHO_T}none needed" >&6; } ;;
3595   xno)
3596     { echo "$as_me:$LINENO: result: unsupported" >&5
3597 echo "${ECHO_T}unsupported" >&6; } ;;
3598   *)
3599     CC="$CC $ac_cv_prog_cc_c89"
3600     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3602 esac
3603
3604
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
3611 depcc="$CC"   am_compiler_list=
3612
3613 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3614 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3615 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3619   # We make a subdir and do the tests there.  Otherwise we can end up
3620   # making bogus files that we don't know about and never remove.  For
3621   # instance it was reported that on HP-UX the gcc test will end up
3622   # making a dummy file named `D' -- because `-MD' means `put the output
3623   # in D'.
3624   mkdir conftest.dir
3625   # Copy depcomp to subdir because otherwise we won't find it if we're
3626   # using a relative directory.
3627   cp "$am_depcomp" conftest.dir
3628   cd conftest.dir
3629   # We will build objects and dependencies in a subdirectory because
3630   # it helps to detect inapplicable dependency modes.  For instance
3631   # both Tru64's cc and ICC support -MD to output dependencies as a
3632   # side effect of compilation, but ICC will put the dependencies in
3633   # the current directory while Tru64 will put them in the object
3634   # directory.
3635   mkdir sub
3636
3637   am_cv_CC_dependencies_compiler_type=none
3638   if test "$am_compiler_list" = ""; then
3639      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3640   fi
3641   for depmode in $am_compiler_list; do
3642     # Setup a source with many dependencies, because some compilers
3643     # like to wrap large dependency lists on column 80 (with \), and
3644     # we should not choose a depcomp mode which is confused by this.
3645     #
3646     # We need to recreate these files for each test, as the compiler may
3647     # overwrite some of them when testing with obscure command lines.
3648     # This happens at least with the AIX C compiler.
3649     : > sub/conftest.c
3650     for i in 1 2 3 4 5 6; do
3651       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3652       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3653       # Solaris 8's {/usr,}/bin/sh.
3654       touch sub/conftst$i.h
3655     done
3656     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3657
3658     case $depmode in
3659     nosideeffect)
3660       # after this tag, mechanisms are not by side-effect, so they'll
3661       # only be used when explicitly requested
3662       if test "x$enable_dependency_tracking" = xyes; then
3663         continue
3664       else
3665         break
3666       fi
3667       ;;
3668     none) break ;;
3669     esac
3670     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671     # mode.  It turns out that the SunPro C++ compiler does not properly
3672     # handle `-M -o', and we need to detect this.
3673     if depmode=$depmode \
3674        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3675        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3676        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3677          >/dev/null 2>conftest.err &&
3678        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3679        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682       # icc doesn't choke on unknown options, it will just issue warnings
3683       # or remarks (even with -Werror).  So we grep stderr for any message
3684       # that says an option was ignored or not supported.
3685       # When given -MP, icc 7.0 and 7.1 complain thusly:
3686       #   icc: Command line warning: ignoring option '-M'; no argument required
3687       # The diagnosis changed in icc 8.0:
3688       #   icc: Command line remark: option '-MP' not supported
3689       if (grep 'ignoring option' conftest.err ||
3690           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691         am_cv_CC_dependencies_compiler_type=$depmode
3692         break
3693       fi
3694     fi
3695   done
3696
3697   cd ..
3698   rm -rf conftest.dir
3699 else
3700   am_cv_CC_dependencies_compiler_type=none
3701 fi
3702
3703 fi
3704 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3706 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3707
3708  if
3709   test "x$enable_dependency_tracking" != xno \
3710   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3711   am__fastdepCC_TRUE=
3712   am__fastdepCC_FALSE='#'
3713 else
3714   am__fastdepCC_TRUE='#'
3715   am__fastdepCC_FALSE=
3716 fi
3717
3718
3719 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3720 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3721 if test "${lt_cv_path_SED+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   # Loop through the user's path and test for sed and gsed.
3725 # Then use that list of sed's as ones to test for truncation.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731   for lt_ac_prog in sed gsed; do
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3734         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3735       fi
3736     done
3737   done
3738 done
3739 lt_ac_max=0
3740 lt_ac_count=0
3741 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3742 # along with /bin/sed that truncates output.
3743 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3744   test ! -f $lt_ac_sed && continue
3745   cat /dev/null > conftest.in
3746   lt_ac_count=0
3747   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3748   # Check for GNU sed and select it if it is found.
3749   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3750     lt_cv_path_SED=$lt_ac_sed
3751     break
3752   fi
3753   while true; do
3754     cat conftest.in conftest.in >conftest.tmp
3755     mv conftest.tmp conftest.in
3756     cp conftest.in conftest.nl
3757     echo >>conftest.nl
3758     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3759     cmp -s conftest.out conftest.nl || break
3760     # 10000 chars as input seems more than enough
3761     test $lt_ac_count -gt 10 && break
3762     lt_ac_count=`expr $lt_ac_count + 1`
3763     if test $lt_ac_count -gt $lt_ac_max; then
3764       lt_ac_max=$lt_ac_count
3765       lt_cv_path_SED=$lt_ac_sed
3766     fi
3767   done
3768 done
3769
3770 fi
3771
3772 SED=$lt_cv_path_SED
3773 { echo "$as_me:$LINENO: result: $SED" >&5
3774 echo "${ECHO_T}$SED" >&6; }
3775
3776 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3777 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3778 if test "${ac_cv_path_GREP+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   # Extract the first word of "grep ggrep" to use in msg output
3782 if test -z "$GREP"; then
3783 set dummy grep ggrep; ac_prog_name=$2
3784 if test "${ac_cv_path_GREP+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_path_GREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_prog in grep ggrep; do
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3797     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3798     # Check for GNU ac_path_GREP and select it if it is found.
3799   # Check for GNU $ac_path_GREP
3800 case `"$ac_path_GREP" --version 2>&1` in
3801 *GNU*)
3802   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3803 *)
3804   ac_count=0
3805   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3806   while :
3807   do
3808     cat "conftest.in" "conftest.in" >"conftest.tmp"
3809     mv "conftest.tmp" "conftest.in"
3810     cp "conftest.in" "conftest.nl"
3811     echo 'GREP' >> "conftest.nl"
3812     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814     ac_count=`expr $ac_count + 1`
3815     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3816       # Best one so far, save it but keep looking for a better one
3817       ac_cv_path_GREP="$ac_path_GREP"
3818       ac_path_GREP_max=$ac_count
3819     fi
3820     # 10*(2^10) chars as input seems more than enough
3821     test $ac_count -gt 10 && break
3822   done
3823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3825
3826
3827     $ac_path_GREP_found && break 3
3828   done
3829 done
3830
3831 done
3832 IFS=$as_save_IFS
3833
3834
3835 fi
3836
3837 GREP="$ac_cv_path_GREP"
3838 if test -z "$GREP"; then
3839   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841    { (exit 1); exit 1; }; }
3842 fi
3843
3844 else
3845   ac_cv_path_GREP=$GREP
3846 fi
3847
3848
3849 fi
3850 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3851 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3852  GREP="$ac_cv_path_GREP"
3853
3854
3855 { echo "$as_me:$LINENO: checking for egrep" >&5
3856 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3857 if test "${ac_cv_path_EGREP+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3861    then ac_cv_path_EGREP="$GREP -E"
3862    else
3863      # Extract the first word of "egrep" to use in msg output
3864 if test -z "$EGREP"; then
3865 set dummy egrep; ac_prog_name=$2
3866 if test "${ac_cv_path_EGREP+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   ac_path_EGREP_found=false
3870 # Loop through the user's path and test for each of PROGNAME-LIST
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_prog in egrep; do
3877   for ac_exec_ext in '' $ac_executable_extensions; do
3878     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3879     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3880     # Check for GNU ac_path_EGREP and select it if it is found.
3881   # Check for GNU $ac_path_EGREP
3882 case `"$ac_path_EGREP" --version 2>&1` in
3883 *GNU*)
3884   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3885 *)
3886   ac_count=0
3887   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3888   while :
3889   do
3890     cat "conftest.in" "conftest.in" >"conftest.tmp"
3891     mv "conftest.tmp" "conftest.in"
3892     cp "conftest.in" "conftest.nl"
3893     echo 'EGREP' >> "conftest.nl"
3894     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3896     ac_count=`expr $ac_count + 1`
3897     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3898       # Best one so far, save it but keep looking for a better one
3899       ac_cv_path_EGREP="$ac_path_EGREP"
3900       ac_path_EGREP_max=$ac_count
3901     fi
3902     # 10*(2^10) chars as input seems more than enough
3903     test $ac_count -gt 10 && break
3904   done
3905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3906 esac
3907
3908
3909     $ac_path_EGREP_found && break 3
3910   done
3911 done
3912
3913 done
3914 IFS=$as_save_IFS
3915
3916
3917 fi
3918
3919 EGREP="$ac_cv_path_EGREP"
3920 if test -z "$EGREP"; then
3921   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3922 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3923    { (exit 1); exit 1; }; }
3924 fi
3925
3926 else
3927   ac_cv_path_EGREP=$EGREP
3928 fi
3929
3930
3931    fi
3932 fi
3933 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3934 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3935  EGREP="$ac_cv_path_EGREP"
3936
3937
3938
3939 # Check whether --with-gnu-ld was given.
3940 if test "${with_gnu_ld+set}" = set; then
3941   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3942 else
3943   with_gnu_ld=no
3944 fi
3945
3946 ac_prog=ld
3947 if test "$GCC" = yes; then
3948   # Check if gcc -print-prog-name=ld gives a path.
3949   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3950 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3951   case $host in
3952   *-*-mingw*)
3953     # gcc leaves a trailing carriage return which upsets mingw
3954     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3955   *)
3956     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3957   esac
3958   case $ac_prog in
3959     # Accept absolute paths.
3960     [\\/]* | ?:[\\/]*)
3961       re_direlt='/[^/][^/]*/\.\./'
3962       # Canonicalize the pathname of ld
3963       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3964       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3965         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3966       done
3967       test -z "$LD" && LD="$ac_prog"
3968       ;;
3969   "")
3970     # If it fails, then pretend we aren't using GCC.
3971     ac_prog=ld
3972     ;;
3973   *)
3974     # If it is relative, then search for the first ld in PATH.
3975     with_gnu_ld=unknown
3976     ;;
3977   esac
3978 elif test "$with_gnu_ld" = yes; then
3979   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3981 else
3982   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3984 fi
3985 if test "${lt_cv_path_LD+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   if test -z "$LD"; then
3989   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3990   for ac_dir in $PATH; do
3991     IFS="$lt_save_ifs"
3992     test -z "$ac_dir" && ac_dir=.
3993     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3994       lt_cv_path_LD="$ac_dir/$ac_prog"
3995       # Check to see if the program is GNU ld.  I'd rather use --version,
3996       # but apparently some variants of GNU ld only accept -v.
3997       # Break only if it was the GNU/non-GNU ld that we prefer.
3998       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3999       *GNU* | *'with BFD'*)
4000         test "$with_gnu_ld" != no && break
4001         ;;
4002       *)
4003         test "$with_gnu_ld" != yes && break
4004         ;;
4005       esac
4006     fi
4007   done
4008   IFS="$lt_save_ifs"
4009 else
4010   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4011 fi
4012 fi
4013
4014 LD="$lt_cv_path_LD"
4015 if test -n "$LD"; then
4016   { echo "$as_me:$LINENO: result: $LD" >&5
4017 echo "${ECHO_T}$LD" >&6; }
4018 else
4019   { echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6; }
4021 fi
4022 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4023 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4024    { (exit 1); exit 1; }; }
4025 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4026 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4031 case `$LD -v 2>&1 </dev/null` in
4032 *GNU* | *'with BFD'*)
4033   lt_cv_prog_gnu_ld=yes
4034   ;;
4035 *)
4036   lt_cv_prog_gnu_ld=no
4037   ;;
4038 esac
4039 fi
4040 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4041 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4042 with_gnu_ld=$lt_cv_prog_gnu_ld
4043
4044
4045 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4046 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4047 if test "${lt_cv_ld_reload_flag+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   lt_cv_ld_reload_flag='-r'
4051 fi
4052 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4053 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4054 reload_flag=$lt_cv_ld_reload_flag
4055 case $reload_flag in
4056 "" | " "*) ;;
4057 *) reload_flag=" $reload_flag" ;;
4058 esac
4059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4060 case $host_os in
4061   darwin*)
4062     if test "$GCC" = yes; then
4063       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4064     else
4065       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4066     fi
4067     ;;
4068 esac
4069
4070 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4071 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4072 if test "${lt_cv_path_NM+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   if test -n "$NM"; then
4076   # Let the user override the test.
4077   lt_cv_path_NM="$NM"
4078 else
4079   lt_nm_to_check="${ac_tool_prefix}nm"
4080   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4081     lt_nm_to_check="$lt_nm_to_check nm"
4082   fi
4083   for lt_tmp_nm in $lt_nm_to_check; do
4084     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4085     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4086       IFS="$lt_save_ifs"
4087       test -z "$ac_dir" && ac_dir=.
4088       tmp_nm="$ac_dir/$lt_tmp_nm"
4089       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4090         # Check to see if the nm accepts a BSD-compat flag.
4091         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4092         #   nm: unknown option "B" ignored
4093         # Tru64's nm complains that /dev/null is an invalid object file
4094         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4095         */dev/null* | *'Invalid file or object type'*)
4096           lt_cv_path_NM="$tmp_nm -B"
4097           break
4098           ;;
4099         *)
4100           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4101           */dev/null*)
4102             lt_cv_path_NM="$tmp_nm -p"
4103             break
4104             ;;
4105           *)
4106             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4107             continue # so that we can try to find one that supports BSD flags
4108             ;;
4109           esac
4110           ;;
4111         esac
4112       fi
4113     done
4114     IFS="$lt_save_ifs"
4115   done
4116   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4117 fi
4118 fi
4119 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4120 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4121 NM="$lt_cv_path_NM"
4122
4123 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4124 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4125 LN_S=$as_ln_s
4126 if test "$LN_S" = "ln -s"; then
4127   { echo "$as_me:$LINENO: result: yes" >&5
4128 echo "${ECHO_T}yes" >&6; }
4129 else
4130   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4131 echo "${ECHO_T}no, using $LN_S" >&6; }
4132 fi
4133
4134 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4135 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4136 if test "${lt_cv_deplibs_check_method+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   lt_cv_file_magic_cmd='$MAGIC_CMD'
4140 lt_cv_file_magic_test_file=
4141 lt_cv_deplibs_check_method='unknown'
4142 # Need to set the preceding variable on all platforms that support
4143 # interlibrary dependencies.
4144 # 'none' -- dependencies not supported.
4145 # `unknown' -- same as none, but documents that we really don't know.
4146 # 'pass_all' -- all dependencies passed with no checks.
4147 # 'test_compile' -- check by making test program.
4148 # 'file_magic [[regex]]' -- check by looking for files in library path
4149 # which responds to the $file_magic_cmd with a given extended regex.
4150 # If you have `file' or equivalent on your system and you're not sure
4151 # whether `pass_all' will *always* work, you probably want this one.
4152
4153 case $host_os in
4154 aix4* | aix5*)
4155   lt_cv_deplibs_check_method=pass_all
4156   ;;
4157
4158 beos*)
4159   lt_cv_deplibs_check_method=pass_all
4160   ;;
4161
4162 bsdi[45]*)
4163   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4164   lt_cv_file_magic_cmd='/usr/bin/file -L'
4165   lt_cv_file_magic_test_file=/shlib/libc.so
4166   ;;
4167
4168 cygwin*)
4169   # func_win32_libid is a shell function defined in ltmain.sh
4170   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4171   lt_cv_file_magic_cmd='func_win32_libid'
4172   ;;
4173
4174 mingw* | pw32*)
4175   # Base MSYS/MinGW do not provide the 'file' command needed by
4176   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4177   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4178   lt_cv_file_magic_cmd='$OBJDUMP -f'
4179   ;;
4180
4181 darwin* | rhapsody*)
4182   lt_cv_deplibs_check_method=pass_all
4183   ;;
4184
4185 freebsd* | dragonfly*)
4186   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4187     case $host_cpu in
4188     i*86 )
4189       # Not sure whether the presence of OpenBSD here was a mistake.
4190       # Let's accept both of them until this is cleared up.
4191       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4192       lt_cv_file_magic_cmd=/usr/bin/file
4193       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4194       ;;
4195     esac
4196   else
4197     lt_cv_deplibs_check_method=pass_all
4198   fi
4199   ;;
4200
4201 gnu*)
4202   lt_cv_deplibs_check_method=pass_all
4203   ;;
4204
4205 hpux10.20* | hpux11*)
4206   lt_cv_file_magic_cmd=/usr/bin/file
4207   case $host_cpu in
4208   ia64*)
4209     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4210     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4211     ;;
4212   hppa*64*)
4213     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]'
4214     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4215     ;;
4216   *)
4217     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4218     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4219     ;;
4220   esac
4221   ;;
4222
4223 interix3*)
4224   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4225   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4226   ;;
4227
4228 irix5* | irix6* | nonstopux*)
4229   case $LD in
4230   *-32|*"-32 ") libmagic=32-bit;;
4231   *-n32|*"-n32 ") libmagic=N32;;
4232   *-64|*"-64 ") libmagic=64-bit;;
4233   *) libmagic=never-match;;
4234   esac
4235   lt_cv_deplibs_check_method=pass_all
4236   ;;
4237
4238 # This must be Linux ELF.
4239 linux* | k*bsd*-gnu)
4240   lt_cv_deplibs_check_method=pass_all
4241   ;;
4242
4243 netbsd* | netbsdelf*-gnu)
4244   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4245     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4246   else
4247     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4248   fi
4249   ;;
4250
4251 newos6*)
4252   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4253   lt_cv_file_magic_cmd=/usr/bin/file
4254   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4255   ;;
4256
4257 nto-qnx*)
4258   lt_cv_deplibs_check_method=unknown
4259   ;;
4260
4261 openbsd*)
4262   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4264   else
4265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4266   fi
4267   ;;
4268
4269 osf3* | osf4* | osf5*)
4270   lt_cv_deplibs_check_method=pass_all
4271   ;;
4272
4273 solaris*)
4274   lt_cv_deplibs_check_method=pass_all
4275   ;;
4276
4277 sysv4 | sysv4.3*)
4278   case $host_vendor in
4279   motorola)
4280     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]'
4281     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4282     ;;
4283   ncr)
4284     lt_cv_deplibs_check_method=pass_all
4285     ;;
4286   sequent)
4287     lt_cv_file_magic_cmd='/bin/file'
4288     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4289     ;;
4290   sni)
4291     lt_cv_file_magic_cmd='/bin/file'
4292     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4293     lt_cv_file_magic_test_file=/lib/libc.so
4294     ;;
4295   siemens)
4296     lt_cv_deplibs_check_method=pass_all
4297     ;;
4298   pc)
4299     lt_cv_deplibs_check_method=pass_all
4300     ;;
4301   esac
4302   ;;
4303
4304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4305   lt_cv_deplibs_check_method=pass_all
4306   ;;
4307 esac
4308
4309 fi
4310 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4311 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4312 file_magic_cmd=$lt_cv_file_magic_cmd
4313 deplibs_check_method=$lt_cv_deplibs_check_method
4314 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4315
4316
4317
4318
4319 # If no C compiler was specified, use CC.
4320 LTCC=${LTCC-"$CC"}
4321
4322 # If no C compiler flags were specified, use CFLAGS.
4323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4324
4325 # Allow CC to be a program name with arguments.
4326 compiler=$CC
4327
4328
4329 # Check whether --enable-libtool-lock was given.
4330 if test "${enable_libtool_lock+set}" = set; then
4331   enableval=$enable_libtool_lock;
4332 fi
4333
4334 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4335
4336 # Some flags need to be propagated to the compiler or linker for good
4337 # libtool support.
4338 case $host in
4339 ia64-*-hpux*)
4340   # Find out which ABI we are using.
4341   echo 'int i;' > conftest.$ac_ext
4342   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343   (eval $ac_compile) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; then
4347     case `/usr/bin/file conftest.$ac_objext` in
4348     *ELF-32*)
4349       HPUX_IA64_MODE="32"
4350       ;;
4351     *ELF-64*)
4352       HPUX_IA64_MODE="64"
4353       ;;
4354     esac
4355   fi
4356   rm -rf conftest*
4357   ;;
4358 *-*-irix6*)
4359   # Find out which ABI we are using.
4360   echo '#line 4360 "configure"' > conftest.$ac_ext
4361   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362   (eval $ac_compile) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; then
4366    if test "$lt_cv_prog_gnu_ld" = yes; then
4367     case `/usr/bin/file conftest.$ac_objext` in
4368     *32-bit*)
4369       LD="${LD-ld} -melf32bsmip"
4370       ;;
4371     *N32*)
4372       LD="${LD-ld} -melf32bmipn32"
4373       ;;
4374     *64-bit*)
4375       LD="${LD-ld} -melf64bmip"
4376       ;;
4377     esac
4378    else
4379     case `/usr/bin/file conftest.$ac_objext` in
4380     *32-bit*)
4381       LD="${LD-ld} -32"
4382       ;;
4383     *N32*)
4384       LD="${LD-ld} -n32"
4385       ;;
4386     *64-bit*)
4387       LD="${LD-ld} -64"
4388       ;;
4389     esac
4390    fi
4391   fi
4392   rm -rf conftest*
4393   ;;
4394
4395 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4396   # Find out which ABI we are using.
4397   echo 'int i;' > conftest.$ac_ext
4398   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; then
4403     case `/usr/bin/file conftest.o` in
4404     *32-bit*)
4405       case $host in
4406         x86_64-*linux*)
4407           LD="${LD-ld} -m elf_i386"
4408           ;;
4409         ppc64-*linux*|powerpc64-*linux*)
4410           LD="${LD-ld} -m elf32ppclinux"
4411           ;;
4412         s390x-*linux*)
4413           LD="${LD-ld} -m elf_s390"
4414           ;;
4415         sparc64-*linux*)
4416           LD="${LD-ld} -m elf32_sparc"
4417           ;;
4418       esac
4419       ;;
4420     *64-bit*)
4421       case $host in
4422         x86_64-*linux*)
4423           LD="${LD-ld} -m elf_x86_64"
4424           ;;
4425         ppc*-*linux*|powerpc*-*linux*)
4426           LD="${LD-ld} -m elf64ppc"
4427           ;;
4428         s390*-*linux*)
4429           LD="${LD-ld} -m elf64_s390"
4430           ;;
4431         sparc*-*linux*)
4432           LD="${LD-ld} -m elf64_sparc"
4433           ;;
4434       esac
4435       ;;
4436     esac
4437   fi
4438   rm -rf conftest*
4439   ;;
4440
4441 *-*-sco3.2v5*)
4442   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4443   SAVE_CFLAGS="$CFLAGS"
4444   CFLAGS="$CFLAGS -belf"
4445   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4446 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4447 if test "${lt_cv_cc_needs_belf+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456      cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462
4463 int
4464 main ()
4465 {
4466
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_link") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } && {
4485          test -z "$ac_c_werror_flag" ||
4486          test ! -s conftest.err
4487        } && test -s conftest$ac_exeext &&
4488        $as_test_x conftest$ac_exeext; then
4489   lt_cv_cc_needs_belf=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         lt_cv_cc_needs_belf=no
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4498       conftest$ac_exeext conftest.$ac_ext
4499      ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505 fi
4506 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4507 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4508   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4509     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4510     CFLAGS="$SAVE_CFLAGS"
4511   fi
4512   ;;
4513 sparc*-*solaris*)
4514   # Find out which ABI we are using.
4515   echo 'int i;' > conftest.$ac_ext
4516   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517   (eval $ac_compile) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }; then
4521     case `/usr/bin/file conftest.o` in
4522     *64-bit*)
4523       case $lt_cv_prog_gnu_ld in
4524       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4525       *)    LD="${LD-ld} -64" ;;
4526       esac
4527       ;;
4528     esac
4529   fi
4530   rm -rf conftest*
4531   ;;
4532
4533
4534 esac
4535
4536 need_locks="$enable_libtool_lock"
4537
4538
4539 ac_ext=c
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4546 # On Suns, sometimes $CPP names a directory.
4547 if test -n "$CPP" && test -d "$CPP"; then
4548   CPP=
4549 fi
4550 if test -z "$CPP"; then
4551   if test "${ac_cv_prog_CPP+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554       # Double quotes because CPP needs to be expanded
4555     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4556     do
4557       ac_preproc_ok=false
4558 for ac_c_preproc_warn_flag in '' yes
4559 do
4560   # Use a header file that comes with gcc, so configuring glibc
4561   # with a fresh cross-compiler works.
4562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563   # <limits.h> exists even on freestanding compilers.
4564   # On the NeXT, cc -E runs the code through the compiler's parser,
4565   # not just through cpp. "Syntax error" is here to catch this case.
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 #ifdef __STDC__
4573 # include <limits.h>
4574 #else
4575 # include <assert.h>
4576 #endif
4577                      Syntax error
4578 _ACEOF
4579 if { (ac_try="$ac_cpp conftest.$ac_ext"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } >/dev/null && {
4592          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4593          test ! -s conftest.err
4594        }; then
4595   :
4596 else
4597   echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600   # Broken: fails on valid input.
4601 continue
4602 fi
4603
4604 rm -f conftest.err conftest.$ac_ext
4605
4606   # OK, works on sane cases.  Now check whether nonexistent headers
4607   # can be detected and how.
4608   cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include <ac_nonexistent.h>
4615 _ACEOF
4616 if { (ac_try="$ac_cpp conftest.$ac_ext"
4617 case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } >/dev/null && {
4629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4630          test ! -s conftest.err
4631        }; then
4632   # Broken: success on invalid input.
4633 continue
4634 else
4635   echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638   # Passes both tests.
4639 ac_preproc_ok=:
4640 break
4641 fi
4642
4643 rm -f conftest.err conftest.$ac_ext
4644
4645 done
4646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4647 rm -f conftest.err conftest.$ac_ext
4648 if $ac_preproc_ok; then
4649   break
4650 fi
4651
4652     done
4653     ac_cv_prog_CPP=$CPP
4654
4655 fi
4656   CPP=$ac_cv_prog_CPP
4657 else
4658   ac_cv_prog_CPP=$CPP
4659 fi
4660 { echo "$as_me:$LINENO: result: $CPP" >&5
4661 echo "${ECHO_T}$CPP" >&6; }
4662 ac_preproc_ok=false
4663 for ac_c_preproc_warn_flag in '' yes
4664 do
4665   # Use a header file that comes with gcc, so configuring glibc
4666   # with a fresh cross-compiler works.
4667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668   # <limits.h> exists even on freestanding compilers.
4669   # On the NeXT, cc -E runs the code through the compiler's parser,
4670   # not just through cpp. "Syntax error" is here to catch this case.
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 #ifdef __STDC__
4678 # include <limits.h>
4679 #else
4680 # include <assert.h>
4681 #endif
4682                      Syntax error
4683 _ACEOF
4684 if { (ac_try="$ac_cpp conftest.$ac_ext"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } >/dev/null && {
4697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4698          test ! -s conftest.err
4699        }; then
4700   :
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705   # Broken: fails on valid input.
4706 continue
4707 fi
4708
4709 rm -f conftest.err conftest.$ac_ext
4710
4711   # OK, works on sane cases.  Now check whether nonexistent headers
4712   # can be detected and how.
4713   cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719 #include <ac_nonexistent.h>
4720 _ACEOF
4721 if { (ac_try="$ac_cpp conftest.$ac_ext"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } >/dev/null && {
4734          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4735          test ! -s conftest.err
4736        }; then
4737   # Broken: success on invalid input.
4738 continue
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743   # Passes both tests.
4744 ac_preproc_ok=:
4745 break
4746 fi
4747
4748 rm -f conftest.err conftest.$ac_ext
4749
4750 done
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then
4754   :
4755 else
4756   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4757 See \`config.log' for more details." >&5
4758 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4759 See \`config.log' for more details." >&2;}
4760    { (exit 1); exit 1; }; }
4761 fi
4762
4763 ac_ext=c
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768
4769
4770 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4772 if test "${ac_cv_header_stdc+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 #include <stdlib.h>
4782 #include <stdarg.h>
4783 #include <string.h>
4784 #include <float.h>
4785
4786 int
4787 main ()
4788 {
4789
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4796 case "(($ac_try" in
4797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798   *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801   (eval "$ac_compile") 2>conftest.er1
4802   ac_status=$?
4803   grep -v '^ *+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } && {
4808          test -z "$ac_c_werror_flag" ||
4809          test ! -s conftest.err
4810        } && test -s conftest.$ac_objext; then
4811   ac_cv_header_stdc=yes
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816         ac_cv_header_stdc=no
4817 fi
4818
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820
4821 if test $ac_cv_header_stdc = yes; then
4822   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4823   cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h.  */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h.  */
4829 #include <string.h>
4830
4831 _ACEOF
4832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4833   $EGREP "memchr" >/dev/null 2>&1; then
4834   :
4835 else
4836   ac_cv_header_stdc=no
4837 fi
4838 rm -f conftest*
4839
4840 fi
4841
4842 if test $ac_cv_header_stdc = yes; then
4843   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4844   cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 #include <stdlib.h>
4851
4852 _ACEOF
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854   $EGREP "free" >/dev/null 2>&1; then
4855   :
4856 else
4857   ac_cv_header_stdc=no
4858 fi
4859 rm -f conftest*
4860
4861 fi
4862
4863 if test $ac_cv_header_stdc = yes; then
4864   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4865   if test "$cross_compiling" = yes; then
4866   :
4867 else
4868   cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h.  */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h.  */
4874 #include <ctype.h>
4875 #include <stdlib.h>
4876 #if ((' ' & 0x0FF) == 0x020)
4877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4879 #else
4880 # define ISLOWER(c) \
4881                    (('a' <= (c) && (c) <= 'i') \
4882                      || ('j' <= (c) && (c) <= 'r') \
4883                      || ('s' <= (c) && (c) <= 'z'))
4884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4885 #endif
4886
4887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4888 int
4889 main ()
4890 {
4891   int i;
4892   for (i = 0; i < 256; i++)
4893     if (XOR (islower (i), ISLOWER (i))
4894         || toupper (i) != TOUPPER (i))
4895       return 2;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest$ac_exeext
4900 if { (ac_try="$ac_link"
4901 case "(($ac_try" in
4902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903   *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906   (eval "$ac_link") 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4910   { (case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915   (eval "$ac_try") 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919   :
4920 else
4921   echo "$as_me: program exited with status $ac_status" >&5
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ( exit $ac_status )
4926 ac_cv_header_stdc=no
4927 fi
4928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4929 fi
4930
4931
4932 fi
4933 fi
4934 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4935 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4936 if test $ac_cv_header_stdc = yes; then
4937
4938 cat >>confdefs.h <<\_ACEOF
4939 #define STDC_HEADERS 1
4940 _ACEOF
4941
4942 fi
4943
4944 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4955                   inttypes.h stdint.h unistd.h
4956 do
4957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4961   echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963   cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 $ac_includes_default
4970
4971 #include <$ac_header>
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (ac_try="$ac_compile"
4975 case "(($ac_try" in
4976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977   *) ac_try_echo=$ac_try;;
4978 esac
4979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4980   (eval "$ac_compile") 2>conftest.er1
4981   ac_status=$?
4982   grep -v '^ *+' conftest.er1 >conftest.err
4983   rm -f conftest.er1
4984   cat conftest.err >&5
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } && {
4987          test -z "$ac_c_werror_flag" ||
4988          test ! -s conftest.err
4989        } && test -s conftest.$ac_objext; then
4990   eval "$as_ac_Header=yes"
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995         eval "$as_ac_Header=no"
4996 fi
4997
4998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 fi
5000 ac_res=`eval echo '${'$as_ac_Header'}'`
5001                { echo "$as_me:$LINENO: result: $ac_res" >&5
5002 echo "${ECHO_T}$ac_res" >&6; }
5003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5004   cat >>confdefs.h <<_ACEOF
5005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 _ACEOF
5007
5008 fi
5009
5010 done
5011
5012
5013
5014 for ac_header in dlfcn.h
5015 do
5016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5018   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 fi
5023 ac_res=`eval echo '${'$as_ac_Header'}'`
5024                { echo "$as_me:$LINENO: result: $ac_res" >&5
5025 echo "${ECHO_T}$ac_res" >&6; }
5026 else
5027   # Is the header compilable?
5028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 $ac_includes_default
5037 #include <$ac_header>
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (ac_try="$ac_compile"
5041 case "(($ac_try" in
5042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043   *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046   (eval "$ac_compile") 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } && {
5053          test -z "$ac_c_werror_flag" ||
5054          test ! -s conftest.err
5055        } && test -s conftest.$ac_objext; then
5056   ac_header_compiler=yes
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061         ac_header_compiler=no
5062 fi
5063
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5066 echo "${ECHO_T}$ac_header_compiler" >&6; }
5067
5068 # Is the header present?
5069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 #include <$ac_header>
5078 _ACEOF
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } >/dev/null && {
5092          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093          test ! -s conftest.err
5094        }; then
5095   ac_header_preproc=yes
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100   ac_header_preproc=no
5101 fi
5102
5103 rm -f conftest.err conftest.$ac_ext
5104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5105 echo "${ECHO_T}$ac_header_preproc" >&6; }
5106
5107 # So?  What about this header?
5108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5109   yes:no: )
5110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5114     ac_header_preproc=yes
5115     ;;
5116   no:yes:* )
5117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5129     ( cat <<\_ASBOX
5130 ## ---------------------------------------- ##
5131 ## Report this to konn@users.sourceforge.jp ##
5132 ## ---------------------------------------- ##
5133 _ASBOX
5134      ) | sed "s/^/$as_me: WARNING:     /" >&2
5135     ;;
5136 esac
5137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   eval "$as_ac_Header=\$ac_header_preproc"
5143 fi
5144 ac_res=`eval echo '${'$as_ac_Header'}'`
5145                { echo "$as_me:$LINENO: result: $ac_res" >&5
5146 echo "${ECHO_T}$ac_res" >&6; }
5147
5148 fi
5149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5150   cat >>confdefs.h <<_ACEOF
5151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5152 _ACEOF
5153
5154 fi
5155
5156 done
5157
5158 ac_ext=cpp
5159 ac_cpp='$CXXCPP $CPPFLAGS'
5160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5163 if test -z "$CXX"; then
5164   if test -n "$CCC"; then
5165     CXX=$CCC
5166   else
5167     if test -n "$ac_tool_prefix"; then
5168   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5169   do
5170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_CXX+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$CXX"; then
5178   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 CXX=$ac_cv_prog_CXX
5198 if test -n "$CXX"; then
5199   { echo "$as_me:$LINENO: result: $CXX" >&5
5200 echo "${ECHO_T}$CXX" >&6; }
5201 else
5202   { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205
5206
5207     test -n "$CXX" && break
5208   done
5209 fi
5210 if test -z "$CXX"; then
5211   ac_ct_CXX=$CXX
5212   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213 do
5214   # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test -n "$ac_ct_CXX"; then
5222   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231     ac_cv_prog_ac_ct_CXX="$ac_prog"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5242 if test -n "$ac_ct_CXX"; then
5243   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5244 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5245 else
5246   { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5248 fi
5249
5250
5251   test -n "$ac_ct_CXX" && break
5252 done
5253
5254   if test "x$ac_ct_CXX" = x; then
5255     CXX="g++"
5256   else
5257     case $cross_compiling:$ac_tool_warned in
5258 yes:)
5259 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5260 whose name does not start with the host triplet.  If you think this
5261 configuration is useful to you, please write to autoconf@gnu.org." >&5
5262 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5263 whose name does not start with the host triplet.  If you think this
5264 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267     CXX=$ac_ct_CXX
5268   fi
5269 fi
5270
5271   fi
5272 fi
5273 # Provide some information about the compiler.
5274 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5275 ac_compiler=`set X $ac_compile; echo $2`
5276 { (ac_try="$ac_compiler --version >&5"
5277 case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282   (eval "$ac_compiler --version >&5") 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }
5286 { (ac_try="$ac_compiler -v >&5"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_compiler -v >&5") 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }
5296 { (ac_try="$ac_compiler -V >&5"
5297 case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302   (eval "$ac_compiler -V >&5") 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }
5306
5307 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5308 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5309 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h.  */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h.  */
5318
5319 int
5320 main ()
5321 {
5322 #ifndef __GNUC__
5323        choke me
5324 #endif
5325
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (ac_try="$ac_compile"
5332 case "(($ac_try" in
5333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334   *) ac_try_echo=$ac_try;;
5335 esac
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337   (eval "$ac_compile") 2>conftest.er1
5338   ac_status=$?
5339   grep -v '^ *+' conftest.er1 >conftest.err
5340   rm -f conftest.er1
5341   cat conftest.err >&5
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); } && {
5344          test -z "$ac_cxx_werror_flag" ||
5345          test ! -s conftest.err
5346        } && test -s conftest.$ac_objext; then
5347   ac_compiler_gnu=yes
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352         ac_compiler_gnu=no
5353 fi
5354
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5357
5358 fi
5359 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5360 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5361 GXX=`test $ac_compiler_gnu = yes && echo yes`
5362 ac_test_CXXFLAGS=${CXXFLAGS+set}
5363 ac_save_CXXFLAGS=$CXXFLAGS
5364 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5365 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5366 if test "${ac_cv_prog_cxx_g+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5370    ac_cxx_werror_flag=yes
5371    ac_cv_prog_cxx_g=no
5372    CXXFLAGS="-g"
5373    cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379
5380 int
5381 main ()
5382 {
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5390 case "(($ac_try" in
5391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392   *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395   (eval "$ac_compile") 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } && {
5402          test -z "$ac_cxx_werror_flag" ||
5403          test ! -s conftest.err
5404        } && test -s conftest.$ac_objext; then
5405   ac_cv_prog_cxx_g=yes
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410         CXXFLAGS=""
5411       cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417
5418 int
5419 main ()
5420 {
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_compile") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && {
5440          test -z "$ac_cxx_werror_flag" ||
5441          test ! -s conftest.err
5442        } && test -s conftest.$ac_objext; then
5443   :
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5449          CXXFLAGS="-g"
5450          cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456
5457 int
5458 main ()
5459 {
5460
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_compile") 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } && {
5479          test -z "$ac_cxx_werror_flag" ||
5480          test ! -s conftest.err
5481        } && test -s conftest.$ac_objext; then
5482   ac_cv_prog_cxx_g=yes
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 fi
5492
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 fi
5495
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5498 fi
5499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5500 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5501 if test "$ac_test_CXXFLAGS" = set; then
5502   CXXFLAGS=$ac_save_CXXFLAGS
5503 elif test $ac_cv_prog_cxx_g = yes; then
5504   if test "$GXX" = yes; then
5505     CXXFLAGS="-g -O2"
5506   else
5507     CXXFLAGS="-g"
5508   fi
5509 else
5510   if test "$GXX" = yes; then
5511     CXXFLAGS="-O2"
5512   else
5513     CXXFLAGS=
5514   fi
5515 fi
5516 ac_ext=cpp
5517 ac_cpp='$CXXCPP $CPPFLAGS'
5518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5521
5522 depcc="$CXX"  am_compiler_list=
5523
5524 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5525 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5530   # We make a subdir and do the tests there.  Otherwise we can end up
5531   # making bogus files that we don't know about and never remove.  For
5532   # instance it was reported that on HP-UX the gcc test will end up
5533   # making a dummy file named `D' -- because `-MD' means `put the output
5534   # in D'.
5535   mkdir conftest.dir
5536   # Copy depcomp to subdir because otherwise we won't find it if we're
5537   # using a relative directory.
5538   cp "$am_depcomp" conftest.dir
5539   cd conftest.dir
5540   # We will build objects and dependencies in a subdirectory because
5541   # it helps to detect inapplicable dependency modes.  For instance
5542   # both Tru64's cc and ICC support -MD to output dependencies as a
5543   # side effect of compilation, but ICC will put the dependencies in
5544   # the current directory while Tru64 will put them in the object
5545   # directory.
5546   mkdir sub
5547
5548   am_cv_CXX_dependencies_compiler_type=none
5549   if test "$am_compiler_list" = ""; then
5550      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5551   fi
5552   for depmode in $am_compiler_list; do
5553     # Setup a source with many dependencies, because some compilers
5554     # like to wrap large dependency lists on column 80 (with \), and
5555     # we should not choose a depcomp mode which is confused by this.
5556     #
5557     # We need to recreate these files for each test, as the compiler may
5558     # overwrite some of them when testing with obscure command lines.
5559     # This happens at least with the AIX C compiler.
5560     : > sub/conftest.c
5561     for i in 1 2 3 4 5 6; do
5562       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5563       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5564       # Solaris 8's {/usr,}/bin/sh.
5565       touch sub/conftst$i.h
5566     done
5567     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5568
5569     case $depmode in
5570     nosideeffect)
5571       # after this tag, mechanisms are not by side-effect, so they'll
5572       # only be used when explicitly requested
5573       if test "x$enable_dependency_tracking" = xyes; then
5574         continue
5575       else
5576         break
5577       fi
5578       ;;
5579     none) break ;;
5580     esac
5581     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5582     # mode.  It turns out that the SunPro C++ compiler does not properly
5583     # handle `-M -o', and we need to detect this.
5584     if depmode=$depmode \
5585        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5586        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5588          >/dev/null 2>conftest.err &&
5589        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5590        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5592        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593       # icc doesn't choke on unknown options, it will just issue warnings
5594       # or remarks (even with -Werror).  So we grep stderr for any message
5595       # that says an option was ignored or not supported.
5596       # When given -MP, icc 7.0 and 7.1 complain thusly:
5597       #   icc: Command line warning: ignoring option '-M'; no argument required
5598       # The diagnosis changed in icc 8.0:
5599       #   icc: Command line remark: option '-MP' not supported
5600       if (grep 'ignoring option' conftest.err ||
5601           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602         am_cv_CXX_dependencies_compiler_type=$depmode
5603         break
5604       fi
5605     fi
5606   done
5607
5608   cd ..
5609   rm -rf conftest.dir
5610 else
5611   am_cv_CXX_dependencies_compiler_type=none
5612 fi
5613
5614 fi
5615 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5616 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5617 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5618
5619  if
5620   test "x$enable_dependency_tracking" != xno \
5621   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5622   am__fastdepCXX_TRUE=
5623   am__fastdepCXX_FALSE='#'
5624 else
5625   am__fastdepCXX_TRUE='#'
5626   am__fastdepCXX_FALSE=
5627 fi
5628
5629
5630
5631
5632 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5633     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5634     (test "X$CXX" != "Xg++"))) ; then
5635   ac_ext=cpp
5636 ac_cpp='$CXXCPP $CPPFLAGS'
5637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5640 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5641 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5642 if test -z "$CXXCPP"; then
5643   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646       # Double quotes because CXXCPP needs to be expanded
5647     for CXXCPP in "$CXX -E" "/lib/cpp"
5648     do
5649       ac_preproc_ok=false
5650 for ac_cxx_preproc_warn_flag in '' yes
5651 do
5652   # Use a header file that comes with gcc, so configuring glibc
5653   # with a fresh cross-compiler works.
5654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655   # <limits.h> exists even on freestanding compilers.
5656   # On the NeXT, cc -E runs the code through the compiler's parser,
5657   # not just through cpp. "Syntax error" is here to catch this case.
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #ifdef __STDC__
5665 # include <limits.h>
5666 #else
5667 # include <assert.h>
5668 #endif
5669                      Syntax error
5670 _ACEOF
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } >/dev/null && {
5684          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5685          test ! -s conftest.err
5686        }; then
5687   :
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692   # Broken: fails on valid input.
5693 continue
5694 fi
5695
5696 rm -f conftest.err conftest.$ac_ext
5697
5698   # OK, works on sane cases.  Now check whether nonexistent headers
5699   # can be detected and how.
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #include <ac_nonexistent.h>
5707 _ACEOF
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5709 case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } >/dev/null && {
5721          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5722          test ! -s conftest.err
5723        }; then
5724   # Broken: success on invalid input.
5725 continue
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730   # Passes both tests.
5731 ac_preproc_ok=:
5732 break
5733 fi
5734
5735 rm -f conftest.err conftest.$ac_ext
5736
5737 done
5738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5739 rm -f conftest.err conftest.$ac_ext
5740 if $ac_preproc_ok; then
5741   break
5742 fi
5743
5744     done
5745     ac_cv_prog_CXXCPP=$CXXCPP
5746
5747 fi
5748   CXXCPP=$ac_cv_prog_CXXCPP
5749 else
5750   ac_cv_prog_CXXCPP=$CXXCPP
5751 fi
5752 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5753 echo "${ECHO_T}$CXXCPP" >&6; }
5754 ac_preproc_ok=false
5755 for ac_cxx_preproc_warn_flag in '' yes
5756 do
5757   # Use a header file that comes with gcc, so configuring glibc
5758   # with a fresh cross-compiler works.
5759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760   # <limits.h> exists even on freestanding compilers.
5761   # On the NeXT, cc -E runs the code through the compiler's parser,
5762   # not just through cpp. "Syntax error" is here to catch this case.
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #ifdef __STDC__
5770 # include <limits.h>
5771 #else
5772 # include <assert.h>
5773 #endif
5774                      Syntax error
5775 _ACEOF
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } >/dev/null && {
5789          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5790          test ! -s conftest.err
5791        }; then
5792   :
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797   # Broken: fails on valid input.
5798 continue
5799 fi
5800
5801 rm -f conftest.err conftest.$ac_ext
5802
5803   # OK, works on sane cases.  Now check whether nonexistent headers
5804   # can be detected and how.
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <ac_nonexistent.h>
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } >/dev/null && {
5826          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827          test ! -s conftest.err
5828        }; then
5829   # Broken: success on invalid input.
5830 continue
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835   # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839
5840 rm -f conftest.err conftest.$ac_ext
5841
5842 done
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5846   :
5847 else
5848   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5849 See \`config.log' for more details." >&5
5850 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5851 See \`config.log' for more details." >&2;}
5852    { (exit 1); exit 1; }; }
5853 fi
5854
5855 ac_ext=cpp
5856 ac_cpp='$CXXCPP $CPPFLAGS'
5857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5860
5861 fi
5862
5863
5864 ac_ext=f
5865 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5866 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5868 if test -n "$ac_tool_prefix"; then
5869   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
5870   do
5871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_F77+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$F77"; then
5879   ac_cv_prog_F77="$F77" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 F77=$ac_cv_prog_F77
5899 if test -n "$F77"; then
5900   { echo "$as_me:$LINENO: result: $F77" >&5
5901 echo "${ECHO_T}$F77" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908     test -n "$F77" && break
5909   done
5910 fi
5911 if test -z "$F77"; then
5912   ac_ct_F77=$F77
5913   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
5914 do
5915   # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   if test -n "$ac_ct_F77"; then
5923   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932     ac_cv_prog_ac_ct_F77="$ac_prog"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5943 if test -n "$ac_ct_F77"; then
5944   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5945 echo "${ECHO_T}$ac_ct_F77" >&6; }
5946 else
5947   { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5949 fi
5950
5951
5952   test -n "$ac_ct_F77" && break
5953 done
5954
5955   if test "x$ac_ct_F77" = x; then
5956     F77=""
5957   else
5958     case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet.  If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet.  If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968     F77=$ac_ct_F77
5969   fi
5970 fi
5971
5972
5973 # Provide some information about the compiler.
5974 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5975 ac_compiler=`set X $ac_compile; echo $2`
5976 { (ac_try="$ac_compiler --version >&5"
5977 case "(($ac_try" in
5978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979   *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982   (eval "$ac_compiler --version >&5") 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }
5986 { (ac_try="$ac_compiler -v >&5"
5987 case "(($ac_try" in
5988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989   *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992   (eval "$ac_compiler -v >&5") 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }
5996 { (ac_try="$ac_compiler -V >&5"
5997 case "(($ac_try" in
5998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999   *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002   (eval "$ac_compiler -V >&5") 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }
6006 rm -f a.out
6007
6008 # If we don't use `.F' as extension, the preprocessor is not run on the
6009 # input file.  (Note that this only needs to work for GNU compilers.)
6010 ac_save_ext=$ac_ext
6011 ac_ext=F
6012 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6013 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6014 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   cat >conftest.$ac_ext <<_ACEOF
6018       program main
6019 #ifndef __GNUC__
6020        choke me
6021 #endif
6022
6023       end
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6027 case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032   (eval "$ac_compile") 2>conftest.er1
6033   ac_status=$?
6034   grep -v '^ *+' conftest.er1 >conftest.err
6035   rm -f conftest.er1
6036   cat conftest.err >&5
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); } && {
6039          test -z "$ac_f77_werror_flag" ||
6040          test ! -s conftest.err
6041        } && test -s conftest.$ac_objext; then
6042   ac_compiler_gnu=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047         ac_compiler_gnu=no
6048 fi
6049
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6052
6053 fi
6054 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6055 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6056 ac_ext=$ac_save_ext
6057 ac_test_FFLAGS=${FFLAGS+set}
6058 ac_save_FFLAGS=$FFLAGS
6059 FFLAGS=
6060 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6061 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_f77_g+set}" = set; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   FFLAGS=-g
6066 cat >conftest.$ac_ext <<_ACEOF
6067       program main
6068
6069       end
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_compile") 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_f77_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest.$ac_objext; then
6088   ac_cv_prog_f77_g=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093         ac_cv_prog_f77_g=no
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097
6098 fi
6099 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6100 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6101 if test "$ac_test_FFLAGS" = set; then
6102   FFLAGS=$ac_save_FFLAGS
6103 elif test $ac_cv_prog_f77_g = yes; then
6104   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6105     FFLAGS="-g -O2"
6106   else
6107     FFLAGS="-g"
6108   fi
6109 else
6110   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6111     FFLAGS="-O2"
6112   else
6113     FFLAGS=
6114   fi
6115 fi
6116
6117 G77=`test $ac_compiler_gnu = yes && echo yes`
6118 ac_ext=c
6119 ac_cpp='$CPP $CPPFLAGS'
6120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123
6124
6125
6126 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6127
6128 # find the maximum length of command line arguments
6129 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6130 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6131 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134     i=0
6135   teststring="ABCD"
6136
6137   case $build_os in
6138   msdosdjgpp*)
6139     # On DJGPP, this test can blow up pretty badly due to problems in libc
6140     # (any single argument exceeding 2000 bytes causes a buffer overrun
6141     # during glob expansion).  Even if it were fixed, the result of this
6142     # check would be larger than it should be.
6143     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6144     ;;
6145
6146   gnu*)
6147     # Under GNU Hurd, this test is not required because there is
6148     # no limit to the length of command line arguments.
6149     # Libtool will interpret -1 as no limit whatsoever
6150     lt_cv_sys_max_cmd_len=-1;
6151     ;;
6152
6153   cygwin* | mingw*)
6154     # On Win9x/ME, this test blows up -- it succeeds, but takes
6155     # about 5 minutes as the teststring grows exponentially.
6156     # Worse, since 9x/ME are not pre-emptively multitasking,
6157     # you end up with a "frozen" computer, even though with patience
6158     # the test eventually succeeds (with a max line length of 256k).
6159     # Instead, let's just punt: use the minimum linelength reported by
6160     # all of the supported platforms: 8192 (on NT/2K/XP).
6161     lt_cv_sys_max_cmd_len=8192;
6162     ;;
6163
6164   amigaos*)
6165     # On AmigaOS with pdksh, this test takes hours, literally.
6166     # So we just punt and use a minimum line length of 8192.
6167     lt_cv_sys_max_cmd_len=8192;
6168     ;;
6169
6170   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6171     # This has been around since 386BSD, at least.  Likely further.
6172     if test -x /sbin/sysctl; then
6173       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6174     elif test -x /usr/sbin/sysctl; then
6175       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6176     else
6177       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6178     fi
6179     # And add a safety zone
6180     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6181     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6182     ;;
6183
6184   interix*)
6185     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6186     lt_cv_sys_max_cmd_len=196608
6187     ;;
6188
6189   osf*)
6190     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6191     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6192     # nice to cause kernel panics so lets avoid the loop below.
6193     # First set a reasonable default.
6194     lt_cv_sys_max_cmd_len=16384
6195     #
6196     if test -x /sbin/sysconfig; then
6197       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6198         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6199       esac
6200     fi
6201     ;;
6202   sco3.2v5*)
6203     lt_cv_sys_max_cmd_len=102400
6204     ;;
6205   sysv5* | sco5v6* | sysv4.2uw2*)
6206     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6207     if test -n "$kargmax"; then
6208       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6209     else
6210       lt_cv_sys_max_cmd_len=32768
6211     fi
6212     ;;
6213   *)
6214     # If test is not a shell built-in, we'll probably end up computing a
6215     # maximum length that is only half of the actual maximum length, but
6216     # we can't tell.
6217     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6218     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6219                = "XX$teststring") >/dev/null 2>&1 &&
6220             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6221             lt_cv_sys_max_cmd_len=$new_result &&
6222             test $i != 17 # 1/2 MB should be enough
6223     do
6224       i=`expr $i + 1`
6225       teststring=$teststring$teststring
6226     done
6227     teststring=
6228     # Add a significant safety factor because C++ compilers can tack on massive
6229     # amounts of additional arguments before passing them to the linker.
6230     # It appears as though 1/2 is a usable value.
6231     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6232     ;;
6233   esac
6234
6235 fi
6236
6237 if test -n $lt_cv_sys_max_cmd_len ; then
6238   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6239 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6240 else
6241   { echo "$as_me:$LINENO: result: none" >&5
6242 echo "${ECHO_T}none" >&6; }
6243 fi
6244
6245
6246
6247
6248 # Check for command to grab the raw symbol name followed by C symbol from nm.
6249 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6250 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254
6255 # These are sane defaults that work on at least a few old systems.
6256 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6257
6258 # Character class describing NM global symbol codes.
6259 symcode='[BCDEGRST]'
6260
6261 # Regexp to match symbols that can be accessed directly from C.
6262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6263
6264 # Transform an extracted symbol line into a proper C declaration
6265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6266
6267 # Transform an extracted symbol line into symbol name and symbol address
6268 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'"
6269
6270 # Define system-specific variables.
6271 case $host_os in
6272 aix*)
6273   symcode='[BCDT]'
6274   ;;
6275 cygwin* | mingw* | pw32*)
6276   symcode='[ABCDGISTW]'
6277   ;;
6278 hpux*) # Its linker distinguishes data from code symbols
6279   if test "$host_cpu" = ia64; then
6280     symcode='[ABCDEGRST]'
6281   fi
6282   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6283   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'"
6284   ;;
6285 linux* | k*bsd*-gnu)
6286   if test "$host_cpu" = ia64; then
6287     symcode='[ABCDGIRSTW]'
6288     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289     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'"
6290   fi
6291   ;;
6292 irix* | nonstopux*)
6293   symcode='[BCDEGRST]'
6294   ;;
6295 osf*)
6296   symcode='[BCDEGQRST]'
6297   ;;
6298 solaris*)
6299   symcode='[BDRT]'
6300   ;;
6301 sco3.2v5*)
6302   symcode='[DT]'
6303   ;;
6304 sysv4.2uw2*)
6305   symcode='[DT]'
6306   ;;
6307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6308   symcode='[ABDT]'
6309   ;;
6310 sysv4)
6311   symcode='[DFNSTU]'
6312   ;;
6313 esac
6314
6315 # Handle CRLF in mingw tool chain
6316 opt_cr=
6317 case $build_os in
6318 mingw*)
6319   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6320   ;;
6321 esac
6322
6323 # If we're using GNU nm, then use its standard symbol codes.
6324 case `$NM -V 2>&1` in
6325 *GNU* | *'with BFD'*)
6326   symcode='[ABCDGIRSTW]' ;;
6327 esac
6328
6329 # Try without a prefix undercore, then with it.
6330 for ac_symprfx in "" "_"; do
6331
6332   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6333   symxfrm="\\1 $ac_symprfx\\2 \\2"
6334
6335   # Write the raw and C identifiers.
6336   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6337
6338   # Check to see that the pipe works correctly.
6339   pipe_works=no
6340
6341   rm -f conftest*
6342   cat > conftest.$ac_ext <<EOF
6343 #ifdef __cplusplus
6344 extern "C" {
6345 #endif
6346 char nm_test_var;
6347 void nm_test_func(){}
6348 #ifdef __cplusplus
6349 }
6350 #endif
6351 int main(){nm_test_var='a';nm_test_func();return(0);}
6352 EOF
6353
6354   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355   (eval $ac_compile) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; then
6359     # Now try to grab the symbols.
6360     nlist=conftest.nm
6361     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6362   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } && test -s "$nlist"; then
6366       # Try sorting and uniquifying the output.
6367       if sort "$nlist" | uniq > "$nlist"T; then
6368         mv -f "$nlist"T "$nlist"
6369       else
6370         rm -f "$nlist"T
6371       fi
6372
6373       # Make sure that we snagged all the symbols we need.
6374       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6375         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6376           cat <<EOF > conftest.$ac_ext
6377 #ifdef __cplusplus
6378 extern "C" {
6379 #endif
6380
6381 EOF
6382           # Now generate the symbol file.
6383           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6384
6385           cat <<EOF >> conftest.$ac_ext
6386 #if defined (__STDC__) && __STDC__
6387 # define lt_ptr_t void *
6388 #else
6389 # define lt_ptr_t char *
6390 # define const
6391 #endif
6392
6393 /* The mapping between symbol names and symbols. */
6394 const struct {
6395   const char *name;
6396   lt_ptr_t address;
6397 }
6398 lt_preloaded_symbols[] =
6399 {
6400 EOF
6401           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6402           cat <<\EOF >> conftest.$ac_ext
6403   {0, (lt_ptr_t) 0}
6404 };
6405
6406 #ifdef __cplusplus
6407 }
6408 #endif
6409 EOF
6410           # Now try linking the two files.
6411           mv conftest.$ac_objext conftstm.$ac_objext
6412           lt_save_LIBS="$LIBS"
6413           lt_save_CFLAGS="$CFLAGS"
6414           LIBS="conftstm.$ac_objext"
6415           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6416           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417   (eval $ac_link) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6421             pipe_works=yes
6422           fi
6423           LIBS="$lt_save_LIBS"
6424           CFLAGS="$lt_save_CFLAGS"
6425         else
6426           echo "cannot find nm_test_func in $nlist" >&5
6427         fi
6428       else
6429         echo "cannot find nm_test_var in $nlist" >&5
6430       fi
6431     else
6432       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6433     fi
6434   else
6435     echo "$progname: failed program was:" >&5
6436     cat conftest.$ac_ext >&5
6437   fi
6438   rm -f conftest* conftst*
6439
6440   # Do not use the global_symbol_pipe unless it works.
6441   if test "$pipe_works" = yes; then
6442     break
6443   else
6444     lt_cv_sys_global_symbol_pipe=
6445   fi
6446 done
6447
6448 fi
6449
6450 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6451   lt_cv_sys_global_symbol_to_cdecl=
6452 fi
6453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6454   { echo "$as_me:$LINENO: result: failed" >&5
6455 echo "${ECHO_T}failed" >&6; }
6456 else
6457   { echo "$as_me:$LINENO: result: ok" >&5
6458 echo "${ECHO_T}ok" >&6; }
6459 fi
6460
6461 { echo "$as_me:$LINENO: checking for objdir" >&5
6462 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6463 if test "${lt_cv_objdir+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   rm -f .libs 2>/dev/null
6467 mkdir .libs 2>/dev/null
6468 if test -d .libs; then
6469   lt_cv_objdir=.libs
6470 else
6471   # MS-DOS does not allow filenames that begin with a dot.
6472   lt_cv_objdir=_libs
6473 fi
6474 rmdir .libs 2>/dev/null
6475 fi
6476 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6477 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6478 objdir=$lt_cv_objdir
6479
6480
6481
6482
6483
6484 case $host_os in
6485 aix3*)
6486   # AIX sometimes has problems with the GCC collect2 program.  For some
6487   # reason, if we set the COLLECT_NAMES environment variable, the problems
6488   # vanish in a puff of smoke.
6489   if test "X${COLLECT_NAMES+set}" != Xset; then
6490     COLLECT_NAMES=
6491     export COLLECT_NAMES
6492   fi
6493   ;;
6494 esac
6495
6496 # Sed substitution that helps us do robust quoting.  It backslashifies
6497 # metacharacters that are still active within double-quoted strings.
6498 Xsed='sed -e 1s/^X//'
6499 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6500
6501 # Same as above, but do not quote variable references.
6502 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6503
6504 # Sed substitution to delay expansion of an escaped shell variable in a
6505 # double_quote_subst'ed string.
6506 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6507
6508 # Sed substitution to avoid accidental globbing in evaled expressions
6509 no_glob_subst='s/\*/\\\*/g'
6510
6511 # Constants:
6512 rm="rm -f"
6513
6514 # Global variables:
6515 default_ofile=libtool
6516 can_build_shared=yes
6517
6518 # All known linkers require a `.a' archive for static linking (except MSVC,
6519 # which needs '.lib').
6520 libext=a
6521 ltmain="$ac_aux_dir/ltmain.sh"
6522 ofile="$default_ofile"
6523 with_gnu_ld="$lt_cv_prog_gnu_ld"
6524
6525 if test -n "$ac_tool_prefix"; then
6526   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}ar; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_AR+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   if test -n "$AR"; then
6534   ac_cv_prog_AR="$AR" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_AR="${ac_tool_prefix}ar"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 AR=$ac_cv_prog_AR
6554 if test -n "$AR"; then
6555   { echo "$as_me:$LINENO: result: $AR" >&5
6556 echo "${ECHO_T}$AR" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563 fi
6564 if test -z "$ac_cv_prog_AR"; then
6565   ac_ct_AR=$AR
6566   # Extract the first word of "ar", so it can be a program name with args.
6567 set dummy ar; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   if test -n "$ac_ct_AR"; then
6574   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581   for ac_exec_ext in '' $ac_executable_extensions; do
6582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583     ac_cv_prog_ac_ct_AR="ar"
6584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588 done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594 if test -n "$ac_ct_AR"; then
6595   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596 echo "${ECHO_T}$ac_ct_AR" >&6; }
6597 else
6598   { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6600 fi
6601
6602   if test "x$ac_ct_AR" = x; then
6603     AR="false"
6604   else
6605     case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6608 whose name does not start with the host triplet.  If you think this
6609 configuration is useful to you, please write to autoconf@gnu.org." >&5
6610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet.  If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     AR=$ac_ct_AR
6616   fi
6617 else
6618   AR="$ac_cv_prog_AR"
6619 fi
6620
6621 if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_RANLIB+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -n "$RANLIB"; then
6630   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 RANLIB=$ac_cv_prog_RANLIB
6650 if test -n "$RANLIB"; then
6651   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6652 echo "${ECHO_T}$RANLIB" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_RANLIB"; then
6661   ac_ct_RANLIB=$RANLIB
6662   # Extract the first word of "ranlib", so it can be a program name with args.
6663 set dummy ranlib; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$ac_ct_RANLIB"; then
6670   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_RANLIB="ranlib"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6690 if test -n "$ac_ct_RANLIB"; then
6691   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6692 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_RANLIB" = x; then
6699     RANLIB=":"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet.  If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet.  If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711     RANLIB=$ac_ct_RANLIB
6712   fi
6713 else
6714   RANLIB="$ac_cv_prog_RANLIB"
6715 fi
6716
6717 if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}strip; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_STRIP+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$STRIP"; then
6726   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 STRIP=$ac_cv_prog_STRIP
6746 if test -n "$STRIP"; then
6747   { echo "$as_me:$LINENO: result: $STRIP" >&5
6748 echo "${ECHO_T}$STRIP" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_STRIP"; then
6757   ac_ct_STRIP=$STRIP
6758   # Extract the first word of "strip", so it can be a program name with args.
6759 set dummy strip; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_STRIP"; then
6766   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_ac_ct_STRIP="strip"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794   if test "x$ac_ct_STRIP" = x; then
6795     STRIP=":"
6796   else
6797     case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet.  If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     STRIP=$ac_ct_STRIP
6808   fi
6809 else
6810   STRIP="$ac_cv_prog_STRIP"
6811 fi
6812
6813
6814 old_CC="$CC"
6815 old_CFLAGS="$CFLAGS"
6816
6817 # Set sane defaults for various variables
6818 test -z "$AR" && AR=ar
6819 test -z "$AR_FLAGS" && AR_FLAGS=cru
6820 test -z "$AS" && AS=as
6821 test -z "$CC" && CC=cc
6822 test -z "$LTCC" && LTCC=$CC
6823 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6824 test -z "$DLLTOOL" && DLLTOOL=dlltool
6825 test -z "$LD" && LD=ld
6826 test -z "$LN_S" && LN_S="ln -s"
6827 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6828 test -z "$NM" && NM=nm
6829 test -z "$SED" && SED=sed
6830 test -z "$OBJDUMP" && OBJDUMP=objdump
6831 test -z "$RANLIB" && RANLIB=:
6832 test -z "$STRIP" && STRIP=:
6833 test -z "$ac_objext" && ac_objext=o
6834
6835 # Determine commands to create old-style static archives.
6836 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6837 old_postinstall_cmds='chmod 644 $oldlib'
6838 old_postuninstall_cmds=
6839
6840 if test -n "$RANLIB"; then
6841   case $host_os in
6842   openbsd*)
6843     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6844     ;;
6845   *)
6846     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6847     ;;
6848   esac
6849   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6850 fi
6851
6852 for cc_temp in $compiler""; do
6853   case $cc_temp in
6854     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6855     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6856     \-*) ;;
6857     *) break;;
6858   esac
6859 done
6860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6861
6862
6863 # Only perform the check for file, if the check method requires it
6864 case $deplibs_check_method in
6865 file_magic*)
6866   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6867     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6868 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   case $MAGIC_CMD in
6873 [\\/*] |  ?:[\\/]*)
6874   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6875   ;;
6876 *)
6877   lt_save_MAGIC_CMD="$MAGIC_CMD"
6878   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6879   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6880   for ac_dir in $ac_dummy; do
6881     IFS="$lt_save_ifs"
6882     test -z "$ac_dir" && ac_dir=.
6883     if test -f $ac_dir/${ac_tool_prefix}file; then
6884       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6885       if test -n "$file_magic_test_file"; then
6886         case $deplibs_check_method in
6887         "file_magic "*)
6888           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6889           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6890           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6891             $EGREP "$file_magic_regex" > /dev/null; then
6892             :
6893           else
6894             cat <<EOF 1>&2
6895
6896 *** Warning: the command libtool uses to detect shared libraries,
6897 *** $file_magic_cmd, produces output that libtool cannot recognize.
6898 *** The result is that libtool may fail to recognize shared libraries
6899 *** as such.  This will affect the creation of libtool libraries that
6900 *** depend on shared libraries, but programs linked with such libtool
6901 *** libraries will work regardless of this problem.  Nevertheless, you
6902 *** may want to report the problem to your system manager and/or to
6903 *** bug-libtool@gnu.org
6904
6905 EOF
6906           fi ;;
6907         esac
6908       fi
6909       break
6910     fi
6911   done
6912   IFS="$lt_save_ifs"
6913   MAGIC_CMD="$lt_save_MAGIC_CMD"
6914   ;;
6915 esac
6916 fi
6917
6918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919 if test -n "$MAGIC_CMD"; then
6920   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6921 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927 if test -z "$lt_cv_path_MAGIC_CMD"; then
6928   if test -n "$ac_tool_prefix"; then
6929     { echo "$as_me:$LINENO: checking for file" >&5
6930 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934   case $MAGIC_CMD in
6935 [\\/*] |  ?:[\\/]*)
6936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6937   ;;
6938 *)
6939   lt_save_MAGIC_CMD="$MAGIC_CMD"
6940   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6941   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6942   for ac_dir in $ac_dummy; do
6943     IFS="$lt_save_ifs"
6944     test -z "$ac_dir" && ac_dir=.
6945     if test -f $ac_dir/file; then
6946       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6947       if test -n "$file_magic_test_file"; then
6948         case $deplibs_check_method in
6949         "file_magic "*)
6950           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6951           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6952           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6953             $EGREP "$file_magic_regex" > /dev/null; then
6954             :
6955           else
6956             cat <<EOF 1>&2
6957
6958 *** Warning: the command libtool uses to detect shared libraries,
6959 *** $file_magic_cmd, produces output that libtool cannot recognize.
6960 *** The result is that libtool may fail to recognize shared libraries
6961 *** as such.  This will affect the creation of libtool libraries that
6962 *** depend on shared libraries, but programs linked with such libtool
6963 *** libraries will work regardless of this problem.  Nevertheless, you
6964 *** may want to report the problem to your system manager and/or to
6965 *** bug-libtool@gnu.org
6966
6967 EOF
6968           fi ;;
6969         esac
6970       fi
6971       break
6972     fi
6973   done
6974   IFS="$lt_save_ifs"
6975   MAGIC_CMD="$lt_save_MAGIC_CMD"
6976   ;;
6977 esac
6978 fi
6979
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if test -n "$MAGIC_CMD"; then
6982   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6983 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6984 else
6985   { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6987 fi
6988
6989   else
6990     MAGIC_CMD=:
6991   fi
6992 fi
6993
6994   fi
6995   ;;
6996 esac
6997
6998 enable_dlopen=no
6999 enable_win32_dll=no
7000
7001 # Check whether --enable-libtool-lock was given.
7002 if test "${enable_libtool_lock+set}" = set; then
7003   enableval=$enable_libtool_lock;
7004 fi
7005
7006 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7007
7008
7009 # Check whether --with-pic was given.
7010 if test "${with_pic+set}" = set; then
7011   withval=$with_pic; pic_mode="$withval"
7012 else
7013   pic_mode=default
7014 fi
7015
7016 test -z "$pic_mode" && pic_mode=default
7017
7018 # Use C for the default configuration in the libtool script
7019 tagname=
7020 lt_save_CC="$CC"
7021 ac_ext=c
7022 ac_cpp='$CPP $CPPFLAGS'
7023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7026
7027
7028 # Source file extension for C test sources.
7029 ac_ext=c
7030
7031 # Object file extension for compiled C test sources.
7032 objext=o
7033 objext=$objext
7034
7035 # Code to be used in simple compile tests
7036 lt_simple_compile_test_code="int some_variable = 0;\n"
7037
7038 # Code to be used in simple link tests
7039 lt_simple_link_test_code='int main(){return(0);}\n'
7040
7041
7042 # If no C compiler was specified, use CC.
7043 LTCC=${LTCC-"$CC"}
7044
7045 # If no C compiler flags were specified, use CFLAGS.
7046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7047
7048 # Allow CC to be a program name with arguments.
7049 compiler=$CC
7050
7051
7052 # save warnings/boilerplate of simple test code
7053 ac_outfile=conftest.$ac_objext
7054 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7056 _lt_compiler_boilerplate=`cat conftest.err`
7057 $rm conftest*
7058
7059 ac_outfile=conftest.$ac_objext
7060 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7062 _lt_linker_boilerplate=`cat conftest.err`
7063 $rm conftest*
7064
7065
7066
7067 lt_prog_compiler_no_builtin_flag=
7068
7069 if test "$GCC" = yes; then
7070   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7071
7072
7073 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7074 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7075 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   lt_cv_prog_compiler_rtti_exceptions=no
7079   ac_outfile=conftest.$ac_objext
7080    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7081    lt_compiler_flag="-fno-rtti -fno-exceptions"
7082    # Insert the option either (1) after the last *FLAGS variable, or
7083    # (2) before a word containing "conftest.", or (3) at the end.
7084    # Note that $ac_compile itself does not contain backslashes and begins
7085    # with a dollar sign (not a hyphen), so the echo should work correctly.
7086    # The option is referenced via a variable to avoid confusing sed.
7087    lt_compile=`echo "$ac_compile" | $SED \
7088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7090    -e 's:$: $lt_compiler_flag:'`
7091    (eval echo "\"\$as_me:7091: $lt_compile\"" >&5)
7092    (eval "$lt_compile" 2>conftest.err)
7093    ac_status=$?
7094    cat conftest.err >&5
7095    echo "$as_me:7095: \$? = $ac_status" >&5
7096    if (exit $ac_status) && test -s "$ac_outfile"; then
7097      # The compiler can only warn and ignore the option if not recognized
7098      # So say no if there are warnings other than the usual output.
7099      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7100      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7101      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7102        lt_cv_prog_compiler_rtti_exceptions=yes
7103      fi
7104    fi
7105    $rm conftest*
7106
7107 fi
7108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7109 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7110
7111 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7112     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7113 else
7114     :
7115 fi
7116
7117 fi
7118
7119 lt_prog_compiler_wl=
7120 lt_prog_compiler_pic=
7121 lt_prog_compiler_static=
7122
7123 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7124 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7125
7126   if test "$GCC" = yes; then
7127     lt_prog_compiler_wl='-Wl,'
7128     lt_prog_compiler_static='-static'
7129
7130     case $host_os in
7131       aix*)
7132       # All AIX code is PIC.
7133       if test "$host_cpu" = ia64; then
7134         # AIX 5 now supports IA64 processor
7135         lt_prog_compiler_static='-Bstatic'
7136       fi
7137       ;;
7138
7139     amigaos*)
7140       # FIXME: we need at least 68020 code to build shared libraries, but
7141       # adding the `-m68020' flag to GCC prevents building anything better,
7142       # like `-m68040'.
7143       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7144       ;;
7145
7146     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7147       # PIC is the default for these OSes.
7148       ;;
7149
7150     mingw* | pw32* | os2*)
7151       # This hack is so that the source file can tell whether it is being
7152       # built for inclusion in a dll (and should export symbols for example).
7153       lt_prog_compiler_pic='-DDLL_EXPORT'
7154       ;;
7155
7156     darwin* | rhapsody*)
7157       # PIC is the default on this platform
7158       # Common symbols not allowed in MH_DYLIB files
7159       lt_prog_compiler_pic='-fno-common'
7160       ;;
7161
7162     interix3*)
7163       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7164       # Instead, we relocate shared libraries at runtime.
7165       ;;
7166
7167     msdosdjgpp*)
7168       # Just because we use GCC doesn't mean we suddenly get shared libraries
7169       # on systems that don't support them.
7170       lt_prog_compiler_can_build_shared=no
7171       enable_shared=no
7172       ;;
7173
7174     sysv4*MP*)
7175       if test -d /usr/nec; then
7176         lt_prog_compiler_pic=-Kconform_pic
7177       fi
7178       ;;
7179
7180     hpux*)
7181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7182       # not for PA HP-UX.
7183       case $host_cpu in
7184       hppa*64*|ia64*)
7185         # +Z the default
7186         ;;
7187       *)
7188         lt_prog_compiler_pic='-fPIC'
7189         ;;
7190       esac
7191       ;;
7192
7193     *)
7194       lt_prog_compiler_pic='-fPIC'
7195       ;;
7196     esac
7197   else
7198     # PORTME Check for flag to pass linker flags through the system compiler.
7199     case $host_os in
7200     aix*)
7201       lt_prog_compiler_wl='-Wl,'
7202       if test "$host_cpu" = ia64; then
7203         # AIX 5 now supports IA64 processor
7204         lt_prog_compiler_static='-Bstatic'
7205       else
7206         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7207       fi
7208       ;;
7209       darwin*)
7210         # PIC is the default on this platform
7211         # Common symbols not allowed in MH_DYLIB files
7212        case $cc_basename in
7213          xlc*)
7214          lt_prog_compiler_pic='-qnocommon'
7215          lt_prog_compiler_wl='-Wl,'
7216          ;;
7217        esac
7218        ;;
7219
7220     mingw* | pw32* | os2*)
7221       # This hack is so that the source file can tell whether it is being
7222       # built for inclusion in a dll (and should export symbols for example).
7223       lt_prog_compiler_pic='-DDLL_EXPORT'
7224       ;;
7225
7226     hpux9* | hpux10* | hpux11*)
7227       lt_prog_compiler_wl='-Wl,'
7228       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7229       # not for PA HP-UX.
7230       case $host_cpu in
7231       hppa*64*|ia64*)
7232         # +Z the default
7233         ;;
7234       *)
7235         lt_prog_compiler_pic='+Z'
7236         ;;
7237       esac
7238       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7239       lt_prog_compiler_static='${wl}-a ${wl}archive'
7240       ;;
7241
7242     irix5* | irix6* | nonstopux*)
7243       lt_prog_compiler_wl='-Wl,'
7244       # PIC (with -KPIC) is the default.
7245       lt_prog_compiler_static='-non_shared'
7246       ;;
7247
7248     newsos6)
7249       lt_prog_compiler_pic='-KPIC'
7250       lt_prog_compiler_static='-Bstatic'
7251       ;;
7252
7253     linux* | k*bsd*-gnu)
7254       case $cc_basename in
7255       icc* | ecc*)
7256         lt_prog_compiler_wl='-Wl,'
7257         lt_prog_compiler_pic='-KPIC'
7258         lt_prog_compiler_static='-static'
7259         ;;
7260       pgcc* | pgf77* | pgf90* | pgf95*)
7261         # Portland Group compilers (*not* the Pentium gcc compiler,
7262         # which looks to be a dead project)
7263         lt_prog_compiler_wl='-Wl,'
7264         lt_prog_compiler_pic='-fpic'
7265         lt_prog_compiler_static='-Bstatic'
7266         ;;
7267       ccc*)
7268         lt_prog_compiler_wl='-Wl,'
7269         # All Alpha code is PIC.
7270         lt_prog_compiler_static='-non_shared'
7271         ;;
7272       esac
7273       ;;
7274
7275     osf3* | osf4* | osf5*)
7276       lt_prog_compiler_wl='-Wl,'
7277       # All OSF/1 code is PIC.
7278       lt_prog_compiler_static='-non_shared'
7279       ;;
7280
7281     solaris*)
7282       lt_prog_compiler_pic='-KPIC'
7283       lt_prog_compiler_static='-Bstatic'
7284       case $cc_basename in
7285       f77* | f90* | f95*)
7286         lt_prog_compiler_wl='-Qoption ld ';;
7287       *)
7288         lt_prog_compiler_wl='-Wl,';;
7289       esac
7290       ;;
7291
7292     sunos4*)
7293       lt_prog_compiler_wl='-Qoption ld '
7294       lt_prog_compiler_pic='-PIC'
7295       lt_prog_compiler_static='-Bstatic'
7296       ;;
7297
7298     sysv4 | sysv4.2uw2* | sysv4.3*)
7299       lt_prog_compiler_wl='-Wl,'
7300       lt_prog_compiler_pic='-KPIC'
7301       lt_prog_compiler_static='-Bstatic'
7302       ;;
7303
7304     sysv4*MP*)
7305       if test -d /usr/nec ;then
7306         lt_prog_compiler_pic='-Kconform_pic'
7307         lt_prog_compiler_static='-Bstatic'
7308       fi
7309       ;;
7310
7311     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7312       lt_prog_compiler_wl='-Wl,'
7313       lt_prog_compiler_pic='-KPIC'
7314       lt_prog_compiler_static='-Bstatic'
7315       ;;
7316
7317     unicos*)
7318       lt_prog_compiler_wl='-Wl,'
7319       lt_prog_compiler_can_build_shared=no
7320       ;;
7321
7322     uts4*)
7323       lt_prog_compiler_pic='-pic'
7324       lt_prog_compiler_static='-Bstatic'
7325       ;;
7326
7327     *)
7328       lt_prog_compiler_can_build_shared=no
7329       ;;
7330     esac
7331   fi
7332
7333 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7334 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7335
7336 #
7337 # Check to make sure the PIC flag actually works.
7338 #
7339 if test -n "$lt_prog_compiler_pic"; then
7340
7341 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7342 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7343 if test "${lt_prog_compiler_pic_works+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   lt_prog_compiler_pic_works=no
7347   ac_outfile=conftest.$ac_objext
7348    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7349    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7350    # Insert the option either (1) after the last *FLAGS variable, or
7351    # (2) before a word containing "conftest.", or (3) at the end.
7352    # Note that $ac_compile itself does not contain backslashes and begins
7353    # with a dollar sign (not a hyphen), so the echo should work correctly.
7354    # The option is referenced via a variable to avoid confusing sed.
7355    lt_compile=`echo "$ac_compile" | $SED \
7356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7358    -e 's:$: $lt_compiler_flag:'`
7359    (eval echo "\"\$as_me:7359: $lt_compile\"" >&5)
7360    (eval "$lt_compile" 2>conftest.err)
7361    ac_status=$?
7362    cat conftest.err >&5
7363    echo "$as_me:7363: \$? = $ac_status" >&5
7364    if (exit $ac_status) && test -s "$ac_outfile"; then
7365      # The compiler can only warn and ignore the option if not recognized
7366      # So say no if there are warnings other than the usual output.
7367      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7370        lt_prog_compiler_pic_works=yes
7371      fi
7372    fi
7373    $rm conftest*
7374
7375 fi
7376 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7377 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7378
7379 if test x"$lt_prog_compiler_pic_works" = xyes; then
7380     case $lt_prog_compiler_pic in
7381      "" | " "*) ;;
7382      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7383      esac
7384 else
7385     lt_prog_compiler_pic=
7386      lt_prog_compiler_can_build_shared=no
7387 fi
7388
7389 fi
7390 case $host_os in
7391   # For platforms which do not support PIC, -DPIC is meaningless:
7392   *djgpp*)
7393     lt_prog_compiler_pic=
7394     ;;
7395   *)
7396     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7397     ;;
7398 esac
7399
7400 #
7401 # Check to make sure the static flag actually works.
7402 #
7403 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7404 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7405 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7406 if test "${lt_prog_compiler_static_works+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   lt_prog_compiler_static_works=no
7410    save_LDFLAGS="$LDFLAGS"
7411    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7412    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7413    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7414      # The linker can only warn and ignore the option if not recognized
7415      # So say no if there are warnings
7416      if test -s conftest.err; then
7417        # Append any errors to the config.log.
7418        cat conftest.err 1>&5
7419        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7420        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7421        if diff conftest.exp conftest.er2 >/dev/null; then
7422          lt_prog_compiler_static_works=yes
7423        fi
7424      else
7425        lt_prog_compiler_static_works=yes
7426      fi
7427    fi
7428    $rm conftest*
7429    LDFLAGS="$save_LDFLAGS"
7430
7431 fi
7432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7433 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7434
7435 if test x"$lt_prog_compiler_static_works" = xyes; then
7436     :
7437 else
7438     lt_prog_compiler_static=
7439 fi
7440
7441
7442 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7443 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7444 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   lt_cv_prog_compiler_c_o=no
7448    $rm -r conftest 2>/dev/null
7449    mkdir conftest
7450    cd conftest
7451    mkdir out
7452    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7453
7454    lt_compiler_flag="-o out/conftest2.$ac_objext"
7455    # Insert the option either (1) after the last *FLAGS variable, or
7456    # (2) before a word containing "conftest.", or (3) at the end.
7457    # Note that $ac_compile itself does not contain backslashes and begins
7458    # with a dollar sign (not a hyphen), so the echo should work correctly.
7459    lt_compile=`echo "$ac_compile" | $SED \
7460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7462    -e 's:$: $lt_compiler_flag:'`
7463    (eval echo "\"\$as_me:7463: $lt_compile\"" >&5)
7464    (eval "$lt_compile" 2>out/conftest.err)
7465    ac_status=$?
7466    cat out/conftest.err >&5
7467    echo "$as_me:7467: \$? = $ac_status" >&5
7468    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7469    then
7470      # The compiler can only warn and ignore the option if not recognized
7471      # So say no if there are warnings
7472      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7473      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7474      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7475        lt_cv_prog_compiler_c_o=yes
7476      fi
7477    fi
7478    chmod u+w . 2>&5
7479    $rm conftest*
7480    # SGI C++ compiler will create directory out/ii_files/ for
7481    # template instantiation
7482    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7483    $rm out/* && rmdir out
7484    cd ..
7485    rmdir conftest
7486    $rm conftest*
7487
7488 fi
7489 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7490 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7491
7492
7493 hard_links="nottested"
7494 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7495   # do not overwrite the value of need_locks provided by the user
7496   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7497 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7498   hard_links=yes
7499   $rm conftest*
7500   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7501   touch conftest.a
7502   ln conftest.a conftest.b 2>&5 || hard_links=no
7503   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7504   { echo "$as_me:$LINENO: result: $hard_links" >&5
7505 echo "${ECHO_T}$hard_links" >&6; }
7506   if test "$hard_links" = no; then
7507     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7508 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7509     need_locks=warn
7510   fi
7511 else
7512   need_locks=no
7513 fi
7514
7515 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7516 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7517
7518   runpath_var=
7519   allow_undefined_flag=
7520   enable_shared_with_static_runtimes=no
7521   archive_cmds=
7522   archive_expsym_cmds=
7523   old_archive_From_new_cmds=
7524   old_archive_from_expsyms_cmds=
7525   export_dynamic_flag_spec=
7526   whole_archive_flag_spec=
7527   thread_safe_flag_spec=
7528   hardcode_libdir_flag_spec=
7529   hardcode_libdir_flag_spec_ld=
7530   hardcode_libdir_separator=
7531   hardcode_direct=no
7532   hardcode_minus_L=no
7533   hardcode_shlibpath_var=unsupported
7534   link_all_deplibs=unknown
7535   hardcode_automatic=no
7536   module_cmds=
7537   module_expsym_cmds=
7538   always_export_symbols=no
7539   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7540   # include_expsyms should be a list of space-separated symbols to be *always*
7541   # included in the symbol list
7542   include_expsyms=
7543   # exclude_expsyms can be an extended regexp of symbols to exclude
7544   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7545   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7546   # as well as any symbol that contains `d'.
7547   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7548   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7549   # platforms (ab)use it in PIC code, but their linkers get confused if
7550   # the symbol is explicitly referenced.  Since portable code cannot
7551   # rely on this symbol name, it's probably fine to never include it in
7552   # preloaded symbol tables.
7553   extract_expsyms_cmds=
7554   # Just being paranoid about ensuring that cc_basename is set.
7555   for cc_temp in $compiler""; do
7556   case $cc_temp in
7557     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7558     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7559     \-*) ;;
7560     *) break;;
7561   esac
7562 done
7563 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7564
7565   case $host_os in
7566   cygwin* | mingw* | pw32*)
7567     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7568     # When not using gcc, we currently assume that we are using
7569     # Microsoft Visual C++.
7570     if test "$GCC" != yes; then
7571       with_gnu_ld=no
7572     fi
7573     ;;
7574   interix*)
7575     # we just hope/assume this is gcc and not c89 (= MSVC++)
7576     with_gnu_ld=yes
7577     ;;
7578   openbsd*)
7579     with_gnu_ld=no
7580     ;;
7581   esac
7582
7583   ld_shlibs=yes
7584   if test "$with_gnu_ld" = yes; then
7585     # If archive_cmds runs LD, not CC, wlarc should be empty
7586     wlarc='${wl}'
7587
7588     # Set some defaults for GNU ld with shared library support. These
7589     # are reset later if shared libraries are not supported. Putting them
7590     # here allows them to be overridden if necessary.
7591     runpath_var=LD_RUN_PATH
7592     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7593     export_dynamic_flag_spec='${wl}--export-dynamic'
7594     # ancient GNU ld didn't support --whole-archive et. al.
7595     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7596         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7597       else
7598         whole_archive_flag_spec=
7599     fi
7600     supports_anon_versioning=no
7601     case `$LD -v 2>/dev/null` in
7602       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7603       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7604       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7605       *\ 2.11.*) ;; # other 2.11 versions
7606       *) supports_anon_versioning=yes ;;
7607     esac
7608
7609     # See if GNU ld supports shared libraries.
7610     case $host_os in
7611     aix3* | aix4* | aix5*)
7612       # On AIX/PPC, the GNU linker is very broken
7613       if test "$host_cpu" != ia64; then
7614         ld_shlibs=no
7615         cat <<EOF 1>&2
7616
7617 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7618 *** to be unable to reliably create shared libraries on AIX.
7619 *** Therefore, libtool is disabling shared libraries support.  If you
7620 *** really care for shared libraries, you may want to modify your PATH
7621 *** so that a non-GNU linker is found, and then restart.
7622
7623 EOF
7624       fi
7625       ;;
7626
7627     amigaos*)
7628       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)'
7629       hardcode_libdir_flag_spec='-L$libdir'
7630       hardcode_minus_L=yes
7631
7632       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7633       # that the semantics of dynamic libraries on AmigaOS, at least up
7634       # to version 4, is to share data among multiple programs linked
7635       # with the same dynamic library.  Since this doesn't match the
7636       # behavior of shared libraries on other platforms, we can't use
7637       # them.
7638       ld_shlibs=no
7639       ;;
7640
7641     beos*)
7642       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7643         allow_undefined_flag=unsupported
7644         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7645         # support --undefined.  This deserves some investigation.  FIXME
7646         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7647       else
7648         ld_shlibs=no
7649       fi
7650       ;;
7651
7652     cygwin* | mingw* | pw32*)
7653       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7654       # as there is no search path for DLLs.
7655       hardcode_libdir_flag_spec='-L$libdir'
7656       allow_undefined_flag=unsupported
7657       always_export_symbols=no
7658       enable_shared_with_static_runtimes=yes
7659       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7660
7661       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7662         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7663         # If the export-symbols file already is a .def file (1st line
7664         # is EXPORTS), use it as is; otherwise, prepend...
7665         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7666           cp $export_symbols $output_objdir/$soname.def;
7667         else
7668           echo EXPORTS > $output_objdir/$soname.def;
7669           cat $export_symbols >> $output_objdir/$soname.def;
7670         fi~
7671         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7672       else
7673         ld_shlibs=no
7674       fi
7675       ;;
7676
7677     interix3*)
7678       hardcode_direct=no
7679       hardcode_shlibpath_var=no
7680       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7681       export_dynamic_flag_spec='${wl}-E'
7682       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7683       # Instead, shared libraries are loaded at an image base (0x10000000 by
7684       # default) and relocated if they conflict, which is a slow very memory
7685       # consuming and fragmenting process.  To avoid this, we pick a random,
7686       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7687       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7688       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7689       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'
7690       ;;
7691
7692     linux* | k*bsd*-gnu)
7693       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7694         tmp_addflag=
7695         case $cc_basename,$host_cpu in
7696         pgcc*)                          # Portland Group C compiler
7697           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'
7698           tmp_addflag=' $pic_flag'
7699           ;;
7700         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7701           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'
7702           tmp_addflag=' $pic_flag -Mnomain' ;;
7703         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7704           tmp_addflag=' -i_dynamic' ;;
7705         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7706           tmp_addflag=' -i_dynamic -nofor_main' ;;
7707         ifc* | ifort*)                  # Intel Fortran compiler
7708           tmp_addflag=' -nofor_main' ;;
7709         esac
7710         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711
7712         if test $supports_anon_versioning = yes; then
7713           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7714   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7715   $echo "local: *; };" >> $output_objdir/$libname.ver~
7716           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7717         fi
7718         link_all_deplibs=no
7719       else
7720         ld_shlibs=no
7721       fi
7722       ;;
7723
7724     netbsd* | netbsdelf*-gnu)
7725       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7726         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7727         wlarc=
7728       else
7729         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7731       fi
7732       ;;
7733
7734     solaris*)
7735       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7736         ld_shlibs=no
7737         cat <<EOF 1>&2
7738
7739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7740 *** create shared libraries on Solaris systems.  Therefore, libtool
7741 *** is disabling shared libraries support.  We urge you to upgrade GNU
7742 *** binutils to release 2.9.1 or newer.  Another option is to modify
7743 *** your PATH or compiler configuration so that the native linker is
7744 *** used, and then restart.
7745
7746 EOF
7747       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7750       else
7751         ld_shlibs=no
7752       fi
7753       ;;
7754
7755     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7756       case `$LD -v 2>&1` in
7757         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7758         ld_shlibs=no
7759         cat <<_LT_EOF 1>&2
7760
7761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7762 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7763 *** is disabling shared libraries support.  We urge you to upgrade GNU
7764 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7765 *** your PATH or compiler configuration so that the native linker is
7766 *** used, and then restart.
7767
7768 _LT_EOF
7769         ;;
7770         *)
7771           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7773             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7774             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7775           else
7776             ld_shlibs=no
7777           fi
7778         ;;
7779       esac
7780       ;;
7781
7782     sunos4*)
7783       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7784       wlarc=
7785       hardcode_direct=yes
7786       hardcode_shlibpath_var=no
7787       ;;
7788
7789     *)
7790       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7793       else
7794         ld_shlibs=no
7795       fi
7796       ;;
7797     esac
7798
7799     if test "$ld_shlibs" = no; then
7800       runpath_var=
7801       hardcode_libdir_flag_spec=
7802       export_dynamic_flag_spec=
7803       whole_archive_flag_spec=
7804     fi
7805   else
7806     # PORTME fill in a description of your system's linker (not GNU ld)
7807     case $host_os in
7808     aix3*)
7809       allow_undefined_flag=unsupported
7810       always_export_symbols=yes
7811       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'
7812       # Note: this linker hardcodes the directories in LIBPATH if there
7813       # are no directories specified by -L.
7814       hardcode_minus_L=yes
7815       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7816         # Neither direct hardcoding nor static linking is supported with a
7817         # broken collect2.
7818         hardcode_direct=unsupported
7819       fi
7820       ;;
7821
7822     aix4* | aix5*)
7823       if test "$host_cpu" = ia64; then
7824         # On IA64, the linker does run time linking by default, so we don't
7825         # have to do anything special.
7826         aix_use_runtimelinking=no
7827         exp_sym_flag='-Bexport'
7828         no_entry_flag=""
7829       else
7830         # If we're using GNU nm, then we don't want the "-C" option.
7831         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7832         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7833           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'
7834         else
7835           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'
7836         fi
7837         aix_use_runtimelinking=no
7838
7839         # Test if we are trying to use run time linking or normal
7840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7841         # need to do runtime linking.
7842         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7843           for ld_flag in $LDFLAGS; do
7844           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7845             aix_use_runtimelinking=yes
7846             break
7847           fi
7848           done
7849           ;;
7850         esac
7851
7852         exp_sym_flag='-bexport'
7853         no_entry_flag='-bnoentry'
7854       fi
7855
7856       # When large executables or shared objects are built, AIX ld can
7857       # have problems creating the table of contents.  If linking a library
7858       # or program results in "error TOC overflow" add -mminimal-toc to
7859       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7860       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7861
7862       archive_cmds=''
7863       hardcode_direct=yes
7864       hardcode_libdir_separator=':'
7865       link_all_deplibs=yes
7866
7867       if test "$GCC" = yes; then
7868         case $host_os in aix4.[012]|aix4.[012].*)
7869         # We only want to do this on AIX 4.2 and lower, the check
7870         # below for broken collect2 doesn't work under 4.3+
7871           collect2name=`${CC} -print-prog-name=collect2`
7872           if test -f "$collect2name" && \
7873            strings "$collect2name" | grep resolve_lib_name >/dev/null
7874           then
7875           # We have reworked collect2
7876           hardcode_direct=yes
7877           else
7878           # We have old collect2
7879           hardcode_direct=unsupported
7880           # It fails to find uninstalled libraries when the uninstalled
7881           # path is not listed in the libpath.  Setting hardcode_minus_L
7882           # to unsupported forces relinking
7883           hardcode_minus_L=yes
7884           hardcode_libdir_flag_spec='-L$libdir'
7885           hardcode_libdir_separator=
7886           fi
7887           ;;
7888         esac
7889         shared_flag='-shared'
7890         if test "$aix_use_runtimelinking" = yes; then
7891           shared_flag="$shared_flag "'${wl}-G'
7892         fi
7893       else
7894         # not using gcc
7895         if test "$host_cpu" = ia64; then
7896         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7897         # chokes on -Wl,-G. The following line is correct:
7898           shared_flag='-G'
7899         else
7900           if test "$aix_use_runtimelinking" = yes; then
7901             shared_flag='${wl}-G'
7902           else
7903             shared_flag='${wl}-bM:SRE'
7904           fi
7905         fi
7906       fi
7907
7908       # It seems that -bexpall does not export symbols beginning with
7909       # underscore (_), so it is better to generate a list of symbols to export.
7910       always_export_symbols=yes
7911       if test "$aix_use_runtimelinking" = yes; then
7912         # Warning - without using the other runtime loading flags (-brtl),
7913         # -berok will link without error, but may produce a broken library.
7914         allow_undefined_flag='-berok'
7915        # Determine the default libpath from the value encoded in an empty executable.
7916        cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922
7923 int
7924 main ()
7925 {
7926
7927   ;
7928   return 0;
7929 }
7930 _ACEOF
7931 rm -f conftest.$ac_objext conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7933 case "(($ac_try" in
7934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935   *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938   (eval "$ac_link") 2>conftest.er1
7939   ac_status=$?
7940   grep -v '^ *+' conftest.er1 >conftest.err
7941   rm -f conftest.er1
7942   cat conftest.err >&5
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } && {
7945          test -z "$ac_c_werror_flag" ||
7946          test ! -s conftest.err
7947        } && test -s conftest$ac_exeext &&
7948        $as_test_x conftest$ac_exeext; then
7949
7950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7951 }'`
7952 # Check for a 64-bit object if we didn't find anything.
7953 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; }
7954 }'`; fi
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959
7960 fi
7961
7962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7963       conftest$ac_exeext conftest.$ac_ext
7964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7965
7966        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7967         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"
7968        else
7969         if test "$host_cpu" = ia64; then
7970           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7971           allow_undefined_flag="-z nodefs"
7972           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"
7973         else
7974          # Determine the default libpath from the value encoded in an empty executable.
7975          cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h.  */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h.  */
7981
7982 int
7983 main ()
7984 {
7985
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7992 case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
8008
8009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8010 }'`
8011 # Check for a 64-bit object if we didn't find anything.
8012 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; }
8013 }'`; fi
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8017
8018
8019 fi
8020
8021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8022       conftest$ac_exeext conftest.$ac_ext
8023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8024
8025          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8026           # Warning - without using the other run time loading flags,
8027           # -berok will link without error, but may produce a broken library.
8028           no_undefined_flag=' ${wl}-bernotok'
8029           allow_undefined_flag=' ${wl}-berok'
8030           # Exported symbols can be pulled into shared objects from archives
8031           whole_archive_flag_spec='$convenience'
8032           archive_cmds_need_lc=yes
8033           # This is similar to how AIX traditionally builds its shared libraries.
8034           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'
8035         fi
8036       fi
8037       ;;
8038
8039     amigaos*)
8040       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)'
8041       hardcode_libdir_flag_spec='-L$libdir'
8042       hardcode_minus_L=yes
8043       # see comment about different semantics on the GNU ld section
8044       ld_shlibs=no
8045       ;;
8046
8047     bsdi[45]*)
8048       export_dynamic_flag_spec=-rdynamic
8049       ;;
8050
8051     cygwin* | mingw* | pw32*)
8052       # When not using gcc, we currently assume that we are using
8053       # Microsoft Visual C++.
8054       # hardcode_libdir_flag_spec is actually meaningless, as there is
8055       # no search path for DLLs.
8056       hardcode_libdir_flag_spec=' '
8057       allow_undefined_flag=unsupported
8058       # Tell ltmain to make .lib files, not .a files.
8059       libext=lib
8060       # Tell ltmain to make .dll files, not .so files.
8061       shrext_cmds=".dll"
8062       # FIXME: Setting linknames here is a bad hack.
8063       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8064       # The linker will automatically build a .lib file if we build a DLL.
8065       old_archive_From_new_cmds='true'
8066       # FIXME: Should let the user specify the lib program.
8067       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8068       fix_srcfile_path='`cygpath -w "$srcfile"`'
8069       enable_shared_with_static_runtimes=yes
8070       ;;
8071
8072     darwin* | rhapsody*)
8073       case $host_os in
8074         rhapsody* | darwin1.[012])
8075          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8076          ;;
8077        *) # Darwin 1.3 on
8078          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8079            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8080          else
8081            case ${MACOSX_DEPLOYMENT_TARGET} in
8082              10.[012])
8083                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8084                ;;
8085              10.*)
8086                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8087                ;;
8088            esac
8089          fi
8090          ;;
8091       esac
8092       archive_cmds_need_lc=no
8093       hardcode_direct=no
8094       hardcode_automatic=yes
8095       hardcode_shlibpath_var=unsupported
8096       whole_archive_flag_spec=''
8097       link_all_deplibs=yes
8098     if test "$GCC" = yes ; then
8099         output_verbose_link_cmd='echo'
8100         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8101       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8102       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8103       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}'
8104       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}'
8105     else
8106       case $cc_basename in
8107         xlc*)
8108          output_verbose_link_cmd='echo'
8109          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8110          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8111           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8112          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}'
8113           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}'
8114           ;;
8115        *)
8116          ld_shlibs=no
8117           ;;
8118       esac
8119     fi
8120       ;;
8121
8122     dgux*)
8123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124       hardcode_libdir_flag_spec='-L$libdir'
8125       hardcode_shlibpath_var=no
8126       ;;
8127
8128     freebsd1*)
8129       ld_shlibs=no
8130       ;;
8131
8132     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8133     # support.  Future versions do this automatically, but an explicit c++rt0.o
8134     # does not break anything, and helps significantly (at the cost of a little
8135     # extra space).
8136     freebsd2.2*)
8137       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8138       hardcode_libdir_flag_spec='-R$libdir'
8139       hardcode_direct=yes
8140       hardcode_shlibpath_var=no
8141       ;;
8142
8143     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8144     freebsd2*)
8145       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8146       hardcode_direct=yes
8147       hardcode_minus_L=yes
8148       hardcode_shlibpath_var=no
8149       ;;
8150
8151     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8152     freebsd* | dragonfly*)
8153       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8154       hardcode_libdir_flag_spec='-R$libdir'
8155       hardcode_direct=yes
8156       hardcode_shlibpath_var=no
8157       ;;
8158
8159     hpux9*)
8160       if test "$GCC" = yes; then
8161         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'
8162       else
8163         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'
8164       fi
8165       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8166       hardcode_libdir_separator=:
8167       hardcode_direct=yes
8168
8169       # hardcode_minus_L: Not really in the search PATH,
8170       # but as the default location of the library.
8171       hardcode_minus_L=yes
8172       export_dynamic_flag_spec='${wl}-E'
8173       ;;
8174
8175     hpux10*)
8176       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8177         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8178       else
8179         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8180       fi
8181       if test "$with_gnu_ld" = no; then
8182         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8183         hardcode_libdir_separator=:
8184
8185         hardcode_direct=yes
8186         export_dynamic_flag_spec='${wl}-E'
8187
8188         # hardcode_minus_L: Not really in the search PATH,
8189         # but as the default location of the library.
8190         hardcode_minus_L=yes
8191       fi
8192       ;;
8193
8194     hpux11*)
8195       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8196         case $host_cpu in
8197         hppa*64*)
8198           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8199           ;;
8200         ia64*)
8201           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8202           ;;
8203         *)
8204           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8205           ;;
8206         esac
8207       else
8208         case $host_cpu in
8209         hppa*64*)
8210           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8211           ;;
8212         ia64*)
8213           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8214           ;;
8215         *)
8216           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8217           ;;
8218         esac
8219       fi
8220       if test "$with_gnu_ld" = no; then
8221         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8222         hardcode_libdir_separator=:
8223
8224         case $host_cpu in
8225         hppa*64*|ia64*)
8226           hardcode_libdir_flag_spec_ld='+b $libdir'
8227           hardcode_direct=no
8228           hardcode_shlibpath_var=no
8229           ;;
8230         *)
8231           hardcode_direct=yes
8232           export_dynamic_flag_spec='${wl}-E'
8233
8234           # hardcode_minus_L: Not really in the search PATH,
8235           # but as the default location of the library.
8236           hardcode_minus_L=yes
8237           ;;
8238         esac
8239       fi
8240       ;;
8241
8242     irix5* | irix6* | nonstopux*)
8243       if test "$GCC" = yes; then
8244         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'
8245       else
8246         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'
8247         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8248       fi
8249       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8250       hardcode_libdir_separator=:
8251       link_all_deplibs=yes
8252       ;;
8253
8254     netbsd* | netbsdelf*-gnu)
8255       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8256         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8257       else
8258         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8259       fi
8260       hardcode_libdir_flag_spec='-R$libdir'
8261       hardcode_direct=yes
8262       hardcode_shlibpath_var=no
8263       ;;
8264
8265     newsos6)
8266       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8267       hardcode_direct=yes
8268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8269       hardcode_libdir_separator=:
8270       hardcode_shlibpath_var=no
8271       ;;
8272
8273     openbsd*)
8274       hardcode_direct=yes
8275       hardcode_shlibpath_var=no
8276       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8277         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8278         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8279         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8280         export_dynamic_flag_spec='${wl}-E'
8281       else
8282        case $host_os in
8283          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8284            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8285            hardcode_libdir_flag_spec='-R$libdir'
8286            ;;
8287          *)
8288            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8289            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8290            ;;
8291        esac
8292       fi
8293       ;;
8294
8295     os2*)
8296       hardcode_libdir_flag_spec='-L$libdir'
8297       hardcode_minus_L=yes
8298       allow_undefined_flag=unsupported
8299       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'
8300       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8301       ;;
8302
8303     osf3*)
8304       if test "$GCC" = yes; then
8305         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8306         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'
8307       else
8308         allow_undefined_flag=' -expect_unresolved \*'
8309         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'
8310       fi
8311       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8312       hardcode_libdir_separator=:
8313       ;;
8314
8315     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8316       if test "$GCC" = yes; then
8317         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8318         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'
8319         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320       else
8321         allow_undefined_flag=' -expect_unresolved \*'
8322         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'
8323         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8324         $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'
8325
8326         # Both c and cxx compiler support -rpath directly
8327         hardcode_libdir_flag_spec='-rpath $libdir'
8328       fi
8329       hardcode_libdir_separator=:
8330       ;;
8331
8332     solaris*)
8333       no_undefined_flag=' -z text'
8334       if test "$GCC" = yes; then
8335         wlarc='${wl}'
8336         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8337         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8338           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8339       else
8340         wlarc=''
8341         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8342         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8343         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8344       fi
8345       hardcode_libdir_flag_spec='-R$libdir'
8346       hardcode_shlibpath_var=no
8347       case $host_os in
8348       solaris2.[0-5] | solaris2.[0-5].*) ;;
8349       *)
8350         # The compiler driver will combine linker options so we
8351         # cannot just pass the convience library names through
8352         # without $wl, iff we do not link with $LD.
8353         # Luckily, gcc supports the same syntax we need for Sun Studio.
8354         # Supported since Solaris 2.6 (maybe 2.5.1?)
8355         case $wlarc in
8356         '')
8357           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8358         *)
8359           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' ;;
8360         esac ;;
8361       esac
8362       link_all_deplibs=yes
8363       ;;
8364
8365     sunos4*)
8366       if test "x$host_vendor" = xsequent; then
8367         # Use $CC to link under sequent, because it throws in some extra .o
8368         # files that make .init and .fini sections work.
8369         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8370       else
8371         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8372       fi
8373       hardcode_libdir_flag_spec='-L$libdir'
8374       hardcode_direct=yes
8375       hardcode_minus_L=yes
8376       hardcode_shlibpath_var=no
8377       ;;
8378
8379     sysv4)
8380       case $host_vendor in
8381         sni)
8382           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8383           hardcode_direct=yes # is this really true???
8384         ;;
8385         siemens)
8386           ## LD is ld it makes a PLAMLIB
8387           ## CC just makes a GrossModule.
8388           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8389           reload_cmds='$CC -r -o $output$reload_objs'
8390           hardcode_direct=no
8391         ;;
8392         motorola)
8393           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8395         ;;
8396       esac
8397       runpath_var='LD_RUN_PATH'
8398       hardcode_shlibpath_var=no
8399       ;;
8400
8401     sysv4.3*)
8402       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403       hardcode_shlibpath_var=no
8404       export_dynamic_flag_spec='-Bexport'
8405       ;;
8406
8407     sysv4*MP*)
8408       if test -d /usr/nec; then
8409         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410         hardcode_shlibpath_var=no
8411         runpath_var=LD_RUN_PATH
8412         hardcode_runpath_var=yes
8413         ld_shlibs=yes
8414       fi
8415       ;;
8416
8417     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8418       no_undefined_flag='${wl}-z,text'
8419       archive_cmds_need_lc=no
8420       hardcode_shlibpath_var=no
8421       runpath_var='LD_RUN_PATH'
8422
8423       if test "$GCC" = yes; then
8424         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8425         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8426       else
8427         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429       fi
8430       ;;
8431
8432     sysv5* | sco3.2v5* | sco5v6*)
8433       # Note: We can NOT use -z defs as we might desire, because we do not
8434       # link with -lc, and that would cause any symbols used from libc to
8435       # always be unresolved, which means just about no library would
8436       # ever link correctly.  If we're not using GNU ld we use -z text
8437       # though, which does catch some bad symbols but isn't as heavy-handed
8438       # as -z defs.
8439       no_undefined_flag='${wl}-z,text'
8440       allow_undefined_flag='${wl}-z,nodefs'
8441       archive_cmds_need_lc=no
8442       hardcode_shlibpath_var=no
8443       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8444       hardcode_libdir_separator=':'
8445       link_all_deplibs=yes
8446       export_dynamic_flag_spec='${wl}-Bexport'
8447       runpath_var='LD_RUN_PATH'
8448
8449       if test "$GCC" = yes; then
8450         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8452       else
8453         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8454         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8455       fi
8456       ;;
8457
8458     uts4*)
8459       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460       hardcode_libdir_flag_spec='-L$libdir'
8461       hardcode_shlibpath_var=no
8462       ;;
8463
8464     *)
8465       ld_shlibs=no
8466       ;;
8467     esac
8468   fi
8469
8470 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8471 echo "${ECHO_T}$ld_shlibs" >&6; }
8472 test "$ld_shlibs" = no && can_build_shared=no
8473
8474 #
8475 # Do we need to explicitly link libc?
8476 #
8477 case "x$archive_cmds_need_lc" in
8478 x|xyes)
8479   # Assume -lc should be added
8480   archive_cmds_need_lc=yes
8481
8482   if test "$enable_shared" = yes && test "$GCC" = yes; then
8483     case $archive_cmds in
8484     *'~'*)
8485       # FIXME: we may have to deal with multi-command sequences.
8486       ;;
8487     '$CC '*)
8488       # Test whether the compiler implicitly links with -lc since on some
8489       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8490       # to ld, don't add -lc before -lgcc.
8491       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8492 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8493       $rm conftest*
8494       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8495
8496       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497   (eval $ac_compile) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } 2>conftest.err; then
8501         soname=conftest
8502         lib=conftest
8503         libobjs=conftest.$ac_objext
8504         deplibs=
8505         wl=$lt_prog_compiler_wl
8506         pic_flag=$lt_prog_compiler_pic
8507         compiler_flags=-v
8508         linker_flags=-v
8509         verstring=
8510         output_objdir=.
8511         libname=conftest
8512         lt_save_allow_undefined_flag=$allow_undefined_flag
8513         allow_undefined_flag=
8514         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8515   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }
8519         then
8520           archive_cmds_need_lc=no
8521         else
8522           archive_cmds_need_lc=yes
8523         fi
8524         allow_undefined_flag=$lt_save_allow_undefined_flag
8525       else
8526         cat conftest.err 1>&5
8527       fi
8528       $rm conftest*
8529       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8530 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8531       ;;
8532     esac
8533   fi
8534   ;;
8535 esac
8536
8537 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8539 library_names_spec=
8540 libname_spec='lib$name'
8541 soname_spec=
8542 shrext_cmds=".so"
8543 postinstall_cmds=
8544 postuninstall_cmds=
8545 finish_cmds=
8546 finish_eval=
8547 shlibpath_var=
8548 shlibpath_overrides_runpath=unknown
8549 version_type=none
8550 dynamic_linker="$host_os ld.so"
8551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8552 if test "$GCC" = yes; then
8553   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8554   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8555     # if the path contains ";" then we assume it to be the separator
8556     # otherwise default to the standard path separator (i.e. ":") - it is
8557     # assumed that no part of a normal pathname contains ";" but that should
8558     # okay in the real world where ";" in dirpaths is itself problematic.
8559     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8560   else
8561     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8562   fi
8563 else
8564   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8565 fi
8566 need_lib_prefix=unknown
8567 hardcode_into_libs=no
8568
8569 # when you set need_version to no, make sure it does not cause -set_version
8570 # flags to be left without arguments
8571 need_version=unknown
8572
8573 case $host_os in
8574 aix3*)
8575   version_type=linux
8576   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8577   shlibpath_var=LIBPATH
8578
8579   # AIX 3 has no versioning support, so we append a major version to the name.
8580   soname_spec='${libname}${release}${shared_ext}$major'
8581   ;;
8582
8583 aix4* | aix5*)
8584   version_type=linux
8585   need_lib_prefix=no
8586   need_version=no
8587   hardcode_into_libs=yes
8588   if test "$host_cpu" = ia64; then
8589     # AIX 5 supports IA64
8590     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8591     shlibpath_var=LD_LIBRARY_PATH
8592   else
8593     # With GCC up to 2.95.x, collect2 would create an import file
8594     # for dependence libraries.  The import file would start with
8595     # the line `#! .'.  This would cause the generated library to
8596     # depend on `.', always an invalid library.  This was fixed in
8597     # development snapshots of GCC prior to 3.0.
8598     case $host_os in
8599       aix4 | aix4.[01] | aix4.[01].*)
8600       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8601            echo ' yes '
8602            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8603         :
8604       else
8605         can_build_shared=no
8606       fi
8607       ;;
8608     esac
8609     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8610     # soname into executable. Probably we can add versioning support to
8611     # collect2, so additional links can be useful in future.
8612     if test "$aix_use_runtimelinking" = yes; then
8613       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8614       # instead of lib<name>.a to let people know that these are not
8615       # typical AIX shared libraries.
8616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617     else
8618       # We preserve .a as extension for shared libraries through AIX4.2
8619       # and later when we are not doing run time linking.
8620       library_names_spec='${libname}${release}.a $libname.a'
8621       soname_spec='${libname}${release}${shared_ext}$major'
8622     fi
8623     shlibpath_var=LIBPATH
8624   fi
8625   ;;
8626
8627 amigaos*)
8628   library_names_spec='$libname.ixlibrary $libname.a'
8629   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8630   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'
8631   ;;
8632
8633 beos*)
8634   library_names_spec='${libname}${shared_ext}'
8635   dynamic_linker="$host_os ld.so"
8636   shlibpath_var=LIBRARY_PATH
8637   ;;
8638
8639 bsdi[45]*)
8640   version_type=linux
8641   need_version=no
8642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8643   soname_spec='${libname}${release}${shared_ext}$major'
8644   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8645   shlibpath_var=LD_LIBRARY_PATH
8646   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8647   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8648   # the default ld.so.conf also contains /usr/contrib/lib and
8649   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8650   # libtool to hard-code these into programs
8651   ;;
8652
8653 cygwin* | mingw* | pw32*)
8654   version_type=windows
8655   shrext_cmds=".dll"
8656   need_version=no
8657   need_lib_prefix=no
8658
8659   case $GCC,$host_os in
8660   yes,cygwin* | yes,mingw* | yes,pw32*)
8661     library_names_spec='$libname.dll.a'
8662     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8663     postinstall_cmds='base_file=`basename \${file}`~
8664       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8665       dldir=$destdir/`dirname \$dlpath`~
8666       test -d \$dldir || mkdir -p \$dldir~
8667       $install_prog $dir/$dlname \$dldir/$dlname~
8668       chmod a+x \$dldir/$dlname'
8669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8670       dlpath=$dir/\$dldll~
8671        $rm \$dlpath'
8672     shlibpath_overrides_runpath=yes
8673
8674     case $host_os in
8675     cygwin*)
8676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8678       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8679       ;;
8680     mingw*)
8681       # MinGW DLLs use traditional 'lib' prefix
8682       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8684       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8685         # It is most probably a Windows format PATH printed by
8686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8687         # path with ; separators, and with drive letters. We can handle the
8688         # drive letters (cygwin fileutils understands them), so leave them,
8689         # especially as we might pass files found there to a mingw objdump,
8690         # which wouldn't understand a cygwinified path. Ahh.
8691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8692       else
8693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8694       fi
8695       ;;
8696     pw32*)
8697       # pw32 DLLs use 'pw' prefix rather than 'lib'
8698       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699       ;;
8700     esac
8701     ;;
8702
8703   *)
8704     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8705     ;;
8706   esac
8707   dynamic_linker='Win32 ld.exe'
8708   # FIXME: first we should search . and the directory the executable is in
8709   shlibpath_var=PATH
8710   ;;
8711
8712 darwin* | rhapsody*)
8713   dynamic_linker="$host_os dyld"
8714   version_type=darwin
8715   need_lib_prefix=no
8716   need_version=no
8717   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8718   soname_spec='${libname}${release}${major}$shared_ext'
8719   shlibpath_overrides_runpath=yes
8720   shlibpath_var=DYLD_LIBRARY_PATH
8721   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8722   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8723   if test "$GCC" = yes; then
8724     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"`
8725   else
8726     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8727   fi
8728   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8729   ;;
8730
8731 dgux*)
8732   version_type=linux
8733   need_lib_prefix=no
8734   need_version=no
8735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8736   soname_spec='${libname}${release}${shared_ext}$major'
8737   shlibpath_var=LD_LIBRARY_PATH
8738   ;;
8739
8740 freebsd1*)
8741   dynamic_linker=no
8742   ;;
8743
8744 freebsd* | dragonfly*)
8745   # DragonFly does not have aout.  When/if they implement a new
8746   # versioning mechanism, adjust this.
8747   if test -x /usr/bin/objformat; then
8748     objformat=`/usr/bin/objformat`
8749   else
8750     case $host_os in
8751     freebsd[123]*) objformat=aout ;;
8752     *) objformat=elf ;;
8753     esac
8754   fi
8755   version_type=freebsd-$objformat
8756   case $version_type in
8757     freebsd-elf*)
8758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8759       need_version=no
8760       need_lib_prefix=no
8761       ;;
8762     freebsd-*)
8763       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8764       need_version=yes
8765       ;;
8766   esac
8767   shlibpath_var=LD_LIBRARY_PATH
8768   case $host_os in
8769   freebsd2*)
8770     shlibpath_overrides_runpath=yes
8771     ;;
8772   freebsd3.[01]* | freebsdelf3.[01]*)
8773     shlibpath_overrides_runpath=yes
8774     hardcode_into_libs=yes
8775     ;;
8776   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8777   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8778     shlibpath_overrides_runpath=no
8779     hardcode_into_libs=yes
8780     ;;
8781   freebsd*) # from 4.6 on
8782     shlibpath_overrides_runpath=yes
8783     hardcode_into_libs=yes
8784     ;;
8785   esac
8786   ;;
8787
8788 gnu*)
8789   version_type=linux
8790   need_lib_prefix=no
8791   need_version=no
8792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8793   soname_spec='${libname}${release}${shared_ext}$major'
8794   shlibpath_var=LD_LIBRARY_PATH
8795   hardcode_into_libs=yes
8796   ;;
8797
8798 hpux9* | hpux10* | hpux11*)
8799   # Give a soname corresponding to the major version so that dld.sl refuses to
8800   # link against other versions.
8801   version_type=sunos
8802   need_lib_prefix=no
8803   need_version=no
8804   case $host_cpu in
8805   ia64*)
8806     shrext_cmds='.so'
8807     hardcode_into_libs=yes
8808     dynamic_linker="$host_os dld.so"
8809     shlibpath_var=LD_LIBRARY_PATH
8810     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812     soname_spec='${libname}${release}${shared_ext}$major'
8813     if test "X$HPUX_IA64_MODE" = X32; then
8814       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8815     else
8816       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8817     fi
8818     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8819     ;;
8820    hppa*64*)
8821      shrext_cmds='.sl'
8822      hardcode_into_libs=yes
8823      dynamic_linker="$host_os dld.sl"
8824      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8825      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827      soname_spec='${libname}${release}${shared_ext}$major'
8828      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8829      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8830      ;;
8831    *)
8832     shrext_cmds='.sl'
8833     dynamic_linker="$host_os dld.sl"
8834     shlibpath_var=SHLIB_PATH
8835     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837     soname_spec='${libname}${release}${shared_ext}$major'
8838     ;;
8839   esac
8840   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8841   postinstall_cmds='chmod 555 $lib'
8842   ;;
8843
8844 interix3*)
8845   version_type=linux
8846   need_lib_prefix=no
8847   need_version=no
8848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8849   soname_spec='${libname}${release}${shared_ext}$major'
8850   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8851   shlibpath_var=LD_LIBRARY_PATH
8852   shlibpath_overrides_runpath=no
8853   hardcode_into_libs=yes
8854   ;;
8855
8856 irix5* | irix6* | nonstopux*)
8857   case $host_os in
8858     nonstopux*) version_type=nonstopux ;;
8859     *)
8860         if test "$lt_cv_prog_gnu_ld" = yes; then
8861                 version_type=linux
8862         else
8863                 version_type=irix
8864         fi ;;
8865   esac
8866   need_lib_prefix=no
8867   need_version=no
8868   soname_spec='${libname}${release}${shared_ext}$major'
8869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8870   case $host_os in
8871   irix5* | nonstopux*)
8872     libsuff= shlibsuff=
8873     ;;
8874   *)
8875     case $LD in # libtool.m4 will add one of these switches to LD
8876     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8877       libsuff= shlibsuff= libmagic=32-bit;;
8878     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8879       libsuff=32 shlibsuff=N32 libmagic=N32;;
8880     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8881       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8882     *) libsuff= shlibsuff= libmagic=never-match;;
8883     esac
8884     ;;
8885   esac
8886   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8887   shlibpath_overrides_runpath=no
8888   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8889   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8890   hardcode_into_libs=yes
8891   ;;
8892
8893 # No shared lib support for Linux oldld, aout, or coff.
8894 linux*oldld* | linux*aout* | linux*coff*)
8895   dynamic_linker=no
8896   ;;
8897
8898 # This must be Linux ELF.
8899 linux* | k*bsd*-gnu)
8900   version_type=linux
8901   need_lib_prefix=no
8902   need_version=no
8903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904   soname_spec='${libname}${release}${shared_ext}$major'
8905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8906   shlibpath_var=LD_LIBRARY_PATH
8907   shlibpath_overrides_runpath=no
8908   # This implies no fast_install, which is unacceptable.
8909   # Some rework will be needed to allow for fast_install
8910   # before this can be enabled.
8911   hardcode_into_libs=yes
8912
8913   # Append ld.so.conf contents to the search path
8914   if test -f /etc/ld.so.conf; then
8915     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8916     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8917   fi
8918
8919   # We used to test for /lib/ld.so.1 and disable shared libraries on
8920   # powerpc, because MkLinux only supported shared libraries with the
8921   # GNU dynamic linker.  Since this was broken with cross compilers,
8922   # most powerpc-linux boxes support dynamic linking these days and
8923   # people can always --disable-shared, the test was removed, and we
8924   # assume the GNU/Linux dynamic linker is in use.
8925   dynamic_linker='GNU/Linux ld.so'
8926   ;;
8927
8928 netbsdelf*-gnu)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   shlibpath_var=LD_LIBRARY_PATH
8935   shlibpath_overrides_runpath=no
8936   hardcode_into_libs=yes
8937   dynamic_linker='NetBSD ld.elf_so'
8938   ;;
8939
8940 netbsd*)
8941   version_type=sunos
8942   need_lib_prefix=no
8943   need_version=no
8944   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8946     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8947     dynamic_linker='NetBSD (a.out) ld.so'
8948   else
8949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950     soname_spec='${libname}${release}${shared_ext}$major'
8951     dynamic_linker='NetBSD ld.elf_so'
8952   fi
8953   shlibpath_var=LD_LIBRARY_PATH
8954   shlibpath_overrides_runpath=yes
8955   hardcode_into_libs=yes
8956   ;;
8957
8958 newsos6)
8959   version_type=linux
8960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961   shlibpath_var=LD_LIBRARY_PATH
8962   shlibpath_overrides_runpath=yes
8963   ;;
8964
8965 nto-qnx*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   shlibpath_overrides_runpath=yes
8973   ;;
8974
8975 openbsd*)
8976   version_type=sunos
8977   sys_lib_dlsearch_path_spec="/usr/lib"
8978   need_lib_prefix=no
8979   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8980   case $host_os in
8981     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8982     *)                         need_version=no  ;;
8983   esac
8984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8988     case $host_os in
8989       openbsd2.[89] | openbsd2.[89].*)
8990         shlibpath_overrides_runpath=no
8991         ;;
8992       *)
8993         shlibpath_overrides_runpath=yes
8994         ;;
8995       esac
8996   else
8997     shlibpath_overrides_runpath=yes
8998   fi
8999   ;;
9000
9001 os2*)
9002   libname_spec='$name'
9003   shrext_cmds=".dll"
9004   need_lib_prefix=no
9005   library_names_spec='$libname${shared_ext} $libname.a'
9006   dynamic_linker='OS/2 ld.exe'
9007   shlibpath_var=LIBPATH
9008   ;;
9009
9010 osf3* | osf4* | osf5*)
9011   version_type=osf
9012   need_lib_prefix=no
9013   need_version=no
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9018   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9019   ;;
9020
9021 solaris*)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=yes
9029   hardcode_into_libs=yes
9030   # ldd complains unless libraries are executable
9031   postinstall_cmds='chmod +x $lib'
9032   ;;
9033
9034 sunos4*)
9035   version_type=sunos
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9037   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9038   shlibpath_var=LD_LIBRARY_PATH
9039   shlibpath_overrides_runpath=yes
9040   if test "$with_gnu_ld" = yes; then
9041     need_lib_prefix=no
9042   fi
9043   need_version=yes
9044   ;;
9045
9046 sysv4 | sysv4.3*)
9047   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
9051   case $host_vendor in
9052     sni)
9053       shlibpath_overrides_runpath=no
9054       need_lib_prefix=no
9055       export_dynamic_flag_spec='${wl}-Blargedynsym'
9056       runpath_var=LD_RUN_PATH
9057       ;;
9058     siemens)
9059       need_lib_prefix=no
9060       ;;
9061     motorola)
9062       need_lib_prefix=no
9063       need_version=no
9064       shlibpath_overrides_runpath=no
9065       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9066       ;;
9067   esac
9068   ;;
9069
9070 sysv4*MP*)
9071   if test -d /usr/nec ;then
9072     version_type=linux
9073     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9074     soname_spec='$libname${shared_ext}.$major'
9075     shlibpath_var=LD_LIBRARY_PATH
9076   fi
9077   ;;
9078
9079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9080   version_type=freebsd-elf
9081   need_lib_prefix=no
9082   need_version=no
9083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9084   soname_spec='${libname}${release}${shared_ext}$major'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   hardcode_into_libs=yes
9087   if test "$with_gnu_ld" = yes; then
9088     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9089     shlibpath_overrides_runpath=no
9090   else
9091     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9092     shlibpath_overrides_runpath=yes
9093     case $host_os in
9094       sco3.2v5*)
9095         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9096         ;;
9097     esac
9098   fi
9099   sys_lib_dlsearch_path_spec='/usr/lib'
9100   ;;
9101
9102 uts4*)
9103   version_type=linux
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   ;;
9108
9109 *)
9110   dynamic_linker=no
9111   ;;
9112 esac
9113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9114 echo "${ECHO_T}$dynamic_linker" >&6; }
9115 test "$dynamic_linker" = no && can_build_shared=no
9116
9117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9118 if test "$GCC" = yes; then
9119   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9120 fi
9121
9122 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9124 hardcode_action=
9125 if test -n "$hardcode_libdir_flag_spec" || \
9126    test -n "$runpath_var" || \
9127    test "X$hardcode_automatic" = "Xyes" ; then
9128
9129   # We can hardcode non-existant directories.
9130   if test "$hardcode_direct" != no &&
9131      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9132      # have to relink, otherwise we might link with an installed library
9133      # when we should be linking with a yet-to-be-installed one
9134      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9135      test "$hardcode_minus_L" != no; then
9136     # Linking always hardcodes the temporary library directory.
9137     hardcode_action=relink
9138   else
9139     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9140     hardcode_action=immediate
9141   fi
9142 else
9143   # We cannot hardcode anything, or else we can only hardcode existing
9144   # directories.
9145   hardcode_action=unsupported
9146 fi
9147 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9148 echo "${ECHO_T}$hardcode_action" >&6; }
9149
9150 if test "$hardcode_action" = relink; then
9151   # Fast installation is not supported
9152   enable_fast_install=no
9153 elif test "$shlibpath_overrides_runpath" = yes ||
9154      test "$enable_shared" = no; then
9155   # Fast installation is not necessary
9156   enable_fast_install=needless
9157 fi
9158
9159 striplib=
9160 old_striplib=
9161 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9162 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9163 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9164   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9165   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9166   { echo "$as_me:$LINENO: result: yes" >&5
9167 echo "${ECHO_T}yes" >&6; }
9168 else
9169 # FIXME - insert some real tests, host_os isn't really good enough
9170   case $host_os in
9171    darwin*)
9172        if test -n "$STRIP" ; then
9173          striplib="$STRIP -x"
9174          { echo "$as_me:$LINENO: result: yes" >&5
9175 echo "${ECHO_T}yes" >&6; }
9176        else
9177   { echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6; }
9179 fi
9180        ;;
9181    *)
9182   { echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6; }
9184     ;;
9185   esac
9186 fi
9187
9188 if test "x$enable_dlopen" != xyes; then
9189   enable_dlopen=unknown
9190   enable_dlopen_self=unknown
9191   enable_dlopen_self_static=unknown
9192 else
9193   lt_cv_dlopen=no
9194   lt_cv_dlopen_libs=
9195
9196   case $host_os in
9197   beos*)
9198     lt_cv_dlopen="load_add_on"
9199     lt_cv_dlopen_libs=
9200     lt_cv_dlopen_self=yes
9201     ;;
9202
9203   mingw* | pw32*)
9204     lt_cv_dlopen="LoadLibrary"
9205     lt_cv_dlopen_libs=
9206    ;;
9207
9208   cygwin*)
9209     lt_cv_dlopen="dlopen"
9210     lt_cv_dlopen_libs=
9211    ;;
9212
9213   darwin*)
9214   # if libdl is installed we need to link against it
9215     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   ac_check_lib_save_LIBS=$LIBS
9221 LIBS="-ldl  $LIBS"
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228
9229 /* Override any GCC internal prototype to avoid an error.
9230    Use char because int might match the return type of a GCC
9231    builtin and then its argument prototype would still apply.  */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 char dlopen ();
9236 int
9237 main ()
9238 {
9239 return dlopen ();
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (ac_try="$ac_link"
9246 case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251   (eval "$ac_link") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } && {
9258          test -z "$ac_c_werror_flag" ||
9259          test ! -s conftest.err
9260        } && test -s conftest$ac_exeext &&
9261        $as_test_x conftest$ac_exeext; then
9262   ac_cv_lib_dl_dlopen=yes
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267         ac_cv_lib_dl_dlopen=no
9268 fi
9269
9270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271       conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9273 fi
9274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9276 if test $ac_cv_lib_dl_dlopen = yes; then
9277   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9278 else
9279
9280     lt_cv_dlopen="dyld"
9281     lt_cv_dlopen_libs=
9282     lt_cv_dlopen_self=yes
9283
9284 fi
9285
9286    ;;
9287
9288   *)
9289     { echo "$as_me:$LINENO: checking for shl_load" >&5
9290 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9291 if test "${ac_cv_func_shl_load+set}" = set; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294   cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9302 #define shl_load innocuous_shl_load
9303
9304 /* System header to define __stub macros and hopefully few prototypes,
9305     which can conflict with char shl_load (); below.
9306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307     <limits.h> exists even on freestanding compilers.  */
9308
9309 #ifdef __STDC__
9310 # include <limits.h>
9311 #else
9312 # include <assert.h>
9313 #endif
9314
9315 #undef shl_load
9316
9317 /* Override any GCC internal prototype to avoid an error.
9318    Use char because int might match the return type of a GCC
9319    builtin and then its argument prototype would still apply.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char shl_load ();
9324 /* The GNU C library defines this for functions which it implements
9325     to always fail with ENOSYS.  Some functions are actually named
9326     something starting with __ and the normal name is an alias.  */
9327 #if defined __stub_shl_load || defined __stub___shl_load
9328 choke me
9329 #endif
9330
9331 int
9332 main ()
9333 {
9334 return shl_load ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9341 case "(($ac_try" in
9342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343   *) ac_try_echo=$ac_try;;
9344 esac
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346   (eval "$ac_link") 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } && {
9353          test -z "$ac_c_werror_flag" ||
9354          test ! -s conftest.err
9355        } && test -s conftest$ac_exeext &&
9356        $as_test_x conftest$ac_exeext; then
9357   ac_cv_func_shl_load=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362         ac_cv_func_shl_load=no
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9366       conftest$ac_exeext conftest.$ac_ext
9367 fi
9368 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9369 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9370 if test $ac_cv_func_shl_load = yes; then
9371   lt_cv_dlopen="shl_load"
9372 else
9373   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9374 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9375 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-ldld  $LIBS"
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386
9387 /* Override any GCC internal prototype to avoid an error.
9388    Use char because int might match the return type of a GCC
9389    builtin and then its argument prototype would still apply.  */
9390 #ifdef __cplusplus
9391 extern "C"
9392 #endif
9393 char shl_load ();
9394 int
9395 main ()
9396 {
9397 return shl_load ();
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (ac_try="$ac_link"
9404 case "(($ac_try" in
9405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406   *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409   (eval "$ac_link") 2>conftest.er1
9410   ac_status=$?
9411   grep -v '^ *+' conftest.er1 >conftest.err
9412   rm -f conftest.er1
9413   cat conftest.err >&5
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } && {
9416          test -z "$ac_c_werror_flag" ||
9417          test ! -s conftest.err
9418        } && test -s conftest$ac_exeext &&
9419        $as_test_x conftest$ac_exeext; then
9420   ac_cv_lib_dld_shl_load=yes
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425         ac_cv_lib_dld_shl_load=no
9426 fi
9427
9428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9429       conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9431 fi
9432 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9433 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9434 if test $ac_cv_lib_dld_shl_load = yes; then
9435   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9436 else
9437   { echo "$as_me:$LINENO: checking for dlopen" >&5
9438 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9439 if test "${ac_cv_func_dlopen+set}" = set; then
9440   echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442   cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9450 #define dlopen innocuous_dlopen
9451
9452 /* System header to define __stub macros and hopefully few prototypes,
9453     which can conflict with char dlopen (); below.
9454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455     <limits.h> exists even on freestanding compilers.  */
9456
9457 #ifdef __STDC__
9458 # include <limits.h>
9459 #else
9460 # include <assert.h>
9461 #endif
9462
9463 #undef dlopen
9464
9465 /* Override any GCC internal prototype to avoid an error.
9466    Use char because int might match the return type of a GCC
9467    builtin and then its argument prototype would still apply.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char dlopen ();
9472 /* The GNU C library defines this for functions which it implements
9473     to always fail with ENOSYS.  Some functions are actually named
9474     something starting with __ and the normal name is an alias.  */
9475 #if defined __stub_dlopen || defined __stub___dlopen
9476 choke me
9477 #endif
9478
9479 int
9480 main ()
9481 {
9482 return dlopen ();
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9489 case "(($ac_try" in
9490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491   *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494   (eval "$ac_link") 2>conftest.er1
9495   ac_status=$?
9496   grep -v '^ *+' conftest.er1 >conftest.err
9497   rm -f conftest.er1
9498   cat conftest.err >&5
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); } && {
9501          test -z "$ac_c_werror_flag" ||
9502          test ! -s conftest.err
9503        } && test -s conftest$ac_exeext &&
9504        $as_test_x conftest$ac_exeext; then
9505   ac_cv_func_dlopen=yes
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510         ac_cv_func_dlopen=no
9511 fi
9512
9513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9514       conftest$ac_exeext conftest.$ac_ext
9515 fi
9516 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9517 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9518 if test $ac_cv_func_dlopen = yes; then
9519   lt_cv_dlopen="dlopen"
9520 else
9521   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9522 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9523 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   ac_check_lib_save_LIBS=$LIBS
9527 LIBS="-ldl  $LIBS"
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h.  */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h.  */
9534
9535 /* Override any GCC internal prototype to avoid an error.
9536    Use char because int might match the return type of a GCC
9537    builtin and then its argument prototype would still apply.  */
9538 #ifdef __cplusplus
9539 extern "C"
9540 #endif
9541 char dlopen ();
9542 int
9543 main ()
9544 {
9545 return dlopen ();
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9552 case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557   (eval "$ac_link") 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } && {
9564          test -z "$ac_c_werror_flag" ||
9565          test ! -s conftest.err
9566        } && test -s conftest$ac_exeext &&
9567        $as_test_x conftest$ac_exeext; then
9568   ac_cv_lib_dl_dlopen=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573         ac_cv_lib_dl_dlopen=no
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9577       conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9579 fi
9580 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9581 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9582 if test $ac_cv_lib_dl_dlopen = yes; then
9583   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9584 else
9585   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9586 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590   ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-lsvld  $LIBS"
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598
9599 /* Override any GCC internal prototype to avoid an error.
9600    Use char because int might match the return type of a GCC
9601    builtin and then its argument prototype would still apply.  */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char dlopen ();
9606 int
9607 main ()
9608 {
9609 return dlopen ();
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9616 case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_link") 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } && {
9628          test -z "$ac_c_werror_flag" ||
9629          test ! -s conftest.err
9630        } && test -s conftest$ac_exeext &&
9631        $as_test_x conftest$ac_exeext; then
9632   ac_cv_lib_svld_dlopen=yes
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637         ac_cv_lib_svld_dlopen=no
9638 fi
9639
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641       conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9643 fi
9644 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9645 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9646 if test $ac_cv_lib_svld_dlopen = yes; then
9647   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9648 else
9649   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9650 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9651 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   ac_check_lib_save_LIBS=$LIBS
9655 LIBS="-ldld  $LIBS"
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664    Use char because int might match the return type of a GCC
9665    builtin and then its argument prototype would still apply.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char dld_link ();
9670 int
9671 main ()
9672 {
9673 return dld_link ();
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (ac_try="$ac_link"
9680 case "(($ac_try" in
9681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682   *) ac_try_echo=$ac_try;;
9683 esac
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685   (eval "$ac_link") 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } && {
9692          test -z "$ac_c_werror_flag" ||
9693          test ! -s conftest.err
9694        } && test -s conftest$ac_exeext &&
9695        $as_test_x conftest$ac_exeext; then
9696   ac_cv_lib_dld_dld_link=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701         ac_cv_lib_dld_dld_link=no
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705       conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9707 fi
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9710 if test $ac_cv_lib_dld_dld_link = yes; then
9711   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9712 fi
9713
9714
9715 fi
9716
9717
9718 fi
9719
9720
9721 fi
9722
9723
9724 fi
9725
9726
9727 fi
9728
9729     ;;
9730   esac
9731
9732   if test "x$lt_cv_dlopen" != xno; then
9733     enable_dlopen=yes
9734   else
9735     enable_dlopen=no
9736   fi
9737
9738   case $lt_cv_dlopen in
9739   dlopen)
9740     save_CPPFLAGS="$CPPFLAGS"
9741     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9742
9743     save_LDFLAGS="$LDFLAGS"
9744     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9745
9746     save_LIBS="$LIBS"
9747     LIBS="$lt_cv_dlopen_libs $LIBS"
9748
9749     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9751 if test "${lt_cv_dlopen_self+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754           if test "$cross_compiling" = yes; then :
9755   lt_cv_dlopen_self=cross
9756 else
9757   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9758   lt_status=$lt_dlunknown
9759   cat > conftest.$ac_ext <<EOF
9760 #line 9760 "configure"
9761 #include "confdefs.h"
9762
9763 #if HAVE_DLFCN_H
9764 #include <dlfcn.h>
9765 #endif
9766
9767 #include <stdio.h>
9768
9769 #ifdef RTLD_GLOBAL
9770 #  define LT_DLGLOBAL           RTLD_GLOBAL
9771 #else
9772 #  ifdef DL_GLOBAL
9773 #    define LT_DLGLOBAL         DL_GLOBAL
9774 #  else
9775 #    define LT_DLGLOBAL         0
9776 #  endif
9777 #endif
9778
9779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9780    find out it does not work in some platform. */
9781 #ifndef LT_DLLAZY_OR_NOW
9782 #  ifdef RTLD_LAZY
9783 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9784 #  else
9785 #    ifdef DL_LAZY
9786 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9787 #    else
9788 #      ifdef RTLD_NOW
9789 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9790 #      else
9791 #        ifdef DL_NOW
9792 #          define LT_DLLAZY_OR_NOW      DL_NOW
9793 #        else
9794 #          define LT_DLLAZY_OR_NOW      0
9795 #        endif
9796 #      endif
9797 #    endif
9798 #  endif
9799 #endif
9800
9801 #ifdef __cplusplus
9802 extern "C" void exit (int);
9803 #endif
9804
9805 void fnord() { int i=42;}
9806 int main ()
9807 {
9808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9809   int status = $lt_dlunknown;
9810
9811   if (self)
9812     {
9813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9814       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9815       /* dlclose (self); */
9816     }
9817   else
9818     puts (dlerror ());
9819
9820     exit (status);
9821 }
9822 EOF
9823   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824   (eval $ac_link) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9828     (./conftest; exit; ) >&5 2>/dev/null
9829     lt_status=$?
9830     case x$lt_status in
9831       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9832       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9833       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9834     esac
9835   else :
9836     # compilation failed
9837     lt_cv_dlopen_self=no
9838   fi
9839 fi
9840 rm -fr conftest*
9841
9842
9843 fi
9844 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9845 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9846
9847     if test "x$lt_cv_dlopen_self" = xyes; then
9848       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9849       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9850 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9851 if test "${lt_cv_dlopen_self_static+set}" = set; then
9852   echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854           if test "$cross_compiling" = yes; then :
9855   lt_cv_dlopen_self_static=cross
9856 else
9857   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9858   lt_status=$lt_dlunknown
9859   cat > conftest.$ac_ext <<EOF
9860 #line 9860 "configure"
9861 #include "confdefs.h"
9862
9863 #if HAVE_DLFCN_H
9864 #include <dlfcn.h>
9865 #endif
9866
9867 #include <stdio.h>
9868
9869 #ifdef RTLD_GLOBAL
9870 #  define LT_DLGLOBAL           RTLD_GLOBAL
9871 #else
9872 #  ifdef DL_GLOBAL
9873 #    define LT_DLGLOBAL         DL_GLOBAL
9874 #  else
9875 #    define LT_DLGLOBAL         0
9876 #  endif
9877 #endif
9878
9879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9880    find out it does not work in some platform. */
9881 #ifndef LT_DLLAZY_OR_NOW
9882 #  ifdef RTLD_LAZY
9883 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9884 #  else
9885 #    ifdef DL_LAZY
9886 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9887 #    else
9888 #      ifdef RTLD_NOW
9889 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9890 #      else
9891 #        ifdef DL_NOW
9892 #          define LT_DLLAZY_OR_NOW      DL_NOW
9893 #        else
9894 #          define LT_DLLAZY_OR_NOW      0
9895 #        endif
9896 #      endif
9897 #    endif
9898 #  endif
9899 #endif
9900
9901 #ifdef __cplusplus
9902 extern "C" void exit (int);
9903 #endif
9904
9905 void fnord() { int i=42;}
9906 int main ()
9907 {
9908   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9909   int status = $lt_dlunknown;
9910
9911   if (self)
9912     {
9913       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9914       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9915       /* dlclose (self); */
9916     }
9917   else
9918     puts (dlerror ());
9919
9920     exit (status);
9921 }
9922 EOF
9923   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924   (eval $ac_link) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9928     (./conftest; exit; ) >&5 2>/dev/null
9929     lt_status=$?
9930     case x$lt_status in
9931       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9932       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9933       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9934     esac
9935   else :
9936     # compilation failed
9937     lt_cv_dlopen_self_static=no
9938   fi
9939 fi
9940 rm -fr conftest*
9941
9942
9943 fi
9944 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9946     fi
9947
9948     CPPFLAGS="$save_CPPFLAGS"
9949     LDFLAGS="$save_LDFLAGS"
9950     LIBS="$save_LIBS"
9951     ;;
9952   esac
9953
9954   case $lt_cv_dlopen_self in
9955   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9956   *) enable_dlopen_self=unknown ;;
9957   esac
9958
9959   case $lt_cv_dlopen_self_static in
9960   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9961   *) enable_dlopen_self_static=unknown ;;
9962   esac
9963 fi
9964
9965
9966 # Report which library types will actually be built
9967 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9969 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9970 echo "${ECHO_T}$can_build_shared" >&6; }
9971
9972 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9974 test "$can_build_shared" = "no" && enable_shared=no
9975
9976 # On AIX, shared libraries and static libraries use the same namespace, and
9977 # are all built from PIC.
9978 case $host_os in
9979 aix3*)
9980   test "$enable_shared" = yes && enable_static=no
9981   if test -n "$RANLIB"; then
9982     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9983     postinstall_cmds='$RANLIB $lib'
9984   fi
9985   ;;
9986
9987 aix4* | aix5*)
9988   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9989     test "$enable_shared" = yes && enable_static=no
9990   fi
9991     ;;
9992 esac
9993 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9994 echo "${ECHO_T}$enable_shared" >&6; }
9995
9996 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9997 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9998 # Make sure either enable_shared or enable_static is yes.
9999 test "$enable_shared" = yes || enable_static=yes
10000 { echo "$as_me:$LINENO: result: $enable_static" >&5
10001 echo "${ECHO_T}$enable_static" >&6; }
10002
10003 # The else clause should only fire when bootstrapping the
10004 # libtool distribution, otherwise you forgot to ship ltmain.sh
10005 # with your package, and you will get complaints that there are
10006 # no rules to generate ltmain.sh.
10007 if test -f "$ltmain"; then
10008   # See if we are running on zsh, and set the options which allow our commands through
10009   # without removal of \ escapes.
10010   if test -n "${ZSH_VERSION+set}" ; then
10011     setopt NO_GLOB_SUBST
10012   fi
10013   # Now quote all the things that may contain metacharacters while being
10014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10015   # variables and quote the copies for generation of the libtool script.
10016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10017     SED SHELL STRIP \
10018     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10019     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10020     deplibs_check_method reload_flag reload_cmds need_locks \
10021     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10022     lt_cv_sys_global_symbol_to_c_name_address \
10023     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10024     old_postinstall_cmds old_postuninstall_cmds \
10025     compiler \
10026     CC \
10027     LD \
10028     lt_prog_compiler_wl \
10029     lt_prog_compiler_pic \
10030     lt_prog_compiler_static \
10031     lt_prog_compiler_no_builtin_flag \
10032     export_dynamic_flag_spec \
10033     thread_safe_flag_spec \
10034     whole_archive_flag_spec \
10035     enable_shared_with_static_runtimes \
10036     old_archive_cmds \
10037     old_archive_from_new_cmds \
10038     predep_objects \
10039     postdep_objects \
10040     predeps \
10041     postdeps \
10042     compiler_lib_search_path \
10043     archive_cmds \
10044     archive_expsym_cmds \
10045     postinstall_cmds \
10046     postuninstall_cmds \
10047     old_archive_from_expsyms_cmds \
10048     allow_undefined_flag \
10049     no_undefined_flag \
10050     export_symbols_cmds \
10051     hardcode_libdir_flag_spec \
10052     hardcode_libdir_flag_spec_ld \
10053     hardcode_libdir_separator \
10054     hardcode_automatic \
10055     module_cmds \
10056     module_expsym_cmds \
10057     lt_cv_prog_compiler_c_o \
10058     exclude_expsyms \
10059     include_expsyms; do
10060
10061     case $var in
10062     old_archive_cmds | \
10063     old_archive_from_new_cmds | \
10064     archive_cmds | \
10065     archive_expsym_cmds | \
10066     module_cmds | \
10067     module_expsym_cmds | \
10068     old_archive_from_expsyms_cmds | \
10069     export_symbols_cmds | \
10070     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10071     postinstall_cmds | postuninstall_cmds | \
10072     old_postinstall_cmds | old_postuninstall_cmds | \
10073     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10074       # Double-quote double-evaled strings.
10075       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10076       ;;
10077     *)
10078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10079       ;;
10080     esac
10081   done
10082
10083   case $lt_echo in
10084   *'\$0 --fallback-echo"')
10085     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10086     ;;
10087   esac
10088
10089 cfgfile="${ofile}T"
10090   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10091   $rm -f "$cfgfile"
10092   { echo "$as_me:$LINENO: creating $ofile" >&5
10093 echo "$as_me: creating $ofile" >&6;}
10094
10095   cat <<__EOF__ >> "$cfgfile"
10096 #! $SHELL
10097
10098 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10099 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10100 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10101 #
10102 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10103 # Free Software Foundation, Inc.
10104 #
10105 # This file is part of GNU Libtool:
10106 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10107 #
10108 # This program is free software; you can redistribute it and/or modify
10109 # it under the terms of the GNU General Public License as published by
10110 # the Free Software Foundation; either version 2 of the License, or
10111 # (at your option) any later version.
10112 #
10113 # This program is distributed in the hope that it will be useful, but
10114 # WITHOUT ANY WARRANTY; without even the implied warranty of
10115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10116 # General Public License for more details.
10117 #
10118 # You should have received a copy of the GNU General Public License
10119 # along with this program; if not, write to the Free Software
10120 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10121 #
10122 # As a special exception to the GNU General Public License, if you
10123 # distribute this file as part of a program that contains a
10124 # configuration script generated by Autoconf, you may include it under
10125 # the same distribution terms that you use for the rest of that program.
10126
10127 # A sed program that does not truncate output.
10128 SED=$lt_SED
10129
10130 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10131 Xsed="$SED -e 1s/^X//"
10132
10133 # The HP-UX ksh and POSIX shell print the target directory to stdout
10134 # if CDPATH is set.
10135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10136
10137 # The names of the tagged configurations supported by this script.
10138 available_tags=
10139
10140 # ### BEGIN LIBTOOL CONFIG
10141
10142 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10143
10144 # Shell to use when invoking shell scripts.
10145 SHELL=$lt_SHELL
10146
10147 # Whether or not to build shared libraries.
10148 build_libtool_libs=$enable_shared
10149
10150 # Whether or not to build static libraries.
10151 build_old_libs=$enable_static
10152
10153 # Whether or not to add -lc for building shared libraries.
10154 build_libtool_need_lc=$archive_cmds_need_lc
10155
10156 # Whether or not to disallow shared libs when runtime libs are static
10157 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10158
10159 # Whether or not to optimize for fast installation.
10160 fast_install=$enable_fast_install
10161
10162 # The host system.
10163 host_alias=$host_alias
10164 host=$host
10165 host_os=$host_os
10166
10167 # The build system.
10168 build_alias=$build_alias
10169 build=$build
10170 build_os=$build_os
10171
10172 # An echo program that does not interpret backslashes.
10173 echo=$lt_echo
10174
10175 # The archiver.
10176 AR=$lt_AR
10177 AR_FLAGS=$lt_AR_FLAGS
10178
10179 # A C compiler.
10180 LTCC=$lt_LTCC
10181
10182 # LTCC compiler flags.
10183 LTCFLAGS=$lt_LTCFLAGS
10184
10185 # A language-specific compiler.
10186 CC=$lt_compiler
10187
10188 # Is the compiler the GNU C compiler?
10189 with_gcc=$GCC
10190
10191 # An ERE matcher.
10192 EGREP=$lt_EGREP
10193
10194 # The linker used to build libraries.
10195 LD=$lt_LD
10196
10197 # Whether we need hard or soft links.
10198 LN_S=$lt_LN_S
10199
10200 # A BSD-compatible nm program.
10201 NM=$lt_NM
10202
10203 # A symbol stripping program
10204 STRIP=$lt_STRIP
10205
10206 # Used to examine libraries when file_magic_cmd begins "file"
10207 MAGIC_CMD=$MAGIC_CMD
10208
10209 # Used on cygwin: DLL creation program.
10210 DLLTOOL="$DLLTOOL"
10211
10212 # Used on cygwin: object dumper.
10213 OBJDUMP="$OBJDUMP"
10214
10215 # Used on cygwin: assembler.
10216 AS="$AS"
10217
10218 # The name of the directory that contains temporary libtool files.
10219 objdir=$objdir
10220
10221 # How to create reloadable object files.
10222 reload_flag=$lt_reload_flag
10223 reload_cmds=$lt_reload_cmds
10224
10225 # How to pass a linker flag through the compiler.
10226 wl=$lt_lt_prog_compiler_wl
10227
10228 # Object file suffix (normally "o").
10229 objext="$ac_objext"
10230
10231 # Old archive suffix (normally "a").
10232 libext="$libext"
10233
10234 # Shared library suffix (normally ".so").
10235 shrext_cmds='$shrext_cmds'
10236
10237 # Executable file suffix (normally "").
10238 exeext="$exeext"
10239
10240 # Additional compiler flags for building library objects.
10241 pic_flag=$lt_lt_prog_compiler_pic
10242 pic_mode=$pic_mode
10243
10244 # What is the maximum length of a command?
10245 max_cmd_len=$lt_cv_sys_max_cmd_len
10246
10247 # Does compiler simultaneously support -c and -o options?
10248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10249
10250 # Must we lock files when doing compilation?
10251 need_locks=$lt_need_locks
10252
10253 # Do we need the lib prefix for modules?
10254 need_lib_prefix=$need_lib_prefix
10255
10256 # Do we need a version for libraries?
10257 need_version=$need_version
10258
10259 # Whether dlopen is supported.
10260 dlopen_support=$enable_dlopen
10261
10262 # Whether dlopen of programs is supported.
10263 dlopen_self=$enable_dlopen_self
10264
10265 # Whether dlopen of statically linked programs is supported.
10266 dlopen_self_static=$enable_dlopen_self_static
10267
10268 # Compiler flag to prevent dynamic linking.
10269 link_static_flag=$lt_lt_prog_compiler_static
10270
10271 # Compiler flag to turn off builtin functions.
10272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10273
10274 # Compiler flag to allow reflexive dlopens.
10275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10276
10277 # Compiler flag to generate shared objects directly from archives.
10278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10279
10280 # Compiler flag to generate thread-safe objects.
10281 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10282
10283 # Library versioning type.
10284 version_type=$version_type
10285
10286 # Format of library name prefix.
10287 libname_spec=$lt_libname_spec
10288
10289 # List of archive names.  First name is the real one, the rest are links.
10290 # The last name is the one that the linker finds with -lNAME.
10291 library_names_spec=$lt_library_names_spec
10292
10293 # The coded name of the library, if different from the real name.
10294 soname_spec=$lt_soname_spec
10295
10296 # Commands used to build and install an old-style archive.
10297 RANLIB=$lt_RANLIB
10298 old_archive_cmds=$lt_old_archive_cmds
10299 old_postinstall_cmds=$lt_old_postinstall_cmds
10300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10301
10302 # Create an old-style archive from a shared archive.
10303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10304
10305 # Create a temporary old-style archive to link instead of a shared archive.
10306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10307
10308 # Commands used to build and install a shared archive.
10309 archive_cmds=$lt_archive_cmds
10310 archive_expsym_cmds=$lt_archive_expsym_cmds
10311 postinstall_cmds=$lt_postinstall_cmds
10312 postuninstall_cmds=$lt_postuninstall_cmds
10313
10314 # Commands used to build a loadable module (assumed same as above if empty)
10315 module_cmds=$lt_module_cmds
10316 module_expsym_cmds=$lt_module_expsym_cmds
10317
10318 # Commands to strip libraries.
10319 old_striplib=$lt_old_striplib
10320 striplib=$lt_striplib
10321
10322 # Dependencies to place before the objects being linked to create a
10323 # shared library.
10324 predep_objects=$lt_predep_objects
10325
10326 # Dependencies to place after the objects being linked to create a
10327 # shared library.
10328 postdep_objects=$lt_postdep_objects
10329
10330 # Dependencies to place before the objects being linked to create a
10331 # shared library.
10332 predeps=$lt_predeps
10333
10334 # Dependencies to place after the objects being linked to create a
10335 # shared library.
10336 postdeps=$lt_postdeps
10337
10338 # The library search path used internally by the compiler when linking
10339 # a shared library.
10340 compiler_lib_search_path=$lt_compiler_lib_search_path
10341
10342 # Method to check whether dependent libraries are shared objects.
10343 deplibs_check_method=$lt_deplibs_check_method
10344
10345 # Command to use when deplibs_check_method == file_magic.
10346 file_magic_cmd=$lt_file_magic_cmd
10347
10348 # Flag that allows shared libraries with undefined symbols to be built.
10349 allow_undefined_flag=$lt_allow_undefined_flag
10350
10351 # Flag that forces no undefined symbols.
10352 no_undefined_flag=$lt_no_undefined_flag
10353
10354 # Commands used to finish a libtool library installation in a directory.
10355 finish_cmds=$lt_finish_cmds
10356
10357 # Same as above, but a single script fragment to be evaled but not shown.
10358 finish_eval=$lt_finish_eval
10359
10360 # Take the output of nm and produce a listing of raw symbols and C names.
10361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10362
10363 # Transform the output of nm in a proper C declaration
10364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10365
10366 # Transform the output of nm in a C name address pair
10367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10368
10369 # This is the shared library runtime path variable.
10370 runpath_var=$runpath_var
10371
10372 # This is the shared library path variable.
10373 shlibpath_var=$shlibpath_var
10374
10375 # Is shlibpath searched before the hard-coded library search path?
10376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10377
10378 # How to hardcode a shared library path into an executable.
10379 hardcode_action=$hardcode_action
10380
10381 # Whether we should hardcode library paths into libraries.
10382 hardcode_into_libs=$hardcode_into_libs
10383
10384 # Flag to hardcode \$libdir into a binary during linking.
10385 # This must work even if \$libdir does not exist.
10386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10387
10388 # If ld is used when linking, flag to hardcode \$libdir into
10389 # a binary during linking. This must work even if \$libdir does
10390 # not exist.
10391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10392
10393 # Whether we need a single -rpath flag with a separated argument.
10394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10395
10396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10397 # resulting binary.
10398 hardcode_direct=$hardcode_direct
10399
10400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10401 # resulting binary.
10402 hardcode_minus_L=$hardcode_minus_L
10403
10404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10405 # the resulting binary.
10406 hardcode_shlibpath_var=$hardcode_shlibpath_var
10407
10408 # Set to yes if building a shared library automatically hardcodes DIR into the library
10409 # and all subsequent libraries and executables linked against it.
10410 hardcode_automatic=$hardcode_automatic
10411
10412 # Variables whose values should be saved in libtool wrapper scripts and
10413 # restored at relink time.
10414 variables_saved_for_relink="$variables_saved_for_relink"
10415
10416 # Whether libtool must link a program against all its dependency libraries.
10417 link_all_deplibs=$link_all_deplibs
10418
10419 # Compile-time system search path for libraries
10420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10421
10422 # Run-time system search path for libraries
10423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10424
10425 # Fix the shell variable \$srcfile for the compiler.
10426 fix_srcfile_path="$fix_srcfile_path"
10427
10428 # Set to yes if exported symbols are required.
10429 always_export_symbols=$always_export_symbols
10430
10431 # The commands to list exported symbols.
10432 export_symbols_cmds=$lt_export_symbols_cmds
10433
10434 # The commands to extract the exported symbol list from a shared archive.
10435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10436
10437 # Symbols that should not be listed in the preloaded symbols.
10438 exclude_expsyms=$lt_exclude_expsyms
10439
10440 # Symbols that must always be exported.
10441 include_expsyms=$lt_include_expsyms
10442
10443 # ### END LIBTOOL CONFIG
10444
10445 __EOF__
10446
10447
10448   case $host_os in
10449   aix3*)
10450     cat <<\EOF >> "$cfgfile"
10451
10452 # AIX sometimes has problems with the GCC collect2 program.  For some
10453 # reason, if we set the COLLECT_NAMES environment variable, the problems
10454 # vanish in a puff of smoke.
10455 if test "X${COLLECT_NAMES+set}" != Xset; then
10456   COLLECT_NAMES=
10457   export COLLECT_NAMES
10458 fi
10459 EOF
10460     ;;
10461   esac
10462
10463   # We use sed instead of cat because bash on DJGPP gets confused if
10464   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10465   # text mode, it properly converts lines to CR/LF.  This bash problem
10466   # is reportedly fixed, but why not run on old versions too?
10467   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10468
10469   mv -f "$cfgfile" "$ofile" || \
10470     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10471   chmod +x "$ofile"
10472
10473 else
10474   # If there is no Makefile yet, we rely on a make rule to execute
10475   # `config.status --recheck' to rerun these tests and create the
10476   # libtool script then.
10477   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10478   if test -f "$ltmain_in"; then
10479     test -f Makefile && make "$ltmain"
10480   fi
10481 fi
10482
10483
10484 ac_ext=c
10485 ac_cpp='$CPP $CPPFLAGS'
10486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10489
10490 CC="$lt_save_CC"
10491
10492
10493 # Check whether --with-tags was given.
10494 if test "${with_tags+set}" = set; then
10495   withval=$with_tags; tagnames="$withval"
10496 fi
10497
10498
10499 if test -f "$ltmain" && test -n "$tagnames"; then
10500   if test ! -f "${ofile}"; then
10501     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10502 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10503   fi
10504
10505   if test -z "$LTCC"; then
10506     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10507     if test -z "$LTCC"; then
10508       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10509 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10510     else
10511       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10512 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10513     fi
10514   fi
10515   if test -z "$LTCFLAGS"; then
10516     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10517   fi
10518
10519   # Extract list of available tagged configurations in $ofile.
10520   # Note that this assumes the entire list is on one line.
10521   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10522
10523   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10524   for tagname in $tagnames; do
10525     IFS="$lt_save_ifs"
10526     # Check whether tagname contains only valid characters
10527     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10528     "") ;;
10529     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10530 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10531    { (exit 1); exit 1; }; }
10532         ;;
10533     esac
10534
10535     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10536     then
10537       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10538 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10539    { (exit 1); exit 1; }; }
10540     fi
10541
10542     # Update the list of available tags.
10543     if test -n "$tagname"; then
10544       echo appending configuration tag \"$tagname\" to $ofile
10545
10546       case $tagname in
10547       CXX)
10548         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10549             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10550             (test "X$CXX" != "Xg++"))) ; then
10551           ac_ext=cpp
10552 ac_cpp='$CXXCPP $CPPFLAGS'
10553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10556
10557
10558
10559
10560 archive_cmds_need_lc_CXX=no
10561 allow_undefined_flag_CXX=
10562 always_export_symbols_CXX=no
10563 archive_expsym_cmds_CXX=
10564 export_dynamic_flag_spec_CXX=
10565 hardcode_direct_CXX=no
10566 hardcode_libdir_flag_spec_CXX=
10567 hardcode_libdir_flag_spec_ld_CXX=
10568 hardcode_libdir_separator_CXX=
10569 hardcode_minus_L_CXX=no
10570 hardcode_shlibpath_var_CXX=unsupported
10571 hardcode_automatic_CXX=no
10572 module_cmds_CXX=
10573 module_expsym_cmds_CXX=
10574 link_all_deplibs_CXX=unknown
10575 old_archive_cmds_CXX=$old_archive_cmds
10576 no_undefined_flag_CXX=
10577 whole_archive_flag_spec_CXX=
10578 enable_shared_with_static_runtimes_CXX=no
10579
10580 # Dependencies to place before and after the object being linked:
10581 predep_objects_CXX=
10582 postdep_objects_CXX=
10583 predeps_CXX=
10584 postdeps_CXX=
10585 compiler_lib_search_path_CXX=
10586
10587 # Source file extension for C++ test sources.
10588 ac_ext=cpp
10589
10590 # Object file extension for compiled C++ test sources.
10591 objext=o
10592 objext_CXX=$objext
10593
10594 # Code to be used in simple compile tests
10595 lt_simple_compile_test_code="int some_variable = 0;\n"
10596
10597 # Code to be used in simple link tests
10598 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10599
10600 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10601
10602 # If no C compiler was specified, use CC.
10603 LTCC=${LTCC-"$CC"}
10604
10605 # If no C compiler flags were specified, use CFLAGS.
10606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10607
10608 # Allow CC to be a program name with arguments.
10609 compiler=$CC
10610
10611
10612 # save warnings/boilerplate of simple test code
10613 ac_outfile=conftest.$ac_objext
10614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10616 _lt_compiler_boilerplate=`cat conftest.err`
10617 $rm conftest*
10618
10619 ac_outfile=conftest.$ac_objext
10620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10622 _lt_linker_boilerplate=`cat conftest.err`
10623 $rm conftest*
10624
10625
10626 # Allow CC to be a program name with arguments.
10627 lt_save_CC=$CC
10628 lt_save_LD=$LD
10629 lt_save_GCC=$GCC
10630 GCC=$GXX
10631 lt_save_with_gnu_ld=$with_gnu_ld
10632 lt_save_path_LD=$lt_cv_path_LD
10633 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10634   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10635 else
10636   $as_unset lt_cv_prog_gnu_ld
10637 fi
10638 if test -n "${lt_cv_path_LDCXX+set}"; then
10639   lt_cv_path_LD=$lt_cv_path_LDCXX
10640 else
10641   $as_unset lt_cv_path_LD
10642 fi
10643 test -z "${LDCXX+set}" || LD=$LDCXX
10644 CC=${CXX-"c++"}
10645 compiler=$CC
10646 compiler_CXX=$CC
10647 for cc_temp in $compiler""; do
10648   case $cc_temp in
10649     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10650     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10651     \-*) ;;
10652     *) break;;
10653   esac
10654 done
10655 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10656
10657
10658 # We don't want -fno-exception wen compiling C++ code, so set the
10659 # no_builtin_flag separately
10660 if test "$GXX" = yes; then
10661   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10662 else
10663   lt_prog_compiler_no_builtin_flag_CXX=
10664 fi
10665
10666 if test "$GXX" = yes; then
10667   # Set up default GNU C++ configuration
10668
10669
10670 # Check whether --with-gnu-ld was given.
10671 if test "${with_gnu_ld+set}" = set; then
10672   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10673 else
10674   with_gnu_ld=no
10675 fi
10676
10677 ac_prog=ld
10678 if test "$GCC" = yes; then
10679   # Check if gcc -print-prog-name=ld gives a path.
10680   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10681 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10682   case $host in
10683   *-*-mingw*)
10684     # gcc leaves a trailing carriage return which upsets mingw
10685     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10686   *)
10687     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10688   esac
10689   case $ac_prog in
10690     # Accept absolute paths.
10691     [\\/]* | ?:[\\/]*)
10692       re_direlt='/[^/][^/]*/\.\./'
10693       # Canonicalize the pathname of ld
10694       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10695       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10696         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10697       done
10698       test -z "$LD" && LD="$ac_prog"
10699       ;;
10700   "")
10701     # If it fails, then pretend we aren't using GCC.
10702     ac_prog=ld
10703     ;;
10704   *)
10705     # If it is relative, then search for the first ld in PATH.
10706     with_gnu_ld=unknown
10707     ;;
10708   esac
10709 elif test "$with_gnu_ld" = yes; then
10710   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10711 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10712 else
10713   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10714 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10715 fi
10716 if test "${lt_cv_path_LD+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   if test -z "$LD"; then
10720   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10721   for ac_dir in $PATH; do
10722     IFS="$lt_save_ifs"
10723     test -z "$ac_dir" && ac_dir=.
10724     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10725       lt_cv_path_LD="$ac_dir/$ac_prog"
10726       # Check to see if the program is GNU ld.  I'd rather use --version,
10727       # but apparently some variants of GNU ld only accept -v.
10728       # Break only if it was the GNU/non-GNU ld that we prefer.
10729       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10730       *GNU* | *'with BFD'*)
10731         test "$with_gnu_ld" != no && break
10732         ;;
10733       *)
10734         test "$with_gnu_ld" != yes && break
10735         ;;
10736       esac
10737     fi
10738   done
10739   IFS="$lt_save_ifs"
10740 else
10741   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10742 fi
10743 fi
10744
10745 LD="$lt_cv_path_LD"
10746 if test -n "$LD"; then
10747   { echo "$as_me:$LINENO: result: $LD" >&5
10748 echo "${ECHO_T}$LD" >&6; }
10749 else
10750   { echo "$as_me:$LINENO: result: no" >&5
10751 echo "${ECHO_T}no" >&6; }
10752 fi
10753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10755    { (exit 1); exit 1; }; }
10756 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10762 case `$LD -v 2>&1 </dev/null` in
10763 *GNU* | *'with BFD'*)
10764   lt_cv_prog_gnu_ld=yes
10765   ;;
10766 *)
10767   lt_cv_prog_gnu_ld=no
10768   ;;
10769 esac
10770 fi
10771 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10772 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10773 with_gnu_ld=$lt_cv_prog_gnu_ld
10774
10775
10776
10777   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10778   # archiving commands below assume that GNU ld is being used.
10779   if test "$with_gnu_ld" = yes; then
10780     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10781     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'
10782
10783     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10784     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10785
10786     # If archive_cmds runs LD, not CC, wlarc should be empty
10787     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10788     #     investigate it a little bit more. (MM)
10789     wlarc='${wl}'
10790
10791     # ancient GNU ld didn't support --whole-archive et. al.
10792     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10793         grep 'no-whole-archive' > /dev/null; then
10794       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10795     else
10796       whole_archive_flag_spec_CXX=
10797     fi
10798   else
10799     with_gnu_ld=no
10800     wlarc=
10801
10802     # A generic and very simple default shared library creation
10803     # command for GNU C++ for the case where it uses the native
10804     # linker, instead of GNU ld.  If possible, this setting should
10805     # overridden to take advantage of the native linker features on
10806     # the platform it is being used on.
10807     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10808   fi
10809
10810   # Commands to make compiler produce verbose output that lists
10811   # what "hidden" libraries, object files and flags are used when
10812   # linking a shared library.
10813   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10814
10815 else
10816   GXX=no
10817   with_gnu_ld=no
10818   wlarc=
10819 fi
10820
10821 # PORTME: fill in a description of your system's C++ link characteristics
10822 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10823 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10824 ld_shlibs_CXX=yes
10825 case $host_os in
10826   aix3*)
10827     # FIXME: insert proper C++ library support
10828     ld_shlibs_CXX=no
10829     ;;
10830   aix4* | aix5*)
10831     if test "$host_cpu" = ia64; then
10832       # On IA64, the linker does run time linking by default, so we don't
10833       # have to do anything special.
10834       aix_use_runtimelinking=no
10835       exp_sym_flag='-Bexport'
10836       no_entry_flag=""
10837     else
10838       aix_use_runtimelinking=no
10839
10840       # Test if we are trying to use run time linking or normal
10841       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10842       # need to do runtime linking.
10843       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10844         for ld_flag in $LDFLAGS; do
10845           case $ld_flag in
10846           *-brtl*)
10847             aix_use_runtimelinking=yes
10848             break
10849             ;;
10850           esac
10851         done
10852         ;;
10853       esac
10854
10855       exp_sym_flag='-bexport'
10856       no_entry_flag='-bnoentry'
10857     fi
10858
10859     # When large executables or shared objects are built, AIX ld can
10860     # have problems creating the table of contents.  If linking a library
10861     # or program results in "error TOC overflow" add -mminimal-toc to
10862     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10863     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10864
10865     archive_cmds_CXX=''
10866     hardcode_direct_CXX=yes
10867     hardcode_libdir_separator_CXX=':'
10868     link_all_deplibs_CXX=yes
10869
10870     if test "$GXX" = yes; then
10871       case $host_os in aix4.[012]|aix4.[012].*)
10872       # We only want to do this on AIX 4.2 and lower, the check
10873       # below for broken collect2 doesn't work under 4.3+
10874         collect2name=`${CC} -print-prog-name=collect2`
10875         if test -f "$collect2name" && \
10876            strings "$collect2name" | grep resolve_lib_name >/dev/null
10877         then
10878           # We have reworked collect2
10879           hardcode_direct_CXX=yes
10880         else
10881           # We have old collect2
10882           hardcode_direct_CXX=unsupported
10883           # It fails to find uninstalled libraries when the uninstalled
10884           # path is not listed in the libpath.  Setting hardcode_minus_L
10885           # to unsupported forces relinking
10886           hardcode_minus_L_CXX=yes
10887           hardcode_libdir_flag_spec_CXX='-L$libdir'
10888           hardcode_libdir_separator_CXX=
10889         fi
10890         ;;
10891       esac
10892       shared_flag='-shared'
10893       if test "$aix_use_runtimelinking" = yes; then
10894         shared_flag="$shared_flag "'${wl}-G'
10895       fi
10896     else
10897       # not using gcc
10898       if test "$host_cpu" = ia64; then
10899         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10900         # chokes on -Wl,-G. The following line is correct:
10901         shared_flag='-G'
10902       else
10903         if test "$aix_use_runtimelinking" = yes; then
10904           shared_flag='${wl}-G'
10905         else
10906           shared_flag='${wl}-bM:SRE'
10907         fi
10908       fi
10909     fi
10910
10911     # It seems that -bexpall does not export symbols beginning with
10912     # underscore (_), so it is better to generate a list of symbols to export.
10913     always_export_symbols_CXX=yes
10914     if test "$aix_use_runtimelinking" = yes; then
10915       # Warning - without using the other runtime loading flags (-brtl),
10916       # -berok will link without error, but may produce a broken library.
10917       allow_undefined_flag_CXX='-berok'
10918       # Determine the default libpath from the value encoded in an empty executable.
10919       cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925
10926 int
10927 main ()
10928 {
10929
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_link") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } && {
10948          test -z "$ac_cxx_werror_flag" ||
10949          test ! -s conftest.err
10950        } && test -s conftest$ac_exeext &&
10951        $as_test_x conftest$ac_exeext; then
10952
10953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10954 }'`
10955 # Check for a 64-bit object if we didn't find anything.
10956 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; }
10957 }'`; fi
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962
10963 fi
10964
10965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10966       conftest$ac_exeext conftest.$ac_ext
10967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10968
10969       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10970
10971       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"
10972      else
10973       if test "$host_cpu" = ia64; then
10974         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10975         allow_undefined_flag_CXX="-z nodefs"
10976         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"
10977       else
10978         # Determine the default libpath from the value encoded in an empty executable.
10979         cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985
10986 int
10987 main ()
10988 {
10989
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_link") 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } && {
11008          test -z "$ac_cxx_werror_flag" ||
11009          test ! -s conftest.err
11010        } && test -s conftest$ac_exeext &&
11011        $as_test_x conftest$ac_exeext; then
11012
11013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11014 }'`
11015 # Check for a 64-bit object if we didn't find anything.
11016 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; }
11017 }'`; fi
11018 else
11019   echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022
11023 fi
11024
11025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11026       conftest$ac_exeext conftest.$ac_ext
11027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11028
11029         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11030         # Warning - without using the other run time loading flags,
11031         # -berok will link without error, but may produce a broken library.
11032         no_undefined_flag_CXX=' ${wl}-bernotok'
11033         allow_undefined_flag_CXX=' ${wl}-berok'
11034         # Exported symbols can be pulled into shared objects from archives
11035         whole_archive_flag_spec_CXX='$convenience'
11036         archive_cmds_need_lc_CXX=yes
11037         # This is similar to how AIX traditionally builds its shared libraries.
11038         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'
11039       fi
11040     fi
11041     ;;
11042
11043   beos*)
11044     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11045       allow_undefined_flag_CXX=unsupported
11046       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11047       # support --undefined.  This deserves some investigation.  FIXME
11048       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11049     else
11050       ld_shlibs_CXX=no
11051     fi
11052     ;;
11053
11054   chorus*)
11055     case $cc_basename in
11056       *)
11057         # FIXME: insert proper C++ library support
11058         ld_shlibs_CXX=no
11059         ;;
11060     esac
11061     ;;
11062
11063   cygwin* | mingw* | pw32*)
11064     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11065     # as there is no search path for DLLs.
11066     hardcode_libdir_flag_spec_CXX='-L$libdir'
11067     allow_undefined_flag_CXX=unsupported
11068     always_export_symbols_CXX=no
11069     enable_shared_with_static_runtimes_CXX=yes
11070
11071     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11072       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'
11073       # If the export-symbols file already is a .def file (1st line
11074       # is EXPORTS), use it as is; otherwise, prepend...
11075       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11076         cp $export_symbols $output_objdir/$soname.def;
11077       else
11078         echo EXPORTS > $output_objdir/$soname.def;
11079         cat $export_symbols >> $output_objdir/$soname.def;
11080       fi~
11081       $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'
11082     else
11083       ld_shlibs_CXX=no
11084     fi
11085   ;;
11086       darwin* | rhapsody*)
11087         case $host_os in
11088         rhapsody* | darwin1.[012])
11089          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11090          ;;
11091        *) # Darwin 1.3 on
11092          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11093            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11094          else
11095            case ${MACOSX_DEPLOYMENT_TARGET} in
11096              10.[012])
11097                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11098                ;;
11099              10.*)
11100                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11101                ;;
11102            esac
11103          fi
11104          ;;
11105         esac
11106       archive_cmds_need_lc_CXX=no
11107       hardcode_direct_CXX=no
11108       hardcode_automatic_CXX=yes
11109       hardcode_shlibpath_var_CXX=unsupported
11110       whole_archive_flag_spec_CXX=''
11111       link_all_deplibs_CXX=yes
11112
11113     if test "$GXX" = yes ; then
11114       lt_int_apple_cc_single_mod=no
11115       output_verbose_link_cmd='echo'
11116       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11117        lt_int_apple_cc_single_mod=yes
11118       fi
11119       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11120        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11121       else
11122           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'
11123         fi
11124         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11125         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11126           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11127             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}'
11128           else
11129             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}'
11130           fi
11131             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}'
11132       else
11133       case $cc_basename in
11134         xlc*)
11135          output_verbose_link_cmd='echo'
11136           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'
11137           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11138           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11139           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}'
11140           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}'
11141           ;;
11142        *)
11143          ld_shlibs_CXX=no
11144           ;;
11145       esac
11146       fi
11147         ;;
11148
11149   dgux*)
11150     case $cc_basename in
11151       ec++*)
11152         # FIXME: insert proper C++ library support
11153         ld_shlibs_CXX=no
11154         ;;
11155       ghcx*)
11156         # Green Hills C++ Compiler
11157         # FIXME: insert proper C++ library support
11158         ld_shlibs_CXX=no
11159         ;;
11160       *)
11161         # FIXME: insert proper C++ library support
11162         ld_shlibs_CXX=no
11163         ;;
11164     esac
11165     ;;
11166   freebsd[12]*)
11167     # C++ shared libraries reported to be fairly broken before switch to ELF
11168     ld_shlibs_CXX=no
11169     ;;
11170   freebsd-elf*)
11171     archive_cmds_need_lc_CXX=no
11172     ;;
11173   freebsd* | dragonfly*)
11174     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11175     # conventions
11176     ld_shlibs_CXX=yes
11177     ;;
11178   gnu*)
11179     ;;
11180   hpux9*)
11181     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11182     hardcode_libdir_separator_CXX=:
11183     export_dynamic_flag_spec_CXX='${wl}-E'
11184     hardcode_direct_CXX=yes
11185     hardcode_minus_L_CXX=yes # Not in the search PATH,
11186                                 # but as the default
11187                                 # location of the library.
11188
11189     case $cc_basename in
11190     CC*)
11191       # FIXME: insert proper C++ library support
11192       ld_shlibs_CXX=no
11193       ;;
11194     aCC*)
11195       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'
11196       # Commands to make compiler produce verbose output that lists
11197       # what "hidden" libraries, object files and flags are used when
11198       # linking a shared library.
11199       #
11200       # There doesn't appear to be a way to prevent this compiler from
11201       # explicitly linking system object files so we need to strip them
11202       # from the output so that they don't get included in the library
11203       # dependencies.
11204       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'
11205       ;;
11206     *)
11207       if test "$GXX" = yes; then
11208         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'
11209       else
11210         # FIXME: insert proper C++ library support
11211         ld_shlibs_CXX=no
11212       fi
11213       ;;
11214     esac
11215     ;;
11216   hpux10*|hpux11*)
11217     if test $with_gnu_ld = no; then
11218       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11219       hardcode_libdir_separator_CXX=:
11220
11221       case $host_cpu in
11222       hppa*64*|ia64*)
11223         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11224         ;;
11225       *)
11226         export_dynamic_flag_spec_CXX='${wl}-E'
11227         ;;
11228       esac
11229     fi
11230     case $host_cpu in
11231     hppa*64*|ia64*)
11232       hardcode_direct_CXX=no
11233       hardcode_shlibpath_var_CXX=no
11234       ;;
11235     *)
11236       hardcode_direct_CXX=yes
11237       hardcode_minus_L_CXX=yes # Not in the search PATH,
11238                                               # but as the default
11239                                               # location of the library.
11240       ;;
11241     esac
11242
11243     case $cc_basename in
11244       CC*)
11245         # FIXME: insert proper C++ library support
11246         ld_shlibs_CXX=no
11247         ;;
11248       aCC*)
11249         case $host_cpu in
11250         hppa*64*)
11251           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11252           ;;
11253         ia64*)
11254           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11255           ;;
11256         *)
11257           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11258           ;;
11259         esac
11260         # Commands to make compiler produce verbose output that lists
11261         # what "hidden" libraries, object files and flags are used when
11262         # linking a shared library.
11263         #
11264         # There doesn't appear to be a way to prevent this compiler from
11265         # explicitly linking system object files so we need to strip them
11266         # from the output so that they don't get included in the library
11267         # dependencies.
11268         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'
11269         ;;
11270       *)
11271         if test "$GXX" = yes; then
11272           if test $with_gnu_ld = no; then
11273             case $host_cpu in
11274             hppa*64*)
11275               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11276               ;;
11277             ia64*)
11278               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11279               ;;
11280             *)
11281               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'
11282               ;;
11283             esac
11284           fi
11285         else
11286           # FIXME: insert proper C++ library support
11287           ld_shlibs_CXX=no
11288         fi
11289         ;;
11290     esac
11291     ;;
11292   interix3*)
11293     hardcode_direct_CXX=no
11294     hardcode_shlibpath_var_CXX=no
11295     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11296     export_dynamic_flag_spec_CXX='${wl}-E'
11297     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11298     # Instead, shared libraries are loaded at an image base (0x10000000 by
11299     # default) and relocated if they conflict, which is a slow very memory
11300     # consuming and fragmenting process.  To avoid this, we pick a random,
11301     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11302     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11303     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'
11304     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'
11305     ;;
11306   irix5* | irix6*)
11307     case $cc_basename in
11308       CC*)
11309         # SGI C++
11310         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'
11311
11312         # Archives containing C++ object files must be created using
11313         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11314         # necessary to make sure instantiated templates are included
11315         # in the archive.
11316         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11317         ;;
11318       *)
11319         if test "$GXX" = yes; then
11320           if test "$with_gnu_ld" = no; then
11321             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'
11322           else
11323             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'
11324           fi
11325         fi
11326         link_all_deplibs_CXX=yes
11327         ;;
11328     esac
11329     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11330     hardcode_libdir_separator_CXX=:
11331     ;;
11332   linux* | k*bsd*-gnu)
11333     case $cc_basename in
11334       KCC*)
11335         # Kuck and Associates, Inc. (KAI) C++ Compiler
11336
11337         # KCC will only create a shared library if the output file
11338         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11339         # to its proper name (with version) after linking.
11340         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'
11341         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'
11342         # Commands to make compiler produce verbose output that lists
11343         # what "hidden" libraries, object files and flags are used when
11344         # linking a shared library.
11345         #
11346         # There doesn't appear to be a way to prevent this compiler from
11347         # explicitly linking system object files so we need to strip them
11348         # from the output so that they don't get included in the library
11349         # dependencies.
11350         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'
11351
11352         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11353         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11354
11355         # Archives containing C++ object files must be created using
11356         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11357         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11358         ;;
11359       icpc*)
11360         # Intel C++
11361         with_gnu_ld=yes
11362         # version 8.0 and above of icpc choke on multiply defined symbols
11363         # if we add $predep_objects and $postdep_objects, however 7.1 and
11364         # earlier do not add the objects themselves.
11365         case `$CC -V 2>&1` in
11366         *"Version 7."*)
11367           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11368           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'
11369           ;;
11370         *)  # Version 8.0 or newer
11371           tmp_idyn=
11372           case $host_cpu in
11373             ia64*) tmp_idyn=' -i_dynamic';;
11374           esac
11375           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11376           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'
11377           ;;
11378         esac
11379         archive_cmds_need_lc_CXX=no
11380         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11381         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11382         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11383         ;;
11384       pgCC*)
11385         # Portland Group C++ compiler
11386         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11387         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'
11388
11389         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11390         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11391         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'
11392         ;;
11393       cxx*)
11394         # Compaq C++
11395         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396         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'
11397
11398         runpath_var=LD_RUN_PATH
11399         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11400         hardcode_libdir_separator_CXX=:
11401
11402         # Commands to make compiler produce verbose output that lists
11403         # what "hidden" libraries, object files and flags are used when
11404         # linking a shared library.
11405         #
11406         # There doesn't appear to be a way to prevent this compiler from
11407         # explicitly linking system object files so we need to strip them
11408         # from the output so that they don't get included in the library
11409         # dependencies.
11410         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'
11411         ;;
11412     esac
11413     ;;
11414   lynxos*)
11415     # FIXME: insert proper C++ library support
11416     ld_shlibs_CXX=no
11417     ;;
11418   m88k*)
11419     # FIXME: insert proper C++ library support
11420     ld_shlibs_CXX=no
11421     ;;
11422   mvs*)
11423     case $cc_basename in
11424       cxx*)
11425         # FIXME: insert proper C++ library support
11426         ld_shlibs_CXX=no
11427         ;;
11428       *)
11429         # FIXME: insert proper C++ library support
11430         ld_shlibs_CXX=no
11431         ;;
11432     esac
11433     ;;
11434   netbsd* | netbsdelf*-gnu)
11435     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11436       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11437       wlarc=
11438       hardcode_libdir_flag_spec_CXX='-R$libdir'
11439       hardcode_direct_CXX=yes
11440       hardcode_shlibpath_var_CXX=no
11441     fi
11442     # Workaround some broken pre-1.5 toolchains
11443     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11444     ;;
11445   openbsd2*)
11446     # C++ shared libraries are fairly broken
11447     ld_shlibs_CXX=no
11448     ;;
11449   openbsd*)
11450     hardcode_direct_CXX=yes
11451     hardcode_shlibpath_var_CXX=no
11452     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11453     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11454     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11455       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11456       export_dynamic_flag_spec_CXX='${wl}-E'
11457       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11458     fi
11459     output_verbose_link_cmd='echo'
11460     ;;
11461   osf3*)
11462     case $cc_basename in
11463       KCC*)
11464         # Kuck and Associates, Inc. (KAI) C++ Compiler
11465
11466         # KCC will only create a shared library if the output file
11467         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11468         # to its proper name (with version) after linking.
11469         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'
11470
11471         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11472         hardcode_libdir_separator_CXX=:
11473
11474         # Archives containing C++ object files must be created using
11475         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11476         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11477
11478         ;;
11479       RCC*)
11480         # Rational C++ 2.4.1
11481         # FIXME: insert proper C++ library support
11482         ld_shlibs_CXX=no
11483         ;;
11484       cxx*)
11485         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11486         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'
11487
11488         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11489         hardcode_libdir_separator_CXX=:
11490
11491         # Commands to make compiler produce verbose output that lists
11492         # what "hidden" libraries, object files and flags are used when
11493         # linking a shared library.
11494         #
11495         # There doesn't appear to be a way to prevent this compiler from
11496         # explicitly linking system object files so we need to strip them
11497         # from the output so that they don't get included in the library
11498         # dependencies.
11499         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'
11500         ;;
11501       *)
11502         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11503           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11504           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'
11505
11506           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11507           hardcode_libdir_separator_CXX=:
11508
11509           # Commands to make compiler produce verbose output that lists
11510           # what "hidden" libraries, object files and flags are used when
11511           # linking a shared library.
11512           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11513
11514         else
11515           # FIXME: insert proper C++ library support
11516           ld_shlibs_CXX=no
11517         fi
11518         ;;
11519     esac
11520     ;;
11521   osf4* | osf5*)
11522     case $cc_basename in
11523       KCC*)
11524         # Kuck and Associates, Inc. (KAI) C++ Compiler
11525
11526         # KCC will only create a shared library if the output file
11527         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11528         # to its proper name (with version) after linking.
11529         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'
11530
11531         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11532         hardcode_libdir_separator_CXX=:
11533
11534         # Archives containing C++ object files must be created using
11535         # the KAI C++ compiler.
11536         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11537         ;;
11538       RCC*)
11539         # Rational C++ 2.4.1
11540         # FIXME: insert proper C++ library support
11541         ld_shlibs_CXX=no
11542         ;;
11543       cxx*)
11544         allow_undefined_flag_CXX=' -expect_unresolved \*'
11545         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'
11546         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11547           echo "-hidden">> $lib.exp~
11548           $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~
11549           $rm $lib.exp'
11550
11551         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11552         hardcode_libdir_separator_CXX=:
11553
11554         # Commands to make compiler produce verbose output that lists
11555         # what "hidden" libraries, object files and flags are used when
11556         # linking a shared library.
11557         #
11558         # There doesn't appear to be a way to prevent this compiler from
11559         # explicitly linking system object files so we need to strip them
11560         # from the output so that they don't get included in the library
11561         # dependencies.
11562         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'
11563         ;;
11564       *)
11565         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11566           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11567          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'
11568
11569           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11570           hardcode_libdir_separator_CXX=:
11571
11572           # Commands to make compiler produce verbose output that lists
11573           # what "hidden" libraries, object files and flags are used when
11574           # linking a shared library.
11575           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11576
11577         else
11578           # FIXME: insert proper C++ library support
11579           ld_shlibs_CXX=no
11580         fi
11581         ;;
11582     esac
11583     ;;
11584   psos*)
11585     # FIXME: insert proper C++ library support
11586     ld_shlibs_CXX=no
11587     ;;
11588   sunos4*)
11589     case $cc_basename in
11590       CC*)
11591         # Sun C++ 4.x
11592         # FIXME: insert proper C++ library support
11593         ld_shlibs_CXX=no
11594         ;;
11595       lcc*)
11596         # Lucid
11597         # FIXME: insert proper C++ library support
11598         ld_shlibs_CXX=no
11599         ;;
11600       *)
11601         # FIXME: insert proper C++ library support
11602         ld_shlibs_CXX=no
11603         ;;
11604     esac
11605     ;;
11606   solaris*)
11607     case $cc_basename in
11608       CC*)
11609         # Sun C++ 4.2, 5.x and Centerline C++
11610         archive_cmds_need_lc_CXX=yes
11611         no_undefined_flag_CXX=' -zdefs'
11612         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11613         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11614         $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'
11615
11616         hardcode_libdir_flag_spec_CXX='-R$libdir'
11617         hardcode_shlibpath_var_CXX=no
11618         case $host_os in
11619           solaris2.[0-5] | solaris2.[0-5].*) ;;
11620           *)
11621             # The C++ compiler is used as linker so we must use $wl
11622             # flag to pass the commands to the underlying system
11623             # linker. We must also pass each convience library through
11624             # to the system linker between allextract/defaultextract.
11625             # The C++ compiler will combine linker options so we
11626             # cannot just pass the convience library names through
11627             # without $wl.
11628             # Supported since Solaris 2.6 (maybe 2.5.1?)
11629             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'
11630             ;;
11631         esac
11632         link_all_deplibs_CXX=yes
11633
11634         output_verbose_link_cmd='echo'
11635
11636         # Archives containing C++ object files must be created using
11637         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11638         # necessary to make sure instantiated templates are included
11639         # in the archive.
11640         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11641         ;;
11642       gcx*)
11643         # Green Hills C++ Compiler
11644         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11645
11646         # The C++ compiler must be used to create the archive.
11647         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11648         ;;
11649       *)
11650         # GNU C++ compiler with Solaris linker
11651         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11653           if $CC --version | grep -v '^2\.7' > /dev/null; then
11654             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11655             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11656                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11657
11658             # Commands to make compiler produce verbose output that lists
11659             # what "hidden" libraries, object files and flags are used when
11660             # linking a shared library.
11661             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11662           else
11663             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11664             # platform.
11665             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11666             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11667                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11668
11669             # Commands to make compiler produce verbose output that lists
11670             # what "hidden" libraries, object files and flags are used when
11671             # linking a shared library.
11672             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11673           fi
11674
11675           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11676         fi
11677         ;;
11678     esac
11679     ;;
11680   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11681     no_undefined_flag_CXX='${wl}-z,text'
11682     archive_cmds_need_lc_CXX=no
11683     hardcode_shlibpath_var_CXX=no
11684     runpath_var='LD_RUN_PATH'
11685
11686     case $cc_basename in
11687       CC*)
11688         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11689         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11690         ;;
11691       *)
11692         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11694         ;;
11695     esac
11696     ;;
11697   sysv5* | sco3.2v5* | sco5v6*)
11698     # Note: We can NOT use -z defs as we might desire, because we do not
11699     # link with -lc, and that would cause any symbols used from libc to
11700     # always be unresolved, which means just about no library would
11701     # ever link correctly.  If we're not using GNU ld we use -z text
11702     # though, which does catch some bad symbols but isn't as heavy-handed
11703     # as -z defs.
11704     # For security reasons, it is highly recommended that you always
11705     # use absolute paths for naming shared libraries, and exclude the
11706     # DT_RUNPATH tag from executables and libraries.  But doing so
11707     # requires that you compile everything twice, which is a pain.
11708     # So that behaviour is only enabled if SCOABSPATH is set to a
11709     # non-empty value in the environment.  Most likely only useful for
11710     # creating official distributions of packages.
11711     # This is a hack until libtool officially supports absolute path
11712     # names for shared libraries.
11713     no_undefined_flag_CXX='${wl}-z,text'
11714     allow_undefined_flag_CXX='${wl}-z,nodefs'
11715     archive_cmds_need_lc_CXX=no
11716     hardcode_shlibpath_var_CXX=no
11717     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11718     hardcode_libdir_separator_CXX=':'
11719     link_all_deplibs_CXX=yes
11720     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11721     runpath_var='LD_RUN_PATH'
11722
11723     case $cc_basename in
11724       CC*)
11725         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11726         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11727         ;;
11728       *)
11729         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11730         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11731         ;;
11732     esac
11733     ;;
11734   tandem*)
11735     case $cc_basename in
11736       NCC*)
11737         # NonStop-UX NCC 3.20
11738         # FIXME: insert proper C++ library support
11739         ld_shlibs_CXX=no
11740         ;;
11741       *)
11742         # FIXME: insert proper C++ library support
11743         ld_shlibs_CXX=no
11744         ;;
11745     esac
11746     ;;
11747   vxworks*)
11748     # FIXME: insert proper C++ library support
11749     ld_shlibs_CXX=no
11750     ;;
11751   *)
11752     # FIXME: insert proper C++ library support
11753     ld_shlibs_CXX=no
11754     ;;
11755 esac
11756 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11757 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11758 test "$ld_shlibs_CXX" = no && can_build_shared=no
11759
11760 GCC_CXX="$GXX"
11761 LD_CXX="$LD"
11762
11763
11764 cat > conftest.$ac_ext <<EOF
11765 class Foo
11766 {
11767 public:
11768   Foo (void) { a = 0; }
11769 private:
11770   int a;
11771 };
11772 EOF
11773
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775   (eval $ac_compile) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; then
11779   # Parse the compiler output and extract the necessary
11780   # objects, libraries and library flags.
11781
11782   # Sentinel used to keep track of whether or not we are before
11783   # the conftest object file.
11784   pre_test_object_deps_done=no
11785
11786   # The `*' in the case matches for architectures that use `case' in
11787   # $output_verbose_cmd can trigger glob expansion during the loop
11788   # eval without this substitution.
11789   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11790
11791   for p in `eval $output_verbose_link_cmd`; do
11792     case $p in
11793
11794     -L* | -R* | -l*)
11795        # Some compilers place space between "-{L,R}" and the path.
11796        # Remove the space.
11797        if test $p = "-L" \
11798           || test $p = "-R"; then
11799          prev=$p
11800          continue
11801        else
11802          prev=
11803        fi
11804
11805        if test "$pre_test_object_deps_done" = no; then
11806          case $p in
11807          -L* | -R*)
11808            # Internal compiler library paths should come after those
11809            # provided the user.  The postdeps already come after the
11810            # user supplied libs so there is no need to process them.
11811            if test -z "$compiler_lib_search_path_CXX"; then
11812              compiler_lib_search_path_CXX="${prev}${p}"
11813            else
11814              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11815            fi
11816            ;;
11817          # The "-l" case would never come before the object being
11818          # linked, so don't bother handling this case.
11819          esac
11820        else
11821          if test -z "$postdeps_CXX"; then
11822            postdeps_CXX="${prev}${p}"
11823          else
11824            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11825          fi
11826        fi
11827        ;;
11828
11829     *.$objext)
11830        # This assumes that the test object file only shows up
11831        # once in the compiler output.
11832        if test "$p" = "conftest.$objext"; then
11833          pre_test_object_deps_done=yes
11834          continue
11835        fi
11836
11837        if test "$pre_test_object_deps_done" = no; then
11838          if test -z "$predep_objects_CXX"; then
11839            predep_objects_CXX="$p"
11840          else
11841            predep_objects_CXX="$predep_objects_CXX $p"
11842          fi
11843        else
11844          if test -z "$postdep_objects_CXX"; then
11845            postdep_objects_CXX="$p"
11846          else
11847            postdep_objects_CXX="$postdep_objects_CXX $p"
11848          fi
11849        fi
11850        ;;
11851
11852     *) ;; # Ignore the rest.
11853
11854     esac
11855   done
11856
11857   # Clean up.
11858   rm -f a.out a.exe
11859 else
11860   echo "libtool.m4: error: problem compiling CXX test program"
11861 fi
11862
11863 $rm -f confest.$objext
11864
11865 # PORTME: override above test on systems where it is broken
11866 case $host_os in
11867 interix3*)
11868   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11869   # hack all around it, let's just trust "g++" to DTRT.
11870   predep_objects_CXX=
11871   postdep_objects_CXX=
11872   postdeps_CXX=
11873   ;;
11874
11875 solaris*)
11876   case $cc_basename in
11877   CC*)
11878     # Adding this requires a known-good setup of shared libraries for
11879     # Sun compiler versions before 5.6, else PIC objects from an old
11880     # archive will be linked into the output, leading to subtle bugs.
11881     postdeps_CXX='-lCstd -lCrun'
11882     ;;
11883   esac
11884   ;;
11885 esac
11886
11887
11888 case " $postdeps_CXX " in
11889 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11890 esac
11891
11892 lt_prog_compiler_wl_CXX=
11893 lt_prog_compiler_pic_CXX=
11894 lt_prog_compiler_static_CXX=
11895
11896 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11897 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11898
11899   # C++ specific cases for pic, static, wl, etc.
11900   if test "$GXX" = yes; then
11901     lt_prog_compiler_wl_CXX='-Wl,'
11902     lt_prog_compiler_static_CXX='-static'
11903
11904     case $host_os in
11905     aix*)
11906       # All AIX code is PIC.
11907       if test "$host_cpu" = ia64; then
11908         # AIX 5 now supports IA64 processor
11909         lt_prog_compiler_static_CXX='-Bstatic'
11910       fi
11911       ;;
11912     amigaos*)
11913       # FIXME: we need at least 68020 code to build shared libraries, but
11914       # adding the `-m68020' flag to GCC prevents building anything better,
11915       # like `-m68040'.
11916       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11917       ;;
11918     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11919       # PIC is the default for these OSes.
11920       ;;
11921     mingw* | os2* | pw32*)
11922       # This hack is so that the source file can tell whether it is being
11923       # built for inclusion in a dll (and should export symbols for example).
11924       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11925       ;;
11926     darwin* | rhapsody*)
11927       # PIC is the default on this platform
11928       # Common symbols not allowed in MH_DYLIB files
11929       lt_prog_compiler_pic_CXX='-fno-common'
11930       ;;
11931     *djgpp*)
11932       # DJGPP does not support shared libraries at all
11933       lt_prog_compiler_pic_CXX=
11934       ;;
11935     interix3*)
11936       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11937       # Instead, we relocate shared libraries at runtime.
11938       ;;
11939     sysv4*MP*)
11940       if test -d /usr/nec; then
11941         lt_prog_compiler_pic_CXX=-Kconform_pic
11942       fi
11943       ;;
11944     hpux*)
11945       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11946       # not for PA HP-UX.
11947       case $host_cpu in
11948       hppa*64*|ia64*)
11949         ;;
11950       *)
11951         lt_prog_compiler_pic_CXX='-fPIC'
11952         ;;
11953       esac
11954       ;;
11955     *)
11956       lt_prog_compiler_pic_CXX='-fPIC'
11957       ;;
11958     esac
11959   else
11960     case $host_os in
11961       aix4* | aix5*)
11962         # All AIX code is PIC.
11963         if test "$host_cpu" = ia64; then
11964           # AIX 5 now supports IA64 processor
11965           lt_prog_compiler_static_CXX='-Bstatic'
11966         else
11967           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11968         fi
11969         ;;
11970       chorus*)
11971         case $cc_basename in
11972         cxch68*)
11973           # Green Hills C++ Compiler
11974           # _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"
11975           ;;
11976         esac
11977         ;;
11978        darwin*)
11979          # PIC is the default on this platform
11980          # Common symbols not allowed in MH_DYLIB files
11981          case $cc_basename in
11982            xlc*)
11983            lt_prog_compiler_pic_CXX='-qnocommon'
11984            lt_prog_compiler_wl_CXX='-Wl,'
11985            ;;
11986          esac
11987        ;;
11988       dgux*)
11989         case $cc_basename in
11990           ec++*)
11991             lt_prog_compiler_pic_CXX='-KPIC'
11992             ;;
11993           ghcx*)
11994             # Green Hills C++ Compiler
11995             lt_prog_compiler_pic_CXX='-pic'
11996             ;;
11997           *)
11998             ;;
11999         esac
12000         ;;
12001       freebsd* | dragonfly*)
12002         # FreeBSD uses GNU C++
12003         ;;
12004       hpux9* | hpux10* | hpux11*)
12005         case $cc_basename in
12006           CC*)
12007             lt_prog_compiler_wl_CXX='-Wl,'
12008             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12009             if test "$host_cpu" != ia64; then
12010               lt_prog_compiler_pic_CXX='+Z'
12011             fi
12012             ;;
12013           aCC*)
12014             lt_prog_compiler_wl_CXX='-Wl,'
12015             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12016             case $host_cpu in
12017             hppa*64*|ia64*)
12018               # +Z the default
12019               ;;
12020             *)
12021               lt_prog_compiler_pic_CXX='+Z'
12022               ;;
12023             esac
12024             ;;
12025           *)
12026             ;;
12027         esac
12028         ;;
12029       interix*)
12030         # This is c89, which is MS Visual C++ (no shared libs)
12031         # Anyone wants to do a port?
12032         ;;
12033       irix5* | irix6* | nonstopux*)
12034         case $cc_basename in
12035           CC*)
12036             lt_prog_compiler_wl_CXX='-Wl,'
12037             lt_prog_compiler_static_CXX='-non_shared'
12038             # CC pic flag -KPIC is the default.
12039             ;;
12040           *)
12041             ;;
12042         esac
12043         ;;
12044       linux* | k*bsd*-gnu)
12045         case $cc_basename in
12046           KCC*)
12047             # KAI C++ Compiler
12048             lt_prog_compiler_wl_CXX='--backend -Wl,'
12049             lt_prog_compiler_pic_CXX='-fPIC'
12050             ;;
12051           icpc* | ecpc*)
12052             # Intel C++
12053             lt_prog_compiler_wl_CXX='-Wl,'
12054             lt_prog_compiler_pic_CXX='-KPIC'
12055             lt_prog_compiler_static_CXX='-static'
12056             ;;
12057           pgCC*)
12058             # Portland Group C++ compiler.
12059             lt_prog_compiler_wl_CXX='-Wl,'
12060             lt_prog_compiler_pic_CXX='-fpic'
12061             lt_prog_compiler_static_CXX='-Bstatic'
12062             ;;
12063           cxx*)
12064             # Compaq C++
12065             # Make sure the PIC flag is empty.  It appears that all Alpha
12066             # Linux and Compaq Tru64 Unix objects are PIC.
12067             lt_prog_compiler_pic_CXX=
12068             lt_prog_compiler_static_CXX='-non_shared'
12069             ;;
12070           *)
12071             ;;
12072         esac
12073         ;;
12074       lynxos*)
12075         ;;
12076       m88k*)
12077         ;;
12078       mvs*)
12079         case $cc_basename in
12080           cxx*)
12081             lt_prog_compiler_pic_CXX='-W c,exportall'
12082             ;;
12083           *)
12084             ;;
12085         esac
12086         ;;
12087       netbsd* | netbsdelf*-gnu)
12088         ;;
12089       osf3* | osf4* | osf5*)
12090         case $cc_basename in
12091           KCC*)
12092             lt_prog_compiler_wl_CXX='--backend -Wl,'
12093             ;;
12094           RCC*)
12095             # Rational C++ 2.4.1
12096             lt_prog_compiler_pic_CXX='-pic'
12097             ;;
12098           cxx*)
12099             # Digital/Compaq C++
12100             lt_prog_compiler_wl_CXX='-Wl,'
12101             # Make sure the PIC flag is empty.  It appears that all Alpha
12102             # Linux and Compaq Tru64 Unix objects are PIC.
12103             lt_prog_compiler_pic_CXX=
12104             lt_prog_compiler_static_CXX='-non_shared'
12105             ;;
12106           *)
12107             ;;
12108         esac
12109         ;;
12110       psos*)
12111         ;;
12112       solaris*)
12113         case $cc_basename in
12114           CC*)
12115             # Sun C++ 4.2, 5.x and Centerline C++
12116             lt_prog_compiler_pic_CXX='-KPIC'
12117             lt_prog_compiler_static_CXX='-Bstatic'
12118             lt_prog_compiler_wl_CXX='-Qoption ld '
12119             ;;
12120           gcx*)
12121             # Green Hills C++ Compiler
12122             lt_prog_compiler_pic_CXX='-PIC'
12123             ;;
12124           *)
12125             ;;
12126         esac
12127         ;;
12128       sunos4*)
12129         case $cc_basename in
12130           CC*)
12131             # Sun C++ 4.x
12132             lt_prog_compiler_pic_CXX='-pic'
12133             lt_prog_compiler_static_CXX='-Bstatic'
12134             ;;
12135           lcc*)
12136             # Lucid
12137             lt_prog_compiler_pic_CXX='-pic'
12138             ;;
12139           *)
12140             ;;
12141         esac
12142         ;;
12143       tandem*)
12144         case $cc_basename in
12145           NCC*)
12146             # NonStop-UX NCC 3.20
12147             lt_prog_compiler_pic_CXX='-KPIC'
12148             ;;
12149           *)
12150             ;;
12151         esac
12152         ;;
12153       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12154         case $cc_basename in
12155           CC*)
12156             lt_prog_compiler_wl_CXX='-Wl,'
12157             lt_prog_compiler_pic_CXX='-KPIC'
12158             lt_prog_compiler_static_CXX='-Bstatic'
12159             ;;
12160         esac
12161         ;;
12162       vxworks*)
12163         ;;
12164       *)
12165         lt_prog_compiler_can_build_shared_CXX=no
12166         ;;
12167     esac
12168   fi
12169
12170 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12171 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12172
12173 #
12174 # Check to make sure the PIC flag actually works.
12175 #
12176 if test -n "$lt_prog_compiler_pic_CXX"; then
12177
12178 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12179 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12180 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183   lt_prog_compiler_pic_works_CXX=no
12184   ac_outfile=conftest.$ac_objext
12185    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12186    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12187    # Insert the option either (1) after the last *FLAGS variable, or
12188    # (2) before a word containing "conftest.", or (3) at the end.
12189    # Note that $ac_compile itself does not contain backslashes and begins
12190    # with a dollar sign (not a hyphen), so the echo should work correctly.
12191    # The option is referenced via a variable to avoid confusing sed.
12192    lt_compile=`echo "$ac_compile" | $SED \
12193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12195    -e 's:$: $lt_compiler_flag:'`
12196    (eval echo "\"\$as_me:12196: $lt_compile\"" >&5)
12197    (eval "$lt_compile" 2>conftest.err)
12198    ac_status=$?
12199    cat conftest.err >&5
12200    echo "$as_me:12200: \$? = $ac_status" >&5
12201    if (exit $ac_status) && test -s "$ac_outfile"; then
12202      # The compiler can only warn and ignore the option if not recognized
12203      # So say no if there are warnings other than the usual output.
12204      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12205      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12206      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12207        lt_prog_compiler_pic_works_CXX=yes
12208      fi
12209    fi
12210    $rm conftest*
12211
12212 fi
12213 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12214 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12215
12216 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12217     case $lt_prog_compiler_pic_CXX in
12218      "" | " "*) ;;
12219      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12220      esac
12221 else
12222     lt_prog_compiler_pic_CXX=
12223      lt_prog_compiler_can_build_shared_CXX=no
12224 fi
12225
12226 fi
12227 case $host_os in
12228   # For platforms which do not support PIC, -DPIC is meaningless:
12229   *djgpp*)
12230     lt_prog_compiler_pic_CXX=
12231     ;;
12232   *)
12233     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12234     ;;
12235 esac
12236
12237 #
12238 # Check to make sure the static flag actually works.
12239 #
12240 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12241 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12242 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12243 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   lt_prog_compiler_static_works_CXX=no
12247    save_LDFLAGS="$LDFLAGS"
12248    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12249    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12250    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12251      # The linker can only warn and ignore the option if not recognized
12252      # So say no if there are warnings
12253      if test -s conftest.err; then
12254        # Append any errors to the config.log.
12255        cat conftest.err 1>&5
12256        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12257        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12258        if diff conftest.exp conftest.er2 >/dev/null; then
12259          lt_prog_compiler_static_works_CXX=yes
12260        fi
12261      else
12262        lt_prog_compiler_static_works_CXX=yes
12263      fi
12264    fi
12265    $rm conftest*
12266    LDFLAGS="$save_LDFLAGS"
12267
12268 fi
12269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12270 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12271
12272 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12273     :
12274 else
12275     lt_prog_compiler_static_CXX=
12276 fi
12277
12278
12279 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12280 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12281 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   lt_cv_prog_compiler_c_o_CXX=no
12285    $rm -r conftest 2>/dev/null
12286    mkdir conftest
12287    cd conftest
12288    mkdir out
12289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290
12291    lt_compiler_flag="-o out/conftest2.$ac_objext"
12292    # Insert the option either (1) after the last *FLAGS variable, or
12293    # (2) before a word containing "conftest.", or (3) at the end.
12294    # Note that $ac_compile itself does not contain backslashes and begins
12295    # with a dollar sign (not a hyphen), so the echo should work correctly.
12296    lt_compile=`echo "$ac_compile" | $SED \
12297    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299    -e 's:$: $lt_compiler_flag:'`
12300    (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
12301    (eval "$lt_compile" 2>out/conftest.err)
12302    ac_status=$?
12303    cat out/conftest.err >&5
12304    echo "$as_me:12304: \$? = $ac_status" >&5
12305    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12306    then
12307      # The compiler can only warn and ignore the option if not recognized
12308      # So say no if there are warnings
12309      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12310      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12311      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12312        lt_cv_prog_compiler_c_o_CXX=yes
12313      fi
12314    fi
12315    chmod u+w . 2>&5
12316    $rm conftest*
12317    # SGI C++ compiler will create directory out/ii_files/ for
12318    # template instantiation
12319    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12320    $rm out/* && rmdir out
12321    cd ..
12322    rmdir conftest
12323    $rm conftest*
12324
12325 fi
12326 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12328
12329
12330 hard_links="nottested"
12331 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12332   # do not overwrite the value of need_locks provided by the user
12333   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12335   hard_links=yes
12336   $rm conftest*
12337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12338   touch conftest.a
12339   ln conftest.a conftest.b 2>&5 || hard_links=no
12340   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12341   { echo "$as_me:$LINENO: result: $hard_links" >&5
12342 echo "${ECHO_T}$hard_links" >&6; }
12343   if test "$hard_links" = no; then
12344     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12346     need_locks=warn
12347   fi
12348 else
12349   need_locks=no
12350 fi
12351
12352 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12354
12355   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12356   case $host_os in
12357   aix4* | aix5*)
12358     # If we're using GNU nm, then we don't want the "-C" option.
12359     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12360     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12361       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'
12362     else
12363       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'
12364     fi
12365     ;;
12366   pw32*)
12367     export_symbols_cmds_CXX="$ltdll_cmds"
12368   ;;
12369   cygwin* | mingw*)
12370     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'
12371   ;;
12372   linux* | k*bsd*-gnu)
12373     link_all_deplibs_CXX=no
12374   ;;
12375   *)
12376     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12377   ;;
12378   esac
12379
12380 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12381 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12382 test "$ld_shlibs_CXX" = no && can_build_shared=no
12383
12384 #
12385 # Do we need to explicitly link libc?
12386 #
12387 case "x$archive_cmds_need_lc_CXX" in
12388 x|xyes)
12389   # Assume -lc should be added
12390   archive_cmds_need_lc_CXX=yes
12391
12392   if test "$enable_shared" = yes && test "$GCC" = yes; then
12393     case $archive_cmds_CXX in
12394     *'~'*)
12395       # FIXME: we may have to deal with multi-command sequences.
12396       ;;
12397     '$CC '*)
12398       # Test whether the compiler implicitly links with -lc since on some
12399       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12400       # to ld, don't add -lc before -lgcc.
12401       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12402 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12403       $rm conftest*
12404       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12405
12406       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407   (eval $ac_compile) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } 2>conftest.err; then
12411         soname=conftest
12412         lib=conftest
12413         libobjs=conftest.$ac_objext
12414         deplibs=
12415         wl=$lt_prog_compiler_wl_CXX
12416         pic_flag=$lt_prog_compiler_pic_CXX
12417         compiler_flags=-v
12418         linker_flags=-v
12419         verstring=
12420         output_objdir=.
12421         libname=conftest
12422         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12423         allow_undefined_flag_CXX=
12424         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12425   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }
12429         then
12430           archive_cmds_need_lc_CXX=no
12431         else
12432           archive_cmds_need_lc_CXX=yes
12433         fi
12434         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12435       else
12436         cat conftest.err 1>&5
12437       fi
12438       $rm conftest*
12439       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12440 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12441       ;;
12442     esac
12443   fi
12444   ;;
12445 esac
12446
12447 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12448 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12449 library_names_spec=
12450 libname_spec='lib$name'
12451 soname_spec=
12452 shrext_cmds=".so"
12453 postinstall_cmds=
12454 postuninstall_cmds=
12455 finish_cmds=
12456 finish_eval=
12457 shlibpath_var=
12458 shlibpath_overrides_runpath=unknown
12459 version_type=none
12460 dynamic_linker="$host_os ld.so"
12461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12462 if test "$GCC" = yes; then
12463   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12464   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12465     # if the path contains ";" then we assume it to be the separator
12466     # otherwise default to the standard path separator (i.e. ":") - it is
12467     # assumed that no part of a normal pathname contains ";" but that should
12468     # okay in the real world where ";" in dirpaths is itself problematic.
12469     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12470   else
12471     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12472   fi
12473 else
12474   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12475 fi
12476 need_lib_prefix=unknown
12477 hardcode_into_libs=no
12478
12479 # when you set need_version to no, make sure it does not cause -set_version
12480 # flags to be left without arguments
12481 need_version=unknown
12482
12483 case $host_os in
12484 aix3*)
12485   version_type=linux
12486   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12487   shlibpath_var=LIBPATH
12488
12489   # AIX 3 has no versioning support, so we append a major version to the name.
12490   soname_spec='${libname}${release}${shared_ext}$major'
12491   ;;
12492
12493 aix4* | aix5*)
12494   version_type=linux
12495   need_lib_prefix=no
12496   need_version=no
12497   hardcode_into_libs=yes
12498   if test "$host_cpu" = ia64; then
12499     # AIX 5 supports IA64
12500     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12501     shlibpath_var=LD_LIBRARY_PATH
12502   else
12503     # With GCC up to 2.95.x, collect2 would create an import file
12504     # for dependence libraries.  The import file would start with
12505     # the line `#! .'.  This would cause the generated library to
12506     # depend on `.', always an invalid library.  This was fixed in
12507     # development snapshots of GCC prior to 3.0.
12508     case $host_os in
12509       aix4 | aix4.[01] | aix4.[01].*)
12510       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12511            echo ' yes '
12512            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12513         :
12514       else
12515         can_build_shared=no
12516       fi
12517       ;;
12518     esac
12519     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12520     # soname into executable. Probably we can add versioning support to
12521     # collect2, so additional links can be useful in future.
12522     if test "$aix_use_runtimelinking" = yes; then
12523       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12524       # instead of lib<name>.a to let people know that these are not
12525       # typical AIX shared libraries.
12526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527     else
12528       # We preserve .a as extension for shared libraries through AIX4.2
12529       # and later when we are not doing run time linking.
12530       library_names_spec='${libname}${release}.a $libname.a'
12531       soname_spec='${libname}${release}${shared_ext}$major'
12532     fi
12533     shlibpath_var=LIBPATH
12534   fi
12535   ;;
12536
12537 amigaos*)
12538   library_names_spec='$libname.ixlibrary $libname.a'
12539   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12540   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'
12541   ;;
12542
12543 beos*)
12544   library_names_spec='${libname}${shared_ext}'
12545   dynamic_linker="$host_os ld.so"
12546   shlibpath_var=LIBRARY_PATH
12547   ;;
12548
12549 bsdi[45]*)
12550   version_type=linux
12551   need_version=no
12552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553   soname_spec='${libname}${release}${shared_ext}$major'
12554   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12555   shlibpath_var=LD_LIBRARY_PATH
12556   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12557   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12558   # the default ld.so.conf also contains /usr/contrib/lib and
12559   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12560   # libtool to hard-code these into programs
12561   ;;
12562
12563 cygwin* | mingw* | pw32*)
12564   version_type=windows
12565   shrext_cmds=".dll"
12566   need_version=no
12567   need_lib_prefix=no
12568
12569   case $GCC,$host_os in
12570   yes,cygwin* | yes,mingw* | yes,pw32*)
12571     library_names_spec='$libname.dll.a'
12572     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12573     postinstall_cmds='base_file=`basename \${file}`~
12574       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12575       dldir=$destdir/`dirname \$dlpath`~
12576       test -d \$dldir || mkdir -p \$dldir~
12577       $install_prog $dir/$dlname \$dldir/$dlname~
12578       chmod a+x \$dldir/$dlname'
12579     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12580       dlpath=$dir/\$dldll~
12581        $rm \$dlpath'
12582     shlibpath_overrides_runpath=yes
12583
12584     case $host_os in
12585     cygwin*)
12586       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12587       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12588       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12589       ;;
12590     mingw*)
12591       # MinGW DLLs use traditional 'lib' prefix
12592       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12593       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12594       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12595         # It is most probably a Windows format PATH printed by
12596         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12597         # path with ; separators, and with drive letters. We can handle the
12598         # drive letters (cygwin fileutils understands them), so leave them,
12599         # especially as we might pass files found there to a mingw objdump,
12600         # which wouldn't understand a cygwinified path. Ahh.
12601         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12602       else
12603         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12604       fi
12605       ;;
12606     pw32*)
12607       # pw32 DLLs use 'pw' prefix rather than 'lib'
12608       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12609       ;;
12610     esac
12611     ;;
12612
12613   *)
12614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12615     ;;
12616   esac
12617   dynamic_linker='Win32 ld.exe'
12618   # FIXME: first we should search . and the directory the executable is in
12619   shlibpath_var=PATH
12620   ;;
12621
12622 darwin* | rhapsody*)
12623   dynamic_linker="$host_os dyld"
12624   version_type=darwin
12625   need_lib_prefix=no
12626   need_version=no
12627   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12628   soname_spec='${libname}${release}${major}$shared_ext'
12629   shlibpath_overrides_runpath=yes
12630   shlibpath_var=DYLD_LIBRARY_PATH
12631   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12632   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12633   if test "$GCC" = yes; then
12634     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"`
12635   else
12636     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12637   fi
12638   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12639   ;;
12640
12641 dgux*)
12642   version_type=linux
12643   need_lib_prefix=no
12644   need_version=no
12645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12646   soname_spec='${libname}${release}${shared_ext}$major'
12647   shlibpath_var=LD_LIBRARY_PATH
12648   ;;
12649
12650 freebsd1*)
12651   dynamic_linker=no
12652   ;;
12653
12654 freebsd* | dragonfly*)
12655   # DragonFly does not have aout.  When/if they implement a new
12656   # versioning mechanism, adjust this.
12657   if test -x /usr/bin/objformat; then
12658     objformat=`/usr/bin/objformat`
12659   else
12660     case $host_os in
12661     freebsd[123]*) objformat=aout ;;
12662     *) objformat=elf ;;
12663     esac
12664   fi
12665   version_type=freebsd-$objformat
12666   case $version_type in
12667     freebsd-elf*)
12668       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12669       need_version=no
12670       need_lib_prefix=no
12671       ;;
12672     freebsd-*)
12673       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12674       need_version=yes
12675       ;;
12676   esac
12677   shlibpath_var=LD_LIBRARY_PATH
12678   case $host_os in
12679   freebsd2*)
12680     shlibpath_overrides_runpath=yes
12681     ;;
12682   freebsd3.[01]* | freebsdelf3.[01]*)
12683     shlibpath_overrides_runpath=yes
12684     hardcode_into_libs=yes
12685     ;;
12686   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12687   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12688     shlibpath_overrides_runpath=no
12689     hardcode_into_libs=yes
12690     ;;
12691   freebsd*) # from 4.6 on
12692     shlibpath_overrides_runpath=yes
12693     hardcode_into_libs=yes
12694     ;;
12695   esac
12696   ;;
12697
12698 gnu*)
12699   version_type=linux
12700   need_lib_prefix=no
12701   need_version=no
12702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12703   soname_spec='${libname}${release}${shared_ext}$major'
12704   shlibpath_var=LD_LIBRARY_PATH
12705   hardcode_into_libs=yes
12706   ;;
12707
12708 hpux9* | hpux10* | hpux11*)
12709   # Give a soname corresponding to the major version so that dld.sl refuses to
12710   # link against other versions.
12711   version_type=sunos
12712   need_lib_prefix=no
12713   need_version=no
12714   case $host_cpu in
12715   ia64*)
12716     shrext_cmds='.so'
12717     hardcode_into_libs=yes
12718     dynamic_linker="$host_os dld.so"
12719     shlibpath_var=LD_LIBRARY_PATH
12720     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722     soname_spec='${libname}${release}${shared_ext}$major'
12723     if test "X$HPUX_IA64_MODE" = X32; then
12724       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12725     else
12726       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12727     fi
12728     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12729     ;;
12730    hppa*64*)
12731      shrext_cmds='.sl'
12732      hardcode_into_libs=yes
12733      dynamic_linker="$host_os dld.sl"
12734      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12735      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737      soname_spec='${libname}${release}${shared_ext}$major'
12738      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12739      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12740      ;;
12741    *)
12742     shrext_cmds='.sl'
12743     dynamic_linker="$host_os dld.sl"
12744     shlibpath_var=SHLIB_PATH
12745     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747     soname_spec='${libname}${release}${shared_ext}$major'
12748     ;;
12749   esac
12750   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12751   postinstall_cmds='chmod 555 $lib'
12752   ;;
12753
12754 interix3*)
12755   version_type=linux
12756   need_lib_prefix=no
12757   need_version=no
12758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12759   soname_spec='${libname}${release}${shared_ext}$major'
12760   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12761   shlibpath_var=LD_LIBRARY_PATH
12762   shlibpath_overrides_runpath=no
12763   hardcode_into_libs=yes
12764   ;;
12765
12766 irix5* | irix6* | nonstopux*)
12767   case $host_os in
12768     nonstopux*) version_type=nonstopux ;;
12769     *)
12770         if test "$lt_cv_prog_gnu_ld" = yes; then
12771                 version_type=linux
12772         else
12773                 version_type=irix
12774         fi ;;
12775   esac
12776   need_lib_prefix=no
12777   need_version=no
12778   soname_spec='${libname}${release}${shared_ext}$major'
12779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12780   case $host_os in
12781   irix5* | nonstopux*)
12782     libsuff= shlibsuff=
12783     ;;
12784   *)
12785     case $LD in # libtool.m4 will add one of these switches to LD
12786     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12787       libsuff= shlibsuff= libmagic=32-bit;;
12788     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12789       libsuff=32 shlibsuff=N32 libmagic=N32;;
12790     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12791       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12792     *) libsuff= shlibsuff= libmagic=never-match;;
12793     esac
12794     ;;
12795   esac
12796   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12797   shlibpath_overrides_runpath=no
12798   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12799   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12800   hardcode_into_libs=yes
12801   ;;
12802
12803 # No shared lib support for Linux oldld, aout, or coff.
12804 linux*oldld* | linux*aout* | linux*coff*)
12805   dynamic_linker=no
12806   ;;
12807
12808 # This must be Linux ELF.
12809 linux* | k*bsd*-gnu)
12810   version_type=linux
12811   need_lib_prefix=no
12812   need_version=no
12813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814   soname_spec='${libname}${release}${shared_ext}$major'
12815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12816   shlibpath_var=LD_LIBRARY_PATH
12817   shlibpath_overrides_runpath=no
12818   # This implies no fast_install, which is unacceptable.
12819   # Some rework will be needed to allow for fast_install
12820   # before this can be enabled.
12821   hardcode_into_libs=yes
12822
12823   # Append ld.so.conf contents to the search path
12824   if test -f /etc/ld.so.conf; then
12825     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12826     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12827   fi
12828
12829   # We used to test for /lib/ld.so.1 and disable shared libraries on
12830   # powerpc, because MkLinux only supported shared libraries with the
12831   # GNU dynamic linker.  Since this was broken with cross compilers,
12832   # most powerpc-linux boxes support dynamic linking these days and
12833   # people can always --disable-shared, the test was removed, and we
12834   # assume the GNU/Linux dynamic linker is in use.
12835   dynamic_linker='GNU/Linux ld.so'
12836   ;;
12837
12838 netbsdelf*-gnu)
12839   version_type=linux
12840   need_lib_prefix=no
12841   need_version=no
12842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12843   soname_spec='${libname}${release}${shared_ext}$major'
12844   shlibpath_var=LD_LIBRARY_PATH
12845   shlibpath_overrides_runpath=no
12846   hardcode_into_libs=yes
12847   dynamic_linker='NetBSD ld.elf_so'
12848   ;;
12849
12850 netbsd*)
12851   version_type=sunos
12852   need_lib_prefix=no
12853   need_version=no
12854   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12856     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12857     dynamic_linker='NetBSD (a.out) ld.so'
12858   else
12859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12860     soname_spec='${libname}${release}${shared_ext}$major'
12861     dynamic_linker='NetBSD ld.elf_so'
12862   fi
12863   shlibpath_var=LD_LIBRARY_PATH
12864   shlibpath_overrides_runpath=yes
12865   hardcode_into_libs=yes
12866   ;;
12867
12868 newsos6)
12869   version_type=linux
12870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871   shlibpath_var=LD_LIBRARY_PATH
12872   shlibpath_overrides_runpath=yes
12873   ;;
12874
12875 nto-qnx*)
12876   version_type=linux
12877   need_lib_prefix=no
12878   need_version=no
12879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880   soname_spec='${libname}${release}${shared_ext}$major'
12881   shlibpath_var=LD_LIBRARY_PATH
12882   shlibpath_overrides_runpath=yes
12883   ;;
12884
12885 openbsd*)
12886   version_type=sunos
12887   sys_lib_dlsearch_path_spec="/usr/lib"
12888   need_lib_prefix=no
12889   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12890   case $host_os in
12891     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12892     *)                         need_version=no  ;;
12893   esac
12894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12895   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12896   shlibpath_var=LD_LIBRARY_PATH
12897   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12898     case $host_os in
12899       openbsd2.[89] | openbsd2.[89].*)
12900         shlibpath_overrides_runpath=no
12901         ;;
12902       *)
12903         shlibpath_overrides_runpath=yes
12904         ;;
12905       esac
12906   else
12907     shlibpath_overrides_runpath=yes
12908   fi
12909   ;;
12910
12911 os2*)
12912   libname_spec='$name'
12913   shrext_cmds=".dll"
12914   need_lib_prefix=no
12915   library_names_spec='$libname${shared_ext} $libname.a'
12916   dynamic_linker='OS/2 ld.exe'
12917   shlibpath_var=LIBPATH
12918   ;;
12919
12920 osf3* | osf4* | osf5*)
12921   version_type=osf
12922   need_lib_prefix=no
12923   need_version=no
12924   soname_spec='${libname}${release}${shared_ext}$major'
12925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926   shlibpath_var=LD_LIBRARY_PATH
12927   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12928   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12929   ;;
12930
12931 solaris*)
12932   version_type=linux
12933   need_lib_prefix=no
12934   need_version=no
12935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936   soname_spec='${libname}${release}${shared_ext}$major'
12937   shlibpath_var=LD_LIBRARY_PATH
12938   shlibpath_overrides_runpath=yes
12939   hardcode_into_libs=yes
12940   # ldd complains unless libraries are executable
12941   postinstall_cmds='chmod +x $lib'
12942   ;;
12943
12944 sunos4*)
12945   version_type=sunos
12946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12948   shlibpath_var=LD_LIBRARY_PATH
12949   shlibpath_overrides_runpath=yes
12950   if test "$with_gnu_ld" = yes; then
12951     need_lib_prefix=no
12952   fi
12953   need_version=yes
12954   ;;
12955
12956 sysv4 | sysv4.3*)
12957   version_type=linux
12958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12959   soname_spec='${libname}${release}${shared_ext}$major'
12960   shlibpath_var=LD_LIBRARY_PATH
12961   case $host_vendor in
12962     sni)
12963       shlibpath_overrides_runpath=no
12964       need_lib_prefix=no
12965       export_dynamic_flag_spec='${wl}-Blargedynsym'
12966       runpath_var=LD_RUN_PATH
12967       ;;
12968     siemens)
12969       need_lib_prefix=no
12970       ;;
12971     motorola)
12972       need_lib_prefix=no
12973       need_version=no
12974       shlibpath_overrides_runpath=no
12975       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12976       ;;
12977   esac
12978   ;;
12979
12980 sysv4*MP*)
12981   if test -d /usr/nec ;then
12982     version_type=linux
12983     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12984     soname_spec='$libname${shared_ext}.$major'
12985     shlibpath_var=LD_LIBRARY_PATH
12986   fi
12987   ;;
12988
12989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12990   version_type=freebsd-elf
12991   need_lib_prefix=no
12992   need_version=no
12993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12994   soname_spec='${libname}${release}${shared_ext}$major'
12995   shlibpath_var=LD_LIBRARY_PATH
12996   hardcode_into_libs=yes
12997   if test "$with_gnu_ld" = yes; then
12998     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12999     shlibpath_overrides_runpath=no
13000   else
13001     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13002     shlibpath_overrides_runpath=yes
13003     case $host_os in
13004       sco3.2v5*)
13005         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13006         ;;
13007     esac
13008   fi
13009   sys_lib_dlsearch_path_spec='/usr/lib'
13010   ;;
13011
13012 uts4*)
13013   version_type=linux
13014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015   soname_spec='${libname}${release}${shared_ext}$major'
13016   shlibpath_var=LD_LIBRARY_PATH
13017   ;;
13018
13019 *)
13020   dynamic_linker=no
13021   ;;
13022 esac
13023 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13024 echo "${ECHO_T}$dynamic_linker" >&6; }
13025 test "$dynamic_linker" = no && can_build_shared=no
13026
13027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13028 if test "$GCC" = yes; then
13029   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13030 fi
13031
13032 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13033 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13034 hardcode_action_CXX=
13035 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13036    test -n "$runpath_var_CXX" || \
13037    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13038
13039   # We can hardcode non-existant directories.
13040   if test "$hardcode_direct_CXX" != no &&
13041      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13042      # have to relink, otherwise we might link with an installed library
13043      # when we should be linking with a yet-to-be-installed one
13044      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13045      test "$hardcode_minus_L_CXX" != no; then
13046     # Linking always hardcodes the temporary library directory.
13047     hardcode_action_CXX=relink
13048   else
13049     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13050     hardcode_action_CXX=immediate
13051   fi
13052 else
13053   # We cannot hardcode anything, or else we can only hardcode existing
13054   # directories.
13055   hardcode_action_CXX=unsupported
13056 fi
13057 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13058 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13059
13060 if test "$hardcode_action_CXX" = relink; then
13061   # Fast installation is not supported
13062   enable_fast_install=no
13063 elif test "$shlibpath_overrides_runpath" = yes ||
13064      test "$enable_shared" = no; then
13065   # Fast installation is not necessary
13066   enable_fast_install=needless
13067 fi
13068
13069
13070 # The else clause should only fire when bootstrapping the
13071 # libtool distribution, otherwise you forgot to ship ltmain.sh
13072 # with your package, and you will get complaints that there are
13073 # no rules to generate ltmain.sh.
13074 if test -f "$ltmain"; then
13075   # See if we are running on zsh, and set the options which allow our commands through
13076   # without removal of \ escapes.
13077   if test -n "${ZSH_VERSION+set}" ; then
13078     setopt NO_GLOB_SUBST
13079   fi
13080   # Now quote all the things that may contain metacharacters while being
13081   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13082   # variables and quote the copies for generation of the libtool script.
13083   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13084     SED SHELL STRIP \
13085     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13086     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13087     deplibs_check_method reload_flag reload_cmds need_locks \
13088     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13089     lt_cv_sys_global_symbol_to_c_name_address \
13090     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13091     old_postinstall_cmds old_postuninstall_cmds \
13092     compiler_CXX \
13093     CC_CXX \
13094     LD_CXX \
13095     lt_prog_compiler_wl_CXX \
13096     lt_prog_compiler_pic_CXX \
13097     lt_prog_compiler_static_CXX \
13098     lt_prog_compiler_no_builtin_flag_CXX \
13099     export_dynamic_flag_spec_CXX \
13100     thread_safe_flag_spec_CXX \
13101     whole_archive_flag_spec_CXX \
13102     enable_shared_with_static_runtimes_CXX \
13103     old_archive_cmds_CXX \
13104     old_archive_from_new_cmds_CXX \
13105     predep_objects_CXX \
13106     postdep_objects_CXX \
13107     predeps_CXX \
13108     postdeps_CXX \
13109     compiler_lib_search_path_CXX \
13110     archive_cmds_CXX \
13111     archive_expsym_cmds_CXX \
13112     postinstall_cmds_CXX \
13113     postuninstall_cmds_CXX \
13114     old_archive_from_expsyms_cmds_CXX \
13115     allow_undefined_flag_CXX \
13116     no_undefined_flag_CXX \
13117     export_symbols_cmds_CXX \
13118     hardcode_libdir_flag_spec_CXX \
13119     hardcode_libdir_flag_spec_ld_CXX \
13120     hardcode_libdir_separator_CXX \
13121     hardcode_automatic_CXX \
13122     module_cmds_CXX \
13123     module_expsym_cmds_CXX \
13124     lt_cv_prog_compiler_c_o_CXX \
13125     exclude_expsyms_CXX \
13126     include_expsyms_CXX; do
13127
13128     case $var in
13129     old_archive_cmds_CXX | \
13130     old_archive_from_new_cmds_CXX | \
13131     archive_cmds_CXX | \
13132     archive_expsym_cmds_CXX | \
13133     module_cmds_CXX | \
13134     module_expsym_cmds_CXX | \
13135     old_archive_from_expsyms_cmds_CXX | \
13136     export_symbols_cmds_CXX | \
13137     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13138     postinstall_cmds | postuninstall_cmds | \
13139     old_postinstall_cmds | old_postuninstall_cmds | \
13140     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13141       # Double-quote double-evaled strings.
13142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13143       ;;
13144     *)
13145       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13146       ;;
13147     esac
13148   done
13149
13150   case $lt_echo in
13151   *'\$0 --fallback-echo"')
13152     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13153     ;;
13154   esac
13155
13156 cfgfile="$ofile"
13157
13158   cat <<__EOF__ >> "$cfgfile"
13159 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13160
13161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13162
13163 # Shell to use when invoking shell scripts.
13164 SHELL=$lt_SHELL
13165
13166 # Whether or not to build shared libraries.
13167 build_libtool_libs=$enable_shared
13168
13169 # Whether or not to build static libraries.
13170 build_old_libs=$enable_static
13171
13172 # Whether or not to add -lc for building shared libraries.
13173 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13174
13175 # Whether or not to disallow shared libs when runtime libs are static
13176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13177
13178 # Whether or not to optimize for fast installation.
13179 fast_install=$enable_fast_install
13180
13181 # The host system.
13182 host_alias=$host_alias
13183 host=$host
13184 host_os=$host_os
13185
13186 # The build system.
13187 build_alias=$build_alias
13188 build=$build
13189 build_os=$build_os
13190
13191 # An echo program that does not interpret backslashes.
13192 echo=$lt_echo
13193
13194 # The archiver.
13195 AR=$lt_AR
13196 AR_FLAGS=$lt_AR_FLAGS
13197
13198 # A C compiler.
13199 LTCC=$lt_LTCC
13200
13201 # LTCC compiler flags.
13202 LTCFLAGS=$lt_LTCFLAGS
13203
13204 # A language-specific compiler.
13205 CC=$lt_compiler_CXX
13206
13207 # Is the compiler the GNU C compiler?
13208 with_gcc=$GCC_CXX
13209
13210 # An ERE matcher.
13211 EGREP=$lt_EGREP
13212
13213 # The linker used to build libraries.
13214 LD=$lt_LD_CXX
13215
13216 # Whether we need hard or soft links.
13217 LN_S=$lt_LN_S
13218
13219 # A BSD-compatible nm program.
13220 NM=$lt_NM
13221
13222 # A symbol stripping program
13223 STRIP=$lt_STRIP
13224
13225 # Used to examine libraries when file_magic_cmd begins "file"
13226 MAGIC_CMD=$MAGIC_CMD
13227
13228 # Used on cygwin: DLL creation program.
13229 DLLTOOL="$DLLTOOL"
13230
13231 # Used on cygwin: object dumper.
13232 OBJDUMP="$OBJDUMP"
13233
13234 # Used on cygwin: assembler.
13235 AS="$AS"
13236
13237 # The name of the directory that contains temporary libtool files.
13238 objdir=$objdir
13239
13240 # How to create reloadable object files.
13241 reload_flag=$lt_reload_flag
13242 reload_cmds=$lt_reload_cmds
13243
13244 # How to pass a linker flag through the compiler.
13245 wl=$lt_lt_prog_compiler_wl_CXX
13246
13247 # Object file suffix (normally "o").
13248 objext="$ac_objext"
13249
13250 # Old archive suffix (normally "a").
13251 libext="$libext"
13252
13253 # Shared library suffix (normally ".so").
13254 shrext_cmds='$shrext_cmds'
13255
13256 # Executable file suffix (normally "").
13257 exeext="$exeext"
13258
13259 # Additional compiler flags for building library objects.
13260 pic_flag=$lt_lt_prog_compiler_pic_CXX
13261 pic_mode=$pic_mode
13262
13263 # What is the maximum length of a command?
13264 max_cmd_len=$lt_cv_sys_max_cmd_len
13265
13266 # Does compiler simultaneously support -c and -o options?
13267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13268
13269 # Must we lock files when doing compilation?
13270 need_locks=$lt_need_locks
13271
13272 # Do we need the lib prefix for modules?
13273 need_lib_prefix=$need_lib_prefix
13274
13275 # Do we need a version for libraries?
13276 need_version=$need_version
13277
13278 # Whether dlopen is supported.
13279 dlopen_support=$enable_dlopen
13280
13281 # Whether dlopen of programs is supported.
13282 dlopen_self=$enable_dlopen_self
13283
13284 # Whether dlopen of statically linked programs is supported.
13285 dlopen_self_static=$enable_dlopen_self_static
13286
13287 # Compiler flag to prevent dynamic linking.
13288 link_static_flag=$lt_lt_prog_compiler_static_CXX
13289
13290 # Compiler flag to turn off builtin functions.
13291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13292
13293 # Compiler flag to allow reflexive dlopens.
13294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13295
13296 # Compiler flag to generate shared objects directly from archives.
13297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13298
13299 # Compiler flag to generate thread-safe objects.
13300 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13301
13302 # Library versioning type.
13303 version_type=$version_type
13304
13305 # Format of library name prefix.
13306 libname_spec=$lt_libname_spec
13307
13308 # List of archive names.  First name is the real one, the rest are links.
13309 # The last name is the one that the linker finds with -lNAME.
13310 library_names_spec=$lt_library_names_spec
13311
13312 # The coded name of the library, if different from the real name.
13313 soname_spec=$lt_soname_spec
13314
13315 # Commands used to build and install an old-style archive.
13316 RANLIB=$lt_RANLIB
13317 old_archive_cmds=$lt_old_archive_cmds_CXX
13318 old_postinstall_cmds=$lt_old_postinstall_cmds
13319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13320
13321 # Create an old-style archive from a shared archive.
13322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13323
13324 # Create a temporary old-style archive to link instead of a shared archive.
13325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13326
13327 # Commands used to build and install a shared archive.
13328 archive_cmds=$lt_archive_cmds_CXX
13329 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13330 postinstall_cmds=$lt_postinstall_cmds
13331 postuninstall_cmds=$lt_postuninstall_cmds
13332
13333 # Commands used to build a loadable module (assumed same as above if empty)
13334 module_cmds=$lt_module_cmds_CXX
13335 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13336
13337 # Commands to strip libraries.
13338 old_striplib=$lt_old_striplib
13339 striplib=$lt_striplib
13340
13341 # Dependencies to place before the objects being linked to create a
13342 # shared library.
13343 predep_objects=$lt_predep_objects_CXX
13344
13345 # Dependencies to place after the objects being linked to create a
13346 # shared library.
13347 postdep_objects=$lt_postdep_objects_CXX
13348
13349 # Dependencies to place before the objects being linked to create a
13350 # shared library.
13351 predeps=$lt_predeps_CXX
13352
13353 # Dependencies to place after the objects being linked to create a
13354 # shared library.
13355 postdeps=$lt_postdeps_CXX
13356
13357 # The library search path used internally by the compiler when linking
13358 # a shared library.
13359 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13360
13361 # Method to check whether dependent libraries are shared objects.
13362 deplibs_check_method=$lt_deplibs_check_method
13363
13364 # Command to use when deplibs_check_method == file_magic.
13365 file_magic_cmd=$lt_file_magic_cmd
13366
13367 # Flag that allows shared libraries with undefined symbols to be built.
13368 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13369
13370 # Flag that forces no undefined symbols.
13371 no_undefined_flag=$lt_no_undefined_flag_CXX
13372
13373 # Commands used to finish a libtool library installation in a directory.
13374 finish_cmds=$lt_finish_cmds
13375
13376 # Same as above, but a single script fragment to be evaled but not shown.
13377 finish_eval=$lt_finish_eval
13378
13379 # Take the output of nm and produce a listing of raw symbols and C names.
13380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13381
13382 # Transform the output of nm in a proper C declaration
13383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13384
13385 # Transform the output of nm in a C name address pair
13386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13387
13388 # This is the shared library runtime path variable.
13389 runpath_var=$runpath_var
13390
13391 # This is the shared library path variable.
13392 shlibpath_var=$shlibpath_var
13393
13394 # Is shlibpath searched before the hard-coded library search path?
13395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13396
13397 # How to hardcode a shared library path into an executable.
13398 hardcode_action=$hardcode_action_CXX
13399
13400 # Whether we should hardcode library paths into libraries.
13401 hardcode_into_libs=$hardcode_into_libs
13402
13403 # Flag to hardcode \$libdir into a binary during linking.
13404 # This must work even if \$libdir does not exist.
13405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13406
13407 # If ld is used when linking, flag to hardcode \$libdir into
13408 # a binary during linking. This must work even if \$libdir does
13409 # not exist.
13410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13411
13412 # Whether we need a single -rpath flag with a separated argument.
13413 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13414
13415 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13416 # resulting binary.
13417 hardcode_direct=$hardcode_direct_CXX
13418
13419 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13420 # resulting binary.
13421 hardcode_minus_L=$hardcode_minus_L_CXX
13422
13423 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13424 # the resulting binary.
13425 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13426
13427 # Set to yes if building a shared library automatically hardcodes DIR into the library
13428 # and all subsequent libraries and executables linked against it.
13429 hardcode_automatic=$hardcode_automatic_CXX
13430
13431 # Variables whose values should be saved in libtool wrapper scripts and
13432 # restored at relink time.
13433 variables_saved_for_relink="$variables_saved_for_relink"
13434
13435 # Whether libtool must link a program against all its dependency libraries.
13436 link_all_deplibs=$link_all_deplibs_CXX
13437
13438 # Compile-time system search path for libraries
13439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13440
13441 # Run-time system search path for libraries
13442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13443
13444 # Fix the shell variable \$srcfile for the compiler.
13445 fix_srcfile_path="$fix_srcfile_path_CXX"
13446
13447 # Set to yes if exported symbols are required.
13448 always_export_symbols=$always_export_symbols_CXX
13449
13450 # The commands to list exported symbols.
13451 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13452
13453 # The commands to extract the exported symbol list from a shared archive.
13454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13455
13456 # Symbols that should not be listed in the preloaded symbols.
13457 exclude_expsyms=$lt_exclude_expsyms_CXX
13458
13459 # Symbols that must always be exported.
13460 include_expsyms=$lt_include_expsyms_CXX
13461
13462 # ### END LIBTOOL TAG CONFIG: $tagname
13463
13464 __EOF__
13465
13466
13467 else
13468   # If there is no Makefile yet, we rely on a make rule to execute
13469   # `config.status --recheck' to rerun these tests and create the
13470   # libtool script then.
13471   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13472   if test -f "$ltmain_in"; then
13473     test -f Makefile && make "$ltmain"
13474   fi
13475 fi
13476
13477
13478 ac_ext=c
13479 ac_cpp='$CPP $CPPFLAGS'
13480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13483
13484 CC=$lt_save_CC
13485 LDCXX=$LD
13486 LD=$lt_save_LD
13487 GCC=$lt_save_GCC
13488 with_gnu_ldcxx=$with_gnu_ld
13489 with_gnu_ld=$lt_save_with_gnu_ld
13490 lt_cv_path_LDCXX=$lt_cv_path_LD
13491 lt_cv_path_LD=$lt_save_path_LD
13492 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13493 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13494
13495         else
13496           tagname=""
13497         fi
13498         ;;
13499
13500       F77)
13501         if test -n "$F77" && test "X$F77" != "Xno"; then
13502
13503 ac_ext=f
13504 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13505 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13507
13508
13509 archive_cmds_need_lc_F77=no
13510 allow_undefined_flag_F77=
13511 always_export_symbols_F77=no
13512 archive_expsym_cmds_F77=
13513 export_dynamic_flag_spec_F77=
13514 hardcode_direct_F77=no
13515 hardcode_libdir_flag_spec_F77=
13516 hardcode_libdir_flag_spec_ld_F77=
13517 hardcode_libdir_separator_F77=
13518 hardcode_minus_L_F77=no
13519 hardcode_automatic_F77=no
13520 module_cmds_F77=
13521 module_expsym_cmds_F77=
13522 link_all_deplibs_F77=unknown
13523 old_archive_cmds_F77=$old_archive_cmds
13524 no_undefined_flag_F77=
13525 whole_archive_flag_spec_F77=
13526 enable_shared_with_static_runtimes_F77=no
13527
13528 # Source file extension for f77 test sources.
13529 ac_ext=f
13530
13531 # Object file extension for compiled f77 test sources.
13532 objext=o
13533 objext_F77=$objext
13534
13535 # Code to be used in simple compile tests
13536 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13537
13538 # Code to be used in simple link tests
13539 lt_simple_link_test_code="      program t\n      end\n"
13540
13541 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13542
13543 # If no C compiler was specified, use CC.
13544 LTCC=${LTCC-"$CC"}
13545
13546 # If no C compiler flags were specified, use CFLAGS.
13547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13548
13549 # Allow CC to be a program name with arguments.
13550 compiler=$CC
13551
13552
13553 # save warnings/boilerplate of simple test code
13554 ac_outfile=conftest.$ac_objext
13555 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13556 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13557 _lt_compiler_boilerplate=`cat conftest.err`
13558 $rm conftest*
13559
13560 ac_outfile=conftest.$ac_objext
13561 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13562 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13563 _lt_linker_boilerplate=`cat conftest.err`
13564 $rm conftest*
13565
13566
13567 # Allow CC to be a program name with arguments.
13568 lt_save_CC="$CC"
13569 CC=${F77-"f77"}
13570 compiler=$CC
13571 compiler_F77=$CC
13572 for cc_temp in $compiler""; do
13573   case $cc_temp in
13574     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13575     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13576     \-*) ;;
13577     *) break;;
13578   esac
13579 done
13580 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13581
13582
13583 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13584 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13585 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13586 echo "${ECHO_T}$can_build_shared" >&6; }
13587
13588 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13589 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13590 test "$can_build_shared" = "no" && enable_shared=no
13591
13592 # On AIX, shared libraries and static libraries use the same namespace, and
13593 # are all built from PIC.
13594 case $host_os in
13595 aix3*)
13596   test "$enable_shared" = yes && enable_static=no
13597   if test -n "$RANLIB"; then
13598     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13599     postinstall_cmds='$RANLIB $lib'
13600   fi
13601   ;;
13602 aix4* | aix5*)
13603   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13604     test "$enable_shared" = yes && enable_static=no
13605   fi
13606   ;;
13607 esac
13608 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13609 echo "${ECHO_T}$enable_shared" >&6; }
13610
13611 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13612 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13613 # Make sure either enable_shared or enable_static is yes.
13614 test "$enable_shared" = yes || enable_static=yes
13615 { echo "$as_me:$LINENO: result: $enable_static" >&5
13616 echo "${ECHO_T}$enable_static" >&6; }
13617
13618 GCC_F77="$G77"
13619 LD_F77="$LD"
13620
13621 lt_prog_compiler_wl_F77=
13622 lt_prog_compiler_pic_F77=
13623 lt_prog_compiler_static_F77=
13624
13625 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13626 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13627
13628   if test "$GCC" = yes; then
13629     lt_prog_compiler_wl_F77='-Wl,'
13630     lt_prog_compiler_static_F77='-static'
13631
13632     case $host_os in
13633       aix*)
13634       # All AIX code is PIC.
13635       if test "$host_cpu" = ia64; then
13636         # AIX 5 now supports IA64 processor
13637         lt_prog_compiler_static_F77='-Bstatic'
13638       fi
13639       ;;
13640
13641     amigaos*)
13642       # FIXME: we need at least 68020 code to build shared libraries, but
13643       # adding the `-m68020' flag to GCC prevents building anything better,
13644       # like `-m68040'.
13645       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13646       ;;
13647
13648     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13649       # PIC is the default for these OSes.
13650       ;;
13651
13652     mingw* | pw32* | os2*)
13653       # This hack is so that the source file can tell whether it is being
13654       # built for inclusion in a dll (and should export symbols for example).
13655       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13656       ;;
13657
13658     darwin* | rhapsody*)
13659       # PIC is the default on this platform
13660       # Common symbols not allowed in MH_DYLIB files
13661       lt_prog_compiler_pic_F77='-fno-common'
13662       ;;
13663
13664     interix3*)
13665       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13666       # Instead, we relocate shared libraries at runtime.
13667       ;;
13668
13669     msdosdjgpp*)
13670       # Just because we use GCC doesn't mean we suddenly get shared libraries
13671       # on systems that don't support them.
13672       lt_prog_compiler_can_build_shared_F77=no
13673       enable_shared=no
13674       ;;
13675
13676     sysv4*MP*)
13677       if test -d /usr/nec; then
13678         lt_prog_compiler_pic_F77=-Kconform_pic
13679       fi
13680       ;;
13681
13682     hpux*)
13683       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13684       # not for PA HP-UX.
13685       case $host_cpu in
13686       hppa*64*|ia64*)
13687         # +Z the default
13688         ;;
13689       *)
13690         lt_prog_compiler_pic_F77='-fPIC'
13691         ;;
13692       esac
13693       ;;
13694
13695     *)
13696       lt_prog_compiler_pic_F77='-fPIC'
13697       ;;
13698     esac
13699   else
13700     # PORTME Check for flag to pass linker flags through the system compiler.
13701     case $host_os in
13702     aix*)
13703       lt_prog_compiler_wl_F77='-Wl,'
13704       if test "$host_cpu" = ia64; then
13705         # AIX 5 now supports IA64 processor
13706         lt_prog_compiler_static_F77='-Bstatic'
13707       else
13708         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13709       fi
13710       ;;
13711       darwin*)
13712         # PIC is the default on this platform
13713         # Common symbols not allowed in MH_DYLIB files
13714        case $cc_basename in
13715          xlc*)
13716          lt_prog_compiler_pic_F77='-qnocommon'
13717          lt_prog_compiler_wl_F77='-Wl,'
13718          ;;
13719        esac
13720        ;;
13721
13722     mingw* | pw32* | os2*)
13723       # This hack is so that the source file can tell whether it is being
13724       # built for inclusion in a dll (and should export symbols for example).
13725       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13726       ;;
13727
13728     hpux9* | hpux10* | hpux11*)
13729       lt_prog_compiler_wl_F77='-Wl,'
13730       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13731       # not for PA HP-UX.
13732       case $host_cpu in
13733       hppa*64*|ia64*)
13734         # +Z the default
13735         ;;
13736       *)
13737         lt_prog_compiler_pic_F77='+Z'
13738         ;;
13739       esac
13740       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13741       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13742       ;;
13743
13744     irix5* | irix6* | nonstopux*)
13745       lt_prog_compiler_wl_F77='-Wl,'
13746       # PIC (with -KPIC) is the default.
13747       lt_prog_compiler_static_F77='-non_shared'
13748       ;;
13749
13750     newsos6)
13751       lt_prog_compiler_pic_F77='-KPIC'
13752       lt_prog_compiler_static_F77='-Bstatic'
13753       ;;
13754
13755     linux* | k*bsd*-gnu)
13756       case $cc_basename in
13757       icc* | ecc*)
13758         lt_prog_compiler_wl_F77='-Wl,'
13759         lt_prog_compiler_pic_F77='-KPIC'
13760         lt_prog_compiler_static_F77='-static'
13761         ;;
13762       pgcc* | pgf77* | pgf90* | pgf95*)
13763         # Portland Group compilers (*not* the Pentium gcc compiler,
13764         # which looks to be a dead project)
13765         lt_prog_compiler_wl_F77='-Wl,'
13766         lt_prog_compiler_pic_F77='-fpic'
13767         lt_prog_compiler_static_F77='-Bstatic'
13768         ;;
13769       ccc*)
13770         lt_prog_compiler_wl_F77='-Wl,'
13771         # All Alpha code is PIC.
13772         lt_prog_compiler_static_F77='-non_shared'
13773         ;;
13774       esac
13775       ;;
13776
13777     osf3* | osf4* | osf5*)
13778       lt_prog_compiler_wl_F77='-Wl,'
13779       # All OSF/1 code is PIC.
13780       lt_prog_compiler_static_F77='-non_shared'
13781       ;;
13782
13783     solaris*)
13784       lt_prog_compiler_pic_F77='-KPIC'
13785       lt_prog_compiler_static_F77='-Bstatic'
13786       case $cc_basename in
13787       f77* | f90* | f95*)
13788         lt_prog_compiler_wl_F77='-Qoption ld ';;
13789       *)
13790         lt_prog_compiler_wl_F77='-Wl,';;
13791       esac
13792       ;;
13793
13794     sunos4*)
13795       lt_prog_compiler_wl_F77='-Qoption ld '
13796       lt_prog_compiler_pic_F77='-PIC'
13797       lt_prog_compiler_static_F77='-Bstatic'
13798       ;;
13799
13800     sysv4 | sysv4.2uw2* | sysv4.3*)
13801       lt_prog_compiler_wl_F77='-Wl,'
13802       lt_prog_compiler_pic_F77='-KPIC'
13803       lt_prog_compiler_static_F77='-Bstatic'
13804       ;;
13805
13806     sysv4*MP*)
13807       if test -d /usr/nec ;then
13808         lt_prog_compiler_pic_F77='-Kconform_pic'
13809         lt_prog_compiler_static_F77='-Bstatic'
13810       fi
13811       ;;
13812
13813     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13814       lt_prog_compiler_wl_F77='-Wl,'
13815       lt_prog_compiler_pic_F77='-KPIC'
13816       lt_prog_compiler_static_F77='-Bstatic'
13817       ;;
13818
13819     unicos*)
13820       lt_prog_compiler_wl_F77='-Wl,'
13821       lt_prog_compiler_can_build_shared_F77=no
13822       ;;
13823
13824     uts4*)
13825       lt_prog_compiler_pic_F77='-pic'
13826       lt_prog_compiler_static_F77='-Bstatic'
13827       ;;
13828
13829     *)
13830       lt_prog_compiler_can_build_shared_F77=no
13831       ;;
13832     esac
13833   fi
13834
13835 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13836 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13837
13838 #
13839 # Check to make sure the PIC flag actually works.
13840 #
13841 if test -n "$lt_prog_compiler_pic_F77"; then
13842
13843 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13844 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13845 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   lt_prog_compiler_pic_works_F77=no
13849   ac_outfile=conftest.$ac_objext
13850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13851    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13852    # Insert the option either (1) after the last *FLAGS variable, or
13853    # (2) before a word containing "conftest.", or (3) at the end.
13854    # Note that $ac_compile itself does not contain backslashes and begins
13855    # with a dollar sign (not a hyphen), so the echo should work correctly.
13856    # The option is referenced via a variable to avoid confusing sed.
13857    lt_compile=`echo "$ac_compile" | $SED \
13858    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13860    -e 's:$: $lt_compiler_flag:'`
13861    (eval echo "\"\$as_me:13861: $lt_compile\"" >&5)
13862    (eval "$lt_compile" 2>conftest.err)
13863    ac_status=$?
13864    cat conftest.err >&5
13865    echo "$as_me:13865: \$? = $ac_status" >&5
13866    if (exit $ac_status) && test -s "$ac_outfile"; then
13867      # The compiler can only warn and ignore the option if not recognized
13868      # So say no if there are warnings other than the usual output.
13869      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13870      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13871      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13872        lt_prog_compiler_pic_works_F77=yes
13873      fi
13874    fi
13875    $rm conftest*
13876
13877 fi
13878 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13879 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13880
13881 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13882     case $lt_prog_compiler_pic_F77 in
13883      "" | " "*) ;;
13884      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13885      esac
13886 else
13887     lt_prog_compiler_pic_F77=
13888      lt_prog_compiler_can_build_shared_F77=no
13889 fi
13890
13891 fi
13892 case $host_os in
13893   # For platforms which do not support PIC, -DPIC is meaningless:
13894   *djgpp*)
13895     lt_prog_compiler_pic_F77=
13896     ;;
13897   *)
13898     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13899     ;;
13900 esac
13901
13902 #
13903 # Check to make sure the static flag actually works.
13904 #
13905 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13906 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13907 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13908 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13909   echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911   lt_prog_compiler_static_works_F77=no
13912    save_LDFLAGS="$LDFLAGS"
13913    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13914    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13915    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13916      # The linker can only warn and ignore the option if not recognized
13917      # So say no if there are warnings
13918      if test -s conftest.err; then
13919        # Append any errors to the config.log.
13920        cat conftest.err 1>&5
13921        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13922        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13923        if diff conftest.exp conftest.er2 >/dev/null; then
13924          lt_prog_compiler_static_works_F77=yes
13925        fi
13926      else
13927        lt_prog_compiler_static_works_F77=yes
13928      fi
13929    fi
13930    $rm conftest*
13931    LDFLAGS="$save_LDFLAGS"
13932
13933 fi
13934 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13935 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13936
13937 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13938     :
13939 else
13940     lt_prog_compiler_static_F77=
13941 fi
13942
13943
13944 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13945 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13946 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13947   echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949   lt_cv_prog_compiler_c_o_F77=no
13950    $rm -r conftest 2>/dev/null
13951    mkdir conftest
13952    cd conftest
13953    mkdir out
13954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955
13956    lt_compiler_flag="-o out/conftest2.$ac_objext"
13957    # Insert the option either (1) after the last *FLAGS variable, or
13958    # (2) before a word containing "conftest.", or (3) at the end.
13959    # Note that $ac_compile itself does not contain backslashes and begins
13960    # with a dollar sign (not a hyphen), so the echo should work correctly.
13961    lt_compile=`echo "$ac_compile" | $SED \
13962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964    -e 's:$: $lt_compiler_flag:'`
13965    (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
13966    (eval "$lt_compile" 2>out/conftest.err)
13967    ac_status=$?
13968    cat out/conftest.err >&5
13969    echo "$as_me:13969: \$? = $ac_status" >&5
13970    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13971    then
13972      # The compiler can only warn and ignore the option if not recognized
13973      # So say no if there are warnings
13974      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13975      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13976      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13977        lt_cv_prog_compiler_c_o_F77=yes
13978      fi
13979    fi
13980    chmod u+w . 2>&5
13981    $rm conftest*
13982    # SGI C++ compiler will create directory out/ii_files/ for
13983    # template instantiation
13984    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13985    $rm out/* && rmdir out
13986    cd ..
13987    rmdir conftest
13988    $rm conftest*
13989
13990 fi
13991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13992 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13993
13994
13995 hard_links="nottested"
13996 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13997   # do not overwrite the value of need_locks provided by the user
13998   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13999 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14000   hard_links=yes
14001   $rm conftest*
14002   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14003   touch conftest.a
14004   ln conftest.a conftest.b 2>&5 || hard_links=no
14005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14006   { echo "$as_me:$LINENO: result: $hard_links" >&5
14007 echo "${ECHO_T}$hard_links" >&6; }
14008   if test "$hard_links" = no; then
14009     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14010 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14011     need_locks=warn
14012   fi
14013 else
14014   need_locks=no
14015 fi
14016
14017 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14018 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14019
14020   runpath_var=
14021   allow_undefined_flag_F77=
14022   enable_shared_with_static_runtimes_F77=no
14023   archive_cmds_F77=
14024   archive_expsym_cmds_F77=
14025   old_archive_From_new_cmds_F77=
14026   old_archive_from_expsyms_cmds_F77=
14027   export_dynamic_flag_spec_F77=
14028   whole_archive_flag_spec_F77=
14029   thread_safe_flag_spec_F77=
14030   hardcode_libdir_flag_spec_F77=
14031   hardcode_libdir_flag_spec_ld_F77=
14032   hardcode_libdir_separator_F77=
14033   hardcode_direct_F77=no
14034   hardcode_minus_L_F77=no
14035   hardcode_shlibpath_var_F77=unsupported
14036   link_all_deplibs_F77=unknown
14037   hardcode_automatic_F77=no
14038   module_cmds_F77=
14039   module_expsym_cmds_F77=
14040   always_export_symbols_F77=no
14041   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14042   # include_expsyms should be a list of space-separated symbols to be *always*
14043   # included in the symbol list
14044   include_expsyms_F77=
14045   # exclude_expsyms can be an extended regexp of symbols to exclude
14046   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14047   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14048   # as well as any symbol that contains `d'.
14049   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14050   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14051   # platforms (ab)use it in PIC code, but their linkers get confused if
14052   # the symbol is explicitly referenced.  Since portable code cannot
14053   # rely on this symbol name, it's probably fine to never include it in
14054   # preloaded symbol tables.
14055   extract_expsyms_cmds=
14056   # Just being paranoid about ensuring that cc_basename is set.
14057   for cc_temp in $compiler""; do
14058   case $cc_temp in
14059     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14060     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14061     \-*) ;;
14062     *) break;;
14063   esac
14064 done
14065 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14066
14067   case $host_os in
14068   cygwin* | mingw* | pw32*)
14069     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14070     # When not using gcc, we currently assume that we are using
14071     # Microsoft Visual C++.
14072     if test "$GCC" != yes; then
14073       with_gnu_ld=no
14074     fi
14075     ;;
14076   interix*)
14077     # we just hope/assume this is gcc and not c89 (= MSVC++)
14078     with_gnu_ld=yes
14079     ;;
14080   openbsd*)
14081     with_gnu_ld=no
14082     ;;
14083   esac
14084
14085   ld_shlibs_F77=yes
14086   if test "$with_gnu_ld" = yes; then
14087     # If archive_cmds runs LD, not CC, wlarc should be empty
14088     wlarc='${wl}'
14089
14090     # Set some defaults for GNU ld with shared library support. These
14091     # are reset later if shared libraries are not supported. Putting them
14092     # here allows them to be overridden if necessary.
14093     runpath_var=LD_RUN_PATH
14094     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14095     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14096     # ancient GNU ld didn't support --whole-archive et. al.
14097     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14098         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14099       else
14100         whole_archive_flag_spec_F77=
14101     fi
14102     supports_anon_versioning=no
14103     case `$LD -v 2>/dev/null` in
14104       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14105       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14106       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14107       *\ 2.11.*) ;; # other 2.11 versions
14108       *) supports_anon_versioning=yes ;;
14109     esac
14110
14111     # See if GNU ld supports shared libraries.
14112     case $host_os in
14113     aix3* | aix4* | aix5*)
14114       # On AIX/PPC, the GNU linker is very broken
14115       if test "$host_cpu" != ia64; then
14116         ld_shlibs_F77=no
14117         cat <<EOF 1>&2
14118
14119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14120 *** to be unable to reliably create shared libraries on AIX.
14121 *** Therefore, libtool is disabling shared libraries support.  If you
14122 *** really care for shared libraries, you may want to modify your PATH
14123 *** so that a non-GNU linker is found, and then restart.
14124
14125 EOF
14126       fi
14127       ;;
14128
14129     amigaos*)
14130       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)'
14131       hardcode_libdir_flag_spec_F77='-L$libdir'
14132       hardcode_minus_L_F77=yes
14133
14134       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14135       # that the semantics of dynamic libraries on AmigaOS, at least up
14136       # to version 4, is to share data among multiple programs linked
14137       # with the same dynamic library.  Since this doesn't match the
14138       # behavior of shared libraries on other platforms, we can't use
14139       # them.
14140       ld_shlibs_F77=no
14141       ;;
14142
14143     beos*)
14144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14145         allow_undefined_flag_F77=unsupported
14146         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14147         # support --undefined.  This deserves some investigation.  FIXME
14148         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149       else
14150         ld_shlibs_F77=no
14151       fi
14152       ;;
14153
14154     cygwin* | mingw* | pw32*)
14155       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14156       # as there is no search path for DLLs.
14157       hardcode_libdir_flag_spec_F77='-L$libdir'
14158       allow_undefined_flag_F77=unsupported
14159       always_export_symbols_F77=no
14160       enable_shared_with_static_runtimes_F77=yes
14161       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14162
14163       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14164         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14165         # If the export-symbols file already is a .def file (1st line
14166         # is EXPORTS), use it as is; otherwise, prepend...
14167         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14168           cp $export_symbols $output_objdir/$soname.def;
14169         else
14170           echo EXPORTS > $output_objdir/$soname.def;
14171           cat $export_symbols >> $output_objdir/$soname.def;
14172         fi~
14173         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14174       else
14175         ld_shlibs_F77=no
14176       fi
14177       ;;
14178
14179     interix3*)
14180       hardcode_direct_F77=no
14181       hardcode_shlibpath_var_F77=no
14182       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14183       export_dynamic_flag_spec_F77='${wl}-E'
14184       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14185       # Instead, shared libraries are loaded at an image base (0x10000000 by
14186       # default) and relocated if they conflict, which is a slow very memory
14187       # consuming and fragmenting process.  To avoid this, we pick a random,
14188       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14189       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14190       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'
14191       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'
14192       ;;
14193
14194     linux* | k*bsd*-gnu)
14195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14196         tmp_addflag=
14197         case $cc_basename,$host_cpu in
14198         pgcc*)                          # Portland Group C compiler
14199           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'
14200           tmp_addflag=' $pic_flag'
14201           ;;
14202         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14203           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'
14204           tmp_addflag=' $pic_flag -Mnomain' ;;
14205         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14206           tmp_addflag=' -i_dynamic' ;;
14207         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14208           tmp_addflag=' -i_dynamic -nofor_main' ;;
14209         ifc* | ifort*)                  # Intel Fortran compiler
14210           tmp_addflag=' -nofor_main' ;;
14211         esac
14212         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14213
14214         if test $supports_anon_versioning = yes; then
14215           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14216   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14217   $echo "local: *; };" >> $output_objdir/$libname.ver~
14218           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14219         fi
14220         link_all_deplibs_F77=no
14221       else
14222         ld_shlibs_F77=no
14223       fi
14224       ;;
14225
14226     netbsd* | netbsdelf*-gnu)
14227       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14228         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14229         wlarc=
14230       else
14231         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14233       fi
14234       ;;
14235
14236     solaris*)
14237       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14238         ld_shlibs_F77=no
14239         cat <<EOF 1>&2
14240
14241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14242 *** create shared libraries on Solaris systems.  Therefore, libtool
14243 *** is disabling shared libraries support.  We urge you to upgrade GNU
14244 *** binutils to release 2.9.1 or newer.  Another option is to modify
14245 *** your PATH or compiler configuration so that the native linker is
14246 *** used, and then restart.
14247
14248 EOF
14249       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14252       else
14253         ld_shlibs_F77=no
14254       fi
14255       ;;
14256
14257     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14258       case `$LD -v 2>&1` in
14259         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14260         ld_shlibs_F77=no
14261         cat <<_LT_EOF 1>&2
14262
14263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14264 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14265 *** is disabling shared libraries support.  We urge you to upgrade GNU
14266 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14267 *** your PATH or compiler configuration so that the native linker is
14268 *** used, and then restart.
14269
14270 _LT_EOF
14271         ;;
14272         *)
14273           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14275             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14276             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14277           else
14278             ld_shlibs_F77=no
14279           fi
14280         ;;
14281       esac
14282       ;;
14283
14284     sunos4*)
14285       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14286       wlarc=
14287       hardcode_direct_F77=yes
14288       hardcode_shlibpath_var_F77=no
14289       ;;
14290
14291     *)
14292       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14293         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14294         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14295       else
14296         ld_shlibs_F77=no
14297       fi
14298       ;;
14299     esac
14300
14301     if test "$ld_shlibs_F77" = no; then
14302       runpath_var=
14303       hardcode_libdir_flag_spec_F77=
14304       export_dynamic_flag_spec_F77=
14305       whole_archive_flag_spec_F77=
14306     fi
14307   else
14308     # PORTME fill in a description of your system's linker (not GNU ld)
14309     case $host_os in
14310     aix3*)
14311       allow_undefined_flag_F77=unsupported
14312       always_export_symbols_F77=yes
14313       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'
14314       # Note: this linker hardcodes the directories in LIBPATH if there
14315       # are no directories specified by -L.
14316       hardcode_minus_L_F77=yes
14317       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14318         # Neither direct hardcoding nor static linking is supported with a
14319         # broken collect2.
14320         hardcode_direct_F77=unsupported
14321       fi
14322       ;;
14323
14324     aix4* | aix5*)
14325       if test "$host_cpu" = ia64; then
14326         # On IA64, the linker does run time linking by default, so we don't
14327         # have to do anything special.
14328         aix_use_runtimelinking=no
14329         exp_sym_flag='-Bexport'
14330         no_entry_flag=""
14331       else
14332         # If we're using GNU nm, then we don't want the "-C" option.
14333         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14334         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14335           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'
14336         else
14337           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'
14338         fi
14339         aix_use_runtimelinking=no
14340
14341         # Test if we are trying to use run time linking or normal
14342         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14343         # need to do runtime linking.
14344         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14345           for ld_flag in $LDFLAGS; do
14346           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14347             aix_use_runtimelinking=yes
14348             break
14349           fi
14350           done
14351           ;;
14352         esac
14353
14354         exp_sym_flag='-bexport'
14355         no_entry_flag='-bnoentry'
14356       fi
14357
14358       # When large executables or shared objects are built, AIX ld can
14359       # have problems creating the table of contents.  If linking a library
14360       # or program results in "error TOC overflow" add -mminimal-toc to
14361       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14362       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14363
14364       archive_cmds_F77=''
14365       hardcode_direct_F77=yes
14366       hardcode_libdir_separator_F77=':'
14367       link_all_deplibs_F77=yes
14368
14369       if test "$GCC" = yes; then
14370         case $host_os in aix4.[012]|aix4.[012].*)
14371         # We only want to do this on AIX 4.2 and lower, the check
14372         # below for broken collect2 doesn't work under 4.3+
14373           collect2name=`${CC} -print-prog-name=collect2`
14374           if test -f "$collect2name" && \
14375            strings "$collect2name" | grep resolve_lib_name >/dev/null
14376           then
14377           # We have reworked collect2
14378           hardcode_direct_F77=yes
14379           else
14380           # We have old collect2
14381           hardcode_direct_F77=unsupported
14382           # It fails to find uninstalled libraries when the uninstalled
14383           # path is not listed in the libpath.  Setting hardcode_minus_L
14384           # to unsupported forces relinking
14385           hardcode_minus_L_F77=yes
14386           hardcode_libdir_flag_spec_F77='-L$libdir'
14387           hardcode_libdir_separator_F77=
14388           fi
14389           ;;
14390         esac
14391         shared_flag='-shared'
14392         if test "$aix_use_runtimelinking" = yes; then
14393           shared_flag="$shared_flag "'${wl}-G'
14394         fi
14395       else
14396         # not using gcc
14397         if test "$host_cpu" = ia64; then
14398         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14399         # chokes on -Wl,-G. The following line is correct:
14400           shared_flag='-G'
14401         else
14402           if test "$aix_use_runtimelinking" = yes; then
14403             shared_flag='${wl}-G'
14404           else
14405             shared_flag='${wl}-bM:SRE'
14406           fi
14407         fi
14408       fi
14409
14410       # It seems that -bexpall does not export symbols beginning with
14411       # underscore (_), so it is better to generate a list of symbols to export.
14412       always_export_symbols_F77=yes
14413       if test "$aix_use_runtimelinking" = yes; then
14414         # Warning - without using the other runtime loading flags (-brtl),
14415         # -berok will link without error, but may produce a broken library.
14416         allow_undefined_flag_F77='-berok'
14417        # Determine the default libpath from the value encoded in an empty executable.
14418        cat >conftest.$ac_ext <<_ACEOF
14419       program main
14420
14421       end
14422 _ACEOF
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (ac_try="$ac_link"
14425 case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_link") 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } && {
14437          test -z "$ac_f77_werror_flag" ||
14438          test ! -s conftest.err
14439        } && test -s conftest$ac_exeext &&
14440        $as_test_x conftest$ac_exeext; then
14441
14442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14443 }'`
14444 # Check for a 64-bit object if we didn't find anything.
14445 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; }
14446 }'`; fi
14447 else
14448   echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451
14452 fi
14453
14454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14455       conftest$ac_exeext conftest.$ac_ext
14456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14457
14458        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14459         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"
14460        else
14461         if test "$host_cpu" = ia64; then
14462           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14463           allow_undefined_flag_F77="-z nodefs"
14464           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"
14465         else
14466          # Determine the default libpath from the value encoded in an empty executable.
14467          cat >conftest.$ac_ext <<_ACEOF
14468       program main
14469
14470       end
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479   (eval "$ac_link") 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } && {
14486          test -z "$ac_f77_werror_flag" ||
14487          test ! -s conftest.err
14488        } && test -s conftest$ac_exeext &&
14489        $as_test_x conftest$ac_exeext; then
14490
14491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14492 }'`
14493 # Check for a 64-bit object if we didn't find anything.
14494 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; }
14495 }'`; fi
14496 else
14497   echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500
14501 fi
14502
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504       conftest$ac_exeext conftest.$ac_ext
14505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14506
14507          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14508           # Warning - without using the other run time loading flags,
14509           # -berok will link without error, but may produce a broken library.
14510           no_undefined_flag_F77=' ${wl}-bernotok'
14511           allow_undefined_flag_F77=' ${wl}-berok'
14512           # Exported symbols can be pulled into shared objects from archives
14513           whole_archive_flag_spec_F77='$convenience'
14514           archive_cmds_need_lc_F77=yes
14515           # This is similar to how AIX traditionally builds its shared libraries.
14516           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'
14517         fi
14518       fi
14519       ;;
14520
14521     amigaos*)
14522       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)'
14523       hardcode_libdir_flag_spec_F77='-L$libdir'
14524       hardcode_minus_L_F77=yes
14525       # see comment about different semantics on the GNU ld section
14526       ld_shlibs_F77=no
14527       ;;
14528
14529     bsdi[45]*)
14530       export_dynamic_flag_spec_F77=-rdynamic
14531       ;;
14532
14533     cygwin* | mingw* | pw32*)
14534       # When not using gcc, we currently assume that we are using
14535       # Microsoft Visual C++.
14536       # hardcode_libdir_flag_spec is actually meaningless, as there is
14537       # no search path for DLLs.
14538       hardcode_libdir_flag_spec_F77=' '
14539       allow_undefined_flag_F77=unsupported
14540       # Tell ltmain to make .lib files, not .a files.
14541       libext=lib
14542       # Tell ltmain to make .dll files, not .so files.
14543       shrext_cmds=".dll"
14544       # FIXME: Setting linknames here is a bad hack.
14545       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14546       # The linker will automatically build a .lib file if we build a DLL.
14547       old_archive_From_new_cmds_F77='true'
14548       # FIXME: Should let the user specify the lib program.
14549       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14550       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14551       enable_shared_with_static_runtimes_F77=yes
14552       ;;
14553
14554     darwin* | rhapsody*)
14555       case $host_os in
14556         rhapsody* | darwin1.[012])
14557          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14558          ;;
14559        *) # Darwin 1.3 on
14560          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14561            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14562          else
14563            case ${MACOSX_DEPLOYMENT_TARGET} in
14564              10.[012])
14565                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14566                ;;
14567              10.*)
14568                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14569                ;;
14570            esac
14571          fi
14572          ;;
14573       esac
14574       archive_cmds_need_lc_F77=no
14575       hardcode_direct_F77=no
14576       hardcode_automatic_F77=yes
14577       hardcode_shlibpath_var_F77=unsupported
14578       whole_archive_flag_spec_F77=''
14579       link_all_deplibs_F77=yes
14580     if test "$GCC" = yes ; then
14581         output_verbose_link_cmd='echo'
14582         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14583       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14584       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14585       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}'
14586       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}'
14587     else
14588       case $cc_basename in
14589         xlc*)
14590          output_verbose_link_cmd='echo'
14591          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14592          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14593           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14594          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}'
14595           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}'
14596           ;;
14597        *)
14598          ld_shlibs_F77=no
14599           ;;
14600       esac
14601     fi
14602       ;;
14603
14604     dgux*)
14605       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14606       hardcode_libdir_flag_spec_F77='-L$libdir'
14607       hardcode_shlibpath_var_F77=no
14608       ;;
14609
14610     freebsd1*)
14611       ld_shlibs_F77=no
14612       ;;
14613
14614     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14615     # support.  Future versions do this automatically, but an explicit c++rt0.o
14616     # does not break anything, and helps significantly (at the cost of a little
14617     # extra space).
14618     freebsd2.2*)
14619       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14620       hardcode_libdir_flag_spec_F77='-R$libdir'
14621       hardcode_direct_F77=yes
14622       hardcode_shlibpath_var_F77=no
14623       ;;
14624
14625     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14626     freebsd2*)
14627       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14628       hardcode_direct_F77=yes
14629       hardcode_minus_L_F77=yes
14630       hardcode_shlibpath_var_F77=no
14631       ;;
14632
14633     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14634     freebsd* | dragonfly*)
14635       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14636       hardcode_libdir_flag_spec_F77='-R$libdir'
14637       hardcode_direct_F77=yes
14638       hardcode_shlibpath_var_F77=no
14639       ;;
14640
14641     hpux9*)
14642       if test "$GCC" = yes; then
14643         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'
14644       else
14645         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'
14646       fi
14647       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14648       hardcode_libdir_separator_F77=:
14649       hardcode_direct_F77=yes
14650
14651       # hardcode_minus_L: Not really in the search PATH,
14652       # but as the default location of the library.
14653       hardcode_minus_L_F77=yes
14654       export_dynamic_flag_spec_F77='${wl}-E'
14655       ;;
14656
14657     hpux10*)
14658       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14659         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14660       else
14661         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14662       fi
14663       if test "$with_gnu_ld" = no; then
14664         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14665         hardcode_libdir_separator_F77=:
14666
14667         hardcode_direct_F77=yes
14668         export_dynamic_flag_spec_F77='${wl}-E'
14669
14670         # hardcode_minus_L: Not really in the search PATH,
14671         # but as the default location of the library.
14672         hardcode_minus_L_F77=yes
14673       fi
14674       ;;
14675
14676     hpux11*)
14677       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14678         case $host_cpu in
14679         hppa*64*)
14680           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14681           ;;
14682         ia64*)
14683           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14684           ;;
14685         *)
14686           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14687           ;;
14688         esac
14689       else
14690         case $host_cpu in
14691         hppa*64*)
14692           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14693           ;;
14694         ia64*)
14695           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14696           ;;
14697         *)
14698           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14699           ;;
14700         esac
14701       fi
14702       if test "$with_gnu_ld" = no; then
14703         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14704         hardcode_libdir_separator_F77=:
14705
14706         case $host_cpu in
14707         hppa*64*|ia64*)
14708           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14709           hardcode_direct_F77=no
14710           hardcode_shlibpath_var_F77=no
14711           ;;
14712         *)
14713           hardcode_direct_F77=yes
14714           export_dynamic_flag_spec_F77='${wl}-E'
14715
14716           # hardcode_minus_L: Not really in the search PATH,
14717           # but as the default location of the library.
14718           hardcode_minus_L_F77=yes
14719           ;;
14720         esac
14721       fi
14722       ;;
14723
14724     irix5* | irix6* | nonstopux*)
14725       if test "$GCC" = yes; then
14726         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'
14727       else
14728         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'
14729         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14730       fi
14731       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14732       hardcode_libdir_separator_F77=:
14733       link_all_deplibs_F77=yes
14734       ;;
14735
14736     netbsd* | netbsdelf*-gnu)
14737       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14738         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14739       else
14740         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14741       fi
14742       hardcode_libdir_flag_spec_F77='-R$libdir'
14743       hardcode_direct_F77=yes
14744       hardcode_shlibpath_var_F77=no
14745       ;;
14746
14747     newsos6)
14748       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14749       hardcode_direct_F77=yes
14750       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14751       hardcode_libdir_separator_F77=:
14752       hardcode_shlibpath_var_F77=no
14753       ;;
14754
14755     openbsd*)
14756       hardcode_direct_F77=yes
14757       hardcode_shlibpath_var_F77=no
14758       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14759         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14760         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14761         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14762         export_dynamic_flag_spec_F77='${wl}-E'
14763       else
14764        case $host_os in
14765          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14766            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14767            hardcode_libdir_flag_spec_F77='-R$libdir'
14768            ;;
14769          *)
14770            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14771            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14772            ;;
14773        esac
14774       fi
14775       ;;
14776
14777     os2*)
14778       hardcode_libdir_flag_spec_F77='-L$libdir'
14779       hardcode_minus_L_F77=yes
14780       allow_undefined_flag_F77=unsupported
14781       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'
14782       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14783       ;;
14784
14785     osf3*)
14786       if test "$GCC" = yes; then
14787         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14788         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'
14789       else
14790         allow_undefined_flag_F77=' -expect_unresolved \*'
14791         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'
14792       fi
14793       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14794       hardcode_libdir_separator_F77=:
14795       ;;
14796
14797     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14798       if test "$GCC" = yes; then
14799         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14800         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'
14801         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14802       else
14803         allow_undefined_flag_F77=' -expect_unresolved \*'
14804         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'
14805         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~
14806         $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'
14807
14808         # Both c and cxx compiler support -rpath directly
14809         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14810       fi
14811       hardcode_libdir_separator_F77=:
14812       ;;
14813
14814     solaris*)
14815       no_undefined_flag_F77=' -z text'
14816       if test "$GCC" = yes; then
14817         wlarc='${wl}'
14818         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14820           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14821       else
14822         wlarc=''
14823         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14825         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14826       fi
14827       hardcode_libdir_flag_spec_F77='-R$libdir'
14828       hardcode_shlibpath_var_F77=no
14829       case $host_os in
14830       solaris2.[0-5] | solaris2.[0-5].*) ;;
14831       *)
14832         # The compiler driver will combine linker options so we
14833         # cannot just pass the convience library names through
14834         # without $wl, iff we do not link with $LD.
14835         # Luckily, gcc supports the same syntax we need for Sun Studio.
14836         # Supported since Solaris 2.6 (maybe 2.5.1?)
14837         case $wlarc in
14838         '')
14839           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14840         *)
14841           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' ;;
14842         esac ;;
14843       esac
14844       link_all_deplibs_F77=yes
14845       ;;
14846
14847     sunos4*)
14848       if test "x$host_vendor" = xsequent; then
14849         # Use $CC to link under sequent, because it throws in some extra .o
14850         # files that make .init and .fini sections work.
14851         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14852       else
14853         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14854       fi
14855       hardcode_libdir_flag_spec_F77='-L$libdir'
14856       hardcode_direct_F77=yes
14857       hardcode_minus_L_F77=yes
14858       hardcode_shlibpath_var_F77=no
14859       ;;
14860
14861     sysv4)
14862       case $host_vendor in
14863         sni)
14864           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865           hardcode_direct_F77=yes # is this really true???
14866         ;;
14867         siemens)
14868           ## LD is ld it makes a PLAMLIB
14869           ## CC just makes a GrossModule.
14870           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14871           reload_cmds_F77='$CC -r -o $output$reload_objs'
14872           hardcode_direct_F77=no
14873         ;;
14874         motorola)
14875           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14877         ;;
14878       esac
14879       runpath_var='LD_RUN_PATH'
14880       hardcode_shlibpath_var_F77=no
14881       ;;
14882
14883     sysv4.3*)
14884       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14885       hardcode_shlibpath_var_F77=no
14886       export_dynamic_flag_spec_F77='-Bexport'
14887       ;;
14888
14889     sysv4*MP*)
14890       if test -d /usr/nec; then
14891         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892         hardcode_shlibpath_var_F77=no
14893         runpath_var=LD_RUN_PATH
14894         hardcode_runpath_var=yes
14895         ld_shlibs_F77=yes
14896       fi
14897       ;;
14898
14899     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14900       no_undefined_flag_F77='${wl}-z,text'
14901       archive_cmds_need_lc_F77=no
14902       hardcode_shlibpath_var_F77=no
14903       runpath_var='LD_RUN_PATH'
14904
14905       if test "$GCC" = yes; then
14906         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14907         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14908       else
14909         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14910         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14911       fi
14912       ;;
14913
14914     sysv5* | sco3.2v5* | sco5v6*)
14915       # Note: We can NOT use -z defs as we might desire, because we do not
14916       # link with -lc, and that would cause any symbols used from libc to
14917       # always be unresolved, which means just about no library would
14918       # ever link correctly.  If we're not using GNU ld we use -z text
14919       # though, which does catch some bad symbols but isn't as heavy-handed
14920       # as -z defs.
14921       no_undefined_flag_F77='${wl}-z,text'
14922       allow_undefined_flag_F77='${wl}-z,nodefs'
14923       archive_cmds_need_lc_F77=no
14924       hardcode_shlibpath_var_F77=no
14925       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14926       hardcode_libdir_separator_F77=':'
14927       link_all_deplibs_F77=yes
14928       export_dynamic_flag_spec_F77='${wl}-Bexport'
14929       runpath_var='LD_RUN_PATH'
14930
14931       if test "$GCC" = yes; then
14932         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14933         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14934       else
14935         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14936         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14937       fi
14938       ;;
14939
14940     uts4*)
14941       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942       hardcode_libdir_flag_spec_F77='-L$libdir'
14943       hardcode_shlibpath_var_F77=no
14944       ;;
14945
14946     *)
14947       ld_shlibs_F77=no
14948       ;;
14949     esac
14950   fi
14951
14952 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14953 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14954 test "$ld_shlibs_F77" = no && can_build_shared=no
14955
14956 #
14957 # Do we need to explicitly link libc?
14958 #
14959 case "x$archive_cmds_need_lc_F77" in
14960 x|xyes)
14961   # Assume -lc should be added
14962   archive_cmds_need_lc_F77=yes
14963
14964   if test "$enable_shared" = yes && test "$GCC" = yes; then
14965     case $archive_cmds_F77 in
14966     *'~'*)
14967       # FIXME: we may have to deal with multi-command sequences.
14968       ;;
14969     '$CC '*)
14970       # Test whether the compiler implicitly links with -lc since on some
14971       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14972       # to ld, don't add -lc before -lgcc.
14973       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14975       $rm conftest*
14976       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14977
14978       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979   (eval $ac_compile) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } 2>conftest.err; then
14983         soname=conftest
14984         lib=conftest
14985         libobjs=conftest.$ac_objext
14986         deplibs=
14987         wl=$lt_prog_compiler_wl_F77
14988         pic_flag=$lt_prog_compiler_pic_F77
14989         compiler_flags=-v
14990         linker_flags=-v
14991         verstring=
14992         output_objdir=.
14993         libname=conftest
14994         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14995         allow_undefined_flag_F77=
14996         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14997   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }
15001         then
15002           archive_cmds_need_lc_F77=no
15003         else
15004           archive_cmds_need_lc_F77=yes
15005         fi
15006         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15007       else
15008         cat conftest.err 1>&5
15009       fi
15010       $rm conftest*
15011       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15012 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15013       ;;
15014     esac
15015   fi
15016   ;;
15017 esac
15018
15019 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15020 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15021 library_names_spec=
15022 libname_spec='lib$name'
15023 soname_spec=
15024 shrext_cmds=".so"
15025 postinstall_cmds=
15026 postuninstall_cmds=
15027 finish_cmds=
15028 finish_eval=
15029 shlibpath_var=
15030 shlibpath_overrides_runpath=unknown
15031 version_type=none
15032 dynamic_linker="$host_os ld.so"
15033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15034 if test "$GCC" = yes; then
15035   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15036   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15037     # if the path contains ";" then we assume it to be the separator
15038     # otherwise default to the standard path separator (i.e. ":") - it is
15039     # assumed that no part of a normal pathname contains ";" but that should
15040     # okay in the real world where ";" in dirpaths is itself problematic.
15041     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15042   else
15043     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15044   fi
15045 else
15046   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15047 fi
15048 need_lib_prefix=unknown
15049 hardcode_into_libs=no
15050
15051 # when you set need_version to no, make sure it does not cause -set_version
15052 # flags to be left without arguments
15053 need_version=unknown
15054
15055 case $host_os in
15056 aix3*)
15057   version_type=linux
15058   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15059   shlibpath_var=LIBPATH
15060
15061   # AIX 3 has no versioning support, so we append a major version to the name.
15062   soname_spec='${libname}${release}${shared_ext}$major'
15063   ;;
15064
15065 aix4* | aix5*)
15066   version_type=linux
15067   need_lib_prefix=no
15068   need_version=no
15069   hardcode_into_libs=yes
15070   if test "$host_cpu" = ia64; then
15071     # AIX 5 supports IA64
15072     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15073     shlibpath_var=LD_LIBRARY_PATH
15074   else
15075     # With GCC up to 2.95.x, collect2 would create an import file
15076     # for dependence libraries.  The import file would start with
15077     # the line `#! .'.  This would cause the generated library to
15078     # depend on `.', always an invalid library.  This was fixed in
15079     # development snapshots of GCC prior to 3.0.
15080     case $host_os in
15081       aix4 | aix4.[01] | aix4.[01].*)
15082       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15083            echo ' yes '
15084            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15085         :
15086       else
15087         can_build_shared=no
15088       fi
15089       ;;
15090     esac
15091     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15092     # soname into executable. Probably we can add versioning support to
15093     # collect2, so additional links can be useful in future.
15094     if test "$aix_use_runtimelinking" = yes; then
15095       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15096       # instead of lib<name>.a to let people know that these are not
15097       # typical AIX shared libraries.
15098       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099     else
15100       # We preserve .a as extension for shared libraries through AIX4.2
15101       # and later when we are not doing run time linking.
15102       library_names_spec='${libname}${release}.a $libname.a'
15103       soname_spec='${libname}${release}${shared_ext}$major'
15104     fi
15105     shlibpath_var=LIBPATH
15106   fi
15107   ;;
15108
15109 amigaos*)
15110   library_names_spec='$libname.ixlibrary $libname.a'
15111   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15112   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'
15113   ;;
15114
15115 beos*)
15116   library_names_spec='${libname}${shared_ext}'
15117   dynamic_linker="$host_os ld.so"
15118   shlibpath_var=LIBRARY_PATH
15119   ;;
15120
15121 bsdi[45]*)
15122   version_type=linux
15123   need_version=no
15124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125   soname_spec='${libname}${release}${shared_ext}$major'
15126   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15127   shlibpath_var=LD_LIBRARY_PATH
15128   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15129   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15130   # the default ld.so.conf also contains /usr/contrib/lib and
15131   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15132   # libtool to hard-code these into programs
15133   ;;
15134
15135 cygwin* | mingw* | pw32*)
15136   version_type=windows
15137   shrext_cmds=".dll"
15138   need_version=no
15139   need_lib_prefix=no
15140
15141   case $GCC,$host_os in
15142   yes,cygwin* | yes,mingw* | yes,pw32*)
15143     library_names_spec='$libname.dll.a'
15144     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15145     postinstall_cmds='base_file=`basename \${file}`~
15146       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15147       dldir=$destdir/`dirname \$dlpath`~
15148       test -d \$dldir || mkdir -p \$dldir~
15149       $install_prog $dir/$dlname \$dldir/$dlname~
15150       chmod a+x \$dldir/$dlname'
15151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15152       dlpath=$dir/\$dldll~
15153        $rm \$dlpath'
15154     shlibpath_overrides_runpath=yes
15155
15156     case $host_os in
15157     cygwin*)
15158       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15159       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15160       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15161       ;;
15162     mingw*)
15163       # MinGW DLLs use traditional 'lib' prefix
15164       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15165       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15166       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15167         # It is most probably a Windows format PATH printed by
15168         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15169         # path with ; separators, and with drive letters. We can handle the
15170         # drive letters (cygwin fileutils understands them), so leave them,
15171         # especially as we might pass files found there to a mingw objdump,
15172         # which wouldn't understand a cygwinified path. Ahh.
15173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15174       else
15175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15176       fi
15177       ;;
15178     pw32*)
15179       # pw32 DLLs use 'pw' prefix rather than 'lib'
15180       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15181       ;;
15182     esac
15183     ;;
15184
15185   *)
15186     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15187     ;;
15188   esac
15189   dynamic_linker='Win32 ld.exe'
15190   # FIXME: first we should search . and the directory the executable is in
15191   shlibpath_var=PATH
15192   ;;
15193
15194 darwin* | rhapsody*)
15195   dynamic_linker="$host_os dyld"
15196   version_type=darwin
15197   need_lib_prefix=no
15198   need_version=no
15199   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15200   soname_spec='${libname}${release}${major}$shared_ext'
15201   shlibpath_overrides_runpath=yes
15202   shlibpath_var=DYLD_LIBRARY_PATH
15203   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15204   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15205   if test "$GCC" = yes; then
15206     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"`
15207   else
15208     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15209   fi
15210   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15211   ;;
15212
15213 dgux*)
15214   version_type=linux
15215   need_lib_prefix=no
15216   need_version=no
15217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15218   soname_spec='${libname}${release}${shared_ext}$major'
15219   shlibpath_var=LD_LIBRARY_PATH
15220   ;;
15221
15222 freebsd1*)
15223   dynamic_linker=no
15224   ;;
15225
15226 freebsd* | dragonfly*)
15227   # DragonFly does not have aout.  When/if they implement a new
15228   # versioning mechanism, adjust this.
15229   if test -x /usr/bin/objformat; then
15230     objformat=`/usr/bin/objformat`
15231   else
15232     case $host_os in
15233     freebsd[123]*) objformat=aout ;;
15234     *) objformat=elf ;;
15235     esac
15236   fi
15237   version_type=freebsd-$objformat
15238   case $version_type in
15239     freebsd-elf*)
15240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15241       need_version=no
15242       need_lib_prefix=no
15243       ;;
15244     freebsd-*)
15245       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15246       need_version=yes
15247       ;;
15248   esac
15249   shlibpath_var=LD_LIBRARY_PATH
15250   case $host_os in
15251   freebsd2*)
15252     shlibpath_overrides_runpath=yes
15253     ;;
15254   freebsd3.[01]* | freebsdelf3.[01]*)
15255     shlibpath_overrides_runpath=yes
15256     hardcode_into_libs=yes
15257     ;;
15258   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15259   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15260     shlibpath_overrides_runpath=no
15261     hardcode_into_libs=yes
15262     ;;
15263   freebsd*) # from 4.6 on
15264     shlibpath_overrides_runpath=yes
15265     hardcode_into_libs=yes
15266     ;;
15267   esac
15268   ;;
15269
15270 gnu*)
15271   version_type=linux
15272   need_lib_prefix=no
15273   need_version=no
15274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15275   soname_spec='${libname}${release}${shared_ext}$major'
15276   shlibpath_var=LD_LIBRARY_PATH
15277   hardcode_into_libs=yes
15278   ;;
15279
15280 hpux9* | hpux10* | hpux11*)
15281   # Give a soname corresponding to the major version so that dld.sl refuses to
15282   # link against other versions.
15283   version_type=sunos
15284   need_lib_prefix=no
15285   need_version=no
15286   case $host_cpu in
15287   ia64*)
15288     shrext_cmds='.so'
15289     hardcode_into_libs=yes
15290     dynamic_linker="$host_os dld.so"
15291     shlibpath_var=LD_LIBRARY_PATH
15292     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294     soname_spec='${libname}${release}${shared_ext}$major'
15295     if test "X$HPUX_IA64_MODE" = X32; then
15296       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15297     else
15298       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15299     fi
15300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15301     ;;
15302    hppa*64*)
15303      shrext_cmds='.sl'
15304      hardcode_into_libs=yes
15305      dynamic_linker="$host_os dld.sl"
15306      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15307      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15308      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309      soname_spec='${libname}${release}${shared_ext}$major'
15310      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15311      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15312      ;;
15313    *)
15314     shrext_cmds='.sl'
15315     dynamic_linker="$host_os dld.sl"
15316     shlibpath_var=SHLIB_PATH
15317     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319     soname_spec='${libname}${release}${shared_ext}$major'
15320     ;;
15321   esac
15322   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15323   postinstall_cmds='chmod 555 $lib'
15324   ;;
15325
15326 interix3*)
15327   version_type=linux
15328   need_lib_prefix=no
15329   need_version=no
15330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15331   soname_spec='${libname}${release}${shared_ext}$major'
15332   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15333   shlibpath_var=LD_LIBRARY_PATH
15334   shlibpath_overrides_runpath=no
15335   hardcode_into_libs=yes
15336   ;;
15337
15338 irix5* | irix6* | nonstopux*)
15339   case $host_os in
15340     nonstopux*) version_type=nonstopux ;;
15341     *)
15342         if test "$lt_cv_prog_gnu_ld" = yes; then
15343                 version_type=linux
15344         else
15345                 version_type=irix
15346         fi ;;
15347   esac
15348   need_lib_prefix=no
15349   need_version=no
15350   soname_spec='${libname}${release}${shared_ext}$major'
15351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15352   case $host_os in
15353   irix5* | nonstopux*)
15354     libsuff= shlibsuff=
15355     ;;
15356   *)
15357     case $LD in # libtool.m4 will add one of these switches to LD
15358     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15359       libsuff= shlibsuff= libmagic=32-bit;;
15360     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15361       libsuff=32 shlibsuff=N32 libmagic=N32;;
15362     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15363       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15364     *) libsuff= shlibsuff= libmagic=never-match;;
15365     esac
15366     ;;
15367   esac
15368   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15369   shlibpath_overrides_runpath=no
15370   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15371   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15372   hardcode_into_libs=yes
15373   ;;
15374
15375 # No shared lib support for Linux oldld, aout, or coff.
15376 linux*oldld* | linux*aout* | linux*coff*)
15377   dynamic_linker=no
15378   ;;
15379
15380 # This must be Linux ELF.
15381 linux* | k*bsd*-gnu)
15382   version_type=linux
15383   need_lib_prefix=no
15384   need_version=no
15385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386   soname_spec='${libname}${release}${shared_ext}$major'
15387   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15388   shlibpath_var=LD_LIBRARY_PATH
15389   shlibpath_overrides_runpath=no
15390   # This implies no fast_install, which is unacceptable.
15391   # Some rework will be needed to allow for fast_install
15392   # before this can be enabled.
15393   hardcode_into_libs=yes
15394
15395   # Append ld.so.conf contents to the search path
15396   if test -f /etc/ld.so.conf; then
15397     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15398     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15399   fi
15400
15401   # We used to test for /lib/ld.so.1 and disable shared libraries on
15402   # powerpc, because MkLinux only supported shared libraries with the
15403   # GNU dynamic linker.  Since this was broken with cross compilers,
15404   # most powerpc-linux boxes support dynamic linking these days and
15405   # people can always --disable-shared, the test was removed, and we
15406   # assume the GNU/Linux dynamic linker is in use.
15407   dynamic_linker='GNU/Linux ld.so'
15408   ;;
15409
15410 netbsdelf*-gnu)
15411   version_type=linux
15412   need_lib_prefix=no
15413   need_version=no
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   shlibpath_var=LD_LIBRARY_PATH
15417   shlibpath_overrides_runpath=no
15418   hardcode_into_libs=yes
15419   dynamic_linker='NetBSD ld.elf_so'
15420   ;;
15421
15422 netbsd*)
15423   version_type=sunos
15424   need_lib_prefix=no
15425   need_version=no
15426   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15428     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15429     dynamic_linker='NetBSD (a.out) ld.so'
15430   else
15431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15432     soname_spec='${libname}${release}${shared_ext}$major'
15433     dynamic_linker='NetBSD ld.elf_so'
15434   fi
15435   shlibpath_var=LD_LIBRARY_PATH
15436   shlibpath_overrides_runpath=yes
15437   hardcode_into_libs=yes
15438   ;;
15439
15440 newsos6)
15441   version_type=linux
15442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443   shlibpath_var=LD_LIBRARY_PATH
15444   shlibpath_overrides_runpath=yes
15445   ;;
15446
15447 nto-qnx*)
15448   version_type=linux
15449   need_lib_prefix=no
15450   need_version=no
15451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452   soname_spec='${libname}${release}${shared_ext}$major'
15453   shlibpath_var=LD_LIBRARY_PATH
15454   shlibpath_overrides_runpath=yes
15455   ;;
15456
15457 openbsd*)
15458   version_type=sunos
15459   sys_lib_dlsearch_path_spec="/usr/lib"
15460   need_lib_prefix=no
15461   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15462   case $host_os in
15463     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15464     *)                         need_version=no  ;;
15465   esac
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15467   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15468   shlibpath_var=LD_LIBRARY_PATH
15469   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15470     case $host_os in
15471       openbsd2.[89] | openbsd2.[89].*)
15472         shlibpath_overrides_runpath=no
15473         ;;
15474       *)
15475         shlibpath_overrides_runpath=yes
15476         ;;
15477       esac
15478   else
15479     shlibpath_overrides_runpath=yes
15480   fi
15481   ;;
15482
15483 os2*)
15484   libname_spec='$name'
15485   shrext_cmds=".dll"
15486   need_lib_prefix=no
15487   library_names_spec='$libname${shared_ext} $libname.a'
15488   dynamic_linker='OS/2 ld.exe'
15489   shlibpath_var=LIBPATH
15490   ;;
15491
15492 osf3* | osf4* | osf5*)
15493   version_type=osf
15494   need_lib_prefix=no
15495   need_version=no
15496   soname_spec='${libname}${release}${shared_ext}$major'
15497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498   shlibpath_var=LD_LIBRARY_PATH
15499   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15500   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15501   ;;
15502
15503 solaris*)
15504   version_type=linux
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   shlibpath_var=LD_LIBRARY_PATH
15510   shlibpath_overrides_runpath=yes
15511   hardcode_into_libs=yes
15512   # ldd complains unless libraries are executable
15513   postinstall_cmds='chmod +x $lib'
15514   ;;
15515
15516 sunos4*)
15517   version_type=sunos
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15519   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15520   shlibpath_var=LD_LIBRARY_PATH
15521   shlibpath_overrides_runpath=yes
15522   if test "$with_gnu_ld" = yes; then
15523     need_lib_prefix=no
15524   fi
15525   need_version=yes
15526   ;;
15527
15528 sysv4 | sysv4.3*)
15529   version_type=linux
15530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531   soname_spec='${libname}${release}${shared_ext}$major'
15532   shlibpath_var=LD_LIBRARY_PATH
15533   case $host_vendor in
15534     sni)
15535       shlibpath_overrides_runpath=no
15536       need_lib_prefix=no
15537       export_dynamic_flag_spec='${wl}-Blargedynsym'
15538       runpath_var=LD_RUN_PATH
15539       ;;
15540     siemens)
15541       need_lib_prefix=no
15542       ;;
15543     motorola)
15544       need_lib_prefix=no
15545       need_version=no
15546       shlibpath_overrides_runpath=no
15547       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15548       ;;
15549   esac
15550   ;;
15551
15552 sysv4*MP*)
15553   if test -d /usr/nec ;then
15554     version_type=linux
15555     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15556     soname_spec='$libname${shared_ext}.$major'
15557     shlibpath_var=LD_LIBRARY_PATH
15558   fi
15559   ;;
15560
15561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15562   version_type=freebsd-elf
15563   need_lib_prefix=no
15564   need_version=no
15565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15566   soname_spec='${libname}${release}${shared_ext}$major'
15567   shlibpath_var=LD_LIBRARY_PATH
15568   hardcode_into_libs=yes
15569   if test "$with_gnu_ld" = yes; then
15570     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15571     shlibpath_overrides_runpath=no
15572   else
15573     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15574     shlibpath_overrides_runpath=yes
15575     case $host_os in
15576       sco3.2v5*)
15577         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15578         ;;
15579     esac
15580   fi
15581   sys_lib_dlsearch_path_spec='/usr/lib'
15582   ;;
15583
15584 uts4*)
15585   version_type=linux
15586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587   soname_spec='${libname}${release}${shared_ext}$major'
15588   shlibpath_var=LD_LIBRARY_PATH
15589   ;;
15590
15591 *)
15592   dynamic_linker=no
15593   ;;
15594 esac
15595 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15596 echo "${ECHO_T}$dynamic_linker" >&6; }
15597 test "$dynamic_linker" = no && can_build_shared=no
15598
15599 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15600 if test "$GCC" = yes; then
15601   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15602 fi
15603
15604 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15605 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15606 hardcode_action_F77=
15607 if test -n "$hardcode_libdir_flag_spec_F77" || \
15608    test -n "$runpath_var_F77" || \
15609    test "X$hardcode_automatic_F77" = "Xyes" ; then
15610
15611   # We can hardcode non-existant directories.
15612   if test "$hardcode_direct_F77" != no &&
15613      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15614      # have to relink, otherwise we might link with an installed library
15615      # when we should be linking with a yet-to-be-installed one
15616      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15617      test "$hardcode_minus_L_F77" != no; then
15618     # Linking always hardcodes the temporary library directory.
15619     hardcode_action_F77=relink
15620   else
15621     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15622     hardcode_action_F77=immediate
15623   fi
15624 else
15625   # We cannot hardcode anything, or else we can only hardcode existing
15626   # directories.
15627   hardcode_action_F77=unsupported
15628 fi
15629 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15630 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15631
15632 if test "$hardcode_action_F77" = relink; then
15633   # Fast installation is not supported
15634   enable_fast_install=no
15635 elif test "$shlibpath_overrides_runpath" = yes ||
15636      test "$enable_shared" = no; then
15637   # Fast installation is not necessary
15638   enable_fast_install=needless
15639 fi
15640
15641
15642 # The else clause should only fire when bootstrapping the
15643 # libtool distribution, otherwise you forgot to ship ltmain.sh
15644 # with your package, and you will get complaints that there are
15645 # no rules to generate ltmain.sh.
15646 if test -f "$ltmain"; then
15647   # See if we are running on zsh, and set the options which allow our commands through
15648   # without removal of \ escapes.
15649   if test -n "${ZSH_VERSION+set}" ; then
15650     setopt NO_GLOB_SUBST
15651   fi
15652   # Now quote all the things that may contain metacharacters while being
15653   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15654   # variables and quote the copies for generation of the libtool script.
15655   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15656     SED SHELL STRIP \
15657     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15658     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15659     deplibs_check_method reload_flag reload_cmds need_locks \
15660     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15661     lt_cv_sys_global_symbol_to_c_name_address \
15662     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15663     old_postinstall_cmds old_postuninstall_cmds \
15664     compiler_F77 \
15665     CC_F77 \
15666     LD_F77 \
15667     lt_prog_compiler_wl_F77 \
15668     lt_prog_compiler_pic_F77 \
15669     lt_prog_compiler_static_F77 \
15670     lt_prog_compiler_no_builtin_flag_F77 \
15671     export_dynamic_flag_spec_F77 \
15672     thread_safe_flag_spec_F77 \
15673     whole_archive_flag_spec_F77 \
15674     enable_shared_with_static_runtimes_F77 \
15675     old_archive_cmds_F77 \
15676     old_archive_from_new_cmds_F77 \
15677     predep_objects_F77 \
15678     postdep_objects_F77 \
15679     predeps_F77 \
15680     postdeps_F77 \
15681     compiler_lib_search_path_F77 \
15682     archive_cmds_F77 \
15683     archive_expsym_cmds_F77 \
15684     postinstall_cmds_F77 \
15685     postuninstall_cmds_F77 \
15686     old_archive_from_expsyms_cmds_F77 \
15687     allow_undefined_flag_F77 \
15688     no_undefined_flag_F77 \
15689     export_symbols_cmds_F77 \
15690     hardcode_libdir_flag_spec_F77 \
15691     hardcode_libdir_flag_spec_ld_F77 \
15692     hardcode_libdir_separator_F77 \
15693     hardcode_automatic_F77 \
15694     module_cmds_F77 \
15695     module_expsym_cmds_F77 \
15696     lt_cv_prog_compiler_c_o_F77 \
15697     exclude_expsyms_F77 \
15698     include_expsyms_F77; do
15699
15700     case $var in
15701     old_archive_cmds_F77 | \
15702     old_archive_from_new_cmds_F77 | \
15703     archive_cmds_F77 | \
15704     archive_expsym_cmds_F77 | \
15705     module_cmds_F77 | \
15706     module_expsym_cmds_F77 | \
15707     old_archive_from_expsyms_cmds_F77 | \
15708     export_symbols_cmds_F77 | \
15709     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15710     postinstall_cmds | postuninstall_cmds | \
15711     old_postinstall_cmds | old_postuninstall_cmds | \
15712     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15713       # Double-quote double-evaled strings.
15714       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15715       ;;
15716     *)
15717       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15718       ;;
15719     esac
15720   done
15721
15722   case $lt_echo in
15723   *'\$0 --fallback-echo"')
15724     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15725     ;;
15726   esac
15727
15728 cfgfile="$ofile"
15729
15730   cat <<__EOF__ >> "$cfgfile"
15731 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15732
15733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15734
15735 # Shell to use when invoking shell scripts.
15736 SHELL=$lt_SHELL
15737
15738 # Whether or not to build shared libraries.
15739 build_libtool_libs=$enable_shared
15740
15741 # Whether or not to build static libraries.
15742 build_old_libs=$enable_static
15743
15744 # Whether or not to add -lc for building shared libraries.
15745 build_libtool_need_lc=$archive_cmds_need_lc_F77
15746
15747 # Whether or not to disallow shared libs when runtime libs are static
15748 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15749
15750 # Whether or not to optimize for fast installation.
15751 fast_install=$enable_fast_install
15752
15753 # The host system.
15754 host_alias=$host_alias
15755 host=$host
15756 host_os=$host_os
15757
15758 # The build system.
15759 build_alias=$build_alias
15760 build=$build
15761 build_os=$build_os
15762
15763 # An echo program that does not interpret backslashes.
15764 echo=$lt_echo
15765
15766 # The archiver.
15767 AR=$lt_AR
15768 AR_FLAGS=$lt_AR_FLAGS
15769
15770 # A C compiler.
15771 LTCC=$lt_LTCC
15772
15773 # LTCC compiler flags.
15774 LTCFLAGS=$lt_LTCFLAGS
15775
15776 # A language-specific compiler.
15777 CC=$lt_compiler_F77
15778
15779 # Is the compiler the GNU C compiler?
15780 with_gcc=$GCC_F77
15781
15782 # An ERE matcher.
15783 EGREP=$lt_EGREP
15784
15785 # The linker used to build libraries.
15786 LD=$lt_LD_F77
15787
15788 # Whether we need hard or soft links.
15789 LN_S=$lt_LN_S
15790
15791 # A BSD-compatible nm program.
15792 NM=$lt_NM
15793
15794 # A symbol stripping program
15795 STRIP=$lt_STRIP
15796
15797 # Used to examine libraries when file_magic_cmd begins "file"
15798 MAGIC_CMD=$MAGIC_CMD
15799
15800 # Used on cygwin: DLL creation program.
15801 DLLTOOL="$DLLTOOL"
15802
15803 # Used on cygwin: object dumper.
15804 OBJDUMP="$OBJDUMP"
15805
15806 # Used on cygwin: assembler.
15807 AS="$AS"
15808
15809 # The name of the directory that contains temporary libtool files.
15810 objdir=$objdir
15811
15812 # How to create reloadable object files.
15813 reload_flag=$lt_reload_flag
15814 reload_cmds=$lt_reload_cmds
15815
15816 # How to pass a linker flag through the compiler.
15817 wl=$lt_lt_prog_compiler_wl_F77
15818
15819 # Object file suffix (normally "o").
15820 objext="$ac_objext"
15821
15822 # Old archive suffix (normally "a").
15823 libext="$libext"
15824
15825 # Shared library suffix (normally ".so").
15826 shrext_cmds='$shrext_cmds'
15827
15828 # Executable file suffix (normally "").
15829 exeext="$exeext"
15830
15831 # Additional compiler flags for building library objects.
15832 pic_flag=$lt_lt_prog_compiler_pic_F77
15833 pic_mode=$pic_mode
15834
15835 # What is the maximum length of a command?
15836 max_cmd_len=$lt_cv_sys_max_cmd_len
15837
15838 # Does compiler simultaneously support -c and -o options?
15839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15840
15841 # Must we lock files when doing compilation?
15842 need_locks=$lt_need_locks
15843
15844 # Do we need the lib prefix for modules?
15845 need_lib_prefix=$need_lib_prefix
15846
15847 # Do we need a version for libraries?
15848 need_version=$need_version
15849
15850 # Whether dlopen is supported.
15851 dlopen_support=$enable_dlopen
15852
15853 # Whether dlopen of programs is supported.
15854 dlopen_self=$enable_dlopen_self
15855
15856 # Whether dlopen of statically linked programs is supported.
15857 dlopen_self_static=$enable_dlopen_self_static
15858
15859 # Compiler flag to prevent dynamic linking.
15860 link_static_flag=$lt_lt_prog_compiler_static_F77
15861
15862 # Compiler flag to turn off builtin functions.
15863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15864
15865 # Compiler flag to allow reflexive dlopens.
15866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15867
15868 # Compiler flag to generate shared objects directly from archives.
15869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15870
15871 # Compiler flag to generate thread-safe objects.
15872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15873
15874 # Library versioning type.
15875 version_type=$version_type
15876
15877 # Format of library name prefix.
15878 libname_spec=$lt_libname_spec
15879
15880 # List of archive names.  First name is the real one, the rest are links.
15881 # The last name is the one that the linker finds with -lNAME.
15882 library_names_spec=$lt_library_names_spec
15883
15884 # The coded name of the library, if different from the real name.
15885 soname_spec=$lt_soname_spec
15886
15887 # Commands used to build and install an old-style archive.
15888 RANLIB=$lt_RANLIB
15889 old_archive_cmds=$lt_old_archive_cmds_F77
15890 old_postinstall_cmds=$lt_old_postinstall_cmds
15891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15892
15893 # Create an old-style archive from a shared archive.
15894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15895
15896 # Create a temporary old-style archive to link instead of a shared archive.
15897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15898
15899 # Commands used to build and install a shared archive.
15900 archive_cmds=$lt_archive_cmds_F77
15901 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15902 postinstall_cmds=$lt_postinstall_cmds
15903 postuninstall_cmds=$lt_postuninstall_cmds
15904
15905 # Commands used to build a loadable module (assumed same as above if empty)
15906 module_cmds=$lt_module_cmds_F77
15907 module_expsym_cmds=$lt_module_expsym_cmds_F77
15908
15909 # Commands to strip libraries.
15910 old_striplib=$lt_old_striplib
15911 striplib=$lt_striplib
15912
15913 # Dependencies to place before the objects being linked to create a
15914 # shared library.
15915 predep_objects=$lt_predep_objects_F77
15916
15917 # Dependencies to place after the objects being linked to create a
15918 # shared library.
15919 postdep_objects=$lt_postdep_objects_F77
15920
15921 # Dependencies to place before the objects being linked to create a
15922 # shared library.
15923 predeps=$lt_predeps_F77
15924
15925 # Dependencies to place after the objects being linked to create a
15926 # shared library.
15927 postdeps=$lt_postdeps_F77
15928
15929 # The library search path used internally by the compiler when linking
15930 # a shared library.
15931 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15932
15933 # Method to check whether dependent libraries are shared objects.
15934 deplibs_check_method=$lt_deplibs_check_method
15935
15936 # Command to use when deplibs_check_method == file_magic.
15937 file_magic_cmd=$lt_file_magic_cmd
15938
15939 # Flag that allows shared libraries with undefined symbols to be built.
15940 allow_undefined_flag=$lt_allow_undefined_flag_F77
15941
15942 # Flag that forces no undefined symbols.
15943 no_undefined_flag=$lt_no_undefined_flag_F77
15944
15945 # Commands used to finish a libtool library installation in a directory.
15946 finish_cmds=$lt_finish_cmds
15947
15948 # Same as above, but a single script fragment to be evaled but not shown.
15949 finish_eval=$lt_finish_eval
15950
15951 # Take the output of nm and produce a listing of raw symbols and C names.
15952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15953
15954 # Transform the output of nm in a proper C declaration
15955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15956
15957 # Transform the output of nm in a C name address pair
15958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15959
15960 # This is the shared library runtime path variable.
15961 runpath_var=$runpath_var
15962
15963 # This is the shared library path variable.
15964 shlibpath_var=$shlibpath_var
15965
15966 # Is shlibpath searched before the hard-coded library search path?
15967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15968
15969 # How to hardcode a shared library path into an executable.
15970 hardcode_action=$hardcode_action_F77
15971
15972 # Whether we should hardcode library paths into libraries.
15973 hardcode_into_libs=$hardcode_into_libs
15974
15975 # Flag to hardcode \$libdir into a binary during linking.
15976 # This must work even if \$libdir does not exist.
15977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15978
15979 # If ld is used when linking, flag to hardcode \$libdir into
15980 # a binary during linking. This must work even if \$libdir does
15981 # not exist.
15982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15983
15984 # Whether we need a single -rpath flag with a separated argument.
15985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15986
15987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15988 # resulting binary.
15989 hardcode_direct=$hardcode_direct_F77
15990
15991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15992 # resulting binary.
15993 hardcode_minus_L=$hardcode_minus_L_F77
15994
15995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15996 # the resulting binary.
15997 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15998
15999 # Set to yes if building a shared library automatically hardcodes DIR into the library
16000 # and all subsequent libraries and executables linked against it.
16001 hardcode_automatic=$hardcode_automatic_F77
16002
16003 # Variables whose values should be saved in libtool wrapper scripts and
16004 # restored at relink time.
16005 variables_saved_for_relink="$variables_saved_for_relink"
16006
16007 # Whether libtool must link a program against all its dependency libraries.
16008 link_all_deplibs=$link_all_deplibs_F77
16009
16010 # Compile-time system search path for libraries
16011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16012
16013 # Run-time system search path for libraries
16014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16015
16016 # Fix the shell variable \$srcfile for the compiler.
16017 fix_srcfile_path="$fix_srcfile_path_F77"
16018
16019 # Set to yes if exported symbols are required.
16020 always_export_symbols=$always_export_symbols_F77
16021
16022 # The commands to list exported symbols.
16023 export_symbols_cmds=$lt_export_symbols_cmds_F77
16024
16025 # The commands to extract the exported symbol list from a shared archive.
16026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16027
16028 # Symbols that should not be listed in the preloaded symbols.
16029 exclude_expsyms=$lt_exclude_expsyms_F77
16030
16031 # Symbols that must always be exported.
16032 include_expsyms=$lt_include_expsyms_F77
16033
16034 # ### END LIBTOOL TAG CONFIG: $tagname
16035
16036 __EOF__
16037
16038
16039 else
16040   # If there is no Makefile yet, we rely on a make rule to execute
16041   # `config.status --recheck' to rerun these tests and create the
16042   # libtool script then.
16043   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16044   if test -f "$ltmain_in"; then
16045     test -f Makefile && make "$ltmain"
16046   fi
16047 fi
16048
16049
16050 ac_ext=c
16051 ac_cpp='$CPP $CPPFLAGS'
16052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16055
16056 CC="$lt_save_CC"
16057
16058         else
16059           tagname=""
16060         fi
16061         ;;
16062
16063       GCJ)
16064         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16065
16066
16067 # Source file extension for Java test sources.
16068 ac_ext=java
16069
16070 # Object file extension for compiled Java test sources.
16071 objext=o
16072 objext_GCJ=$objext
16073
16074 # Code to be used in simple compile tests
16075 lt_simple_compile_test_code="class foo {}\n"
16076
16077 # Code to be used in simple link tests
16078 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16079
16080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16081
16082 # If no C compiler was specified, use CC.
16083 LTCC=${LTCC-"$CC"}
16084
16085 # If no C compiler flags were specified, use CFLAGS.
16086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16087
16088 # Allow CC to be a program name with arguments.
16089 compiler=$CC
16090
16091
16092 # save warnings/boilerplate of simple test code
16093 ac_outfile=conftest.$ac_objext
16094 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16096 _lt_compiler_boilerplate=`cat conftest.err`
16097 $rm conftest*
16098
16099 ac_outfile=conftest.$ac_objext
16100 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16102 _lt_linker_boilerplate=`cat conftest.err`
16103 $rm conftest*
16104
16105
16106 # Allow CC to be a program name with arguments.
16107 lt_save_CC="$CC"
16108 CC=${GCJ-"gcj"}
16109 compiler=$CC
16110 compiler_GCJ=$CC
16111 for cc_temp in $compiler""; do
16112   case $cc_temp in
16113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16115     \-*) ;;
16116     *) break;;
16117   esac
16118 done
16119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16120
16121
16122 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16123 archive_cmds_need_lc_GCJ=no
16124
16125 old_archive_cmds_GCJ=$old_archive_cmds
16126
16127
16128 lt_prog_compiler_no_builtin_flag_GCJ=
16129
16130 if test "$GCC" = yes; then
16131   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16132
16133
16134 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16135 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   lt_cv_prog_compiler_rtti_exceptions=no
16140   ac_outfile=conftest.$ac_objext
16141    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16142    lt_compiler_flag="-fno-rtti -fno-exceptions"
16143    # Insert the option either (1) after the last *FLAGS variable, or
16144    # (2) before a word containing "conftest.", or (3) at the end.
16145    # Note that $ac_compile itself does not contain backslashes and begins
16146    # with a dollar sign (not a hyphen), so the echo should work correctly.
16147    # The option is referenced via a variable to avoid confusing sed.
16148    lt_compile=`echo "$ac_compile" | $SED \
16149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16151    -e 's:$: $lt_compiler_flag:'`
16152    (eval echo "\"\$as_me:16152: $lt_compile\"" >&5)
16153    (eval "$lt_compile" 2>conftest.err)
16154    ac_status=$?
16155    cat conftest.err >&5
16156    echo "$as_me:16156: \$? = $ac_status" >&5
16157    if (exit $ac_status) && test -s "$ac_outfile"; then
16158      # The compiler can only warn and ignore the option if not recognized
16159      # So say no if there are warnings other than the usual output.
16160      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16161      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16162      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16163        lt_cv_prog_compiler_rtti_exceptions=yes
16164      fi
16165    fi
16166    $rm conftest*
16167
16168 fi
16169 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16170 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16171
16172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16173     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16174 else
16175     :
16176 fi
16177
16178 fi
16179
16180 lt_prog_compiler_wl_GCJ=
16181 lt_prog_compiler_pic_GCJ=
16182 lt_prog_compiler_static_GCJ=
16183
16184 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16185 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16186
16187   if test "$GCC" = yes; then
16188     lt_prog_compiler_wl_GCJ='-Wl,'
16189     lt_prog_compiler_static_GCJ='-static'
16190
16191     case $host_os in
16192       aix*)
16193       # All AIX code is PIC.
16194       if test "$host_cpu" = ia64; then
16195         # AIX 5 now supports IA64 processor
16196         lt_prog_compiler_static_GCJ='-Bstatic'
16197       fi
16198       ;;
16199
16200     amigaos*)
16201       # FIXME: we need at least 68020 code to build shared libraries, but
16202       # adding the `-m68020' flag to GCC prevents building anything better,
16203       # like `-m68040'.
16204       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16205       ;;
16206
16207     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16208       # PIC is the default for these OSes.
16209       ;;
16210
16211     mingw* | pw32* | os2*)
16212       # This hack is so that the source file can tell whether it is being
16213       # built for inclusion in a dll (and should export symbols for example).
16214       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16215       ;;
16216
16217     darwin* | rhapsody*)
16218       # PIC is the default on this platform
16219       # Common symbols not allowed in MH_DYLIB files
16220       lt_prog_compiler_pic_GCJ='-fno-common'
16221       ;;
16222
16223     interix3*)
16224       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16225       # Instead, we relocate shared libraries at runtime.
16226       ;;
16227
16228     msdosdjgpp*)
16229       # Just because we use GCC doesn't mean we suddenly get shared libraries
16230       # on systems that don't support them.
16231       lt_prog_compiler_can_build_shared_GCJ=no
16232       enable_shared=no
16233       ;;
16234
16235     sysv4*MP*)
16236       if test -d /usr/nec; then
16237         lt_prog_compiler_pic_GCJ=-Kconform_pic
16238       fi
16239       ;;
16240
16241     hpux*)
16242       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16243       # not for PA HP-UX.
16244       case $host_cpu in
16245       hppa*64*|ia64*)
16246         # +Z the default
16247         ;;
16248       *)
16249         lt_prog_compiler_pic_GCJ='-fPIC'
16250         ;;
16251       esac
16252       ;;
16253
16254     *)
16255       lt_prog_compiler_pic_GCJ='-fPIC'
16256       ;;
16257     esac
16258   else
16259     # PORTME Check for flag to pass linker flags through the system compiler.
16260     case $host_os in
16261     aix*)
16262       lt_prog_compiler_wl_GCJ='-Wl,'
16263       if test "$host_cpu" = ia64; then
16264         # AIX 5 now supports IA64 processor
16265         lt_prog_compiler_static_GCJ='-Bstatic'
16266       else
16267         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16268       fi
16269       ;;
16270       darwin*)
16271         # PIC is the default on this platform
16272         # Common symbols not allowed in MH_DYLIB files
16273        case $cc_basename in
16274          xlc*)
16275          lt_prog_compiler_pic_GCJ='-qnocommon'
16276          lt_prog_compiler_wl_GCJ='-Wl,'
16277          ;;
16278        esac
16279        ;;
16280
16281     mingw* | pw32* | os2*)
16282       # This hack is so that the source file can tell whether it is being
16283       # built for inclusion in a dll (and should export symbols for example).
16284       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16285       ;;
16286
16287     hpux9* | hpux10* | hpux11*)
16288       lt_prog_compiler_wl_GCJ='-Wl,'
16289       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16290       # not for PA HP-UX.
16291       case $host_cpu in
16292       hppa*64*|ia64*)
16293         # +Z the default
16294         ;;
16295       *)
16296         lt_prog_compiler_pic_GCJ='+Z'
16297         ;;
16298       esac
16299       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16300       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16301       ;;
16302
16303     irix5* | irix6* | nonstopux*)
16304       lt_prog_compiler_wl_GCJ='-Wl,'
16305       # PIC (with -KPIC) is the default.
16306       lt_prog_compiler_static_GCJ='-non_shared'
16307       ;;
16308
16309     newsos6)
16310       lt_prog_compiler_pic_GCJ='-KPIC'
16311       lt_prog_compiler_static_GCJ='-Bstatic'
16312       ;;
16313
16314     linux* | k*bsd*-gnu)
16315       case $cc_basename in
16316       icc* | ecc*)
16317         lt_prog_compiler_wl_GCJ='-Wl,'
16318         lt_prog_compiler_pic_GCJ='-KPIC'
16319         lt_prog_compiler_static_GCJ='-static'
16320         ;;
16321       pgcc* | pgf77* | pgf90* | pgf95*)
16322         # Portland Group compilers (*not* the Pentium gcc compiler,
16323         # which looks to be a dead project)
16324         lt_prog_compiler_wl_GCJ='-Wl,'
16325         lt_prog_compiler_pic_GCJ='-fpic'
16326         lt_prog_compiler_static_GCJ='-Bstatic'
16327         ;;
16328       ccc*)
16329         lt_prog_compiler_wl_GCJ='-Wl,'
16330         # All Alpha code is PIC.
16331         lt_prog_compiler_static_GCJ='-non_shared'
16332         ;;
16333       esac
16334       ;;
16335
16336     osf3* | osf4* | osf5*)
16337       lt_prog_compiler_wl_GCJ='-Wl,'
16338       # All OSF/1 code is PIC.
16339       lt_prog_compiler_static_GCJ='-non_shared'
16340       ;;
16341
16342     solaris*)
16343       lt_prog_compiler_pic_GCJ='-KPIC'
16344       lt_prog_compiler_static_GCJ='-Bstatic'
16345       case $cc_basename in
16346       f77* | f90* | f95*)
16347         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16348       *)
16349         lt_prog_compiler_wl_GCJ='-Wl,';;
16350       esac
16351       ;;
16352
16353     sunos4*)
16354       lt_prog_compiler_wl_GCJ='-Qoption ld '
16355       lt_prog_compiler_pic_GCJ='-PIC'
16356       lt_prog_compiler_static_GCJ='-Bstatic'
16357       ;;
16358
16359     sysv4 | sysv4.2uw2* | sysv4.3*)
16360       lt_prog_compiler_wl_GCJ='-Wl,'
16361       lt_prog_compiler_pic_GCJ='-KPIC'
16362       lt_prog_compiler_static_GCJ='-Bstatic'
16363       ;;
16364
16365     sysv4*MP*)
16366       if test -d /usr/nec ;then
16367         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16368         lt_prog_compiler_static_GCJ='-Bstatic'
16369       fi
16370       ;;
16371
16372     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16373       lt_prog_compiler_wl_GCJ='-Wl,'
16374       lt_prog_compiler_pic_GCJ='-KPIC'
16375       lt_prog_compiler_static_GCJ='-Bstatic'
16376       ;;
16377
16378     unicos*)
16379       lt_prog_compiler_wl_GCJ='-Wl,'
16380       lt_prog_compiler_can_build_shared_GCJ=no
16381       ;;
16382
16383     uts4*)
16384       lt_prog_compiler_pic_GCJ='-pic'
16385       lt_prog_compiler_static_GCJ='-Bstatic'
16386       ;;
16387
16388     *)
16389       lt_prog_compiler_can_build_shared_GCJ=no
16390       ;;
16391     esac
16392   fi
16393
16394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16395 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16396
16397 #
16398 # Check to make sure the PIC flag actually works.
16399 #
16400 if test -n "$lt_prog_compiler_pic_GCJ"; then
16401
16402 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16403 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16404 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407   lt_prog_compiler_pic_works_GCJ=no
16408   ac_outfile=conftest.$ac_objext
16409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16410    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16411    # Insert the option either (1) after the last *FLAGS variable, or
16412    # (2) before a word containing "conftest.", or (3) at the end.
16413    # Note that $ac_compile itself does not contain backslashes and begins
16414    # with a dollar sign (not a hyphen), so the echo should work correctly.
16415    # The option is referenced via a variable to avoid confusing sed.
16416    lt_compile=`echo "$ac_compile" | $SED \
16417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16419    -e 's:$: $lt_compiler_flag:'`
16420    (eval echo "\"\$as_me:16420: $lt_compile\"" >&5)
16421    (eval "$lt_compile" 2>conftest.err)
16422    ac_status=$?
16423    cat conftest.err >&5
16424    echo "$as_me:16424: \$? = $ac_status" >&5
16425    if (exit $ac_status) && test -s "$ac_outfile"; then
16426      # The compiler can only warn and ignore the option if not recognized
16427      # So say no if there are warnings other than the usual output.
16428      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16429      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16430      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16431        lt_prog_compiler_pic_works_GCJ=yes
16432      fi
16433    fi
16434    $rm conftest*
16435
16436 fi
16437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16438 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16439
16440 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16441     case $lt_prog_compiler_pic_GCJ in
16442      "" | " "*) ;;
16443      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16444      esac
16445 else
16446     lt_prog_compiler_pic_GCJ=
16447      lt_prog_compiler_can_build_shared_GCJ=no
16448 fi
16449
16450 fi
16451 case $host_os in
16452   # For platforms which do not support PIC, -DPIC is meaningless:
16453   *djgpp*)
16454     lt_prog_compiler_pic_GCJ=
16455     ;;
16456   *)
16457     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16458     ;;
16459 esac
16460
16461 #
16462 # Check to make sure the static flag actually works.
16463 #
16464 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16465 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16466 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16467 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16468   echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470   lt_prog_compiler_static_works_GCJ=no
16471    save_LDFLAGS="$LDFLAGS"
16472    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16473    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16474    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16475      # The linker can only warn and ignore the option if not recognized
16476      # So say no if there are warnings
16477      if test -s conftest.err; then
16478        # Append any errors to the config.log.
16479        cat conftest.err 1>&5
16480        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16481        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16482        if diff conftest.exp conftest.er2 >/dev/null; then
16483          lt_prog_compiler_static_works_GCJ=yes
16484        fi
16485      else
16486        lt_prog_compiler_static_works_GCJ=yes
16487      fi
16488    fi
16489    $rm conftest*
16490    LDFLAGS="$save_LDFLAGS"
16491
16492 fi
16493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16494 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16495
16496 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16497     :
16498 else
16499     lt_prog_compiler_static_GCJ=
16500 fi
16501
16502
16503 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16504 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16505 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   lt_cv_prog_compiler_c_o_GCJ=no
16509    $rm -r conftest 2>/dev/null
16510    mkdir conftest
16511    cd conftest
16512    mkdir out
16513    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16514
16515    lt_compiler_flag="-o out/conftest2.$ac_objext"
16516    # Insert the option either (1) after the last *FLAGS variable, or
16517    # (2) before a word containing "conftest.", or (3) at the end.
16518    # Note that $ac_compile itself does not contain backslashes and begins
16519    # with a dollar sign (not a hyphen), so the echo should work correctly.
16520    lt_compile=`echo "$ac_compile" | $SED \
16521    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16523    -e 's:$: $lt_compiler_flag:'`
16524    (eval echo "\"\$as_me:16524: $lt_compile\"" >&5)
16525    (eval "$lt_compile" 2>out/conftest.err)
16526    ac_status=$?
16527    cat out/conftest.err >&5
16528    echo "$as_me:16528: \$? = $ac_status" >&5
16529    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16530    then
16531      # The compiler can only warn and ignore the option if not recognized
16532      # So say no if there are warnings
16533      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16534      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16535      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16536        lt_cv_prog_compiler_c_o_GCJ=yes
16537      fi
16538    fi
16539    chmod u+w . 2>&5
16540    $rm conftest*
16541    # SGI C++ compiler will create directory out/ii_files/ for
16542    # template instantiation
16543    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16544    $rm out/* && rmdir out
16545    cd ..
16546    rmdir conftest
16547    $rm conftest*
16548
16549 fi
16550 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16552
16553
16554 hard_links="nottested"
16555 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16556   # do not overwrite the value of need_locks provided by the user
16557   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16559   hard_links=yes
16560   $rm conftest*
16561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16562   touch conftest.a
16563   ln conftest.a conftest.b 2>&5 || hard_links=no
16564   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16565   { echo "$as_me:$LINENO: result: $hard_links" >&5
16566 echo "${ECHO_T}$hard_links" >&6; }
16567   if test "$hard_links" = no; then
16568     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16570     need_locks=warn
16571   fi
16572 else
16573   need_locks=no
16574 fi
16575
16576 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16578
16579   runpath_var=
16580   allow_undefined_flag_GCJ=
16581   enable_shared_with_static_runtimes_GCJ=no
16582   archive_cmds_GCJ=
16583   archive_expsym_cmds_GCJ=
16584   old_archive_From_new_cmds_GCJ=
16585   old_archive_from_expsyms_cmds_GCJ=
16586   export_dynamic_flag_spec_GCJ=
16587   whole_archive_flag_spec_GCJ=
16588   thread_safe_flag_spec_GCJ=
16589   hardcode_libdir_flag_spec_GCJ=
16590   hardcode_libdir_flag_spec_ld_GCJ=
16591   hardcode_libdir_separator_GCJ=
16592   hardcode_direct_GCJ=no
16593   hardcode_minus_L_GCJ=no
16594   hardcode_shlibpath_var_GCJ=unsupported
16595   link_all_deplibs_GCJ=unknown
16596   hardcode_automatic_GCJ=no
16597   module_cmds_GCJ=
16598   module_expsym_cmds_GCJ=
16599   always_export_symbols_GCJ=no
16600   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16601   # include_expsyms should be a list of space-separated symbols to be *always*
16602   # included in the symbol list
16603   include_expsyms_GCJ=
16604   # exclude_expsyms can be an extended regexp of symbols to exclude
16605   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16606   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16607   # as well as any symbol that contains `d'.
16608   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16609   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16610   # platforms (ab)use it in PIC code, but their linkers get confused if
16611   # the symbol is explicitly referenced.  Since portable code cannot
16612   # rely on this symbol name, it's probably fine to never include it in
16613   # preloaded symbol tables.
16614   extract_expsyms_cmds=
16615   # Just being paranoid about ensuring that cc_basename is set.
16616   for cc_temp in $compiler""; do
16617   case $cc_temp in
16618     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16619     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16620     \-*) ;;
16621     *) break;;
16622   esac
16623 done
16624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16625
16626   case $host_os in
16627   cygwin* | mingw* | pw32*)
16628     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16629     # When not using gcc, we currently assume that we are using
16630     # Microsoft Visual C++.
16631     if test "$GCC" != yes; then
16632       with_gnu_ld=no
16633     fi
16634     ;;
16635   interix*)
16636     # we just hope/assume this is gcc and not c89 (= MSVC++)
16637     with_gnu_ld=yes
16638     ;;
16639   openbsd*)
16640     with_gnu_ld=no
16641     ;;
16642   esac
16643
16644   ld_shlibs_GCJ=yes
16645   if test "$with_gnu_ld" = yes; then
16646     # If archive_cmds runs LD, not CC, wlarc should be empty
16647     wlarc='${wl}'
16648
16649     # Set some defaults for GNU ld with shared library support. These
16650     # are reset later if shared libraries are not supported. Putting them
16651     # here allows them to be overridden if necessary.
16652     runpath_var=LD_RUN_PATH
16653     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16654     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16655     # ancient GNU ld didn't support --whole-archive et. al.
16656     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16657         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16658       else
16659         whole_archive_flag_spec_GCJ=
16660     fi
16661     supports_anon_versioning=no
16662     case `$LD -v 2>/dev/null` in
16663       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16664       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16665       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16666       *\ 2.11.*) ;; # other 2.11 versions
16667       *) supports_anon_versioning=yes ;;
16668     esac
16669
16670     # See if GNU ld supports shared libraries.
16671     case $host_os in
16672     aix3* | aix4* | aix5*)
16673       # On AIX/PPC, the GNU linker is very broken
16674       if test "$host_cpu" != ia64; then
16675         ld_shlibs_GCJ=no
16676         cat <<EOF 1>&2
16677
16678 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16679 *** to be unable to reliably create shared libraries on AIX.
16680 *** Therefore, libtool is disabling shared libraries support.  If you
16681 *** really care for shared libraries, you may want to modify your PATH
16682 *** so that a non-GNU linker is found, and then restart.
16683
16684 EOF
16685       fi
16686       ;;
16687
16688     amigaos*)
16689       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)'
16690       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16691       hardcode_minus_L_GCJ=yes
16692
16693       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16694       # that the semantics of dynamic libraries on AmigaOS, at least up
16695       # to version 4, is to share data among multiple programs linked
16696       # with the same dynamic library.  Since this doesn't match the
16697       # behavior of shared libraries on other platforms, we can't use
16698       # them.
16699       ld_shlibs_GCJ=no
16700       ;;
16701
16702     beos*)
16703       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16704         allow_undefined_flag_GCJ=unsupported
16705         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16706         # support --undefined.  This deserves some investigation.  FIXME
16707         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16708       else
16709         ld_shlibs_GCJ=no
16710       fi
16711       ;;
16712
16713     cygwin* | mingw* | pw32*)
16714       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16715       # as there is no search path for DLLs.
16716       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16717       allow_undefined_flag_GCJ=unsupported
16718       always_export_symbols_GCJ=no
16719       enable_shared_with_static_runtimes_GCJ=yes
16720       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16721
16722       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16723         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16724         # If the export-symbols file already is a .def file (1st line
16725         # is EXPORTS), use it as is; otherwise, prepend...
16726         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16727           cp $export_symbols $output_objdir/$soname.def;
16728         else
16729           echo EXPORTS > $output_objdir/$soname.def;
16730           cat $export_symbols >> $output_objdir/$soname.def;
16731         fi~
16732         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16733       else
16734         ld_shlibs_GCJ=no
16735       fi
16736       ;;
16737
16738     interix3*)
16739       hardcode_direct_GCJ=no
16740       hardcode_shlibpath_var_GCJ=no
16741       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16742       export_dynamic_flag_spec_GCJ='${wl}-E'
16743       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16744       # Instead, shared libraries are loaded at an image base (0x10000000 by
16745       # default) and relocated if they conflict, which is a slow very memory
16746       # consuming and fragmenting process.  To avoid this, we pick a random,
16747       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16748       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16749       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'
16750       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'
16751       ;;
16752
16753     linux* | k*bsd*-gnu)
16754       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16755         tmp_addflag=
16756         case $cc_basename,$host_cpu in
16757         pgcc*)                          # Portland Group C compiler
16758           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'
16759           tmp_addflag=' $pic_flag'
16760           ;;
16761         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16762           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'
16763           tmp_addflag=' $pic_flag -Mnomain' ;;
16764         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16765           tmp_addflag=' -i_dynamic' ;;
16766         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16767           tmp_addflag=' -i_dynamic -nofor_main' ;;
16768         ifc* | ifort*)                  # Intel Fortran compiler
16769           tmp_addflag=' -nofor_main' ;;
16770         esac
16771         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16772
16773         if test $supports_anon_versioning = yes; then
16774           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16775   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16776   $echo "local: *; };" >> $output_objdir/$libname.ver~
16777           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16778         fi
16779         link_all_deplibs_GCJ=no
16780       else
16781         ld_shlibs_GCJ=no
16782       fi
16783       ;;
16784
16785     netbsd* | netbsdelf*-gnu)
16786       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16787         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16788         wlarc=
16789       else
16790         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16791         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16792       fi
16793       ;;
16794
16795     solaris*)
16796       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16797         ld_shlibs_GCJ=no
16798         cat <<EOF 1>&2
16799
16800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16801 *** create shared libraries on Solaris systems.  Therefore, libtool
16802 *** is disabling shared libraries support.  We urge you to upgrade GNU
16803 *** binutils to release 2.9.1 or newer.  Another option is to modify
16804 *** your PATH or compiler configuration so that the native linker is
16805 *** used, and then restart.
16806
16807 EOF
16808       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16810         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16811       else
16812         ld_shlibs_GCJ=no
16813       fi
16814       ;;
16815
16816     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16817       case `$LD -v 2>&1` in
16818         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16819         ld_shlibs_GCJ=no
16820         cat <<_LT_EOF 1>&2
16821
16822 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16823 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16824 *** is disabling shared libraries support.  We urge you to upgrade GNU
16825 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16826 *** your PATH or compiler configuration so that the native linker is
16827 *** used, and then restart.
16828
16829 _LT_EOF
16830         ;;
16831         *)
16832           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16833             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16834             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16835             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16836           else
16837             ld_shlibs_GCJ=no
16838           fi
16839         ;;
16840       esac
16841       ;;
16842
16843     sunos4*)
16844       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16845       wlarc=
16846       hardcode_direct_GCJ=yes
16847       hardcode_shlibpath_var_GCJ=no
16848       ;;
16849
16850     *)
16851       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16852         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16853         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16854       else
16855         ld_shlibs_GCJ=no
16856       fi
16857       ;;
16858     esac
16859
16860     if test "$ld_shlibs_GCJ" = no; then
16861       runpath_var=
16862       hardcode_libdir_flag_spec_GCJ=
16863       export_dynamic_flag_spec_GCJ=
16864       whole_archive_flag_spec_GCJ=
16865     fi
16866   else
16867     # PORTME fill in a description of your system's linker (not GNU ld)
16868     case $host_os in
16869     aix3*)
16870       allow_undefined_flag_GCJ=unsupported
16871       always_export_symbols_GCJ=yes
16872       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'
16873       # Note: this linker hardcodes the directories in LIBPATH if there
16874       # are no directories specified by -L.
16875       hardcode_minus_L_GCJ=yes
16876       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16877         # Neither direct hardcoding nor static linking is supported with a
16878         # broken collect2.
16879         hardcode_direct_GCJ=unsupported
16880       fi
16881       ;;
16882
16883     aix4* | aix5*)
16884       if test "$host_cpu" = ia64; then
16885         # On IA64, the linker does run time linking by default, so we don't
16886         # have to do anything special.
16887         aix_use_runtimelinking=no
16888         exp_sym_flag='-Bexport'
16889         no_entry_flag=""
16890       else
16891         # If we're using GNU nm, then we don't want the "-C" option.
16892         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16893         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16894           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'
16895         else
16896           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'
16897         fi
16898         aix_use_runtimelinking=no
16899
16900         # Test if we are trying to use run time linking or normal
16901         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16902         # need to do runtime linking.
16903         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16904           for ld_flag in $LDFLAGS; do
16905           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16906             aix_use_runtimelinking=yes
16907             break
16908           fi
16909           done
16910           ;;
16911         esac
16912
16913         exp_sym_flag='-bexport'
16914         no_entry_flag='-bnoentry'
16915       fi
16916
16917       # When large executables or shared objects are built, AIX ld can
16918       # have problems creating the table of contents.  If linking a library
16919       # or program results in "error TOC overflow" add -mminimal-toc to
16920       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16921       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16922
16923       archive_cmds_GCJ=''
16924       hardcode_direct_GCJ=yes
16925       hardcode_libdir_separator_GCJ=':'
16926       link_all_deplibs_GCJ=yes
16927
16928       if test "$GCC" = yes; then
16929         case $host_os in aix4.[012]|aix4.[012].*)
16930         # We only want to do this on AIX 4.2 and lower, the check
16931         # below for broken collect2 doesn't work under 4.3+
16932           collect2name=`${CC} -print-prog-name=collect2`
16933           if test -f "$collect2name" && \
16934            strings "$collect2name" | grep resolve_lib_name >/dev/null
16935           then
16936           # We have reworked collect2
16937           hardcode_direct_GCJ=yes
16938           else
16939           # We have old collect2
16940           hardcode_direct_GCJ=unsupported
16941           # It fails to find uninstalled libraries when the uninstalled
16942           # path is not listed in the libpath.  Setting hardcode_minus_L
16943           # to unsupported forces relinking
16944           hardcode_minus_L_GCJ=yes
16945           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16946           hardcode_libdir_separator_GCJ=
16947           fi
16948           ;;
16949         esac
16950         shared_flag='-shared'
16951         if test "$aix_use_runtimelinking" = yes; then
16952           shared_flag="$shared_flag "'${wl}-G'
16953         fi
16954       else
16955         # not using gcc
16956         if test "$host_cpu" = ia64; then
16957         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16958         # chokes on -Wl,-G. The following line is correct:
16959           shared_flag='-G'
16960         else
16961           if test "$aix_use_runtimelinking" = yes; then
16962             shared_flag='${wl}-G'
16963           else
16964             shared_flag='${wl}-bM:SRE'
16965           fi
16966         fi
16967       fi
16968
16969       # It seems that -bexpall does not export symbols beginning with
16970       # underscore (_), so it is better to generate a list of symbols to export.
16971       always_export_symbols_GCJ=yes
16972       if test "$aix_use_runtimelinking" = yes; then
16973         # Warning - without using the other runtime loading flags (-brtl),
16974         # -berok will link without error, but may produce a broken library.
16975         allow_undefined_flag_GCJ='-berok'
16976        # Determine the default libpath from the value encoded in an empty executable.
16977        cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h.  */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h.  */
16983
16984 int
16985 main ()
16986 {
16987
16988   ;
16989   return 0;
16990 }
16991 _ACEOF
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (ac_try="$ac_link"
16994 case "(($ac_try" in
16995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996   *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999   (eval "$ac_link") 2>conftest.er1
17000   ac_status=$?
17001   grep -v '^ *+' conftest.er1 >conftest.err
17002   rm -f conftest.er1
17003   cat conftest.err >&5
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); } && {
17006          test -z "$ac_c_werror_flag" ||
17007          test ! -s conftest.err
17008        } && test -s conftest$ac_exeext &&
17009        $as_test_x conftest$ac_exeext; then
17010
17011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17012 }'`
17013 # Check for a 64-bit object if we didn't find anything.
17014 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; }
17015 }'`; fi
17016 else
17017   echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17019
17020
17021 fi
17022
17023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17024       conftest$ac_exeext conftest.$ac_ext
17025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17026
17027        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17028         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"
17029        else
17030         if test "$host_cpu" = ia64; then
17031           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17032           allow_undefined_flag_GCJ="-z nodefs"
17033           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"
17034         else
17035          # Determine the default libpath from the value encoded in an empty executable.
17036          cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042
17043 int
17044 main ()
17045 {
17046
17047   ;
17048   return 0;
17049 }
17050 _ACEOF
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_link") 2>conftest.er1
17059   ac_status=$?
17060   grep -v '^ *+' conftest.er1 >conftest.err
17061   rm -f conftest.er1
17062   cat conftest.err >&5
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } && {
17065          test -z "$ac_c_werror_flag" ||
17066          test ! -s conftest.err
17067        } && test -s conftest$ac_exeext &&
17068        $as_test_x conftest$ac_exeext; then
17069
17070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17071 }'`
17072 # Check for a 64-bit object if we didn't find anything.
17073 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; }
17074 }'`; fi
17075 else
17076   echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079
17080 fi
17081
17082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17083       conftest$ac_exeext conftest.$ac_ext
17084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17085
17086          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17087           # Warning - without using the other run time loading flags,
17088           # -berok will link without error, but may produce a broken library.
17089           no_undefined_flag_GCJ=' ${wl}-bernotok'
17090           allow_undefined_flag_GCJ=' ${wl}-berok'
17091           # Exported symbols can be pulled into shared objects from archives
17092           whole_archive_flag_spec_GCJ='$convenience'
17093           archive_cmds_need_lc_GCJ=yes
17094           # This is similar to how AIX traditionally builds its shared libraries.
17095           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'
17096         fi
17097       fi
17098       ;;
17099
17100     amigaos*)
17101       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)'
17102       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17103       hardcode_minus_L_GCJ=yes
17104       # see comment about different semantics on the GNU ld section
17105       ld_shlibs_GCJ=no
17106       ;;
17107
17108     bsdi[45]*)
17109       export_dynamic_flag_spec_GCJ=-rdynamic
17110       ;;
17111
17112     cygwin* | mingw* | pw32*)
17113       # When not using gcc, we currently assume that we are using
17114       # Microsoft Visual C++.
17115       # hardcode_libdir_flag_spec is actually meaningless, as there is
17116       # no search path for DLLs.
17117       hardcode_libdir_flag_spec_GCJ=' '
17118       allow_undefined_flag_GCJ=unsupported
17119       # Tell ltmain to make .lib files, not .a files.
17120       libext=lib
17121       # Tell ltmain to make .dll files, not .so files.
17122       shrext_cmds=".dll"
17123       # FIXME: Setting linknames here is a bad hack.
17124       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17125       # The linker will automatically build a .lib file if we build a DLL.
17126       old_archive_From_new_cmds_GCJ='true'
17127       # FIXME: Should let the user specify the lib program.
17128       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17129       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17130       enable_shared_with_static_runtimes_GCJ=yes
17131       ;;
17132
17133     darwin* | rhapsody*)
17134       case $host_os in
17135         rhapsody* | darwin1.[012])
17136          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17137          ;;
17138        *) # Darwin 1.3 on
17139          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17140            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17141          else
17142            case ${MACOSX_DEPLOYMENT_TARGET} in
17143              10.[012])
17144                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17145                ;;
17146              10.*)
17147                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17148                ;;
17149            esac
17150          fi
17151          ;;
17152       esac
17153       archive_cmds_need_lc_GCJ=no
17154       hardcode_direct_GCJ=no
17155       hardcode_automatic_GCJ=yes
17156       hardcode_shlibpath_var_GCJ=unsupported
17157       whole_archive_flag_spec_GCJ=''
17158       link_all_deplibs_GCJ=yes
17159     if test "$GCC" = yes ; then
17160         output_verbose_link_cmd='echo'
17161         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17162       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17163       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17164       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}'
17165       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}'
17166     else
17167       case $cc_basename in
17168         xlc*)
17169          output_verbose_link_cmd='echo'
17170          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17171          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17172           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17173          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}'
17174           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}'
17175           ;;
17176        *)
17177          ld_shlibs_GCJ=no
17178           ;;
17179       esac
17180     fi
17181       ;;
17182
17183     dgux*)
17184       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17186       hardcode_shlibpath_var_GCJ=no
17187       ;;
17188
17189     freebsd1*)
17190       ld_shlibs_GCJ=no
17191       ;;
17192
17193     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17194     # support.  Future versions do this automatically, but an explicit c++rt0.o
17195     # does not break anything, and helps significantly (at the cost of a little
17196     # extra space).
17197     freebsd2.2*)
17198       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17199       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17200       hardcode_direct_GCJ=yes
17201       hardcode_shlibpath_var_GCJ=no
17202       ;;
17203
17204     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17205     freebsd2*)
17206       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17207       hardcode_direct_GCJ=yes
17208       hardcode_minus_L_GCJ=yes
17209       hardcode_shlibpath_var_GCJ=no
17210       ;;
17211
17212     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17213     freebsd* | dragonfly*)
17214       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17215       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17216       hardcode_direct_GCJ=yes
17217       hardcode_shlibpath_var_GCJ=no
17218       ;;
17219
17220     hpux9*)
17221       if test "$GCC" = yes; then
17222         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'
17223       else
17224         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'
17225       fi
17226       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17227       hardcode_libdir_separator_GCJ=:
17228       hardcode_direct_GCJ=yes
17229
17230       # hardcode_minus_L: Not really in the search PATH,
17231       # but as the default location of the library.
17232       hardcode_minus_L_GCJ=yes
17233       export_dynamic_flag_spec_GCJ='${wl}-E'
17234       ;;
17235
17236     hpux10*)
17237       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17238         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17239       else
17240         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17241       fi
17242       if test "$with_gnu_ld" = no; then
17243         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17244         hardcode_libdir_separator_GCJ=:
17245
17246         hardcode_direct_GCJ=yes
17247         export_dynamic_flag_spec_GCJ='${wl}-E'
17248
17249         # hardcode_minus_L: Not really in the search PATH,
17250         # but as the default location of the library.
17251         hardcode_minus_L_GCJ=yes
17252       fi
17253       ;;
17254
17255     hpux11*)
17256       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17257         case $host_cpu in
17258         hppa*64*)
17259           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17260           ;;
17261         ia64*)
17262           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17263           ;;
17264         *)
17265           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17266           ;;
17267         esac
17268       else
17269         case $host_cpu in
17270         hppa*64*)
17271           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17272           ;;
17273         ia64*)
17274           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17275           ;;
17276         *)
17277           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17278           ;;
17279         esac
17280       fi
17281       if test "$with_gnu_ld" = no; then
17282         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17283         hardcode_libdir_separator_GCJ=:
17284
17285         case $host_cpu in
17286         hppa*64*|ia64*)
17287           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17288           hardcode_direct_GCJ=no
17289           hardcode_shlibpath_var_GCJ=no
17290           ;;
17291         *)
17292           hardcode_direct_GCJ=yes
17293           export_dynamic_flag_spec_GCJ='${wl}-E'
17294
17295           # hardcode_minus_L: Not really in the search PATH,
17296           # but as the default location of the library.
17297           hardcode_minus_L_GCJ=yes
17298           ;;
17299         esac
17300       fi
17301       ;;
17302
17303     irix5* | irix6* | nonstopux*)
17304       if test "$GCC" = yes; then
17305         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'
17306       else
17307         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'
17308         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17309       fi
17310       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17311       hardcode_libdir_separator_GCJ=:
17312       link_all_deplibs_GCJ=yes
17313       ;;
17314
17315     netbsd* | netbsdelf*-gnu)
17316       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17317         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17318       else
17319         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17320       fi
17321       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17322       hardcode_direct_GCJ=yes
17323       hardcode_shlibpath_var_GCJ=no
17324       ;;
17325
17326     newsos6)
17327       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328       hardcode_direct_GCJ=yes
17329       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17330       hardcode_libdir_separator_GCJ=:
17331       hardcode_shlibpath_var_GCJ=no
17332       ;;
17333
17334     openbsd*)
17335       hardcode_direct_GCJ=yes
17336       hardcode_shlibpath_var_GCJ=no
17337       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17338         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17339         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17340         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17341         export_dynamic_flag_spec_GCJ='${wl}-E'
17342       else
17343        case $host_os in
17344          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17345            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17346            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17347            ;;
17348          *)
17349            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17350            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17351            ;;
17352        esac
17353       fi
17354       ;;
17355
17356     os2*)
17357       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17358       hardcode_minus_L_GCJ=yes
17359       allow_undefined_flag_GCJ=unsupported
17360       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'
17361       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17362       ;;
17363
17364     osf3*)
17365       if test "$GCC" = yes; then
17366         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17367         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'
17368       else
17369         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17370         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'
17371       fi
17372       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17373       hardcode_libdir_separator_GCJ=:
17374       ;;
17375
17376     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17377       if test "$GCC" = yes; then
17378         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17379         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'
17380         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17381       else
17382         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17383         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'
17384         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~
17385         $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'
17386
17387         # Both c and cxx compiler support -rpath directly
17388         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17389       fi
17390       hardcode_libdir_separator_GCJ=:
17391       ;;
17392
17393     solaris*)
17394       no_undefined_flag_GCJ=' -z text'
17395       if test "$GCC" = yes; then
17396         wlarc='${wl}'
17397         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17398         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17399           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17400       else
17401         wlarc=''
17402         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17404         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17405       fi
17406       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17407       hardcode_shlibpath_var_GCJ=no
17408       case $host_os in
17409       solaris2.[0-5] | solaris2.[0-5].*) ;;
17410       *)
17411         # The compiler driver will combine linker options so we
17412         # cannot just pass the convience library names through
17413         # without $wl, iff we do not link with $LD.
17414         # Luckily, gcc supports the same syntax we need for Sun Studio.
17415         # Supported since Solaris 2.6 (maybe 2.5.1?)
17416         case $wlarc in
17417         '')
17418           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17419         *)
17420           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' ;;
17421         esac ;;
17422       esac
17423       link_all_deplibs_GCJ=yes
17424       ;;
17425
17426     sunos4*)
17427       if test "x$host_vendor" = xsequent; then
17428         # Use $CC to link under sequent, because it throws in some extra .o
17429         # files that make .init and .fini sections work.
17430         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17431       else
17432         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17433       fi
17434       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435       hardcode_direct_GCJ=yes
17436       hardcode_minus_L_GCJ=yes
17437       hardcode_shlibpath_var_GCJ=no
17438       ;;
17439
17440     sysv4)
17441       case $host_vendor in
17442         sni)
17443           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444           hardcode_direct_GCJ=yes # is this really true???
17445         ;;
17446         siemens)
17447           ## LD is ld it makes a PLAMLIB
17448           ## CC just makes a GrossModule.
17449           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17450           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17451           hardcode_direct_GCJ=no
17452         ;;
17453         motorola)
17454           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17456         ;;
17457       esac
17458       runpath_var='LD_RUN_PATH'
17459       hardcode_shlibpath_var_GCJ=no
17460       ;;
17461
17462     sysv4.3*)
17463       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17464       hardcode_shlibpath_var_GCJ=no
17465       export_dynamic_flag_spec_GCJ='-Bexport'
17466       ;;
17467
17468     sysv4*MP*)
17469       if test -d /usr/nec; then
17470         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17471         hardcode_shlibpath_var_GCJ=no
17472         runpath_var=LD_RUN_PATH
17473         hardcode_runpath_var=yes
17474         ld_shlibs_GCJ=yes
17475       fi
17476       ;;
17477
17478     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17479       no_undefined_flag_GCJ='${wl}-z,text'
17480       archive_cmds_need_lc_GCJ=no
17481       hardcode_shlibpath_var_GCJ=no
17482       runpath_var='LD_RUN_PATH'
17483
17484       if test "$GCC" = yes; then
17485         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17486         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17487       else
17488         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17489         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17490       fi
17491       ;;
17492
17493     sysv5* | sco3.2v5* | sco5v6*)
17494       # Note: We can NOT use -z defs as we might desire, because we do not
17495       # link with -lc, and that would cause any symbols used from libc to
17496       # always be unresolved, which means just about no library would
17497       # ever link correctly.  If we're not using GNU ld we use -z text
17498       # though, which does catch some bad symbols but isn't as heavy-handed
17499       # as -z defs.
17500       no_undefined_flag_GCJ='${wl}-z,text'
17501       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17502       archive_cmds_need_lc_GCJ=no
17503       hardcode_shlibpath_var_GCJ=no
17504       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17505       hardcode_libdir_separator_GCJ=':'
17506       link_all_deplibs_GCJ=yes
17507       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17508       runpath_var='LD_RUN_PATH'
17509
17510       if test "$GCC" = yes; then
17511         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17512         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17513       else
17514         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17516       fi
17517       ;;
17518
17519     uts4*)
17520       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522       hardcode_shlibpath_var_GCJ=no
17523       ;;
17524
17525     *)
17526       ld_shlibs_GCJ=no
17527       ;;
17528     esac
17529   fi
17530
17531 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17532 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17533 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17534
17535 #
17536 # Do we need to explicitly link libc?
17537 #
17538 case "x$archive_cmds_need_lc_GCJ" in
17539 x|xyes)
17540   # Assume -lc should be added
17541   archive_cmds_need_lc_GCJ=yes
17542
17543   if test "$enable_shared" = yes && test "$GCC" = yes; then
17544     case $archive_cmds_GCJ in
17545     *'~'*)
17546       # FIXME: we may have to deal with multi-command sequences.
17547       ;;
17548     '$CC '*)
17549       # Test whether the compiler implicitly links with -lc since on some
17550       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17551       # to ld, don't add -lc before -lgcc.
17552       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17554       $rm conftest*
17555       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17556
17557       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558   (eval $ac_compile) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); } 2>conftest.err; then
17562         soname=conftest
17563         lib=conftest
17564         libobjs=conftest.$ac_objext
17565         deplibs=
17566         wl=$lt_prog_compiler_wl_GCJ
17567         pic_flag=$lt_prog_compiler_pic_GCJ
17568         compiler_flags=-v
17569         linker_flags=-v
17570         verstring=
17571         output_objdir=.
17572         libname=conftest
17573         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17574         allow_undefined_flag_GCJ=
17575         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17576   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }
17580         then
17581           archive_cmds_need_lc_GCJ=no
17582         else
17583           archive_cmds_need_lc_GCJ=yes
17584         fi
17585         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17586       else
17587         cat conftest.err 1>&5
17588       fi
17589       $rm conftest*
17590       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17591 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17592       ;;
17593     esac
17594   fi
17595   ;;
17596 esac
17597
17598 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17600 library_names_spec=
17601 libname_spec='lib$name'
17602 soname_spec=
17603 shrext_cmds=".so"
17604 postinstall_cmds=
17605 postuninstall_cmds=
17606 finish_cmds=
17607 finish_eval=
17608 shlibpath_var=
17609 shlibpath_overrides_runpath=unknown
17610 version_type=none
17611 dynamic_linker="$host_os ld.so"
17612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17613 if test "$GCC" = yes; then
17614   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17615   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17616     # if the path contains ";" then we assume it to be the separator
17617     # otherwise default to the standard path separator (i.e. ":") - it is
17618     # assumed that no part of a normal pathname contains ";" but that should
17619     # okay in the real world where ";" in dirpaths is itself problematic.
17620     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17621   else
17622     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17623   fi
17624 else
17625   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17626 fi
17627 need_lib_prefix=unknown
17628 hardcode_into_libs=no
17629
17630 # when you set need_version to no, make sure it does not cause -set_version
17631 # flags to be left without arguments
17632 need_version=unknown
17633
17634 case $host_os in
17635 aix3*)
17636   version_type=linux
17637   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17638   shlibpath_var=LIBPATH
17639
17640   # AIX 3 has no versioning support, so we append a major version to the name.
17641   soname_spec='${libname}${release}${shared_ext}$major'
17642   ;;
17643
17644 aix4* | aix5*)
17645   version_type=linux
17646   need_lib_prefix=no
17647   need_version=no
17648   hardcode_into_libs=yes
17649   if test "$host_cpu" = ia64; then
17650     # AIX 5 supports IA64
17651     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17652     shlibpath_var=LD_LIBRARY_PATH
17653   else
17654     # With GCC up to 2.95.x, collect2 would create an import file
17655     # for dependence libraries.  The import file would start with
17656     # the line `#! .'.  This would cause the generated library to
17657     # depend on `.', always an invalid library.  This was fixed in
17658     # development snapshots of GCC prior to 3.0.
17659     case $host_os in
17660       aix4 | aix4.[01] | aix4.[01].*)
17661       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17662            echo ' yes '
17663            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17664         :
17665       else
17666         can_build_shared=no
17667       fi
17668       ;;
17669     esac
17670     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17671     # soname into executable. Probably we can add versioning support to
17672     # collect2, so additional links can be useful in future.
17673     if test "$aix_use_runtimelinking" = yes; then
17674       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17675       # instead of lib<name>.a to let people know that these are not
17676       # typical AIX shared libraries.
17677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678     else
17679       # We preserve .a as extension for shared libraries through AIX4.2
17680       # and later when we are not doing run time linking.
17681       library_names_spec='${libname}${release}.a $libname.a'
17682       soname_spec='${libname}${release}${shared_ext}$major'
17683     fi
17684     shlibpath_var=LIBPATH
17685   fi
17686   ;;
17687
17688 amigaos*)
17689   library_names_spec='$libname.ixlibrary $libname.a'
17690   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17691   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'
17692   ;;
17693
17694 beos*)
17695   library_names_spec='${libname}${shared_ext}'
17696   dynamic_linker="$host_os ld.so"
17697   shlibpath_var=LIBRARY_PATH
17698   ;;
17699
17700 bsdi[45]*)
17701   version_type=linux
17702   need_version=no
17703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704   soname_spec='${libname}${release}${shared_ext}$major'
17705   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17706   shlibpath_var=LD_LIBRARY_PATH
17707   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17708   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17709   # the default ld.so.conf also contains /usr/contrib/lib and
17710   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17711   # libtool to hard-code these into programs
17712   ;;
17713
17714 cygwin* | mingw* | pw32*)
17715   version_type=windows
17716   shrext_cmds=".dll"
17717   need_version=no
17718   need_lib_prefix=no
17719
17720   case $GCC,$host_os in
17721   yes,cygwin* | yes,mingw* | yes,pw32*)
17722     library_names_spec='$libname.dll.a'
17723     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17724     postinstall_cmds='base_file=`basename \${file}`~
17725       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17726       dldir=$destdir/`dirname \$dlpath`~
17727       test -d \$dldir || mkdir -p \$dldir~
17728       $install_prog $dir/$dlname \$dldir/$dlname~
17729       chmod a+x \$dldir/$dlname'
17730     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17731       dlpath=$dir/\$dldll~
17732        $rm \$dlpath'
17733     shlibpath_overrides_runpath=yes
17734
17735     case $host_os in
17736     cygwin*)
17737       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17738       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17739       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17740       ;;
17741     mingw*)
17742       # MinGW DLLs use traditional 'lib' prefix
17743       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17744       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17745       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17746         # It is most probably a Windows format PATH printed by
17747         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17748         # path with ; separators, and with drive letters. We can handle the
17749         # drive letters (cygwin fileutils understands them), so leave them,
17750         # especially as we might pass files found there to a mingw objdump,
17751         # which wouldn't understand a cygwinified path. Ahh.
17752         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17753       else
17754         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17755       fi
17756       ;;
17757     pw32*)
17758       # pw32 DLLs use 'pw' prefix rather than 'lib'
17759       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17760       ;;
17761     esac
17762     ;;
17763
17764   *)
17765     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17766     ;;
17767   esac
17768   dynamic_linker='Win32 ld.exe'
17769   # FIXME: first we should search . and the directory the executable is in
17770   shlibpath_var=PATH
17771   ;;
17772
17773 darwin* | rhapsody*)
17774   dynamic_linker="$host_os dyld"
17775   version_type=darwin
17776   need_lib_prefix=no
17777   need_version=no
17778   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17779   soname_spec='${libname}${release}${major}$shared_ext'
17780   shlibpath_overrides_runpath=yes
17781   shlibpath_var=DYLD_LIBRARY_PATH
17782   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17783   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17784   if test "$GCC" = yes; then
17785     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"`
17786   else
17787     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17788   fi
17789   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17790   ;;
17791
17792 dgux*)
17793   version_type=linux
17794   need_lib_prefix=no
17795   need_version=no
17796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17797   soname_spec='${libname}${release}${shared_ext}$major'
17798   shlibpath_var=LD_LIBRARY_PATH
17799   ;;
17800
17801 freebsd1*)
17802   dynamic_linker=no
17803   ;;
17804
17805 freebsd* | dragonfly*)
17806   # DragonFly does not have aout.  When/if they implement a new
17807   # versioning mechanism, adjust this.
17808   if test -x /usr/bin/objformat; then
17809     objformat=`/usr/bin/objformat`
17810   else
17811     case $host_os in
17812     freebsd[123]*) objformat=aout ;;
17813     *) objformat=elf ;;
17814     esac
17815   fi
17816   version_type=freebsd-$objformat
17817   case $version_type in
17818     freebsd-elf*)
17819       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17820       need_version=no
17821       need_lib_prefix=no
17822       ;;
17823     freebsd-*)
17824       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17825       need_version=yes
17826       ;;
17827   esac
17828   shlibpath_var=LD_LIBRARY_PATH
17829   case $host_os in
17830   freebsd2*)
17831     shlibpath_overrides_runpath=yes
17832     ;;
17833   freebsd3.[01]* | freebsdelf3.[01]*)
17834     shlibpath_overrides_runpath=yes
17835     hardcode_into_libs=yes
17836     ;;
17837   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17838   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17839     shlibpath_overrides_runpath=no
17840     hardcode_into_libs=yes
17841     ;;
17842   freebsd*) # from 4.6 on
17843     shlibpath_overrides_runpath=yes
17844     hardcode_into_libs=yes
17845     ;;
17846   esac
17847   ;;
17848
17849 gnu*)
17850   version_type=linux
17851   need_lib_prefix=no
17852   need_version=no
17853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17854   soname_spec='${libname}${release}${shared_ext}$major'
17855   shlibpath_var=LD_LIBRARY_PATH
17856   hardcode_into_libs=yes
17857   ;;
17858
17859 hpux9* | hpux10* | hpux11*)
17860   # Give a soname corresponding to the major version so that dld.sl refuses to
17861   # link against other versions.
17862   version_type=sunos
17863   need_lib_prefix=no
17864   need_version=no
17865   case $host_cpu in
17866   ia64*)
17867     shrext_cmds='.so'
17868     hardcode_into_libs=yes
17869     dynamic_linker="$host_os dld.so"
17870     shlibpath_var=LD_LIBRARY_PATH
17871     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873     soname_spec='${libname}${release}${shared_ext}$major'
17874     if test "X$HPUX_IA64_MODE" = X32; then
17875       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17876     else
17877       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17878     fi
17879     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17880     ;;
17881    hppa*64*)
17882      shrext_cmds='.sl'
17883      hardcode_into_libs=yes
17884      dynamic_linker="$host_os dld.sl"
17885      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17886      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17887      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17888      soname_spec='${libname}${release}${shared_ext}$major'
17889      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17890      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17891      ;;
17892    *)
17893     shrext_cmds='.sl'
17894     dynamic_linker="$host_os dld.sl"
17895     shlibpath_var=SHLIB_PATH
17896     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898     soname_spec='${libname}${release}${shared_ext}$major'
17899     ;;
17900   esac
17901   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17902   postinstall_cmds='chmod 555 $lib'
17903   ;;
17904
17905 interix3*)
17906   version_type=linux
17907   need_lib_prefix=no
17908   need_version=no
17909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17910   soname_spec='${libname}${release}${shared_ext}$major'
17911   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17912   shlibpath_var=LD_LIBRARY_PATH
17913   shlibpath_overrides_runpath=no
17914   hardcode_into_libs=yes
17915   ;;
17916
17917 irix5* | irix6* | nonstopux*)
17918   case $host_os in
17919     nonstopux*) version_type=nonstopux ;;
17920     *)
17921         if test "$lt_cv_prog_gnu_ld" = yes; then
17922                 version_type=linux
17923         else
17924                 version_type=irix
17925         fi ;;
17926   esac
17927   need_lib_prefix=no
17928   need_version=no
17929   soname_spec='${libname}${release}${shared_ext}$major'
17930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17931   case $host_os in
17932   irix5* | nonstopux*)
17933     libsuff= shlibsuff=
17934     ;;
17935   *)
17936     case $LD in # libtool.m4 will add one of these switches to LD
17937     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17938       libsuff= shlibsuff= libmagic=32-bit;;
17939     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17940       libsuff=32 shlibsuff=N32 libmagic=N32;;
17941     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17942       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17943     *) libsuff= shlibsuff= libmagic=never-match;;
17944     esac
17945     ;;
17946   esac
17947   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17948   shlibpath_overrides_runpath=no
17949   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17950   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17951   hardcode_into_libs=yes
17952   ;;
17953
17954 # No shared lib support for Linux oldld, aout, or coff.
17955 linux*oldld* | linux*aout* | linux*coff*)
17956   dynamic_linker=no
17957   ;;
17958
17959 # This must be Linux ELF.
17960 linux* | k*bsd*-gnu)
17961   version_type=linux
17962   need_lib_prefix=no
17963   need_version=no
17964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965   soname_spec='${libname}${release}${shared_ext}$major'
17966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17967   shlibpath_var=LD_LIBRARY_PATH
17968   shlibpath_overrides_runpath=no
17969   # This implies no fast_install, which is unacceptable.
17970   # Some rework will be needed to allow for fast_install
17971   # before this can be enabled.
17972   hardcode_into_libs=yes
17973
17974   # Append ld.so.conf contents to the search path
17975   if test -f /etc/ld.so.conf; then
17976     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17977     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17978   fi
17979
17980   # We used to test for /lib/ld.so.1 and disable shared libraries on
17981   # powerpc, because MkLinux only supported shared libraries with the
17982   # GNU dynamic linker.  Since this was broken with cross compilers,
17983   # most powerpc-linux boxes support dynamic linking these days and
17984   # people can always --disable-shared, the test was removed, and we
17985   # assume the GNU/Linux dynamic linker is in use.
17986   dynamic_linker='GNU/Linux ld.so'
17987   ;;
17988
17989 netbsdelf*-gnu)
17990   version_type=linux
17991   need_lib_prefix=no
17992   need_version=no
17993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17994   soname_spec='${libname}${release}${shared_ext}$major'
17995   shlibpath_var=LD_LIBRARY_PATH
17996   shlibpath_overrides_runpath=no
17997   hardcode_into_libs=yes
17998   dynamic_linker='NetBSD ld.elf_so'
17999   ;;
18000
18001 netbsd*)
18002   version_type=sunos
18003   need_lib_prefix=no
18004   need_version=no
18005   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18007     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18008     dynamic_linker='NetBSD (a.out) ld.so'
18009   else
18010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18011     soname_spec='${libname}${release}${shared_ext}$major'
18012     dynamic_linker='NetBSD ld.elf_so'
18013   fi
18014   shlibpath_var=LD_LIBRARY_PATH
18015   shlibpath_overrides_runpath=yes
18016   hardcode_into_libs=yes
18017   ;;
18018
18019 newsos6)
18020   version_type=linux
18021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022   shlibpath_var=LD_LIBRARY_PATH
18023   shlibpath_overrides_runpath=yes
18024   ;;
18025
18026 nto-qnx*)
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=yes
18034   ;;
18035
18036 openbsd*)
18037   version_type=sunos
18038   sys_lib_dlsearch_path_spec="/usr/lib"
18039   need_lib_prefix=no
18040   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18041   case $host_os in
18042     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18043     *)                         need_version=no  ;;
18044   esac
18045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18046   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18047   shlibpath_var=LD_LIBRARY_PATH
18048   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18049     case $host_os in
18050       openbsd2.[89] | openbsd2.[89].*)
18051         shlibpath_overrides_runpath=no
18052         ;;
18053       *)
18054         shlibpath_overrides_runpath=yes
18055         ;;
18056       esac
18057   else
18058     shlibpath_overrides_runpath=yes
18059   fi
18060   ;;
18061
18062 os2*)
18063   libname_spec='$name'
18064   shrext_cmds=".dll"
18065   need_lib_prefix=no
18066   library_names_spec='$libname${shared_ext} $libname.a'
18067   dynamic_linker='OS/2 ld.exe'
18068   shlibpath_var=LIBPATH
18069   ;;
18070
18071 osf3* | osf4* | osf5*)
18072   version_type=osf
18073   need_lib_prefix=no
18074   need_version=no
18075   soname_spec='${libname}${release}${shared_ext}$major'
18076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077   shlibpath_var=LD_LIBRARY_PATH
18078   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18079   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18080   ;;
18081
18082 solaris*)
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   shlibpath_overrides_runpath=yes
18090   hardcode_into_libs=yes
18091   # ldd complains unless libraries are executable
18092   postinstall_cmds='chmod +x $lib'
18093   ;;
18094
18095 sunos4*)
18096   version_type=sunos
18097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18098   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18099   shlibpath_var=LD_LIBRARY_PATH
18100   shlibpath_overrides_runpath=yes
18101   if test "$with_gnu_ld" = yes; then
18102     need_lib_prefix=no
18103   fi
18104   need_version=yes
18105   ;;
18106
18107 sysv4 | sysv4.3*)
18108   version_type=linux
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110   soname_spec='${libname}${release}${shared_ext}$major'
18111   shlibpath_var=LD_LIBRARY_PATH
18112   case $host_vendor in
18113     sni)
18114       shlibpath_overrides_runpath=no
18115       need_lib_prefix=no
18116       export_dynamic_flag_spec='${wl}-Blargedynsym'
18117       runpath_var=LD_RUN_PATH
18118       ;;
18119     siemens)
18120       need_lib_prefix=no
18121       ;;
18122     motorola)
18123       need_lib_prefix=no
18124       need_version=no
18125       shlibpath_overrides_runpath=no
18126       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18127       ;;
18128   esac
18129   ;;
18130
18131 sysv4*MP*)
18132   if test -d /usr/nec ;then
18133     version_type=linux
18134     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18135     soname_spec='$libname${shared_ext}.$major'
18136     shlibpath_var=LD_LIBRARY_PATH
18137   fi
18138   ;;
18139
18140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18141   version_type=freebsd-elf
18142   need_lib_prefix=no
18143   need_version=no
18144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18145   soname_spec='${libname}${release}${shared_ext}$major'
18146   shlibpath_var=LD_LIBRARY_PATH
18147   hardcode_into_libs=yes
18148   if test "$with_gnu_ld" = yes; then
18149     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18150     shlibpath_overrides_runpath=no
18151   else
18152     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18153     shlibpath_overrides_runpath=yes
18154     case $host_os in
18155       sco3.2v5*)
18156         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18157         ;;
18158     esac
18159   fi
18160   sys_lib_dlsearch_path_spec='/usr/lib'
18161   ;;
18162
18163 uts4*)
18164   version_type=linux
18165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166   soname_spec='${libname}${release}${shared_ext}$major'
18167   shlibpath_var=LD_LIBRARY_PATH
18168   ;;
18169
18170 *)
18171   dynamic_linker=no
18172   ;;
18173 esac
18174 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18175 echo "${ECHO_T}$dynamic_linker" >&6; }
18176 test "$dynamic_linker" = no && can_build_shared=no
18177
18178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18179 if test "$GCC" = yes; then
18180   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18181 fi
18182
18183 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18185 hardcode_action_GCJ=
18186 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18187    test -n "$runpath_var_GCJ" || \
18188    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18189
18190   # We can hardcode non-existant directories.
18191   if test "$hardcode_direct_GCJ" != no &&
18192      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18193      # have to relink, otherwise we might link with an installed library
18194      # when we should be linking with a yet-to-be-installed one
18195      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18196      test "$hardcode_minus_L_GCJ" != no; then
18197     # Linking always hardcodes the temporary library directory.
18198     hardcode_action_GCJ=relink
18199   else
18200     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18201     hardcode_action_GCJ=immediate
18202   fi
18203 else
18204   # We cannot hardcode anything, or else we can only hardcode existing
18205   # directories.
18206   hardcode_action_GCJ=unsupported
18207 fi
18208 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18209 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18210
18211 if test "$hardcode_action_GCJ" = relink; then
18212   # Fast installation is not supported
18213   enable_fast_install=no
18214 elif test "$shlibpath_overrides_runpath" = yes ||
18215      test "$enable_shared" = no; then
18216   # Fast installation is not necessary
18217   enable_fast_install=needless
18218 fi
18219
18220
18221 # The else clause should only fire when bootstrapping the
18222 # libtool distribution, otherwise you forgot to ship ltmain.sh
18223 # with your package, and you will get complaints that there are
18224 # no rules to generate ltmain.sh.
18225 if test -f "$ltmain"; then
18226   # See if we are running on zsh, and set the options which allow our commands through
18227   # without removal of \ escapes.
18228   if test -n "${ZSH_VERSION+set}" ; then
18229     setopt NO_GLOB_SUBST
18230   fi
18231   # Now quote all the things that may contain metacharacters while being
18232   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18233   # variables and quote the copies for generation of the libtool script.
18234   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18235     SED SHELL STRIP \
18236     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18237     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18238     deplibs_check_method reload_flag reload_cmds need_locks \
18239     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18240     lt_cv_sys_global_symbol_to_c_name_address \
18241     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18242     old_postinstall_cmds old_postuninstall_cmds \
18243     compiler_GCJ \
18244     CC_GCJ \
18245     LD_GCJ \
18246     lt_prog_compiler_wl_GCJ \
18247     lt_prog_compiler_pic_GCJ \
18248     lt_prog_compiler_static_GCJ \
18249     lt_prog_compiler_no_builtin_flag_GCJ \
18250     export_dynamic_flag_spec_GCJ \
18251     thread_safe_flag_spec_GCJ \
18252     whole_archive_flag_spec_GCJ \
18253     enable_shared_with_static_runtimes_GCJ \
18254     old_archive_cmds_GCJ \
18255     old_archive_from_new_cmds_GCJ \
18256     predep_objects_GCJ \
18257     postdep_objects_GCJ \
18258     predeps_GCJ \
18259     postdeps_GCJ \
18260     compiler_lib_search_path_GCJ \
18261     archive_cmds_GCJ \
18262     archive_expsym_cmds_GCJ \
18263     postinstall_cmds_GCJ \
18264     postuninstall_cmds_GCJ \
18265     old_archive_from_expsyms_cmds_GCJ \
18266     allow_undefined_flag_GCJ \
18267     no_undefined_flag_GCJ \
18268     export_symbols_cmds_GCJ \
18269     hardcode_libdir_flag_spec_GCJ \
18270     hardcode_libdir_flag_spec_ld_GCJ \
18271     hardcode_libdir_separator_GCJ \
18272     hardcode_automatic_GCJ \
18273     module_cmds_GCJ \
18274     module_expsym_cmds_GCJ \
18275     lt_cv_prog_compiler_c_o_GCJ \
18276     exclude_expsyms_GCJ \
18277     include_expsyms_GCJ; do
18278
18279     case $var in
18280     old_archive_cmds_GCJ | \
18281     old_archive_from_new_cmds_GCJ | \
18282     archive_cmds_GCJ | \
18283     archive_expsym_cmds_GCJ | \
18284     module_cmds_GCJ | \
18285     module_expsym_cmds_GCJ | \
18286     old_archive_from_expsyms_cmds_GCJ | \
18287     export_symbols_cmds_GCJ | \
18288     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18289     postinstall_cmds | postuninstall_cmds | \
18290     old_postinstall_cmds | old_postuninstall_cmds | \
18291     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18292       # Double-quote double-evaled strings.
18293       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18294       ;;
18295     *)
18296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18297       ;;
18298     esac
18299   done
18300
18301   case $lt_echo in
18302   *'\$0 --fallback-echo"')
18303     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18304     ;;
18305   esac
18306
18307 cfgfile="$ofile"
18308
18309   cat <<__EOF__ >> "$cfgfile"
18310 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18311
18312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18313
18314 # Shell to use when invoking shell scripts.
18315 SHELL=$lt_SHELL
18316
18317 # Whether or not to build shared libraries.
18318 build_libtool_libs=$enable_shared
18319
18320 # Whether or not to build static libraries.
18321 build_old_libs=$enable_static
18322
18323 # Whether or not to add -lc for building shared libraries.
18324 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18325
18326 # Whether or not to disallow shared libs when runtime libs are static
18327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18328
18329 # Whether or not to optimize for fast installation.
18330 fast_install=$enable_fast_install
18331
18332 # The host system.
18333 host_alias=$host_alias
18334 host=$host
18335 host_os=$host_os
18336
18337 # The build system.
18338 build_alias=$build_alias
18339 build=$build
18340 build_os=$build_os
18341
18342 # An echo program that does not interpret backslashes.
18343 echo=$lt_echo
18344
18345 # The archiver.
18346 AR=$lt_AR
18347 AR_FLAGS=$lt_AR_FLAGS
18348
18349 # A C compiler.
18350 LTCC=$lt_LTCC
18351
18352 # LTCC compiler flags.
18353 LTCFLAGS=$lt_LTCFLAGS
18354
18355 # A language-specific compiler.
18356 CC=$lt_compiler_GCJ
18357
18358 # Is the compiler the GNU C compiler?
18359 with_gcc=$GCC_GCJ
18360
18361 # An ERE matcher.
18362 EGREP=$lt_EGREP
18363
18364 # The linker used to build libraries.
18365 LD=$lt_LD_GCJ
18366
18367 # Whether we need hard or soft links.
18368 LN_S=$lt_LN_S
18369
18370 # A BSD-compatible nm program.
18371 NM=$lt_NM
18372
18373 # A symbol stripping program
18374 STRIP=$lt_STRIP
18375
18376 # Used to examine libraries when file_magic_cmd begins "file"
18377 MAGIC_CMD=$MAGIC_CMD
18378
18379 # Used on cygwin: DLL creation program.
18380 DLLTOOL="$DLLTOOL"
18381
18382 # Used on cygwin: object dumper.
18383 OBJDUMP="$OBJDUMP"
18384
18385 # Used on cygwin: assembler.
18386 AS="$AS"
18387
18388 # The name of the directory that contains temporary libtool files.
18389 objdir=$objdir
18390
18391 # How to create reloadable object files.
18392 reload_flag=$lt_reload_flag
18393 reload_cmds=$lt_reload_cmds
18394
18395 # How to pass a linker flag through the compiler.
18396 wl=$lt_lt_prog_compiler_wl_GCJ
18397
18398 # Object file suffix (normally "o").
18399 objext="$ac_objext"
18400
18401 # Old archive suffix (normally "a").
18402 libext="$libext"
18403
18404 # Shared library suffix (normally ".so").
18405 shrext_cmds='$shrext_cmds'
18406
18407 # Executable file suffix (normally "").
18408 exeext="$exeext"
18409
18410 # Additional compiler flags for building library objects.
18411 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18412 pic_mode=$pic_mode
18413
18414 # What is the maximum length of a command?
18415 max_cmd_len=$lt_cv_sys_max_cmd_len
18416
18417 # Does compiler simultaneously support -c and -o options?
18418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18419
18420 # Must we lock files when doing compilation?
18421 need_locks=$lt_need_locks
18422
18423 # Do we need the lib prefix for modules?
18424 need_lib_prefix=$need_lib_prefix
18425
18426 # Do we need a version for libraries?
18427 need_version=$need_version
18428
18429 # Whether dlopen is supported.
18430 dlopen_support=$enable_dlopen
18431
18432 # Whether dlopen of programs is supported.
18433 dlopen_self=$enable_dlopen_self
18434
18435 # Whether dlopen of statically linked programs is supported.
18436 dlopen_self_static=$enable_dlopen_self_static
18437
18438 # Compiler flag to prevent dynamic linking.
18439 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18440
18441 # Compiler flag to turn off builtin functions.
18442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18443
18444 # Compiler flag to allow reflexive dlopens.
18445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18446
18447 # Compiler flag to generate shared objects directly from archives.
18448 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18449
18450 # Compiler flag to generate thread-safe objects.
18451 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18452
18453 # Library versioning type.
18454 version_type=$version_type
18455
18456 # Format of library name prefix.
18457 libname_spec=$lt_libname_spec
18458
18459 # List of archive names.  First name is the real one, the rest are links.
18460 # The last name is the one that the linker finds with -lNAME.
18461 library_names_spec=$lt_library_names_spec
18462
18463 # The coded name of the library, if different from the real name.
18464 soname_spec=$lt_soname_spec
18465
18466 # Commands used to build and install an old-style archive.
18467 RANLIB=$lt_RANLIB
18468 old_archive_cmds=$lt_old_archive_cmds_GCJ
18469 old_postinstall_cmds=$lt_old_postinstall_cmds
18470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18471
18472 # Create an old-style archive from a shared archive.
18473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18474
18475 # Create a temporary old-style archive to link instead of a shared archive.
18476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18477
18478 # Commands used to build and install a shared archive.
18479 archive_cmds=$lt_archive_cmds_GCJ
18480 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18481 postinstall_cmds=$lt_postinstall_cmds
18482 postuninstall_cmds=$lt_postuninstall_cmds
18483
18484 # Commands used to build a loadable module (assumed same as above if empty)
18485 module_cmds=$lt_module_cmds_GCJ
18486 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18487
18488 # Commands to strip libraries.
18489 old_striplib=$lt_old_striplib
18490 striplib=$lt_striplib
18491
18492 # Dependencies to place before the objects being linked to create a
18493 # shared library.
18494 predep_objects=$lt_predep_objects_GCJ
18495
18496 # Dependencies to place after the objects being linked to create a
18497 # shared library.
18498 postdep_objects=$lt_postdep_objects_GCJ
18499
18500 # Dependencies to place before the objects being linked to create a
18501 # shared library.
18502 predeps=$lt_predeps_GCJ
18503
18504 # Dependencies to place after the objects being linked to create a
18505 # shared library.
18506 postdeps=$lt_postdeps_GCJ
18507
18508 # The library search path used internally by the compiler when linking
18509 # a shared library.
18510 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18511
18512 # Method to check whether dependent libraries are shared objects.
18513 deplibs_check_method=$lt_deplibs_check_method
18514
18515 # Command to use when deplibs_check_method == file_magic.
18516 file_magic_cmd=$lt_file_magic_cmd
18517
18518 # Flag that allows shared libraries with undefined symbols to be built.
18519 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18520
18521 # Flag that forces no undefined symbols.
18522 no_undefined_flag=$lt_no_undefined_flag_GCJ
18523
18524 # Commands used to finish a libtool library installation in a directory.
18525 finish_cmds=$lt_finish_cmds
18526
18527 # Same as above, but a single script fragment to be evaled but not shown.
18528 finish_eval=$lt_finish_eval
18529
18530 # Take the output of nm and produce a listing of raw symbols and C names.
18531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18532
18533 # Transform the output of nm in a proper C declaration
18534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18535
18536 # Transform the output of nm in a C name address pair
18537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18538
18539 # This is the shared library runtime path variable.
18540 runpath_var=$runpath_var
18541
18542 # This is the shared library path variable.
18543 shlibpath_var=$shlibpath_var
18544
18545 # Is shlibpath searched before the hard-coded library search path?
18546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18547
18548 # How to hardcode a shared library path into an executable.
18549 hardcode_action=$hardcode_action_GCJ
18550
18551 # Whether we should hardcode library paths into libraries.
18552 hardcode_into_libs=$hardcode_into_libs
18553
18554 # Flag to hardcode \$libdir into a binary during linking.
18555 # This must work even if \$libdir does not exist.
18556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18557
18558 # If ld is used when linking, flag to hardcode \$libdir into
18559 # a binary during linking. This must work even if \$libdir does
18560 # not exist.
18561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18562
18563 # Whether we need a single -rpath flag with a separated argument.
18564 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18565
18566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18567 # resulting binary.
18568 hardcode_direct=$hardcode_direct_GCJ
18569
18570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18571 # resulting binary.
18572 hardcode_minus_L=$hardcode_minus_L_GCJ
18573
18574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18575 # the resulting binary.
18576 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18577
18578 # Set to yes if building a shared library automatically hardcodes DIR into the library
18579 # and all subsequent libraries and executables linked against it.
18580 hardcode_automatic=$hardcode_automatic_GCJ
18581
18582 # Variables whose values should be saved in libtool wrapper scripts and
18583 # restored at relink time.
18584 variables_saved_for_relink="$variables_saved_for_relink"
18585
18586 # Whether libtool must link a program against all its dependency libraries.
18587 link_all_deplibs=$link_all_deplibs_GCJ
18588
18589 # Compile-time system search path for libraries
18590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18591
18592 # Run-time system search path for libraries
18593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18594
18595 # Fix the shell variable \$srcfile for the compiler.
18596 fix_srcfile_path="$fix_srcfile_path_GCJ"
18597
18598 # Set to yes if exported symbols are required.
18599 always_export_symbols=$always_export_symbols_GCJ
18600
18601 # The commands to list exported symbols.
18602 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18603
18604 # The commands to extract the exported symbol list from a shared archive.
18605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18606
18607 # Symbols that should not be listed in the preloaded symbols.
18608 exclude_expsyms=$lt_exclude_expsyms_GCJ
18609
18610 # Symbols that must always be exported.
18611 include_expsyms=$lt_include_expsyms_GCJ
18612
18613 # ### END LIBTOOL TAG CONFIG: $tagname
18614
18615 __EOF__
18616
18617
18618 else
18619   # If there is no Makefile yet, we rely on a make rule to execute
18620   # `config.status --recheck' to rerun these tests and create the
18621   # libtool script then.
18622   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18623   if test -f "$ltmain_in"; then
18624     test -f Makefile && make "$ltmain"
18625   fi
18626 fi
18627
18628
18629 ac_ext=c
18630 ac_cpp='$CPP $CPPFLAGS'
18631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18634
18635 CC="$lt_save_CC"
18636
18637         else
18638           tagname=""
18639         fi
18640         ;;
18641
18642       RC)
18643
18644
18645 # Source file extension for RC test sources.
18646 ac_ext=rc
18647
18648 # Object file extension for compiled RC test sources.
18649 objext=o
18650 objext_RC=$objext
18651
18652 # Code to be used in simple compile tests
18653 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18654
18655 # Code to be used in simple link tests
18656 lt_simple_link_test_code="$lt_simple_compile_test_code"
18657
18658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18659
18660 # If no C compiler was specified, use CC.
18661 LTCC=${LTCC-"$CC"}
18662
18663 # If no C compiler flags were specified, use CFLAGS.
18664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18665
18666 # Allow CC to be a program name with arguments.
18667 compiler=$CC
18668
18669
18670 # save warnings/boilerplate of simple test code
18671 ac_outfile=conftest.$ac_objext
18672 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18674 _lt_compiler_boilerplate=`cat conftest.err`
18675 $rm conftest*
18676
18677 ac_outfile=conftest.$ac_objext
18678 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18680 _lt_linker_boilerplate=`cat conftest.err`
18681 $rm conftest*
18682
18683
18684 # Allow CC to be a program name with arguments.
18685 lt_save_CC="$CC"
18686 CC=${RC-"windres"}
18687 compiler=$CC
18688 compiler_RC=$CC
18689 for cc_temp in $compiler""; do
18690   case $cc_temp in
18691     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18692     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18693     \-*) ;;
18694     *) break;;
18695   esac
18696 done
18697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18698
18699 lt_cv_prog_compiler_c_o_RC=yes
18700
18701 # The else clause should only fire when bootstrapping the
18702 # libtool distribution, otherwise you forgot to ship ltmain.sh
18703 # with your package, and you will get complaints that there are
18704 # no rules to generate ltmain.sh.
18705 if test -f "$ltmain"; then
18706   # See if we are running on zsh, and set the options which allow our commands through
18707   # without removal of \ escapes.
18708   if test -n "${ZSH_VERSION+set}" ; then
18709     setopt NO_GLOB_SUBST
18710   fi
18711   # Now quote all the things that may contain metacharacters while being
18712   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18713   # variables and quote the copies for generation of the libtool script.
18714   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18715     SED SHELL STRIP \
18716     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18717     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18718     deplibs_check_method reload_flag reload_cmds need_locks \
18719     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18720     lt_cv_sys_global_symbol_to_c_name_address \
18721     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18722     old_postinstall_cmds old_postuninstall_cmds \
18723     compiler_RC \
18724     CC_RC \
18725     LD_RC \
18726     lt_prog_compiler_wl_RC \
18727     lt_prog_compiler_pic_RC \
18728     lt_prog_compiler_static_RC \
18729     lt_prog_compiler_no_builtin_flag_RC \
18730     export_dynamic_flag_spec_RC \
18731     thread_safe_flag_spec_RC \
18732     whole_archive_flag_spec_RC \
18733     enable_shared_with_static_runtimes_RC \
18734     old_archive_cmds_RC \
18735     old_archive_from_new_cmds_RC \
18736     predep_objects_RC \
18737     postdep_objects_RC \
18738     predeps_RC \
18739     postdeps_RC \
18740     compiler_lib_search_path_RC \
18741     archive_cmds_RC \
18742     archive_expsym_cmds_RC \
18743     postinstall_cmds_RC \
18744     postuninstall_cmds_RC \
18745     old_archive_from_expsyms_cmds_RC \
18746     allow_undefined_flag_RC \
18747     no_undefined_flag_RC \
18748     export_symbols_cmds_RC \
18749     hardcode_libdir_flag_spec_RC \
18750     hardcode_libdir_flag_spec_ld_RC \
18751     hardcode_libdir_separator_RC \
18752     hardcode_automatic_RC \
18753     module_cmds_RC \
18754     module_expsym_cmds_RC \
18755     lt_cv_prog_compiler_c_o_RC \
18756     exclude_expsyms_RC \
18757     include_expsyms_RC; do
18758
18759     case $var in
18760     old_archive_cmds_RC | \
18761     old_archive_from_new_cmds_RC | \
18762     archive_cmds_RC | \
18763     archive_expsym_cmds_RC | \
18764     module_cmds_RC | \
18765     module_expsym_cmds_RC | \
18766     old_archive_from_expsyms_cmds_RC | \
18767     export_symbols_cmds_RC | \
18768     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18769     postinstall_cmds | postuninstall_cmds | \
18770     old_postinstall_cmds | old_postuninstall_cmds | \
18771     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18772       # Double-quote double-evaled strings.
18773       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18774       ;;
18775     *)
18776       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18777       ;;
18778     esac
18779   done
18780
18781   case $lt_echo in
18782   *'\$0 --fallback-echo"')
18783     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18784     ;;
18785   esac
18786
18787 cfgfile="$ofile"
18788
18789   cat <<__EOF__ >> "$cfgfile"
18790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18791
18792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18793
18794 # Shell to use when invoking shell scripts.
18795 SHELL=$lt_SHELL
18796
18797 # Whether or not to build shared libraries.
18798 build_libtool_libs=$enable_shared
18799
18800 # Whether or not to build static libraries.
18801 build_old_libs=$enable_static
18802
18803 # Whether or not to add -lc for building shared libraries.
18804 build_libtool_need_lc=$archive_cmds_need_lc_RC
18805
18806 # Whether or not to disallow shared libs when runtime libs are static
18807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18808
18809 # Whether or not to optimize for fast installation.
18810 fast_install=$enable_fast_install
18811
18812 # The host system.
18813 host_alias=$host_alias
18814 host=$host
18815 host_os=$host_os
18816
18817 # The build system.
18818 build_alias=$build_alias
18819 build=$build
18820 build_os=$build_os
18821
18822 # An echo program that does not interpret backslashes.
18823 echo=$lt_echo
18824
18825 # The archiver.
18826 AR=$lt_AR
18827 AR_FLAGS=$lt_AR_FLAGS
18828
18829 # A C compiler.
18830 LTCC=$lt_LTCC
18831
18832 # LTCC compiler flags.
18833 LTCFLAGS=$lt_LTCFLAGS
18834
18835 # A language-specific compiler.
18836 CC=$lt_compiler_RC
18837
18838 # Is the compiler the GNU C compiler?
18839 with_gcc=$GCC_RC
18840
18841 # An ERE matcher.
18842 EGREP=$lt_EGREP
18843
18844 # The linker used to build libraries.
18845 LD=$lt_LD_RC
18846
18847 # Whether we need hard or soft links.
18848 LN_S=$lt_LN_S
18849
18850 # A BSD-compatible nm program.
18851 NM=$lt_NM
18852
18853 # A symbol stripping program
18854 STRIP=$lt_STRIP
18855
18856 # Used to examine libraries when file_magic_cmd begins "file"
18857 MAGIC_CMD=$MAGIC_CMD
18858
18859 # Used on cygwin: DLL creation program.
18860 DLLTOOL="$DLLTOOL"
18861
18862 # Used on cygwin: object dumper.
18863 OBJDUMP="$OBJDUMP"
18864
18865 # Used on cygwin: assembler.
18866 AS="$AS"
18867
18868 # The name of the directory that contains temporary libtool files.
18869 objdir=$objdir
18870
18871 # How to create reloadable object files.
18872 reload_flag=$lt_reload_flag
18873 reload_cmds=$lt_reload_cmds
18874
18875 # How to pass a linker flag through the compiler.
18876 wl=$lt_lt_prog_compiler_wl_RC
18877
18878 # Object file suffix (normally "o").
18879 objext="$ac_objext"
18880
18881 # Old archive suffix (normally "a").
18882 libext="$libext"
18883
18884 # Shared library suffix (normally ".so").
18885 shrext_cmds='$shrext_cmds'
18886
18887 # Executable file suffix (normally "").
18888 exeext="$exeext"
18889
18890 # Additional compiler flags for building library objects.
18891 pic_flag=$lt_lt_prog_compiler_pic_RC
18892 pic_mode=$pic_mode
18893
18894 # What is the maximum length of a command?
18895 max_cmd_len=$lt_cv_sys_max_cmd_len
18896
18897 # Does compiler simultaneously support -c and -o options?
18898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18899
18900 # Must we lock files when doing compilation?
18901 need_locks=$lt_need_locks
18902
18903 # Do we need the lib prefix for modules?
18904 need_lib_prefix=$need_lib_prefix
18905
18906 # Do we need a version for libraries?
18907 need_version=$need_version
18908
18909 # Whether dlopen is supported.
18910 dlopen_support=$enable_dlopen
18911
18912 # Whether dlopen of programs is supported.
18913 dlopen_self=$enable_dlopen_self
18914
18915 # Whether dlopen of statically linked programs is supported.
18916 dlopen_self_static=$enable_dlopen_self_static
18917
18918 # Compiler flag to prevent dynamic linking.
18919 link_static_flag=$lt_lt_prog_compiler_static_RC
18920
18921 # Compiler flag to turn off builtin functions.
18922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18923
18924 # Compiler flag to allow reflexive dlopens.
18925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18926
18927 # Compiler flag to generate shared objects directly from archives.
18928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18929
18930 # Compiler flag to generate thread-safe objects.
18931 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18932
18933 # Library versioning type.
18934 version_type=$version_type
18935
18936 # Format of library name prefix.
18937 libname_spec=$lt_libname_spec
18938
18939 # List of archive names.  First name is the real one, the rest are links.
18940 # The last name is the one that the linker finds with -lNAME.
18941 library_names_spec=$lt_library_names_spec
18942
18943 # The coded name of the library, if different from the real name.
18944 soname_spec=$lt_soname_spec
18945
18946 # Commands used to build and install an old-style archive.
18947 RANLIB=$lt_RANLIB
18948 old_archive_cmds=$lt_old_archive_cmds_RC
18949 old_postinstall_cmds=$lt_old_postinstall_cmds
18950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18951
18952 # Create an old-style archive from a shared archive.
18953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18954
18955 # Create a temporary old-style archive to link instead of a shared archive.
18956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18957
18958 # Commands used to build and install a shared archive.
18959 archive_cmds=$lt_archive_cmds_RC
18960 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18961 postinstall_cmds=$lt_postinstall_cmds
18962 postuninstall_cmds=$lt_postuninstall_cmds
18963
18964 # Commands used to build a loadable module (assumed same as above if empty)
18965 module_cmds=$lt_module_cmds_RC
18966 module_expsym_cmds=$lt_module_expsym_cmds_RC
18967
18968 # Commands to strip libraries.
18969 old_striplib=$lt_old_striplib
18970 striplib=$lt_striplib
18971
18972 # Dependencies to place before the objects being linked to create a
18973 # shared library.
18974 predep_objects=$lt_predep_objects_RC
18975
18976 # Dependencies to place after the objects being linked to create a
18977 # shared library.
18978 postdep_objects=$lt_postdep_objects_RC
18979
18980 # Dependencies to place before the objects being linked to create a
18981 # shared library.
18982 predeps=$lt_predeps_RC
18983
18984 # Dependencies to place after the objects being linked to create a
18985 # shared library.
18986 postdeps=$lt_postdeps_RC
18987
18988 # The library search path used internally by the compiler when linking
18989 # a shared library.
18990 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18991
18992 # Method to check whether dependent libraries are shared objects.
18993 deplibs_check_method=$lt_deplibs_check_method
18994
18995 # Command to use when deplibs_check_method == file_magic.
18996 file_magic_cmd=$lt_file_magic_cmd
18997
18998 # Flag that allows shared libraries with undefined symbols to be built.
18999 allow_undefined_flag=$lt_allow_undefined_flag_RC
19000
19001 # Flag that forces no undefined symbols.
19002 no_undefined_flag=$lt_no_undefined_flag_RC
19003
19004 # Commands used to finish a libtool library installation in a directory.
19005 finish_cmds=$lt_finish_cmds
19006
19007 # Same as above, but a single script fragment to be evaled but not shown.
19008 finish_eval=$lt_finish_eval
19009
19010 # Take the output of nm and produce a listing of raw symbols and C names.
19011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19012
19013 # Transform the output of nm in a proper C declaration
19014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19015
19016 # Transform the output of nm in a C name address pair
19017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19018
19019 # This is the shared library runtime path variable.
19020 runpath_var=$runpath_var
19021
19022 # This is the shared library path variable.
19023 shlibpath_var=$shlibpath_var
19024
19025 # Is shlibpath searched before the hard-coded library search path?
19026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19027
19028 # How to hardcode a shared library path into an executable.
19029 hardcode_action=$hardcode_action_RC
19030
19031 # Whether we should hardcode library paths into libraries.
19032 hardcode_into_libs=$hardcode_into_libs
19033
19034 # Flag to hardcode \$libdir into a binary during linking.
19035 # This must work even if \$libdir does not exist.
19036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19037
19038 # If ld is used when linking, flag to hardcode \$libdir into
19039 # a binary during linking. This must work even if \$libdir does
19040 # not exist.
19041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19042
19043 # Whether we need a single -rpath flag with a separated argument.
19044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19045
19046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19047 # resulting binary.
19048 hardcode_direct=$hardcode_direct_RC
19049
19050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19051 # resulting binary.
19052 hardcode_minus_L=$hardcode_minus_L_RC
19053
19054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19055 # the resulting binary.
19056 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19057
19058 # Set to yes if building a shared library automatically hardcodes DIR into the library
19059 # and all subsequent libraries and executables linked against it.
19060 hardcode_automatic=$hardcode_automatic_RC
19061
19062 # Variables whose values should be saved in libtool wrapper scripts and
19063 # restored at relink time.
19064 variables_saved_for_relink="$variables_saved_for_relink"
19065
19066 # Whether libtool must link a program against all its dependency libraries.
19067 link_all_deplibs=$link_all_deplibs_RC
19068
19069 # Compile-time system search path for libraries
19070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19071
19072 # Run-time system search path for libraries
19073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19074
19075 # Fix the shell variable \$srcfile for the compiler.
19076 fix_srcfile_path="$fix_srcfile_path_RC"
19077
19078 # Set to yes if exported symbols are required.
19079 always_export_symbols=$always_export_symbols_RC
19080
19081 # The commands to list exported symbols.
19082 export_symbols_cmds=$lt_export_symbols_cmds_RC
19083
19084 # The commands to extract the exported symbol list from a shared archive.
19085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19086
19087 # Symbols that should not be listed in the preloaded symbols.
19088 exclude_expsyms=$lt_exclude_expsyms_RC
19089
19090 # Symbols that must always be exported.
19091 include_expsyms=$lt_include_expsyms_RC
19092
19093 # ### END LIBTOOL TAG CONFIG: $tagname
19094
19095 __EOF__
19096
19097
19098 else
19099   # If there is no Makefile yet, we rely on a make rule to execute
19100   # `config.status --recheck' to rerun these tests and create the
19101   # libtool script then.
19102   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19103   if test -f "$ltmain_in"; then
19104     test -f Makefile && make "$ltmain"
19105   fi
19106 fi
19107
19108
19109 ac_ext=c
19110 ac_cpp='$CPP $CPPFLAGS'
19111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19114
19115 CC="$lt_save_CC"
19116
19117         ;;
19118
19119       *)
19120         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19121 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19122    { (exit 1); exit 1; }; }
19123         ;;
19124       esac
19125
19126       # Append the new tag name to the list of available tags.
19127       if test -n "$tagname" ; then
19128       available_tags="$available_tags $tagname"
19129     fi
19130     fi
19131   done
19132   IFS="$lt_save_ifs"
19133
19134   # Now substitute the updated list of available tags.
19135   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19136     mv "${ofile}T" "$ofile"
19137     chmod +x "$ofile"
19138   else
19139     rm -f "${ofile}T"
19140     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19141 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19142    { (exit 1); exit 1; }; }
19143   fi
19144 fi
19145
19146
19147
19148 # This can be used to rebuild libtool when needed
19149 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19150
19151 # Always use our own libtool.
19152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19153
19154 # Prevent multiple expansion
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176 ac_ext=c
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181 if test -n "$ac_tool_prefix"; then
19182   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19186 if test "${ac_cv_prog_CC+set}" = set; then
19187   echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189   if test -n "$CC"; then
19190   ac_cv_prog_CC="$CC" # Let the user override the test.
19191 else
19192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19193 for as_dir in $PATH
19194 do
19195   IFS=$as_save_IFS
19196   test -z "$as_dir" && as_dir=.
19197   for ac_exec_ext in '' $ac_executable_extensions; do
19198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19199     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19201     break 2
19202   fi
19203 done
19204 done
19205 IFS=$as_save_IFS
19206
19207 fi
19208 fi
19209 CC=$ac_cv_prog_CC
19210 if test -n "$CC"; then
19211   { echo "$as_me:$LINENO: result: $CC" >&5
19212 echo "${ECHO_T}$CC" >&6; }
19213 else
19214   { echo "$as_me:$LINENO: result: no" >&5
19215 echo "${ECHO_T}no" >&6; }
19216 fi
19217
19218
19219 fi
19220 if test -z "$ac_cv_prog_CC"; then
19221   ac_ct_CC=$CC
19222   # Extract the first word of "gcc", so it can be a program name with args.
19223 set dummy gcc; ac_word=$2
19224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19227   echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229   if test -n "$ac_ct_CC"; then
19230   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19231 else
19232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19233 for as_dir in $PATH
19234 do
19235   IFS=$as_save_IFS
19236   test -z "$as_dir" && as_dir=.
19237   for ac_exec_ext in '' $ac_executable_extensions; do
19238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19239     ac_cv_prog_ac_ct_CC="gcc"
19240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19241     break 2
19242   fi
19243 done
19244 done
19245 IFS=$as_save_IFS
19246
19247 fi
19248 fi
19249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19250 if test -n "$ac_ct_CC"; then
19251   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19252 echo "${ECHO_T}$ac_ct_CC" >&6; }
19253 else
19254   { echo "$as_me:$LINENO: result: no" >&5
19255 echo "${ECHO_T}no" >&6; }
19256 fi
19257
19258   if test "x$ac_ct_CC" = x; then
19259     CC=""
19260   else
19261     case $cross_compiling:$ac_tool_warned in
19262 yes:)
19263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19264 whose name does not start with the host triplet.  If you think this
19265 configuration is useful to you, please write to autoconf@gnu.org." >&5
19266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19267 whose name does not start with the host triplet.  If you think this
19268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19269 ac_tool_warned=yes ;;
19270 esac
19271     CC=$ac_ct_CC
19272   fi
19273 else
19274   CC="$ac_cv_prog_CC"
19275 fi
19276
19277 if test -z "$CC"; then
19278           if test -n "$ac_tool_prefix"; then
19279     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19280 set dummy ${ac_tool_prefix}cc; ac_word=$2
19281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19283 if test "${ac_cv_prog_CC+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   if test -n "$CC"; then
19287   ac_cv_prog_CC="$CC" # Let the user override the test.
19288 else
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19291 do
19292   IFS=$as_save_IFS
19293   test -z "$as_dir" && as_dir=.
19294   for ac_exec_ext in '' $ac_executable_extensions; do
19295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19296     ac_cv_prog_CC="${ac_tool_prefix}cc"
19297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19298     break 2
19299   fi
19300 done
19301 done
19302 IFS=$as_save_IFS
19303
19304 fi
19305 fi
19306 CC=$ac_cv_prog_CC
19307 if test -n "$CC"; then
19308   { echo "$as_me:$LINENO: result: $CC" >&5
19309 echo "${ECHO_T}$CC" >&6; }
19310 else
19311   { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19313 fi
19314
19315
19316   fi
19317 fi
19318 if test -z "$CC"; then
19319   # Extract the first word of "cc", so it can be a program name with args.
19320 set dummy cc; ac_word=$2
19321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19323 if test "${ac_cv_prog_CC+set}" = set; then
19324   echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326   if test -n "$CC"; then
19327   ac_cv_prog_CC="$CC" # Let the user override the test.
19328 else
19329   ac_prog_rejected=no
19330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19331 for as_dir in $PATH
19332 do
19333   IFS=$as_save_IFS
19334   test -z "$as_dir" && as_dir=.
19335   for ac_exec_ext in '' $ac_executable_extensions; do
19336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19337     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19338        ac_prog_rejected=yes
19339        continue
19340      fi
19341     ac_cv_prog_CC="cc"
19342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19343     break 2
19344   fi
19345 done
19346 done
19347 IFS=$as_save_IFS
19348
19349 if test $ac_prog_rejected = yes; then
19350   # We found a bogon in the path, so make sure we never use it.
19351   set dummy $ac_cv_prog_CC
19352   shift
19353   if test $# != 0; then
19354     # We chose a different compiler from the bogus one.
19355     # However, it has the same basename, so the bogon will be chosen
19356     # first if we set CC to just the basename; use the full file name.
19357     shift
19358     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19359   fi
19360 fi
19361 fi
19362 fi
19363 CC=$ac_cv_prog_CC
19364 if test -n "$CC"; then
19365   { echo "$as_me:$LINENO: result: $CC" >&5
19366 echo "${ECHO_T}$CC" >&6; }
19367 else
19368   { echo "$as_me:$LINENO: result: no" >&5
19369 echo "${ECHO_T}no" >&6; }
19370 fi
19371
19372
19373 fi
19374 if test -z "$CC"; then
19375   if test -n "$ac_tool_prefix"; then
19376   for ac_prog in cl.exe
19377   do
19378     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19382 if test "${ac_cv_prog_CC+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   if test -n "$CC"; then
19386   ac_cv_prog_CC="$CC" # Let the user override the test.
19387 else
19388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19389 for as_dir in $PATH
19390 do
19391   IFS=$as_save_IFS
19392   test -z "$as_dir" && as_dir=.
19393   for ac_exec_ext in '' $ac_executable_extensions; do
19394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19395     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19397     break 2
19398   fi
19399 done
19400 done
19401 IFS=$as_save_IFS
19402
19403 fi
19404 fi
19405 CC=$ac_cv_prog_CC
19406 if test -n "$CC"; then
19407   { echo "$as_me:$LINENO: result: $CC" >&5
19408 echo "${ECHO_T}$CC" >&6; }
19409 else
19410   { echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6; }
19412 fi
19413
19414
19415     test -n "$CC" && break
19416   done
19417 fi
19418 if test -z "$CC"; then
19419   ac_ct_CC=$CC
19420   for ac_prog in cl.exe
19421 do
19422   # Extract the first word of "$ac_prog", so it can be a program name with args.
19423 set dummy $ac_prog; ac_word=$2
19424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429   if test -n "$ac_ct_CC"; then
19430   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19431 else
19432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19433 for as_dir in $PATH
19434 do
19435   IFS=$as_save_IFS
19436   test -z "$as_dir" && as_dir=.
19437   for ac_exec_ext in '' $ac_executable_extensions; do
19438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19439     ac_cv_prog_ac_ct_CC="$ac_prog"
19440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19441     break 2
19442   fi
19443 done
19444 done
19445 IFS=$as_save_IFS
19446
19447 fi
19448 fi
19449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19450 if test -n "$ac_ct_CC"; then
19451   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19452 echo "${ECHO_T}$ac_ct_CC" >&6; }
19453 else
19454   { echo "$as_me:$LINENO: result: no" >&5
19455 echo "${ECHO_T}no" >&6; }
19456 fi
19457
19458
19459   test -n "$ac_ct_CC" && break
19460 done
19461
19462   if test "x$ac_ct_CC" = x; then
19463     CC=""
19464   else
19465     case $cross_compiling:$ac_tool_warned in
19466 yes:)
19467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19468 whose name does not start with the host triplet.  If you think this
19469 configuration is useful to you, please write to autoconf@gnu.org." >&5
19470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19471 whose name does not start with the host triplet.  If you think this
19472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19473 ac_tool_warned=yes ;;
19474 esac
19475     CC=$ac_ct_CC
19476   fi
19477 fi
19478
19479 fi
19480
19481
19482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19483 See \`config.log' for more details." >&5
19484 echo "$as_me: error: no acceptable C compiler found in \$PATH
19485 See \`config.log' for more details." >&2;}
19486    { (exit 1); exit 1; }; }
19487
19488 # Provide some information about the compiler.
19489 echo "$as_me:$LINENO: checking for C compiler version" >&5
19490 ac_compiler=`set X $ac_compile; echo $2`
19491 { (ac_try="$ac_compiler --version >&5"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_compiler --version >&5") 2>&5
19498   ac_status=$?
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); }
19501 { (ac_try="$ac_compiler -v >&5"
19502 case "(($ac_try" in
19503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504   *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507   (eval "$ac_compiler -v >&5") 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }
19511 { (ac_try="$ac_compiler -V >&5"
19512 case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517   (eval "$ac_compiler -V >&5") 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }
19521
19522 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19523 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19524 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19525   echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527   cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 int
19535 main ()
19536 {
19537 #ifndef __GNUC__
19538        choke me
19539 #endif
19540
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552   (eval "$ac_compile") 2>conftest.er1
19553   ac_status=$?
19554   grep -v '^ *+' conftest.er1 >conftest.err
19555   rm -f conftest.er1
19556   cat conftest.err >&5
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); } && {
19559          test -z "$ac_c_werror_flag" ||
19560          test ! -s conftest.err
19561        } && test -s conftest.$ac_objext; then
19562   ac_compiler_gnu=yes
19563 else
19564   echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567         ac_compiler_gnu=no
19568 fi
19569
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19572
19573 fi
19574 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19576 GCC=`test $ac_compiler_gnu = yes && echo yes`
19577 ac_test_CFLAGS=${CFLAGS+set}
19578 ac_save_CFLAGS=$CFLAGS
19579 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19580 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19581 if test "${ac_cv_prog_cc_g+set}" = set; then
19582   echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584   ac_save_c_werror_flag=$ac_c_werror_flag
19585    ac_c_werror_flag=yes
19586    ac_cv_prog_cc_g=no
19587    CFLAGS="-g"
19588    cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594
19595 int
19596 main ()
19597 {
19598
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_compile") 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } && {
19617          test -z "$ac_c_werror_flag" ||
19618          test ! -s conftest.err
19619        } && test -s conftest.$ac_objext; then
19620   ac_cv_prog_cc_g=yes
19621 else
19622   echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625         CFLAGS=""
19626       cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632
19633 int
19634 main ()
19635 {
19636
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (ac_try="$ac_compile"
19643 case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_compile") 2>conftest.er1
19649   ac_status=$?
19650   grep -v '^ *+' conftest.er1 >conftest.err
19651   rm -f conftest.er1
19652   cat conftest.err >&5
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); } && {
19655          test -z "$ac_c_werror_flag" ||
19656          test ! -s conftest.err
19657        } && test -s conftest.$ac_objext; then
19658   :
19659 else
19660   echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663         ac_c_werror_flag=$ac_save_c_werror_flag
19664          CFLAGS="-g"
19665          cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671
19672 int
19673 main ()
19674 {
19675
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext
19681 if { (ac_try="$ac_compile"
19682 case "(($ac_try" in
19683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684   *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687   (eval "$ac_compile") 2>conftest.er1
19688   ac_status=$?
19689   grep -v '^ *+' conftest.er1 >conftest.err
19690   rm -f conftest.er1
19691   cat conftest.err >&5
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); } && {
19694          test -z "$ac_c_werror_flag" ||
19695          test ! -s conftest.err
19696        } && test -s conftest.$ac_objext; then
19697   ac_cv_prog_cc_g=yes
19698 else
19699   echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19701
19702
19703 fi
19704
19705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 fi
19710
19711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19712    ac_c_werror_flag=$ac_save_c_werror_flag
19713 fi
19714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19716 if test "$ac_test_CFLAGS" = set; then
19717   CFLAGS=$ac_save_CFLAGS
19718 elif test $ac_cv_prog_cc_g = yes; then
19719   if test "$GCC" = yes; then
19720     CFLAGS="-g -O2"
19721   else
19722     CFLAGS="-g"
19723   fi
19724 else
19725   if test "$GCC" = yes; then
19726     CFLAGS="-O2"
19727   else
19728     CFLAGS=
19729   fi
19730 fi
19731 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19732 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19733 if test "${ac_cv_prog_cc_c89+set}" = set; then
19734   echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736   ac_cv_prog_cc_c89=no
19737 ac_save_CC=$CC
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744 #include <stdarg.h>
19745 #include <stdio.h>
19746 #include <sys/types.h>
19747 #include <sys/stat.h>
19748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19749 struct buf { int x; };
19750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19751 static char *e (p, i)
19752      char **p;
19753      int i;
19754 {
19755   return p[i];
19756 }
19757 static char *f (char * (*g) (char **, int), char **p, ...)
19758 {
19759   char *s;
19760   va_list v;
19761   va_start (v,p);
19762   s = g (p, va_arg (v,int));
19763   va_end (v);
19764   return s;
19765 }
19766
19767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19768    function prototypes and stuff, but not '\xHH' hex character constants.
19769    These don't provoke an error unfortunately, instead are silently treated
19770    as 'x'.  The following induces an error, until -std is added to get
19771    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19772    array size at least.  It's necessary to write '\x00'==0 to get something
19773    that's true only with -std.  */
19774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19775
19776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19777    inside strings and character constants.  */
19778 #define FOO(x) 'x'
19779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19780
19781 int test (int i, double x);
19782 struct s1 {int (*f) (int a);};
19783 struct s2 {int (*f) (double a);};
19784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19785 int argc;
19786 char **argv;
19787 int
19788 main ()
19789 {
19790 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19791   ;
19792   return 0;
19793 }
19794 _ACEOF
19795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19796         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19797 do
19798   CC="$ac_save_CC $ac_arg"
19799   rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_compile") 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } && {
19813          test -z "$ac_c_werror_flag" ||
19814          test ! -s conftest.err
19815        } && test -s conftest.$ac_objext; then
19816   ac_cv_prog_cc_c89=$ac_arg
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext
19825   test "x$ac_cv_prog_cc_c89" != "xno" && break
19826 done
19827 rm -f conftest.$ac_ext
19828 CC=$ac_save_CC
19829
19830 fi
19831 # AC_CACHE_VAL
19832 case "x$ac_cv_prog_cc_c89" in
19833   x)
19834     { echo "$as_me:$LINENO: result: none needed" >&5
19835 echo "${ECHO_T}none needed" >&6; } ;;
19836   xno)
19837     { echo "$as_me:$LINENO: result: unsupported" >&5
19838 echo "${ECHO_T}unsupported" >&6; } ;;
19839   *)
19840     CC="$CC $ac_cv_prog_cc_c89"
19841     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19842 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19843 esac
19844
19845
19846 ac_ext=c
19847 ac_cpp='$CPP $CPPFLAGS'
19848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19851
19852 depcc="$CC"   am_compiler_list=
19853
19854 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19855 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19856 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19857   echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19860   # We make a subdir and do the tests there.  Otherwise we can end up
19861   # making bogus files that we don't know about and never remove.  For
19862   # instance it was reported that on HP-UX the gcc test will end up
19863   # making a dummy file named `D' -- because `-MD' means `put the output
19864   # in D'.
19865   mkdir conftest.dir
19866   # Copy depcomp to subdir because otherwise we won't find it if we're
19867   # using a relative directory.
19868   cp "$am_depcomp" conftest.dir
19869   cd conftest.dir
19870   # We will build objects and dependencies in a subdirectory because
19871   # it helps to detect inapplicable dependency modes.  For instance
19872   # both Tru64's cc and ICC support -MD to output dependencies as a
19873   # side effect of compilation, but ICC will put the dependencies in
19874   # the current directory while Tru64 will put them in the object
19875   # directory.
19876   mkdir sub
19877
19878   am_cv_CC_dependencies_compiler_type=none
19879   if test "$am_compiler_list" = ""; then
19880      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19881   fi
19882   for depmode in $am_compiler_list; do
19883     # Setup a source with many dependencies, because some compilers
19884     # like to wrap large dependency lists on column 80 (with \), and
19885     # we should not choose a depcomp mode which is confused by this.
19886     #
19887     # We need to recreate these files for each test, as the compiler may
19888     # overwrite some of them when testing with obscure command lines.
19889     # This happens at least with the AIX C compiler.
19890     : > sub/conftest.c
19891     for i in 1 2 3 4 5 6; do
19892       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19893       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19894       # Solaris 8's {/usr,}/bin/sh.
19895       touch sub/conftst$i.h
19896     done
19897     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19898
19899     case $depmode in
19900     nosideeffect)
19901       # after this tag, mechanisms are not by side-effect, so they'll
19902       # only be used when explicitly requested
19903       if test "x$enable_dependency_tracking" = xyes; then
19904         continue
19905       else
19906         break
19907       fi
19908       ;;
19909     none) break ;;
19910     esac
19911     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19912     # mode.  It turns out that the SunPro C++ compiler does not properly
19913     # handle `-M -o', and we need to detect this.
19914     if depmode=$depmode \
19915        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19916        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19917        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19918          >/dev/null 2>conftest.err &&
19919        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19920        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19921        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19923       # icc doesn't choke on unknown options, it will just issue warnings
19924       # or remarks (even with -Werror).  So we grep stderr for any message
19925       # that says an option was ignored or not supported.
19926       # When given -MP, icc 7.0 and 7.1 complain thusly:
19927       #   icc: Command line warning: ignoring option '-M'; no argument required
19928       # The diagnosis changed in icc 8.0:
19929       #   icc: Command line remark: option '-MP' not supported
19930       if (grep 'ignoring option' conftest.err ||
19931           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19932         am_cv_CC_dependencies_compiler_type=$depmode
19933         break
19934       fi
19935     fi
19936   done
19937
19938   cd ..
19939   rm -rf conftest.dir
19940 else
19941   am_cv_CC_dependencies_compiler_type=none
19942 fi
19943
19944 fi
19945 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19946 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19947 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19948
19949  if
19950   test "x$enable_dependency_tracking" != xno \
19951   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19952   am__fastdepCC_TRUE=
19953   am__fastdepCC_FALSE='#'
19954 else
19955   am__fastdepCC_TRUE='#'
19956   am__fastdepCC_FALSE=
19957 fi
19958
19959
19960
19961 # Checks for libraries.
19962
19963 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19964 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19965 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968   ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-lapr-1  $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976
19977
19978 int
19979 main ()
19980 {
19981 return main ();
19982   ;
19983   return 0;
19984 }
19985 _ACEOF
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (ac_try="$ac_link"
19988 case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_link") 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } && {
20000          test -z "$ac_c_werror_flag" ||
20001          test ! -s conftest.err
20002        } && test -s conftest$ac_exeext &&
20003        $as_test_x conftest$ac_exeext; then
20004   ac_cv_lib_apr_1_main=yes
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009         ac_cv_lib_apr_1_main=no
20010 fi
20011
20012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20013       conftest$ac_exeext conftest.$ac_ext
20014 LIBS=$ac_check_lib_save_LIBS
20015 fi
20016 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20017 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20018 if test $ac_cv_lib_apr_1_main = yes; then
20019   cat >>confdefs.h <<_ACEOF
20020 #define HAVE_LIBAPR_1 1
20021 _ACEOF
20022
20023   LIBS="-lapr-1 $LIBS"
20024
20025 fi
20026
20027
20028 # Checks for header files.
20029 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20031 if test "${ac_cv_header_stdc+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 #include <stdlib.h>
20041 #include <stdarg.h>
20042 #include <string.h>
20043 #include <float.h>
20044
20045 int
20046 main ()
20047 {
20048
20049   ;
20050   return 0;
20051 }
20052 _ACEOF
20053 rm -f conftest.$ac_objext
20054 if { (ac_try="$ac_compile"
20055 case "(($ac_try" in
20056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057   *) ac_try_echo=$ac_try;;
20058 esac
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060   (eval "$ac_compile") 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } && {
20067          test -z "$ac_c_werror_flag" ||
20068          test ! -s conftest.err
20069        } && test -s conftest.$ac_objext; then
20070   ac_cv_header_stdc=yes
20071 else
20072   echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075         ac_cv_header_stdc=no
20076 fi
20077
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079
20080 if test $ac_cv_header_stdc = yes; then
20081   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20082   cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088 #include <string.h>
20089
20090 _ACEOF
20091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20092   $EGREP "memchr" >/dev/null 2>&1; then
20093   :
20094 else
20095   ac_cv_header_stdc=no
20096 fi
20097 rm -f conftest*
20098
20099 fi
20100
20101 if test $ac_cv_header_stdc = yes; then
20102   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20103   cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 #include <stdlib.h>
20110
20111 _ACEOF
20112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20113   $EGREP "free" >/dev/null 2>&1; then
20114   :
20115 else
20116   ac_cv_header_stdc=no
20117 fi
20118 rm -f conftest*
20119
20120 fi
20121
20122 if test $ac_cv_header_stdc = yes; then
20123   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20124   if test "$cross_compiling" = yes; then
20125   :
20126 else
20127   cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 #include <ctype.h>
20134 #include <stdlib.h>
20135 #if ((' ' & 0x0FF) == 0x020)
20136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20138 #else
20139 # define ISLOWER(c) \
20140                    (('a' <= (c) && (c) <= 'i') \
20141                      || ('j' <= (c) && (c) <= 'r') \
20142                      || ('s' <= (c) && (c) <= 'z'))
20143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20144 #endif
20145
20146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20147 int
20148 main ()
20149 {
20150   int i;
20151   for (i = 0; i < 256; i++)
20152     if (XOR (islower (i), ISLOWER (i))
20153         || toupper (i) != TOUPPER (i))
20154       return 2;
20155   return 0;
20156 }
20157 _ACEOF
20158 rm -f conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_link") 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20169   { (case "(($ac_try" in
20170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171   *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174   (eval "$ac_try") 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   :
20179 else
20180   echo "$as_me: program exited with status $ac_status" >&5
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ( exit $ac_status )
20185 ac_cv_header_stdc=no
20186 fi
20187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20188 fi
20189
20190
20191 fi
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20194 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20195 if test $ac_cv_header_stdc = yes; then
20196
20197 cat >>confdefs.h <<\_ACEOF
20198 #define STDC_HEADERS 1
20199 _ACEOF
20200
20201 fi
20202
20203
20204 for ac_header in string.h
20205 do
20206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20208   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 fi
20213 ac_res=`eval echo '${'$as_ac_Header'}'`
20214                { echo "$as_me:$LINENO: result: $ac_res" >&5
20215 echo "${ECHO_T}$ac_res" >&6; }
20216 else
20217   # Is the header compilable?
20218 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20220 cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 $ac_includes_default
20227 #include <$ac_header>
20228 _ACEOF
20229 rm -f conftest.$ac_objext
20230 if { (ac_try="$ac_compile"
20231 case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_compile") 2>conftest.er1
20237   ac_status=$?
20238   grep -v '^ *+' conftest.er1 >conftest.err
20239   rm -f conftest.er1
20240   cat conftest.err >&5
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } && {
20243          test -z "$ac_c_werror_flag" ||
20244          test ! -s conftest.err
20245        } && test -s conftest.$ac_objext; then
20246   ac_header_compiler=yes
20247 else
20248   echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251         ac_header_compiler=no
20252 fi
20253
20254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20256 echo "${ECHO_T}$ac_header_compiler" >&6; }
20257
20258 # Is the header present?
20259 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20261 cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267 #include <$ac_header>
20268 _ACEOF
20269 if { (ac_try="$ac_cpp conftest.$ac_ext"
20270 case "(($ac_try" in
20271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272   *) ac_try_echo=$ac_try;;
20273 esac
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20276   ac_status=$?
20277   grep -v '^ *+' conftest.er1 >conftest.err
20278   rm -f conftest.er1
20279   cat conftest.err >&5
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } >/dev/null && {
20282          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20283          test ! -s conftest.err
20284        }; then
20285   ac_header_preproc=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290   ac_header_preproc=no
20291 fi
20292
20293 rm -f conftest.err conftest.$ac_ext
20294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20295 echo "${ECHO_T}$ac_header_preproc" >&6; }
20296
20297 # So?  What about this header?
20298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20299   yes:no: )
20300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20304     ac_header_preproc=yes
20305     ;;
20306   no:yes:* )
20307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20309     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20310 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20311     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20313     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20314 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20317     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20319     ( cat <<\_ASBOX
20320 ## ---------------------------------------- ##
20321 ## Report this to konn@users.sourceforge.jp ##
20322 ## ---------------------------------------- ##
20323 _ASBOX
20324      ) | sed "s/^/$as_me: WARNING:     /" >&2
20325     ;;
20326 esac
20327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   eval "$as_ac_Header=\$ac_header_preproc"
20333 fi
20334 ac_res=`eval echo '${'$as_ac_Header'}'`
20335                { echo "$as_me:$LINENO: result: $ac_res" >&5
20336 echo "${ECHO_T}$ac_res" >&6; }
20337
20338 fi
20339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20340   cat >>confdefs.h <<_ACEOF
20341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20342 _ACEOF
20343
20344 fi
20345
20346 done
20347
20348
20349
20350 # Check whether --with-apr-config was given.
20351 if test "${with_apr_config+set}" = set; then
20352   withval=$with_apr_config;
20353 fi
20354
20355 if test "x$with_apr_config" = "xyes" ; then
20356     { { echo "$as_me:$LINENO: error:
20357 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20358 " >&5
20359 echo "$as_me: error:
20360 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20361 " >&2;}
20362    { (exit 1); exit 1; }; }
20363 fi
20364
20365
20366 # Check whether --with-apu-config was given.
20367 if test "${with_apu_config+set}" = set; then
20368   withval=$with_apu_config;
20369 fi
20370
20371 if test "x$with_apu_config" = "xyes" ; then
20372     { { echo "$as_me:$LINENO: error:
20373 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20374 " >&5
20375 echo "$as_me: error:
20376 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20377 " >&2;}
20378    { (exit 1); exit 1; }; }
20379 fi
20380
20381 # Extract the first word of "libtool", so it can be a program name with args.
20382 set dummy libtool; ac_word=$2
20383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20385 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   case $LIBTOOL in
20389   [\\/]* | ?:[\\/]*)
20390   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20391   ;;
20392   *)
20393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20394 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20395 for as_dir in $as_dummy
20396 do
20397   IFS=$as_save_IFS
20398   test -z "$as_dir" && as_dir=.
20399   for ac_exec_ext in '' $ac_executable_extensions; do
20400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20401     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20403     break 2
20404   fi
20405 done
20406 done
20407 IFS=$as_save_IFS
20408
20409   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20410   ;;
20411 esac
20412 fi
20413 LIBTOOL=$ac_cv_path_LIBTOOL
20414 if test -n "$LIBTOOL"; then
20415   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20416 echo "${ECHO_T}$LIBTOOL" >&6; }
20417 else
20418   { echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6; }
20420 fi
20421
20422
20423 if test "x$LIBTOOL" = "xno"; then
20424     { { echo "$as_me:$LINENO: error: libtool not found." >&5
20425 echo "$as_me: error: libtool not found." >&2;}
20426    { (exit 1); exit 1; }; }
20427 fi
20428
20429
20430 if test "x$with_apr_config" = "x" ; then
20431   # Extract the first word of "apr-config", so it can be a program name with args.
20432 set dummy apr-config; ac_word=$2
20433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20435 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438   case $APR_CONFIG in
20439   [\\/]* | ?:[\\/]*)
20440   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20441   ;;
20442   *)
20443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20445 for as_dir in $as_dummy
20446 do
20447   IFS=$as_save_IFS
20448   test -z "$as_dir" && as_dir=.
20449   for ac_exec_ext in '' $ac_executable_extensions; do
20450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20451     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20453     break 2
20454   fi
20455 done
20456 done
20457 IFS=$as_save_IFS
20458
20459   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20460   ;;
20461 esac
20462 fi
20463 APR_CONFIG=$ac_cv_path_APR_CONFIG
20464 if test -n "$APR_CONFIG"; then
20465   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20466 echo "${ECHO_T}$APR_CONFIG" >&6; }
20467 else
20468   { echo "$as_me:$LINENO: result: no" >&5
20469 echo "${ECHO_T}no" >&6; }
20470 fi
20471
20472
20473   if test "x$APR_CONFIG" = "xno" ; then
20474     # Extract the first word of "apr-1-config", so it can be a program name with args.
20475 set dummy apr-1-config; ac_word=$2
20476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20478 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   case $APR_1_CONFIG in
20482   [\\/]* | ?:[\\/]*)
20483   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20484   ;;
20485   *)
20486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20487 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20488 for as_dir in $as_dummy
20489 do
20490   IFS=$as_save_IFS
20491   test -z "$as_dir" && as_dir=.
20492   for ac_exec_ext in '' $ac_executable_extensions; do
20493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20494     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20496     break 2
20497   fi
20498 done
20499 done
20500 IFS=$as_save_IFS
20501
20502   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20503   ;;
20504 esac
20505 fi
20506 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20507 if test -n "$APR_1_CONFIG"; then
20508   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20509 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20510 else
20511   { echo "$as_me:$LINENO: result: no" >&5
20512 echo "${ECHO_T}no" >&6; }
20513 fi
20514
20515
20516     if test "x$APR_1_CONFIG" = "xno" ; then
20517       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20518 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20519    { (exit 1); exit 1; }; }
20520     else
20521       APR_CONFIG="$APR_1_CONFIG"
20522     fi
20523   fi
20524 fi
20525 if test "x$with_apr_config" != "x" ; then
20526   APR_CONFIG=$with_apr_config
20527 fi
20528 if test "x$with_apu_config" = "x" ; then
20529   # Extract the first word of "apu-config", so it can be a program name with args.
20530 set dummy apu-config; ac_word=$2
20531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20533 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536   case $APU_CONFIG in
20537   [\\/]* | ?:[\\/]*)
20538   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20539   ;;
20540   *)
20541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20542 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20543 for as_dir in $as_dummy
20544 do
20545   IFS=$as_save_IFS
20546   test -z "$as_dir" && as_dir=.
20547   for ac_exec_ext in '' $ac_executable_extensions; do
20548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20549     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20551     break 2
20552   fi
20553 done
20554 done
20555 IFS=$as_save_IFS
20556
20557   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20558   ;;
20559 esac
20560 fi
20561 APU_CONFIG=$ac_cv_path_APU_CONFIG
20562 if test -n "$APU_CONFIG"; then
20563   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20564 echo "${ECHO_T}$APU_CONFIG" >&6; }
20565 else
20566   { echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6; }
20568 fi
20569
20570
20571   if test "x$APU_CONFIG" = "xno" ; then
20572     # Extract the first word of "apu-1-config", so it can be a program name with args.
20573 set dummy apu-1-config; ac_word=$2
20574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20576 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   case $APU_1_CONFIG in
20580   [\\/]* | ?:[\\/]*)
20581   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20582   ;;
20583   *)
20584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20585 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20586 for as_dir in $as_dummy
20587 do
20588   IFS=$as_save_IFS
20589   test -z "$as_dir" && as_dir=.
20590   for ac_exec_ext in '' $ac_executable_extensions; do
20591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20592     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20594     break 2
20595   fi
20596 done
20597 done
20598 IFS=$as_save_IFS
20599
20600   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20601   ;;
20602 esac
20603 fi
20604 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20605 if test -n "$APU_1_CONFIG"; then
20606   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20607 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20608 else
20609   { echo "$as_me:$LINENO: result: no" >&5
20610 echo "${ECHO_T}no" >&6; }
20611 fi
20612
20613
20614     if test "x$APU_1_CONFIG" = "xno" ; then
20615       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20616 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20617    { (exit 1); exit 1; }; }
20618     else
20619       APU_CONFIG="$APU_1_CONFIG"
20620     fi
20621   fi
20622 fi
20623 if test "x$with_apu_config" != "x" ; then
20624   APU_CONFIG=$with_apu_config
20625 fi
20626
20627
20628 if test "x$with_apu_config" != "x" ; then
20629   APU_CONFIG=$with_apu_config
20630 fi
20631
20632 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20633 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20634 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20635 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20636
20637
20638 # Checks for typedefs, structures, and compiler characteristics.
20639 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20640 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20641 if test "${ac_cv_c_const+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650
20651 int
20652 main ()
20653 {
20654 /* FIXME: Include the comments suggested by Paul. */
20655 #ifndef __cplusplus
20656   /* Ultrix mips cc rejects this.  */
20657   typedef int charset[2];
20658   const charset cs;
20659   /* SunOS 4.1.1 cc rejects this.  */
20660   char const *const *pcpcc;
20661   char **ppc;
20662   /* NEC SVR4.0.2 mips cc rejects this.  */
20663   struct point {int x, y;};
20664   static struct point const zero = {0,0};
20665   /* AIX XL C 1.02.0.0 rejects this.
20666      It does not let you subtract one const X* pointer from another in
20667      an arm of an if-expression whose if-part is not a constant
20668      expression */
20669   const char *g = "string";
20670   pcpcc = &g + (g ? g-g : 0);
20671   /* HPUX 7.0 cc rejects these. */
20672   ++pcpcc;
20673   ppc = (char**) pcpcc;
20674   pcpcc = (char const *const *) ppc;
20675   { /* SCO 3.2v4 cc rejects this.  */
20676     char *t;
20677     char const *s = 0 ? (char *) 0 : (char const *) 0;
20678
20679     *t++ = 0;
20680     if (s) return 0;
20681   }
20682   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20683     int x[] = {25, 17};
20684     const int *foo = &x[0];
20685     ++foo;
20686   }
20687   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20688     typedef const int *iptr;
20689     iptr p = 0;
20690     ++p;
20691   }
20692   { /* AIX XL C 1.02.0.0 rejects this saying
20693        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20694     struct s { int j; const int *ap[3]; };
20695     struct s *b; b->j = 5;
20696   }
20697   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20698     const int foo = 10;
20699     if (!foo) return 0;
20700   }
20701   return !cs[0] && !zero.x;
20702 #endif
20703
20704   ;
20705   return 0;
20706 }
20707 _ACEOF
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712   *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715   (eval "$ac_compile") 2>conftest.er1
20716   ac_status=$?
20717   grep -v '^ *+' conftest.er1 >conftest.err
20718   rm -f conftest.er1
20719   cat conftest.err >&5
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); } && {
20722          test -z "$ac_c_werror_flag" ||
20723          test ! -s conftest.err
20724        } && test -s conftest.$ac_objext; then
20725   ac_cv_c_const=yes
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730         ac_cv_c_const=no
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 fi
20735 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20736 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20737 if test $ac_cv_c_const = no; then
20738
20739 cat >>confdefs.h <<\_ACEOF
20740 #define const
20741 _ACEOF
20742
20743 fi
20744
20745
20746 # Checks for library functions.
20747
20748
20749
20750 for ac_func in memset strcasecmp strncasecmp
20751 do
20752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20766 #define $ac_func innocuous_$ac_func
20767
20768 /* System header to define __stub macros and hopefully few prototypes,
20769     which can conflict with char $ac_func (); below.
20770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20771     <limits.h> exists even on freestanding compilers.  */
20772
20773 #ifdef __STDC__
20774 # include <limits.h>
20775 #else
20776 # include <assert.h>
20777 #endif
20778
20779 #undef $ac_func
20780
20781 /* Override any GCC internal prototype to avoid an error.
20782    Use char because int might match the return type of a GCC
20783    builtin and then its argument prototype would still apply.  */
20784 #ifdef __cplusplus
20785 extern "C"
20786 #endif
20787 char $ac_func ();
20788 /* The GNU C library defines this for functions which it implements
20789     to always fail with ENOSYS.  Some functions are actually named
20790     something starting with __ and the normal name is an alias.  */
20791 #if defined __stub_$ac_func || defined __stub___$ac_func
20792 choke me
20793 #endif
20794
20795 int
20796 main ()
20797 {
20798 return $ac_func ();
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_link") 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } && {
20817          test -z "$ac_c_werror_flag" ||
20818          test ! -s conftest.err
20819        } && test -s conftest$ac_exeext &&
20820        $as_test_x conftest$ac_exeext; then
20821   eval "$as_ac_var=yes"
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826         eval "$as_ac_var=no"
20827 fi
20828
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830       conftest$ac_exeext conftest.$ac_ext
20831 fi
20832 ac_res=`eval echo '${'$as_ac_var'}'`
20833                { echo "$as_me:$LINENO: result: $ac_res" >&5
20834 echo "${ECHO_T}$ac_res" >&6; }
20835 if test `eval echo '${'$as_ac_var'}'` = yes; then
20836   cat >>confdefs.h <<_ACEOF
20837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20838 _ACEOF
20839
20840 fi
20841 done
20842
20843
20844
20845
20846
20847
20848 ac_config_files="$ac_config_files Makefile src/Makefile"
20849
20850 cat >confcache <<\_ACEOF
20851 # This file is a shell script that caches the results of configure
20852 # tests run on this system so they can be shared between configure
20853 # scripts and configure runs, see configure's option --config-cache.
20854 # It is not useful on other systems.  If it contains results you don't
20855 # want to keep, you may remove or edit it.
20856 #
20857 # config.status only pays attention to the cache file if you give it
20858 # the --recheck option to rerun configure.
20859 #
20860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20862 # following values.
20863
20864 _ACEOF
20865
20866 # The following way of writing the cache mishandles newlines in values,
20867 # but we know of no workaround that is simple, portable, and efficient.
20868 # So, we kill variables containing newlines.
20869 # Ultrix sh set writes to stderr and can't be redirected directly,
20870 # and sets the high bit in the cache file unless we assign to the vars.
20871 (
20872   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20873     eval ac_val=\$$ac_var
20874     case $ac_val in #(
20875     *${as_nl}*)
20876       case $ac_var in #(
20877       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20878 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20879       esac
20880       case $ac_var in #(
20881       _ | IFS | as_nl) ;; #(
20882       *) $as_unset $ac_var ;;
20883       esac ;;
20884     esac
20885   done
20886
20887   (set) 2>&1 |
20888     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20889     *${as_nl}ac_space=\ *)
20890       # `set' does not quote correctly, so add quotes (double-quote
20891       # substitution turns \\\\ into \\, and sed turns \\ into \).
20892       sed -n \
20893         "s/'/'\\\\''/g;
20894           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20895       ;; #(
20896     *)
20897       # `set' quotes correctly as required by POSIX, so do not add quotes.
20898       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20899       ;;
20900     esac |
20901     sort
20902 ) |
20903   sed '
20904      /^ac_cv_env_/b end
20905      t clear
20906      :clear
20907      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20908      t end
20909      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20910      :end' >>confcache
20911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20912   if test -w "$cache_file"; then
20913     test "x$cache_file" != "x/dev/null" &&
20914       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20915 echo "$as_me: updating cache $cache_file" >&6;}
20916     cat confcache >$cache_file
20917   else
20918     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20919 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20920   fi
20921 fi
20922 rm -f confcache
20923
20924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20925 # Let make expand exec_prefix.
20926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20927
20928 DEFS=-DHAVE_CONFIG_H
20929
20930 ac_libobjs=
20931 ac_ltlibobjs=
20932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20933   # 1. Remove the extension, and $U if already installed.
20934   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20935   ac_i=`echo "$ac_i" | sed "$ac_script"`
20936   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20937   #    will be set to the directory where LIBOBJS objects are built.
20938   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20939   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20940 done
20941 LIBOBJS=$ac_libobjs
20942
20943 LTLIBOBJS=$ac_ltlibobjs
20944
20945
20946 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20947   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20948 Usually this means the macro was only invoked conditionally." >&5
20949 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20950 Usually this means the macro was only invoked conditionally." >&2;}
20951    { (exit 1); exit 1; }; }
20952 fi
20953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20954   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20955 Usually this means the macro was only invoked conditionally." >&5
20956 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20957 Usually this means the macro was only invoked conditionally." >&2;}
20958    { (exit 1); exit 1; }; }
20959 fi
20960 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20961   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20962 Usually this means the macro was only invoked conditionally." >&5
20963 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20964 Usually this means the macro was only invoked conditionally." >&2;}
20965    { (exit 1); exit 1; }; }
20966 fi
20967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20968   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20969 Usually this means the macro was only invoked conditionally." >&5
20970 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20971 Usually this means the macro was only invoked conditionally." >&2;}
20972    { (exit 1); exit 1; }; }
20973 fi
20974
20975 : ${CONFIG_STATUS=./config.status}
20976 ac_clean_files_save=$ac_clean_files
20977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20978 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20979 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20980 cat >$CONFIG_STATUS <<_ACEOF
20981 #! $SHELL
20982 # Generated by $as_me.
20983 # Run this file to recreate the current configuration.
20984 # Compiler output produced by configure, useful for debugging
20985 # configure, is in config.log if it exists.
20986
20987 debug=false
20988 ac_cs_recheck=false
20989 ac_cs_silent=false
20990 SHELL=\${CONFIG_SHELL-$SHELL}
20991 _ACEOF
20992
20993 cat >>$CONFIG_STATUS <<\_ACEOF
20994 ## --------------------- ##
20995 ## M4sh Initialization.  ##
20996 ## --------------------- ##
20997
20998 # Be more Bourne compatible
20999 DUALCASE=1; export DUALCASE # for MKS sh
21000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21001   emulate sh
21002   NULLCMD=:
21003   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21004   # is contrary to our usage.  Disable this feature.
21005   alias -g '${1+"$@"}'='"$@"'
21006   setopt NO_GLOB_SUBST
21007 else
21008   case `(set -o) 2>/dev/null` in
21009   *posix*) set -o posix ;;
21010 esac
21011
21012 fi
21013
21014
21015
21016
21017 # PATH needs CR
21018 # Avoid depending upon Character Ranges.
21019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21022 as_cr_digits='0123456789'
21023 as_cr_alnum=$as_cr_Letters$as_cr_digits
21024
21025 # The user is always right.
21026 if test "${PATH_SEPARATOR+set}" != set; then
21027   echo "#! /bin/sh" >conf$$.sh
21028   echo  "exit 0"   >>conf$$.sh
21029   chmod +x conf$$.sh
21030   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21031     PATH_SEPARATOR=';'
21032   else
21033     PATH_SEPARATOR=:
21034   fi
21035   rm -f conf$$.sh
21036 fi
21037
21038 # Support unset when possible.
21039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21040   as_unset=unset
21041 else
21042   as_unset=false
21043 fi
21044
21045
21046 # IFS
21047 # We need space, tab and new line, in precisely that order.  Quoting is
21048 # there to prevent editors from complaining about space-tab.
21049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21050 # splitting by setting IFS to empty value.)
21051 as_nl='
21052 '
21053 IFS=" ""        $as_nl"
21054
21055 # Find who we are.  Look in the path if we contain no directory separator.
21056 case $0 in
21057   *[\\/]* ) as_myself=$0 ;;
21058   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21059 for as_dir in $PATH
21060 do
21061   IFS=$as_save_IFS
21062   test -z "$as_dir" && as_dir=.
21063   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21064 done
21065 IFS=$as_save_IFS
21066
21067      ;;
21068 esac
21069 # We did not find ourselves, most probably we were run as `sh COMMAND'
21070 # in which case we are not to be found in the path.
21071 if test "x$as_myself" = x; then
21072   as_myself=$0
21073 fi
21074 if test ! -f "$as_myself"; then
21075   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21076   { (exit 1); exit 1; }
21077 fi
21078
21079 # Work around bugs in pre-3.0 UWIN ksh.
21080 for as_var in ENV MAIL MAILPATH
21081 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21082 done
21083 PS1='$ '
21084 PS2='> '
21085 PS4='+ '
21086
21087 # NLS nuisances.
21088 for as_var in \
21089   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21090   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21091   LC_TELEPHONE LC_TIME
21092 do
21093   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21094     eval $as_var=C; export $as_var
21095   else
21096     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21097   fi
21098 done
21099
21100 # Required to use basename.
21101 if expr a : '\(a\)' >/dev/null 2>&1 &&
21102    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21103   as_expr=expr
21104 else
21105   as_expr=false
21106 fi
21107
21108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21109   as_basename=basename
21110 else
21111   as_basename=false
21112 fi
21113
21114
21115 # Name of the executable.
21116 as_me=`$as_basename -- "$0" ||
21117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21118          X"$0" : 'X\(//\)$' \| \
21119          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21120 echo X/"$0" |
21121     sed '/^.*\/\([^/][^/]*\)\/*$/{
21122             s//\1/
21123             q
21124           }
21125           /^X\/\(\/\/\)$/{
21126             s//\1/
21127             q
21128           }
21129           /^X\/\(\/\).*/{
21130             s//\1/
21131             q
21132           }
21133           s/.*/./; q'`
21134
21135 # CDPATH.
21136 $as_unset CDPATH
21137
21138
21139
21140   as_lineno_1=$LINENO
21141   as_lineno_2=$LINENO
21142   test "x$as_lineno_1" != "x$as_lineno_2" &&
21143   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21144
21145   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21146   # uniformly replaced by the line number.  The first 'sed' inserts a
21147   # line-number line after each line using $LINENO; the second 'sed'
21148   # does the real work.  The second script uses 'N' to pair each
21149   # line-number line with the line containing $LINENO, and appends
21150   # trailing '-' during substitution so that $LINENO is not a special
21151   # case at line end.
21152   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21153   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21154   # E. McMahon (1931-1989) for sed's syntax.  :-)
21155   sed -n '
21156     p
21157     /[$]LINENO/=
21158   ' <$as_myself |
21159     sed '
21160       s/[$]LINENO.*/&-/
21161       t lineno
21162       b
21163       :lineno
21164       N
21165       :loop
21166       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21167       t loop
21168       s/-\n.*//
21169     ' >$as_me.lineno &&
21170   chmod +x "$as_me.lineno" ||
21171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21172    { (exit 1); exit 1; }; }
21173
21174   # Don't try to exec as it changes $[0], causing all sort of problems
21175   # (the dirname of $[0] is not the place where we might find the
21176   # original and so on.  Autoconf is especially sensitive to this).
21177   . "./$as_me.lineno"
21178   # Exit status is that of the last command.
21179   exit
21180 }
21181
21182
21183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21184   as_dirname=dirname
21185 else
21186   as_dirname=false
21187 fi
21188
21189 ECHO_C= ECHO_N= ECHO_T=
21190 case `echo -n x` in
21191 -n*)
21192   case `echo 'x\c'` in
21193   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21194   *)   ECHO_C='\c';;
21195   esac;;
21196 *)
21197   ECHO_N='-n';;
21198 esac
21199
21200 if expr a : '\(a\)' >/dev/null 2>&1 &&
21201    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21202   as_expr=expr
21203 else
21204   as_expr=false
21205 fi
21206
21207 rm -f conf$$ conf$$.exe conf$$.file
21208 if test -d conf$$.dir; then
21209   rm -f conf$$.dir/conf$$.file
21210 else
21211   rm -f conf$$.dir
21212   mkdir conf$$.dir
21213 fi
21214 echo >conf$$.file
21215 if ln -s conf$$.file conf$$ 2>/dev/null; then
21216   as_ln_s='ln -s'
21217   # ... but there are two gotchas:
21218   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21219   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21220   # In both cases, we have to default to `cp -p'.
21221   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21222     as_ln_s='cp -p'
21223 elif ln conf$$.file conf$$ 2>/dev/null; then
21224   as_ln_s=ln
21225 else
21226   as_ln_s='cp -p'
21227 fi
21228 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21229 rmdir conf$$.dir 2>/dev/null
21230
21231 if mkdir -p . 2>/dev/null; then
21232   as_mkdir_p=:
21233 else
21234   test -d ./-p && rmdir ./-p
21235   as_mkdir_p=false
21236 fi
21237
21238 if test -x / >/dev/null 2>&1; then
21239   as_test_x='test -x'
21240 else
21241   if ls -dL / >/dev/null 2>&1; then
21242     as_ls_L_option=L
21243   else
21244     as_ls_L_option=
21245   fi
21246   as_test_x='
21247     eval sh -c '\''
21248       if test -d "$1"; then
21249         test -d "$1/.";
21250       else
21251         case $1 in
21252         -*)set "./$1";;
21253         esac;
21254         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21255         ???[sx]*):;;*)false;;esac;fi
21256     '\'' sh
21257   '
21258 fi
21259 as_executable_p=$as_test_x
21260
21261 # Sed expression to map a string onto a valid CPP name.
21262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21263
21264 # Sed expression to map a string onto a valid variable name.
21265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21266
21267
21268 exec 6>&1
21269
21270 # Save the log message, to keep $[0] and so on meaningful, and to
21271 # report actual input values of CONFIG_FILES etc. instead of their
21272 # values after options handling.
21273 ac_log="
21274 This file was extended by scss $as_me 1.0.0, which was
21275 generated by GNU Autoconf 2.61.  Invocation command line was
21276
21277   CONFIG_FILES    = $CONFIG_FILES
21278   CONFIG_HEADERS  = $CONFIG_HEADERS
21279   CONFIG_LINKS    = $CONFIG_LINKS
21280   CONFIG_COMMANDS = $CONFIG_COMMANDS
21281   $ $0 $@
21282
21283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21284 "
21285
21286 _ACEOF
21287
21288 cat >>$CONFIG_STATUS <<_ACEOF
21289 # Files that config.status was made for.
21290 config_files="$ac_config_files"
21291 config_headers="$ac_config_headers"
21292 config_commands="$ac_config_commands"
21293
21294 _ACEOF
21295
21296 cat >>$CONFIG_STATUS <<\_ACEOF
21297 ac_cs_usage="\
21298 \`$as_me' instantiates files from templates according to the
21299 current configuration.
21300
21301 Usage: $0 [OPTIONS] [FILE]...
21302
21303   -h, --help       print this help, then exit
21304   -V, --version    print version number and configuration settings, then exit
21305   -q, --quiet      do not print progress messages
21306   -d, --debug      don't remove temporary files
21307       --recheck    update $as_me by reconfiguring in the same conditions
21308   --file=FILE[:TEMPLATE]
21309                    instantiate the configuration file FILE
21310   --header=FILE[:TEMPLATE]
21311                    instantiate the configuration header FILE
21312
21313 Configuration files:
21314 $config_files
21315
21316 Configuration headers:
21317 $config_headers
21318
21319 Configuration commands:
21320 $config_commands
21321
21322 Report bugs to <bug-autoconf@gnu.org>."
21323
21324 _ACEOF
21325 cat >>$CONFIG_STATUS <<_ACEOF
21326 ac_cs_version="\\
21327 scss config.status 1.0.0
21328 configured by $0, generated by GNU Autoconf 2.61,
21329   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21330
21331 Copyright (C) 2006 Free Software Foundation, Inc.
21332 This config.status script is free software; the Free Software Foundation
21333 gives unlimited permission to copy, distribute and modify it."
21334
21335 ac_pwd='$ac_pwd'
21336 srcdir='$srcdir'
21337 INSTALL='$INSTALL'
21338 MKDIR_P='$MKDIR_P'
21339 _ACEOF
21340
21341 cat >>$CONFIG_STATUS <<\_ACEOF
21342 # If no file are specified by the user, then we need to provide default
21343 # value.  By we need to know if files were specified by the user.
21344 ac_need_defaults=:
21345 while test $# != 0
21346 do
21347   case $1 in
21348   --*=*)
21349     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21350     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21351     ac_shift=:
21352     ;;
21353   *)
21354     ac_option=$1
21355     ac_optarg=$2
21356     ac_shift=shift
21357     ;;
21358   esac
21359
21360   case $ac_option in
21361   # Handling of the options.
21362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21363     ac_cs_recheck=: ;;
21364   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21365     echo "$ac_cs_version"; exit ;;
21366   --debug | --debu | --deb | --de | --d | -d )
21367     debug=: ;;
21368   --file | --fil | --fi | --f )
21369     $ac_shift
21370     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21371     ac_need_defaults=false;;
21372   --header | --heade | --head | --hea )
21373     $ac_shift
21374     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21375     ac_need_defaults=false;;
21376   --he | --h)
21377     # Conflict between --help and --header
21378     { echo "$as_me: error: ambiguous option: $1
21379 Try \`$0 --help' for more information." >&2
21380    { (exit 1); exit 1; }; };;
21381   --help | --hel | -h )
21382     echo "$ac_cs_usage"; exit ;;
21383   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21384   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21385     ac_cs_silent=: ;;
21386
21387   # This is an error.
21388   -*) { echo "$as_me: error: unrecognized option: $1
21389 Try \`$0 --help' for more information." >&2
21390    { (exit 1); exit 1; }; } ;;
21391
21392   *) ac_config_targets="$ac_config_targets $1"
21393      ac_need_defaults=false ;;
21394
21395   esac
21396   shift
21397 done
21398
21399 ac_configure_extra_args=
21400
21401 if $ac_cs_silent; then
21402   exec 6>/dev/null
21403   ac_configure_extra_args="$ac_configure_extra_args --silent"
21404 fi
21405
21406 _ACEOF
21407 cat >>$CONFIG_STATUS <<_ACEOF
21408 if \$ac_cs_recheck; then
21409   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21410   CONFIG_SHELL=$SHELL
21411   export CONFIG_SHELL
21412   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21413 fi
21414
21415 _ACEOF
21416 cat >>$CONFIG_STATUS <<\_ACEOF
21417 exec 5>>config.log
21418 {
21419   echo
21420   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21421 ## Running $as_me. ##
21422 _ASBOX
21423   echo "$ac_log"
21424 } >&5
21425
21426 _ACEOF
21427 cat >>$CONFIG_STATUS <<_ACEOF
21428 #
21429 # INIT-COMMANDS
21430 #
21431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21432
21433 _ACEOF
21434
21435 cat >>$CONFIG_STATUS <<\_ACEOF
21436
21437 # Handling of arguments.
21438 for ac_config_target in $ac_config_targets
21439 do
21440   case $ac_config_target in
21441     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21442     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21443     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21444     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21445
21446   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21448    { (exit 1); exit 1; }; };;
21449   esac
21450 done
21451
21452
21453 # If the user did not use the arguments to specify the items to instantiate,
21454 # then the envvar interface is used.  Set only those that are not.
21455 # We use the long form for the default assignment because of an extremely
21456 # bizarre bug on SunOS 4.1.3.
21457 if $ac_need_defaults; then
21458   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21459   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21460   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21461 fi
21462
21463 # Have a temporary directory for convenience.  Make it in the build tree
21464 # simply because there is no reason against having it here, and in addition,
21465 # creating and moving files from /tmp can sometimes cause problems.
21466 # Hook for its removal unless debugging.
21467 # Note that there is a small window in which the directory will not be cleaned:
21468 # after its creation but before its name has been assigned to `$tmp'.
21469 $debug ||
21470 {
21471   tmp=
21472   trap 'exit_status=$?
21473   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21474 ' 0
21475   trap '{ (exit 1); exit 1; }' 1 2 13 15
21476 }
21477 # Create a (secure) tmp directory for tmp files.
21478
21479 {
21480   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21481   test -n "$tmp" && test -d "$tmp"
21482 }  ||
21483 {
21484   tmp=./conf$$-$RANDOM
21485   (umask 077 && mkdir "$tmp")
21486 } ||
21487 {
21488    echo "$me: cannot create a temporary directory in ." >&2
21489    { (exit 1); exit 1; }
21490 }
21491
21492 #
21493 # Set up the sed scripts for CONFIG_FILES section.
21494 #
21495
21496 # No need to generate the scripts if there are no CONFIG_FILES.
21497 # This happens for instance when ./config.status config.h
21498 if test -n "$CONFIG_FILES"; then
21499
21500 _ACEOF
21501
21502
21503
21504 ac_delim='%!_!# '
21505 for ac_last_try in false false false false false :; do
21506   cat >conf$$subs.sed <<_ACEOF
21507 SHELL!$SHELL$ac_delim
21508 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21509 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21510 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21511 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21512 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21513 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21514 exec_prefix!$exec_prefix$ac_delim
21515 prefix!$prefix$ac_delim
21516 program_transform_name!$program_transform_name$ac_delim
21517 bindir!$bindir$ac_delim
21518 sbindir!$sbindir$ac_delim
21519 libexecdir!$libexecdir$ac_delim
21520 datarootdir!$datarootdir$ac_delim
21521 datadir!$datadir$ac_delim
21522 sysconfdir!$sysconfdir$ac_delim
21523 sharedstatedir!$sharedstatedir$ac_delim
21524 localstatedir!$localstatedir$ac_delim
21525 includedir!$includedir$ac_delim
21526 oldincludedir!$oldincludedir$ac_delim
21527 docdir!$docdir$ac_delim
21528 infodir!$infodir$ac_delim
21529 htmldir!$htmldir$ac_delim
21530 dvidir!$dvidir$ac_delim
21531 pdfdir!$pdfdir$ac_delim
21532 psdir!$psdir$ac_delim
21533 libdir!$libdir$ac_delim
21534 localedir!$localedir$ac_delim
21535 mandir!$mandir$ac_delim
21536 DEFS!$DEFS$ac_delim
21537 ECHO_C!$ECHO_C$ac_delim
21538 ECHO_N!$ECHO_N$ac_delim
21539 ECHO_T!$ECHO_T$ac_delim
21540 LIBS!$LIBS$ac_delim
21541 build_alias!$build_alias$ac_delim
21542 host_alias!$host_alias$ac_delim
21543 target_alias!$target_alias$ac_delim
21544 build!$build$ac_delim
21545 build_cpu!$build_cpu$ac_delim
21546 build_vendor!$build_vendor$ac_delim
21547 build_os!$build_os$ac_delim
21548 host!$host$ac_delim
21549 host_cpu!$host_cpu$ac_delim
21550 host_vendor!$host_vendor$ac_delim
21551 host_os!$host_os$ac_delim
21552 target!$target$ac_delim
21553 target_cpu!$target_cpu$ac_delim
21554 target_vendor!$target_vendor$ac_delim
21555 target_os!$target_os$ac_delim
21556 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21557 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21558 INSTALL_DATA!$INSTALL_DATA$ac_delim
21559 am__isrc!$am__isrc$ac_delim
21560 CYGPATH_W!$CYGPATH_W$ac_delim
21561 PACKAGE!$PACKAGE$ac_delim
21562 VERSION!$VERSION$ac_delim
21563 ACLOCAL!$ACLOCAL$ac_delim
21564 AUTOCONF!$AUTOCONF$ac_delim
21565 AUTOMAKE!$AUTOMAKE$ac_delim
21566 AUTOHEADER!$AUTOHEADER$ac_delim
21567 MAKEINFO!$MAKEINFO$ac_delim
21568 install_sh!$install_sh$ac_delim
21569 STRIP!$STRIP$ac_delim
21570 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21571 mkdir_p!$mkdir_p$ac_delim
21572 AWK!$AWK$ac_delim
21573 SET_MAKE!$SET_MAKE$ac_delim
21574 am__leading_dot!$am__leading_dot$ac_delim
21575 AMTAR!$AMTAR$ac_delim
21576 am__tar!$am__tar$ac_delim
21577 am__untar!$am__untar$ac_delim
21578 CC!$CC$ac_delim
21579 CFLAGS!$CFLAGS$ac_delim
21580 LDFLAGS!$LDFLAGS$ac_delim
21581 CPPFLAGS!$CPPFLAGS$ac_delim
21582 ac_ct_CC!$ac_ct_CC$ac_delim
21583 EXEEXT!$EXEEXT$ac_delim
21584 OBJEXT!$OBJEXT$ac_delim
21585 DEPDIR!$DEPDIR$ac_delim
21586 am__include!$am__include$ac_delim
21587 am__quote!$am__quote$ac_delim
21588 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21589 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21590 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21591 CCDEPMODE!$CCDEPMODE$ac_delim
21592 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21593 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21594 GREP!$GREP$ac_delim
21595 EGREP!$EGREP$ac_delim
21596 LN_S!$LN_S$ac_delim
21597 ECHO!$ECHO$ac_delim
21598 AR!$AR$ac_delim
21599 RANLIB!$RANLIB$ac_delim
21600 CPP!$CPP$ac_delim
21601 CXX!$CXX$ac_delim
21602 CXXFLAGS!$CXXFLAGS$ac_delim
21603 ac_ct_CXX!$ac_ct_CXX$ac_delim
21604 _ACEOF
21605
21606   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21607     break
21608   elif $ac_last_try; then
21609     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21610 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21611    { (exit 1); exit 1; }; }
21612   else
21613     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21614   fi
21615 done
21616
21617 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21618 if test -n "$ac_eof"; then
21619   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21620   ac_eof=`expr $ac_eof + 1`
21621 fi
21622
21623 cat >>$CONFIG_STATUS <<_ACEOF
21624 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21626 _ACEOF
21627 sed '
21628 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21629 s/^/s,@/; s/!/@,|#_!!_#|/
21630 :n
21631 t n
21632 s/'"$ac_delim"'$/,g/; t
21633 s/$/\\/; p
21634 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21635 ' >>$CONFIG_STATUS <conf$$subs.sed
21636 rm -f conf$$subs.sed
21637 cat >>$CONFIG_STATUS <<_ACEOF
21638 CEOF$ac_eof
21639 _ACEOF
21640
21641
21642 ac_delim='%!_!# '
21643 for ac_last_try in false false false false false :; do
21644   cat >conf$$subs.sed <<_ACEOF
21645 CXXDEPMODE!$CXXDEPMODE$ac_delim
21646 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21647 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21648 CXXCPP!$CXXCPP$ac_delim
21649 F77!$F77$ac_delim
21650 FFLAGS!$FFLAGS$ac_delim
21651 ac_ct_F77!$ac_ct_F77$ac_delim
21652 LIBTOOL!$LIBTOOL$ac_delim
21653 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
21654 APR_CONFIG!$APR_CONFIG$ac_delim
21655 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
21656 APU_CONFIG!$APU_CONFIG$ac_delim
21657 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
21658 LIBOBJS!$LIBOBJS$ac_delim
21659 LTLIBOBJS!$LTLIBOBJS$ac_delim
21660 _ACEOF
21661
21662   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21663     break
21664   elif $ac_last_try; then
21665     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21667    { (exit 1); exit 1; }; }
21668   else
21669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21670   fi
21671 done
21672
21673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21674 if test -n "$ac_eof"; then
21675   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21676   ac_eof=`expr $ac_eof + 1`
21677 fi
21678
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21682 _ACEOF
21683 sed '
21684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21685 s/^/s,@/; s/!/@,|#_!!_#|/
21686 :n
21687 t n
21688 s/'"$ac_delim"'$/,g/; t
21689 s/$/\\/; p
21690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21691 ' >>$CONFIG_STATUS <conf$$subs.sed
21692 rm -f conf$$subs.sed
21693 cat >>$CONFIG_STATUS <<_ACEOF
21694 :end
21695 s/|#_!!_#|//g
21696 CEOF$ac_eof
21697 _ACEOF
21698
21699
21700 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21702 # trailing colons and then remove the whole line if VPATH becomes empty
21703 # (actually we leave an empty line to preserve line numbers).
21704 if test "x$srcdir" = x.; then
21705   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21706 s/:*\$(srcdir):*/:/
21707 s/:*\${srcdir}:*/:/
21708 s/:*@srcdir@:*/:/
21709 s/^\([^=]*=[     ]*\):*/\1/
21710 s/:*$//
21711 s/^[^=]*=[       ]*$//
21712 }'
21713 fi
21714
21715 cat >>$CONFIG_STATUS <<\_ACEOF
21716 fi # test -n "$CONFIG_FILES"
21717
21718
21719 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21720 do
21721   case $ac_tag in
21722   :[FHLC]) ac_mode=$ac_tag; continue;;
21723   esac
21724   case $ac_mode$ac_tag in
21725   :[FHL]*:*);;
21726   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21727 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21728    { (exit 1); exit 1; }; };;
21729   :[FH]-) ac_tag=-:-;;
21730   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21731   esac
21732   ac_save_IFS=$IFS
21733   IFS=:
21734   set x $ac_tag
21735   IFS=$ac_save_IFS
21736   shift
21737   ac_file=$1
21738   shift
21739
21740   case $ac_mode in
21741   :L) ac_source=$1;;
21742   :[FH])
21743     ac_file_inputs=
21744     for ac_f
21745     do
21746       case $ac_f in
21747       -) ac_f="$tmp/stdin";;
21748       *) # Look for the file first in the build tree, then in the source tree
21749          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21750          # because $ac_f cannot contain `:'.
21751          test -f "$ac_f" ||
21752            case $ac_f in
21753            [\\/$]*) false;;
21754            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21755            esac ||
21756            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21757 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21758    { (exit 1); exit 1; }; };;
21759       esac
21760       ac_file_inputs="$ac_file_inputs $ac_f"
21761     done
21762
21763     # Let's still pretend it is `configure' which instantiates (i.e., don't
21764     # use $as_me), people would be surprised to read:
21765     #    /* config.h.  Generated by config.status.  */
21766     configure_input="Generated from "`IFS=:
21767           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21768     if test x"$ac_file" != x-; then
21769       configure_input="$ac_file.  $configure_input"
21770       { echo "$as_me:$LINENO: creating $ac_file" >&5
21771 echo "$as_me: creating $ac_file" >&6;}
21772     fi
21773
21774     case $ac_tag in
21775     *:-:* | *:-) cat >"$tmp/stdin";;
21776     esac
21777     ;;
21778   esac
21779
21780   ac_dir=`$as_dirname -- "$ac_file" ||
21781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21782          X"$ac_file" : 'X\(//\)[^/]' \| \
21783          X"$ac_file" : 'X\(//\)$' \| \
21784          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21785 echo X"$ac_file" |
21786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21787             s//\1/
21788             q
21789           }
21790           /^X\(\/\/\)[^/].*/{
21791             s//\1/
21792             q
21793           }
21794           /^X\(\/\/\)$/{
21795             s//\1/
21796             q
21797           }
21798           /^X\(\/\).*/{
21799             s//\1/
21800             q
21801           }
21802           s/.*/./; q'`
21803   { as_dir="$ac_dir"
21804   case $as_dir in #(
21805   -*) as_dir=./$as_dir;;
21806   esac
21807   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21808     as_dirs=
21809     while :; do
21810       case $as_dir in #(
21811       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21812       *) as_qdir=$as_dir;;
21813       esac
21814       as_dirs="'$as_qdir' $as_dirs"
21815       as_dir=`$as_dirname -- "$as_dir" ||
21816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21817          X"$as_dir" : 'X\(//\)[^/]' \| \
21818          X"$as_dir" : 'X\(//\)$' \| \
21819          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21820 echo X"$as_dir" |
21821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21822             s//\1/
21823             q
21824           }
21825           /^X\(\/\/\)[^/].*/{
21826             s//\1/
21827             q
21828           }
21829           /^X\(\/\/\)$/{
21830             s//\1/
21831             q
21832           }
21833           /^X\(\/\).*/{
21834             s//\1/
21835             q
21836           }
21837           s/.*/./; q'`
21838       test -d "$as_dir" && break
21839     done
21840     test -z "$as_dirs" || eval "mkdir $as_dirs"
21841   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21842 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21843    { (exit 1); exit 1; }; }; }
21844   ac_builddir=.
21845
21846 case "$ac_dir" in
21847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21848 *)
21849   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21850   # A ".." for each directory in $ac_dir_suffix.
21851   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21852   case $ac_top_builddir_sub in
21853   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21854   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21855   esac ;;
21856 esac
21857 ac_abs_top_builddir=$ac_pwd
21858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21859 # for backward compatibility:
21860 ac_top_builddir=$ac_top_build_prefix
21861
21862 case $srcdir in
21863   .)  # We are building in place.
21864     ac_srcdir=.
21865     ac_top_srcdir=$ac_top_builddir_sub
21866     ac_abs_top_srcdir=$ac_pwd ;;
21867   [\\/]* | ?:[\\/]* )  # Absolute name.
21868     ac_srcdir=$srcdir$ac_dir_suffix;
21869     ac_top_srcdir=$srcdir
21870     ac_abs_top_srcdir=$srcdir ;;
21871   *) # Relative name.
21872     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21873     ac_top_srcdir=$ac_top_build_prefix$srcdir
21874     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21875 esac
21876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21877
21878
21879   case $ac_mode in
21880   :F)
21881   #
21882   # CONFIG_FILE
21883   #
21884
21885   case $INSTALL in
21886   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21887   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21888   esac
21889   ac_MKDIR_P=$MKDIR_P
21890   case $MKDIR_P in
21891   [\\/$]* | ?:[\\/]* ) ;;
21892   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21893   esac
21894 _ACEOF
21895
21896 cat >>$CONFIG_STATUS <<\_ACEOF
21897 # If the template does not know about datarootdir, expand it.
21898 # FIXME: This hack should be removed a few years after 2.60.
21899 ac_datarootdir_hack=; ac_datarootdir_seen=
21900
21901 case `sed -n '/datarootdir/ {
21902   p
21903   q
21904 }
21905 /@datadir@/p
21906 /@docdir@/p
21907 /@infodir@/p
21908 /@localedir@/p
21909 /@mandir@/p
21910 ' $ac_file_inputs` in
21911 *datarootdir*) ac_datarootdir_seen=yes;;
21912 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21913   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21914 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21915 _ACEOF
21916 cat >>$CONFIG_STATUS <<_ACEOF
21917   ac_datarootdir_hack='
21918   s&@datadir@&$datadir&g
21919   s&@docdir@&$docdir&g
21920   s&@infodir@&$infodir&g
21921   s&@localedir@&$localedir&g
21922   s&@mandir@&$mandir&g
21923     s&\\\${datarootdir}&$datarootdir&g' ;;
21924 esac
21925 _ACEOF
21926
21927 # Neutralize VPATH when `$srcdir' = `.'.
21928 # Shell code in configure.ac might set extrasub.
21929 # FIXME: do we really want to maintain this feature?
21930 cat >>$CONFIG_STATUS <<_ACEOF
21931   sed "$ac_vpsub
21932 $extrasub
21933 _ACEOF
21934 cat >>$CONFIG_STATUS <<\_ACEOF
21935 :t
21936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21937 s&@configure_input@&$configure_input&;t t
21938 s&@top_builddir@&$ac_top_builddir_sub&;t t
21939 s&@srcdir@&$ac_srcdir&;t t
21940 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21941 s&@top_srcdir@&$ac_top_srcdir&;t t
21942 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21943 s&@builddir@&$ac_builddir&;t t
21944 s&@abs_builddir@&$ac_abs_builddir&;t t
21945 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21946 s&@INSTALL@&$ac_INSTALL&;t t
21947 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21948 $ac_datarootdir_hack
21949 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21950
21951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21952   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21953   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21954   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21955 which seems to be undefined.  Please make sure it is defined." >&5
21956 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21957 which seems to be undefined.  Please make sure it is defined." >&2;}
21958
21959   rm -f "$tmp/stdin"
21960   case $ac_file in
21961   -) cat "$tmp/out"; rm -f "$tmp/out";;
21962   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21963   esac
21964  ;;
21965   :H)
21966   #
21967   # CONFIG_HEADER
21968   #
21969 _ACEOF
21970
21971 # Transform confdefs.h into a sed script `conftest.defines', that
21972 # substitutes the proper values into config.h.in to produce config.h.
21973 rm -f conftest.defines conftest.tail
21974 # First, append a space to every undef/define line, to ease matching.
21975 echo 's/$/ /' >conftest.defines
21976 # Then, protect against being on the right side of a sed subst, or in
21977 # an unquoted here document, in config.status.  If some macros were
21978 # called several times there might be several #defines for the same
21979 # symbol, which is useless.  But do not sort them, since the last
21980 # AC_DEFINE must be honored.
21981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21982 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21983 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21984 # PARAMS is the parameter list in the macro definition--in most cases, it's
21985 # just an empty string.
21986 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21987 ac_dB='\\)[      (].*,\\1define\\2'
21988 ac_dC=' '
21989 ac_dD=' ,'
21990
21991 uniq confdefs.h |
21992   sed -n '
21993         t rset
21994         :rset
21995         s/^[     ]*#[    ]*define[       ][      ]*//
21996         t ok
21997         d
21998         :ok
21999         s/[\\&,]/\\&/g
22000         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22001         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22002   ' >>conftest.defines
22003
22004 # Remove the space that was appended to ease matching.
22005 # Then replace #undef with comments.  This is necessary, for
22006 # example, in the case of _POSIX_SOURCE, which is predefined and required
22007 # on some systems where configure will not decide to define it.
22008 # (The regexp can be short, since the line contains either #define or #undef.)
22009 echo 's/ $//
22010 s,^[     #]*u.*,/* & */,' >>conftest.defines
22011
22012 # Break up conftest.defines:
22013 ac_max_sed_lines=50
22014
22015 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22016 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22017 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22018 # et cetera.
22019 ac_in='$ac_file_inputs'
22020 ac_out='"$tmp/out1"'
22021 ac_nxt='"$tmp/out2"'
22022
22023 while :
22024 do
22025   # Write a here document:
22026     cat >>$CONFIG_STATUS <<_ACEOF
22027     # First, check the format of the line:
22028     cat >"\$tmp/defines.sed" <<\\CEOF
22029 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22030 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22031 b
22032 :def
22033 _ACEOF
22034   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22035   echo 'CEOF
22036     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22037   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22038   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22039   grep . conftest.tail >/dev/null || break
22040   rm -f conftest.defines
22041   mv conftest.tail conftest.defines
22042 done
22043 rm -f conftest.defines conftest.tail
22044
22045 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22047   if test x"$ac_file" != x-; then
22048     echo "/* $configure_input  */" >"$tmp/config.h"
22049     cat "$ac_result" >>"$tmp/config.h"
22050     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22051       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22052 echo "$as_me: $ac_file is unchanged" >&6;}
22053     else
22054       rm -f $ac_file
22055       mv "$tmp/config.h" $ac_file
22056     fi
22057   else
22058     echo "/* $configure_input  */"
22059     cat "$ac_result"
22060   fi
22061   rm -f "$tmp/out12"
22062 # Compute $ac_file's index in $config_headers.
22063 _am_stamp_count=1
22064 for _am_header in $config_headers :; do
22065   case $_am_header in
22066     $ac_file | $ac_file:* )
22067       break ;;
22068     * )
22069       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22070   esac
22071 done
22072 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22073 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074          X$ac_file : 'X\(//\)[^/]' \| \
22075          X$ac_file : 'X\(//\)$' \| \
22076          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22077 echo X$ac_file |
22078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22079             s//\1/
22080             q
22081           }
22082           /^X\(\/\/\)[^/].*/{
22083             s//\1/
22084             q
22085           }
22086           /^X\(\/\/\)$/{
22087             s//\1/
22088             q
22089           }
22090           /^X\(\/\).*/{
22091             s//\1/
22092             q
22093           }
22094           s/.*/./; q'`/stamp-h$_am_stamp_count
22095  ;;
22096
22097   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22098 echo "$as_me: executing $ac_file commands" >&6;}
22099  ;;
22100   esac
22101
22102
22103   case $ac_file$ac_mode in
22104     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22105   # Strip MF so we end up with the name of the file.
22106   mf=`echo "$mf" | sed -e 's/:.*$//'`
22107   # Check whether this is an Automake generated Makefile or not.
22108   # We used to match only the files named `Makefile.in', but
22109   # some people rename them; so instead we look at the file content.
22110   # Grep'ing the first line is not enough: some people post-process
22111   # each Makefile.in and add a new line on top of each file to say so.
22112   # Grep'ing the whole file is not good either: AIX grep has a line
22113   # limit of 2048, but all sed's we know have understand at least 4000.
22114   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22115     dirpart=`$as_dirname -- "$mf" ||
22116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117          X"$mf" : 'X\(//\)[^/]' \| \
22118          X"$mf" : 'X\(//\)$' \| \
22119          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22120 echo X"$mf" |
22121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22122             s//\1/
22123             q
22124           }
22125           /^X\(\/\/\)[^/].*/{
22126             s//\1/
22127             q
22128           }
22129           /^X\(\/\/\)$/{
22130             s//\1/
22131             q
22132           }
22133           /^X\(\/\).*/{
22134             s//\1/
22135             q
22136           }
22137           s/.*/./; q'`
22138   else
22139     continue
22140   fi
22141   # Extract the definition of DEPDIR, am__include, and am__quote
22142   # from the Makefile without running `make'.
22143   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22144   test -z "$DEPDIR" && continue
22145   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22146   test -z "am__include" && continue
22147   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22148   # When using ansi2knr, U may be empty or an underscore; expand it
22149   U=`sed -n 's/^U = //p' < "$mf"`
22150   # Find all dependency output files, they are included files with
22151   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22152   # simplest approach to changing $(DEPDIR) to its actual value in the
22153   # expansion.
22154   for file in `sed -n "
22155     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22156        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22157     # Make sure the directory exists.
22158     test -f "$dirpart/$file" && continue
22159     fdir=`$as_dirname -- "$file" ||
22160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161          X"$file" : 'X\(//\)[^/]' \| \
22162          X"$file" : 'X\(//\)$' \| \
22163          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22164 echo X"$file" |
22165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22166             s//\1/
22167             q
22168           }
22169           /^X\(\/\/\)[^/].*/{
22170             s//\1/
22171             q
22172           }
22173           /^X\(\/\/\)$/{
22174             s//\1/
22175             q
22176           }
22177           /^X\(\/\).*/{
22178             s//\1/
22179             q
22180           }
22181           s/.*/./; q'`
22182     { as_dir=$dirpart/$fdir
22183   case $as_dir in #(
22184   -*) as_dir=./$as_dir;;
22185   esac
22186   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22187     as_dirs=
22188     while :; do
22189       case $as_dir in #(
22190       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22191       *) as_qdir=$as_dir;;
22192       esac
22193       as_dirs="'$as_qdir' $as_dirs"
22194       as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196          X"$as_dir" : 'X\(//\)[^/]' \| \
22197          X"$as_dir" : 'X\(//\)$' \| \
22198          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199 echo X"$as_dir" |
22200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201             s//\1/
22202             q
22203           }
22204           /^X\(\/\/\)[^/].*/{
22205             s//\1/
22206             q
22207           }
22208           /^X\(\/\/\)$/{
22209             s//\1/
22210             q
22211           }
22212           /^X\(\/\).*/{
22213             s//\1/
22214             q
22215           }
22216           s/.*/./; q'`
22217       test -d "$as_dir" && break
22218     done
22219     test -z "$as_dirs" || eval "mkdir $as_dirs"
22220   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22222    { (exit 1); exit 1; }; }; }
22223     # echo "creating $dirpart/$file"
22224     echo '# dummy' > "$dirpart/$file"
22225   done
22226 done
22227  ;;
22228
22229   esac
22230 done # for ac_tag
22231
22232
22233 { (exit 0); exit 0; }
22234 _ACEOF
22235 chmod +x $CONFIG_STATUS
22236 ac_clean_files=$ac_clean_files_save
22237
22238
22239 # configure is writing to config.log, and then calls config.status.
22240 # config.status does its own redirection, appending to config.log.
22241 # Unfortunately, on DOS this fails, as config.log is still kept open
22242 # by configure, so config.status won't be able to write to it; its
22243 # output is simply discarded.  So we exec the FD to /dev/null,
22244 # effectively closing config.log, so it can be properly (re)opened and
22245 # appended to by config.status.  When coming back to configure, we
22246 # need to make the FD available again.
22247 if test "$no_create" != yes; then
22248   ac_cs_success=:
22249   ac_config_status_args=
22250   test "$silent" = yes &&
22251     ac_config_status_args="$ac_config_status_args --quiet"
22252   exec 5>/dev/null
22253   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22254   exec 5>>config.log
22255   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22256   # would make configure fail if this is the last instruction.
22257   $ac_cs_success || { (exit 1); exit 1; }
22258 fi
22259