OSDN Git Service

* updated changelog.
[modchxj/mod_chxj.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.10.2-1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='mod_chxj'
728 PACKAGE_TARNAME='mod_chxj'
729 PACKAGE_VERSION='0.10.2-1'
730 PACKAGE_STRING='mod_chxj 0.10.2-1'
731 PACKAGE_BUGREPORT=''
732
733 ac_unique_file="src/mod_chxj.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 target
816 target_cpu
817 target_vendor
818 target_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 am__isrc
823 CYGPATH_W
824 PACKAGE
825 VERSION
826 ACLOCAL
827 AUTOCONF
828 AUTOMAKE
829 AUTOHEADER
830 MAKEINFO
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 AMTAR
839 am__tar
840 am__untar
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 ac_ct_CC
846 EXEEXT
847 OBJEXT
848 DEPDIR
849 am__include
850 am__quote
851 AMDEP_TRUE
852 AMDEP_FALSE
853 AMDEPBACKSLASH
854 CCDEPMODE
855 am__fastdepCC_TRUE
856 am__fastdepCC_FALSE
857 GREP
858 EGREP
859 LN_S
860 ECHO
861 AR
862 RANLIB
863 CPP
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 LIBTOOL_DEPS
876 APXS2
877 APXS
878 WAND_CONFIG
879 APR_CONFIG
880 APR_1_CONFIG
881 APU_CONFIG
882 APU_1_CONFIG
883 PCRE_CONFIG
884 PCRE_1_CONFIG
885 LIBOBJS
886 with_apache_header
887 QDEFS
888 DDEFS
889 LTLIBOBJS'
890 ac_subst_files=''
891       ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 CXX
901 CXXFLAGS
902 CCC
903 CXXCPP
904 F77
905 FFLAGS'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
953
954 ac_prev=
955 ac_dashdash=
956 for ac_option
957 do
958   # If the previous option needs an argument, assign it.
959   if test -n "$ac_prev"; then
960     eval $ac_prev=\$ac_option
961     ac_prev=
962     continue
963   fi
964
965   case $ac_option in
966   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967   *)    ac_optarg=yes ;;
968   esac
969
970   # Accept the important Cygnus configure options, so we can diagnose typos.
971
972   case $ac_dashdash$ac_option in
973   --)
974     ac_dashdash=yes ;;
975
976   -bindir | --bindir | --bindi | --bind | --bin | --bi)
977     ac_prev=bindir ;;
978   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979     bindir=$ac_optarg ;;
980
981   -build | --build | --buil | --bui | --bu)
982     ac_prev=build_alias ;;
983   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984     build_alias=$ac_optarg ;;
985
986   -cache-file | --cache-file | --cache-fil | --cache-fi \
987   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988     ac_prev=cache_file ;;
989   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991     cache_file=$ac_optarg ;;
992
993   --config-cache | -C)
994     cache_file=config.cache ;;
995
996   -datadir | --datadir | --datadi | --datad)
997     ac_prev=datadir ;;
998   -datadir=* | --datadir=* | --datadi=* | --datad=*)
999     datadir=$ac_optarg ;;
1000
1001   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002   | --dataroo | --dataro | --datar)
1003     ac_prev=datarootdir ;;
1004   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006     datarootdir=$ac_optarg ;;
1007
1008   -disable-* | --disable-*)
1009     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013    { (exit 1); exit 1; }; }
1014     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015     eval enable_$ac_feature=no ;;
1016
1017   -docdir | --docdir | --docdi | --doc | --do)
1018     ac_prev=docdir ;;
1019   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020     docdir=$ac_optarg ;;
1021
1022   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023     ac_prev=dvidir ;;
1024   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025     dvidir=$ac_optarg ;;
1026
1027   -enable-* | --enable-*)
1028     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029     # Reject names that are not valid shell variable names.
1030     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032    { (exit 1); exit 1; }; }
1033     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034     eval enable_$ac_feature=\$ac_optarg ;;
1035
1036   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038   | --exec | --exe | --ex)
1039     ac_prev=exec_prefix ;;
1040   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042   | --exec=* | --exe=* | --ex=*)
1043     exec_prefix=$ac_optarg ;;
1044
1045   -gas | --gas | --ga | --g)
1046     # Obsolete; use --with-gas.
1047     with_gas=yes ;;
1048
1049   -help | --help | --hel | --he | -h)
1050     ac_init_help=long ;;
1051   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052     ac_init_help=recursive ;;
1053   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054     ac_init_help=short ;;
1055
1056   -host | --host | --hos | --ho)
1057     ac_prev=host_alias ;;
1058   -host=* | --host=* | --hos=* | --ho=*)
1059     host_alias=$ac_optarg ;;
1060
1061   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062     ac_prev=htmldir ;;
1063   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064   | --ht=*)
1065     htmldir=$ac_optarg ;;
1066
1067   -includedir | --includedir | --includedi | --included | --include \
1068   | --includ | --inclu | --incl | --inc)
1069     ac_prev=includedir ;;
1070   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071   | --includ=* | --inclu=* | --incl=* | --inc=*)
1072     includedir=$ac_optarg ;;
1073
1074   -infodir | --infodir | --infodi | --infod | --info | --inf)
1075     ac_prev=infodir ;;
1076   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077     infodir=$ac_optarg ;;
1078
1079   -libdir | --libdir | --libdi | --libd)
1080     ac_prev=libdir ;;
1081   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082     libdir=$ac_optarg ;;
1083
1084   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085   | --libexe | --libex | --libe)
1086     ac_prev=libexecdir ;;
1087   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088   | --libexe=* | --libex=* | --libe=*)
1089     libexecdir=$ac_optarg ;;
1090
1091   -localedir | --localedir | --localedi | --localed | --locale)
1092     ac_prev=localedir ;;
1093   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094     localedir=$ac_optarg ;;
1095
1096   -localstatedir | --localstatedir | --localstatedi | --localstated \
1097   | --localstate | --localstat | --localsta | --localst | --locals)
1098     ac_prev=localstatedir ;;
1099   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101     localstatedir=$ac_optarg ;;
1102
1103   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104     ac_prev=mandir ;;
1105   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106     mandir=$ac_optarg ;;
1107
1108   -nfp | --nfp | --nf)
1109     # Obsolete; use --without-fp.
1110     with_fp=no ;;
1111
1112   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113   | --no-cr | --no-c | -n)
1114     no_create=yes ;;
1115
1116   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118     no_recursion=yes ;;
1119
1120   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122   | --oldin | --oldi | --old | --ol | --o)
1123     ac_prev=oldincludedir ;;
1124   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127     oldincludedir=$ac_optarg ;;
1128
1129   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130     ac_prev=prefix ;;
1131   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132     prefix=$ac_optarg ;;
1133
1134   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135   | --program-pre | --program-pr | --program-p)
1136     ac_prev=program_prefix ;;
1137   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139     program_prefix=$ac_optarg ;;
1140
1141   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142   | --program-suf | --program-su | --program-s)
1143     ac_prev=program_suffix ;;
1144   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146     program_suffix=$ac_optarg ;;
1147
1148   -program-transform-name | --program-transform-name \
1149   | --program-transform-nam | --program-transform-na \
1150   | --program-transform-n | --program-transform- \
1151   | --program-transform | --program-transfor \
1152   | --program-transfo | --program-transf \
1153   | --program-trans | --program-tran \
1154   | --progr-tra | --program-tr | --program-t)
1155     ac_prev=program_transform_name ;;
1156   -program-transform-name=* | --program-transform-name=* \
1157   | --program-transform-nam=* | --program-transform-na=* \
1158   | --program-transform-n=* | --program-transform-=* \
1159   | --program-transform=* | --program-transfor=* \
1160   | --program-transfo=* | --program-transf=* \
1161   | --program-trans=* | --program-tran=* \
1162   | --progr-tra=* | --program-tr=* | --program-t=*)
1163     program_transform_name=$ac_optarg ;;
1164
1165   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166     ac_prev=pdfdir ;;
1167   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168     pdfdir=$ac_optarg ;;
1169
1170   -psdir | --psdir | --psdi | --psd | --ps)
1171     ac_prev=psdir ;;
1172   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173     psdir=$ac_optarg ;;
1174
1175   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176   | -silent | --silent | --silen | --sile | --sil)
1177     silent=yes ;;
1178
1179   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180     ac_prev=sbindir ;;
1181   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182   | --sbi=* | --sb=*)
1183     sbindir=$ac_optarg ;;
1184
1185   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187   | --sharedst | --shareds | --shared | --share | --shar \
1188   | --sha | --sh)
1189     ac_prev=sharedstatedir ;;
1190   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193   | --sha=* | --sh=*)
1194     sharedstatedir=$ac_optarg ;;
1195
1196   -site | --site | --sit)
1197     ac_prev=site ;;
1198   -site=* | --site=* | --sit=*)
1199     site=$ac_optarg ;;
1200
1201   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202     ac_prev=srcdir ;;
1203   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204     srcdir=$ac_optarg ;;
1205
1206   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207   | --syscon | --sysco | --sysc | --sys | --sy)
1208     ac_prev=sysconfdir ;;
1209   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211     sysconfdir=$ac_optarg ;;
1212
1213   -target | --target | --targe | --targ | --tar | --ta | --t)
1214     ac_prev=target_alias ;;
1215   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216     target_alias=$ac_optarg ;;
1217
1218   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219     verbose=yes ;;
1220
1221   -version | --version | --versio | --versi | --vers | -V)
1222     ac_init_version=: ;;
1223
1224   -with-* | --with-*)
1225     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       { echo "$as_me: error: invalid package name: $ac_package" >&2
1229    { (exit 1); exit 1; }; }
1230     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231     eval with_$ac_package=\$ac_optarg ;;
1232
1233   -without-* | --without-*)
1234     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       { echo "$as_me: error: invalid package name: $ac_package" >&2
1238    { (exit 1); exit 1; }; }
1239     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240     eval with_$ac_package=no ;;
1241
1242   --x)
1243     # Obsolete; use --with-x.
1244     with_x=yes ;;
1245
1246   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247   | --x-incl | --x-inc | --x-in | --x-i)
1248     ac_prev=x_includes ;;
1249   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251     x_includes=$ac_optarg ;;
1252
1253   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255     ac_prev=x_libraries ;;
1256   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258     x_libraries=$ac_optarg ;;
1259
1260   -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262    { (exit 1); exit 1; }; }
1263     ;;
1264
1265   *=*)
1266     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267     # Reject names that are not valid shell variable names.
1268     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270    { (exit 1); exit 1; }; }
1271     eval $ac_envvar=\$ac_optarg
1272     export $ac_envvar ;;
1273
1274   *)
1275     # FIXME: should be removed in autoconf 3.0.
1276     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280     ;;
1281
1282   esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287   { echo "$as_me: error: missing argument to $ac_option" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290
1291 # Be sure to have absolute directory names.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303    { (exit 1); exit 1; }; }
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315   if test "x$build_alias" = x; then
1316     cross_compiling=maybe
1317     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318     If a cross compiler is detected then cross compile mode will be used." >&2
1319   elif test "x$build_alias" != "x$host_alias"; then
1320     cross_compiling=yes
1321   fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333   { echo "$as_me: error: Working directory cannot be determined" >&2
1334    { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336   { echo "$as_me: error: pwd does not report name of working directory" >&2
1337    { (exit 1); exit 1; }; }
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342   ac_srcdir_defaulted=yes
1343   # Try the directory containing this script, then the parent directory.
1344   ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346          X"$0" : 'X\(//\)[^/]' \| \
1347          X"$0" : 'X\(//\)$' \| \
1348          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 echo X"$0" |
1350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)[^/].*/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\).*/{
1363             s//\1/
1364             q
1365           }
1366           s/.*/./; q'`
1367   srcdir=$ac_confdir
1368   if test ! -r "$srcdir/$ac_unique_file"; then
1369     srcdir=..
1370   fi
1371 else
1372   ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377    { (exit 1); exit 1; }; }
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382    { (exit 1); exit 1; }; }
1383         pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386   srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_env_${ac_var}_value=\$${ac_var}
1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405   # Omit some internal or obsolete options to make the list less imposing.
1406   # This message is too long to be a string in the A/UX 3.1 sh.
1407   cat <<_ACEOF
1408 \`configure' configures mod_chxj 0.10.2-1 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418   -h, --help              display this help and exit
1419       --help=short        display options specific to this package
1420       --help=recursive    display the short help of all the included packages
1421   -V, --version           display version information and exit
1422   -q, --quiet, --silent   do not print \`checking...' messages
1423       --cache-file=FILE   cache test results in FILE [disabled]
1424   -C, --config-cache      alias for \`--cache-file=config.cache'
1425   -n, --no-create         do not create output files
1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429   --prefix=PREFIX         install architecture-independent files in PREFIX
1430                           [$ac_default_prefix]
1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                           [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442   --bindir=DIR           user executables [EPREFIX/bin]
1443   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1444   --libexecdir=DIR       program executables [EPREFIX/libexec]
1445   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1446   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1447   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1448   --libdir=DIR           object code libraries [EPREFIX/lib]
1449   --includedir=DIR       C header files [PREFIX/include]
1450   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1451   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1452   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1453   --infodir=DIR          info documentation [DATAROOTDIR/info]
1454   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1455   --mandir=DIR           man documentation [DATAROOTDIR/man]
1456   --docdir=DIR           documentation root [DATAROOTDIR/doc/mod_chxj]
1457   --htmldir=DIR          html documentation [DOCDIR]
1458   --dvidir=DIR           dvi documentation [DOCDIR]
1459   --pdfdir=DIR           pdf documentation [DOCDIR]
1460   --psdir=DIR            ps documentation [DOCDIR]
1461 _ACEOF
1462
1463   cat <<\_ACEOF
1464
1465 Program names:
1466   --program-prefix=PREFIX            prepend PREFIX to installed program names
1467   --program-suffix=SUFFIX            append SUFFIX to installed program names
1468   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473   --target=TARGET   configure for building compilers for TARGET [HOST]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of mod_chxj 0.10.2-1:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --disable-dependency-tracking  speeds up one-time build
1487   --enable-dependency-tracking   do not reject slow dependency extractors
1488   --enable-shared[=PKGS]  build shared libraries [default=yes]
1489   --enable-static[=PKGS]  build static libraries [default=yes]
1490   --enable-fast-install[=PKGS]
1491                           optimize for fast installation [default=yes]
1492   --disable-libtool-lock  avoid locking (might break parallel builds)
1493   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1494 source by the automatic operation.
1495   --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1496   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1497   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1498
1499 Optional Packages:
1500   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503   --with-pic              try to use only PIC/non-PIC objects [default=use
1504                           both]
1505   --with-tags[=TAGS]      include additional configurations [automatic]
1506   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1507   --with-apxs=ARG Path of apxs program file.
1508   --with-apr-config=ARG  Path of apr-config program file.
1509   --with-apu-config=ARG  Path of apu-config program file.
1510   --with-pcre-config=ARG  Path of pcre-config program file.
1511   --with-apr-memcache-header Path of "apr_memcache.h"
1512   --with-apr-memcache-lib-dir Path of "libapr_memcache.so"
1513   --with-mysql-header=ARG  Path of "mysql.h"
1514   --with-mysql-lib-dir=ARG Path of libmysqlclient
1515
1516 Some influential environment variables:
1517   CC          C compiler command
1518   CFLAGS      C compiler flags
1519   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1520               nonstandard directory <lib dir>
1521   LIBS        libraries to pass to the linker, e.g. -l<library>
1522   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523               you have headers in a nonstandard directory <include dir>
1524   CPP         C preprocessor
1525   CXX         C++ compiler command
1526   CXXFLAGS    C++ compiler flags
1527   CXXCPP      C++ preprocessor
1528   F77         Fortran 77 compiler command
1529   FFLAGS      Fortran 77 compiler flags
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539   # If there are subdirs, report their specific --help.
1540   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541     test -d "$ac_dir" || continue
1542     ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1548   # A ".." for each directory in $ac_dir_suffix.
1549   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1550   case $ac_top_builddir_sub in
1551   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553   esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561   .)  # We are building in place.
1562     ac_srcdir=.
1563     ac_top_srcdir=$ac_top_builddir_sub
1564     ac_abs_top_srcdir=$ac_pwd ;;
1565   [\\/]* | ?:[\\/]* )  # Absolute name.
1566     ac_srcdir=$srcdir$ac_dir_suffix;
1567     ac_top_srcdir=$srcdir
1568     ac_abs_top_srcdir=$srcdir ;;
1569   *) # Relative name.
1570     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571     ac_top_srcdir=$ac_top_build_prefix$srcdir
1572     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576     cd "$ac_dir" || { ac_status=$?; continue; }
1577     # Check for guested configure.
1578     if test -f "$ac_srcdir/configure.gnu"; then
1579       echo &&
1580       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581     elif test -f "$ac_srcdir/configure"; then
1582       echo &&
1583       $SHELL "$ac_srcdir/configure" --help=recursive
1584     else
1585       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586     fi || ac_status=$?
1587     cd "$ac_pwd" || { ac_status=$?; break; }
1588   done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593   cat <<\_ACEOF
1594 mod_chxj configure 0.10.2-1
1595 generated by GNU Autoconf 2.61
1596
1597 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602   exit
1603 fi
1604 cat >config.log <<_ACEOF
1605 This file contains any messages produced by compilers while
1606 running configure, to aid debugging if configure makes a mistake.
1607
1608 It was created by mod_chxj $as_me 0.10.2-1, which was
1609 generated by GNU Autoconf 2.61.  Invocation command line was
1610
1611   $ $0 $@
1612
1613 _ACEOF
1614 exec 5>>config.log
1615 {
1616 cat <<_ASUNAME
1617 ## --------- ##
1618 ## Platform. ##
1619 ## --------- ##
1620
1621 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1622 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1623 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1624 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1625 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1626
1627 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1628 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1629
1630 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1631 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1632 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1633 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1634 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1635 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1636 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1637
1638 _ASUNAME
1639
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643   IFS=$as_save_IFS
1644   test -z "$as_dir" && as_dir=.
1645   echo "PATH: $as_dir"
1646 done
1647 IFS=$as_save_IFS
1648
1649 } >&5
1650
1651 cat >&5 <<_ACEOF
1652
1653
1654 ## ----------- ##
1655 ## Core tests. ##
1656 ## ----------- ##
1657
1658 _ACEOF
1659
1660
1661 # Keep a trace of the command line.
1662 # Strip out --no-create and --no-recursion so they do not pile up.
1663 # Strip out --silent because we don't want to record it for future runs.
1664 # Also quote any args containing shell meta-characters.
1665 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_configure_args=
1667 ac_configure_args0=
1668 ac_configure_args1=
1669 ac_must_keep_next=false
1670 for ac_pass in 1 2
1671 do
1672   for ac_arg
1673   do
1674     case $ac_arg in
1675     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1676     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677     | -silent | --silent | --silen | --sile | --sil)
1678       continue ;;
1679     *\'*)
1680       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681     esac
1682     case $ac_pass in
1683     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684     2)
1685       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1686       if test $ac_must_keep_next = true; then
1687         ac_must_keep_next=false # Got value, back to normal.
1688       else
1689         case $ac_arg in
1690           *=* | --config-cache | -C | -disable-* | --disable-* \
1691           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1692           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1693           | -with-* | --with-* | -without-* | --without-* | --x)
1694             case "$ac_configure_args0 " in
1695               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696             esac
1697             ;;
1698           -* ) ac_must_keep_next=true ;;
1699         esac
1700       fi
1701       ac_configure_args="$ac_configure_args '$ac_arg'"
1702       ;;
1703     esac
1704   done
1705 done
1706 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1707 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708
1709 # When interrupted or exit'd, cleanup temporary files, and complete
1710 # config.log.  We remove comments because anyway the quotes in there
1711 # would cause problems or look ugly.
1712 # WARNING: Use '\'' to represent an apostrophe within the trap.
1713 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1714 trap 'exit_status=$?
1715   # Save into config.log some information that might help in debugging.
1716   {
1717     echo
1718
1719     cat <<\_ASBOX
1720 ## ---------------- ##
1721 ## Cache variables. ##
1722 ## ---------------- ##
1723 _ASBOX
1724     echo
1725     # The following way of writing the cache mishandles newlines in values,
1726 (
1727   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1728     eval ac_val=\$$ac_var
1729     case $ac_val in #(
1730     *${as_nl}*)
1731       case $ac_var in #(
1732       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734       esac
1735       case $ac_var in #(
1736       _ | IFS | as_nl) ;; #(
1737       *) $as_unset $ac_var ;;
1738       esac ;;
1739     esac
1740   done
1741   (set) 2>&1 |
1742     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1743     *${as_nl}ac_space=\ *)
1744       sed -n \
1745         "s/'\''/'\''\\\\'\'''\''/g;
1746           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747       ;; #(
1748     *)
1749       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1750       ;;
1751     esac |
1752     sort
1753 )
1754     echo
1755
1756     cat <<\_ASBOX
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1760 _ASBOX
1761     echo
1762     for ac_var in $ac_subst_vars
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
1772     if test -n "$ac_subst_files"; then
1773       cat <<\_ASBOX
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1777 _ASBOX
1778       echo
1779       for ac_var in $ac_subst_files
1780       do
1781         eval ac_val=\$$ac_var
1782         case $ac_val in
1783         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784         esac
1785         echo "$ac_var='\''$ac_val'\''"
1786       done | sort
1787       echo
1788     fi
1789
1790     if test -s confdefs.h; then
1791       cat <<\_ASBOX
1792 ## ----------- ##
1793 ## confdefs.h. ##
1794 ## ----------- ##
1795 _ASBOX
1796       echo
1797       cat confdefs.h
1798       echo
1799     fi
1800     test "$ac_signal" != 0 &&
1801       echo "$as_me: caught signal $ac_signal"
1802     echo "$as_me: exit $exit_status"
1803   } >&5
1804   rm -f core *.core core.conftest.* &&
1805     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806     exit $exit_status
1807 ' 0
1808 for ac_signal in 1 2 13 15; do
1809   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 done
1811 ac_signal=0
1812
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1815
1816 # Predefined preprocessor variables.
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 _ACEOF
1841
1842
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846   set x "$CONFIG_SITE"
1847 elif test "x$prefix" != xNONE; then
1848   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1849 else
1850   set x "$ac_default_prefix/share/config.site" \
1851         "$ac_default_prefix/etc/config.site"
1852 fi
1853 shift
1854 for ac_site_file
1855 do
1856   if test -r "$ac_site_file"; then
1857     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1859     sed 's/^/| /' "$ac_site_file" >&5
1860     . "$ac_site_file"
1861   fi
1862 done
1863
1864 if test -r "$cache_file"; then
1865   # Some versions of bash will fail to source /dev/null (special
1866   # files actually), so we avoid doing that.
1867   if test -f "$cache_file"; then
1868     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1870     case $cache_file in
1871       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872       *)                      . "./$cache_file";;
1873     esac
1874   fi
1875 else
1876   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1878   >$cache_file
1879 fi
1880
1881 # Check that the precious variables saved in the cache have kept the same
1882 # value.
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886   eval ac_new_set=\$ac_env_${ac_var}_set
1887   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888   eval ac_new_val=\$ac_env_${ac_var}_value
1889   case $ac_old_set,$ac_new_set in
1890     set,)
1891       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893       ac_cache_corrupted=: ;;
1894     ,set)
1895       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897       ac_cache_corrupted=: ;;
1898     ,);;
1899     *)
1900       if test "x$ac_old_val" != "x$ac_new_val"; then
1901         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1904 echo "$as_me:   former value:  $ac_old_val" >&2;}
1905         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1906 echo "$as_me:   current value: $ac_new_val" >&2;}
1907         ac_cache_corrupted=:
1908       fi;;
1909   esac
1910   # Pass precious variables to config.status.
1911   if test "$ac_new_set" = set; then
1912     case $ac_new_val in
1913     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914     *) ac_arg=$ac_var=$ac_new_val ;;
1915     esac
1916     case " $ac_configure_args " in
1917       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1918       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919     esac
1920   fi
1921 done
1922 if $ac_cache_corrupted; then
1923   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927    { (exit 1); exit 1; }; }
1928 fi
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959
1960
1961
1962
1963 ac_aux_dir=
1964 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1965   if test -f "$ac_dir/install-sh"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/install-sh -c"
1968     break
1969   elif test -f "$ac_dir/install.sh"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/install.sh -c"
1972     break
1973   elif test -f "$ac_dir/shtool"; then
1974     ac_aux_dir=$ac_dir
1975     ac_install_sh="$ac_aux_dir/shtool install -c"
1976     break
1977   fi
1978 done
1979 if test -z "$ac_aux_dir"; then
1980   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1981 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1982    { (exit 1); exit 1; }; }
1983 fi
1984
1985 # These three variables are undocumented and unsupported,
1986 # and are intended to be withdrawn in a future Autoconf release.
1987 # They can cause serious problems if a builder's source tree is in a directory
1988 # whose full name contains unusual characters.
1989 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1990 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1991 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1992
1993
1994 # Make sure we can run config.sub.
1995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1996   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1997 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1998    { (exit 1); exit 1; }; }
1999
2000 { echo "$as_me:$LINENO: checking build system type" >&5
2001 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2002 if test "${ac_cv_build+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   ac_build_alias=$build_alias
2006 test "x$ac_build_alias" = x &&
2007   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2008 test "x$ac_build_alias" = x &&
2009   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2010 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2011    { (exit 1); exit 1; }; }
2012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2013   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2014 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 fi
2018 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2019 echo "${ECHO_T}$ac_cv_build" >&6; }
2020 case $ac_cv_build in
2021 *-*-*) ;;
2022 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2023 echo "$as_me: error: invalid value of canonical build" >&2;}
2024    { (exit 1); exit 1; }; };;
2025 esac
2026 build=$ac_cv_build
2027 ac_save_IFS=$IFS; IFS='-'
2028 set x $ac_cv_build
2029 shift
2030 build_cpu=$1
2031 build_vendor=$2
2032 shift; shift
2033 # Remember, the first character of IFS is used to create $*,
2034 # except with old shells:
2035 build_os=$*
2036 IFS=$ac_save_IFS
2037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038
2039
2040 { echo "$as_me:$LINENO: checking host system type" >&5
2041 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_host+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test "x$host_alias" = x; then
2046   ac_cv_host=$ac_cv_build
2047 else
2048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2049     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 fi
2055 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2056 echo "${ECHO_T}$ac_cv_host" >&6; }
2057 case $ac_cv_host in
2058 *-*-*) ;;
2059 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2060 echo "$as_me: error: invalid value of canonical host" >&2;}
2061    { (exit 1); exit 1; }; };;
2062 esac
2063 host=$ac_cv_host
2064 ac_save_IFS=$IFS; IFS='-'
2065 set x $ac_cv_host
2066 shift
2067 host_cpu=$1
2068 host_vendor=$2
2069 shift; shift
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2072 host_os=$*
2073 IFS=$ac_save_IFS
2074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2075
2076
2077 { echo "$as_me:$LINENO: checking target system type" >&5
2078 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2079 if test "${ac_cv_target+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test "x$target_alias" = x; then
2083   ac_cv_target=$ac_cv_host
2084 else
2085   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2086     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2087 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2088    { (exit 1); exit 1; }; }
2089 fi
2090
2091 fi
2092 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2093 echo "${ECHO_T}$ac_cv_target" >&6; }
2094 case $ac_cv_target in
2095 *-*-*) ;;
2096 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2097 echo "$as_me: error: invalid value of canonical target" >&2;}
2098    { (exit 1); exit 1; }; };;
2099 esac
2100 target=$ac_cv_target
2101 ac_save_IFS=$IFS; IFS='-'
2102 set x $ac_cv_target
2103 shift
2104 target_cpu=$1
2105 target_vendor=$2
2106 shift; shift
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2109 target_os=$*
2110 IFS=$ac_save_IFS
2111 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2112
2113
2114 # The aliases save the names the user supplied, while $host etc.
2115 # will get canonicalized.
2116 test -n "$target_alias" &&
2117   test "$program_prefix$program_suffix$program_transform_name" = \
2118     NONENONEs,x,x, &&
2119   program_prefix=${target_alias}-
2120 am__api_version='1.10'
2121
2122 # Find a good install program.  We prefer a C program (faster),
2123 # so one script is as good as another.  But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148   ./ | .// | /cC/* | \
2149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151   /usr/ucb/* ) ;;
2152   *)
2153     # OSF1 and SCO ODT 3.0 have their own names for install.
2154     # Don't use installbsd from OSF since it installs stuff as root
2155     # by default.
2156     for ac_prog in ginstall scoinst install; do
2157       for ac_exec_ext in '' $ac_executable_extensions; do
2158         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159           if test $ac_prog = install &&
2160             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161             # AIX install.  It has an incompatible calling convention.
2162             :
2163           elif test $ac_prog = install &&
2164             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # program-specific install script used by HP pwplus--don't use.
2166             :
2167           else
2168             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169             break 3
2170           fi
2171         fi
2172       done
2173     done
2174     ;;
2175 esac
2176 done
2177 IFS=$as_save_IFS
2178
2179
2180 fi
2181   if test "${ac_cv_path_install+set}" = set; then
2182     INSTALL=$ac_cv_path_install
2183   else
2184     # As a last resort, use the slow shell script.  Don't cache a
2185     # value for INSTALL within a source directory, because that will
2186     # break other packages using the cache if that directory is
2187     # removed, or if the value is a relative name.
2188     INSTALL=$ac_install_sh
2189   fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments.  Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214    if test "$*" = "X"; then
2215       # -L didn't work.
2216       set X `ls -t $srcdir/configure conftest.file`
2217    fi
2218    rm -f conftest.file
2219    if test "$*" != "X $srcdir/configure conftest.file" \
2220       && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222       # If neither matched, then we have a broken ls.  This can happen
2223       # if, for instance, CONFIG_SHELL is bash and it inherits a
2224       # broken ls alias from the environment.  This has actually
2225       # happened.  Such a system could not be considered "sane".
2226       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&2;}
2230    { (exit 1); exit 1; }; }
2231    fi
2232
2233    test "$2" = conftest.file
2234    )
2235 then
2236    # Ok.
2237    :
2238 else
2239    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243    { (exit 1); exit 1; }; }
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $.  echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2256 _ACEOF
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 rm -f conftest.sed
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266   am_missing_run="$MISSING --run "
2267 else
2268   am_missing_run=
2269   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2275 if test -z "$MKDIR_P"; then
2276   if test "${ac_cv_path_mkdir+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_prog in mkdir gmkdir; do
2285          for ac_exec_ext in '' $ac_executable_extensions; do
2286            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288              'mkdir (GNU coreutils) '* | \
2289              'mkdir (coreutils) '* | \
2290              'mkdir (fileutils) '4.1*)
2291                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2292                break 3;;
2293            esac
2294          done
2295        done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300
2301   if test "${ac_cv_path_mkdir+set}" = set; then
2302     MKDIR_P="$ac_cv_path_mkdir -p"
2303   else
2304     # As a last resort, use the slow shell script.  Don't cache a
2305     # value for MKDIR_P within a source directory, because that will
2306     # break other packages using the cache if that directory is
2307     # removed, or if the value is a relative name.
2308     test -d ./--version && rmdir ./--version
2309     MKDIR_P="$ac_install_sh -d"
2310   fi
2311 fi
2312 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 echo "${ECHO_T}$MKDIR_P" >&6; }
2314
2315 mkdir_p="$MKDIR_P"
2316 case $mkdir_p in
2317   [\\/$]* | ?:[\\/]*) ;;
2318   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 esac
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$AWK"; then
2331   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_AWK="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352   { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360   test -n "$AWK" && break
2361 done
2362
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.make <<\_ACEOF
2370 SHELL = /bin/sh
2371 all:
2372         @echo '@@@%%%=$(MAKE)=@@@%%%'
2373 _ACEOF
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2376   *@@@%%%=?*=@@@%%%*)
2377     eval ac_cv_prog_make_${ac_make}_set=yes;;
2378   *)
2379     eval ac_cv_prog_make_${ac_make}_set=no;;
2380 esac
2381 rm -f conftest.make
2382 fi
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384   { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386   SET_MAKE=
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390   SET_MAKE="MAKE=${MAKE-make}"
2391 fi
2392
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2396   am__leading_dot=.
2397 else
2398   am__leading_dot=_
2399 fi
2400 rmdir .tst 2>/dev/null
2401
2402 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2403   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2404   # is not polluted with repeated "-I."
2405   am__isrc=' -I$(srcdir)'
2406   # test to see if srcdir already configured
2407   if test -f $srcdir/config.status; then
2408     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2409 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2410    { (exit 1); exit 1; }; }
2411   fi
2412 fi
2413
2414 # test whether we have cygpath
2415 if test -z "$CYGPATH_W"; then
2416   if (cygpath --version) >/dev/null 2>/dev/null; then
2417     CYGPATH_W='cygpath -w'
2418   else
2419     CYGPATH_W=echo
2420   fi
2421 fi
2422
2423
2424 # Define the identity of the package.
2425  PACKAGE=mod_chxj
2426  VERSION=0.10.2-1
2427
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE "$PACKAGE"
2431 _ACEOF
2432
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define VERSION "$VERSION"
2436 _ACEOF
2437
2438 # Some tools Automake needs.
2439
2440 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2441
2442
2443 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2444
2445
2446 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2447
2448
2449 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2450
2451
2452 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2453
2454 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2455
2456 # Installed binaries are usually stripped using `strip' when the user
2457 # run `make install-strip'.  However `strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the `STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461   if test -n "$ac_tool_prefix"; then
2462   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_STRIP+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$STRIP"; then
2470   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491   { echo "$as_me:$LINENO: result: $STRIP" >&5
2492 echo "${ECHO_T}$STRIP" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501   ac_ct_STRIP=$STRIP
2502   # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$ac_ct_STRIP"; then
2510   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_ac_ct_STRIP="strip"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2532 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538   if test "x$ac_ct_STRIP" = x; then
2539     STRIP=":"
2540   else
2541     case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet.  If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&5
2546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet.  If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2549 ac_tool_warned=yes ;;
2550 esac
2551     STRIP=$ac_ct_STRIP
2552   fi
2553 else
2554   STRIP="$ac_cv_prog_STRIP"
2555 fi
2556
2557 fi
2558 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2559
2560 # We need awk for the "check" target.  The system "awk" is bad on
2561 # some platforms.
2562 # Always define AMTAR for backward compatibility.
2563
2564 AMTAR=${AMTAR-"${am_missing_run}tar"}
2565
2566 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2567
2568
2569
2570
2571
2572 ac_config_headers="$ac_config_headers include/config.h"
2573
2574
2575
2576 # Checks for programs.
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$CC"; then
2591   ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612   { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_CC"; then
2622   ac_ct_CC=$CC
2623   # Extract the first word of "gcc", so it can be a program name with args.
2624 set dummy gcc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_CC"; then
2631   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_CC="gcc"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_CC" = x; then
2660     CC=""
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet.  If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672     CC=$ac_ct_CC
2673   fi
2674 else
2675   CC="$ac_cv_prog_CC"
2676 fi
2677
2678 if test -z "$CC"; then
2679           if test -n "$ac_tool_prefix"; then
2680     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$CC"; then
2688   ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_CC="${ac_tool_prefix}cc"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709   { echo "$as_me:$LINENO: result: $CC" >&5
2710 echo "${ECHO_T}$CC" >&6; }
2711 else
2712   { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2714 fi
2715
2716
2717   fi
2718 fi
2719 if test -z "$CC"; then
2720   # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   if test -n "$CC"; then
2728   ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730   ac_prog_rejected=no
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736   for ac_exec_ext in '' $ac_executable_extensions; do
2737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739        ac_prog_rejected=yes
2740        continue
2741      fi
2742     ac_cv_prog_CC="cc"
2743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 if test $ac_prog_rejected = yes; then
2751   # We found a bogon in the path, so make sure we never use it.
2752   set dummy $ac_cv_prog_CC
2753   shift
2754   if test $# != 0; then
2755     # We chose a different compiler from the bogus one.
2756     # However, it has the same basename, so the bogon will be chosen
2757     # first if we set CC to just the basename; use the full file name.
2758     shift
2759     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2760   fi
2761 fi
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766   { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2768 else
2769   { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2771 fi
2772
2773
2774 fi
2775 if test -z "$CC"; then
2776   if test -n "$ac_tool_prefix"; then
2777   for ac_prog in cl.exe
2778   do
2779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$CC"; then
2787   ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794   for ac_exec_ext in '' $ac_executable_extensions; do
2795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808   { echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6; }
2810 else
2811   { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2814
2815
2816     test -n "$CC" && break
2817   done
2818 fi
2819 if test -z "$CC"; then
2820   ac_ct_CC=$CC
2821   for ac_prog in cl.exe
2822 do
2823   # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   if test -n "$ac_ct_CC"; then
2831   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836   IFS=$as_save_IFS
2837   test -z "$as_dir" && as_dir=.
2838   for ac_exec_ext in '' $ac_executable_extensions; do
2839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840     ac_cv_prog_ac_ct_CC="$ac_prog"
2841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842     break 2
2843   fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi
2849 fi
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 echo "${ECHO_T}$ac_ct_CC" >&6; }
2854 else
2855   { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2858
2859
2860   test -n "$ac_ct_CC" && break
2861 done
2862
2863   if test "x$ac_ct_CC" = x; then
2864     CC=""
2865   else
2866     case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet.  If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet.  If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876     CC=$ac_ct_CC
2877   fi
2878 fi
2879
2880 fi
2881
2882
2883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: no acceptable C compiler found in \$PATH
2886 See \`config.log' for more details." >&2;}
2887    { (exit 1); exit 1; }; }
2888
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler --version >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -v >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler -V >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929
2930 int
2931 main ()
2932 {
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 ac_clean_files_save=$ac_clean_files
2939 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2940 # Try to create an executable without -o first, disregard a.out.
2941 # It will help us diagnose broken compilers, and finding out an intuition
2942 # of exeext.
2943 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2944 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2945 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 #
2947 # List of possible output files, starting from the most likely.
2948 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2949 # only as a last resort.  b.out is created by i960 compilers.
2950 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2951 #
2952 # The IRIX 6 linker writes into existing files which may not be
2953 # executable, retaining their permissions.  Remove them first so a
2954 # subsequent execution test works.
2955 ac_rmfiles=
2956 for ac_file in $ac_files
2957 do
2958   case $ac_file in
2959     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2960     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2961   esac
2962 done
2963 rm -f $ac_rmfiles
2964
2965 if { (ac_try="$ac_link_default"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971   (eval "$ac_link_default") 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; then
2975   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2976 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2977 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2978 # so that the user can short-circuit this test for compilers unknown to
2979 # Autoconf.
2980 for ac_file in $ac_files ''
2981 do
2982   test -f "$ac_file" || continue
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2985         ;;
2986     [ab].out )
2987         # We found the default executable, but exeext='' is most
2988         # certainly right.
2989         break;;
2990     *.* )
2991         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2992         then :; else
2993            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994         fi
2995         # We set ac_cv_exeext here because the later test for it is not
2996         # safe: cross compilers may not add the suffix if given an `-o'
2997         # argument, so we may need to know it at that point already.
2998         # Even if this section looks crufty: it has the advantage of
2999         # actually working.
3000         break;;
3001     * )
3002         break;;
3003   esac
3004 done
3005 test "$ac_cv_exeext" = no && ac_cv_exeext=
3006
3007 else
3008   ac_file=''
3009 fi
3010
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3013 if test -z "$ac_file"; then
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021    { (exit 77); exit 77; }; }
3022 fi
3023
3024 ac_exeext=$ac_cv_exeext
3025
3026 # Check that the compiler produces executables we can run.  If not, either
3027 # the compiler is broken, or we cross compile.
3028 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3029 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3031 # If not cross compiling, check that we can run a simple program.
3032 if test "$cross_compiling" != yes; then
3033   if { ac_try='./$ac_file'
3034   { (case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_try") 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043     cross_compiling=no
3044   else
3045     if test "$cross_compiling" = maybe; then
3046         cross_compiling=yes
3047     else
3048         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details." >&5
3051 echo "$as_me: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&2;}
3054    { (exit 1); exit 1; }; }
3055     fi
3056   fi
3057 fi
3058 { echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6; }
3060
3061 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 # Check that the compiler produces executables we can run.  If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3066 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3067 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3068 echo "${ECHO_T}$cross_compiling" >&6; }
3069
3070 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3071 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3072 if { (ac_try="$ac_link"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_link") 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; then
3082   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 # `rm'.
3086 for ac_file in conftest.exe conftest conftest.*; do
3087   test -f "$ac_file" || continue
3088   case $ac_file in
3089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091           break;;
3092     * ) break;;
3093   esac
3094 done
3095 else
3096   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100    { (exit 1); exit 1; }; }
3101 fi
3102
3103 rm -f conftest$ac_cv_exeext
3104 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3106
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3109 ac_exeext=$EXEEXT
3110 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3112 if test "${ac_cv_objext+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.o conftest.obj
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; then
3141   for ac_file in conftest.o conftest.obj conftest.*; do
3142   test -f "$ac_file" || continue;
3143   case $ac_file in
3144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3145     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146        break;;
3147   esac
3148 done
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details." >&2;}
3157    { (exit 1); exit 1; }; }
3158 fi
3159
3160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 fi
3162 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3163 echo "${ECHO_T}$ac_cv_objext" >&6; }
3164 OBJEXT=$ac_cv_objext
3165 ac_objext=$OBJEXT
3166 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171   cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181 #ifndef __GNUC__
3182        choke me
3183 #endif
3184
3185   ;
3186   return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_compile") 2>conftest.er1
3197   ac_status=$?
3198   grep -v '^ *+' conftest.er1 >conftest.err
3199   rm -f conftest.er1
3200   cat conftest.err >&5
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); } && {
3203          test -z "$ac_c_werror_flag" ||
3204          test ! -s conftest.err
3205        } && test -s conftest.$ac_objext; then
3206   ac_compiler_gnu=yes
3207 else
3208   echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211         ac_compiler_gnu=no
3212 fi
3213
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3216
3217 fi
3218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3220 GCC=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_g+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   ac_save_c_werror_flag=$ac_c_werror_flag
3229    ac_c_werror_flag=yes
3230    ac_cv_prog_cc_g=no
3231    CFLAGS="-g"
3232    cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238
3239 int
3240 main ()
3241 {
3242
3243   ;
3244   return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (ac_try="$ac_compile"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_compile") 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } && {
3261          test -z "$ac_c_werror_flag" ||
3262          test ! -s conftest.err
3263        } && test -s conftest.$ac_objext; then
3264   ac_cv_prog_cc_g=yes
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269         CFLAGS=""
3270       cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_compile") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } && {
3299          test -z "$ac_c_werror_flag" ||
3300          test ! -s conftest.err
3301        } && test -s conftest.$ac_objext; then
3302   :
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307         ac_c_werror_flag=$ac_save_c_werror_flag
3308          CFLAGS="-g"
3309          cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315
3316 int
3317 main ()
3318 {
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331   (eval "$ac_compile") 2>conftest.er1
3332   ac_status=$?
3333   grep -v '^ *+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } && {
3338          test -z "$ac_c_werror_flag" ||
3339          test ! -s conftest.err
3340        } && test -s conftest.$ac_objext; then
3341   ac_cv_prog_cc_g=yes
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346
3347 fi
3348
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 fi
3351
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 fi
3354
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356    ac_c_werror_flag=$ac_save_c_werror_flag
3357 fi
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361   CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363   if test "$GCC" = yes; then
3364     CFLAGS="-g -O2"
3365   else
3366     CFLAGS="-g"
3367   fi
3368 else
3369   if test "$GCC" = yes; then
3370     CFLAGS="-O2"
3371   else
3372     CFLAGS=
3373   fi
3374 fi
3375 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3376 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   ac_cv_prog_cc_c89=no
3381 ac_save_CC=$CC
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #include <stdarg.h>
3389 #include <stdio.h>
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3396      char **p;
3397      int i;
3398 {
3399   return p[i];
3400 }
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3402 {
3403   char *s;
3404   va_list v;
3405   va_start (v,p);
3406   s = g (p, va_arg (v,int));
3407   va_end (v);
3408   return s;
3409 }
3410
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3412    function prototypes and stuff, but not '\xHH' hex character constants.
3413    These don't provoke an error unfortunately, instead are silently treated
3414    as 'x'.  The following induces an error, until -std is added to get
3415    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3416    array size at least.  It's necessary to write '\x00'==0 to get something
3417    that's true only with -std.  */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421    inside strings and character constants.  */
3422 #define FOO(x) 'x'
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429 int argc;
3430 char **argv;
3431 int
3432 main ()
3433 {
3434 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 do
3442   CC="$ac_save_CC $ac_arg"
3443   rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_compile") 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } && {
3457          test -z "$ac_c_werror_flag" ||
3458          test ! -s conftest.err
3459        } && test -s conftest.$ac_objext; then
3460   ac_cv_prog_cc_c89=$ac_arg
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465
3466 fi
3467
3468 rm -f core conftest.err conftest.$ac_objext
3469   test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC
3473
3474 fi
3475 # AC_CACHE_VAL
3476 case "x$ac_cv_prog_cc_c89" in
3477   x)
3478     { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3480   xno)
3481     { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3483   *)
3484     CC="$CC $ac_cv_prog_cc_c89"
3485     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3487 esac
3488
3489
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 DEPDIR="${am__leading_dot}deps"
3496
3497 ac_config_commands="$ac_config_commands depfiles"
3498
3499
3500 am_make=${MAKE-make}
3501 cat > confinc << 'END'
3502 am__doit:
3503         @echo done
3504 .PHONY: am__doit
3505 END
3506 # If we don't find an include directive, just comment out the code.
3507 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3508 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3509 am__include="#"
3510 am__quote=
3511 _am_result=none
3512 # First try GNU make style include.
3513 echo "include confinc" > confmf
3514 # We grep out `Entering directory' and `Leaving directory'
3515 # messages which can occur if `w' ends up in MAKEFLAGS.
3516 # In particular we don't look at `^make:' because GNU make might
3517 # be invoked under some other name (usually "gmake"), in which
3518 # case it prints its new name instead of `make'.
3519 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3520    am__include=include
3521    am__quote=
3522    _am_result=GNU
3523 fi
3524 # Now try BSD make style include.
3525 if test "$am__include" = "#"; then
3526    echo '.include "confinc"' > confmf
3527    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3528       am__include=.include
3529       am__quote="\""
3530       _am_result=BSD
3531    fi
3532 fi
3533
3534
3535 { echo "$as_me:$LINENO: result: $_am_result" >&5
3536 echo "${ECHO_T}$_am_result" >&6; }
3537 rm -f confinc confmf
3538
3539 # Check whether --enable-dependency-tracking was given.
3540 if test "${enable_dependency_tracking+set}" = set; then
3541   enableval=$enable_dependency_tracking;
3542 fi
3543
3544 if test "x$enable_dependency_tracking" != xno; then
3545   am_depcomp="$ac_aux_dir/depcomp"
3546   AMDEPBACKSLASH='\'
3547 fi
3548  if test "x$enable_dependency_tracking" != xno; then
3549   AMDEP_TRUE=
3550   AMDEP_FALSE='#'
3551 else
3552   AMDEP_TRUE='#'
3553   AMDEP_FALSE=
3554 fi
3555
3556
3557
3558 depcc="$CC"   am_compiler_list=
3559
3560 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3561 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3566   # We make a subdir and do the tests there.  Otherwise we can end up
3567   # making bogus files that we don't know about and never remove.  For
3568   # instance it was reported that on HP-UX the gcc test will end up
3569   # making a dummy file named `D' -- because `-MD' means `put the output
3570   # in D'.
3571   mkdir conftest.dir
3572   # Copy depcomp to subdir because otherwise we won't find it if we're
3573   # using a relative directory.
3574   cp "$am_depcomp" conftest.dir
3575   cd conftest.dir
3576   # We will build objects and dependencies in a subdirectory because
3577   # it helps to detect inapplicable dependency modes.  For instance
3578   # both Tru64's cc and ICC support -MD to output dependencies as a
3579   # side effect of compilation, but ICC will put the dependencies in
3580   # the current directory while Tru64 will put them in the object
3581   # directory.
3582   mkdir sub
3583
3584   am_cv_CC_dependencies_compiler_type=none
3585   if test "$am_compiler_list" = ""; then
3586      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3587   fi
3588   for depmode in $am_compiler_list; do
3589     # Setup a source with many dependencies, because some compilers
3590     # like to wrap large dependency lists on column 80 (with \), and
3591     # we should not choose a depcomp mode which is confused by this.
3592     #
3593     # We need to recreate these files for each test, as the compiler may
3594     # overwrite some of them when testing with obscure command lines.
3595     # This happens at least with the AIX C compiler.
3596     : > sub/conftest.c
3597     for i in 1 2 3 4 5 6; do
3598       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3599       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3600       # Solaris 8's {/usr,}/bin/sh.
3601       touch sub/conftst$i.h
3602     done
3603     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3604
3605     case $depmode in
3606     nosideeffect)
3607       # after this tag, mechanisms are not by side-effect, so they'll
3608       # only be used when explicitly requested
3609       if test "x$enable_dependency_tracking" = xyes; then
3610         continue
3611       else
3612         break
3613       fi
3614       ;;
3615     none) break ;;
3616     esac
3617     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618     # mode.  It turns out that the SunPro C++ compiler does not properly
3619     # handle `-M -o', and we need to detect this.
3620     if depmode=$depmode \
3621        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3622        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3624          >/dev/null 2>conftest.err &&
3625        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3626        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3627        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3628        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3629       # icc doesn't choke on unknown options, it will just issue warnings
3630       # or remarks (even with -Werror).  So we grep stderr for any message
3631       # that says an option was ignored or not supported.
3632       # When given -MP, icc 7.0 and 7.1 complain thusly:
3633       #   icc: Command line warning: ignoring option '-M'; no argument required
3634       # The diagnosis changed in icc 8.0:
3635       #   icc: Command line remark: option '-MP' not supported
3636       if (grep 'ignoring option' conftest.err ||
3637           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3638         am_cv_CC_dependencies_compiler_type=$depmode
3639         break
3640       fi
3641     fi
3642   done
3643
3644   cd ..
3645   rm -rf conftest.dir
3646 else
3647   am_cv_CC_dependencies_compiler_type=none
3648 fi
3649
3650 fi
3651 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3652 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3653 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3654
3655  if
3656   test "x$enable_dependency_tracking" != xno \
3657   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3658   am__fastdepCC_TRUE=
3659   am__fastdepCC_FALSE='#'
3660 else
3661   am__fastdepCC_TRUE='#'
3662   am__fastdepCC_FALSE=
3663 fi
3664
3665
3666 # Find a good install program.  We prefer a C program (faster),
3667 # so one script is as good as another.  But avoid the broken or
3668 # incompatible versions:
3669 # SysV /etc/install, /usr/sbin/install
3670 # SunOS /usr/etc/install
3671 # IRIX /sbin/install
3672 # AIX /bin/install
3673 # AmigaOS /C/install, which installs bootblocks on floppy discs
3674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3677 # OS/2's system install, which has a completely different semantic
3678 # ./install, which can be erroneously created by make from ./install.sh.
3679 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3681 if test -z "$INSTALL"; then
3682 if test "${ac_cv_path_install+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690   # Account for people who put trailing slashes in PATH elements.
3691 case $as_dir/ in
3692   ./ | .// | /cC/* | \
3693   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3694   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3695   /usr/ucb/* ) ;;
3696   *)
3697     # OSF1 and SCO ODT 3.0 have their own names for install.
3698     # Don't use installbsd from OSF since it installs stuff as root
3699     # by default.
3700     for ac_prog in ginstall scoinst install; do
3701       for ac_exec_ext in '' $ac_executable_extensions; do
3702         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3703           if test $ac_prog = install &&
3704             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705             # AIX install.  It has an incompatible calling convention.
3706             :
3707           elif test $ac_prog = install &&
3708             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709             # program-specific install script used by HP pwplus--don't use.
3710             :
3711           else
3712             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3713             break 3
3714           fi
3715         fi
3716       done
3717     done
3718     ;;
3719 esac
3720 done
3721 IFS=$as_save_IFS
3722
3723
3724 fi
3725   if test "${ac_cv_path_install+set}" = set; then
3726     INSTALL=$ac_cv_path_install
3727   else
3728     # As a last resort, use the slow shell script.  Don't cache a
3729     # value for INSTALL within a source directory, because that will
3730     # break other packages using the cache if that directory is
3731     # removed, or if the value is a relative name.
3732     INSTALL=$ac_install_sh
3733   fi
3734 fi
3735 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3736 echo "${ECHO_T}$INSTALL" >&6; }
3737
3738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3739 # It thinks the first close brace ends the variable substitution.
3740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3741
3742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3743
3744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3745
3746
3747
3748 # Check whether --enable-shared was given.
3749 if test "${enable_shared+set}" = set; then
3750   enableval=$enable_shared; p=${PACKAGE-default}
3751     case $enableval in
3752     yes) enable_shared=yes ;;
3753     no) enable_shared=no ;;
3754     *)
3755       enable_shared=no
3756       # Look at the argument we got.  We use all the common list separators.
3757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758       for pkg in $enableval; do
3759         IFS="$lt_save_ifs"
3760         if test "X$pkg" = "X$p"; then
3761           enable_shared=yes
3762         fi
3763       done
3764       IFS="$lt_save_ifs"
3765       ;;
3766     esac
3767 else
3768   enable_shared=yes
3769 fi
3770
3771
3772 # Check whether --enable-static was given.
3773 if test "${enable_static+set}" = set; then
3774   enableval=$enable_static; p=${PACKAGE-default}
3775     case $enableval in
3776     yes) enable_static=yes ;;
3777     no) enable_static=no ;;
3778     *)
3779      enable_static=no
3780       # Look at the argument we got.  We use all the common list separators.
3781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782       for pkg in $enableval; do
3783         IFS="$lt_save_ifs"
3784         if test "X$pkg" = "X$p"; then
3785           enable_static=yes
3786         fi
3787       done
3788       IFS="$lt_save_ifs"
3789       ;;
3790     esac
3791 else
3792   enable_static=yes
3793 fi
3794
3795
3796 # Check whether --enable-fast-install was given.
3797 if test "${enable_fast_install+set}" = set; then
3798   enableval=$enable_fast_install; p=${PACKAGE-default}
3799     case $enableval in
3800     yes) enable_fast_install=yes ;;
3801     no) enable_fast_install=no ;;
3802     *)
3803       enable_fast_install=no
3804       # Look at the argument we got.  We use all the common list separators.
3805       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806       for pkg in $enableval; do
3807         IFS="$lt_save_ifs"
3808         if test "X$pkg" = "X$p"; then
3809           enable_fast_install=yes
3810         fi
3811       done
3812       IFS="$lt_save_ifs"
3813       ;;
3814     esac
3815 else
3816   enable_fast_install=yes
3817 fi
3818
3819
3820 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3821 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3822 if test "${lt_cv_path_SED+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   # Loop through the user's path and test for sed and gsed.
3826 # Then use that list of sed's as ones to test for truncation.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830   IFS=$as_save_IFS
3831   test -z "$as_dir" && as_dir=.
3832   for lt_ac_prog in sed gsed; do
3833     for ac_exec_ext in '' $ac_executable_extensions; do
3834       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3835         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3836       fi
3837     done
3838   done
3839 done
3840 lt_ac_max=0
3841 lt_ac_count=0
3842 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3843 # along with /bin/sed that truncates output.
3844 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3845   test ! -f $lt_ac_sed && continue
3846   cat /dev/null > conftest.in
3847   lt_ac_count=0
3848   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3849   # Check for GNU sed and select it if it is found.
3850   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3851     lt_cv_path_SED=$lt_ac_sed
3852     break
3853   fi
3854   while true; do
3855     cat conftest.in conftest.in >conftest.tmp
3856     mv conftest.tmp conftest.in
3857     cp conftest.in conftest.nl
3858     echo >>conftest.nl
3859     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3860     cmp -s conftest.out conftest.nl || break
3861     # 10000 chars as input seems more than enough
3862     test $lt_ac_count -gt 10 && break
3863     lt_ac_count=`expr $lt_ac_count + 1`
3864     if test $lt_ac_count -gt $lt_ac_max; then
3865       lt_ac_max=$lt_ac_count
3866       lt_cv_path_SED=$lt_ac_sed
3867     fi
3868   done
3869 done
3870
3871 fi
3872
3873 SED=$lt_cv_path_SED
3874 { echo "$as_me:$LINENO: result: $SED" >&5
3875 echo "${ECHO_T}$SED" >&6; }
3876
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895   for ac_prog in grep ggrep; do
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3899     # Check for GNU ac_path_GREP and select it if it is found.
3900   # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3902 *GNU*)
3903   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 *)
3905   ac_count=0
3906   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907   while :
3908   do
3909     cat "conftest.in" "conftest.in" >"conftest.tmp"
3910     mv "conftest.tmp" "conftest.in"
3911     cp "conftest.in" "conftest.nl"
3912     echo 'GREP' >> "conftest.nl"
3913     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915     ac_count=`expr $ac_count + 1`
3916     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917       # Best one so far, save it but keep looking for a better one
3918       ac_cv_path_GREP="$ac_path_GREP"
3919       ac_path_GREP_max=$ac_count
3920     fi
3921     # 10*(2^10) chars as input seems more than enough
3922     test $ac_count -gt 10 && break
3923   done
3924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 esac
3926
3927
3928     $ac_path_GREP_found && break 3
3929   done
3930 done
3931
3932 done
3933 IFS=$as_save_IFS
3934
3935
3936 fi
3937
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942    { (exit 1); exit 1; }; }
3943 fi
3944
3945 else
3946   ac_cv_path_GREP=$GREP
3947 fi
3948
3949
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953  GREP="$ac_cv_path_GREP"
3954
3955
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962    then ac_cv_path_EGREP="$GREP -E"
3963    else
3964      # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_prog in egrep; do
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3981     # Check for GNU ac_path_EGREP and select it if it is found.
3982   # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3984 *GNU*)
3985   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 *)
3987   ac_count=0
3988   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989   while :
3990   do
3991     cat "conftest.in" "conftest.in" >"conftest.tmp"
3992     mv "conftest.tmp" "conftest.in"
3993     cp "conftest.in" "conftest.nl"
3994     echo 'EGREP' >> "conftest.nl"
3995     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997     ac_count=`expr $ac_count + 1`
3998     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999       # Best one so far, save it but keep looking for a better one
4000       ac_cv_path_EGREP="$ac_path_EGREP"
4001       ac_path_EGREP_max=$ac_count
4002     fi
4003     # 10*(2^10) chars as input seems more than enough
4004     test $ac_count -gt 10 && break
4005   done
4006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010     $ac_path_EGREP_found && break 3
4011   done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024    { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028   ac_cv_path_EGREP=$EGREP
4029 fi
4030
4031
4032    fi
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036  EGREP="$ac_cv_path_EGREP"
4037
4038
4039
4040 # Check whether --with-gnu-ld was given.
4041 if test "${with_gnu_ld+set}" = set; then
4042   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4043 else
4044   with_gnu_ld=no
4045 fi
4046
4047 ac_prog=ld
4048 if test "$GCC" = yes; then
4049   # Check if gcc -print-prog-name=ld gives a path.
4050   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4051 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4052   case $host in
4053   *-*-mingw*)
4054     # gcc leaves a trailing carriage return which upsets mingw
4055     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4056   *)
4057     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4058   esac
4059   case $ac_prog in
4060     # Accept absolute paths.
4061     [\\/]* | ?:[\\/]*)
4062       re_direlt='/[^/][^/]*/\.\./'
4063       # Canonicalize the pathname of ld
4064       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4065       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4066         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4067       done
4068       test -z "$LD" && LD="$ac_prog"
4069       ;;
4070   "")
4071     # If it fails, then pretend we aren't using GCC.
4072     ac_prog=ld
4073     ;;
4074   *)
4075     # If it is relative, then search for the first ld in PATH.
4076     with_gnu_ld=unknown
4077     ;;
4078   esac
4079 elif test "$with_gnu_ld" = yes; then
4080   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4081 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4082 else
4083   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4084 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4085 fi
4086 if test "${lt_cv_path_LD+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -z "$LD"; then
4090   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4091   for ac_dir in $PATH; do
4092     IFS="$lt_save_ifs"
4093     test -z "$ac_dir" && ac_dir=.
4094     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4095       lt_cv_path_LD="$ac_dir/$ac_prog"
4096       # Check to see if the program is GNU ld.  I'd rather use --version,
4097       # but apparently some variants of GNU ld only accept -v.
4098       # Break only if it was the GNU/non-GNU ld that we prefer.
4099       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4100       *GNU* | *'with BFD'*)
4101         test "$with_gnu_ld" != no && break
4102         ;;
4103       *)
4104         test "$with_gnu_ld" != yes && break
4105         ;;
4106       esac
4107     fi
4108   done
4109   IFS="$lt_save_ifs"
4110 else
4111   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4112 fi
4113 fi
4114
4115 LD="$lt_cv_path_LD"
4116 if test -n "$LD"; then
4117   { echo "$as_me:$LINENO: result: $LD" >&5
4118 echo "${ECHO_T}$LD" >&6; }
4119 else
4120   { echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6; }
4122 fi
4123 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4124 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4125    { (exit 1); exit 1; }; }
4126 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4127 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4128 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4132 case `$LD -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
4134   lt_cv_prog_gnu_ld=yes
4135   ;;
4136 *)
4137   lt_cv_prog_gnu_ld=no
4138   ;;
4139 esac
4140 fi
4141 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4142 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4143 with_gnu_ld=$lt_cv_prog_gnu_ld
4144
4145
4146 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4147 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4148 if test "${lt_cv_ld_reload_flag+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   lt_cv_ld_reload_flag='-r'
4152 fi
4153 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4154 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4155 reload_flag=$lt_cv_ld_reload_flag
4156 case $reload_flag in
4157 "" | " "*) ;;
4158 *) reload_flag=" $reload_flag" ;;
4159 esac
4160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161 case $host_os in
4162   darwin*)
4163     if test "$GCC" = yes; then
4164       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4165     else
4166       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167     fi
4168     ;;
4169 esac
4170
4171 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4172 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4173 if test "${lt_cv_path_NM+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   if test -n "$NM"; then
4177   # Let the user override the test.
4178   lt_cv_path_NM="$NM"
4179 else
4180   lt_nm_to_check="${ac_tool_prefix}nm"
4181   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4182     lt_nm_to_check="$lt_nm_to_check nm"
4183   fi
4184   for lt_tmp_nm in $lt_nm_to_check; do
4185     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4187       IFS="$lt_save_ifs"
4188       test -z "$ac_dir" && ac_dir=.
4189       tmp_nm="$ac_dir/$lt_tmp_nm"
4190       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4191         # Check to see if the nm accepts a BSD-compat flag.
4192         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4193         #   nm: unknown option "B" ignored
4194         # Tru64's nm complains that /dev/null is an invalid object file
4195         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4196         */dev/null* | *'Invalid file or object type'*)
4197           lt_cv_path_NM="$tmp_nm -B"
4198           break
4199           ;;
4200         *)
4201           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4202           */dev/null*)
4203             lt_cv_path_NM="$tmp_nm -p"
4204             break
4205             ;;
4206           *)
4207             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4208             continue # so that we can try to find one that supports BSD flags
4209             ;;
4210           esac
4211           ;;
4212         esac
4213       fi
4214     done
4215     IFS="$lt_save_ifs"
4216   done
4217   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4218 fi
4219 fi
4220 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4221 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4222 NM="$lt_cv_path_NM"
4223
4224 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4225 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4226 LN_S=$as_ln_s
4227 if test "$LN_S" = "ln -s"; then
4228   { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4230 else
4231   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4232 echo "${ECHO_T}no, using $LN_S" >&6; }
4233 fi
4234
4235 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4236 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4237 if test "${lt_cv_deplibs_check_method+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   lt_cv_file_magic_cmd='$MAGIC_CMD'
4241 lt_cv_file_magic_test_file=
4242 lt_cv_deplibs_check_method='unknown'
4243 # Need to set the preceding variable on all platforms that support
4244 # interlibrary dependencies.
4245 # 'none' -- dependencies not supported.
4246 # `unknown' -- same as none, but documents that we really don't know.
4247 # 'pass_all' -- all dependencies passed with no checks.
4248 # 'test_compile' -- check by making test program.
4249 # 'file_magic [[regex]]' -- check by looking for files in library path
4250 # which responds to the $file_magic_cmd with a given extended regex.
4251 # If you have `file' or equivalent on your system and you're not sure
4252 # whether `pass_all' will *always* work, you probably want this one.
4253
4254 case $host_os in
4255 aix4* | aix5*)
4256   lt_cv_deplibs_check_method=pass_all
4257   ;;
4258
4259 beos*)
4260   lt_cv_deplibs_check_method=pass_all
4261   ;;
4262
4263 bsdi[45]*)
4264   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4265   lt_cv_file_magic_cmd='/usr/bin/file -L'
4266   lt_cv_file_magic_test_file=/shlib/libc.so
4267   ;;
4268
4269 cygwin*)
4270   # func_win32_libid is a shell function defined in ltmain.sh
4271   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4272   lt_cv_file_magic_cmd='func_win32_libid'
4273   ;;
4274
4275 mingw* | pw32*)
4276   # Base MSYS/MinGW do not provide the 'file' command needed by
4277   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4278   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4279   lt_cv_file_magic_cmd='$OBJDUMP -f'
4280   ;;
4281
4282 darwin* | rhapsody*)
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 freebsd* | dragonfly*)
4287   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4288     case $host_cpu in
4289     i*86 )
4290       # Not sure whether the presence of OpenBSD here was a mistake.
4291       # Let's accept both of them until this is cleared up.
4292       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4293       lt_cv_file_magic_cmd=/usr/bin/file
4294       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4295       ;;
4296     esac
4297   else
4298     lt_cv_deplibs_check_method=pass_all
4299   fi
4300   ;;
4301
4302 gnu*)
4303   lt_cv_deplibs_check_method=pass_all
4304   ;;
4305
4306 hpux10.20* | hpux11*)
4307   lt_cv_file_magic_cmd=/usr/bin/file
4308   case $host_cpu in
4309   ia64*)
4310     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4311     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4312     ;;
4313   hppa*64*)
4314     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]'
4315     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4316     ;;
4317   *)
4318     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4319     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4320     ;;
4321   esac
4322   ;;
4323
4324 interix3*)
4325   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4326   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4327   ;;
4328
4329 irix5* | irix6* | nonstopux*)
4330   case $LD in
4331   *-32|*"-32 ") libmagic=32-bit;;
4332   *-n32|*"-n32 ") libmagic=N32;;
4333   *-64|*"-64 ") libmagic=64-bit;;
4334   *) libmagic=never-match;;
4335   esac
4336   lt_cv_deplibs_check_method=pass_all
4337   ;;
4338
4339 # This must be Linux ELF.
4340 linux* | k*bsd*-gnu)
4341   lt_cv_deplibs_check_method=pass_all
4342   ;;
4343
4344 netbsd* | netbsdelf*-gnu)
4345   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4346     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4347   else
4348     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4349   fi
4350   ;;
4351
4352 newos6*)
4353   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4354   lt_cv_file_magic_cmd=/usr/bin/file
4355   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4356   ;;
4357
4358 nto-qnx*)
4359   lt_cv_deplibs_check_method=unknown
4360   ;;
4361
4362 openbsd*)
4363   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4364     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4365   else
4366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4367   fi
4368   ;;
4369
4370 osf3* | osf4* | osf5*)
4371   lt_cv_deplibs_check_method=pass_all
4372   ;;
4373
4374 solaris*)
4375   lt_cv_deplibs_check_method=pass_all
4376   ;;
4377
4378 sysv4 | sysv4.3*)
4379   case $host_vendor in
4380   motorola)
4381     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]'
4382     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4383     ;;
4384   ncr)
4385     lt_cv_deplibs_check_method=pass_all
4386     ;;
4387   sequent)
4388     lt_cv_file_magic_cmd='/bin/file'
4389     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4390     ;;
4391   sni)
4392     lt_cv_file_magic_cmd='/bin/file'
4393     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4394     lt_cv_file_magic_test_file=/lib/libc.so
4395     ;;
4396   siemens)
4397     lt_cv_deplibs_check_method=pass_all
4398     ;;
4399   pc)
4400     lt_cv_deplibs_check_method=pass_all
4401     ;;
4402   esac
4403   ;;
4404
4405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4406   lt_cv_deplibs_check_method=pass_all
4407   ;;
4408 esac
4409
4410 fi
4411 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4412 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4413 file_magic_cmd=$lt_cv_file_magic_cmd
4414 deplibs_check_method=$lt_cv_deplibs_check_method
4415 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4416
4417
4418
4419
4420 # If no C compiler was specified, use CC.
4421 LTCC=${LTCC-"$CC"}
4422
4423 # If no C compiler flags were specified, use CFLAGS.
4424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4425
4426 # Allow CC to be a program name with arguments.
4427 compiler=$CC
4428
4429
4430 # Check whether --enable-libtool-lock was given.
4431 if test "${enable_libtool_lock+set}" = set; then
4432   enableval=$enable_libtool_lock;
4433 fi
4434
4435 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4436
4437 # Some flags need to be propagated to the compiler or linker for good
4438 # libtool support.
4439 case $host in
4440 ia64-*-hpux*)
4441   # Find out which ABI we are using.
4442   echo 'int i;' > conftest.$ac_ext
4443   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444   (eval $ac_compile) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; then
4448     case `/usr/bin/file conftest.$ac_objext` in
4449     *ELF-32*)
4450       HPUX_IA64_MODE="32"
4451       ;;
4452     *ELF-64*)
4453       HPUX_IA64_MODE="64"
4454       ;;
4455     esac
4456   fi
4457   rm -rf conftest*
4458   ;;
4459 *-*-irix6*)
4460   # Find out which ABI we are using.
4461   echo '#line 4461 "configure"' > conftest.$ac_ext
4462   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; then
4467    if test "$lt_cv_prog_gnu_ld" = yes; then
4468     case `/usr/bin/file conftest.$ac_objext` in
4469     *32-bit*)
4470       LD="${LD-ld} -melf32bsmip"
4471       ;;
4472     *N32*)
4473       LD="${LD-ld} -melf32bmipn32"
4474       ;;
4475     *64-bit*)
4476       LD="${LD-ld} -melf64bmip"
4477       ;;
4478     esac
4479    else
4480     case `/usr/bin/file conftest.$ac_objext` in
4481     *32-bit*)
4482       LD="${LD-ld} -32"
4483       ;;
4484     *N32*)
4485       LD="${LD-ld} -n32"
4486       ;;
4487     *64-bit*)
4488       LD="${LD-ld} -64"
4489       ;;
4490     esac
4491    fi
4492   fi
4493   rm -rf conftest*
4494   ;;
4495
4496 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4497   # Find out which ABI we are using.
4498   echo 'int i;' > conftest.$ac_ext
4499   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500   (eval $ac_compile) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; then
4504     case `/usr/bin/file conftest.o` in
4505     *32-bit*)
4506       case $host in
4507         x86_64-*linux*)
4508           LD="${LD-ld} -m elf_i386"
4509           ;;
4510         ppc64-*linux*|powerpc64-*linux*)
4511           LD="${LD-ld} -m elf32ppclinux"
4512           ;;
4513         s390x-*linux*)
4514           LD="${LD-ld} -m elf_s390"
4515           ;;
4516         sparc64-*linux*)
4517           LD="${LD-ld} -m elf32_sparc"
4518           ;;
4519       esac
4520       ;;
4521     *64-bit*)
4522       case $host in
4523         x86_64-*linux*)
4524           LD="${LD-ld} -m elf_x86_64"
4525           ;;
4526         ppc*-*linux*|powerpc*-*linux*)
4527           LD="${LD-ld} -m elf64ppc"
4528           ;;
4529         s390*-*linux*)
4530           LD="${LD-ld} -m elf64_s390"
4531           ;;
4532         sparc*-*linux*)
4533           LD="${LD-ld} -m elf64_sparc"
4534           ;;
4535       esac
4536       ;;
4537     esac
4538   fi
4539   rm -rf conftest*
4540   ;;
4541
4542 *-*-sco3.2v5*)
4543   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4544   SAVE_CFLAGS="$CFLAGS"
4545   CFLAGS="$CFLAGS -belf"
4546   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4547 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4548 if test "${lt_cv_cc_needs_belf+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557      cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563
4564 int
4565 main ()
4566 {
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (ac_try="$ac_link"
4574 case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_link") 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } && {
4586          test -z "$ac_c_werror_flag" ||
4587          test ! -s conftest.err
4588        } && test -s conftest$ac_exeext &&
4589        $as_test_x conftest$ac_exeext; then
4590   lt_cv_cc_needs_belf=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595         lt_cv_cc_needs_belf=no
4596 fi
4597
4598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4599       conftest$ac_exeext conftest.$ac_ext
4600      ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606 fi
4607 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4608 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4609   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4610     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4611     CFLAGS="$SAVE_CFLAGS"
4612   fi
4613   ;;
4614 sparc*-*solaris*)
4615   # Find out which ABI we are using.
4616   echo 'int i;' > conftest.$ac_ext
4617   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618   (eval $ac_compile) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; then
4622     case `/usr/bin/file conftest.o` in
4623     *64-bit*)
4624       case $lt_cv_prog_gnu_ld in
4625       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4626       *)    LD="${LD-ld} -64" ;;
4627       esac
4628       ;;
4629     esac
4630   fi
4631   rm -rf conftest*
4632   ;;
4633
4634
4635 esac
4636
4637 need_locks="$enable_libtool_lock"
4638
4639
4640 ac_ext=c
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4647 # On Suns, sometimes $CPP names a directory.
4648 if test -n "$CPP" && test -d "$CPP"; then
4649   CPP=
4650 fi
4651 if test -z "$CPP"; then
4652   if test "${ac_cv_prog_CPP+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655       # Double quotes because CPP needs to be expanded
4656     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4657     do
4658       ac_preproc_ok=false
4659 for ac_c_preproc_warn_flag in '' yes
4660 do
4661   # Use a header file that comes with gcc, so configuring glibc
4662   # with a fresh cross-compiler works.
4663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664   # <limits.h> exists even on freestanding compilers.
4665   # On the NeXT, cc -E runs the code through the compiler's parser,
4666   # not just through cpp. "Syntax error" is here to catch this case.
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 #ifdef __STDC__
4674 # include <limits.h>
4675 #else
4676 # include <assert.h>
4677 #endif
4678                      Syntax error
4679 _ACEOF
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 case "(($ac_try" in
4682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683   *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } >/dev/null && {
4693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694          test ! -s conftest.err
4695        }; then
4696   :
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701   # Broken: fails on valid input.
4702 continue
4703 fi
4704
4705 rm -f conftest.err conftest.$ac_ext
4706
4707   # OK, works on sane cases.  Now check whether nonexistent headers
4708   # can be detected and how.
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 #include <ac_nonexistent.h>
4716 _ACEOF
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4718 case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } >/dev/null && {
4730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731          test ! -s conftest.err
4732        }; then
4733   # Broken: success on invalid input.
4734 continue
4735 else
4736   echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739   # Passes both tests.
4740 ac_preproc_ok=:
4741 break
4742 fi
4743
4744 rm -f conftest.err conftest.$ac_ext
4745
4746 done
4747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4748 rm -f conftest.err conftest.$ac_ext
4749 if $ac_preproc_ok; then
4750   break
4751 fi
4752
4753     done
4754     ac_cv_prog_CPP=$CPP
4755
4756 fi
4757   CPP=$ac_cv_prog_CPP
4758 else
4759   ac_cv_prog_CPP=$CPP
4760 fi
4761 { echo "$as_me:$LINENO: result: $CPP" >&5
4762 echo "${ECHO_T}$CPP" >&6; }
4763 ac_preproc_ok=false
4764 for ac_c_preproc_warn_flag in '' yes
4765 do
4766   # Use a header file that comes with gcc, so configuring glibc
4767   # with a fresh cross-compiler works.
4768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769   # <limits.h> exists even on freestanding compilers.
4770   # On the NeXT, cc -E runs the code through the compiler's parser,
4771   # not just through cpp. "Syntax error" is here to catch this case.
4772   cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h.  */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h.  */
4778 #ifdef __STDC__
4779 # include <limits.h>
4780 #else
4781 # include <assert.h>
4782 #endif
4783                      Syntax error
4784 _ACEOF
4785 if { (ac_try="$ac_cpp conftest.$ac_ext"
4786 case "(($ac_try" in
4787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788   *) ac_try_echo=$ac_try;;
4789 esac
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } >/dev/null && {
4798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4799          test ! -s conftest.err
4800        }; then
4801   :
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806   # Broken: fails on valid input.
4807 continue
4808 fi
4809
4810 rm -f conftest.err conftest.$ac_ext
4811
4812   # OK, works on sane cases.  Now check whether nonexistent headers
4813   # can be detected and how.
4814   cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820 #include <ac_nonexistent.h>
4821 _ACEOF
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 case "(($ac_try" in
4824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825   *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } >/dev/null && {
4835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836          test ! -s conftest.err
4837        }; then
4838   # Broken: success on invalid input.
4839 continue
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844   # Passes both tests.
4845 ac_preproc_ok=:
4846 break
4847 fi
4848
4849 rm -f conftest.err conftest.$ac_ext
4850
4851 done
4852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4853 rm -f conftest.err conftest.$ac_ext
4854 if $ac_preproc_ok; then
4855   :
4856 else
4857   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4858 See \`config.log' for more details." >&5
4859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4860 See \`config.log' for more details." >&2;}
4861    { (exit 1); exit 1; }; }
4862 fi
4863
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870
4871 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4873 if test "${ac_cv_header_stdc+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876   cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882 #include <stdlib.h>
4883 #include <stdarg.h>
4884 #include <string.h>
4885 #include <float.h>
4886
4887 int
4888 main ()
4889 {
4890
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899   *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902   (eval "$ac_compile") 2>conftest.er1
4903   ac_status=$?
4904   grep -v '^ *+' conftest.er1 >conftest.err
4905   rm -f conftest.er1
4906   cat conftest.err >&5
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } && {
4909          test -z "$ac_c_werror_flag" ||
4910          test ! -s conftest.err
4911        } && test -s conftest.$ac_objext; then
4912   ac_cv_header_stdc=yes
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917         ac_cv_header_stdc=no
4918 fi
4919
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921
4922 if test $ac_cv_header_stdc = yes; then
4923   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4924   cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930 #include <string.h>
4931
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934   $EGREP "memchr" >/dev/null 2>&1; then
4935   :
4936 else
4937   ac_cv_header_stdc=no
4938 fi
4939 rm -f conftest*
4940
4941 fi
4942
4943 if test $ac_cv_header_stdc = yes; then
4944   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945   cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951 #include <stdlib.h>
4952
4953 _ACEOF
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955   $EGREP "free" >/dev/null 2>&1; then
4956   :
4957 else
4958   ac_cv_header_stdc=no
4959 fi
4960 rm -f conftest*
4961
4962 fi
4963
4964 if test $ac_cv_header_stdc = yes; then
4965   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966   if test "$cross_compiling" = yes; then
4967   :
4968 else
4969   cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h.  */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h.  */
4975 #include <ctype.h>
4976 #include <stdlib.h>
4977 #if ((' ' & 0x0FF) == 0x020)
4978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4980 #else
4981 # define ISLOWER(c) \
4982                    (('a' <= (c) && (c) <= 'i') \
4983                      || ('j' <= (c) && (c) <= 'r') \
4984                      || ('s' <= (c) && (c) <= 'z'))
4985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4986 #endif
4987
4988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4989 int
4990 main ()
4991 {
4992   int i;
4993   for (i = 0; i < 256; i++)
4994     if (XOR (islower (i), ISLOWER (i))
4995         || toupper (i) != TOUPPER (i))
4996       return 2;
4997   return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5002 case "(($ac_try" in
5003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004   *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007   (eval "$ac_link") 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011   { (case "(($ac_try" in
5012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013   *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016   (eval "$ac_try") 2>&5
5017   ac_status=$?
5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); }; }; then
5020   :
5021 else
5022   echo "$as_me: program exited with status $ac_status" >&5
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 ( exit $ac_status )
5027 ac_cv_header_stdc=no
5028 fi
5029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5030 fi
5031
5032
5033 fi
5034 fi
5035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5037 if test $ac_cv_header_stdc = yes; then
5038
5039 cat >>confdefs.h <<\_ACEOF
5040 #define STDC_HEADERS 1
5041 _ACEOF
5042
5043 fi
5044
5045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056                   inttypes.h stdint.h unistd.h
5057 do
5058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h.  */
5070 $ac_includes_default
5071
5072 #include <$ac_header>
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (ac_try="$ac_compile"
5076 case "(($ac_try" in
5077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078   *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081   (eval "$ac_compile") 2>conftest.er1
5082   ac_status=$?
5083   grep -v '^ *+' conftest.er1 >conftest.err
5084   rm -f conftest.er1
5085   cat conftest.err >&5
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); } && {
5088          test -z "$ac_c_werror_flag" ||
5089          test ! -s conftest.err
5090        } && test -s conftest.$ac_objext; then
5091   eval "$as_ac_Header=yes"
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096         eval "$as_ac_Header=no"
5097 fi
5098
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 ac_res=`eval echo '${'$as_ac_Header'}'`
5102                { echo "$as_me:$LINENO: result: $ac_res" >&5
5103 echo "${ECHO_T}$ac_res" >&6; }
5104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5105   cat >>confdefs.h <<_ACEOF
5106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5107 _ACEOF
5108
5109 fi
5110
5111 done
5112
5113
5114
5115 for ac_header in dlfcn.h
5116 do
5117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 fi
5124 ac_res=`eval echo '${'$as_ac_Header'}'`
5125                { echo "$as_me:$LINENO: result: $ac_res" >&5
5126 echo "${ECHO_T}$ac_res" >&6; }
5127 else
5128   # Is the header compilable?
5129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h.  */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h.  */
5137 $ac_includes_default
5138 #include <$ac_header>
5139 _ACEOF
5140 rm -f conftest.$ac_objext
5141 if { (ac_try="$ac_compile"
5142 case "(($ac_try" in
5143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144   *) ac_try_echo=$ac_try;;
5145 esac
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147   (eval "$ac_compile") 2>conftest.er1
5148   ac_status=$?
5149   grep -v '^ *+' conftest.er1 >conftest.err
5150   rm -f conftest.er1
5151   cat conftest.err >&5
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); } && {
5154          test -z "$ac_c_werror_flag" ||
5155          test ! -s conftest.err
5156        } && test -s conftest.$ac_objext; then
5157   ac_header_compiler=yes
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162         ac_header_compiler=no
5163 fi
5164
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5167 echo "${ECHO_T}$ac_header_compiler" >&6; }
5168
5169 # Is the header present?
5170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178 #include <$ac_header>
5179 _ACEOF
5180 if { (ac_try="$ac_cpp conftest.$ac_ext"
5181 case "(($ac_try" in
5182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183   *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187   ac_status=$?
5188   grep -v '^ *+' conftest.er1 >conftest.err
5189   rm -f conftest.er1
5190   cat conftest.err >&5
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); } >/dev/null && {
5193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194          test ! -s conftest.err
5195        }; then
5196   ac_header_preproc=yes
5197 else
5198   echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201   ac_header_preproc=no
5202 fi
5203
5204 rm -f conftest.err conftest.$ac_ext
5205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206 echo "${ECHO_T}$ac_header_preproc" >&6; }
5207
5208 # So?  What about this header?
5209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210   yes:no: )
5211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215     ac_header_preproc=yes
5216     ;;
5217   no:yes:* )
5218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5230
5231     ;;
5232 esac
5233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   eval "$as_ac_Header=\$ac_header_preproc"
5239 fi
5240 ac_res=`eval echo '${'$as_ac_Header'}'`
5241                { echo "$as_me:$LINENO: result: $ac_res" >&5
5242 echo "${ECHO_T}$ac_res" >&6; }
5243
5244 fi
5245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5246   cat >>confdefs.h <<_ACEOF
5247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248 _ACEOF
5249
5250 fi
5251
5252 done
5253
5254 ac_ext=cpp
5255 ac_cpp='$CXXCPP $CPPFLAGS'
5256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5259 if test -z "$CXX"; then
5260   if test -n "$CCC"; then
5261     CXX=$CCC
5262   else
5263     if test -n "$ac_tool_prefix"; then
5264   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265   do
5266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_CXX+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if test -n "$CXX"; then
5274   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281   for ac_exec_ext in '' $ac_executable_extensions; do
5282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 CXX=$ac_cv_prog_CXX
5294 if test -n "$CXX"; then
5295   { echo "$as_me:$LINENO: result: $CXX" >&5
5296 echo "${ECHO_T}$CXX" >&6; }
5297 else
5298   { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5300 fi
5301
5302
5303     test -n "$CXX" && break
5304   done
5305 fi
5306 if test -z "$CXX"; then
5307   ac_ct_CXX=$CXX
5308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309 do
5310   # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   if test -n "$ac_ct_CXX"; then
5318   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325   for ac_exec_ext in '' $ac_executable_extensions; do
5326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327     ac_cv_prog_ac_ct_CXX="$ac_prog"
5328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5338 if test -n "$ac_ct_CXX"; then
5339   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5341 else
5342   { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5344 fi
5345
5346
5347   test -n "$ac_ct_CXX" && break
5348 done
5349
5350   if test "x$ac_ct_CXX" = x; then
5351     CXX="g++"
5352   else
5353     case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5356 whose name does not start with the host triplet.  If you think this
5357 configuration is useful to you, please write to autoconf@gnu.org." >&5
5358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5359 whose name does not start with the host triplet.  If you think this
5360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363     CXX=$ac_ct_CXX
5364   fi
5365 fi
5366
5367   fi
5368 fi
5369 # Provide some information about the compiler.
5370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5371 ac_compiler=`set X $ac_compile; echo $2`
5372 { (ac_try="$ac_compiler --version >&5"
5373 case "(($ac_try" in
5374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375   *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378   (eval "$ac_compiler --version >&5") 2>&5
5379   ac_status=$?
5380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381   (exit $ac_status); }
5382 { (ac_try="$ac_compiler -v >&5"
5383 case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388   (eval "$ac_compiler -v >&5") 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }
5392 { (ac_try="$ac_compiler -V >&5"
5393 case "(($ac_try" in
5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395   *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398   (eval "$ac_compiler -V >&5") 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }
5402
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414
5415 int
5416 main ()
5417 {
5418 #ifndef __GNUC__
5419        choke me
5420 #endif
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   ac_compiler_gnu=yes
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448         ac_compiler_gnu=no
5449 fi
5450
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5453
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5457 GXX=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CXXFLAGS=${CXXFLAGS+set}
5459 ac_save_CXXFLAGS=$CXXFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cxx_g+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5466    ac_cxx_werror_flag=yes
5467    ac_cv_prog_cxx_g=no
5468    CXXFLAGS="-g"
5469    cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475
5476 int
5477 main ()
5478 {
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_compile") 2>conftest.er1
5492   ac_status=$?
5493   grep -v '^ *+' conftest.er1 >conftest.err
5494   rm -f conftest.er1
5495   cat conftest.err >&5
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } && {
5498          test -z "$ac_cxx_werror_flag" ||
5499          test ! -s conftest.err
5500        } && test -s conftest.$ac_objext; then
5501   ac_cv_prog_cxx_g=yes
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506         CXXFLAGS=""
5507       cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529   (eval "$ac_compile") 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } && {
5536          test -z "$ac_cxx_werror_flag" ||
5537          test ! -s conftest.err
5538        } && test -s conftest.$ac_objext; then
5539   :
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5545          CXXFLAGS="-g"
5546          cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552
5553 int
5554 main ()
5555 {
5556
5557   ;
5558   return 0;
5559 }
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565   *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568   (eval "$ac_compile") 2>conftest.er1
5569   ac_status=$?
5570   grep -v '^ *+' conftest.er1 >conftest.err
5571   rm -f conftest.er1
5572   cat conftest.err >&5
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } && {
5575          test -z "$ac_cxx_werror_flag" ||
5576          test ! -s conftest.err
5577        } && test -s conftest.$ac_objext; then
5578   ac_cv_prog_cxx_g=yes
5579 else
5580   echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583
5584 fi
5585
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594 fi
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5597 if test "$ac_test_CXXFLAGS" = set; then
5598   CXXFLAGS=$ac_save_CXXFLAGS
5599 elif test $ac_cv_prog_cxx_g = yes; then
5600   if test "$GXX" = yes; then
5601     CXXFLAGS="-g -O2"
5602   else
5603     CXXFLAGS="-g"
5604   fi
5605 else
5606   if test "$GXX" = yes; then
5607     CXXFLAGS="-O2"
5608   else
5609     CXXFLAGS=
5610   fi
5611 fi
5612 ac_ext=cpp
5613 ac_cpp='$CXXCPP $CPPFLAGS'
5614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5617
5618 depcc="$CXX"  am_compiler_list=
5619
5620 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5621 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5626   # We make a subdir and do the tests there.  Otherwise we can end up
5627   # making bogus files that we don't know about and never remove.  For
5628   # instance it was reported that on HP-UX the gcc test will end up
5629   # making a dummy file named `D' -- because `-MD' means `put the output
5630   # in D'.
5631   mkdir conftest.dir
5632   # Copy depcomp to subdir because otherwise we won't find it if we're
5633   # using a relative directory.
5634   cp "$am_depcomp" conftest.dir
5635   cd conftest.dir
5636   # We will build objects and dependencies in a subdirectory because
5637   # it helps to detect inapplicable dependency modes.  For instance
5638   # both Tru64's cc and ICC support -MD to output dependencies as a
5639   # side effect of compilation, but ICC will put the dependencies in
5640   # the current directory while Tru64 will put them in the object
5641   # directory.
5642   mkdir sub
5643
5644   am_cv_CXX_dependencies_compiler_type=none
5645   if test "$am_compiler_list" = ""; then
5646      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5647   fi
5648   for depmode in $am_compiler_list; do
5649     # Setup a source with many dependencies, because some compilers
5650     # like to wrap large dependency lists on column 80 (with \), and
5651     # we should not choose a depcomp mode which is confused by this.
5652     #
5653     # We need to recreate these files for each test, as the compiler may
5654     # overwrite some of them when testing with obscure command lines.
5655     # This happens at least with the AIX C compiler.
5656     : > sub/conftest.c
5657     for i in 1 2 3 4 5 6; do
5658       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5659       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5660       # Solaris 8's {/usr,}/bin/sh.
5661       touch sub/conftst$i.h
5662     done
5663     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5664
5665     case $depmode in
5666     nosideeffect)
5667       # after this tag, mechanisms are not by side-effect, so they'll
5668       # only be used when explicitly requested
5669       if test "x$enable_dependency_tracking" = xyes; then
5670         continue
5671       else
5672         break
5673       fi
5674       ;;
5675     none) break ;;
5676     esac
5677     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5678     # mode.  It turns out that the SunPro C++ compiler does not properly
5679     # handle `-M -o', and we need to detect this.
5680     if depmode=$depmode \
5681        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5682        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5684          >/dev/null 2>conftest.err &&
5685        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5686        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5688        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689       # icc doesn't choke on unknown options, it will just issue warnings
5690       # or remarks (even with -Werror).  So we grep stderr for any message
5691       # that says an option was ignored or not supported.
5692       # When given -MP, icc 7.0 and 7.1 complain thusly:
5693       #   icc: Command line warning: ignoring option '-M'; no argument required
5694       # The diagnosis changed in icc 8.0:
5695       #   icc: Command line remark: option '-MP' not supported
5696       if (grep 'ignoring option' conftest.err ||
5697           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698         am_cv_CXX_dependencies_compiler_type=$depmode
5699         break
5700       fi
5701     fi
5702   done
5703
5704   cd ..
5705   rm -rf conftest.dir
5706 else
5707   am_cv_CXX_dependencies_compiler_type=none
5708 fi
5709
5710 fi
5711 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5712 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5713 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5714
5715  if
5716   test "x$enable_dependency_tracking" != xno \
5717   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718   am__fastdepCXX_TRUE=
5719   am__fastdepCXX_FALSE='#'
5720 else
5721   am__fastdepCXX_TRUE='#'
5722   am__fastdepCXX_FALSE=
5723 fi
5724
5725
5726
5727
5728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730     (test "X$CXX" != "Xg++"))) ; then
5731   ac_ext=cpp
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5738 if test -z "$CXXCPP"; then
5739   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742       # Double quotes because CXXCPP needs to be expanded
5743     for CXXCPP in "$CXX -E" "/lib/cpp"
5744     do
5745       ac_preproc_ok=false
5746 for ac_cxx_preproc_warn_flag in '' yes
5747 do
5748   # Use a header file that comes with gcc, so configuring glibc
5749   # with a fresh cross-compiler works.
5750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751   # <limits.h> exists even on freestanding compilers.
5752   # On the NeXT, cc -E runs the code through the compiler's parser,
5753   # not just through cpp. "Syntax error" is here to catch this case.
5754   cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h.  */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h.  */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765                      Syntax error
5766 _ACEOF
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 case "(($ac_try" in
5769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770   *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774   ac_status=$?
5775   grep -v '^ *+' conftest.er1 >conftest.err
5776   rm -f conftest.er1
5777   cat conftest.err >&5
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } >/dev/null && {
5780          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781          test ! -s conftest.err
5782        }; then
5783   :
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788   # Broken: fails on valid input.
5789 continue
5790 fi
5791
5792 rm -f conftest.err conftest.$ac_ext
5793
5794   # OK, works on sane cases.  Now check whether nonexistent headers
5795   # can be detected and how.
5796   cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h.  */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h.  */
5802 #include <ac_nonexistent.h>
5803 _ACEOF
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5805 case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } >/dev/null && {
5817          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818          test ! -s conftest.err
5819        }; then
5820   # Broken: success on invalid input.
5821 continue
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826   # Passes both tests.
5827 ac_preproc_ok=:
5828 break
5829 fi
5830
5831 rm -f conftest.err conftest.$ac_ext
5832
5833 done
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then
5837   break
5838 fi
5839
5840     done
5841     ac_cv_prog_CXXCPP=$CXXCPP
5842
5843 fi
5844   CXXCPP=$ac_cv_prog_CXXCPP
5845 else
5846   ac_cv_prog_CXXCPP=$CXXCPP
5847 fi
5848 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849 echo "${ECHO_T}$CXXCPP" >&6; }
5850 ac_preproc_ok=false
5851 for ac_cxx_preproc_warn_flag in '' yes
5852 do
5853   # Use a header file that comes with gcc, so configuring glibc
5854   # with a fresh cross-compiler works.
5855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856   # <limits.h> exists even on freestanding compilers.
5857   # On the NeXT, cc -E runs the code through the compiler's parser,
5858   # not just through cpp. "Syntax error" is here to catch this case.
5859   cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865 #ifdef __STDC__
5866 # include <limits.h>
5867 #else
5868 # include <assert.h>
5869 #endif
5870                      Syntax error
5871 _ACEOF
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5873 case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } >/dev/null && {
5885          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886          test ! -s conftest.err
5887        }; then
5888   :
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893   # Broken: fails on valid input.
5894 continue
5895 fi
5896
5897 rm -f conftest.err conftest.$ac_ext
5898
5899   # OK, works on sane cases.  Now check whether nonexistent headers
5900   # can be detected and how.
5901   cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 #include <ac_nonexistent.h>
5908 _ACEOF
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null && {
5922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923          test ! -s conftest.err
5924        }; then
5925   # Broken: success on invalid input.
5926 continue
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931   # Passes both tests.
5932 ac_preproc_ok=:
5933 break
5934 fi
5935
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5942   :
5943 else
5944   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947 See \`config.log' for more details." >&2;}
5948    { (exit 1); exit 1; }; }
5949 fi
5950
5951 ac_ext=cpp
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956
5957 fi
5958
5959
5960 ac_ext=f
5961 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964 if test -n "$ac_tool_prefix"; then
5965   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
5966   do
5967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_prog_F77+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   if test -n "$F77"; then
5975   ac_cv_prog_F77="$F77" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 F77=$ac_cv_prog_F77
5995 if test -n "$F77"; then
5996   { echo "$as_me:$LINENO: result: $F77" >&5
5997 echo "${ECHO_T}$F77" >&6; }
5998 else
5999   { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004     test -n "$F77" && break
6005   done
6006 fi
6007 if test -z "$F77"; then
6008   ac_ct_F77=$F77
6009   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
6010 do
6011   # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   if test -n "$ac_ct_F77"; then
6019   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026   for ac_exec_ext in '' $ac_executable_extensions; do
6027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028     ac_cv_prog_ac_ct_F77="$ac_prog"
6029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039 if test -n "$ac_ct_F77"; then
6040   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041 echo "${ECHO_T}$ac_ct_F77" >&6; }
6042 else
6043   { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6046
6047
6048   test -n "$ac_ct_F77" && break
6049 done
6050
6051   if test "x$ac_ct_F77" = x; then
6052     F77=""
6053   else
6054     case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057 whose name does not start with the host triplet.  If you think this
6058 configuration is useful to you, please write to autoconf@gnu.org." >&5
6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet.  If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064     F77=$ac_ct_F77
6065   fi
6066 fi
6067
6068
6069 # Provide some information about the compiler.
6070 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6071 ac_compiler=`set X $ac_compile; echo $2`
6072 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }
6082 { (ac_try="$ac_compiler -v >&5"
6083 case "(($ac_try" in
6084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085   *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088   (eval "$ac_compiler -v >&5") 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }
6092 { (ac_try="$ac_compiler -V >&5"
6093 case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098   (eval "$ac_compiler -V >&5") 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }
6102 rm -f a.out
6103
6104 # If we don't use `.F' as extension, the preprocessor is not run on the
6105 # input file.  (Note that this only needs to work for GNU compilers.)
6106 ac_save_ext=$ac_ext
6107 ac_ext=F
6108 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6110 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   cat >conftest.$ac_ext <<_ACEOF
6114       program main
6115 #ifndef __GNUC__
6116        choke me
6117 #endif
6118
6119       end
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125   *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128   (eval "$ac_compile") 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } && {
6135          test -z "$ac_f77_werror_flag" ||
6136          test ! -s conftest.err
6137        } && test -s conftest.$ac_objext; then
6138   ac_compiler_gnu=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143         ac_compiler_gnu=no
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6148
6149 fi
6150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6152 ac_ext=$ac_save_ext
6153 ac_test_FFLAGS=${FFLAGS+set}
6154 ac_save_FFLAGS=$FFLAGS
6155 FFLAGS=
6156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_f77_g+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   FFLAGS=-g
6162 cat >conftest.$ac_ext <<_ACEOF
6163       program main
6164
6165       end
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174   (eval "$ac_compile") 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } && {
6181          test -z "$ac_f77_werror_flag" ||
6182          test ! -s conftest.err
6183        } && test -s conftest.$ac_objext; then
6184   ac_cv_prog_f77_g=yes
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189         ac_cv_prog_f77_g=no
6190 fi
6191
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193
6194 fi
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6197 if test "$ac_test_FFLAGS" = set; then
6198   FFLAGS=$ac_save_FFLAGS
6199 elif test $ac_cv_prog_f77_g = yes; then
6200   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6201     FFLAGS="-g -O2"
6202   else
6203     FFLAGS="-g"
6204   fi
6205 else
6206   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6207     FFLAGS="-O2"
6208   else
6209     FFLAGS=
6210   fi
6211 fi
6212
6213 G77=`test $ac_compiler_gnu = yes && echo yes`
6214 ac_ext=c
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
6220
6221
6222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6223
6224 # find the maximum length of command line arguments
6225 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6226 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6227 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230     i=0
6231   teststring="ABCD"
6232
6233   case $build_os in
6234   msdosdjgpp*)
6235     # On DJGPP, this test can blow up pretty badly due to problems in libc
6236     # (any single argument exceeding 2000 bytes causes a buffer overrun
6237     # during glob expansion).  Even if it were fixed, the result of this
6238     # check would be larger than it should be.
6239     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6240     ;;
6241
6242   gnu*)
6243     # Under GNU Hurd, this test is not required because there is
6244     # no limit to the length of command line arguments.
6245     # Libtool will interpret -1 as no limit whatsoever
6246     lt_cv_sys_max_cmd_len=-1;
6247     ;;
6248
6249   cygwin* | mingw*)
6250     # On Win9x/ME, this test blows up -- it succeeds, but takes
6251     # about 5 minutes as the teststring grows exponentially.
6252     # Worse, since 9x/ME are not pre-emptively multitasking,
6253     # you end up with a "frozen" computer, even though with patience
6254     # the test eventually succeeds (with a max line length of 256k).
6255     # Instead, let's just punt: use the minimum linelength reported by
6256     # all of the supported platforms: 8192 (on NT/2K/XP).
6257     lt_cv_sys_max_cmd_len=8192;
6258     ;;
6259
6260   amigaos*)
6261     # On AmigaOS with pdksh, this test takes hours, literally.
6262     # So we just punt and use a minimum line length of 8192.
6263     lt_cv_sys_max_cmd_len=8192;
6264     ;;
6265
6266   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6267     # This has been around since 386BSD, at least.  Likely further.
6268     if test -x /sbin/sysctl; then
6269       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6270     elif test -x /usr/sbin/sysctl; then
6271       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6272     else
6273       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6274     fi
6275     # And add a safety zone
6276     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6277     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6278     ;;
6279
6280   interix*)
6281     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6282     lt_cv_sys_max_cmd_len=196608
6283     ;;
6284
6285   osf*)
6286     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6287     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6288     # nice to cause kernel panics so lets avoid the loop below.
6289     # First set a reasonable default.
6290     lt_cv_sys_max_cmd_len=16384
6291     #
6292     if test -x /sbin/sysconfig; then
6293       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6294         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6295       esac
6296     fi
6297     ;;
6298   sco3.2v5*)
6299     lt_cv_sys_max_cmd_len=102400
6300     ;;
6301   sysv5* | sco5v6* | sysv4.2uw2*)
6302     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6303     if test -n "$kargmax"; then
6304       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6305     else
6306       lt_cv_sys_max_cmd_len=32768
6307     fi
6308     ;;
6309   *)
6310     # If test is not a shell built-in, we'll probably end up computing a
6311     # maximum length that is only half of the actual maximum length, but
6312     # we can't tell.
6313     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6314     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6315                = "XX$teststring") >/dev/null 2>&1 &&
6316             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6317             lt_cv_sys_max_cmd_len=$new_result &&
6318             test $i != 17 # 1/2 MB should be enough
6319     do
6320       i=`expr $i + 1`
6321       teststring=$teststring$teststring
6322     done
6323     teststring=
6324     # Add a significant safety factor because C++ compilers can tack on massive
6325     # amounts of additional arguments before passing them to the linker.
6326     # It appears as though 1/2 is a usable value.
6327     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6328     ;;
6329   esac
6330
6331 fi
6332
6333 if test -n $lt_cv_sys_max_cmd_len ; then
6334   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6335 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: none" >&5
6338 echo "${ECHO_T}none" >&6; }
6339 fi
6340
6341
6342
6343
6344 # Check for command to grab the raw symbol name followed by C symbol from nm.
6345 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6346 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350
6351 # These are sane defaults that work on at least a few old systems.
6352 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6353
6354 # Character class describing NM global symbol codes.
6355 symcode='[BCDEGRST]'
6356
6357 # Regexp to match symbols that can be accessed directly from C.
6358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6359
6360 # Transform an extracted symbol line into a proper C declaration
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6362
6363 # Transform an extracted symbol line into symbol name and symbol address
6364 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'"
6365
6366 # Define system-specific variables.
6367 case $host_os in
6368 aix*)
6369   symcode='[BCDT]'
6370   ;;
6371 cygwin* | mingw* | pw32*)
6372   symcode='[ABCDGISTW]'
6373   ;;
6374 hpux*) # Its linker distinguishes data from code symbols
6375   if test "$host_cpu" = ia64; then
6376     symcode='[ABCDEGRST]'
6377   fi
6378   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6379   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'"
6380   ;;
6381 linux* | k*bsd*-gnu)
6382   if test "$host_cpu" = ia64; then
6383     symcode='[ABCDGIRSTW]'
6384     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6385     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'"
6386   fi
6387   ;;
6388 irix* | nonstopux*)
6389   symcode='[BCDEGRST]'
6390   ;;
6391 osf*)
6392   symcode='[BCDEGQRST]'
6393   ;;
6394 solaris*)
6395   symcode='[BDRT]'
6396   ;;
6397 sco3.2v5*)
6398   symcode='[DT]'
6399   ;;
6400 sysv4.2uw2*)
6401   symcode='[DT]'
6402   ;;
6403 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6404   symcode='[ABDT]'
6405   ;;
6406 sysv4)
6407   symcode='[DFNSTU]'
6408   ;;
6409 esac
6410
6411 # Handle CRLF in mingw tool chain
6412 opt_cr=
6413 case $build_os in
6414 mingw*)
6415   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6416   ;;
6417 esac
6418
6419 # If we're using GNU nm, then use its standard symbol codes.
6420 case `$NM -V 2>&1` in
6421 *GNU* | *'with BFD'*)
6422   symcode='[ABCDGIRSTW]' ;;
6423 esac
6424
6425 # Try without a prefix undercore, then with it.
6426 for ac_symprfx in "" "_"; do
6427
6428   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6429   symxfrm="\\1 $ac_symprfx\\2 \\2"
6430
6431   # Write the raw and C identifiers.
6432   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6433
6434   # Check to see that the pipe works correctly.
6435   pipe_works=no
6436
6437   rm -f conftest*
6438   cat > conftest.$ac_ext <<EOF
6439 #ifdef __cplusplus
6440 extern "C" {
6441 #endif
6442 char nm_test_var;
6443 void nm_test_func(){}
6444 #ifdef __cplusplus
6445 }
6446 #endif
6447 int main(){nm_test_var='a';nm_test_func();return(0);}
6448 EOF
6449
6450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451   (eval $ac_compile) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; then
6455     # Now try to grab the symbols.
6456     nlist=conftest.nm
6457     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6458   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } && test -s "$nlist"; then
6462       # Try sorting and uniquifying the output.
6463       if sort "$nlist" | uniq > "$nlist"T; then
6464         mv -f "$nlist"T "$nlist"
6465       else
6466         rm -f "$nlist"T
6467       fi
6468
6469       # Make sure that we snagged all the symbols we need.
6470       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6471         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6472           cat <<EOF > conftest.$ac_ext
6473 #ifdef __cplusplus
6474 extern "C" {
6475 #endif
6476
6477 EOF
6478           # Now generate the symbol file.
6479           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6480
6481           cat <<EOF >> conftest.$ac_ext
6482 #if defined (__STDC__) && __STDC__
6483 # define lt_ptr_t void *
6484 #else
6485 # define lt_ptr_t char *
6486 # define const
6487 #endif
6488
6489 /* The mapping between symbol names and symbols. */
6490 const struct {
6491   const char *name;
6492   lt_ptr_t address;
6493 }
6494 lt_preloaded_symbols[] =
6495 {
6496 EOF
6497           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6498           cat <<\EOF >> conftest.$ac_ext
6499   {0, (lt_ptr_t) 0}
6500 };
6501
6502 #ifdef __cplusplus
6503 }
6504 #endif
6505 EOF
6506           # Now try linking the two files.
6507           mv conftest.$ac_objext conftstm.$ac_objext
6508           lt_save_LIBS="$LIBS"
6509           lt_save_CFLAGS="$CFLAGS"
6510           LIBS="conftstm.$ac_objext"
6511           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6512           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513   (eval $ac_link) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6517             pipe_works=yes
6518           fi
6519           LIBS="$lt_save_LIBS"
6520           CFLAGS="$lt_save_CFLAGS"
6521         else
6522           echo "cannot find nm_test_func in $nlist" >&5
6523         fi
6524       else
6525         echo "cannot find nm_test_var in $nlist" >&5
6526       fi
6527     else
6528       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6529     fi
6530   else
6531     echo "$progname: failed program was:" >&5
6532     cat conftest.$ac_ext >&5
6533   fi
6534   rm -f conftest* conftst*
6535
6536   # Do not use the global_symbol_pipe unless it works.
6537   if test "$pipe_works" = yes; then
6538     break
6539   else
6540     lt_cv_sys_global_symbol_pipe=
6541   fi
6542 done
6543
6544 fi
6545
6546 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6547   lt_cv_sys_global_symbol_to_cdecl=
6548 fi
6549 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6550   { echo "$as_me:$LINENO: result: failed" >&5
6551 echo "${ECHO_T}failed" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: ok" >&5
6554 echo "${ECHO_T}ok" >&6; }
6555 fi
6556
6557 { echo "$as_me:$LINENO: checking for objdir" >&5
6558 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6559 if test "${lt_cv_objdir+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   rm -f .libs 2>/dev/null
6563 mkdir .libs 2>/dev/null
6564 if test -d .libs; then
6565   lt_cv_objdir=.libs
6566 else
6567   # MS-DOS does not allow filenames that begin with a dot.
6568   lt_cv_objdir=_libs
6569 fi
6570 rmdir .libs 2>/dev/null
6571 fi
6572 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6573 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6574 objdir=$lt_cv_objdir
6575
6576
6577
6578
6579
6580 case $host_os in
6581 aix3*)
6582   # AIX sometimes has problems with the GCC collect2 program.  For some
6583   # reason, if we set the COLLECT_NAMES environment variable, the problems
6584   # vanish in a puff of smoke.
6585   if test "X${COLLECT_NAMES+set}" != Xset; then
6586     COLLECT_NAMES=
6587     export COLLECT_NAMES
6588   fi
6589   ;;
6590 esac
6591
6592 # Sed substitution that helps us do robust quoting.  It backslashifies
6593 # metacharacters that are still active within double-quoted strings.
6594 Xsed='sed -e 1s/^X//'
6595 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6596
6597 # Same as above, but do not quote variable references.
6598 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6599
6600 # Sed substitution to delay expansion of an escaped shell variable in a
6601 # double_quote_subst'ed string.
6602 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6603
6604 # Sed substitution to avoid accidental globbing in evaled expressions
6605 no_glob_subst='s/\*/\\\*/g'
6606
6607 # Constants:
6608 rm="rm -f"
6609
6610 # Global variables:
6611 default_ofile=libtool
6612 can_build_shared=yes
6613
6614 # All known linkers require a `.a' archive for static linking (except MSVC,
6615 # which needs '.lib').
6616 libext=a
6617 ltmain="$ac_aux_dir/ltmain.sh"
6618 ofile="$default_ofile"
6619 with_gnu_ld="$lt_cv_prog_gnu_ld"
6620
6621 if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -n "$AR"; then
6630   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
6650 if test -n "$AR"; then
6651   { echo "$as_me:$LINENO: result: $AR" >&5
6652 echo "${ECHO_T}$AR" >&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_AR"; then
6661   ac_ct_AR=$AR
6662   # Extract the first word of "ar", so it can be a program name with args.
6663 set dummy ar; 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_AR+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$ac_ct_AR"; then
6670   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR=$ac_cv_prog_ac_ct_AR
6690 if test -n "$ac_ct_AR"; then
6691   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6692 echo "${ECHO_T}$ac_ct_AR" >&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_AR" = x; then
6699     AR="false"
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     AR=$ac_ct_AR
6712   fi
6713 else
6714   AR="$ac_cv_prog_AR"
6715 fi
6716
6717 if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$RANLIB"; then
6726   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
6746 if test -n "$RANLIB"; then
6747   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6748 echo "${ECHO_T}$RANLIB" >&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_RANLIB"; then
6757   ac_ct_RANLIB=$RANLIB
6758   # Extract the first word of "ranlib", so it can be a program name with args.
6759 set dummy ranlib; 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_RANLIB+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_RANLIB"; then
6766   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6786 if test -n "$ac_ct_RANLIB"; then
6787   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6788 echo "${ECHO_T}$ac_ct_RANLIB" >&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_RANLIB" = x; then
6795     RANLIB=":"
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     RANLIB=$ac_ct_RANLIB
6808   fi
6809 else
6810   RANLIB="$ac_cv_prog_RANLIB"
6811 fi
6812
6813 if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_STRIP+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$STRIP"; then
6822   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843   { echo "$as_me:$LINENO: result: $STRIP" >&5
6844 echo "${ECHO_T}$STRIP" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_STRIP"; then
6853   ac_ct_STRIP=$STRIP
6854   # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$ac_ct_STRIP"; then
6862   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_ac_ct_STRIP="strip"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6884 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_STRIP" = x; then
6891     STRIP=":"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet.  If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet.  If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     STRIP=$ac_ct_STRIP
6904   fi
6905 else
6906   STRIP="$ac_cv_prog_STRIP"
6907 fi
6908
6909
6910 old_CC="$CC"
6911 old_CFLAGS="$CFLAGS"
6912
6913 # Set sane defaults for various variables
6914 test -z "$AR" && AR=ar
6915 test -z "$AR_FLAGS" && AR_FLAGS=cru
6916 test -z "$AS" && AS=as
6917 test -z "$CC" && CC=cc
6918 test -z "$LTCC" && LTCC=$CC
6919 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6920 test -z "$DLLTOOL" && DLLTOOL=dlltool
6921 test -z "$LD" && LD=ld
6922 test -z "$LN_S" && LN_S="ln -s"
6923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6924 test -z "$NM" && NM=nm
6925 test -z "$SED" && SED=sed
6926 test -z "$OBJDUMP" && OBJDUMP=objdump
6927 test -z "$RANLIB" && RANLIB=:
6928 test -z "$STRIP" && STRIP=:
6929 test -z "$ac_objext" && ac_objext=o
6930
6931 # Determine commands to create old-style static archives.
6932 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6933 old_postinstall_cmds='chmod 644 $oldlib'
6934 old_postuninstall_cmds=
6935
6936 if test -n "$RANLIB"; then
6937   case $host_os in
6938   openbsd*)
6939     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6940     ;;
6941   *)
6942     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6943     ;;
6944   esac
6945   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6946 fi
6947
6948 for cc_temp in $compiler""; do
6949   case $cc_temp in
6950     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6951     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6952     \-*) ;;
6953     *) break;;
6954   esac
6955 done
6956 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6957
6958
6959 # Only perform the check for file, if the check method requires it
6960 case $deplibs_check_method in
6961 file_magic*)
6962   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6963     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6964 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6965 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   case $MAGIC_CMD in
6969 [\\/*] |  ?:[\\/]*)
6970   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6971   ;;
6972 *)
6973   lt_save_MAGIC_CMD="$MAGIC_CMD"
6974   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6975   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6976   for ac_dir in $ac_dummy; do
6977     IFS="$lt_save_ifs"
6978     test -z "$ac_dir" && ac_dir=.
6979     if test -f $ac_dir/${ac_tool_prefix}file; then
6980       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6981       if test -n "$file_magic_test_file"; then
6982         case $deplibs_check_method in
6983         "file_magic "*)
6984           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6985           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6987             $EGREP "$file_magic_regex" > /dev/null; then
6988             :
6989           else
6990             cat <<EOF 1>&2
6991
6992 *** Warning: the command libtool uses to detect shared libraries,
6993 *** $file_magic_cmd, produces output that libtool cannot recognize.
6994 *** The result is that libtool may fail to recognize shared libraries
6995 *** as such.  This will affect the creation of libtool libraries that
6996 *** depend on shared libraries, but programs linked with such libtool
6997 *** libraries will work regardless of this problem.  Nevertheless, you
6998 *** may want to report the problem to your system manager and/or to
6999 *** bug-libtool@gnu.org
7000
7001 EOF
7002           fi ;;
7003         esac
7004       fi
7005       break
7006     fi
7007   done
7008   IFS="$lt_save_ifs"
7009   MAGIC_CMD="$lt_save_MAGIC_CMD"
7010   ;;
7011 esac
7012 fi
7013
7014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7015 if test -n "$MAGIC_CMD"; then
7016   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7017 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7018 else
7019   { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7021 fi
7022
7023 if test -z "$lt_cv_path_MAGIC_CMD"; then
7024   if test -n "$ac_tool_prefix"; then
7025     { echo "$as_me:$LINENO: checking for file" >&5
7026 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   case $MAGIC_CMD in
7031 [\\/*] |  ?:[\\/]*)
7032   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7033   ;;
7034 *)
7035   lt_save_MAGIC_CMD="$MAGIC_CMD"
7036   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7037   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7038   for ac_dir in $ac_dummy; do
7039     IFS="$lt_save_ifs"
7040     test -z "$ac_dir" && ac_dir=.
7041     if test -f $ac_dir/file; then
7042       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7043       if test -n "$file_magic_test_file"; then
7044         case $deplibs_check_method in
7045         "file_magic "*)
7046           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7047           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7048           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7049             $EGREP "$file_magic_regex" > /dev/null; then
7050             :
7051           else
7052             cat <<EOF 1>&2
7053
7054 *** Warning: the command libtool uses to detect shared libraries,
7055 *** $file_magic_cmd, produces output that libtool cannot recognize.
7056 *** The result is that libtool may fail to recognize shared libraries
7057 *** as such.  This will affect the creation of libtool libraries that
7058 *** depend on shared libraries, but programs linked with such libtool
7059 *** libraries will work regardless of this problem.  Nevertheless, you
7060 *** may want to report the problem to your system manager and/or to
7061 *** bug-libtool@gnu.org
7062
7063 EOF
7064           fi ;;
7065         esac
7066       fi
7067       break
7068     fi
7069   done
7070   IFS="$lt_save_ifs"
7071   MAGIC_CMD="$lt_save_MAGIC_CMD"
7072   ;;
7073 esac
7074 fi
7075
7076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077 if test -n "$MAGIC_CMD"; then
7078   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7079 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7080 else
7081   { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083 fi
7084
7085   else
7086     MAGIC_CMD=:
7087   fi
7088 fi
7089
7090   fi
7091   ;;
7092 esac
7093
7094 enable_dlopen=no
7095 enable_win32_dll=no
7096
7097 # Check whether --enable-libtool-lock was given.
7098 if test "${enable_libtool_lock+set}" = set; then
7099   enableval=$enable_libtool_lock;
7100 fi
7101
7102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7103
7104
7105 # Check whether --with-pic was given.
7106 if test "${with_pic+set}" = set; then
7107   withval=$with_pic; pic_mode="$withval"
7108 else
7109   pic_mode=default
7110 fi
7111
7112 test -z "$pic_mode" && pic_mode=default
7113
7114 # Use C for the default configuration in the libtool script
7115 tagname=
7116 lt_save_CC="$CC"
7117 ac_ext=c
7118 ac_cpp='$CPP $CPPFLAGS'
7119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122
7123
7124 # Source file extension for C test sources.
7125 ac_ext=c
7126
7127 # Object file extension for compiled C test sources.
7128 objext=o
7129 objext=$objext
7130
7131 # Code to be used in simple compile tests
7132 lt_simple_compile_test_code="int some_variable = 0;\n"
7133
7134 # Code to be used in simple link tests
7135 lt_simple_link_test_code='int main(){return(0);}\n'
7136
7137
7138 # If no C compiler was specified, use CC.
7139 LTCC=${LTCC-"$CC"}
7140
7141 # If no C compiler flags were specified, use CFLAGS.
7142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7143
7144 # Allow CC to be a program name with arguments.
7145 compiler=$CC
7146
7147
7148 # save warnings/boilerplate of simple test code
7149 ac_outfile=conftest.$ac_objext
7150 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7152 _lt_compiler_boilerplate=`cat conftest.err`
7153 $rm conftest*
7154
7155 ac_outfile=conftest.$ac_objext
7156 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7158 _lt_linker_boilerplate=`cat conftest.err`
7159 $rm conftest*
7160
7161
7162
7163 lt_prog_compiler_no_builtin_flag=
7164
7165 if test "$GCC" = yes; then
7166   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7167
7168
7169 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7170 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7171 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   lt_cv_prog_compiler_rtti_exceptions=no
7175   ac_outfile=conftest.$ac_objext
7176    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7177    lt_compiler_flag="-fno-rtti -fno-exceptions"
7178    # Insert the option either (1) after the last *FLAGS variable, or
7179    # (2) before a word containing "conftest.", or (3) at the end.
7180    # Note that $ac_compile itself does not contain backslashes and begins
7181    # with a dollar sign (not a hyphen), so the echo should work correctly.
7182    # The option is referenced via a variable to avoid confusing sed.
7183    lt_compile=`echo "$ac_compile" | $SED \
7184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7186    -e 's:$: $lt_compiler_flag:'`
7187    (eval echo "\"\$as_me:7187: $lt_compile\"" >&5)
7188    (eval "$lt_compile" 2>conftest.err)
7189    ac_status=$?
7190    cat conftest.err >&5
7191    echo "$as_me:7191: \$? = $ac_status" >&5
7192    if (exit $ac_status) && test -s "$ac_outfile"; then
7193      # The compiler can only warn and ignore the option if not recognized
7194      # So say no if there are warnings other than the usual output.
7195      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7196      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7197      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7198        lt_cv_prog_compiler_rtti_exceptions=yes
7199      fi
7200    fi
7201    $rm conftest*
7202
7203 fi
7204 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7205 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7206
7207 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7208     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7209 else
7210     :
7211 fi
7212
7213 fi
7214
7215 lt_prog_compiler_wl=
7216 lt_prog_compiler_pic=
7217 lt_prog_compiler_static=
7218
7219 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7220 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7221
7222   if test "$GCC" = yes; then
7223     lt_prog_compiler_wl='-Wl,'
7224     lt_prog_compiler_static='-static'
7225
7226     case $host_os in
7227       aix*)
7228       # All AIX code is PIC.
7229       if test "$host_cpu" = ia64; then
7230         # AIX 5 now supports IA64 processor
7231         lt_prog_compiler_static='-Bstatic'
7232       fi
7233       ;;
7234
7235     amigaos*)
7236       # FIXME: we need at least 68020 code to build shared libraries, but
7237       # adding the `-m68020' flag to GCC prevents building anything better,
7238       # like `-m68040'.
7239       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7240       ;;
7241
7242     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7243       # PIC is the default for these OSes.
7244       ;;
7245
7246     mingw* | pw32* | os2*)
7247       # This hack is so that the source file can tell whether it is being
7248       # built for inclusion in a dll (and should export symbols for example).
7249       lt_prog_compiler_pic='-DDLL_EXPORT'
7250       ;;
7251
7252     darwin* | rhapsody*)
7253       # PIC is the default on this platform
7254       # Common symbols not allowed in MH_DYLIB files
7255       lt_prog_compiler_pic='-fno-common'
7256       ;;
7257
7258     interix3*)
7259       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7260       # Instead, we relocate shared libraries at runtime.
7261       ;;
7262
7263     msdosdjgpp*)
7264       # Just because we use GCC doesn't mean we suddenly get shared libraries
7265       # on systems that don't support them.
7266       lt_prog_compiler_can_build_shared=no
7267       enable_shared=no
7268       ;;
7269
7270     sysv4*MP*)
7271       if test -d /usr/nec; then
7272         lt_prog_compiler_pic=-Kconform_pic
7273       fi
7274       ;;
7275
7276     hpux*)
7277       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7278       # not for PA HP-UX.
7279       case $host_cpu in
7280       hppa*64*|ia64*)
7281         # +Z the default
7282         ;;
7283       *)
7284         lt_prog_compiler_pic='-fPIC'
7285         ;;
7286       esac
7287       ;;
7288
7289     *)
7290       lt_prog_compiler_pic='-fPIC'
7291       ;;
7292     esac
7293   else
7294     # PORTME Check for flag to pass linker flags through the system compiler.
7295     case $host_os in
7296     aix*)
7297       lt_prog_compiler_wl='-Wl,'
7298       if test "$host_cpu" = ia64; then
7299         # AIX 5 now supports IA64 processor
7300         lt_prog_compiler_static='-Bstatic'
7301       else
7302         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7303       fi
7304       ;;
7305       darwin*)
7306         # PIC is the default on this platform
7307         # Common symbols not allowed in MH_DYLIB files
7308        case $cc_basename in
7309          xlc*)
7310          lt_prog_compiler_pic='-qnocommon'
7311          lt_prog_compiler_wl='-Wl,'
7312          ;;
7313        esac
7314        ;;
7315
7316     mingw* | pw32* | os2*)
7317       # This hack is so that the source file can tell whether it is being
7318       # built for inclusion in a dll (and should export symbols for example).
7319       lt_prog_compiler_pic='-DDLL_EXPORT'
7320       ;;
7321
7322     hpux9* | hpux10* | hpux11*)
7323       lt_prog_compiler_wl='-Wl,'
7324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7325       # not for PA HP-UX.
7326       case $host_cpu in
7327       hppa*64*|ia64*)
7328         # +Z the default
7329         ;;
7330       *)
7331         lt_prog_compiler_pic='+Z'
7332         ;;
7333       esac
7334       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7335       lt_prog_compiler_static='${wl}-a ${wl}archive'
7336       ;;
7337
7338     irix5* | irix6* | nonstopux*)
7339       lt_prog_compiler_wl='-Wl,'
7340       # PIC (with -KPIC) is the default.
7341       lt_prog_compiler_static='-non_shared'
7342       ;;
7343
7344     newsos6)
7345       lt_prog_compiler_pic='-KPIC'
7346       lt_prog_compiler_static='-Bstatic'
7347       ;;
7348
7349     linux* | k*bsd*-gnu)
7350       case $cc_basename in
7351       icc* | ecc*)
7352         lt_prog_compiler_wl='-Wl,'
7353         lt_prog_compiler_pic='-KPIC'
7354         lt_prog_compiler_static='-static'
7355         ;;
7356       pgcc* | pgf77* | pgf90* | pgf95*)
7357         # Portland Group compilers (*not* the Pentium gcc compiler,
7358         # which looks to be a dead project)
7359         lt_prog_compiler_wl='-Wl,'
7360         lt_prog_compiler_pic='-fpic'
7361         lt_prog_compiler_static='-Bstatic'
7362         ;;
7363       ccc*)
7364         lt_prog_compiler_wl='-Wl,'
7365         # All Alpha code is PIC.
7366         lt_prog_compiler_static='-non_shared'
7367         ;;
7368       esac
7369       ;;
7370
7371     osf3* | osf4* | osf5*)
7372       lt_prog_compiler_wl='-Wl,'
7373       # All OSF/1 code is PIC.
7374       lt_prog_compiler_static='-non_shared'
7375       ;;
7376
7377     solaris*)
7378       lt_prog_compiler_pic='-KPIC'
7379       lt_prog_compiler_static='-Bstatic'
7380       case $cc_basename in
7381       f77* | f90* | f95*)
7382         lt_prog_compiler_wl='-Qoption ld ';;
7383       *)
7384         lt_prog_compiler_wl='-Wl,';;
7385       esac
7386       ;;
7387
7388     sunos4*)
7389       lt_prog_compiler_wl='-Qoption ld '
7390       lt_prog_compiler_pic='-PIC'
7391       lt_prog_compiler_static='-Bstatic'
7392       ;;
7393
7394     sysv4 | sysv4.2uw2* | sysv4.3*)
7395       lt_prog_compiler_wl='-Wl,'
7396       lt_prog_compiler_pic='-KPIC'
7397       lt_prog_compiler_static='-Bstatic'
7398       ;;
7399
7400     sysv4*MP*)
7401       if test -d /usr/nec ;then
7402         lt_prog_compiler_pic='-Kconform_pic'
7403         lt_prog_compiler_static='-Bstatic'
7404       fi
7405       ;;
7406
7407     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7408       lt_prog_compiler_wl='-Wl,'
7409       lt_prog_compiler_pic='-KPIC'
7410       lt_prog_compiler_static='-Bstatic'
7411       ;;
7412
7413     unicos*)
7414       lt_prog_compiler_wl='-Wl,'
7415       lt_prog_compiler_can_build_shared=no
7416       ;;
7417
7418     uts4*)
7419       lt_prog_compiler_pic='-pic'
7420       lt_prog_compiler_static='-Bstatic'
7421       ;;
7422
7423     *)
7424       lt_prog_compiler_can_build_shared=no
7425       ;;
7426     esac
7427   fi
7428
7429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7430 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7431
7432 #
7433 # Check to make sure the PIC flag actually works.
7434 #
7435 if test -n "$lt_prog_compiler_pic"; then
7436
7437 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7439 if test "${lt_prog_compiler_pic_works+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   lt_prog_compiler_pic_works=no
7443   ac_outfile=conftest.$ac_objext
7444    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7445    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7446    # Insert the option either (1) after the last *FLAGS variable, or
7447    # (2) before a word containing "conftest.", or (3) at the end.
7448    # Note that $ac_compile itself does not contain backslashes and begins
7449    # with a dollar sign (not a hyphen), so the echo should work correctly.
7450    # The option is referenced via a variable to avoid confusing sed.
7451    lt_compile=`echo "$ac_compile" | $SED \
7452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7454    -e 's:$: $lt_compiler_flag:'`
7455    (eval echo "\"\$as_me:7455: $lt_compile\"" >&5)
7456    (eval "$lt_compile" 2>conftest.err)
7457    ac_status=$?
7458    cat conftest.err >&5
7459    echo "$as_me:7459: \$? = $ac_status" >&5
7460    if (exit $ac_status) && test -s "$ac_outfile"; then
7461      # The compiler can only warn and ignore the option if not recognized
7462      # So say no if there are warnings other than the usual output.
7463      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7464      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7465      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7466        lt_prog_compiler_pic_works=yes
7467      fi
7468    fi
7469    $rm conftest*
7470
7471 fi
7472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7473 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7474
7475 if test x"$lt_prog_compiler_pic_works" = xyes; then
7476     case $lt_prog_compiler_pic in
7477      "" | " "*) ;;
7478      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7479      esac
7480 else
7481     lt_prog_compiler_pic=
7482      lt_prog_compiler_can_build_shared=no
7483 fi
7484
7485 fi
7486 case $host_os in
7487   # For platforms which do not support PIC, -DPIC is meaningless:
7488   *djgpp*)
7489     lt_prog_compiler_pic=
7490     ;;
7491   *)
7492     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7493     ;;
7494 esac
7495
7496 #
7497 # Check to make sure the static flag actually works.
7498 #
7499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7500 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7501 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7502 if test "${lt_prog_compiler_static_works+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   lt_prog_compiler_static_works=no
7506    save_LDFLAGS="$LDFLAGS"
7507    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7508    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7509    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7510      # The linker can only warn and ignore the option if not recognized
7511      # So say no if there are warnings
7512      if test -s conftest.err; then
7513        # Append any errors to the config.log.
7514        cat conftest.err 1>&5
7515        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7516        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7517        if diff conftest.exp conftest.er2 >/dev/null; then
7518          lt_prog_compiler_static_works=yes
7519        fi
7520      else
7521        lt_prog_compiler_static_works=yes
7522      fi
7523    fi
7524    $rm conftest*
7525    LDFLAGS="$save_LDFLAGS"
7526
7527 fi
7528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7529 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7530
7531 if test x"$lt_prog_compiler_static_works" = xyes; then
7532     :
7533 else
7534     lt_prog_compiler_static=
7535 fi
7536
7537
7538 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   lt_cv_prog_compiler_c_o=no
7544    $rm -r conftest 2>/dev/null
7545    mkdir conftest
7546    cd conftest
7547    mkdir out
7548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7549
7550    lt_compiler_flag="-o out/conftest2.$ac_objext"
7551    # Insert the option either (1) after the last *FLAGS variable, or
7552    # (2) before a word containing "conftest.", or (3) at the end.
7553    # Note that $ac_compile itself does not contain backslashes and begins
7554    # with a dollar sign (not a hyphen), so the echo should work correctly.
7555    lt_compile=`echo "$ac_compile" | $SED \
7556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7558    -e 's:$: $lt_compiler_flag:'`
7559    (eval echo "\"\$as_me:7559: $lt_compile\"" >&5)
7560    (eval "$lt_compile" 2>out/conftest.err)
7561    ac_status=$?
7562    cat out/conftest.err >&5
7563    echo "$as_me:7563: \$? = $ac_status" >&5
7564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7565    then
7566      # The compiler can only warn and ignore the option if not recognized
7567      # So say no if there are warnings
7568      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7571        lt_cv_prog_compiler_c_o=yes
7572      fi
7573    fi
7574    chmod u+w . 2>&5
7575    $rm conftest*
7576    # SGI C++ compiler will create directory out/ii_files/ for
7577    # template instantiation
7578    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7579    $rm out/* && rmdir out
7580    cd ..
7581    rmdir conftest
7582    $rm conftest*
7583
7584 fi
7585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7587
7588
7589 hard_links="nottested"
7590 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7591   # do not overwrite the value of need_locks provided by the user
7592   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7594   hard_links=yes
7595   $rm conftest*
7596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7597   touch conftest.a
7598   ln conftest.a conftest.b 2>&5 || hard_links=no
7599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7600   { echo "$as_me:$LINENO: result: $hard_links" >&5
7601 echo "${ECHO_T}$hard_links" >&6; }
7602   if test "$hard_links" = no; then
7603     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7605     need_locks=warn
7606   fi
7607 else
7608   need_locks=no
7609 fi
7610
7611 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7613
7614   runpath_var=
7615   allow_undefined_flag=
7616   enable_shared_with_static_runtimes=no
7617   archive_cmds=
7618   archive_expsym_cmds=
7619   old_archive_From_new_cmds=
7620   old_archive_from_expsyms_cmds=
7621   export_dynamic_flag_spec=
7622   whole_archive_flag_spec=
7623   thread_safe_flag_spec=
7624   hardcode_libdir_flag_spec=
7625   hardcode_libdir_flag_spec_ld=
7626   hardcode_libdir_separator=
7627   hardcode_direct=no
7628   hardcode_minus_L=no
7629   hardcode_shlibpath_var=unsupported
7630   link_all_deplibs=unknown
7631   hardcode_automatic=no
7632   module_cmds=
7633   module_expsym_cmds=
7634   always_export_symbols=no
7635   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7636   # include_expsyms should be a list of space-separated symbols to be *always*
7637   # included in the symbol list
7638   include_expsyms=
7639   # exclude_expsyms can be an extended regexp of symbols to exclude
7640   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7641   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7642   # as well as any symbol that contains `d'.
7643   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7644   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7645   # platforms (ab)use it in PIC code, but their linkers get confused if
7646   # the symbol is explicitly referenced.  Since portable code cannot
7647   # rely on this symbol name, it's probably fine to never include it in
7648   # preloaded symbol tables.
7649   extract_expsyms_cmds=
7650   # Just being paranoid about ensuring that cc_basename is set.
7651   for cc_temp in $compiler""; do
7652   case $cc_temp in
7653     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7654     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7655     \-*) ;;
7656     *) break;;
7657   esac
7658 done
7659 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7660
7661   case $host_os in
7662   cygwin* | mingw* | pw32*)
7663     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7664     # When not using gcc, we currently assume that we are using
7665     # Microsoft Visual C++.
7666     if test "$GCC" != yes; then
7667       with_gnu_ld=no
7668     fi
7669     ;;
7670   interix*)
7671     # we just hope/assume this is gcc and not c89 (= MSVC++)
7672     with_gnu_ld=yes
7673     ;;
7674   openbsd*)
7675     with_gnu_ld=no
7676     ;;
7677   esac
7678
7679   ld_shlibs=yes
7680   if test "$with_gnu_ld" = yes; then
7681     # If archive_cmds runs LD, not CC, wlarc should be empty
7682     wlarc='${wl}'
7683
7684     # Set some defaults for GNU ld with shared library support. These
7685     # are reset later if shared libraries are not supported. Putting them
7686     # here allows them to be overridden if necessary.
7687     runpath_var=LD_RUN_PATH
7688     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7689     export_dynamic_flag_spec='${wl}--export-dynamic'
7690     # ancient GNU ld didn't support --whole-archive et. al.
7691     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7692         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7693       else
7694         whole_archive_flag_spec=
7695     fi
7696     supports_anon_versioning=no
7697     case `$LD -v 2>/dev/null` in
7698       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7699       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7700       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7701       *\ 2.11.*) ;; # other 2.11 versions
7702       *) supports_anon_versioning=yes ;;
7703     esac
7704
7705     # See if GNU ld supports shared libraries.
7706     case $host_os in
7707     aix3* | aix4* | aix5*)
7708       # On AIX/PPC, the GNU linker is very broken
7709       if test "$host_cpu" != ia64; then
7710         ld_shlibs=no
7711         cat <<EOF 1>&2
7712
7713 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7714 *** to be unable to reliably create shared libraries on AIX.
7715 *** Therefore, libtool is disabling shared libraries support.  If you
7716 *** really care for shared libraries, you may want to modify your PATH
7717 *** so that a non-GNU linker is found, and then restart.
7718
7719 EOF
7720       fi
7721       ;;
7722
7723     amigaos*)
7724       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)'
7725       hardcode_libdir_flag_spec='-L$libdir'
7726       hardcode_minus_L=yes
7727
7728       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7729       # that the semantics of dynamic libraries on AmigaOS, at least up
7730       # to version 4, is to share data among multiple programs linked
7731       # with the same dynamic library.  Since this doesn't match the
7732       # behavior of shared libraries on other platforms, we can't use
7733       # them.
7734       ld_shlibs=no
7735       ;;
7736
7737     beos*)
7738       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7739         allow_undefined_flag=unsupported
7740         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7741         # support --undefined.  This deserves some investigation.  FIXME
7742         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7743       else
7744         ld_shlibs=no
7745       fi
7746       ;;
7747
7748     cygwin* | mingw* | pw32*)
7749       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7750       # as there is no search path for DLLs.
7751       hardcode_libdir_flag_spec='-L$libdir'
7752       allow_undefined_flag=unsupported
7753       always_export_symbols=no
7754       enable_shared_with_static_runtimes=yes
7755       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7756
7757       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7759         # If the export-symbols file already is a .def file (1st line
7760         # is EXPORTS), use it as is; otherwise, prepend...
7761         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7762           cp $export_symbols $output_objdir/$soname.def;
7763         else
7764           echo EXPORTS > $output_objdir/$soname.def;
7765           cat $export_symbols >> $output_objdir/$soname.def;
7766         fi~
7767         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7768       else
7769         ld_shlibs=no
7770       fi
7771       ;;
7772
7773     interix3*)
7774       hardcode_direct=no
7775       hardcode_shlibpath_var=no
7776       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7777       export_dynamic_flag_spec='${wl}-E'
7778       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7779       # Instead, shared libraries are loaded at an image base (0x10000000 by
7780       # default) and relocated if they conflict, which is a slow very memory
7781       # consuming and fragmenting process.  To avoid this, we pick a random,
7782       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7783       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7784       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7785       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'
7786       ;;
7787
7788     linux* | k*bsd*-gnu)
7789       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7790         tmp_addflag=
7791         case $cc_basename,$host_cpu in
7792         pgcc*)                          # Portland Group C compiler
7793           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'
7794           tmp_addflag=' $pic_flag'
7795           ;;
7796         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7797           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'
7798           tmp_addflag=' $pic_flag -Mnomain' ;;
7799         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7800           tmp_addflag=' -i_dynamic' ;;
7801         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7802           tmp_addflag=' -i_dynamic -nofor_main' ;;
7803         ifc* | ifort*)                  # Intel Fortran compiler
7804           tmp_addflag=' -nofor_main' ;;
7805         esac
7806         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807
7808         if test $supports_anon_versioning = yes; then
7809           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7810   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7811   $echo "local: *; };" >> $output_objdir/$libname.ver~
7812           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7813         fi
7814         link_all_deplibs=no
7815       else
7816         ld_shlibs=no
7817       fi
7818       ;;
7819
7820     netbsd* | netbsdelf*-gnu)
7821       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7822         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7823         wlarc=
7824       else
7825         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7826         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7827       fi
7828       ;;
7829
7830     solaris*)
7831       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7832         ld_shlibs=no
7833         cat <<EOF 1>&2
7834
7835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7836 *** create shared libraries on Solaris systems.  Therefore, libtool
7837 *** is disabling shared libraries support.  We urge you to upgrade GNU
7838 *** binutils to release 2.9.1 or newer.  Another option is to modify
7839 *** your PATH or compiler configuration so that the native linker is
7840 *** used, and then restart.
7841
7842 EOF
7843       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7844         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846       else
7847         ld_shlibs=no
7848       fi
7849       ;;
7850
7851     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7852       case `$LD -v 2>&1` in
7853         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7854         ld_shlibs=no
7855         cat <<_LT_EOF 1>&2
7856
7857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7858 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7859 *** is disabling shared libraries support.  We urge you to upgrade GNU
7860 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7861 *** your PATH or compiler configuration so that the native linker is
7862 *** used, and then restart.
7863
7864 _LT_EOF
7865         ;;
7866         *)
7867           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7868             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7869             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7870             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7871           else
7872             ld_shlibs=no
7873           fi
7874         ;;
7875       esac
7876       ;;
7877
7878     sunos4*)
7879       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7880       wlarc=
7881       hardcode_direct=yes
7882       hardcode_shlibpath_var=no
7883       ;;
7884
7885     *)
7886       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7887         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7889       else
7890         ld_shlibs=no
7891       fi
7892       ;;
7893     esac
7894
7895     if test "$ld_shlibs" = no; then
7896       runpath_var=
7897       hardcode_libdir_flag_spec=
7898       export_dynamic_flag_spec=
7899       whole_archive_flag_spec=
7900     fi
7901   else
7902     # PORTME fill in a description of your system's linker (not GNU ld)
7903     case $host_os in
7904     aix3*)
7905       allow_undefined_flag=unsupported
7906       always_export_symbols=yes
7907       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'
7908       # Note: this linker hardcodes the directories in LIBPATH if there
7909       # are no directories specified by -L.
7910       hardcode_minus_L=yes
7911       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7912         # Neither direct hardcoding nor static linking is supported with a
7913         # broken collect2.
7914         hardcode_direct=unsupported
7915       fi
7916       ;;
7917
7918     aix4* | aix5*)
7919       if test "$host_cpu" = ia64; then
7920         # On IA64, the linker does run time linking by default, so we don't
7921         # have to do anything special.
7922         aix_use_runtimelinking=no
7923         exp_sym_flag='-Bexport'
7924         no_entry_flag=""
7925       else
7926         # If we're using GNU nm, then we don't want the "-C" option.
7927         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7928         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7929           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'
7930         else
7931           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'
7932         fi
7933         aix_use_runtimelinking=no
7934
7935         # Test if we are trying to use run time linking or normal
7936         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7937         # need to do runtime linking.
7938         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7939           for ld_flag in $LDFLAGS; do
7940           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7941             aix_use_runtimelinking=yes
7942             break
7943           fi
7944           done
7945           ;;
7946         esac
7947
7948         exp_sym_flag='-bexport'
7949         no_entry_flag='-bnoentry'
7950       fi
7951
7952       # When large executables or shared objects are built, AIX ld can
7953       # have problems creating the table of contents.  If linking a library
7954       # or program results in "error TOC overflow" add -mminimal-toc to
7955       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7956       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7957
7958       archive_cmds=''
7959       hardcode_direct=yes
7960       hardcode_libdir_separator=':'
7961       link_all_deplibs=yes
7962
7963       if test "$GCC" = yes; then
7964         case $host_os in aix4.[012]|aix4.[012].*)
7965         # We only want to do this on AIX 4.2 and lower, the check
7966         # below for broken collect2 doesn't work under 4.3+
7967           collect2name=`${CC} -print-prog-name=collect2`
7968           if test -f "$collect2name" && \
7969            strings "$collect2name" | grep resolve_lib_name >/dev/null
7970           then
7971           # We have reworked collect2
7972           hardcode_direct=yes
7973           else
7974           # We have old collect2
7975           hardcode_direct=unsupported
7976           # It fails to find uninstalled libraries when the uninstalled
7977           # path is not listed in the libpath.  Setting hardcode_minus_L
7978           # to unsupported forces relinking
7979           hardcode_minus_L=yes
7980           hardcode_libdir_flag_spec='-L$libdir'
7981           hardcode_libdir_separator=
7982           fi
7983           ;;
7984         esac
7985         shared_flag='-shared'
7986         if test "$aix_use_runtimelinking" = yes; then
7987           shared_flag="$shared_flag "'${wl}-G'
7988         fi
7989       else
7990         # not using gcc
7991         if test "$host_cpu" = ia64; then
7992         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7993         # chokes on -Wl,-G. The following line is correct:
7994           shared_flag='-G'
7995         else
7996           if test "$aix_use_runtimelinking" = yes; then
7997             shared_flag='${wl}-G'
7998           else
7999             shared_flag='${wl}-bM:SRE'
8000           fi
8001         fi
8002       fi
8003
8004       # It seems that -bexpall does not export symbols beginning with
8005       # underscore (_), so it is better to generate a list of symbols to export.
8006       always_export_symbols=yes
8007       if test "$aix_use_runtimelinking" = yes; then
8008         # Warning - without using the other runtime loading flags (-brtl),
8009         # -berok will link without error, but may produce a broken library.
8010         allow_undefined_flag='-berok'
8011        # Determine the default libpath from the value encoded in an empty executable.
8012        cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018
8019 int
8020 main ()
8021 {
8022
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (ac_try="$ac_link"
8029 case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_link") 2>conftest.er1
8035   ac_status=$?
8036   grep -v '^ *+' conftest.er1 >conftest.err
8037   rm -f conftest.er1
8038   cat conftest.err >&5
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } && {
8041          test -z "$ac_c_werror_flag" ||
8042          test ! -s conftest.err
8043        } && test -s conftest$ac_exeext &&
8044        $as_test_x conftest$ac_exeext; then
8045
8046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8047 }'`
8048 # Check for a 64-bit object if we didn't find anything.
8049 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; }
8050 }'`; fi
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055
8056 fi
8057
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059       conftest$ac_exeext conftest.$ac_ext
8060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8061
8062        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8063         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"
8064        else
8065         if test "$host_cpu" = ia64; then
8066           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8067           allow_undefined_flag="-z nodefs"
8068           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"
8069         else
8070          # Determine the default libpath from the value encoded in an empty executable.
8071          cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077
8078 int
8079 main ()
8080 {
8081
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8088 case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093   (eval "$ac_link") 2>conftest.er1
8094   ac_status=$?
8095   grep -v '^ *+' conftest.er1 >conftest.err
8096   rm -f conftest.er1
8097   cat conftest.err >&5
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } && {
8100          test -z "$ac_c_werror_flag" ||
8101          test ! -s conftest.err
8102        } && test -s conftest$ac_exeext &&
8103        $as_test_x conftest$ac_exeext; then
8104
8105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8106 }'`
8107 # Check for a 64-bit object if we didn't find anything.
8108 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; }
8109 }'`; fi
8110 else
8111   echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114
8115 fi
8116
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118       conftest$ac_exeext conftest.$ac_ext
8119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8120
8121          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8122           # Warning - without using the other run time loading flags,
8123           # -berok will link without error, but may produce a broken library.
8124           no_undefined_flag=' ${wl}-bernotok'
8125           allow_undefined_flag=' ${wl}-berok'
8126           # Exported symbols can be pulled into shared objects from archives
8127           whole_archive_flag_spec='$convenience'
8128           archive_cmds_need_lc=yes
8129           # This is similar to how AIX traditionally builds its shared libraries.
8130           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'
8131         fi
8132       fi
8133       ;;
8134
8135     amigaos*)
8136       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)'
8137       hardcode_libdir_flag_spec='-L$libdir'
8138       hardcode_minus_L=yes
8139       # see comment about different semantics on the GNU ld section
8140       ld_shlibs=no
8141       ;;
8142
8143     bsdi[45]*)
8144       export_dynamic_flag_spec=-rdynamic
8145       ;;
8146
8147     cygwin* | mingw* | pw32*)
8148       # When not using gcc, we currently assume that we are using
8149       # Microsoft Visual C++.
8150       # hardcode_libdir_flag_spec is actually meaningless, as there is
8151       # no search path for DLLs.
8152       hardcode_libdir_flag_spec=' '
8153       allow_undefined_flag=unsupported
8154       # Tell ltmain to make .lib files, not .a files.
8155       libext=lib
8156       # Tell ltmain to make .dll files, not .so files.
8157       shrext_cmds=".dll"
8158       # FIXME: Setting linknames here is a bad hack.
8159       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8160       # The linker will automatically build a .lib file if we build a DLL.
8161       old_archive_From_new_cmds='true'
8162       # FIXME: Should let the user specify the lib program.
8163       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8164       fix_srcfile_path='`cygpath -w "$srcfile"`'
8165       enable_shared_with_static_runtimes=yes
8166       ;;
8167
8168     darwin* | rhapsody*)
8169       case $host_os in
8170         rhapsody* | darwin1.[012])
8171          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8172          ;;
8173        *) # Darwin 1.3 on
8174          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8175            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8176          else
8177            case ${MACOSX_DEPLOYMENT_TARGET} in
8178              10.[012])
8179                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8180                ;;
8181              10.*)
8182                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8183                ;;
8184            esac
8185          fi
8186          ;;
8187       esac
8188       archive_cmds_need_lc=no
8189       hardcode_direct=no
8190       hardcode_automatic=yes
8191       hardcode_shlibpath_var=unsupported
8192       whole_archive_flag_spec=''
8193       link_all_deplibs=yes
8194     if test "$GCC" = yes ; then
8195         output_verbose_link_cmd='echo'
8196         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8197       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8198       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8199       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}'
8200       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}'
8201     else
8202       case $cc_basename in
8203         xlc*)
8204          output_verbose_link_cmd='echo'
8205          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8206          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8207           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8208          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}'
8209           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}'
8210           ;;
8211        *)
8212          ld_shlibs=no
8213           ;;
8214       esac
8215     fi
8216       ;;
8217
8218     dgux*)
8219       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8220       hardcode_libdir_flag_spec='-L$libdir'
8221       hardcode_shlibpath_var=no
8222       ;;
8223
8224     freebsd1*)
8225       ld_shlibs=no
8226       ;;
8227
8228     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8229     # support.  Future versions do this automatically, but an explicit c++rt0.o
8230     # does not break anything, and helps significantly (at the cost of a little
8231     # extra space).
8232     freebsd2.2*)
8233       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8234       hardcode_libdir_flag_spec='-R$libdir'
8235       hardcode_direct=yes
8236       hardcode_shlibpath_var=no
8237       ;;
8238
8239     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8240     freebsd2*)
8241       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8242       hardcode_direct=yes
8243       hardcode_minus_L=yes
8244       hardcode_shlibpath_var=no
8245       ;;
8246
8247     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8248     freebsd* | dragonfly*)
8249       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8250       hardcode_libdir_flag_spec='-R$libdir'
8251       hardcode_direct=yes
8252       hardcode_shlibpath_var=no
8253       ;;
8254
8255     hpux9*)
8256       if test "$GCC" = yes; then
8257         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'
8258       else
8259         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'
8260       fi
8261       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8262       hardcode_libdir_separator=:
8263       hardcode_direct=yes
8264
8265       # hardcode_minus_L: Not really in the search PATH,
8266       # but as the default location of the library.
8267       hardcode_minus_L=yes
8268       export_dynamic_flag_spec='${wl}-E'
8269       ;;
8270
8271     hpux10*)
8272       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8273         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8274       else
8275         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8276       fi
8277       if test "$with_gnu_ld" = no; then
8278         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8279         hardcode_libdir_separator=:
8280
8281         hardcode_direct=yes
8282         export_dynamic_flag_spec='${wl}-E'
8283
8284         # hardcode_minus_L: Not really in the search PATH,
8285         # but as the default location of the library.
8286         hardcode_minus_L=yes
8287       fi
8288       ;;
8289
8290     hpux11*)
8291       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8292         case $host_cpu in
8293         hppa*64*)
8294           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8295           ;;
8296         ia64*)
8297           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8298           ;;
8299         *)
8300           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8301           ;;
8302         esac
8303       else
8304         case $host_cpu in
8305         hppa*64*)
8306           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8307           ;;
8308         ia64*)
8309           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8310           ;;
8311         *)
8312           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8313           ;;
8314         esac
8315       fi
8316       if test "$with_gnu_ld" = no; then
8317         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8318         hardcode_libdir_separator=:
8319
8320         case $host_cpu in
8321         hppa*64*|ia64*)
8322           hardcode_libdir_flag_spec_ld='+b $libdir'
8323           hardcode_direct=no
8324           hardcode_shlibpath_var=no
8325           ;;
8326         *)
8327           hardcode_direct=yes
8328           export_dynamic_flag_spec='${wl}-E'
8329
8330           # hardcode_minus_L: Not really in the search PATH,
8331           # but as the default location of the library.
8332           hardcode_minus_L=yes
8333           ;;
8334         esac
8335       fi
8336       ;;
8337
8338     irix5* | irix6* | nonstopux*)
8339       if test "$GCC" = yes; then
8340         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'
8341       else
8342         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'
8343         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8344       fi
8345       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346       hardcode_libdir_separator=:
8347       link_all_deplibs=yes
8348       ;;
8349
8350     netbsd* | netbsdelf*-gnu)
8351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8352         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8353       else
8354         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8355       fi
8356       hardcode_libdir_flag_spec='-R$libdir'
8357       hardcode_direct=yes
8358       hardcode_shlibpath_var=no
8359       ;;
8360
8361     newsos6)
8362       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363       hardcode_direct=yes
8364       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8365       hardcode_libdir_separator=:
8366       hardcode_shlibpath_var=no
8367       ;;
8368
8369     openbsd*)
8370       hardcode_direct=yes
8371       hardcode_shlibpath_var=no
8372       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8373         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8374         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8375         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8376         export_dynamic_flag_spec='${wl}-E'
8377       else
8378        case $host_os in
8379          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8380            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8381            hardcode_libdir_flag_spec='-R$libdir'
8382            ;;
8383          *)
8384            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8385            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8386            ;;
8387        esac
8388       fi
8389       ;;
8390
8391     os2*)
8392       hardcode_libdir_flag_spec='-L$libdir'
8393       hardcode_minus_L=yes
8394       allow_undefined_flag=unsupported
8395       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'
8396       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8397       ;;
8398
8399     osf3*)
8400       if test "$GCC" = yes; then
8401         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8402         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'
8403       else
8404         allow_undefined_flag=' -expect_unresolved \*'
8405         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'
8406       fi
8407       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408       hardcode_libdir_separator=:
8409       ;;
8410
8411     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8412       if test "$GCC" = yes; then
8413         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8414         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'
8415         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416       else
8417         allow_undefined_flag=' -expect_unresolved \*'
8418         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'
8419         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8420         $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'
8421
8422         # Both c and cxx compiler support -rpath directly
8423         hardcode_libdir_flag_spec='-rpath $libdir'
8424       fi
8425       hardcode_libdir_separator=:
8426       ;;
8427
8428     solaris*)
8429       no_undefined_flag=' -z text'
8430       if test "$GCC" = yes; then
8431         wlarc='${wl}'
8432         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8434           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8435       else
8436         wlarc=''
8437         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8438         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8439         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8440       fi
8441       hardcode_libdir_flag_spec='-R$libdir'
8442       hardcode_shlibpath_var=no
8443       case $host_os in
8444       solaris2.[0-5] | solaris2.[0-5].*) ;;
8445       *)
8446         # The compiler driver will combine linker options so we
8447         # cannot just pass the convience library names through
8448         # without $wl, iff we do not link with $LD.
8449         # Luckily, gcc supports the same syntax we need for Sun Studio.
8450         # Supported since Solaris 2.6 (maybe 2.5.1?)
8451         case $wlarc in
8452         '')
8453           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8454         *)
8455           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' ;;
8456         esac ;;
8457       esac
8458       link_all_deplibs=yes
8459       ;;
8460
8461     sunos4*)
8462       if test "x$host_vendor" = xsequent; then
8463         # Use $CC to link under sequent, because it throws in some extra .o
8464         # files that make .init and .fini sections work.
8465         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8466       else
8467         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8468       fi
8469       hardcode_libdir_flag_spec='-L$libdir'
8470       hardcode_direct=yes
8471       hardcode_minus_L=yes
8472       hardcode_shlibpath_var=no
8473       ;;
8474
8475     sysv4)
8476       case $host_vendor in
8477         sni)
8478           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479           hardcode_direct=yes # is this really true???
8480         ;;
8481         siemens)
8482           ## LD is ld it makes a PLAMLIB
8483           ## CC just makes a GrossModule.
8484           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8485           reload_cmds='$CC -r -o $output$reload_objs'
8486           hardcode_direct=no
8487         ;;
8488         motorola)
8489           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8491         ;;
8492       esac
8493       runpath_var='LD_RUN_PATH'
8494       hardcode_shlibpath_var=no
8495       ;;
8496
8497     sysv4.3*)
8498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499       hardcode_shlibpath_var=no
8500       export_dynamic_flag_spec='-Bexport'
8501       ;;
8502
8503     sysv4*MP*)
8504       if test -d /usr/nec; then
8505         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506         hardcode_shlibpath_var=no
8507         runpath_var=LD_RUN_PATH
8508         hardcode_runpath_var=yes
8509         ld_shlibs=yes
8510       fi
8511       ;;
8512
8513     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8514       no_undefined_flag='${wl}-z,text'
8515       archive_cmds_need_lc=no
8516       hardcode_shlibpath_var=no
8517       runpath_var='LD_RUN_PATH'
8518
8519       if test "$GCC" = yes; then
8520         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8521         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8522       else
8523         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8524         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8525       fi
8526       ;;
8527
8528     sysv5* | sco3.2v5* | sco5v6*)
8529       # Note: We can NOT use -z defs as we might desire, because we do not
8530       # link with -lc, and that would cause any symbols used from libc to
8531       # always be unresolved, which means just about no library would
8532       # ever link correctly.  If we're not using GNU ld we use -z text
8533       # though, which does catch some bad symbols but isn't as heavy-handed
8534       # as -z defs.
8535       no_undefined_flag='${wl}-z,text'
8536       allow_undefined_flag='${wl}-z,nodefs'
8537       archive_cmds_need_lc=no
8538       hardcode_shlibpath_var=no
8539       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8540       hardcode_libdir_separator=':'
8541       link_all_deplibs=yes
8542       export_dynamic_flag_spec='${wl}-Bexport'
8543       runpath_var='LD_RUN_PATH'
8544
8545       if test "$GCC" = yes; then
8546         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8548       else
8549         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8551       fi
8552       ;;
8553
8554     uts4*)
8555       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8556       hardcode_libdir_flag_spec='-L$libdir'
8557       hardcode_shlibpath_var=no
8558       ;;
8559
8560     *)
8561       ld_shlibs=no
8562       ;;
8563     esac
8564   fi
8565
8566 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8567 echo "${ECHO_T}$ld_shlibs" >&6; }
8568 test "$ld_shlibs" = no && can_build_shared=no
8569
8570 #
8571 # Do we need to explicitly link libc?
8572 #
8573 case "x$archive_cmds_need_lc" in
8574 x|xyes)
8575   # Assume -lc should be added
8576   archive_cmds_need_lc=yes
8577
8578   if test "$enable_shared" = yes && test "$GCC" = yes; then
8579     case $archive_cmds in
8580     *'~'*)
8581       # FIXME: we may have to deal with multi-command sequences.
8582       ;;
8583     '$CC '*)
8584       # Test whether the compiler implicitly links with -lc since on some
8585       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8586       # to ld, don't add -lc before -lgcc.
8587       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8588 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8589       $rm conftest*
8590       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8591
8592       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593   (eval $ac_compile) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } 2>conftest.err; then
8597         soname=conftest
8598         lib=conftest
8599         libobjs=conftest.$ac_objext
8600         deplibs=
8601         wl=$lt_prog_compiler_wl
8602         pic_flag=$lt_prog_compiler_pic
8603         compiler_flags=-v
8604         linker_flags=-v
8605         verstring=
8606         output_objdir=.
8607         libname=conftest
8608         lt_save_allow_undefined_flag=$allow_undefined_flag
8609         allow_undefined_flag=
8610         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8611   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }
8615         then
8616           archive_cmds_need_lc=no
8617         else
8618           archive_cmds_need_lc=yes
8619         fi
8620         allow_undefined_flag=$lt_save_allow_undefined_flag
8621       else
8622         cat conftest.err 1>&5
8623       fi
8624       $rm conftest*
8625       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8626 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8627       ;;
8628     esac
8629   fi
8630   ;;
8631 esac
8632
8633 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8635 library_names_spec=
8636 libname_spec='lib$name'
8637 soname_spec=
8638 shrext_cmds=".so"
8639 postinstall_cmds=
8640 postuninstall_cmds=
8641 finish_cmds=
8642 finish_eval=
8643 shlibpath_var=
8644 shlibpath_overrides_runpath=unknown
8645 version_type=none
8646 dynamic_linker="$host_os ld.so"
8647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8648 if test "$GCC" = yes; then
8649   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8650   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8651     # if the path contains ";" then we assume it to be the separator
8652     # otherwise default to the standard path separator (i.e. ":") - it is
8653     # assumed that no part of a normal pathname contains ";" but that should
8654     # okay in the real world where ";" in dirpaths is itself problematic.
8655     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8656   else
8657     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8658   fi
8659 else
8660   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8661 fi
8662 need_lib_prefix=unknown
8663 hardcode_into_libs=no
8664
8665 # when you set need_version to no, make sure it does not cause -set_version
8666 # flags to be left without arguments
8667 need_version=unknown
8668
8669 case $host_os in
8670 aix3*)
8671   version_type=linux
8672   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8673   shlibpath_var=LIBPATH
8674
8675   # AIX 3 has no versioning support, so we append a major version to the name.
8676   soname_spec='${libname}${release}${shared_ext}$major'
8677   ;;
8678
8679 aix4* | aix5*)
8680   version_type=linux
8681   need_lib_prefix=no
8682   need_version=no
8683   hardcode_into_libs=yes
8684   if test "$host_cpu" = ia64; then
8685     # AIX 5 supports IA64
8686     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8687     shlibpath_var=LD_LIBRARY_PATH
8688   else
8689     # With GCC up to 2.95.x, collect2 would create an import file
8690     # for dependence libraries.  The import file would start with
8691     # the line `#! .'.  This would cause the generated library to
8692     # depend on `.', always an invalid library.  This was fixed in
8693     # development snapshots of GCC prior to 3.0.
8694     case $host_os in
8695       aix4 | aix4.[01] | aix4.[01].*)
8696       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8697            echo ' yes '
8698            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8699         :
8700       else
8701         can_build_shared=no
8702       fi
8703       ;;
8704     esac
8705     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8706     # soname into executable. Probably we can add versioning support to
8707     # collect2, so additional links can be useful in future.
8708     if test "$aix_use_runtimelinking" = yes; then
8709       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8710       # instead of lib<name>.a to let people know that these are not
8711       # typical AIX shared libraries.
8712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713     else
8714       # We preserve .a as extension for shared libraries through AIX4.2
8715       # and later when we are not doing run time linking.
8716       library_names_spec='${libname}${release}.a $libname.a'
8717       soname_spec='${libname}${release}${shared_ext}$major'
8718     fi
8719     shlibpath_var=LIBPATH
8720   fi
8721   ;;
8722
8723 amigaos*)
8724   library_names_spec='$libname.ixlibrary $libname.a'
8725   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8726   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'
8727   ;;
8728
8729 beos*)
8730   library_names_spec='${libname}${shared_ext}'
8731   dynamic_linker="$host_os ld.so"
8732   shlibpath_var=LIBRARY_PATH
8733   ;;
8734
8735 bsdi[45]*)
8736   version_type=linux
8737   need_version=no
8738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8739   soname_spec='${libname}${release}${shared_ext}$major'
8740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8741   shlibpath_var=LD_LIBRARY_PATH
8742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8744   # the default ld.so.conf also contains /usr/contrib/lib and
8745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8746   # libtool to hard-code these into programs
8747   ;;
8748
8749 cygwin* | mingw* | pw32*)
8750   version_type=windows
8751   shrext_cmds=".dll"
8752   need_version=no
8753   need_lib_prefix=no
8754
8755   case $GCC,$host_os in
8756   yes,cygwin* | yes,mingw* | yes,pw32*)
8757     library_names_spec='$libname.dll.a'
8758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8759     postinstall_cmds='base_file=`basename \${file}`~
8760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8761       dldir=$destdir/`dirname \$dlpath`~
8762       test -d \$dldir || mkdir -p \$dldir~
8763       $install_prog $dir/$dlname \$dldir/$dlname~
8764       chmod a+x \$dldir/$dlname'
8765     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8766       dlpath=$dir/\$dldll~
8767        $rm \$dlpath'
8768     shlibpath_overrides_runpath=yes
8769
8770     case $host_os in
8771     cygwin*)
8772       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8773       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8775       ;;
8776     mingw*)
8777       # MinGW DLLs use traditional 'lib' prefix
8778       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8779       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8780       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8781         # It is most probably a Windows format PATH printed by
8782         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8783         # path with ; separators, and with drive letters. We can handle the
8784         # drive letters (cygwin fileutils understands them), so leave them,
8785         # especially as we might pass files found there to a mingw objdump,
8786         # which wouldn't understand a cygwinified path. Ahh.
8787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8788       else
8789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8790       fi
8791       ;;
8792     pw32*)
8793       # pw32 DLLs use 'pw' prefix rather than 'lib'
8794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8795       ;;
8796     esac
8797     ;;
8798
8799   *)
8800     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8801     ;;
8802   esac
8803   dynamic_linker='Win32 ld.exe'
8804   # FIXME: first we should search . and the directory the executable is in
8805   shlibpath_var=PATH
8806   ;;
8807
8808 darwin* | rhapsody*)
8809   dynamic_linker="$host_os dyld"
8810   version_type=darwin
8811   need_lib_prefix=no
8812   need_version=no
8813   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8814   soname_spec='${libname}${release}${major}$shared_ext'
8815   shlibpath_overrides_runpath=yes
8816   shlibpath_var=DYLD_LIBRARY_PATH
8817   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8818   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8819   if test "$GCC" = yes; then
8820     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"`
8821   else
8822     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8823   fi
8824   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8825   ;;
8826
8827 dgux*)
8828   version_type=linux
8829   need_lib_prefix=no
8830   need_version=no
8831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8832   soname_spec='${libname}${release}${shared_ext}$major'
8833   shlibpath_var=LD_LIBRARY_PATH
8834   ;;
8835
8836 freebsd1*)
8837   dynamic_linker=no
8838   ;;
8839
8840 freebsd* | dragonfly*)
8841   # DragonFly does not have aout.  When/if they implement a new
8842   # versioning mechanism, adjust this.
8843   if test -x /usr/bin/objformat; then
8844     objformat=`/usr/bin/objformat`
8845   else
8846     case $host_os in
8847     freebsd[123]*) objformat=aout ;;
8848     *) objformat=elf ;;
8849     esac
8850   fi
8851   version_type=freebsd-$objformat
8852   case $version_type in
8853     freebsd-elf*)
8854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8855       need_version=no
8856       need_lib_prefix=no
8857       ;;
8858     freebsd-*)
8859       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8860       need_version=yes
8861       ;;
8862   esac
8863   shlibpath_var=LD_LIBRARY_PATH
8864   case $host_os in
8865   freebsd2*)
8866     shlibpath_overrides_runpath=yes
8867     ;;
8868   freebsd3.[01]* | freebsdelf3.[01]*)
8869     shlibpath_overrides_runpath=yes
8870     hardcode_into_libs=yes
8871     ;;
8872   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8873   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8874     shlibpath_overrides_runpath=no
8875     hardcode_into_libs=yes
8876     ;;
8877   freebsd*) # from 4.6 on
8878     shlibpath_overrides_runpath=yes
8879     hardcode_into_libs=yes
8880     ;;
8881   esac
8882   ;;
8883
8884 gnu*)
8885   version_type=linux
8886   need_lib_prefix=no
8887   need_version=no
8888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8889   soname_spec='${libname}${release}${shared_ext}$major'
8890   shlibpath_var=LD_LIBRARY_PATH
8891   hardcode_into_libs=yes
8892   ;;
8893
8894 hpux9* | hpux10* | hpux11*)
8895   # Give a soname corresponding to the major version so that dld.sl refuses to
8896   # link against other versions.
8897   version_type=sunos
8898   need_lib_prefix=no
8899   need_version=no
8900   case $host_cpu in
8901   ia64*)
8902     shrext_cmds='.so'
8903     hardcode_into_libs=yes
8904     dynamic_linker="$host_os dld.so"
8905     shlibpath_var=LD_LIBRARY_PATH
8906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908     soname_spec='${libname}${release}${shared_ext}$major'
8909     if test "X$HPUX_IA64_MODE" = X32; then
8910       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8911     else
8912       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8913     fi
8914     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915     ;;
8916    hppa*64*)
8917      shrext_cmds='.sl'
8918      hardcode_into_libs=yes
8919      dynamic_linker="$host_os dld.sl"
8920      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8921      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8922      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923      soname_spec='${libname}${release}${shared_ext}$major'
8924      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8925      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8926      ;;
8927    *)
8928     shrext_cmds='.sl'
8929     dynamic_linker="$host_os dld.sl"
8930     shlibpath_var=SHLIB_PATH
8931     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
8935   esac
8936   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8937   postinstall_cmds='chmod 555 $lib'
8938   ;;
8939
8940 interix3*)
8941   version_type=linux
8942   need_lib_prefix=no
8943   need_version=no
8944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8945   soname_spec='${libname}${release}${shared_ext}$major'
8946   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   shlibpath_overrides_runpath=no
8949   hardcode_into_libs=yes
8950   ;;
8951
8952 irix5* | irix6* | nonstopux*)
8953   case $host_os in
8954     nonstopux*) version_type=nonstopux ;;
8955     *)
8956         if test "$lt_cv_prog_gnu_ld" = yes; then
8957                 version_type=linux
8958         else
8959                 version_type=irix
8960         fi ;;
8961   esac
8962   need_lib_prefix=no
8963   need_version=no
8964   soname_spec='${libname}${release}${shared_ext}$major'
8965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8966   case $host_os in
8967   irix5* | nonstopux*)
8968     libsuff= shlibsuff=
8969     ;;
8970   *)
8971     case $LD in # libtool.m4 will add one of these switches to LD
8972     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8973       libsuff= shlibsuff= libmagic=32-bit;;
8974     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8975       libsuff=32 shlibsuff=N32 libmagic=N32;;
8976     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8977       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8978     *) libsuff= shlibsuff= libmagic=never-match;;
8979     esac
8980     ;;
8981   esac
8982   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8983   shlibpath_overrides_runpath=no
8984   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8985   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8986   hardcode_into_libs=yes
8987   ;;
8988
8989 # No shared lib support for Linux oldld, aout, or coff.
8990 linux*oldld* | linux*aout* | linux*coff*)
8991   dynamic_linker=no
8992   ;;
8993
8994 # This must be Linux ELF.
8995 linux* | k*bsd*-gnu)
8996   version_type=linux
8997   need_lib_prefix=no
8998   need_version=no
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9002   shlibpath_var=LD_LIBRARY_PATH
9003   shlibpath_overrides_runpath=no
9004   # This implies no fast_install, which is unacceptable.
9005   # Some rework will be needed to allow for fast_install
9006   # before this can be enabled.
9007   hardcode_into_libs=yes
9008
9009   # Append ld.so.conf contents to the search path
9010   if test -f /etc/ld.so.conf; then
9011     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' ' '`
9012     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9013   fi
9014
9015   # We used to test for /lib/ld.so.1 and disable shared libraries on
9016   # powerpc, because MkLinux only supported shared libraries with the
9017   # GNU dynamic linker.  Since this was broken with cross compilers,
9018   # most powerpc-linux boxes support dynamic linking these days and
9019   # people can always --disable-shared, the test was removed, and we
9020   # assume the GNU/Linux dynamic linker is in use.
9021   dynamic_linker='GNU/Linux ld.so'
9022   ;;
9023
9024 netbsdelf*-gnu)
9025   version_type=linux
9026   need_lib_prefix=no
9027   need_version=no
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9029   soname_spec='${libname}${release}${shared_ext}$major'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   shlibpath_overrides_runpath=no
9032   hardcode_into_libs=yes
9033   dynamic_linker='NetBSD ld.elf_so'
9034   ;;
9035
9036 netbsd*)
9037   version_type=sunos
9038   need_lib_prefix=no
9039   need_version=no
9040   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9042     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9043     dynamic_linker='NetBSD (a.out) ld.so'
9044   else
9045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9046     soname_spec='${libname}${release}${shared_ext}$major'
9047     dynamic_linker='NetBSD ld.elf_so'
9048   fi
9049   shlibpath_var=LD_LIBRARY_PATH
9050   shlibpath_overrides_runpath=yes
9051   hardcode_into_libs=yes
9052   ;;
9053
9054 newsos6)
9055   version_type=linux
9056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=yes
9059   ;;
9060
9061 nto-qnx*)
9062   version_type=linux
9063   need_lib_prefix=no
9064   need_version=no
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   shlibpath_var=LD_LIBRARY_PATH
9068   shlibpath_overrides_runpath=yes
9069   ;;
9070
9071 openbsd*)
9072   version_type=sunos
9073   sys_lib_dlsearch_path_spec="/usr/lib"
9074   need_lib_prefix=no
9075   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9076   case $host_os in
9077     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9078     *)                         need_version=no  ;;
9079   esac
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9084     case $host_os in
9085       openbsd2.[89] | openbsd2.[89].*)
9086         shlibpath_overrides_runpath=no
9087         ;;
9088       *)
9089         shlibpath_overrides_runpath=yes
9090         ;;
9091       esac
9092   else
9093     shlibpath_overrides_runpath=yes
9094   fi
9095   ;;
9096
9097 os2*)
9098   libname_spec='$name'
9099   shrext_cmds=".dll"
9100   need_lib_prefix=no
9101   library_names_spec='$libname${shared_ext} $libname.a'
9102   dynamic_linker='OS/2 ld.exe'
9103   shlibpath_var=LIBPATH
9104   ;;
9105
9106 osf3* | osf4* | osf5*)
9107   version_type=osf
9108   need_lib_prefix=no
9109   need_version=no
9110   soname_spec='${libname}${release}${shared_ext}$major'
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9114   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9115   ;;
9116
9117 solaris*)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   shlibpath_overrides_runpath=yes
9125   hardcode_into_libs=yes
9126   # ldd complains unless libraries are executable
9127   postinstall_cmds='chmod +x $lib'
9128   ;;
9129
9130 sunos4*)
9131   version_type=sunos
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9133   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9134   shlibpath_var=LD_LIBRARY_PATH
9135   shlibpath_overrides_runpath=yes
9136   if test "$with_gnu_ld" = yes; then
9137     need_lib_prefix=no
9138   fi
9139   need_version=yes
9140   ;;
9141
9142 sysv4 | sysv4.3*)
9143   version_type=linux
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   shlibpath_var=LD_LIBRARY_PATH
9147   case $host_vendor in
9148     sni)
9149       shlibpath_overrides_runpath=no
9150       need_lib_prefix=no
9151       export_dynamic_flag_spec='${wl}-Blargedynsym'
9152       runpath_var=LD_RUN_PATH
9153       ;;
9154     siemens)
9155       need_lib_prefix=no
9156       ;;
9157     motorola)
9158       need_lib_prefix=no
9159       need_version=no
9160       shlibpath_overrides_runpath=no
9161       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9162       ;;
9163   esac
9164   ;;
9165
9166 sysv4*MP*)
9167   if test -d /usr/nec ;then
9168     version_type=linux
9169     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9170     soname_spec='$libname${shared_ext}.$major'
9171     shlibpath_var=LD_LIBRARY_PATH
9172   fi
9173   ;;
9174
9175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9176   version_type=freebsd-elf
9177   need_lib_prefix=no
9178   need_version=no
9179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9180   soname_spec='${libname}${release}${shared_ext}$major'
9181   shlibpath_var=LD_LIBRARY_PATH
9182   hardcode_into_libs=yes
9183   if test "$with_gnu_ld" = yes; then
9184     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9185     shlibpath_overrides_runpath=no
9186   else
9187     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9188     shlibpath_overrides_runpath=yes
9189     case $host_os in
9190       sco3.2v5*)
9191         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9192         ;;
9193     esac
9194   fi
9195   sys_lib_dlsearch_path_spec='/usr/lib'
9196   ;;
9197
9198 uts4*)
9199   version_type=linux
9200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201   soname_spec='${libname}${release}${shared_ext}$major'
9202   shlibpath_var=LD_LIBRARY_PATH
9203   ;;
9204
9205 *)
9206   dynamic_linker=no
9207   ;;
9208 esac
9209 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9210 echo "${ECHO_T}$dynamic_linker" >&6; }
9211 test "$dynamic_linker" = no && can_build_shared=no
9212
9213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9214 if test "$GCC" = yes; then
9215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9216 fi
9217
9218 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9219 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9220 hardcode_action=
9221 if test -n "$hardcode_libdir_flag_spec" || \
9222    test -n "$runpath_var" || \
9223    test "X$hardcode_automatic" = "Xyes" ; then
9224
9225   # We can hardcode non-existant directories.
9226   if test "$hardcode_direct" != no &&
9227      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9228      # have to relink, otherwise we might link with an installed library
9229      # when we should be linking with a yet-to-be-installed one
9230      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9231      test "$hardcode_minus_L" != no; then
9232     # Linking always hardcodes the temporary library directory.
9233     hardcode_action=relink
9234   else
9235     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9236     hardcode_action=immediate
9237   fi
9238 else
9239   # We cannot hardcode anything, or else we can only hardcode existing
9240   # directories.
9241   hardcode_action=unsupported
9242 fi
9243 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9244 echo "${ECHO_T}$hardcode_action" >&6; }
9245
9246 if test "$hardcode_action" = relink; then
9247   # Fast installation is not supported
9248   enable_fast_install=no
9249 elif test "$shlibpath_overrides_runpath" = yes ||
9250      test "$enable_shared" = no; then
9251   # Fast installation is not necessary
9252   enable_fast_install=needless
9253 fi
9254
9255 striplib=
9256 old_striplib=
9257 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9258 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9260   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9261   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9262   { echo "$as_me:$LINENO: result: yes" >&5
9263 echo "${ECHO_T}yes" >&6; }
9264 else
9265 # FIXME - insert some real tests, host_os isn't really good enough
9266   case $host_os in
9267    darwin*)
9268        if test -n "$STRIP" ; then
9269          striplib="$STRIP -x"
9270          { echo "$as_me:$LINENO: result: yes" >&5
9271 echo "${ECHO_T}yes" >&6; }
9272        else
9273   { echo "$as_me:$LINENO: result: no" >&5
9274 echo "${ECHO_T}no" >&6; }
9275 fi
9276        ;;
9277    *)
9278   { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9280     ;;
9281   esac
9282 fi
9283
9284 if test "x$enable_dlopen" != xyes; then
9285   enable_dlopen=unknown
9286   enable_dlopen_self=unknown
9287   enable_dlopen_self_static=unknown
9288 else
9289   lt_cv_dlopen=no
9290   lt_cv_dlopen_libs=
9291
9292   case $host_os in
9293   beos*)
9294     lt_cv_dlopen="load_add_on"
9295     lt_cv_dlopen_libs=
9296     lt_cv_dlopen_self=yes
9297     ;;
9298
9299   mingw* | pw32*)
9300     lt_cv_dlopen="LoadLibrary"
9301     lt_cv_dlopen_libs=
9302    ;;
9303
9304   cygwin*)
9305     lt_cv_dlopen="dlopen"
9306     lt_cv_dlopen_libs=
9307    ;;
9308
9309   darwin*)
9310   # if libdl is installed we need to link against it
9311     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-ldl  $LIBS"
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324
9325 /* Override any GCC internal prototype to avoid an error.
9326    Use char because int might match the return type of a GCC
9327    builtin and then its argument prototype would still apply.  */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char dlopen ();
9332 int
9333 main ()
9334 {
9335 return dlopen ();
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_link") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest$ac_exeext &&
9357        $as_test_x conftest$ac_exeext; then
9358   ac_cv_lib_dl_dlopen=yes
9359 else
9360   echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363         ac_cv_lib_dl_dlopen=no
9364 fi
9365
9366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9367       conftest$ac_exeext conftest.$ac_ext
9368 LIBS=$ac_check_lib_save_LIBS
9369 fi
9370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9372 if test $ac_cv_lib_dl_dlopen = yes; then
9373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9374 else
9375
9376     lt_cv_dlopen="dyld"
9377     lt_cv_dlopen_libs=
9378     lt_cv_dlopen_self=yes
9379
9380 fi
9381
9382    ;;
9383
9384   *)
9385     { echo "$as_me:$LINENO: checking for shl_load" >&5
9386 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9387 if test "${ac_cv_func_shl_load+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9398 #define shl_load innocuous_shl_load
9399
9400 /* System header to define __stub macros and hopefully few prototypes,
9401     which can conflict with char shl_load (); below.
9402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9403     <limits.h> exists even on freestanding compilers.  */
9404
9405 #ifdef __STDC__
9406 # include <limits.h>
9407 #else
9408 # include <assert.h>
9409 #endif
9410
9411 #undef shl_load
9412
9413 /* Override any GCC internal prototype to avoid an error.
9414    Use char because int might match the return type of a GCC
9415    builtin and then its argument prototype would still apply.  */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 char shl_load ();
9420 /* The GNU C library defines this for functions which it implements
9421     to always fail with ENOSYS.  Some functions are actually named
9422     something starting with __ and the normal name is an alias.  */
9423 #if defined __stub_shl_load || defined __stub___shl_load
9424 choke me
9425 #endif
9426
9427 int
9428 main ()
9429 {
9430 return shl_load ();
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442   (eval "$ac_link") 2>conftest.er1
9443   ac_status=$?
9444   grep -v '^ *+' conftest.er1 >conftest.err
9445   rm -f conftest.er1
9446   cat conftest.err >&5
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } && {
9449          test -z "$ac_c_werror_flag" ||
9450          test ! -s conftest.err
9451        } && test -s conftest$ac_exeext &&
9452        $as_test_x conftest$ac_exeext; then
9453   ac_cv_func_shl_load=yes
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458         ac_cv_func_shl_load=no
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9462       conftest$ac_exeext conftest.$ac_ext
9463 fi
9464 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9465 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9466 if test $ac_cv_func_shl_load = yes; then
9467   lt_cv_dlopen="shl_load"
9468 else
9469   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9470 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9471 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-ldld  $LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482
9483 /* Override any GCC internal prototype to avoid an error.
9484    Use char because int might match the return type of a GCC
9485    builtin and then its argument prototype would still apply.  */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char shl_load ();
9490 int
9491 main ()
9492 {
9493 return shl_load ();
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9500 case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505   (eval "$ac_link") 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } && {
9512          test -z "$ac_c_werror_flag" ||
9513          test ! -s conftest.err
9514        } && test -s conftest$ac_exeext &&
9515        $as_test_x conftest$ac_exeext; then
9516   ac_cv_lib_dld_shl_load=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521         ac_cv_lib_dld_shl_load=no
9522 fi
9523
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525       conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9527 fi
9528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9530 if test $ac_cv_lib_dld_shl_load = yes; then
9531   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9532 else
9533   { echo "$as_me:$LINENO: checking for dlopen" >&5
9534 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9535 if test "${ac_cv_func_dlopen+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9546 #define dlopen innocuous_dlopen
9547
9548 /* System header to define __stub macros and hopefully few prototypes,
9549     which can conflict with char dlopen (); below.
9550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551     <limits.h> exists even on freestanding compilers.  */
9552
9553 #ifdef __STDC__
9554 # include <limits.h>
9555 #else
9556 # include <assert.h>
9557 #endif
9558
9559 #undef dlopen
9560
9561 /* Override any GCC internal prototype to avoid an error.
9562    Use char because int might match the return type of a GCC
9563    builtin and then its argument prototype would still apply.  */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char dlopen ();
9568 /* The GNU C library defines this for functions which it implements
9569     to always fail with ENOSYS.  Some functions are actually named
9570     something starting with __ and the normal name is an alias.  */
9571 #if defined __stub_dlopen || defined __stub___dlopen
9572 choke me
9573 #endif
9574
9575 int
9576 main ()
9577 {
9578 return dlopen ();
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587   *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590   (eval "$ac_link") 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } && {
9597          test -z "$ac_c_werror_flag" ||
9598          test ! -s conftest.err
9599        } && test -s conftest$ac_exeext &&
9600        $as_test_x conftest$ac_exeext; then
9601   ac_cv_func_dlopen=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606         ac_cv_func_dlopen=no
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610       conftest$ac_exeext conftest.$ac_ext
9611 fi
9612 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9613 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9614 if test $ac_cv_func_dlopen = yes; then
9615   lt_cv_dlopen="dlopen"
9616 else
9617   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9618 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-ldl  $LIBS"
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632    Use char because int might match the return type of a GCC
9633    builtin and then its argument prototype would still apply.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char dlopen ();
9638 int
9639 main ()
9640 {
9641 return dlopen ();
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653   (eval "$ac_link") 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } && {
9660          test -z "$ac_c_werror_flag" ||
9661          test ! -s conftest.err
9662        } && test -s conftest$ac_exeext &&
9663        $as_test_x conftest$ac_exeext; then
9664   ac_cv_lib_dl_dlopen=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669         ac_cv_lib_dl_dlopen=no
9670 fi
9671
9672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9673       conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9678 if test $ac_cv_lib_dl_dlopen = yes; then
9679   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9680 else
9681   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9682 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9683 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   ac_check_lib_save_LIBS=$LIBS
9687 LIBS="-lsvld  $LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694
9695 /* Override any GCC internal prototype to avoid an error.
9696    Use char because int might match the return type of a GCC
9697    builtin and then its argument prototype would still apply.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 char dlopen ();
9702 int
9703 main ()
9704 {
9705 return dlopen ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714   *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717   (eval "$ac_link") 2>conftest.er1
9718   ac_status=$?
9719   grep -v '^ *+' conftest.er1 >conftest.err
9720   rm -f conftest.er1
9721   cat conftest.err >&5
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); } && {
9724          test -z "$ac_c_werror_flag" ||
9725          test ! -s conftest.err
9726        } && test -s conftest$ac_exeext &&
9727        $as_test_x conftest$ac_exeext; then
9728   ac_cv_lib_svld_dlopen=yes
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733         ac_cv_lib_svld_dlopen=no
9734 fi
9735
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737       conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9739 fi
9740 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9741 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9742 if test $ac_cv_lib_svld_dlopen = yes; then
9743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9744 else
9745   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9746 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   ac_check_lib_save_LIBS=$LIBS
9751 LIBS="-ldld  $LIBS"
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h.  */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h.  */
9758
9759 /* Override any GCC internal prototype to avoid an error.
9760    Use char because int might match the return type of a GCC
9761    builtin and then its argument prototype would still apply.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char dld_link ();
9766 int
9767 main ()
9768 {
9769 return dld_link ();
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } && {
9788          test -z "$ac_c_werror_flag" ||
9789          test ! -s conftest.err
9790        } && test -s conftest$ac_exeext &&
9791        $as_test_x conftest$ac_exeext; then
9792   ac_cv_lib_dld_dld_link=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797         ac_cv_lib_dld_dld_link=no
9798 fi
9799
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801       conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9803 fi
9804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9805 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9806 if test $ac_cv_lib_dld_dld_link = yes; then
9807   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9808 fi
9809
9810
9811 fi
9812
9813
9814 fi
9815
9816
9817 fi
9818
9819
9820 fi
9821
9822
9823 fi
9824
9825     ;;
9826   esac
9827
9828   if test "x$lt_cv_dlopen" != xno; then
9829     enable_dlopen=yes
9830   else
9831     enable_dlopen=no
9832   fi
9833
9834   case $lt_cv_dlopen in
9835   dlopen)
9836     save_CPPFLAGS="$CPPFLAGS"
9837     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9838
9839     save_LDFLAGS="$LDFLAGS"
9840     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9841
9842     save_LIBS="$LIBS"
9843     LIBS="$lt_cv_dlopen_libs $LIBS"
9844
9845     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9846 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9847 if test "${lt_cv_dlopen_self+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850           if test "$cross_compiling" = yes; then :
9851   lt_cv_dlopen_self=cross
9852 else
9853   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9854   lt_status=$lt_dlunknown
9855   cat > conftest.$ac_ext <<EOF
9856 #line 9856 "configure"
9857 #include "confdefs.h"
9858
9859 #if HAVE_DLFCN_H
9860 #include <dlfcn.h>
9861 #endif
9862
9863 #include <stdio.h>
9864
9865 #ifdef RTLD_GLOBAL
9866 #  define LT_DLGLOBAL           RTLD_GLOBAL
9867 #else
9868 #  ifdef DL_GLOBAL
9869 #    define LT_DLGLOBAL         DL_GLOBAL
9870 #  else
9871 #    define LT_DLGLOBAL         0
9872 #  endif
9873 #endif
9874
9875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9876    find out it does not work in some platform. */
9877 #ifndef LT_DLLAZY_OR_NOW
9878 #  ifdef RTLD_LAZY
9879 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9880 #  else
9881 #    ifdef DL_LAZY
9882 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9883 #    else
9884 #      ifdef RTLD_NOW
9885 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9886 #      else
9887 #        ifdef DL_NOW
9888 #          define LT_DLLAZY_OR_NOW      DL_NOW
9889 #        else
9890 #          define LT_DLLAZY_OR_NOW      0
9891 #        endif
9892 #      endif
9893 #    endif
9894 #  endif
9895 #endif
9896
9897 #ifdef __cplusplus
9898 extern "C" void exit (int);
9899 #endif
9900
9901 void fnord() { int i=42;}
9902 int main ()
9903 {
9904   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9905   int status = $lt_dlunknown;
9906
9907   if (self)
9908     {
9909       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9910       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9911       /* dlclose (self); */
9912     }
9913   else
9914     puts (dlerror ());
9915
9916     exit (status);
9917 }
9918 EOF
9919   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920   (eval $ac_link) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9924     (./conftest; exit; ) >&5 2>/dev/null
9925     lt_status=$?
9926     case x$lt_status in
9927       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9928       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9929       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9930     esac
9931   else :
9932     # compilation failed
9933     lt_cv_dlopen_self=no
9934   fi
9935 fi
9936 rm -fr conftest*
9937
9938
9939 fi
9940 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9941 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9942
9943     if test "x$lt_cv_dlopen_self" = xyes; then
9944       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9945       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9946 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9947 if test "${lt_cv_dlopen_self_static+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950           if test "$cross_compiling" = yes; then :
9951   lt_cv_dlopen_self_static=cross
9952 else
9953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9954   lt_status=$lt_dlunknown
9955   cat > conftest.$ac_ext <<EOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958
9959 #if HAVE_DLFCN_H
9960 #include <dlfcn.h>
9961 #endif
9962
9963 #include <stdio.h>
9964
9965 #ifdef RTLD_GLOBAL
9966 #  define LT_DLGLOBAL           RTLD_GLOBAL
9967 #else
9968 #  ifdef DL_GLOBAL
9969 #    define LT_DLGLOBAL         DL_GLOBAL
9970 #  else
9971 #    define LT_DLGLOBAL         0
9972 #  endif
9973 #endif
9974
9975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9976    find out it does not work in some platform. */
9977 #ifndef LT_DLLAZY_OR_NOW
9978 #  ifdef RTLD_LAZY
9979 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9980 #  else
9981 #    ifdef DL_LAZY
9982 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9983 #    else
9984 #      ifdef RTLD_NOW
9985 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9986 #      else
9987 #        ifdef DL_NOW
9988 #          define LT_DLLAZY_OR_NOW      DL_NOW
9989 #        else
9990 #          define LT_DLLAZY_OR_NOW      0
9991 #        endif
9992 #      endif
9993 #    endif
9994 #  endif
9995 #endif
9996
9997 #ifdef __cplusplus
9998 extern "C" void exit (int);
9999 #endif
10000
10001 void fnord() { int i=42;}
10002 int main ()
10003 {
10004   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10005   int status = $lt_dlunknown;
10006
10007   if (self)
10008     {
10009       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10010       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10011       /* dlclose (self); */
10012     }
10013   else
10014     puts (dlerror ());
10015
10016     exit (status);
10017 }
10018 EOF
10019   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020   (eval $ac_link) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10024     (./conftest; exit; ) >&5 2>/dev/null
10025     lt_status=$?
10026     case x$lt_status in
10027       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10028       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10029       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10030     esac
10031   else :
10032     # compilation failed
10033     lt_cv_dlopen_self_static=no
10034   fi
10035 fi
10036 rm -fr conftest*
10037
10038
10039 fi
10040 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10041 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10042     fi
10043
10044     CPPFLAGS="$save_CPPFLAGS"
10045     LDFLAGS="$save_LDFLAGS"
10046     LIBS="$save_LIBS"
10047     ;;
10048   esac
10049
10050   case $lt_cv_dlopen_self in
10051   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10052   *) enable_dlopen_self=unknown ;;
10053   esac
10054
10055   case $lt_cv_dlopen_self_static in
10056   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10057   *) enable_dlopen_self_static=unknown ;;
10058   esac
10059 fi
10060
10061
10062 # Report which library types will actually be built
10063 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10064 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10065 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10066 echo "${ECHO_T}$can_build_shared" >&6; }
10067
10068 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10069 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10070 test "$can_build_shared" = "no" && enable_shared=no
10071
10072 # On AIX, shared libraries and static libraries use the same namespace, and
10073 # are all built from PIC.
10074 case $host_os in
10075 aix3*)
10076   test "$enable_shared" = yes && enable_static=no
10077   if test -n "$RANLIB"; then
10078     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10079     postinstall_cmds='$RANLIB $lib'
10080   fi
10081   ;;
10082
10083 aix4* | aix5*)
10084   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10085     test "$enable_shared" = yes && enable_static=no
10086   fi
10087     ;;
10088 esac
10089 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10090 echo "${ECHO_T}$enable_shared" >&6; }
10091
10092 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10093 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10094 # Make sure either enable_shared or enable_static is yes.
10095 test "$enable_shared" = yes || enable_static=yes
10096 { echo "$as_me:$LINENO: result: $enable_static" >&5
10097 echo "${ECHO_T}$enable_static" >&6; }
10098
10099 # The else clause should only fire when bootstrapping the
10100 # libtool distribution, otherwise you forgot to ship ltmain.sh
10101 # with your package, and you will get complaints that there are
10102 # no rules to generate ltmain.sh.
10103 if test -f "$ltmain"; then
10104   # See if we are running on zsh, and set the options which allow our commands through
10105   # without removal of \ escapes.
10106   if test -n "${ZSH_VERSION+set}" ; then
10107     setopt NO_GLOB_SUBST
10108   fi
10109   # Now quote all the things that may contain metacharacters while being
10110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10111   # variables and quote the copies for generation of the libtool script.
10112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10113     SED SHELL STRIP \
10114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10116     deplibs_check_method reload_flag reload_cmds need_locks \
10117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10118     lt_cv_sys_global_symbol_to_c_name_address \
10119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10120     old_postinstall_cmds old_postuninstall_cmds \
10121     compiler \
10122     CC \
10123     LD \
10124     lt_prog_compiler_wl \
10125     lt_prog_compiler_pic \
10126     lt_prog_compiler_static \
10127     lt_prog_compiler_no_builtin_flag \
10128     export_dynamic_flag_spec \
10129     thread_safe_flag_spec \
10130     whole_archive_flag_spec \
10131     enable_shared_with_static_runtimes \
10132     old_archive_cmds \
10133     old_archive_from_new_cmds \
10134     predep_objects \
10135     postdep_objects \
10136     predeps \
10137     postdeps \
10138     compiler_lib_search_path \
10139     archive_cmds \
10140     archive_expsym_cmds \
10141     postinstall_cmds \
10142     postuninstall_cmds \
10143     old_archive_from_expsyms_cmds \
10144     allow_undefined_flag \
10145     no_undefined_flag \
10146     export_symbols_cmds \
10147     hardcode_libdir_flag_spec \
10148     hardcode_libdir_flag_spec_ld \
10149     hardcode_libdir_separator \
10150     hardcode_automatic \
10151     module_cmds \
10152     module_expsym_cmds \
10153     lt_cv_prog_compiler_c_o \
10154     exclude_expsyms \
10155     include_expsyms; do
10156
10157     case $var in
10158     old_archive_cmds | \
10159     old_archive_from_new_cmds | \
10160     archive_cmds | \
10161     archive_expsym_cmds | \
10162     module_cmds | \
10163     module_expsym_cmds | \
10164     old_archive_from_expsyms_cmds | \
10165     export_symbols_cmds | \
10166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10167     postinstall_cmds | postuninstall_cmds | \
10168     old_postinstall_cmds | old_postuninstall_cmds | \
10169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10170       # Double-quote double-evaled strings.
10171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10172       ;;
10173     *)
10174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10175       ;;
10176     esac
10177   done
10178
10179   case $lt_echo in
10180   *'\$0 --fallback-echo"')
10181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10182     ;;
10183   esac
10184
10185 cfgfile="${ofile}T"
10186   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10187   $rm -f "$cfgfile"
10188   { echo "$as_me:$LINENO: creating $ofile" >&5
10189 echo "$as_me: creating $ofile" >&6;}
10190
10191   cat <<__EOF__ >> "$cfgfile"
10192 #! $SHELL
10193
10194 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10195 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10196 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10197 #
10198 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10199 # Free Software Foundation, Inc.
10200 #
10201 # This file is part of GNU Libtool:
10202 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10203 #
10204 # This program is free software; you can redistribute it and/or modify
10205 # it under the terms of the GNU General Public License as published by
10206 # the Free Software Foundation; either version 2 of the License, or
10207 # (at your option) any later version.
10208 #
10209 # This program is distributed in the hope that it will be useful, but
10210 # WITHOUT ANY WARRANTY; without even the implied warranty of
10211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10212 # General Public License for more details.
10213 #
10214 # You should have received a copy of the GNU General Public License
10215 # along with this program; if not, write to the Free Software
10216 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10217 #
10218 # As a special exception to the GNU General Public License, if you
10219 # distribute this file as part of a program that contains a
10220 # configuration script generated by Autoconf, you may include it under
10221 # the same distribution terms that you use for the rest of that program.
10222
10223 # A sed program that does not truncate output.
10224 SED=$lt_SED
10225
10226 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10227 Xsed="$SED -e 1s/^X//"
10228
10229 # The HP-UX ksh and POSIX shell print the target directory to stdout
10230 # if CDPATH is set.
10231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10232
10233 # The names of the tagged configurations supported by this script.
10234 available_tags=
10235
10236 # ### BEGIN LIBTOOL CONFIG
10237
10238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10239
10240 # Shell to use when invoking shell scripts.
10241 SHELL=$lt_SHELL
10242
10243 # Whether or not to build shared libraries.
10244 build_libtool_libs=$enable_shared
10245
10246 # Whether or not to build static libraries.
10247 build_old_libs=$enable_static
10248
10249 # Whether or not to add -lc for building shared libraries.
10250 build_libtool_need_lc=$archive_cmds_need_lc
10251
10252 # Whether or not to disallow shared libs when runtime libs are static
10253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10254
10255 # Whether or not to optimize for fast installation.
10256 fast_install=$enable_fast_install
10257
10258 # The host system.
10259 host_alias=$host_alias
10260 host=$host
10261 host_os=$host_os
10262
10263 # The build system.
10264 build_alias=$build_alias
10265 build=$build
10266 build_os=$build_os
10267
10268 # An echo program that does not interpret backslashes.
10269 echo=$lt_echo
10270
10271 # The archiver.
10272 AR=$lt_AR
10273 AR_FLAGS=$lt_AR_FLAGS
10274
10275 # A C compiler.
10276 LTCC=$lt_LTCC
10277
10278 # LTCC compiler flags.
10279 LTCFLAGS=$lt_LTCFLAGS
10280
10281 # A language-specific compiler.
10282 CC=$lt_compiler
10283
10284 # Is the compiler the GNU C compiler?
10285 with_gcc=$GCC
10286
10287 # An ERE matcher.
10288 EGREP=$lt_EGREP
10289
10290 # The linker used to build libraries.
10291 LD=$lt_LD
10292
10293 # Whether we need hard or soft links.
10294 LN_S=$lt_LN_S
10295
10296 # A BSD-compatible nm program.
10297 NM=$lt_NM
10298
10299 # A symbol stripping program
10300 STRIP=$lt_STRIP
10301
10302 # Used to examine libraries when file_magic_cmd begins "file"
10303 MAGIC_CMD=$MAGIC_CMD
10304
10305 # Used on cygwin: DLL creation program.
10306 DLLTOOL="$DLLTOOL"
10307
10308 # Used on cygwin: object dumper.
10309 OBJDUMP="$OBJDUMP"
10310
10311 # Used on cygwin: assembler.
10312 AS="$AS"
10313
10314 # The name of the directory that contains temporary libtool files.
10315 objdir=$objdir
10316
10317 # How to create reloadable object files.
10318 reload_flag=$lt_reload_flag
10319 reload_cmds=$lt_reload_cmds
10320
10321 # How to pass a linker flag through the compiler.
10322 wl=$lt_lt_prog_compiler_wl
10323
10324 # Object file suffix (normally "o").
10325 objext="$ac_objext"
10326
10327 # Old archive suffix (normally "a").
10328 libext="$libext"
10329
10330 # Shared library suffix (normally ".so").
10331 shrext_cmds='$shrext_cmds'
10332
10333 # Executable file suffix (normally "").
10334 exeext="$exeext"
10335
10336 # Additional compiler flags for building library objects.
10337 pic_flag=$lt_lt_prog_compiler_pic
10338 pic_mode=$pic_mode
10339
10340 # What is the maximum length of a command?
10341 max_cmd_len=$lt_cv_sys_max_cmd_len
10342
10343 # Does compiler simultaneously support -c and -o options?
10344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10345
10346 # Must we lock files when doing compilation?
10347 need_locks=$lt_need_locks
10348
10349 # Do we need the lib prefix for modules?
10350 need_lib_prefix=$need_lib_prefix
10351
10352 # Do we need a version for libraries?
10353 need_version=$need_version
10354
10355 # Whether dlopen is supported.
10356 dlopen_support=$enable_dlopen
10357
10358 # Whether dlopen of programs is supported.
10359 dlopen_self=$enable_dlopen_self
10360
10361 # Whether dlopen of statically linked programs is supported.
10362 dlopen_self_static=$enable_dlopen_self_static
10363
10364 # Compiler flag to prevent dynamic linking.
10365 link_static_flag=$lt_lt_prog_compiler_static
10366
10367 # Compiler flag to turn off builtin functions.
10368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10369
10370 # Compiler flag to allow reflexive dlopens.
10371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10372
10373 # Compiler flag to generate shared objects directly from archives.
10374 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10375
10376 # Compiler flag to generate thread-safe objects.
10377 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10378
10379 # Library versioning type.
10380 version_type=$version_type
10381
10382 # Format of library name prefix.
10383 libname_spec=$lt_libname_spec
10384
10385 # List of archive names.  First name is the real one, the rest are links.
10386 # The last name is the one that the linker finds with -lNAME.
10387 library_names_spec=$lt_library_names_spec
10388
10389 # The coded name of the library, if different from the real name.
10390 soname_spec=$lt_soname_spec
10391
10392 # Commands used to build and install an old-style archive.
10393 RANLIB=$lt_RANLIB
10394 old_archive_cmds=$lt_old_archive_cmds
10395 old_postinstall_cmds=$lt_old_postinstall_cmds
10396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10397
10398 # Create an old-style archive from a shared archive.
10399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10400
10401 # Create a temporary old-style archive to link instead of a shared archive.
10402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10403
10404 # Commands used to build and install a shared archive.
10405 archive_cmds=$lt_archive_cmds
10406 archive_expsym_cmds=$lt_archive_expsym_cmds
10407 postinstall_cmds=$lt_postinstall_cmds
10408 postuninstall_cmds=$lt_postuninstall_cmds
10409
10410 # Commands used to build a loadable module (assumed same as above if empty)
10411 module_cmds=$lt_module_cmds
10412 module_expsym_cmds=$lt_module_expsym_cmds
10413
10414 # Commands to strip libraries.
10415 old_striplib=$lt_old_striplib
10416 striplib=$lt_striplib
10417
10418 # Dependencies to place before the objects being linked to create a
10419 # shared library.
10420 predep_objects=$lt_predep_objects
10421
10422 # Dependencies to place after the objects being linked to create a
10423 # shared library.
10424 postdep_objects=$lt_postdep_objects
10425
10426 # Dependencies to place before the objects being linked to create a
10427 # shared library.
10428 predeps=$lt_predeps
10429
10430 # Dependencies to place after the objects being linked to create a
10431 # shared library.
10432 postdeps=$lt_postdeps
10433
10434 # The library search path used internally by the compiler when linking
10435 # a shared library.
10436 compiler_lib_search_path=$lt_compiler_lib_search_path
10437
10438 # Method to check whether dependent libraries are shared objects.
10439 deplibs_check_method=$lt_deplibs_check_method
10440
10441 # Command to use when deplibs_check_method == file_magic.
10442 file_magic_cmd=$lt_file_magic_cmd
10443
10444 # Flag that allows shared libraries with undefined symbols to be built.
10445 allow_undefined_flag=$lt_allow_undefined_flag
10446
10447 # Flag that forces no undefined symbols.
10448 no_undefined_flag=$lt_no_undefined_flag
10449
10450 # Commands used to finish a libtool library installation in a directory.
10451 finish_cmds=$lt_finish_cmds
10452
10453 # Same as above, but a single script fragment to be evaled but not shown.
10454 finish_eval=$lt_finish_eval
10455
10456 # Take the output of nm and produce a listing of raw symbols and C names.
10457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10458
10459 # Transform the output of nm in a proper C declaration
10460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10461
10462 # Transform the output of nm in a C name address pair
10463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10464
10465 # This is the shared library runtime path variable.
10466 runpath_var=$runpath_var
10467
10468 # This is the shared library path variable.
10469 shlibpath_var=$shlibpath_var
10470
10471 # Is shlibpath searched before the hard-coded library search path?
10472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10473
10474 # How to hardcode a shared library path into an executable.
10475 hardcode_action=$hardcode_action
10476
10477 # Whether we should hardcode library paths into libraries.
10478 hardcode_into_libs=$hardcode_into_libs
10479
10480 # Flag to hardcode \$libdir into a binary during linking.
10481 # This must work even if \$libdir does not exist.
10482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10483
10484 # If ld is used when linking, flag to hardcode \$libdir into
10485 # a binary during linking. This must work even if \$libdir does
10486 # not exist.
10487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10488
10489 # Whether we need a single -rpath flag with a separated argument.
10490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10491
10492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10493 # resulting binary.
10494 hardcode_direct=$hardcode_direct
10495
10496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10497 # resulting binary.
10498 hardcode_minus_L=$hardcode_minus_L
10499
10500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10501 # the resulting binary.
10502 hardcode_shlibpath_var=$hardcode_shlibpath_var
10503
10504 # Set to yes if building a shared library automatically hardcodes DIR into the library
10505 # and all subsequent libraries and executables linked against it.
10506 hardcode_automatic=$hardcode_automatic
10507
10508 # Variables whose values should be saved in libtool wrapper scripts and
10509 # restored at relink time.
10510 variables_saved_for_relink="$variables_saved_for_relink"
10511
10512 # Whether libtool must link a program against all its dependency libraries.
10513 link_all_deplibs=$link_all_deplibs
10514
10515 # Compile-time system search path for libraries
10516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10517
10518 # Run-time system search path for libraries
10519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10520
10521 # Fix the shell variable \$srcfile for the compiler.
10522 fix_srcfile_path="$fix_srcfile_path"
10523
10524 # Set to yes if exported symbols are required.
10525 always_export_symbols=$always_export_symbols
10526
10527 # The commands to list exported symbols.
10528 export_symbols_cmds=$lt_export_symbols_cmds
10529
10530 # The commands to extract the exported symbol list from a shared archive.
10531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10532
10533 # Symbols that should not be listed in the preloaded symbols.
10534 exclude_expsyms=$lt_exclude_expsyms
10535
10536 # Symbols that must always be exported.
10537 include_expsyms=$lt_include_expsyms
10538
10539 # ### END LIBTOOL CONFIG
10540
10541 __EOF__
10542
10543
10544   case $host_os in
10545   aix3*)
10546     cat <<\EOF >> "$cfgfile"
10547
10548 # AIX sometimes has problems with the GCC collect2 program.  For some
10549 # reason, if we set the COLLECT_NAMES environment variable, the problems
10550 # vanish in a puff of smoke.
10551 if test "X${COLLECT_NAMES+set}" != Xset; then
10552   COLLECT_NAMES=
10553   export COLLECT_NAMES
10554 fi
10555 EOF
10556     ;;
10557   esac
10558
10559   # We use sed instead of cat because bash on DJGPP gets confused if
10560   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10561   # text mode, it properly converts lines to CR/LF.  This bash problem
10562   # is reportedly fixed, but why not run on old versions too?
10563   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10564
10565   mv -f "$cfgfile" "$ofile" || \
10566     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10567   chmod +x "$ofile"
10568
10569 else
10570   # If there is no Makefile yet, we rely on a make rule to execute
10571   # `config.status --recheck' to rerun these tests and create the
10572   # libtool script then.
10573   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10574   if test -f "$ltmain_in"; then
10575     test -f Makefile && make "$ltmain"
10576   fi
10577 fi
10578
10579
10580 ac_ext=c
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10585
10586 CC="$lt_save_CC"
10587
10588
10589 # Check whether --with-tags was given.
10590 if test "${with_tags+set}" = set; then
10591   withval=$with_tags; tagnames="$withval"
10592 fi
10593
10594
10595 if test -f "$ltmain" && test -n "$tagnames"; then
10596   if test ! -f "${ofile}"; then
10597     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10598 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10599   fi
10600
10601   if test -z "$LTCC"; then
10602     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10603     if test -z "$LTCC"; then
10604       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10605 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10606     else
10607       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10608 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10609     fi
10610   fi
10611   if test -z "$LTCFLAGS"; then
10612     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10613   fi
10614
10615   # Extract list of available tagged configurations in $ofile.
10616   # Note that this assumes the entire list is on one line.
10617   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10618
10619   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10620   for tagname in $tagnames; do
10621     IFS="$lt_save_ifs"
10622     # Check whether tagname contains only valid characters
10623     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10624     "") ;;
10625     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10626 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10627    { (exit 1); exit 1; }; }
10628         ;;
10629     esac
10630
10631     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10632     then
10633       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10634 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10635    { (exit 1); exit 1; }; }
10636     fi
10637
10638     # Update the list of available tags.
10639     if test -n "$tagname"; then
10640       echo appending configuration tag \"$tagname\" to $ofile
10641
10642       case $tagname in
10643       CXX)
10644         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10645             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10646             (test "X$CXX" != "Xg++"))) ; then
10647           ac_ext=cpp
10648 ac_cpp='$CXXCPP $CPPFLAGS'
10649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10652
10653
10654
10655
10656 archive_cmds_need_lc_CXX=no
10657 allow_undefined_flag_CXX=
10658 always_export_symbols_CXX=no
10659 archive_expsym_cmds_CXX=
10660 export_dynamic_flag_spec_CXX=
10661 hardcode_direct_CXX=no
10662 hardcode_libdir_flag_spec_CXX=
10663 hardcode_libdir_flag_spec_ld_CXX=
10664 hardcode_libdir_separator_CXX=
10665 hardcode_minus_L_CXX=no
10666 hardcode_shlibpath_var_CXX=unsupported
10667 hardcode_automatic_CXX=no
10668 module_cmds_CXX=
10669 module_expsym_cmds_CXX=
10670 link_all_deplibs_CXX=unknown
10671 old_archive_cmds_CXX=$old_archive_cmds
10672 no_undefined_flag_CXX=
10673 whole_archive_flag_spec_CXX=
10674 enable_shared_with_static_runtimes_CXX=no
10675
10676 # Dependencies to place before and after the object being linked:
10677 predep_objects_CXX=
10678 postdep_objects_CXX=
10679 predeps_CXX=
10680 postdeps_CXX=
10681 compiler_lib_search_path_CXX=
10682
10683 # Source file extension for C++ test sources.
10684 ac_ext=cpp
10685
10686 # Object file extension for compiled C++ test sources.
10687 objext=o
10688 objext_CXX=$objext
10689
10690 # Code to be used in simple compile tests
10691 lt_simple_compile_test_code="int some_variable = 0;\n"
10692
10693 # Code to be used in simple link tests
10694 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10695
10696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10697
10698 # If no C compiler was specified, use CC.
10699 LTCC=${LTCC-"$CC"}
10700
10701 # If no C compiler flags were specified, use CFLAGS.
10702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10703
10704 # Allow CC to be a program name with arguments.
10705 compiler=$CC
10706
10707
10708 # save warnings/boilerplate of simple test code
10709 ac_outfile=conftest.$ac_objext
10710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10712 _lt_compiler_boilerplate=`cat conftest.err`
10713 $rm conftest*
10714
10715 ac_outfile=conftest.$ac_objext
10716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10718 _lt_linker_boilerplate=`cat conftest.err`
10719 $rm conftest*
10720
10721
10722 # Allow CC to be a program name with arguments.
10723 lt_save_CC=$CC
10724 lt_save_LD=$LD
10725 lt_save_GCC=$GCC
10726 GCC=$GXX
10727 lt_save_with_gnu_ld=$with_gnu_ld
10728 lt_save_path_LD=$lt_cv_path_LD
10729 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10730   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10731 else
10732   $as_unset lt_cv_prog_gnu_ld
10733 fi
10734 if test -n "${lt_cv_path_LDCXX+set}"; then
10735   lt_cv_path_LD=$lt_cv_path_LDCXX
10736 else
10737   $as_unset lt_cv_path_LD
10738 fi
10739 test -z "${LDCXX+set}" || LD=$LDCXX
10740 CC=${CXX-"c++"}
10741 compiler=$CC
10742 compiler_CXX=$CC
10743 for cc_temp in $compiler""; do
10744   case $cc_temp in
10745     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10746     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10747     \-*) ;;
10748     *) break;;
10749   esac
10750 done
10751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10752
10753
10754 # We don't want -fno-exception wen compiling C++ code, so set the
10755 # no_builtin_flag separately
10756 if test "$GXX" = yes; then
10757   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10758 else
10759   lt_prog_compiler_no_builtin_flag_CXX=
10760 fi
10761
10762 if test "$GXX" = yes; then
10763   # Set up default GNU C++ configuration
10764
10765
10766 # Check whether --with-gnu-ld was given.
10767 if test "${with_gnu_ld+set}" = set; then
10768   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10769 else
10770   with_gnu_ld=no
10771 fi
10772
10773 ac_prog=ld
10774 if test "$GCC" = yes; then
10775   # Check if gcc -print-prog-name=ld gives a path.
10776   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10777 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10778   case $host in
10779   *-*-mingw*)
10780     # gcc leaves a trailing carriage return which upsets mingw
10781     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10782   *)
10783     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10784   esac
10785   case $ac_prog in
10786     # Accept absolute paths.
10787     [\\/]* | ?:[\\/]*)
10788       re_direlt='/[^/][^/]*/\.\./'
10789       # Canonicalize the pathname of ld
10790       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10791       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10792         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10793       done
10794       test -z "$LD" && LD="$ac_prog"
10795       ;;
10796   "")
10797     # If it fails, then pretend we aren't using GCC.
10798     ac_prog=ld
10799     ;;
10800   *)
10801     # If it is relative, then search for the first ld in PATH.
10802     with_gnu_ld=unknown
10803     ;;
10804   esac
10805 elif test "$with_gnu_ld" = yes; then
10806   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10808 else
10809   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10811 fi
10812 if test "${lt_cv_path_LD+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   if test -z "$LD"; then
10816   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10817   for ac_dir in $PATH; do
10818     IFS="$lt_save_ifs"
10819     test -z "$ac_dir" && ac_dir=.
10820     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10821       lt_cv_path_LD="$ac_dir/$ac_prog"
10822       # Check to see if the program is GNU ld.  I'd rather use --version,
10823       # but apparently some variants of GNU ld only accept -v.
10824       # Break only if it was the GNU/non-GNU ld that we prefer.
10825       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10826       *GNU* | *'with BFD'*)
10827         test "$with_gnu_ld" != no && break
10828         ;;
10829       *)
10830         test "$with_gnu_ld" != yes && break
10831         ;;
10832       esac
10833     fi
10834   done
10835   IFS="$lt_save_ifs"
10836 else
10837   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10838 fi
10839 fi
10840
10841 LD="$lt_cv_path_LD"
10842 if test -n "$LD"; then
10843   { echo "$as_me:$LINENO: result: $LD" >&5
10844 echo "${ECHO_T}$LD" >&6; }
10845 else
10846   { echo "$as_me:$LINENO: result: no" >&5
10847 echo "${ECHO_T}no" >&6; }
10848 fi
10849 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10850 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10851    { (exit 1); exit 1; }; }
10852 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10853 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10854 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10855   echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10858 case `$LD -v 2>&1 </dev/null` in
10859 *GNU* | *'with BFD'*)
10860   lt_cv_prog_gnu_ld=yes
10861   ;;
10862 *)
10863   lt_cv_prog_gnu_ld=no
10864   ;;
10865 esac
10866 fi
10867 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10868 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10869 with_gnu_ld=$lt_cv_prog_gnu_ld
10870
10871
10872
10873   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10874   # archiving commands below assume that GNU ld is being used.
10875   if test "$with_gnu_ld" = yes; then
10876     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877     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'
10878
10879     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10880     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10881
10882     # If archive_cmds runs LD, not CC, wlarc should be empty
10883     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10884     #     investigate it a little bit more. (MM)
10885     wlarc='${wl}'
10886
10887     # ancient GNU ld didn't support --whole-archive et. al.
10888     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10889         grep 'no-whole-archive' > /dev/null; then
10890       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10891     else
10892       whole_archive_flag_spec_CXX=
10893     fi
10894   else
10895     with_gnu_ld=no
10896     wlarc=
10897
10898     # A generic and very simple default shared library creation
10899     # command for GNU C++ for the case where it uses the native
10900     # linker, instead of GNU ld.  If possible, this setting should
10901     # overridden to take advantage of the native linker features on
10902     # the platform it is being used on.
10903     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10904   fi
10905
10906   # Commands to make compiler produce verbose output that lists
10907   # what "hidden" libraries, object files and flags are used when
10908   # linking a shared library.
10909   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10910
10911 else
10912   GXX=no
10913   with_gnu_ld=no
10914   wlarc=
10915 fi
10916
10917 # PORTME: fill in a description of your system's C++ link characteristics
10918 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10919 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10920 ld_shlibs_CXX=yes
10921 case $host_os in
10922   aix3*)
10923     # FIXME: insert proper C++ library support
10924     ld_shlibs_CXX=no
10925     ;;
10926   aix4* | aix5*)
10927     if test "$host_cpu" = ia64; then
10928       # On IA64, the linker does run time linking by default, so we don't
10929       # have to do anything special.
10930       aix_use_runtimelinking=no
10931       exp_sym_flag='-Bexport'
10932       no_entry_flag=""
10933     else
10934       aix_use_runtimelinking=no
10935
10936       # Test if we are trying to use run time linking or normal
10937       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10938       # need to do runtime linking.
10939       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10940         for ld_flag in $LDFLAGS; do
10941           case $ld_flag in
10942           *-brtl*)
10943             aix_use_runtimelinking=yes
10944             break
10945             ;;
10946           esac
10947         done
10948         ;;
10949       esac
10950
10951       exp_sym_flag='-bexport'
10952       no_entry_flag='-bnoentry'
10953     fi
10954
10955     # When large executables or shared objects are built, AIX ld can
10956     # have problems creating the table of contents.  If linking a library
10957     # or program results in "error TOC overflow" add -mminimal-toc to
10958     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10959     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10960
10961     archive_cmds_CXX=''
10962     hardcode_direct_CXX=yes
10963     hardcode_libdir_separator_CXX=':'
10964     link_all_deplibs_CXX=yes
10965
10966     if test "$GXX" = yes; then
10967       case $host_os in aix4.[012]|aix4.[012].*)
10968       # We only want to do this on AIX 4.2 and lower, the check
10969       # below for broken collect2 doesn't work under 4.3+
10970         collect2name=`${CC} -print-prog-name=collect2`
10971         if test -f "$collect2name" && \
10972            strings "$collect2name" | grep resolve_lib_name >/dev/null
10973         then
10974           # We have reworked collect2
10975           hardcode_direct_CXX=yes
10976         else
10977           # We have old collect2
10978           hardcode_direct_CXX=unsupported
10979           # It fails to find uninstalled libraries when the uninstalled
10980           # path is not listed in the libpath.  Setting hardcode_minus_L
10981           # to unsupported forces relinking
10982           hardcode_minus_L_CXX=yes
10983           hardcode_libdir_flag_spec_CXX='-L$libdir'
10984           hardcode_libdir_separator_CXX=
10985         fi
10986         ;;
10987       esac
10988       shared_flag='-shared'
10989       if test "$aix_use_runtimelinking" = yes; then
10990         shared_flag="$shared_flag "'${wl}-G'
10991       fi
10992     else
10993       # not using gcc
10994       if test "$host_cpu" = ia64; then
10995         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10996         # chokes on -Wl,-G. The following line is correct:
10997         shared_flag='-G'
10998       else
10999         if test "$aix_use_runtimelinking" = yes; then
11000           shared_flag='${wl}-G'
11001         else
11002           shared_flag='${wl}-bM:SRE'
11003         fi
11004       fi
11005     fi
11006
11007     # It seems that -bexpall does not export symbols beginning with
11008     # underscore (_), so it is better to generate a list of symbols to export.
11009     always_export_symbols_CXX=yes
11010     if test "$aix_use_runtimelinking" = yes; then
11011       # Warning - without using the other runtime loading flags (-brtl),
11012       # -berok will link without error, but may produce a broken library.
11013       allow_undefined_flag_CXX='-berok'
11014       # Determine the default libpath from the value encoded in an empty executable.
11015       cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021
11022 int
11023 main ()
11024 {
11025
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_link") 2>conftest.er1
11038   ac_status=$?
11039   grep -v '^ *+' conftest.er1 >conftest.err
11040   rm -f conftest.er1
11041   cat conftest.err >&5
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); } && {
11044          test -z "$ac_cxx_werror_flag" ||
11045          test ! -s conftest.err
11046        } && test -s conftest$ac_exeext &&
11047        $as_test_x conftest$ac_exeext; then
11048
11049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11050 }'`
11051 # Check for a 64-bit object if we didn't find anything.
11052 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; }
11053 }'`; fi
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058
11059 fi
11060
11061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11062       conftest$ac_exeext conftest.$ac_ext
11063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11064
11065       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11066
11067       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"
11068      else
11069       if test "$host_cpu" = ia64; then
11070         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11071         allow_undefined_flag_CXX="-z nodefs"
11072         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"
11073       else
11074         # Determine the default libpath from the value encoded in an empty executable.
11075         cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081
11082 int
11083 main ()
11084 {
11085
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_link") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && {
11104          test -z "$ac_cxx_werror_flag" ||
11105          test ! -s conftest.err
11106        } && test -s conftest$ac_exeext &&
11107        $as_test_x conftest$ac_exeext; then
11108
11109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11110 }'`
11111 # Check for a 64-bit object if we didn't find anything.
11112 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; }
11113 }'`; fi
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118
11119 fi
11120
11121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11122       conftest$ac_exeext conftest.$ac_ext
11123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11124
11125         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11126         # Warning - without using the other run time loading flags,
11127         # -berok will link without error, but may produce a broken library.
11128         no_undefined_flag_CXX=' ${wl}-bernotok'
11129         allow_undefined_flag_CXX=' ${wl}-berok'
11130         # Exported symbols can be pulled into shared objects from archives
11131         whole_archive_flag_spec_CXX='$convenience'
11132         archive_cmds_need_lc_CXX=yes
11133         # This is similar to how AIX traditionally builds its shared libraries.
11134         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'
11135       fi
11136     fi
11137     ;;
11138
11139   beos*)
11140     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11141       allow_undefined_flag_CXX=unsupported
11142       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11143       # support --undefined.  This deserves some investigation.  FIXME
11144       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11145     else
11146       ld_shlibs_CXX=no
11147     fi
11148     ;;
11149
11150   chorus*)
11151     case $cc_basename in
11152       *)
11153         # FIXME: insert proper C++ library support
11154         ld_shlibs_CXX=no
11155         ;;
11156     esac
11157     ;;
11158
11159   cygwin* | mingw* | pw32*)
11160     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11161     # as there is no search path for DLLs.
11162     hardcode_libdir_flag_spec_CXX='-L$libdir'
11163     allow_undefined_flag_CXX=unsupported
11164     always_export_symbols_CXX=no
11165     enable_shared_with_static_runtimes_CXX=yes
11166
11167     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11168       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'
11169       # If the export-symbols file already is a .def file (1st line
11170       # is EXPORTS), use it as is; otherwise, prepend...
11171       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11172         cp $export_symbols $output_objdir/$soname.def;
11173       else
11174         echo EXPORTS > $output_objdir/$soname.def;
11175         cat $export_symbols >> $output_objdir/$soname.def;
11176       fi~
11177       $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'
11178     else
11179       ld_shlibs_CXX=no
11180     fi
11181   ;;
11182       darwin* | rhapsody*)
11183         case $host_os in
11184         rhapsody* | darwin1.[012])
11185          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11186          ;;
11187        *) # Darwin 1.3 on
11188          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11189            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11190          else
11191            case ${MACOSX_DEPLOYMENT_TARGET} in
11192              10.[012])
11193                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11194                ;;
11195              10.*)
11196                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11197                ;;
11198            esac
11199          fi
11200          ;;
11201         esac
11202       archive_cmds_need_lc_CXX=no
11203       hardcode_direct_CXX=no
11204       hardcode_automatic_CXX=yes
11205       hardcode_shlibpath_var_CXX=unsupported
11206       whole_archive_flag_spec_CXX=''
11207       link_all_deplibs_CXX=yes
11208
11209     if test "$GXX" = yes ; then
11210       lt_int_apple_cc_single_mod=no
11211       output_verbose_link_cmd='echo'
11212       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11213        lt_int_apple_cc_single_mod=yes
11214       fi
11215       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11216        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11217       else
11218           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'
11219         fi
11220         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11221         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11222           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11223             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}'
11224           else
11225             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}'
11226           fi
11227             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}'
11228       else
11229       case $cc_basename in
11230         xlc*)
11231          output_verbose_link_cmd='echo'
11232           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'
11233           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11234           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11235           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}'
11236           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}'
11237           ;;
11238        *)
11239          ld_shlibs_CXX=no
11240           ;;
11241       esac
11242       fi
11243         ;;
11244
11245   dgux*)
11246     case $cc_basename in
11247       ec++*)
11248         # FIXME: insert proper C++ library support
11249         ld_shlibs_CXX=no
11250         ;;
11251       ghcx*)
11252         # Green Hills C++ Compiler
11253         # FIXME: insert proper C++ library support
11254         ld_shlibs_CXX=no
11255         ;;
11256       *)
11257         # FIXME: insert proper C++ library support
11258         ld_shlibs_CXX=no
11259         ;;
11260     esac
11261     ;;
11262   freebsd[12]*)
11263     # C++ shared libraries reported to be fairly broken before switch to ELF
11264     ld_shlibs_CXX=no
11265     ;;
11266   freebsd-elf*)
11267     archive_cmds_need_lc_CXX=no
11268     ;;
11269   freebsd* | dragonfly*)
11270     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11271     # conventions
11272     ld_shlibs_CXX=yes
11273     ;;
11274   gnu*)
11275     ;;
11276   hpux9*)
11277     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11278     hardcode_libdir_separator_CXX=:
11279     export_dynamic_flag_spec_CXX='${wl}-E'
11280     hardcode_direct_CXX=yes
11281     hardcode_minus_L_CXX=yes # Not in the search PATH,
11282                                 # but as the default
11283                                 # location of the library.
11284
11285     case $cc_basename in
11286     CC*)
11287       # FIXME: insert proper C++ library support
11288       ld_shlibs_CXX=no
11289       ;;
11290     aCC*)
11291       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'
11292       # Commands to make compiler produce verbose output that lists
11293       # what "hidden" libraries, object files and flags are used when
11294       # linking a shared library.
11295       #
11296       # There doesn't appear to be a way to prevent this compiler from
11297       # explicitly linking system object files so we need to strip them
11298       # from the output so that they don't get included in the library
11299       # dependencies.
11300       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'
11301       ;;
11302     *)
11303       if test "$GXX" = yes; then
11304         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'
11305       else
11306         # FIXME: insert proper C++ library support
11307         ld_shlibs_CXX=no
11308       fi
11309       ;;
11310     esac
11311     ;;
11312   hpux10*|hpux11*)
11313     if test $with_gnu_ld = no; then
11314       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315       hardcode_libdir_separator_CXX=:
11316
11317       case $host_cpu in
11318       hppa*64*|ia64*)
11319         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11320         ;;
11321       *)
11322         export_dynamic_flag_spec_CXX='${wl}-E'
11323         ;;
11324       esac
11325     fi
11326     case $host_cpu in
11327     hppa*64*|ia64*)
11328       hardcode_direct_CXX=no
11329       hardcode_shlibpath_var_CXX=no
11330       ;;
11331     *)
11332       hardcode_direct_CXX=yes
11333       hardcode_minus_L_CXX=yes # Not in the search PATH,
11334                                               # but as the default
11335                                               # location of the library.
11336       ;;
11337     esac
11338
11339     case $cc_basename in
11340       CC*)
11341         # FIXME: insert proper C++ library support
11342         ld_shlibs_CXX=no
11343         ;;
11344       aCC*)
11345         case $host_cpu in
11346         hppa*64*)
11347           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348           ;;
11349         ia64*)
11350           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11351           ;;
11352         *)
11353           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354           ;;
11355         esac
11356         # Commands to make compiler produce verbose output that lists
11357         # what "hidden" libraries, object files and flags are used when
11358         # linking a shared library.
11359         #
11360         # There doesn't appear to be a way to prevent this compiler from
11361         # explicitly linking system object files so we need to strip them
11362         # from the output so that they don't get included in the library
11363         # dependencies.
11364         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'
11365         ;;
11366       *)
11367         if test "$GXX" = yes; then
11368           if test $with_gnu_ld = no; then
11369             case $host_cpu in
11370             hppa*64*)
11371               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11372               ;;
11373             ia64*)
11374               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11375               ;;
11376             *)
11377               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'
11378               ;;
11379             esac
11380           fi
11381         else
11382           # FIXME: insert proper C++ library support
11383           ld_shlibs_CXX=no
11384         fi
11385         ;;
11386     esac
11387     ;;
11388   interix3*)
11389     hardcode_direct_CXX=no
11390     hardcode_shlibpath_var_CXX=no
11391     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11392     export_dynamic_flag_spec_CXX='${wl}-E'
11393     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11394     # Instead, shared libraries are loaded at an image base (0x10000000 by
11395     # default) and relocated if they conflict, which is a slow very memory
11396     # consuming and fragmenting process.  To avoid this, we pick a random,
11397     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11398     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11399     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'
11400     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'
11401     ;;
11402   irix5* | irix6*)
11403     case $cc_basename in
11404       CC*)
11405         # SGI C++
11406         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'
11407
11408         # Archives containing C++ object files must be created using
11409         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11410         # necessary to make sure instantiated templates are included
11411         # in the archive.
11412         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11413         ;;
11414       *)
11415         if test "$GXX" = yes; then
11416           if test "$with_gnu_ld" = no; then
11417             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'
11418           else
11419             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'
11420           fi
11421         fi
11422         link_all_deplibs_CXX=yes
11423         ;;
11424     esac
11425     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11426     hardcode_libdir_separator_CXX=:
11427     ;;
11428   linux* | k*bsd*-gnu)
11429     case $cc_basename in
11430       KCC*)
11431         # Kuck and Associates, Inc. (KAI) C++ Compiler
11432
11433         # KCC will only create a shared library if the output file
11434         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11435         # to its proper name (with version) after linking.
11436         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'
11437         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'
11438         # Commands to make compiler produce verbose output that lists
11439         # what "hidden" libraries, object files and flags are used when
11440         # linking a shared library.
11441         #
11442         # There doesn't appear to be a way to prevent this compiler from
11443         # explicitly linking system object files so we need to strip them
11444         # from the output so that they don't get included in the library
11445         # dependencies.
11446         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'
11447
11448         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11449         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11450
11451         # Archives containing C++ object files must be created using
11452         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11453         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11454         ;;
11455       icpc*)
11456         # Intel C++
11457         with_gnu_ld=yes
11458         # version 8.0 and above of icpc choke on multiply defined symbols
11459         # if we add $predep_objects and $postdep_objects, however 7.1 and
11460         # earlier do not add the objects themselves.
11461         case `$CC -V 2>&1` in
11462         *"Version 7."*)
11463           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11464           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'
11465           ;;
11466         *)  # Version 8.0 or newer
11467           tmp_idyn=
11468           case $host_cpu in
11469             ia64*) tmp_idyn=' -i_dynamic';;
11470           esac
11471           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472           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'
11473           ;;
11474         esac
11475         archive_cmds_need_lc_CXX=no
11476         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11477         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11478         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11479         ;;
11480       pgCC*)
11481         # Portland Group C++ compiler
11482         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11483         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'
11484
11485         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11486         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11487         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'
11488         ;;
11489       cxx*)
11490         # Compaq C++
11491         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492         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'
11493
11494         runpath_var=LD_RUN_PATH
11495         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11496         hardcode_libdir_separator_CXX=:
11497
11498         # Commands to make compiler produce verbose output that lists
11499         # what "hidden" libraries, object files and flags are used when
11500         # linking a shared library.
11501         #
11502         # There doesn't appear to be a way to prevent this compiler from
11503         # explicitly linking system object files so we need to strip them
11504         # from the output so that they don't get included in the library
11505         # dependencies.
11506         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'
11507         ;;
11508     esac
11509     ;;
11510   lynxos*)
11511     # FIXME: insert proper C++ library support
11512     ld_shlibs_CXX=no
11513     ;;
11514   m88k*)
11515     # FIXME: insert proper C++ library support
11516     ld_shlibs_CXX=no
11517     ;;
11518   mvs*)
11519     case $cc_basename in
11520       cxx*)
11521         # FIXME: insert proper C++ library support
11522         ld_shlibs_CXX=no
11523         ;;
11524       *)
11525         # FIXME: insert proper C++ library support
11526         ld_shlibs_CXX=no
11527         ;;
11528     esac
11529     ;;
11530   netbsd* | netbsdelf*-gnu)
11531     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11532       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11533       wlarc=
11534       hardcode_libdir_flag_spec_CXX='-R$libdir'
11535       hardcode_direct_CXX=yes
11536       hardcode_shlibpath_var_CXX=no
11537     fi
11538     # Workaround some broken pre-1.5 toolchains
11539     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11540     ;;
11541   openbsd2*)
11542     # C++ shared libraries are fairly broken
11543     ld_shlibs_CXX=no
11544     ;;
11545   openbsd*)
11546     hardcode_direct_CXX=yes
11547     hardcode_shlibpath_var_CXX=no
11548     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11549     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11550     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11551       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11552       export_dynamic_flag_spec_CXX='${wl}-E'
11553       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11554     fi
11555     output_verbose_link_cmd='echo'
11556     ;;
11557   osf3*)
11558     case $cc_basename in
11559       KCC*)
11560         # Kuck and Associates, Inc. (KAI) C++ Compiler
11561
11562         # KCC will only create a shared library if the output file
11563         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11564         # to its proper name (with version) after linking.
11565         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'
11566
11567         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11568         hardcode_libdir_separator_CXX=:
11569
11570         # Archives containing C++ object files must be created using
11571         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11572         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11573
11574         ;;
11575       RCC*)
11576         # Rational C++ 2.4.1
11577         # FIXME: insert proper C++ library support
11578         ld_shlibs_CXX=no
11579         ;;
11580       cxx*)
11581         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11582         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'
11583
11584         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585         hardcode_libdir_separator_CXX=:
11586
11587         # Commands to make compiler produce verbose output that lists
11588         # what "hidden" libraries, object files and flags are used when
11589         # linking a shared library.
11590         #
11591         # There doesn't appear to be a way to prevent this compiler from
11592         # explicitly linking system object files so we need to strip them
11593         # from the output so that they don't get included in the library
11594         # dependencies.
11595         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'
11596         ;;
11597       *)
11598         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11599           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11600           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'
11601
11602           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11603           hardcode_libdir_separator_CXX=:
11604
11605           # Commands to make compiler produce verbose output that lists
11606           # what "hidden" libraries, object files and flags are used when
11607           # linking a shared library.
11608           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11609
11610         else
11611           # FIXME: insert proper C++ library support
11612           ld_shlibs_CXX=no
11613         fi
11614         ;;
11615     esac
11616     ;;
11617   osf4* | osf5*)
11618     case $cc_basename in
11619       KCC*)
11620         # Kuck and Associates, Inc. (KAI) C++ Compiler
11621
11622         # KCC will only create a shared library if the output file
11623         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11624         # to its proper name (with version) after linking.
11625         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'
11626
11627         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11628         hardcode_libdir_separator_CXX=:
11629
11630         # Archives containing C++ object files must be created using
11631         # the KAI C++ compiler.
11632         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11633         ;;
11634       RCC*)
11635         # Rational C++ 2.4.1
11636         # FIXME: insert proper C++ library support
11637         ld_shlibs_CXX=no
11638         ;;
11639       cxx*)
11640         allow_undefined_flag_CXX=' -expect_unresolved \*'
11641         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'
11642         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11643           echo "-hidden">> $lib.exp~
11644           $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~
11645           $rm $lib.exp'
11646
11647         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11648         hardcode_libdir_separator_CXX=:
11649
11650         # Commands to make compiler produce verbose output that lists
11651         # what "hidden" libraries, object files and flags are used when
11652         # linking a shared library.
11653         #
11654         # There doesn't appear to be a way to prevent this compiler from
11655         # explicitly linking system object files so we need to strip them
11656         # from the output so that they don't get included in the library
11657         # dependencies.
11658         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'
11659         ;;
11660       *)
11661         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11662           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11663          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'
11664
11665           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11666           hardcode_libdir_separator_CXX=:
11667
11668           # Commands to make compiler produce verbose output that lists
11669           # what "hidden" libraries, object files and flags are used when
11670           # linking a shared library.
11671           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11672
11673         else
11674           # FIXME: insert proper C++ library support
11675           ld_shlibs_CXX=no
11676         fi
11677         ;;
11678     esac
11679     ;;
11680   psos*)
11681     # FIXME: insert proper C++ library support
11682     ld_shlibs_CXX=no
11683     ;;
11684   sunos4*)
11685     case $cc_basename in
11686       CC*)
11687         # Sun C++ 4.x
11688         # FIXME: insert proper C++ library support
11689         ld_shlibs_CXX=no
11690         ;;
11691       lcc*)
11692         # Lucid
11693         # FIXME: insert proper C++ library support
11694         ld_shlibs_CXX=no
11695         ;;
11696       *)
11697         # FIXME: insert proper C++ library support
11698         ld_shlibs_CXX=no
11699         ;;
11700     esac
11701     ;;
11702   solaris*)
11703     case $cc_basename in
11704       CC*)
11705         # Sun C++ 4.2, 5.x and Centerline C++
11706         archive_cmds_need_lc_CXX=yes
11707         no_undefined_flag_CXX=' -zdefs'
11708         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11709         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11710         $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'
11711
11712         hardcode_libdir_flag_spec_CXX='-R$libdir'
11713         hardcode_shlibpath_var_CXX=no
11714         case $host_os in
11715           solaris2.[0-5] | solaris2.[0-5].*) ;;
11716           *)
11717             # The C++ compiler is used as linker so we must use $wl
11718             # flag to pass the commands to the underlying system
11719             # linker. We must also pass each convience library through
11720             # to the system linker between allextract/defaultextract.
11721             # The C++ compiler will combine linker options so we
11722             # cannot just pass the convience library names through
11723             # without $wl.
11724             # Supported since Solaris 2.6 (maybe 2.5.1?)
11725             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'
11726             ;;
11727         esac
11728         link_all_deplibs_CXX=yes
11729
11730         output_verbose_link_cmd='echo'
11731
11732         # Archives containing C++ object files must be created using
11733         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11734         # necessary to make sure instantiated templates are included
11735         # in the archive.
11736         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11737         ;;
11738       gcx*)
11739         # Green Hills C++ Compiler
11740         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11741
11742         # The C++ compiler must be used to create the archive.
11743         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11744         ;;
11745       *)
11746         # GNU C++ compiler with Solaris linker
11747         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11748           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11749           if $CC --version | grep -v '^2\.7' > /dev/null; then
11750             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11751             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11752                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11753
11754             # Commands to make compiler produce verbose output that lists
11755             # what "hidden" libraries, object files and flags are used when
11756             # linking a shared library.
11757             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11758           else
11759             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11760             # platform.
11761             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11762             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11763                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11764
11765             # Commands to make compiler produce verbose output that lists
11766             # what "hidden" libraries, object files and flags are used when
11767             # linking a shared library.
11768             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11769           fi
11770
11771           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11772         fi
11773         ;;
11774     esac
11775     ;;
11776   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11777     no_undefined_flag_CXX='${wl}-z,text'
11778     archive_cmds_need_lc_CXX=no
11779     hardcode_shlibpath_var_CXX=no
11780     runpath_var='LD_RUN_PATH'
11781
11782     case $cc_basename in
11783       CC*)
11784         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11785         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786         ;;
11787       *)
11788         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11789         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11790         ;;
11791     esac
11792     ;;
11793   sysv5* | sco3.2v5* | sco5v6*)
11794     # Note: We can NOT use -z defs as we might desire, because we do not
11795     # link with -lc, and that would cause any symbols used from libc to
11796     # always be unresolved, which means just about no library would
11797     # ever link correctly.  If we're not using GNU ld we use -z text
11798     # though, which does catch some bad symbols but isn't as heavy-handed
11799     # as -z defs.
11800     # For security reasons, it is highly recommended that you always
11801     # use absolute paths for naming shared libraries, and exclude the
11802     # DT_RUNPATH tag from executables and libraries.  But doing so
11803     # requires that you compile everything twice, which is a pain.
11804     # So that behaviour is only enabled if SCOABSPATH is set to a
11805     # non-empty value in the environment.  Most likely only useful for
11806     # creating official distributions of packages.
11807     # This is a hack until libtool officially supports absolute path
11808     # names for shared libraries.
11809     no_undefined_flag_CXX='${wl}-z,text'
11810     allow_undefined_flag_CXX='${wl}-z,nodefs'
11811     archive_cmds_need_lc_CXX=no
11812     hardcode_shlibpath_var_CXX=no
11813     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11814     hardcode_libdir_separator_CXX=':'
11815     link_all_deplibs_CXX=yes
11816     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11817     runpath_var='LD_RUN_PATH'
11818
11819     case $cc_basename in
11820       CC*)
11821         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11822         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823         ;;
11824       *)
11825         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11827         ;;
11828     esac
11829     ;;
11830   tandem*)
11831     case $cc_basename in
11832       NCC*)
11833         # NonStop-UX NCC 3.20
11834         # FIXME: insert proper C++ library support
11835         ld_shlibs_CXX=no
11836         ;;
11837       *)
11838         # FIXME: insert proper C++ library support
11839         ld_shlibs_CXX=no
11840         ;;
11841     esac
11842     ;;
11843   vxworks*)
11844     # FIXME: insert proper C++ library support
11845     ld_shlibs_CXX=no
11846     ;;
11847   *)
11848     # FIXME: insert proper C++ library support
11849     ld_shlibs_CXX=no
11850     ;;
11851 esac
11852 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11853 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11854 test "$ld_shlibs_CXX" = no && can_build_shared=no
11855
11856 GCC_CXX="$GXX"
11857 LD_CXX="$LD"
11858
11859
11860 cat > conftest.$ac_ext <<EOF
11861 class Foo
11862 {
11863 public:
11864   Foo (void) { a = 0; }
11865 private:
11866   int a;
11867 };
11868 EOF
11869
11870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11871   (eval $ac_compile) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; then
11875   # Parse the compiler output and extract the necessary
11876   # objects, libraries and library flags.
11877
11878   # Sentinel used to keep track of whether or not we are before
11879   # the conftest object file.
11880   pre_test_object_deps_done=no
11881
11882   # The `*' in the case matches for architectures that use `case' in
11883   # $output_verbose_cmd can trigger glob expansion during the loop
11884   # eval without this substitution.
11885   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11886
11887   for p in `eval $output_verbose_link_cmd`; do
11888     case $p in
11889
11890     -L* | -R* | -l*)
11891        # Some compilers place space between "-{L,R}" and the path.
11892        # Remove the space.
11893        if test $p = "-L" \
11894           || test $p = "-R"; then
11895          prev=$p
11896          continue
11897        else
11898          prev=
11899        fi
11900
11901        if test "$pre_test_object_deps_done" = no; then
11902          case $p in
11903          -L* | -R*)
11904            # Internal compiler library paths should come after those
11905            # provided the user.  The postdeps already come after the
11906            # user supplied libs so there is no need to process them.
11907            if test -z "$compiler_lib_search_path_CXX"; then
11908              compiler_lib_search_path_CXX="${prev}${p}"
11909            else
11910              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11911            fi
11912            ;;
11913          # The "-l" case would never come before the object being
11914          # linked, so don't bother handling this case.
11915          esac
11916        else
11917          if test -z "$postdeps_CXX"; then
11918            postdeps_CXX="${prev}${p}"
11919          else
11920            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11921          fi
11922        fi
11923        ;;
11924
11925     *.$objext)
11926        # This assumes that the test object file only shows up
11927        # once in the compiler output.
11928        if test "$p" = "conftest.$objext"; then
11929          pre_test_object_deps_done=yes
11930          continue
11931        fi
11932
11933        if test "$pre_test_object_deps_done" = no; then
11934          if test -z "$predep_objects_CXX"; then
11935            predep_objects_CXX="$p"
11936          else
11937            predep_objects_CXX="$predep_objects_CXX $p"
11938          fi
11939        else
11940          if test -z "$postdep_objects_CXX"; then
11941            postdep_objects_CXX="$p"
11942          else
11943            postdep_objects_CXX="$postdep_objects_CXX $p"
11944          fi
11945        fi
11946        ;;
11947
11948     *) ;; # Ignore the rest.
11949
11950     esac
11951   done
11952
11953   # Clean up.
11954   rm -f a.out a.exe
11955 else
11956   echo "libtool.m4: error: problem compiling CXX test program"
11957 fi
11958
11959 $rm -f confest.$objext
11960
11961 # PORTME: override above test on systems where it is broken
11962 case $host_os in
11963 interix3*)
11964   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11965   # hack all around it, let's just trust "g++" to DTRT.
11966   predep_objects_CXX=
11967   postdep_objects_CXX=
11968   postdeps_CXX=
11969   ;;
11970
11971 solaris*)
11972   case $cc_basename in
11973   CC*)
11974     # Adding this requires a known-good setup of shared libraries for
11975     # Sun compiler versions before 5.6, else PIC objects from an old
11976     # archive will be linked into the output, leading to subtle bugs.
11977     postdeps_CXX='-lCstd -lCrun'
11978     ;;
11979   esac
11980   ;;
11981 esac
11982
11983
11984 case " $postdeps_CXX " in
11985 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11986 esac
11987
11988 lt_prog_compiler_wl_CXX=
11989 lt_prog_compiler_pic_CXX=
11990 lt_prog_compiler_static_CXX=
11991
11992 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11993 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11994
11995   # C++ specific cases for pic, static, wl, etc.
11996   if test "$GXX" = yes; then
11997     lt_prog_compiler_wl_CXX='-Wl,'
11998     lt_prog_compiler_static_CXX='-static'
11999
12000     case $host_os in
12001     aix*)
12002       # All AIX code is PIC.
12003       if test "$host_cpu" = ia64; then
12004         # AIX 5 now supports IA64 processor
12005         lt_prog_compiler_static_CXX='-Bstatic'
12006       fi
12007       ;;
12008     amigaos*)
12009       # FIXME: we need at least 68020 code to build shared libraries, but
12010       # adding the `-m68020' flag to GCC prevents building anything better,
12011       # like `-m68040'.
12012       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12013       ;;
12014     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12015       # PIC is the default for these OSes.
12016       ;;
12017     mingw* | os2* | pw32*)
12018       # This hack is so that the source file can tell whether it is being
12019       # built for inclusion in a dll (and should export symbols for example).
12020       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12021       ;;
12022     darwin* | rhapsody*)
12023       # PIC is the default on this platform
12024       # Common symbols not allowed in MH_DYLIB files
12025       lt_prog_compiler_pic_CXX='-fno-common'
12026       ;;
12027     *djgpp*)
12028       # DJGPP does not support shared libraries at all
12029       lt_prog_compiler_pic_CXX=
12030       ;;
12031     interix3*)
12032       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12033       # Instead, we relocate shared libraries at runtime.
12034       ;;
12035     sysv4*MP*)
12036       if test -d /usr/nec; then
12037         lt_prog_compiler_pic_CXX=-Kconform_pic
12038       fi
12039       ;;
12040     hpux*)
12041       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12042       # not for PA HP-UX.
12043       case $host_cpu in
12044       hppa*64*|ia64*)
12045         ;;
12046       *)
12047         lt_prog_compiler_pic_CXX='-fPIC'
12048         ;;
12049       esac
12050       ;;
12051     *)
12052       lt_prog_compiler_pic_CXX='-fPIC'
12053       ;;
12054     esac
12055   else
12056     case $host_os in
12057       aix4* | aix5*)
12058         # All AIX code is PIC.
12059         if test "$host_cpu" = ia64; then
12060           # AIX 5 now supports IA64 processor
12061           lt_prog_compiler_static_CXX='-Bstatic'
12062         else
12063           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12064         fi
12065         ;;
12066       chorus*)
12067         case $cc_basename in
12068         cxch68*)
12069           # Green Hills C++ Compiler
12070           # _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"
12071           ;;
12072         esac
12073         ;;
12074        darwin*)
12075          # PIC is the default on this platform
12076          # Common symbols not allowed in MH_DYLIB files
12077          case $cc_basename in
12078            xlc*)
12079            lt_prog_compiler_pic_CXX='-qnocommon'
12080            lt_prog_compiler_wl_CXX='-Wl,'
12081            ;;
12082          esac
12083        ;;
12084       dgux*)
12085         case $cc_basename in
12086           ec++*)
12087             lt_prog_compiler_pic_CXX='-KPIC'
12088             ;;
12089           ghcx*)
12090             # Green Hills C++ Compiler
12091             lt_prog_compiler_pic_CXX='-pic'
12092             ;;
12093           *)
12094             ;;
12095         esac
12096         ;;
12097       freebsd* | dragonfly*)
12098         # FreeBSD uses GNU C++
12099         ;;
12100       hpux9* | hpux10* | hpux11*)
12101         case $cc_basename in
12102           CC*)
12103             lt_prog_compiler_wl_CXX='-Wl,'
12104             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12105             if test "$host_cpu" != ia64; then
12106               lt_prog_compiler_pic_CXX='+Z'
12107             fi
12108             ;;
12109           aCC*)
12110             lt_prog_compiler_wl_CXX='-Wl,'
12111             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12112             case $host_cpu in
12113             hppa*64*|ia64*)
12114               # +Z the default
12115               ;;
12116             *)
12117               lt_prog_compiler_pic_CXX='+Z'
12118               ;;
12119             esac
12120             ;;
12121           *)
12122             ;;
12123         esac
12124         ;;
12125       interix*)
12126         # This is c89, which is MS Visual C++ (no shared libs)
12127         # Anyone wants to do a port?
12128         ;;
12129       irix5* | irix6* | nonstopux*)
12130         case $cc_basename in
12131           CC*)
12132             lt_prog_compiler_wl_CXX='-Wl,'
12133             lt_prog_compiler_static_CXX='-non_shared'
12134             # CC pic flag -KPIC is the default.
12135             ;;
12136           *)
12137             ;;
12138         esac
12139         ;;
12140       linux* | k*bsd*-gnu)
12141         case $cc_basename in
12142           KCC*)
12143             # KAI C++ Compiler
12144             lt_prog_compiler_wl_CXX='--backend -Wl,'
12145             lt_prog_compiler_pic_CXX='-fPIC'
12146             ;;
12147           icpc* | ecpc*)
12148             # Intel C++
12149             lt_prog_compiler_wl_CXX='-Wl,'
12150             lt_prog_compiler_pic_CXX='-KPIC'
12151             lt_prog_compiler_static_CXX='-static'
12152             ;;
12153           pgCC*)
12154             # Portland Group C++ compiler.
12155             lt_prog_compiler_wl_CXX='-Wl,'
12156             lt_prog_compiler_pic_CXX='-fpic'
12157             lt_prog_compiler_static_CXX='-Bstatic'
12158             ;;
12159           cxx*)
12160             # Compaq C++
12161             # Make sure the PIC flag is empty.  It appears that all Alpha
12162             # Linux and Compaq Tru64 Unix objects are PIC.
12163             lt_prog_compiler_pic_CXX=
12164             lt_prog_compiler_static_CXX='-non_shared'
12165             ;;
12166           *)
12167             ;;
12168         esac
12169         ;;
12170       lynxos*)
12171         ;;
12172       m88k*)
12173         ;;
12174       mvs*)
12175         case $cc_basename in
12176           cxx*)
12177             lt_prog_compiler_pic_CXX='-W c,exportall'
12178             ;;
12179           *)
12180             ;;
12181         esac
12182         ;;
12183       netbsd* | netbsdelf*-gnu)
12184         ;;
12185       osf3* | osf4* | osf5*)
12186         case $cc_basename in
12187           KCC*)
12188             lt_prog_compiler_wl_CXX='--backend -Wl,'
12189             ;;
12190           RCC*)
12191             # Rational C++ 2.4.1
12192             lt_prog_compiler_pic_CXX='-pic'
12193             ;;
12194           cxx*)
12195             # Digital/Compaq C++
12196             lt_prog_compiler_wl_CXX='-Wl,'
12197             # Make sure the PIC flag is empty.  It appears that all Alpha
12198             # Linux and Compaq Tru64 Unix objects are PIC.
12199             lt_prog_compiler_pic_CXX=
12200             lt_prog_compiler_static_CXX='-non_shared'
12201             ;;
12202           *)
12203             ;;
12204         esac
12205         ;;
12206       psos*)
12207         ;;
12208       solaris*)
12209         case $cc_basename in
12210           CC*)
12211             # Sun C++ 4.2, 5.x and Centerline C++
12212             lt_prog_compiler_pic_CXX='-KPIC'
12213             lt_prog_compiler_static_CXX='-Bstatic'
12214             lt_prog_compiler_wl_CXX='-Qoption ld '
12215             ;;
12216           gcx*)
12217             # Green Hills C++ Compiler
12218             lt_prog_compiler_pic_CXX='-PIC'
12219             ;;
12220           *)
12221             ;;
12222         esac
12223         ;;
12224       sunos4*)
12225         case $cc_basename in
12226           CC*)
12227             # Sun C++ 4.x
12228             lt_prog_compiler_pic_CXX='-pic'
12229             lt_prog_compiler_static_CXX='-Bstatic'
12230             ;;
12231           lcc*)
12232             # Lucid
12233             lt_prog_compiler_pic_CXX='-pic'
12234             ;;
12235           *)
12236             ;;
12237         esac
12238         ;;
12239       tandem*)
12240         case $cc_basename in
12241           NCC*)
12242             # NonStop-UX NCC 3.20
12243             lt_prog_compiler_pic_CXX='-KPIC'
12244             ;;
12245           *)
12246             ;;
12247         esac
12248         ;;
12249       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12250         case $cc_basename in
12251           CC*)
12252             lt_prog_compiler_wl_CXX='-Wl,'
12253             lt_prog_compiler_pic_CXX='-KPIC'
12254             lt_prog_compiler_static_CXX='-Bstatic'
12255             ;;
12256         esac
12257         ;;
12258       vxworks*)
12259         ;;
12260       *)
12261         lt_prog_compiler_can_build_shared_CXX=no
12262         ;;
12263     esac
12264   fi
12265
12266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12267 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12268
12269 #
12270 # Check to make sure the PIC flag actually works.
12271 #
12272 if test -n "$lt_prog_compiler_pic_CXX"; then
12273
12274 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12275 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12276 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   lt_prog_compiler_pic_works_CXX=no
12280   ac_outfile=conftest.$ac_objext
12281    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12282    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12283    # Insert the option either (1) after the last *FLAGS variable, or
12284    # (2) before a word containing "conftest.", or (3) at the end.
12285    # Note that $ac_compile itself does not contain backslashes and begins
12286    # with a dollar sign (not a hyphen), so the echo should work correctly.
12287    # The option is referenced via a variable to avoid confusing sed.
12288    lt_compile=`echo "$ac_compile" | $SED \
12289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12291    -e 's:$: $lt_compiler_flag:'`
12292    (eval echo "\"\$as_me:12292: $lt_compile\"" >&5)
12293    (eval "$lt_compile" 2>conftest.err)
12294    ac_status=$?
12295    cat conftest.err >&5
12296    echo "$as_me:12296: \$? = $ac_status" >&5
12297    if (exit $ac_status) && test -s "$ac_outfile"; then
12298      # The compiler can only warn and ignore the option if not recognized
12299      # So say no if there are warnings other than the usual output.
12300      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12301      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12302      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12303        lt_prog_compiler_pic_works_CXX=yes
12304      fi
12305    fi
12306    $rm conftest*
12307
12308 fi
12309 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12310 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12311
12312 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12313     case $lt_prog_compiler_pic_CXX in
12314      "" | " "*) ;;
12315      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12316      esac
12317 else
12318     lt_prog_compiler_pic_CXX=
12319      lt_prog_compiler_can_build_shared_CXX=no
12320 fi
12321
12322 fi
12323 case $host_os in
12324   # For platforms which do not support PIC, -DPIC is meaningless:
12325   *djgpp*)
12326     lt_prog_compiler_pic_CXX=
12327     ;;
12328   *)
12329     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12330     ;;
12331 esac
12332
12333 #
12334 # Check to make sure the static flag actually works.
12335 #
12336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12337 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12338 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12339 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   lt_prog_compiler_static_works_CXX=no
12343    save_LDFLAGS="$LDFLAGS"
12344    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12345    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12346    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12347      # The linker can only warn and ignore the option if not recognized
12348      # So say no if there are warnings
12349      if test -s conftest.err; then
12350        # Append any errors to the config.log.
12351        cat conftest.err 1>&5
12352        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12353        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12354        if diff conftest.exp conftest.er2 >/dev/null; then
12355          lt_prog_compiler_static_works_CXX=yes
12356        fi
12357      else
12358        lt_prog_compiler_static_works_CXX=yes
12359      fi
12360    fi
12361    $rm conftest*
12362    LDFLAGS="$save_LDFLAGS"
12363
12364 fi
12365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12366 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12367
12368 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12369     :
12370 else
12371     lt_prog_compiler_static_CXX=
12372 fi
12373
12374
12375 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12377 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   lt_cv_prog_compiler_c_o_CXX=no
12381    $rm -r conftest 2>/dev/null
12382    mkdir conftest
12383    cd conftest
12384    mkdir out
12385    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12386
12387    lt_compiler_flag="-o out/conftest2.$ac_objext"
12388    # Insert the option either (1) after the last *FLAGS variable, or
12389    # (2) before a word containing "conftest.", or (3) at the end.
12390    # Note that $ac_compile itself does not contain backslashes and begins
12391    # with a dollar sign (not a hyphen), so the echo should work correctly.
12392    lt_compile=`echo "$ac_compile" | $SED \
12393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12395    -e 's:$: $lt_compiler_flag:'`
12396    (eval echo "\"\$as_me:12396: $lt_compile\"" >&5)
12397    (eval "$lt_compile" 2>out/conftest.err)
12398    ac_status=$?
12399    cat out/conftest.err >&5
12400    echo "$as_me:12400: \$? = $ac_status" >&5
12401    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12402    then
12403      # The compiler can only warn and ignore the option if not recognized
12404      # So say no if there are warnings
12405      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12406      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12407      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12408        lt_cv_prog_compiler_c_o_CXX=yes
12409      fi
12410    fi
12411    chmod u+w . 2>&5
12412    $rm conftest*
12413    # SGI C++ compiler will create directory out/ii_files/ for
12414    # template instantiation
12415    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12416    $rm out/* && rmdir out
12417    cd ..
12418    rmdir conftest
12419    $rm conftest*
12420
12421 fi
12422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12423 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12424
12425
12426 hard_links="nottested"
12427 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12428   # do not overwrite the value of need_locks provided by the user
12429   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12430 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12431   hard_links=yes
12432   $rm conftest*
12433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12434   touch conftest.a
12435   ln conftest.a conftest.b 2>&5 || hard_links=no
12436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12437   { echo "$as_me:$LINENO: result: $hard_links" >&5
12438 echo "${ECHO_T}$hard_links" >&6; }
12439   if test "$hard_links" = no; then
12440     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12441 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12442     need_locks=warn
12443   fi
12444 else
12445   need_locks=no
12446 fi
12447
12448 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12450
12451   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12452   case $host_os in
12453   aix4* | aix5*)
12454     # If we're using GNU nm, then we don't want the "-C" option.
12455     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12456     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12457       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'
12458     else
12459       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'
12460     fi
12461     ;;
12462   pw32*)
12463     export_symbols_cmds_CXX="$ltdll_cmds"
12464   ;;
12465   cygwin* | mingw*)
12466     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'
12467   ;;
12468   linux* | k*bsd*-gnu)
12469     link_all_deplibs_CXX=no
12470   ;;
12471   *)
12472     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12473   ;;
12474   esac
12475
12476 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12477 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12478 test "$ld_shlibs_CXX" = no && can_build_shared=no
12479
12480 #
12481 # Do we need to explicitly link libc?
12482 #
12483 case "x$archive_cmds_need_lc_CXX" in
12484 x|xyes)
12485   # Assume -lc should be added
12486   archive_cmds_need_lc_CXX=yes
12487
12488   if test "$enable_shared" = yes && test "$GCC" = yes; then
12489     case $archive_cmds_CXX in
12490     *'~'*)
12491       # FIXME: we may have to deal with multi-command sequences.
12492       ;;
12493     '$CC '*)
12494       # Test whether the compiler implicitly links with -lc since on some
12495       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12496       # to ld, don't add -lc before -lgcc.
12497       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12498 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12499       $rm conftest*
12500       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12501
12502       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503   (eval $ac_compile) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } 2>conftest.err; then
12507         soname=conftest
12508         lib=conftest
12509         libobjs=conftest.$ac_objext
12510         deplibs=
12511         wl=$lt_prog_compiler_wl_CXX
12512         pic_flag=$lt_prog_compiler_pic_CXX
12513         compiler_flags=-v
12514         linker_flags=-v
12515         verstring=
12516         output_objdir=.
12517         libname=conftest
12518         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12519         allow_undefined_flag_CXX=
12520         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12521   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }
12525         then
12526           archive_cmds_need_lc_CXX=no
12527         else
12528           archive_cmds_need_lc_CXX=yes
12529         fi
12530         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12531       else
12532         cat conftest.err 1>&5
12533       fi
12534       $rm conftest*
12535       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12536 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12537       ;;
12538     esac
12539   fi
12540   ;;
12541 esac
12542
12543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12545 library_names_spec=
12546 libname_spec='lib$name'
12547 soname_spec=
12548 shrext_cmds=".so"
12549 postinstall_cmds=
12550 postuninstall_cmds=
12551 finish_cmds=
12552 finish_eval=
12553 shlibpath_var=
12554 shlibpath_overrides_runpath=unknown
12555 version_type=none
12556 dynamic_linker="$host_os ld.so"
12557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12558 if test "$GCC" = yes; then
12559   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12560   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12561     # if the path contains ";" then we assume it to be the separator
12562     # otherwise default to the standard path separator (i.e. ":") - it is
12563     # assumed that no part of a normal pathname contains ";" but that should
12564     # okay in the real world where ";" in dirpaths is itself problematic.
12565     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12566   else
12567     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12568   fi
12569 else
12570   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12571 fi
12572 need_lib_prefix=unknown
12573 hardcode_into_libs=no
12574
12575 # when you set need_version to no, make sure it does not cause -set_version
12576 # flags to be left without arguments
12577 need_version=unknown
12578
12579 case $host_os in
12580 aix3*)
12581   version_type=linux
12582   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12583   shlibpath_var=LIBPATH
12584
12585   # AIX 3 has no versioning support, so we append a major version to the name.
12586   soname_spec='${libname}${release}${shared_ext}$major'
12587   ;;
12588
12589 aix4* | aix5*)
12590   version_type=linux
12591   need_lib_prefix=no
12592   need_version=no
12593   hardcode_into_libs=yes
12594   if test "$host_cpu" = ia64; then
12595     # AIX 5 supports IA64
12596     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12597     shlibpath_var=LD_LIBRARY_PATH
12598   else
12599     # With GCC up to 2.95.x, collect2 would create an import file
12600     # for dependence libraries.  The import file would start with
12601     # the line `#! .'.  This would cause the generated library to
12602     # depend on `.', always an invalid library.  This was fixed in
12603     # development snapshots of GCC prior to 3.0.
12604     case $host_os in
12605       aix4 | aix4.[01] | aix4.[01].*)
12606       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12607            echo ' yes '
12608            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12609         :
12610       else
12611         can_build_shared=no
12612       fi
12613       ;;
12614     esac
12615     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12616     # soname into executable. Probably we can add versioning support to
12617     # collect2, so additional links can be useful in future.
12618     if test "$aix_use_runtimelinking" = yes; then
12619       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12620       # instead of lib<name>.a to let people know that these are not
12621       # typical AIX shared libraries.
12622       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623     else
12624       # We preserve .a as extension for shared libraries through AIX4.2
12625       # and later when we are not doing run time linking.
12626       library_names_spec='${libname}${release}.a $libname.a'
12627       soname_spec='${libname}${release}${shared_ext}$major'
12628     fi
12629     shlibpath_var=LIBPATH
12630   fi
12631   ;;
12632
12633 amigaos*)
12634   library_names_spec='$libname.ixlibrary $libname.a'
12635   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12636   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'
12637   ;;
12638
12639 beos*)
12640   library_names_spec='${libname}${shared_ext}'
12641   dynamic_linker="$host_os ld.so"
12642   shlibpath_var=LIBRARY_PATH
12643   ;;
12644
12645 bsdi[45]*)
12646   version_type=linux
12647   need_version=no
12648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12649   soname_spec='${libname}${release}${shared_ext}$major'
12650   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12651   shlibpath_var=LD_LIBRARY_PATH
12652   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12653   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12654   # the default ld.so.conf also contains /usr/contrib/lib and
12655   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12656   # libtool to hard-code these into programs
12657   ;;
12658
12659 cygwin* | mingw* | pw32*)
12660   version_type=windows
12661   shrext_cmds=".dll"
12662   need_version=no
12663   need_lib_prefix=no
12664
12665   case $GCC,$host_os in
12666   yes,cygwin* | yes,mingw* | yes,pw32*)
12667     library_names_spec='$libname.dll.a'
12668     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12669     postinstall_cmds='base_file=`basename \${file}`~
12670       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12671       dldir=$destdir/`dirname \$dlpath`~
12672       test -d \$dldir || mkdir -p \$dldir~
12673       $install_prog $dir/$dlname \$dldir/$dlname~
12674       chmod a+x \$dldir/$dlname'
12675     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12676       dlpath=$dir/\$dldll~
12677        $rm \$dlpath'
12678     shlibpath_overrides_runpath=yes
12679
12680     case $host_os in
12681     cygwin*)
12682       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12683       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12684       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12685       ;;
12686     mingw*)
12687       # MinGW DLLs use traditional 'lib' prefix
12688       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12689       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12690       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12691         # It is most probably a Windows format PATH printed by
12692         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12693         # path with ; separators, and with drive letters. We can handle the
12694         # drive letters (cygwin fileutils understands them), so leave them,
12695         # especially as we might pass files found there to a mingw objdump,
12696         # which wouldn't understand a cygwinified path. Ahh.
12697         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12698       else
12699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12700       fi
12701       ;;
12702     pw32*)
12703       # pw32 DLLs use 'pw' prefix rather than 'lib'
12704       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12705       ;;
12706     esac
12707     ;;
12708
12709   *)
12710     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12711     ;;
12712   esac
12713   dynamic_linker='Win32 ld.exe'
12714   # FIXME: first we should search . and the directory the executable is in
12715   shlibpath_var=PATH
12716   ;;
12717
12718 darwin* | rhapsody*)
12719   dynamic_linker="$host_os dyld"
12720   version_type=darwin
12721   need_lib_prefix=no
12722   need_version=no
12723   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12724   soname_spec='${libname}${release}${major}$shared_ext'
12725   shlibpath_overrides_runpath=yes
12726   shlibpath_var=DYLD_LIBRARY_PATH
12727   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12728   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12729   if test "$GCC" = yes; then
12730     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"`
12731   else
12732     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12733   fi
12734   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12735   ;;
12736
12737 dgux*)
12738   version_type=linux
12739   need_lib_prefix=no
12740   need_version=no
12741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12742   soname_spec='${libname}${release}${shared_ext}$major'
12743   shlibpath_var=LD_LIBRARY_PATH
12744   ;;
12745
12746 freebsd1*)
12747   dynamic_linker=no
12748   ;;
12749
12750 freebsd* | dragonfly*)
12751   # DragonFly does not have aout.  When/if they implement a new
12752   # versioning mechanism, adjust this.
12753   if test -x /usr/bin/objformat; then
12754     objformat=`/usr/bin/objformat`
12755   else
12756     case $host_os in
12757     freebsd[123]*) objformat=aout ;;
12758     *) objformat=elf ;;
12759     esac
12760   fi
12761   version_type=freebsd-$objformat
12762   case $version_type in
12763     freebsd-elf*)
12764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12765       need_version=no
12766       need_lib_prefix=no
12767       ;;
12768     freebsd-*)
12769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12770       need_version=yes
12771       ;;
12772   esac
12773   shlibpath_var=LD_LIBRARY_PATH
12774   case $host_os in
12775   freebsd2*)
12776     shlibpath_overrides_runpath=yes
12777     ;;
12778   freebsd3.[01]* | freebsdelf3.[01]*)
12779     shlibpath_overrides_runpath=yes
12780     hardcode_into_libs=yes
12781     ;;
12782   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12783   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12784     shlibpath_overrides_runpath=no
12785     hardcode_into_libs=yes
12786     ;;
12787   freebsd*) # from 4.6 on
12788     shlibpath_overrides_runpath=yes
12789     hardcode_into_libs=yes
12790     ;;
12791   esac
12792   ;;
12793
12794 gnu*)
12795   version_type=linux
12796   need_lib_prefix=no
12797   need_version=no
12798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   hardcode_into_libs=yes
12802   ;;
12803
12804 hpux9* | hpux10* | hpux11*)
12805   # Give a soname corresponding to the major version so that dld.sl refuses to
12806   # link against other versions.
12807   version_type=sunos
12808   need_lib_prefix=no
12809   need_version=no
12810   case $host_cpu in
12811   ia64*)
12812     shrext_cmds='.so'
12813     hardcode_into_libs=yes
12814     dynamic_linker="$host_os dld.so"
12815     shlibpath_var=LD_LIBRARY_PATH
12816     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818     soname_spec='${libname}${release}${shared_ext}$major'
12819     if test "X$HPUX_IA64_MODE" = X32; then
12820       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12821     else
12822       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12823     fi
12824     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12825     ;;
12826    hppa*64*)
12827      shrext_cmds='.sl'
12828      hardcode_into_libs=yes
12829      dynamic_linker="$host_os dld.sl"
12830      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12831      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12832      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833      soname_spec='${libname}${release}${shared_ext}$major'
12834      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12835      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12836      ;;
12837    *)
12838     shrext_cmds='.sl'
12839     dynamic_linker="$host_os dld.sl"
12840     shlibpath_var=SHLIB_PATH
12841     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
12845   esac
12846   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12847   postinstall_cmds='chmod 555 $lib'
12848   ;;
12849
12850 interix3*)
12851   version_type=linux
12852   need_lib_prefix=no
12853   need_version=no
12854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12855   soname_spec='${libname}${release}${shared_ext}$major'
12856   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12857   shlibpath_var=LD_LIBRARY_PATH
12858   shlibpath_overrides_runpath=no
12859   hardcode_into_libs=yes
12860   ;;
12861
12862 irix5* | irix6* | nonstopux*)
12863   case $host_os in
12864     nonstopux*) version_type=nonstopux ;;
12865     *)
12866         if test "$lt_cv_prog_gnu_ld" = yes; then
12867                 version_type=linux
12868         else
12869                 version_type=irix
12870         fi ;;
12871   esac
12872   need_lib_prefix=no
12873   need_version=no
12874   soname_spec='${libname}${release}${shared_ext}$major'
12875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12876   case $host_os in
12877   irix5* | nonstopux*)
12878     libsuff= shlibsuff=
12879     ;;
12880   *)
12881     case $LD in # libtool.m4 will add one of these switches to LD
12882     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12883       libsuff= shlibsuff= libmagic=32-bit;;
12884     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12885       libsuff=32 shlibsuff=N32 libmagic=N32;;
12886     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12887       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12888     *) libsuff= shlibsuff= libmagic=never-match;;
12889     esac
12890     ;;
12891   esac
12892   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12893   shlibpath_overrides_runpath=no
12894   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12895   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12896   hardcode_into_libs=yes
12897   ;;
12898
12899 # No shared lib support for Linux oldld, aout, or coff.
12900 linux*oldld* | linux*aout* | linux*coff*)
12901   dynamic_linker=no
12902   ;;
12903
12904 # This must be Linux ELF.
12905 linux* | k*bsd*-gnu)
12906   version_type=linux
12907   need_lib_prefix=no
12908   need_version=no
12909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12910   soname_spec='${libname}${release}${shared_ext}$major'
12911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12912   shlibpath_var=LD_LIBRARY_PATH
12913   shlibpath_overrides_runpath=no
12914   # This implies no fast_install, which is unacceptable.
12915   # Some rework will be needed to allow for fast_install
12916   # before this can be enabled.
12917   hardcode_into_libs=yes
12918
12919   # Append ld.so.conf contents to the search path
12920   if test -f /etc/ld.so.conf; then
12921     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' ' '`
12922     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12923   fi
12924
12925   # We used to test for /lib/ld.so.1 and disable shared libraries on
12926   # powerpc, because MkLinux only supported shared libraries with the
12927   # GNU dynamic linker.  Since this was broken with cross compilers,
12928   # most powerpc-linux boxes support dynamic linking these days and
12929   # people can always --disable-shared, the test was removed, and we
12930   # assume the GNU/Linux dynamic linker is in use.
12931   dynamic_linker='GNU/Linux ld.so'
12932   ;;
12933
12934 netbsdelf*-gnu)
12935   version_type=linux
12936   need_lib_prefix=no
12937   need_version=no
12938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12939   soname_spec='${libname}${release}${shared_ext}$major'
12940   shlibpath_var=LD_LIBRARY_PATH
12941   shlibpath_overrides_runpath=no
12942   hardcode_into_libs=yes
12943   dynamic_linker='NetBSD ld.elf_so'
12944   ;;
12945
12946 netbsd*)
12947   version_type=sunos
12948   need_lib_prefix=no
12949   need_version=no
12950   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12953     dynamic_linker='NetBSD (a.out) ld.so'
12954   else
12955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12956     soname_spec='${libname}${release}${shared_ext}$major'
12957     dynamic_linker='NetBSD ld.elf_so'
12958   fi
12959   shlibpath_var=LD_LIBRARY_PATH
12960   shlibpath_overrides_runpath=yes
12961   hardcode_into_libs=yes
12962   ;;
12963
12964 newsos6)
12965   version_type=linux
12966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12967   shlibpath_var=LD_LIBRARY_PATH
12968   shlibpath_overrides_runpath=yes
12969   ;;
12970
12971 nto-qnx*)
12972   version_type=linux
12973   need_lib_prefix=no
12974   need_version=no
12975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976   soname_spec='${libname}${release}${shared_ext}$major'
12977   shlibpath_var=LD_LIBRARY_PATH
12978   shlibpath_overrides_runpath=yes
12979   ;;
12980
12981 openbsd*)
12982   version_type=sunos
12983   sys_lib_dlsearch_path_spec="/usr/lib"
12984   need_lib_prefix=no
12985   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12986   case $host_os in
12987     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12988     *)                         need_version=no  ;;
12989   esac
12990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12991   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12992   shlibpath_var=LD_LIBRARY_PATH
12993   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12994     case $host_os in
12995       openbsd2.[89] | openbsd2.[89].*)
12996         shlibpath_overrides_runpath=no
12997         ;;
12998       *)
12999         shlibpath_overrides_runpath=yes
13000         ;;
13001       esac
13002   else
13003     shlibpath_overrides_runpath=yes
13004   fi
13005   ;;
13006
13007 os2*)
13008   libname_spec='$name'
13009   shrext_cmds=".dll"
13010   need_lib_prefix=no
13011   library_names_spec='$libname${shared_ext} $libname.a'
13012   dynamic_linker='OS/2 ld.exe'
13013   shlibpath_var=LIBPATH
13014   ;;
13015
13016 osf3* | osf4* | osf5*)
13017   version_type=osf
13018   need_lib_prefix=no
13019   need_version=no
13020   soname_spec='${libname}${release}${shared_ext}$major'
13021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022   shlibpath_var=LD_LIBRARY_PATH
13023   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13024   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13025   ;;
13026
13027 solaris*)
13028   version_type=linux
13029   need_lib_prefix=no
13030   need_version=no
13031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032   soname_spec='${libname}${release}${shared_ext}$major'
13033   shlibpath_var=LD_LIBRARY_PATH
13034   shlibpath_overrides_runpath=yes
13035   hardcode_into_libs=yes
13036   # ldd complains unless libraries are executable
13037   postinstall_cmds='chmod +x $lib'
13038   ;;
13039
13040 sunos4*)
13041   version_type=sunos
13042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13043   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13044   shlibpath_var=LD_LIBRARY_PATH
13045   shlibpath_overrides_runpath=yes
13046   if test "$with_gnu_ld" = yes; then
13047     need_lib_prefix=no
13048   fi
13049   need_version=yes
13050   ;;
13051
13052 sysv4 | sysv4.3*)
13053   version_type=linux
13054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055   soname_spec='${libname}${release}${shared_ext}$major'
13056   shlibpath_var=LD_LIBRARY_PATH
13057   case $host_vendor in
13058     sni)
13059       shlibpath_overrides_runpath=no
13060       need_lib_prefix=no
13061       export_dynamic_flag_spec='${wl}-Blargedynsym'
13062       runpath_var=LD_RUN_PATH
13063       ;;
13064     siemens)
13065       need_lib_prefix=no
13066       ;;
13067     motorola)
13068       need_lib_prefix=no
13069       need_version=no
13070       shlibpath_overrides_runpath=no
13071       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13072       ;;
13073   esac
13074   ;;
13075
13076 sysv4*MP*)
13077   if test -d /usr/nec ;then
13078     version_type=linux
13079     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13080     soname_spec='$libname${shared_ext}.$major'
13081     shlibpath_var=LD_LIBRARY_PATH
13082   fi
13083   ;;
13084
13085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13086   version_type=freebsd-elf
13087   need_lib_prefix=no
13088   need_version=no
13089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13090   soname_spec='${libname}${release}${shared_ext}$major'
13091   shlibpath_var=LD_LIBRARY_PATH
13092   hardcode_into_libs=yes
13093   if test "$with_gnu_ld" = yes; then
13094     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13095     shlibpath_overrides_runpath=no
13096   else
13097     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13098     shlibpath_overrides_runpath=yes
13099     case $host_os in
13100       sco3.2v5*)
13101         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13102         ;;
13103     esac
13104   fi
13105   sys_lib_dlsearch_path_spec='/usr/lib'
13106   ;;
13107
13108 uts4*)
13109   version_type=linux
13110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111   soname_spec='${libname}${release}${shared_ext}$major'
13112   shlibpath_var=LD_LIBRARY_PATH
13113   ;;
13114
13115 *)
13116   dynamic_linker=no
13117   ;;
13118 esac
13119 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13120 echo "${ECHO_T}$dynamic_linker" >&6; }
13121 test "$dynamic_linker" = no && can_build_shared=no
13122
13123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13124 if test "$GCC" = yes; then
13125   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13126 fi
13127
13128 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13130 hardcode_action_CXX=
13131 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13132    test -n "$runpath_var_CXX" || \
13133    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13134
13135   # We can hardcode non-existant directories.
13136   if test "$hardcode_direct_CXX" != no &&
13137      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13138      # have to relink, otherwise we might link with an installed library
13139      # when we should be linking with a yet-to-be-installed one
13140      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13141      test "$hardcode_minus_L_CXX" != no; then
13142     # Linking always hardcodes the temporary library directory.
13143     hardcode_action_CXX=relink
13144   else
13145     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13146     hardcode_action_CXX=immediate
13147   fi
13148 else
13149   # We cannot hardcode anything, or else we can only hardcode existing
13150   # directories.
13151   hardcode_action_CXX=unsupported
13152 fi
13153 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13154 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13155
13156 if test "$hardcode_action_CXX" = relink; then
13157   # Fast installation is not supported
13158   enable_fast_install=no
13159 elif test "$shlibpath_overrides_runpath" = yes ||
13160      test "$enable_shared" = no; then
13161   # Fast installation is not necessary
13162   enable_fast_install=needless
13163 fi
13164
13165
13166 # The else clause should only fire when bootstrapping the
13167 # libtool distribution, otherwise you forgot to ship ltmain.sh
13168 # with your package, and you will get complaints that there are
13169 # no rules to generate ltmain.sh.
13170 if test -f "$ltmain"; then
13171   # See if we are running on zsh, and set the options which allow our commands through
13172   # without removal of \ escapes.
13173   if test -n "${ZSH_VERSION+set}" ; then
13174     setopt NO_GLOB_SUBST
13175   fi
13176   # Now quote all the things that may contain metacharacters while being
13177   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13178   # variables and quote the copies for generation of the libtool script.
13179   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13180     SED SHELL STRIP \
13181     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13182     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13183     deplibs_check_method reload_flag reload_cmds need_locks \
13184     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13185     lt_cv_sys_global_symbol_to_c_name_address \
13186     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13187     old_postinstall_cmds old_postuninstall_cmds \
13188     compiler_CXX \
13189     CC_CXX \
13190     LD_CXX \
13191     lt_prog_compiler_wl_CXX \
13192     lt_prog_compiler_pic_CXX \
13193     lt_prog_compiler_static_CXX \
13194     lt_prog_compiler_no_builtin_flag_CXX \
13195     export_dynamic_flag_spec_CXX \
13196     thread_safe_flag_spec_CXX \
13197     whole_archive_flag_spec_CXX \
13198     enable_shared_with_static_runtimes_CXX \
13199     old_archive_cmds_CXX \
13200     old_archive_from_new_cmds_CXX \
13201     predep_objects_CXX \
13202     postdep_objects_CXX \
13203     predeps_CXX \
13204     postdeps_CXX \
13205     compiler_lib_search_path_CXX \
13206     archive_cmds_CXX \
13207     archive_expsym_cmds_CXX \
13208     postinstall_cmds_CXX \
13209     postuninstall_cmds_CXX \
13210     old_archive_from_expsyms_cmds_CXX \
13211     allow_undefined_flag_CXX \
13212     no_undefined_flag_CXX \
13213     export_symbols_cmds_CXX \
13214     hardcode_libdir_flag_spec_CXX \
13215     hardcode_libdir_flag_spec_ld_CXX \
13216     hardcode_libdir_separator_CXX \
13217     hardcode_automatic_CXX \
13218     module_cmds_CXX \
13219     module_expsym_cmds_CXX \
13220     lt_cv_prog_compiler_c_o_CXX \
13221     exclude_expsyms_CXX \
13222     include_expsyms_CXX; do
13223
13224     case $var in
13225     old_archive_cmds_CXX | \
13226     old_archive_from_new_cmds_CXX | \
13227     archive_cmds_CXX | \
13228     archive_expsym_cmds_CXX | \
13229     module_cmds_CXX | \
13230     module_expsym_cmds_CXX | \
13231     old_archive_from_expsyms_cmds_CXX | \
13232     export_symbols_cmds_CXX | \
13233     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13234     postinstall_cmds | postuninstall_cmds | \
13235     old_postinstall_cmds | old_postuninstall_cmds | \
13236     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13237       # Double-quote double-evaled strings.
13238       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13239       ;;
13240     *)
13241       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13242       ;;
13243     esac
13244   done
13245
13246   case $lt_echo in
13247   *'\$0 --fallback-echo"')
13248     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13249     ;;
13250   esac
13251
13252 cfgfile="$ofile"
13253
13254   cat <<__EOF__ >> "$cfgfile"
13255 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13256
13257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13258
13259 # Shell to use when invoking shell scripts.
13260 SHELL=$lt_SHELL
13261
13262 # Whether or not to build shared libraries.
13263 build_libtool_libs=$enable_shared
13264
13265 # Whether or not to build static libraries.
13266 build_old_libs=$enable_static
13267
13268 # Whether or not to add -lc for building shared libraries.
13269 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13270
13271 # Whether or not to disallow shared libs when runtime libs are static
13272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13273
13274 # Whether or not to optimize for fast installation.
13275 fast_install=$enable_fast_install
13276
13277 # The host system.
13278 host_alias=$host_alias
13279 host=$host
13280 host_os=$host_os
13281
13282 # The build system.
13283 build_alias=$build_alias
13284 build=$build
13285 build_os=$build_os
13286
13287 # An echo program that does not interpret backslashes.
13288 echo=$lt_echo
13289
13290 # The archiver.
13291 AR=$lt_AR
13292 AR_FLAGS=$lt_AR_FLAGS
13293
13294 # A C compiler.
13295 LTCC=$lt_LTCC
13296
13297 # LTCC compiler flags.
13298 LTCFLAGS=$lt_LTCFLAGS
13299
13300 # A language-specific compiler.
13301 CC=$lt_compiler_CXX
13302
13303 # Is the compiler the GNU C compiler?
13304 with_gcc=$GCC_CXX
13305
13306 # An ERE matcher.
13307 EGREP=$lt_EGREP
13308
13309 # The linker used to build libraries.
13310 LD=$lt_LD_CXX
13311
13312 # Whether we need hard or soft links.
13313 LN_S=$lt_LN_S
13314
13315 # A BSD-compatible nm program.
13316 NM=$lt_NM
13317
13318 # A symbol stripping program
13319 STRIP=$lt_STRIP
13320
13321 # Used to examine libraries when file_magic_cmd begins "file"
13322 MAGIC_CMD=$MAGIC_CMD
13323
13324 # Used on cygwin: DLL creation program.
13325 DLLTOOL="$DLLTOOL"
13326
13327 # Used on cygwin: object dumper.
13328 OBJDUMP="$OBJDUMP"
13329
13330 # Used on cygwin: assembler.
13331 AS="$AS"
13332
13333 # The name of the directory that contains temporary libtool files.
13334 objdir=$objdir
13335
13336 # How to create reloadable object files.
13337 reload_flag=$lt_reload_flag
13338 reload_cmds=$lt_reload_cmds
13339
13340 # How to pass a linker flag through the compiler.
13341 wl=$lt_lt_prog_compiler_wl_CXX
13342
13343 # Object file suffix (normally "o").
13344 objext="$ac_objext"
13345
13346 # Old archive suffix (normally "a").
13347 libext="$libext"
13348
13349 # Shared library suffix (normally ".so").
13350 shrext_cmds='$shrext_cmds'
13351
13352 # Executable file suffix (normally "").
13353 exeext="$exeext"
13354
13355 # Additional compiler flags for building library objects.
13356 pic_flag=$lt_lt_prog_compiler_pic_CXX
13357 pic_mode=$pic_mode
13358
13359 # What is the maximum length of a command?
13360 max_cmd_len=$lt_cv_sys_max_cmd_len
13361
13362 # Does compiler simultaneously support -c and -o options?
13363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13364
13365 # Must we lock files when doing compilation?
13366 need_locks=$lt_need_locks
13367
13368 # Do we need the lib prefix for modules?
13369 need_lib_prefix=$need_lib_prefix
13370
13371 # Do we need a version for libraries?
13372 need_version=$need_version
13373
13374 # Whether dlopen is supported.
13375 dlopen_support=$enable_dlopen
13376
13377 # Whether dlopen of programs is supported.
13378 dlopen_self=$enable_dlopen_self
13379
13380 # Whether dlopen of statically linked programs is supported.
13381 dlopen_self_static=$enable_dlopen_self_static
13382
13383 # Compiler flag to prevent dynamic linking.
13384 link_static_flag=$lt_lt_prog_compiler_static_CXX
13385
13386 # Compiler flag to turn off builtin functions.
13387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13388
13389 # Compiler flag to allow reflexive dlopens.
13390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13391
13392 # Compiler flag to generate shared objects directly from archives.
13393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13394
13395 # Compiler flag to generate thread-safe objects.
13396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13397
13398 # Library versioning type.
13399 version_type=$version_type
13400
13401 # Format of library name prefix.
13402 libname_spec=$lt_libname_spec
13403
13404 # List of archive names.  First name is the real one, the rest are links.
13405 # The last name is the one that the linker finds with -lNAME.
13406 library_names_spec=$lt_library_names_spec
13407
13408 # The coded name of the library, if different from the real name.
13409 soname_spec=$lt_soname_spec
13410
13411 # Commands used to build and install an old-style archive.
13412 RANLIB=$lt_RANLIB
13413 old_archive_cmds=$lt_old_archive_cmds_CXX
13414 old_postinstall_cmds=$lt_old_postinstall_cmds
13415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13416
13417 # Create an old-style archive from a shared archive.
13418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13419
13420 # Create a temporary old-style archive to link instead of a shared archive.
13421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13422
13423 # Commands used to build and install a shared archive.
13424 archive_cmds=$lt_archive_cmds_CXX
13425 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13426 postinstall_cmds=$lt_postinstall_cmds
13427 postuninstall_cmds=$lt_postuninstall_cmds
13428
13429 # Commands used to build a loadable module (assumed same as above if empty)
13430 module_cmds=$lt_module_cmds_CXX
13431 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13432
13433 # Commands to strip libraries.
13434 old_striplib=$lt_old_striplib
13435 striplib=$lt_striplib
13436
13437 # Dependencies to place before the objects being linked to create a
13438 # shared library.
13439 predep_objects=$lt_predep_objects_CXX
13440
13441 # Dependencies to place after the objects being linked to create a
13442 # shared library.
13443 postdep_objects=$lt_postdep_objects_CXX
13444
13445 # Dependencies to place before the objects being linked to create a
13446 # shared library.
13447 predeps=$lt_predeps_CXX
13448
13449 # Dependencies to place after the objects being linked to create a
13450 # shared library.
13451 postdeps=$lt_postdeps_CXX
13452
13453 # The library search path used internally by the compiler when linking
13454 # a shared library.
13455 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13456
13457 # Method to check whether dependent libraries are shared objects.
13458 deplibs_check_method=$lt_deplibs_check_method
13459
13460 # Command to use when deplibs_check_method == file_magic.
13461 file_magic_cmd=$lt_file_magic_cmd
13462
13463 # Flag that allows shared libraries with undefined symbols to be built.
13464 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13465
13466 # Flag that forces no undefined symbols.
13467 no_undefined_flag=$lt_no_undefined_flag_CXX
13468
13469 # Commands used to finish a libtool library installation in a directory.
13470 finish_cmds=$lt_finish_cmds
13471
13472 # Same as above, but a single script fragment to be evaled but not shown.
13473 finish_eval=$lt_finish_eval
13474
13475 # Take the output of nm and produce a listing of raw symbols and C names.
13476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13477
13478 # Transform the output of nm in a proper C declaration
13479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13480
13481 # Transform the output of nm in a C name address pair
13482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13483
13484 # This is the shared library runtime path variable.
13485 runpath_var=$runpath_var
13486
13487 # This is the shared library path variable.
13488 shlibpath_var=$shlibpath_var
13489
13490 # Is shlibpath searched before the hard-coded library search path?
13491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13492
13493 # How to hardcode a shared library path into an executable.
13494 hardcode_action=$hardcode_action_CXX
13495
13496 # Whether we should hardcode library paths into libraries.
13497 hardcode_into_libs=$hardcode_into_libs
13498
13499 # Flag to hardcode \$libdir into a binary during linking.
13500 # This must work even if \$libdir does not exist.
13501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13502
13503 # If ld is used when linking, flag to hardcode \$libdir into
13504 # a binary during linking. This must work even if \$libdir does
13505 # not exist.
13506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13507
13508 # Whether we need a single -rpath flag with a separated argument.
13509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13510
13511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13512 # resulting binary.
13513 hardcode_direct=$hardcode_direct_CXX
13514
13515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13516 # resulting binary.
13517 hardcode_minus_L=$hardcode_minus_L_CXX
13518
13519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13520 # the resulting binary.
13521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13522
13523 # Set to yes if building a shared library automatically hardcodes DIR into the library
13524 # and all subsequent libraries and executables linked against it.
13525 hardcode_automatic=$hardcode_automatic_CXX
13526
13527 # Variables whose values should be saved in libtool wrapper scripts and
13528 # restored at relink time.
13529 variables_saved_for_relink="$variables_saved_for_relink"
13530
13531 # Whether libtool must link a program against all its dependency libraries.
13532 link_all_deplibs=$link_all_deplibs_CXX
13533
13534 # Compile-time system search path for libraries
13535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13536
13537 # Run-time system search path for libraries
13538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13539
13540 # Fix the shell variable \$srcfile for the compiler.
13541 fix_srcfile_path="$fix_srcfile_path_CXX"
13542
13543 # Set to yes if exported symbols are required.
13544 always_export_symbols=$always_export_symbols_CXX
13545
13546 # The commands to list exported symbols.
13547 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13548
13549 # The commands to extract the exported symbol list from a shared archive.
13550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13551
13552 # Symbols that should not be listed in the preloaded symbols.
13553 exclude_expsyms=$lt_exclude_expsyms_CXX
13554
13555 # Symbols that must always be exported.
13556 include_expsyms=$lt_include_expsyms_CXX
13557
13558 # ### END LIBTOOL TAG CONFIG: $tagname
13559
13560 __EOF__
13561
13562
13563 else
13564   # If there is no Makefile yet, we rely on a make rule to execute
13565   # `config.status --recheck' to rerun these tests and create the
13566   # libtool script then.
13567   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13568   if test -f "$ltmain_in"; then
13569     test -f Makefile && make "$ltmain"
13570   fi
13571 fi
13572
13573
13574 ac_ext=c
13575 ac_cpp='$CPP $CPPFLAGS'
13576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13579
13580 CC=$lt_save_CC
13581 LDCXX=$LD
13582 LD=$lt_save_LD
13583 GCC=$lt_save_GCC
13584 with_gnu_ldcxx=$with_gnu_ld
13585 with_gnu_ld=$lt_save_with_gnu_ld
13586 lt_cv_path_LDCXX=$lt_cv_path_LD
13587 lt_cv_path_LD=$lt_save_path_LD
13588 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13589 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13590
13591         else
13592           tagname=""
13593         fi
13594         ;;
13595
13596       F77)
13597         if test -n "$F77" && test "X$F77" != "Xno"; then
13598
13599 ac_ext=f
13600 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13601 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13603
13604
13605 archive_cmds_need_lc_F77=no
13606 allow_undefined_flag_F77=
13607 always_export_symbols_F77=no
13608 archive_expsym_cmds_F77=
13609 export_dynamic_flag_spec_F77=
13610 hardcode_direct_F77=no
13611 hardcode_libdir_flag_spec_F77=
13612 hardcode_libdir_flag_spec_ld_F77=
13613 hardcode_libdir_separator_F77=
13614 hardcode_minus_L_F77=no
13615 hardcode_automatic_F77=no
13616 module_cmds_F77=
13617 module_expsym_cmds_F77=
13618 link_all_deplibs_F77=unknown
13619 old_archive_cmds_F77=$old_archive_cmds
13620 no_undefined_flag_F77=
13621 whole_archive_flag_spec_F77=
13622 enable_shared_with_static_runtimes_F77=no
13623
13624 # Source file extension for f77 test sources.
13625 ac_ext=f
13626
13627 # Object file extension for compiled f77 test sources.
13628 objext=o
13629 objext_F77=$objext
13630
13631 # Code to be used in simple compile tests
13632 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13633
13634 # Code to be used in simple link tests
13635 lt_simple_link_test_code="      program t\n      end\n"
13636
13637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13638
13639 # If no C compiler was specified, use CC.
13640 LTCC=${LTCC-"$CC"}
13641
13642 # If no C compiler flags were specified, use CFLAGS.
13643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13644
13645 # Allow CC to be a program name with arguments.
13646 compiler=$CC
13647
13648
13649 # save warnings/boilerplate of simple test code
13650 ac_outfile=conftest.$ac_objext
13651 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13653 _lt_compiler_boilerplate=`cat conftest.err`
13654 $rm conftest*
13655
13656 ac_outfile=conftest.$ac_objext
13657 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13659 _lt_linker_boilerplate=`cat conftest.err`
13660 $rm conftest*
13661
13662
13663 # Allow CC to be a program name with arguments.
13664 lt_save_CC="$CC"
13665 CC=${F77-"f77"}
13666 compiler=$CC
13667 compiler_F77=$CC
13668 for cc_temp in $compiler""; do
13669   case $cc_temp in
13670     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13671     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13672     \-*) ;;
13673     *) break;;
13674   esac
13675 done
13676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13677
13678
13679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13682 echo "${ECHO_T}$can_build_shared" >&6; }
13683
13684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13686 test "$can_build_shared" = "no" && enable_shared=no
13687
13688 # On AIX, shared libraries and static libraries use the same namespace, and
13689 # are all built from PIC.
13690 case $host_os in
13691 aix3*)
13692   test "$enable_shared" = yes && enable_static=no
13693   if test -n "$RANLIB"; then
13694     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13695     postinstall_cmds='$RANLIB $lib'
13696   fi
13697   ;;
13698 aix4* | aix5*)
13699   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13700     test "$enable_shared" = yes && enable_static=no
13701   fi
13702   ;;
13703 esac
13704 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13705 echo "${ECHO_T}$enable_shared" >&6; }
13706
13707 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13708 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13709 # Make sure either enable_shared or enable_static is yes.
13710 test "$enable_shared" = yes || enable_static=yes
13711 { echo "$as_me:$LINENO: result: $enable_static" >&5
13712 echo "${ECHO_T}$enable_static" >&6; }
13713
13714 GCC_F77="$G77"
13715 LD_F77="$LD"
13716
13717 lt_prog_compiler_wl_F77=
13718 lt_prog_compiler_pic_F77=
13719 lt_prog_compiler_static_F77=
13720
13721 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13722 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13723
13724   if test "$GCC" = yes; then
13725     lt_prog_compiler_wl_F77='-Wl,'
13726     lt_prog_compiler_static_F77='-static'
13727
13728     case $host_os in
13729       aix*)
13730       # All AIX code is PIC.
13731       if test "$host_cpu" = ia64; then
13732         # AIX 5 now supports IA64 processor
13733         lt_prog_compiler_static_F77='-Bstatic'
13734       fi
13735       ;;
13736
13737     amigaos*)
13738       # FIXME: we need at least 68020 code to build shared libraries, but
13739       # adding the `-m68020' flag to GCC prevents building anything better,
13740       # like `-m68040'.
13741       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13742       ;;
13743
13744     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13745       # PIC is the default for these OSes.
13746       ;;
13747
13748     mingw* | pw32* | os2*)
13749       # This hack is so that the source file can tell whether it is being
13750       # built for inclusion in a dll (and should export symbols for example).
13751       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13752       ;;
13753
13754     darwin* | rhapsody*)
13755       # PIC is the default on this platform
13756       # Common symbols not allowed in MH_DYLIB files
13757       lt_prog_compiler_pic_F77='-fno-common'
13758       ;;
13759
13760     interix3*)
13761       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13762       # Instead, we relocate shared libraries at runtime.
13763       ;;
13764
13765     msdosdjgpp*)
13766       # Just because we use GCC doesn't mean we suddenly get shared libraries
13767       # on systems that don't support them.
13768       lt_prog_compiler_can_build_shared_F77=no
13769       enable_shared=no
13770       ;;
13771
13772     sysv4*MP*)
13773       if test -d /usr/nec; then
13774         lt_prog_compiler_pic_F77=-Kconform_pic
13775       fi
13776       ;;
13777
13778     hpux*)
13779       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13780       # not for PA HP-UX.
13781       case $host_cpu in
13782       hppa*64*|ia64*)
13783         # +Z the default
13784         ;;
13785       *)
13786         lt_prog_compiler_pic_F77='-fPIC'
13787         ;;
13788       esac
13789       ;;
13790
13791     *)
13792       lt_prog_compiler_pic_F77='-fPIC'
13793       ;;
13794     esac
13795   else
13796     # PORTME Check for flag to pass linker flags through the system compiler.
13797     case $host_os in
13798     aix*)
13799       lt_prog_compiler_wl_F77='-Wl,'
13800       if test "$host_cpu" = ia64; then
13801         # AIX 5 now supports IA64 processor
13802         lt_prog_compiler_static_F77='-Bstatic'
13803       else
13804         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13805       fi
13806       ;;
13807       darwin*)
13808         # PIC is the default on this platform
13809         # Common symbols not allowed in MH_DYLIB files
13810        case $cc_basename in
13811          xlc*)
13812          lt_prog_compiler_pic_F77='-qnocommon'
13813          lt_prog_compiler_wl_F77='-Wl,'
13814          ;;
13815        esac
13816        ;;
13817
13818     mingw* | pw32* | os2*)
13819       # This hack is so that the source file can tell whether it is being
13820       # built for inclusion in a dll (and should export symbols for example).
13821       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13822       ;;
13823
13824     hpux9* | hpux10* | hpux11*)
13825       lt_prog_compiler_wl_F77='-Wl,'
13826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13827       # not for PA HP-UX.
13828       case $host_cpu in
13829       hppa*64*|ia64*)
13830         # +Z the default
13831         ;;
13832       *)
13833         lt_prog_compiler_pic_F77='+Z'
13834         ;;
13835       esac
13836       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13837       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13838       ;;
13839
13840     irix5* | irix6* | nonstopux*)
13841       lt_prog_compiler_wl_F77='-Wl,'
13842       # PIC (with -KPIC) is the default.
13843       lt_prog_compiler_static_F77='-non_shared'
13844       ;;
13845
13846     newsos6)
13847       lt_prog_compiler_pic_F77='-KPIC'
13848       lt_prog_compiler_static_F77='-Bstatic'
13849       ;;
13850
13851     linux* | k*bsd*-gnu)
13852       case $cc_basename in
13853       icc* | ecc*)
13854         lt_prog_compiler_wl_F77='-Wl,'
13855         lt_prog_compiler_pic_F77='-KPIC'
13856         lt_prog_compiler_static_F77='-static'
13857         ;;
13858       pgcc* | pgf77* | pgf90* | pgf95*)
13859         # Portland Group compilers (*not* the Pentium gcc compiler,
13860         # which looks to be a dead project)
13861         lt_prog_compiler_wl_F77='-Wl,'
13862         lt_prog_compiler_pic_F77='-fpic'
13863         lt_prog_compiler_static_F77='-Bstatic'
13864         ;;
13865       ccc*)
13866         lt_prog_compiler_wl_F77='-Wl,'
13867         # All Alpha code is PIC.
13868         lt_prog_compiler_static_F77='-non_shared'
13869         ;;
13870       esac
13871       ;;
13872
13873     osf3* | osf4* | osf5*)
13874       lt_prog_compiler_wl_F77='-Wl,'
13875       # All OSF/1 code is PIC.
13876       lt_prog_compiler_static_F77='-non_shared'
13877       ;;
13878
13879     solaris*)
13880       lt_prog_compiler_pic_F77='-KPIC'
13881       lt_prog_compiler_static_F77='-Bstatic'
13882       case $cc_basename in
13883       f77* | f90* | f95*)
13884         lt_prog_compiler_wl_F77='-Qoption ld ';;
13885       *)
13886         lt_prog_compiler_wl_F77='-Wl,';;
13887       esac
13888       ;;
13889
13890     sunos4*)
13891       lt_prog_compiler_wl_F77='-Qoption ld '
13892       lt_prog_compiler_pic_F77='-PIC'
13893       lt_prog_compiler_static_F77='-Bstatic'
13894       ;;
13895
13896     sysv4 | sysv4.2uw2* | sysv4.3*)
13897       lt_prog_compiler_wl_F77='-Wl,'
13898       lt_prog_compiler_pic_F77='-KPIC'
13899       lt_prog_compiler_static_F77='-Bstatic'
13900       ;;
13901
13902     sysv4*MP*)
13903       if test -d /usr/nec ;then
13904         lt_prog_compiler_pic_F77='-Kconform_pic'
13905         lt_prog_compiler_static_F77='-Bstatic'
13906       fi
13907       ;;
13908
13909     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13910       lt_prog_compiler_wl_F77='-Wl,'
13911       lt_prog_compiler_pic_F77='-KPIC'
13912       lt_prog_compiler_static_F77='-Bstatic'
13913       ;;
13914
13915     unicos*)
13916       lt_prog_compiler_wl_F77='-Wl,'
13917       lt_prog_compiler_can_build_shared_F77=no
13918       ;;
13919
13920     uts4*)
13921       lt_prog_compiler_pic_F77='-pic'
13922       lt_prog_compiler_static_F77='-Bstatic'
13923       ;;
13924
13925     *)
13926       lt_prog_compiler_can_build_shared_F77=no
13927       ;;
13928     esac
13929   fi
13930
13931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13932 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13933
13934 #
13935 # Check to make sure the PIC flag actually works.
13936 #
13937 if test -n "$lt_prog_compiler_pic_F77"; then
13938
13939 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13941 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   lt_prog_compiler_pic_works_F77=no
13945   ac_outfile=conftest.$ac_objext
13946    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13947    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13948    # Insert the option either (1) after the last *FLAGS variable, or
13949    # (2) before a word containing "conftest.", or (3) at the end.
13950    # Note that $ac_compile itself does not contain backslashes and begins
13951    # with a dollar sign (not a hyphen), so the echo should work correctly.
13952    # The option is referenced via a variable to avoid confusing sed.
13953    lt_compile=`echo "$ac_compile" | $SED \
13954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13956    -e 's:$: $lt_compiler_flag:'`
13957    (eval echo "\"\$as_me:13957: $lt_compile\"" >&5)
13958    (eval "$lt_compile" 2>conftest.err)
13959    ac_status=$?
13960    cat conftest.err >&5
13961    echo "$as_me:13961: \$? = $ac_status" >&5
13962    if (exit $ac_status) && test -s "$ac_outfile"; then
13963      # The compiler can only warn and ignore the option if not recognized
13964      # So say no if there are warnings other than the usual output.
13965      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13966      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13967      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13968        lt_prog_compiler_pic_works_F77=yes
13969      fi
13970    fi
13971    $rm conftest*
13972
13973 fi
13974 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13975 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13976
13977 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13978     case $lt_prog_compiler_pic_F77 in
13979      "" | " "*) ;;
13980      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13981      esac
13982 else
13983     lt_prog_compiler_pic_F77=
13984      lt_prog_compiler_can_build_shared_F77=no
13985 fi
13986
13987 fi
13988 case $host_os in
13989   # For platforms which do not support PIC, -DPIC is meaningless:
13990   *djgpp*)
13991     lt_prog_compiler_pic_F77=
13992     ;;
13993   *)
13994     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13995     ;;
13996 esac
13997
13998 #
13999 # Check to make sure the static flag actually works.
14000 #
14001 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14002 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14004 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007   lt_prog_compiler_static_works_F77=no
14008    save_LDFLAGS="$LDFLAGS"
14009    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14011    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012      # The linker can only warn and ignore the option if not recognized
14013      # So say no if there are warnings
14014      if test -s conftest.err; then
14015        # Append any errors to the config.log.
14016        cat conftest.err 1>&5
14017        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14018        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019        if diff conftest.exp conftest.er2 >/dev/null; then
14020          lt_prog_compiler_static_works_F77=yes
14021        fi
14022      else
14023        lt_prog_compiler_static_works_F77=yes
14024      fi
14025    fi
14026    $rm conftest*
14027    LDFLAGS="$save_LDFLAGS"
14028
14029 fi
14030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14031 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14032
14033 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14034     :
14035 else
14036     lt_prog_compiler_static_F77=
14037 fi
14038
14039
14040 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14041 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14042 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   lt_cv_prog_compiler_c_o_F77=no
14046    $rm -r conftest 2>/dev/null
14047    mkdir conftest
14048    cd conftest
14049    mkdir out
14050    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14051
14052    lt_compiler_flag="-o out/conftest2.$ac_objext"
14053    # Insert the option either (1) after the last *FLAGS variable, or
14054    # (2) before a word containing "conftest.", or (3) at the end.
14055    # Note that $ac_compile itself does not contain backslashes and begins
14056    # with a dollar sign (not a hyphen), so the echo should work correctly.
14057    lt_compile=`echo "$ac_compile" | $SED \
14058    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14060    -e 's:$: $lt_compiler_flag:'`
14061    (eval echo "\"\$as_me:14061: $lt_compile\"" >&5)
14062    (eval "$lt_compile" 2>out/conftest.err)
14063    ac_status=$?
14064    cat out/conftest.err >&5
14065    echo "$as_me:14065: \$? = $ac_status" >&5
14066    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14067    then
14068      # The compiler can only warn and ignore the option if not recognized
14069      # So say no if there are warnings
14070      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14071      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14072      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14073        lt_cv_prog_compiler_c_o_F77=yes
14074      fi
14075    fi
14076    chmod u+w . 2>&5
14077    $rm conftest*
14078    # SGI C++ compiler will create directory out/ii_files/ for
14079    # template instantiation
14080    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14081    $rm out/* && rmdir out
14082    cd ..
14083    rmdir conftest
14084    $rm conftest*
14085
14086 fi
14087 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14088 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14089
14090
14091 hard_links="nottested"
14092 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14093   # do not overwrite the value of need_locks provided by the user
14094   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14095 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14096   hard_links=yes
14097   $rm conftest*
14098   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14099   touch conftest.a
14100   ln conftest.a conftest.b 2>&5 || hard_links=no
14101   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14102   { echo "$as_me:$LINENO: result: $hard_links" >&5
14103 echo "${ECHO_T}$hard_links" >&6; }
14104   if test "$hard_links" = no; then
14105     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14106 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14107     need_locks=warn
14108   fi
14109 else
14110   need_locks=no
14111 fi
14112
14113 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14114 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14115
14116   runpath_var=
14117   allow_undefined_flag_F77=
14118   enable_shared_with_static_runtimes_F77=no
14119   archive_cmds_F77=
14120   archive_expsym_cmds_F77=
14121   old_archive_From_new_cmds_F77=
14122   old_archive_from_expsyms_cmds_F77=
14123   export_dynamic_flag_spec_F77=
14124   whole_archive_flag_spec_F77=
14125   thread_safe_flag_spec_F77=
14126   hardcode_libdir_flag_spec_F77=
14127   hardcode_libdir_flag_spec_ld_F77=
14128   hardcode_libdir_separator_F77=
14129   hardcode_direct_F77=no
14130   hardcode_minus_L_F77=no
14131   hardcode_shlibpath_var_F77=unsupported
14132   link_all_deplibs_F77=unknown
14133   hardcode_automatic_F77=no
14134   module_cmds_F77=
14135   module_expsym_cmds_F77=
14136   always_export_symbols_F77=no
14137   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14138   # include_expsyms should be a list of space-separated symbols to be *always*
14139   # included in the symbol list
14140   include_expsyms_F77=
14141   # exclude_expsyms can be an extended regexp of symbols to exclude
14142   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14143   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14144   # as well as any symbol that contains `d'.
14145   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14146   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14147   # platforms (ab)use it in PIC code, but their linkers get confused if
14148   # the symbol is explicitly referenced.  Since portable code cannot
14149   # rely on this symbol name, it's probably fine to never include it in
14150   # preloaded symbol tables.
14151   extract_expsyms_cmds=
14152   # Just being paranoid about ensuring that cc_basename is set.
14153   for cc_temp in $compiler""; do
14154   case $cc_temp in
14155     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14156     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14157     \-*) ;;
14158     *) break;;
14159   esac
14160 done
14161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14162
14163   case $host_os in
14164   cygwin* | mingw* | pw32*)
14165     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14166     # When not using gcc, we currently assume that we are using
14167     # Microsoft Visual C++.
14168     if test "$GCC" != yes; then
14169       with_gnu_ld=no
14170     fi
14171     ;;
14172   interix*)
14173     # we just hope/assume this is gcc and not c89 (= MSVC++)
14174     with_gnu_ld=yes
14175     ;;
14176   openbsd*)
14177     with_gnu_ld=no
14178     ;;
14179   esac
14180
14181   ld_shlibs_F77=yes
14182   if test "$with_gnu_ld" = yes; then
14183     # If archive_cmds runs LD, not CC, wlarc should be empty
14184     wlarc='${wl}'
14185
14186     # Set some defaults for GNU ld with shared library support. These
14187     # are reset later if shared libraries are not supported. Putting them
14188     # here allows them to be overridden if necessary.
14189     runpath_var=LD_RUN_PATH
14190     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14191     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14192     # ancient GNU ld didn't support --whole-archive et. al.
14193     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14194         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14195       else
14196         whole_archive_flag_spec_F77=
14197     fi
14198     supports_anon_versioning=no
14199     case `$LD -v 2>/dev/null` in
14200       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14201       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14202       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14203       *\ 2.11.*) ;; # other 2.11 versions
14204       *) supports_anon_versioning=yes ;;
14205     esac
14206
14207     # See if GNU ld supports shared libraries.
14208     case $host_os in
14209     aix3* | aix4* | aix5*)
14210       # On AIX/PPC, the GNU linker is very broken
14211       if test "$host_cpu" != ia64; then
14212         ld_shlibs_F77=no
14213         cat <<EOF 1>&2
14214
14215 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14216 *** to be unable to reliably create shared libraries on AIX.
14217 *** Therefore, libtool is disabling shared libraries support.  If you
14218 *** really care for shared libraries, you may want to modify your PATH
14219 *** so that a non-GNU linker is found, and then restart.
14220
14221 EOF
14222       fi
14223       ;;
14224
14225     amigaos*)
14226       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)'
14227       hardcode_libdir_flag_spec_F77='-L$libdir'
14228       hardcode_minus_L_F77=yes
14229
14230       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14231       # that the semantics of dynamic libraries on AmigaOS, at least up
14232       # to version 4, is to share data among multiple programs linked
14233       # with the same dynamic library.  Since this doesn't match the
14234       # behavior of shared libraries on other platforms, we can't use
14235       # them.
14236       ld_shlibs_F77=no
14237       ;;
14238
14239     beos*)
14240       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14241         allow_undefined_flag_F77=unsupported
14242         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14243         # support --undefined.  This deserves some investigation.  FIXME
14244         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14245       else
14246         ld_shlibs_F77=no
14247       fi
14248       ;;
14249
14250     cygwin* | mingw* | pw32*)
14251       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14252       # as there is no search path for DLLs.
14253       hardcode_libdir_flag_spec_F77='-L$libdir'
14254       allow_undefined_flag_F77=unsupported
14255       always_export_symbols_F77=no
14256       enable_shared_with_static_runtimes_F77=yes
14257       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14258
14259       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14260         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14261         # If the export-symbols file already is a .def file (1st line
14262         # is EXPORTS), use it as is; otherwise, prepend...
14263         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14264           cp $export_symbols $output_objdir/$soname.def;
14265         else
14266           echo EXPORTS > $output_objdir/$soname.def;
14267           cat $export_symbols >> $output_objdir/$soname.def;
14268         fi~
14269         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14270       else
14271         ld_shlibs_F77=no
14272       fi
14273       ;;
14274
14275     interix3*)
14276       hardcode_direct_F77=no
14277       hardcode_shlibpath_var_F77=no
14278       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14279       export_dynamic_flag_spec_F77='${wl}-E'
14280       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14281       # Instead, shared libraries are loaded at an image base (0x10000000 by
14282       # default) and relocated if they conflict, which is a slow very memory
14283       # consuming and fragmenting process.  To avoid this, we pick a random,
14284       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14285       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14286       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'
14287       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'
14288       ;;
14289
14290     linux* | k*bsd*-gnu)
14291       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14292         tmp_addflag=
14293         case $cc_basename,$host_cpu in
14294         pgcc*)                          # Portland Group C compiler
14295           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'
14296           tmp_addflag=' $pic_flag'
14297           ;;
14298         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14299           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'
14300           tmp_addflag=' $pic_flag -Mnomain' ;;
14301         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14302           tmp_addflag=' -i_dynamic' ;;
14303         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14304           tmp_addflag=' -i_dynamic -nofor_main' ;;
14305         ifc* | ifort*)                  # Intel Fortran compiler
14306           tmp_addflag=' -nofor_main' ;;
14307         esac
14308         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309
14310         if test $supports_anon_versioning = yes; then
14311           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14312   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14313   $echo "local: *; };" >> $output_objdir/$libname.ver~
14314           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14315         fi
14316         link_all_deplibs_F77=no
14317       else
14318         ld_shlibs_F77=no
14319       fi
14320       ;;
14321
14322     netbsd* | netbsdelf*-gnu)
14323       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14324         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14325         wlarc=
14326       else
14327         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14328         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14329       fi
14330       ;;
14331
14332     solaris*)
14333       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14334         ld_shlibs_F77=no
14335         cat <<EOF 1>&2
14336
14337 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14338 *** create shared libraries on Solaris systems.  Therefore, libtool
14339 *** is disabling shared libraries support.  We urge you to upgrade GNU
14340 *** binutils to release 2.9.1 or newer.  Another option is to modify
14341 *** your PATH or compiler configuration so that the native linker is
14342 *** used, and then restart.
14343
14344 EOF
14345       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14346         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14347         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14348       else
14349         ld_shlibs_F77=no
14350       fi
14351       ;;
14352
14353     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14354       case `$LD -v 2>&1` in
14355         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14356         ld_shlibs_F77=no
14357         cat <<_LT_EOF 1>&2
14358
14359 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14360 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14361 *** is disabling shared libraries support.  We urge you to upgrade GNU
14362 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14363 *** your PATH or compiler configuration so that the native linker is
14364 *** used, and then restart.
14365
14366 _LT_EOF
14367         ;;
14368         *)
14369           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14370             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14371             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14372             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14373           else
14374             ld_shlibs_F77=no
14375           fi
14376         ;;
14377       esac
14378       ;;
14379
14380     sunos4*)
14381       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14382       wlarc=
14383       hardcode_direct_F77=yes
14384       hardcode_shlibpath_var_F77=no
14385       ;;
14386
14387     *)
14388       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14389         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14390         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14391       else
14392         ld_shlibs_F77=no
14393       fi
14394       ;;
14395     esac
14396
14397     if test "$ld_shlibs_F77" = no; then
14398       runpath_var=
14399       hardcode_libdir_flag_spec_F77=
14400       export_dynamic_flag_spec_F77=
14401       whole_archive_flag_spec_F77=
14402     fi
14403   else
14404     # PORTME fill in a description of your system's linker (not GNU ld)
14405     case $host_os in
14406     aix3*)
14407       allow_undefined_flag_F77=unsupported
14408       always_export_symbols_F77=yes
14409       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'
14410       # Note: this linker hardcodes the directories in LIBPATH if there
14411       # are no directories specified by -L.
14412       hardcode_minus_L_F77=yes
14413       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14414         # Neither direct hardcoding nor static linking is supported with a
14415         # broken collect2.
14416         hardcode_direct_F77=unsupported
14417       fi
14418       ;;
14419
14420     aix4* | aix5*)
14421       if test "$host_cpu" = ia64; then
14422         # On IA64, the linker does run time linking by default, so we don't
14423         # have to do anything special.
14424         aix_use_runtimelinking=no
14425         exp_sym_flag='-Bexport'
14426         no_entry_flag=""
14427       else
14428         # If we're using GNU nm, then we don't want the "-C" option.
14429         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14430         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14431           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'
14432         else
14433           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'
14434         fi
14435         aix_use_runtimelinking=no
14436
14437         # Test if we are trying to use run time linking or normal
14438         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14439         # need to do runtime linking.
14440         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14441           for ld_flag in $LDFLAGS; do
14442           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14443             aix_use_runtimelinking=yes
14444             break
14445           fi
14446           done
14447           ;;
14448         esac
14449
14450         exp_sym_flag='-bexport'
14451         no_entry_flag='-bnoentry'
14452       fi
14453
14454       # When large executables or shared objects are built, AIX ld can
14455       # have problems creating the table of contents.  If linking a library
14456       # or program results in "error TOC overflow" add -mminimal-toc to
14457       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14458       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14459
14460       archive_cmds_F77=''
14461       hardcode_direct_F77=yes
14462       hardcode_libdir_separator_F77=':'
14463       link_all_deplibs_F77=yes
14464
14465       if test "$GCC" = yes; then
14466         case $host_os in aix4.[012]|aix4.[012].*)
14467         # We only want to do this on AIX 4.2 and lower, the check
14468         # below for broken collect2 doesn't work under 4.3+
14469           collect2name=`${CC} -print-prog-name=collect2`
14470           if test -f "$collect2name" && \
14471            strings "$collect2name" | grep resolve_lib_name >/dev/null
14472           then
14473           # We have reworked collect2
14474           hardcode_direct_F77=yes
14475           else
14476           # We have old collect2
14477           hardcode_direct_F77=unsupported
14478           # It fails to find uninstalled libraries when the uninstalled
14479           # path is not listed in the libpath.  Setting hardcode_minus_L
14480           # to unsupported forces relinking
14481           hardcode_minus_L_F77=yes
14482           hardcode_libdir_flag_spec_F77='-L$libdir'
14483           hardcode_libdir_separator_F77=
14484           fi
14485           ;;
14486         esac
14487         shared_flag='-shared'
14488         if test "$aix_use_runtimelinking" = yes; then
14489           shared_flag="$shared_flag "'${wl}-G'
14490         fi
14491       else
14492         # not using gcc
14493         if test "$host_cpu" = ia64; then
14494         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14495         # chokes on -Wl,-G. The following line is correct:
14496           shared_flag='-G'
14497         else
14498           if test "$aix_use_runtimelinking" = yes; then
14499             shared_flag='${wl}-G'
14500           else
14501             shared_flag='${wl}-bM:SRE'
14502           fi
14503         fi
14504       fi
14505
14506       # It seems that -bexpall does not export symbols beginning with
14507       # underscore (_), so it is better to generate a list of symbols to export.
14508       always_export_symbols_F77=yes
14509       if test "$aix_use_runtimelinking" = yes; then
14510         # Warning - without using the other runtime loading flags (-brtl),
14511         # -berok will link without error, but may produce a broken library.
14512         allow_undefined_flag_F77='-berok'
14513        # Determine the default libpath from the value encoded in an empty executable.
14514        cat >conftest.$ac_ext <<_ACEOF
14515       program main
14516
14517       end
14518 _ACEOF
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (ac_try="$ac_link"
14521 case "(($ac_try" in
14522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523   *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526   (eval "$ac_link") 2>conftest.er1
14527   ac_status=$?
14528   grep -v '^ *+' conftest.er1 >conftest.err
14529   rm -f conftest.er1
14530   cat conftest.err >&5
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); } && {
14533          test -z "$ac_f77_werror_flag" ||
14534          test ! -s conftest.err
14535        } && test -s conftest$ac_exeext &&
14536        $as_test_x conftest$ac_exeext; then
14537
14538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14539 }'`
14540 # Check for a 64-bit object if we didn't find anything.
14541 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; }
14542 }'`; fi
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547
14548 fi
14549
14550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14551       conftest$ac_exeext conftest.$ac_ext
14552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14553
14554        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14555         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"
14556        else
14557         if test "$host_cpu" = ia64; then
14558           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14559           allow_undefined_flag_F77="-z nodefs"
14560           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"
14561         else
14562          # Determine the default libpath from the value encoded in an empty executable.
14563          cat >conftest.$ac_ext <<_ACEOF
14564       program main
14565
14566       end
14567 _ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (ac_try="$ac_link"
14570 case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_link") 2>conftest.er1
14576   ac_status=$?
14577   grep -v '^ *+' conftest.er1 >conftest.err
14578   rm -f conftest.er1
14579   cat conftest.err >&5
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); } && {
14582          test -z "$ac_f77_werror_flag" ||
14583          test ! -s conftest.err
14584        } && test -s conftest$ac_exeext &&
14585        $as_test_x conftest$ac_exeext; then
14586
14587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14588 }'`
14589 # Check for a 64-bit object if we didn't find anything.
14590 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; }
14591 }'`; fi
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596
14597 fi
14598
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600       conftest$ac_exeext conftest.$ac_ext
14601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14602
14603          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14604           # Warning - without using the other run time loading flags,
14605           # -berok will link without error, but may produce a broken library.
14606           no_undefined_flag_F77=' ${wl}-bernotok'
14607           allow_undefined_flag_F77=' ${wl}-berok'
14608           # Exported symbols can be pulled into shared objects from archives
14609           whole_archive_flag_spec_F77='$convenience'
14610           archive_cmds_need_lc_F77=yes
14611           # This is similar to how AIX traditionally builds its shared libraries.
14612           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'
14613         fi
14614       fi
14615       ;;
14616
14617     amigaos*)
14618       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)'
14619       hardcode_libdir_flag_spec_F77='-L$libdir'
14620       hardcode_minus_L_F77=yes
14621       # see comment about different semantics on the GNU ld section
14622       ld_shlibs_F77=no
14623       ;;
14624
14625     bsdi[45]*)
14626       export_dynamic_flag_spec_F77=-rdynamic
14627       ;;
14628
14629     cygwin* | mingw* | pw32*)
14630       # When not using gcc, we currently assume that we are using
14631       # Microsoft Visual C++.
14632       # hardcode_libdir_flag_spec is actually meaningless, as there is
14633       # no search path for DLLs.
14634       hardcode_libdir_flag_spec_F77=' '
14635       allow_undefined_flag_F77=unsupported
14636       # Tell ltmain to make .lib files, not .a files.
14637       libext=lib
14638       # Tell ltmain to make .dll files, not .so files.
14639       shrext_cmds=".dll"
14640       # FIXME: Setting linknames here is a bad hack.
14641       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14642       # The linker will automatically build a .lib file if we build a DLL.
14643       old_archive_From_new_cmds_F77='true'
14644       # FIXME: Should let the user specify the lib program.
14645       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14646       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14647       enable_shared_with_static_runtimes_F77=yes
14648       ;;
14649
14650     darwin* | rhapsody*)
14651       case $host_os in
14652         rhapsody* | darwin1.[012])
14653          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14654          ;;
14655        *) # Darwin 1.3 on
14656          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14657            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14658          else
14659            case ${MACOSX_DEPLOYMENT_TARGET} in
14660              10.[012])
14661                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14662                ;;
14663              10.*)
14664                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14665                ;;
14666            esac
14667          fi
14668          ;;
14669       esac
14670       archive_cmds_need_lc_F77=no
14671       hardcode_direct_F77=no
14672       hardcode_automatic_F77=yes
14673       hardcode_shlibpath_var_F77=unsupported
14674       whole_archive_flag_spec_F77=''
14675       link_all_deplibs_F77=yes
14676     if test "$GCC" = yes ; then
14677         output_verbose_link_cmd='echo'
14678         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14679       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14680       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14681       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}'
14682       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}'
14683     else
14684       case $cc_basename in
14685         xlc*)
14686          output_verbose_link_cmd='echo'
14687          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14688          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14689           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14690          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}'
14691           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}'
14692           ;;
14693        *)
14694          ld_shlibs_F77=no
14695           ;;
14696       esac
14697     fi
14698       ;;
14699
14700     dgux*)
14701       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702       hardcode_libdir_flag_spec_F77='-L$libdir'
14703       hardcode_shlibpath_var_F77=no
14704       ;;
14705
14706     freebsd1*)
14707       ld_shlibs_F77=no
14708       ;;
14709
14710     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14711     # support.  Future versions do this automatically, but an explicit c++rt0.o
14712     # does not break anything, and helps significantly (at the cost of a little
14713     # extra space).
14714     freebsd2.2*)
14715       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14716       hardcode_libdir_flag_spec_F77='-R$libdir'
14717       hardcode_direct_F77=yes
14718       hardcode_shlibpath_var_F77=no
14719       ;;
14720
14721     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14722     freebsd2*)
14723       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14724       hardcode_direct_F77=yes
14725       hardcode_minus_L_F77=yes
14726       hardcode_shlibpath_var_F77=no
14727       ;;
14728
14729     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14730     freebsd* | dragonfly*)
14731       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14732       hardcode_libdir_flag_spec_F77='-R$libdir'
14733       hardcode_direct_F77=yes
14734       hardcode_shlibpath_var_F77=no
14735       ;;
14736
14737     hpux9*)
14738       if test "$GCC" = yes; then
14739         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'
14740       else
14741         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'
14742       fi
14743       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14744       hardcode_libdir_separator_F77=:
14745       hardcode_direct_F77=yes
14746
14747       # hardcode_minus_L: Not really in the search PATH,
14748       # but as the default location of the library.
14749       hardcode_minus_L_F77=yes
14750       export_dynamic_flag_spec_F77='${wl}-E'
14751       ;;
14752
14753     hpux10*)
14754       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14755         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14756       else
14757         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14758       fi
14759       if test "$with_gnu_ld" = no; then
14760         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14761         hardcode_libdir_separator_F77=:
14762
14763         hardcode_direct_F77=yes
14764         export_dynamic_flag_spec_F77='${wl}-E'
14765
14766         # hardcode_minus_L: Not really in the search PATH,
14767         # but as the default location of the library.
14768         hardcode_minus_L_F77=yes
14769       fi
14770       ;;
14771
14772     hpux11*)
14773       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14774         case $host_cpu in
14775         hppa*64*)
14776           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14777           ;;
14778         ia64*)
14779           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14780           ;;
14781         *)
14782           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14783           ;;
14784         esac
14785       else
14786         case $host_cpu in
14787         hppa*64*)
14788           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14789           ;;
14790         ia64*)
14791           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14792           ;;
14793         *)
14794           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14795           ;;
14796         esac
14797       fi
14798       if test "$with_gnu_ld" = no; then
14799         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14800         hardcode_libdir_separator_F77=:
14801
14802         case $host_cpu in
14803         hppa*64*|ia64*)
14804           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14805           hardcode_direct_F77=no
14806           hardcode_shlibpath_var_F77=no
14807           ;;
14808         *)
14809           hardcode_direct_F77=yes
14810           export_dynamic_flag_spec_F77='${wl}-E'
14811
14812           # hardcode_minus_L: Not really in the search PATH,
14813           # but as the default location of the library.
14814           hardcode_minus_L_F77=yes
14815           ;;
14816         esac
14817       fi
14818       ;;
14819
14820     irix5* | irix6* | nonstopux*)
14821       if test "$GCC" = yes; then
14822         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'
14823       else
14824         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'
14825         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14826       fi
14827       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14828       hardcode_libdir_separator_F77=:
14829       link_all_deplibs_F77=yes
14830       ;;
14831
14832     netbsd* | netbsdelf*-gnu)
14833       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14834         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14835       else
14836         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14837       fi
14838       hardcode_libdir_flag_spec_F77='-R$libdir'
14839       hardcode_direct_F77=yes
14840       hardcode_shlibpath_var_F77=no
14841       ;;
14842
14843     newsos6)
14844       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845       hardcode_direct_F77=yes
14846       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14847       hardcode_libdir_separator_F77=:
14848       hardcode_shlibpath_var_F77=no
14849       ;;
14850
14851     openbsd*)
14852       hardcode_direct_F77=yes
14853       hardcode_shlibpath_var_F77=no
14854       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14855         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14856         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14857         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14858         export_dynamic_flag_spec_F77='${wl}-E'
14859       else
14860        case $host_os in
14861          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14862            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863            hardcode_libdir_flag_spec_F77='-R$libdir'
14864            ;;
14865          *)
14866            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14867            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14868            ;;
14869        esac
14870       fi
14871       ;;
14872
14873     os2*)
14874       hardcode_libdir_flag_spec_F77='-L$libdir'
14875       hardcode_minus_L_F77=yes
14876       allow_undefined_flag_F77=unsupported
14877       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'
14878       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14879       ;;
14880
14881     osf3*)
14882       if test "$GCC" = yes; then
14883         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14884         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'
14885       else
14886         allow_undefined_flag_F77=' -expect_unresolved \*'
14887         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'
14888       fi
14889       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14890       hardcode_libdir_separator_F77=:
14891       ;;
14892
14893     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14894       if test "$GCC" = yes; then
14895         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14896         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'
14897         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14898       else
14899         allow_undefined_flag_F77=' -expect_unresolved \*'
14900         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'
14901         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~
14902         $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'
14903
14904         # Both c and cxx compiler support -rpath directly
14905         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14906       fi
14907       hardcode_libdir_separator_F77=:
14908       ;;
14909
14910     solaris*)
14911       no_undefined_flag_F77=' -z text'
14912       if test "$GCC" = yes; then
14913         wlarc='${wl}'
14914         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14915         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14916           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14917       else
14918         wlarc=''
14919         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14921         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14922       fi
14923       hardcode_libdir_flag_spec_F77='-R$libdir'
14924       hardcode_shlibpath_var_F77=no
14925       case $host_os in
14926       solaris2.[0-5] | solaris2.[0-5].*) ;;
14927       *)
14928         # The compiler driver will combine linker options so we
14929         # cannot just pass the convience library names through
14930         # without $wl, iff we do not link with $LD.
14931         # Luckily, gcc supports the same syntax we need for Sun Studio.
14932         # Supported since Solaris 2.6 (maybe 2.5.1?)
14933         case $wlarc in
14934         '')
14935           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14936         *)
14937           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' ;;
14938         esac ;;
14939       esac
14940       link_all_deplibs_F77=yes
14941       ;;
14942
14943     sunos4*)
14944       if test "x$host_vendor" = xsequent; then
14945         # Use $CC to link under sequent, because it throws in some extra .o
14946         # files that make .init and .fini sections work.
14947         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14948       else
14949         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14950       fi
14951       hardcode_libdir_flag_spec_F77='-L$libdir'
14952       hardcode_direct_F77=yes
14953       hardcode_minus_L_F77=yes
14954       hardcode_shlibpath_var_F77=no
14955       ;;
14956
14957     sysv4)
14958       case $host_vendor in
14959         sni)
14960           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961           hardcode_direct_F77=yes # is this really true???
14962         ;;
14963         siemens)
14964           ## LD is ld it makes a PLAMLIB
14965           ## CC just makes a GrossModule.
14966           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14967           reload_cmds_F77='$CC -r -o $output$reload_objs'
14968           hardcode_direct_F77=no
14969         ;;
14970         motorola)
14971           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14973         ;;
14974       esac
14975       runpath_var='LD_RUN_PATH'
14976       hardcode_shlibpath_var_F77=no
14977       ;;
14978
14979     sysv4.3*)
14980       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14981       hardcode_shlibpath_var_F77=no
14982       export_dynamic_flag_spec_F77='-Bexport'
14983       ;;
14984
14985     sysv4*MP*)
14986       if test -d /usr/nec; then
14987         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14988         hardcode_shlibpath_var_F77=no
14989         runpath_var=LD_RUN_PATH
14990         hardcode_runpath_var=yes
14991         ld_shlibs_F77=yes
14992       fi
14993       ;;
14994
14995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14996       no_undefined_flag_F77='${wl}-z,text'
14997       archive_cmds_need_lc_F77=no
14998       hardcode_shlibpath_var_F77=no
14999       runpath_var='LD_RUN_PATH'
15000
15001       if test "$GCC" = yes; then
15002         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004       else
15005         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007       fi
15008       ;;
15009
15010     sysv5* | sco3.2v5* | sco5v6*)
15011       # Note: We can NOT use -z defs as we might desire, because we do not
15012       # link with -lc, and that would cause any symbols used from libc to
15013       # always be unresolved, which means just about no library would
15014       # ever link correctly.  If we're not using GNU ld we use -z text
15015       # though, which does catch some bad symbols but isn't as heavy-handed
15016       # as -z defs.
15017       no_undefined_flag_F77='${wl}-z,text'
15018       allow_undefined_flag_F77='${wl}-z,nodefs'
15019       archive_cmds_need_lc_F77=no
15020       hardcode_shlibpath_var_F77=no
15021       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15022       hardcode_libdir_separator_F77=':'
15023       link_all_deplibs_F77=yes
15024       export_dynamic_flag_spec_F77='${wl}-Bexport'
15025       runpath_var='LD_RUN_PATH'
15026
15027       if test "$GCC" = yes; then
15028         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15030       else
15031         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15032         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15033       fi
15034       ;;
15035
15036     uts4*)
15037       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15038       hardcode_libdir_flag_spec_F77='-L$libdir'
15039       hardcode_shlibpath_var_F77=no
15040       ;;
15041
15042     *)
15043       ld_shlibs_F77=no
15044       ;;
15045     esac
15046   fi
15047
15048 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15049 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15050 test "$ld_shlibs_F77" = no && can_build_shared=no
15051
15052 #
15053 # Do we need to explicitly link libc?
15054 #
15055 case "x$archive_cmds_need_lc_F77" in
15056 x|xyes)
15057   # Assume -lc should be added
15058   archive_cmds_need_lc_F77=yes
15059
15060   if test "$enable_shared" = yes && test "$GCC" = yes; then
15061     case $archive_cmds_F77 in
15062     *'~'*)
15063       # FIXME: we may have to deal with multi-command sequences.
15064       ;;
15065     '$CC '*)
15066       # Test whether the compiler implicitly links with -lc since on some
15067       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15068       # to ld, don't add -lc before -lgcc.
15069       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15070 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15071       $rm conftest*
15072       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15073
15074       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075   (eval $ac_compile) 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } 2>conftest.err; then
15079         soname=conftest
15080         lib=conftest
15081         libobjs=conftest.$ac_objext
15082         deplibs=
15083         wl=$lt_prog_compiler_wl_F77
15084         pic_flag=$lt_prog_compiler_pic_F77
15085         compiler_flags=-v
15086         linker_flags=-v
15087         verstring=
15088         output_objdir=.
15089         libname=conftest
15090         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15091         allow_undefined_flag_F77=
15092         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15093   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }
15097         then
15098           archive_cmds_need_lc_F77=no
15099         else
15100           archive_cmds_need_lc_F77=yes
15101         fi
15102         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15103       else
15104         cat conftest.err 1>&5
15105       fi
15106       $rm conftest*
15107       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15108 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15109       ;;
15110     esac
15111   fi
15112   ;;
15113 esac
15114
15115 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15116 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15117 library_names_spec=
15118 libname_spec='lib$name'
15119 soname_spec=
15120 shrext_cmds=".so"
15121 postinstall_cmds=
15122 postuninstall_cmds=
15123 finish_cmds=
15124 finish_eval=
15125 shlibpath_var=
15126 shlibpath_overrides_runpath=unknown
15127 version_type=none
15128 dynamic_linker="$host_os ld.so"
15129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15130 if test "$GCC" = yes; then
15131   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15132   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15133     # if the path contains ";" then we assume it to be the separator
15134     # otherwise default to the standard path separator (i.e. ":") - it is
15135     # assumed that no part of a normal pathname contains ";" but that should
15136     # okay in the real world where ";" in dirpaths is itself problematic.
15137     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15138   else
15139     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15140   fi
15141 else
15142   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15143 fi
15144 need_lib_prefix=unknown
15145 hardcode_into_libs=no
15146
15147 # when you set need_version to no, make sure it does not cause -set_version
15148 # flags to be left without arguments
15149 need_version=unknown
15150
15151 case $host_os in
15152 aix3*)
15153   version_type=linux
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15155   shlibpath_var=LIBPATH
15156
15157   # AIX 3 has no versioning support, so we append a major version to the name.
15158   soname_spec='${libname}${release}${shared_ext}$major'
15159   ;;
15160
15161 aix4* | aix5*)
15162   version_type=linux
15163   need_lib_prefix=no
15164   need_version=no
15165   hardcode_into_libs=yes
15166   if test "$host_cpu" = ia64; then
15167     # AIX 5 supports IA64
15168     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15169     shlibpath_var=LD_LIBRARY_PATH
15170   else
15171     # With GCC up to 2.95.x, collect2 would create an import file
15172     # for dependence libraries.  The import file would start with
15173     # the line `#! .'.  This would cause the generated library to
15174     # depend on `.', always an invalid library.  This was fixed in
15175     # development snapshots of GCC prior to 3.0.
15176     case $host_os in
15177       aix4 | aix4.[01] | aix4.[01].*)
15178       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15179            echo ' yes '
15180            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15181         :
15182       else
15183         can_build_shared=no
15184       fi
15185       ;;
15186     esac
15187     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15188     # soname into executable. Probably we can add versioning support to
15189     # collect2, so additional links can be useful in future.
15190     if test "$aix_use_runtimelinking" = yes; then
15191       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15192       # instead of lib<name>.a to let people know that these are not
15193       # typical AIX shared libraries.
15194       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195     else
15196       # We preserve .a as extension for shared libraries through AIX4.2
15197       # and later when we are not doing run time linking.
15198       library_names_spec='${libname}${release}.a $libname.a'
15199       soname_spec='${libname}${release}${shared_ext}$major'
15200     fi
15201     shlibpath_var=LIBPATH
15202   fi
15203   ;;
15204
15205 amigaos*)
15206   library_names_spec='$libname.ixlibrary $libname.a'
15207   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15208   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'
15209   ;;
15210
15211 beos*)
15212   library_names_spec='${libname}${shared_ext}'
15213   dynamic_linker="$host_os ld.so"
15214   shlibpath_var=LIBRARY_PATH
15215   ;;
15216
15217 bsdi[45]*)
15218   version_type=linux
15219   need_version=no
15220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221   soname_spec='${libname}${release}${shared_ext}$major'
15222   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15223   shlibpath_var=LD_LIBRARY_PATH
15224   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15225   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15226   # the default ld.so.conf also contains /usr/contrib/lib and
15227   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15228   # libtool to hard-code these into programs
15229   ;;
15230
15231 cygwin* | mingw* | pw32*)
15232   version_type=windows
15233   shrext_cmds=".dll"
15234   need_version=no
15235   need_lib_prefix=no
15236
15237   case $GCC,$host_os in
15238   yes,cygwin* | yes,mingw* | yes,pw32*)
15239     library_names_spec='$libname.dll.a'
15240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15241     postinstall_cmds='base_file=`basename \${file}`~
15242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15243       dldir=$destdir/`dirname \$dlpath`~
15244       test -d \$dldir || mkdir -p \$dldir~
15245       $install_prog $dir/$dlname \$dldir/$dlname~
15246       chmod a+x \$dldir/$dlname'
15247     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15248       dlpath=$dir/\$dldll~
15249        $rm \$dlpath'
15250     shlibpath_overrides_runpath=yes
15251
15252     case $host_os in
15253     cygwin*)
15254       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15255       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15256       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15257       ;;
15258     mingw*)
15259       # MinGW DLLs use traditional 'lib' prefix
15260       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15262       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15263         # It is most probably a Windows format PATH printed by
15264         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15265         # path with ; separators, and with drive letters. We can handle the
15266         # drive letters (cygwin fileutils understands them), so leave them,
15267         # especially as we might pass files found there to a mingw objdump,
15268         # which wouldn't understand a cygwinified path. Ahh.
15269         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15270       else
15271         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15272       fi
15273       ;;
15274     pw32*)
15275       # pw32 DLLs use 'pw' prefix rather than 'lib'
15276       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15277       ;;
15278     esac
15279     ;;
15280
15281   *)
15282     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15283     ;;
15284   esac
15285   dynamic_linker='Win32 ld.exe'
15286   # FIXME: first we should search . and the directory the executable is in
15287   shlibpath_var=PATH
15288   ;;
15289
15290 darwin* | rhapsody*)
15291   dynamic_linker="$host_os dyld"
15292   version_type=darwin
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15296   soname_spec='${libname}${release}${major}$shared_ext'
15297   shlibpath_overrides_runpath=yes
15298   shlibpath_var=DYLD_LIBRARY_PATH
15299   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15300   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15301   if test "$GCC" = yes; then
15302     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"`
15303   else
15304     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15305   fi
15306   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15307   ;;
15308
15309 dgux*)
15310   version_type=linux
15311   need_lib_prefix=no
15312   need_version=no
15313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15314   soname_spec='${libname}${release}${shared_ext}$major'
15315   shlibpath_var=LD_LIBRARY_PATH
15316   ;;
15317
15318 freebsd1*)
15319   dynamic_linker=no
15320   ;;
15321
15322 freebsd* | dragonfly*)
15323   # DragonFly does not have aout.  When/if they implement a new
15324   # versioning mechanism, adjust this.
15325   if test -x /usr/bin/objformat; then
15326     objformat=`/usr/bin/objformat`
15327   else
15328     case $host_os in
15329     freebsd[123]*) objformat=aout ;;
15330     *) objformat=elf ;;
15331     esac
15332   fi
15333   version_type=freebsd-$objformat
15334   case $version_type in
15335     freebsd-elf*)
15336       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15337       need_version=no
15338       need_lib_prefix=no
15339       ;;
15340     freebsd-*)
15341       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15342       need_version=yes
15343       ;;
15344   esac
15345   shlibpath_var=LD_LIBRARY_PATH
15346   case $host_os in
15347   freebsd2*)
15348     shlibpath_overrides_runpath=yes
15349     ;;
15350   freebsd3.[01]* | freebsdelf3.[01]*)
15351     shlibpath_overrides_runpath=yes
15352     hardcode_into_libs=yes
15353     ;;
15354   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15355   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15356     shlibpath_overrides_runpath=no
15357     hardcode_into_libs=yes
15358     ;;
15359   freebsd*) # from 4.6 on
15360     shlibpath_overrides_runpath=yes
15361     hardcode_into_libs=yes
15362     ;;
15363   esac
15364   ;;
15365
15366 gnu*)
15367   version_type=linux
15368   need_lib_prefix=no
15369   need_version=no
15370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15371   soname_spec='${libname}${release}${shared_ext}$major'
15372   shlibpath_var=LD_LIBRARY_PATH
15373   hardcode_into_libs=yes
15374   ;;
15375
15376 hpux9* | hpux10* | hpux11*)
15377   # Give a soname corresponding to the major version so that dld.sl refuses to
15378   # link against other versions.
15379   version_type=sunos
15380   need_lib_prefix=no
15381   need_version=no
15382   case $host_cpu in
15383   ia64*)
15384     shrext_cmds='.so'
15385     hardcode_into_libs=yes
15386     dynamic_linker="$host_os dld.so"
15387     shlibpath_var=LD_LIBRARY_PATH
15388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390     soname_spec='${libname}${release}${shared_ext}$major'
15391     if test "X$HPUX_IA64_MODE" = X32; then
15392       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15393     else
15394       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15395     fi
15396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15397     ;;
15398    hppa*64*)
15399      shrext_cmds='.sl'
15400      hardcode_into_libs=yes
15401      dynamic_linker="$host_os dld.sl"
15402      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15403      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15404      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405      soname_spec='${libname}${release}${shared_ext}$major'
15406      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15407      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15408      ;;
15409    *)
15410     shrext_cmds='.sl'
15411     dynamic_linker="$host_os dld.sl"
15412     shlibpath_var=SHLIB_PATH
15413     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
15417   esac
15418   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15419   postinstall_cmds='chmod 555 $lib'
15420   ;;
15421
15422 interix3*)
15423   version_type=linux
15424   need_lib_prefix=no
15425   need_version=no
15426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15427   soname_spec='${libname}${release}${shared_ext}$major'
15428   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15429   shlibpath_var=LD_LIBRARY_PATH
15430   shlibpath_overrides_runpath=no
15431   hardcode_into_libs=yes
15432   ;;
15433
15434 irix5* | irix6* | nonstopux*)
15435   case $host_os in
15436     nonstopux*) version_type=nonstopux ;;
15437     *)
15438         if test "$lt_cv_prog_gnu_ld" = yes; then
15439                 version_type=linux
15440         else
15441                 version_type=irix
15442         fi ;;
15443   esac
15444   need_lib_prefix=no
15445   need_version=no
15446   soname_spec='${libname}${release}${shared_ext}$major'
15447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15448   case $host_os in
15449   irix5* | nonstopux*)
15450     libsuff= shlibsuff=
15451     ;;
15452   *)
15453     case $LD in # libtool.m4 will add one of these switches to LD
15454     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15455       libsuff= shlibsuff= libmagic=32-bit;;
15456     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15457       libsuff=32 shlibsuff=N32 libmagic=N32;;
15458     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15459       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15460     *) libsuff= shlibsuff= libmagic=never-match;;
15461     esac
15462     ;;
15463   esac
15464   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15465   shlibpath_overrides_runpath=no
15466   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15467   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15468   hardcode_into_libs=yes
15469   ;;
15470
15471 # No shared lib support for Linux oldld, aout, or coff.
15472 linux*oldld* | linux*aout* | linux*coff*)
15473   dynamic_linker=no
15474   ;;
15475
15476 # This must be Linux ELF.
15477 linux* | k*bsd*-gnu)
15478   version_type=linux
15479   need_lib_prefix=no
15480   need_version=no
15481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15484   shlibpath_var=LD_LIBRARY_PATH
15485   shlibpath_overrides_runpath=no
15486   # This implies no fast_install, which is unacceptable.
15487   # Some rework will be needed to allow for fast_install
15488   # before this can be enabled.
15489   hardcode_into_libs=yes
15490
15491   # Append ld.so.conf contents to the search path
15492   if test -f /etc/ld.so.conf; then
15493     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' ' '`
15494     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15495   fi
15496
15497   # We used to test for /lib/ld.so.1 and disable shared libraries on
15498   # powerpc, because MkLinux only supported shared libraries with the
15499   # GNU dynamic linker.  Since this was broken with cross compilers,
15500   # most powerpc-linux boxes support dynamic linking these days and
15501   # people can always --disable-shared, the test was removed, and we
15502   # assume the GNU/Linux dynamic linker is in use.
15503   dynamic_linker='GNU/Linux ld.so'
15504   ;;
15505
15506 netbsdelf*-gnu)
15507   version_type=linux
15508   need_lib_prefix=no
15509   need_version=no
15510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15511   soname_spec='${libname}${release}${shared_ext}$major'
15512   shlibpath_var=LD_LIBRARY_PATH
15513   shlibpath_overrides_runpath=no
15514   hardcode_into_libs=yes
15515   dynamic_linker='NetBSD ld.elf_so'
15516   ;;
15517
15518 netbsd*)
15519   version_type=sunos
15520   need_lib_prefix=no
15521   need_version=no
15522   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15524     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15525     dynamic_linker='NetBSD (a.out) ld.so'
15526   else
15527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15528     soname_spec='${libname}${release}${shared_ext}$major'
15529     dynamic_linker='NetBSD ld.elf_so'
15530   fi
15531   shlibpath_var=LD_LIBRARY_PATH
15532   shlibpath_overrides_runpath=yes
15533   hardcode_into_libs=yes
15534   ;;
15535
15536 newsos6)
15537   version_type=linux
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   shlibpath_overrides_runpath=yes
15541   ;;
15542
15543 nto-qnx*)
15544   version_type=linux
15545   need_lib_prefix=no
15546   need_version=no
15547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548   soname_spec='${libname}${release}${shared_ext}$major'
15549   shlibpath_var=LD_LIBRARY_PATH
15550   shlibpath_overrides_runpath=yes
15551   ;;
15552
15553 openbsd*)
15554   version_type=sunos
15555   sys_lib_dlsearch_path_spec="/usr/lib"
15556   need_lib_prefix=no
15557   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15558   case $host_os in
15559     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15560     *)                         need_version=no  ;;
15561   esac
15562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564   shlibpath_var=LD_LIBRARY_PATH
15565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15566     case $host_os in
15567       openbsd2.[89] | openbsd2.[89].*)
15568         shlibpath_overrides_runpath=no
15569         ;;
15570       *)
15571         shlibpath_overrides_runpath=yes
15572         ;;
15573       esac
15574   else
15575     shlibpath_overrides_runpath=yes
15576   fi
15577   ;;
15578
15579 os2*)
15580   libname_spec='$name'
15581   shrext_cmds=".dll"
15582   need_lib_prefix=no
15583   library_names_spec='$libname${shared_ext} $libname.a'
15584   dynamic_linker='OS/2 ld.exe'
15585   shlibpath_var=LIBPATH
15586   ;;
15587
15588 osf3* | osf4* | osf5*)
15589   version_type=osf
15590   need_lib_prefix=no
15591   need_version=no
15592   soname_spec='${libname}${release}${shared_ext}$major'
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15596   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15597   ;;
15598
15599 solaris*)
15600   version_type=linux
15601   need_lib_prefix=no
15602   need_version=no
15603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604   soname_spec='${libname}${release}${shared_ext}$major'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   shlibpath_overrides_runpath=yes
15607   hardcode_into_libs=yes
15608   # ldd complains unless libraries are executable
15609   postinstall_cmds='chmod +x $lib'
15610   ;;
15611
15612 sunos4*)
15613   version_type=sunos
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15616   shlibpath_var=LD_LIBRARY_PATH
15617   shlibpath_overrides_runpath=yes
15618   if test "$with_gnu_ld" = yes; then
15619     need_lib_prefix=no
15620   fi
15621   need_version=yes
15622   ;;
15623
15624 sysv4 | sysv4.3*)
15625   version_type=linux
15626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627   soname_spec='${libname}${release}${shared_ext}$major'
15628   shlibpath_var=LD_LIBRARY_PATH
15629   case $host_vendor in
15630     sni)
15631       shlibpath_overrides_runpath=no
15632       need_lib_prefix=no
15633       export_dynamic_flag_spec='${wl}-Blargedynsym'
15634       runpath_var=LD_RUN_PATH
15635       ;;
15636     siemens)
15637       need_lib_prefix=no
15638       ;;
15639     motorola)
15640       need_lib_prefix=no
15641       need_version=no
15642       shlibpath_overrides_runpath=no
15643       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15644       ;;
15645   esac
15646   ;;
15647
15648 sysv4*MP*)
15649   if test -d /usr/nec ;then
15650     version_type=linux
15651     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15652     soname_spec='$libname${shared_ext}.$major'
15653     shlibpath_var=LD_LIBRARY_PATH
15654   fi
15655   ;;
15656
15657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15658   version_type=freebsd-elf
15659   need_lib_prefix=no
15660   need_version=no
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15662   soname_spec='${libname}${release}${shared_ext}$major'
15663   shlibpath_var=LD_LIBRARY_PATH
15664   hardcode_into_libs=yes
15665   if test "$with_gnu_ld" = yes; then
15666     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15667     shlibpath_overrides_runpath=no
15668   else
15669     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15670     shlibpath_overrides_runpath=yes
15671     case $host_os in
15672       sco3.2v5*)
15673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15674         ;;
15675     esac
15676   fi
15677   sys_lib_dlsearch_path_spec='/usr/lib'
15678   ;;
15679
15680 uts4*)
15681   version_type=linux
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   ;;
15686
15687 *)
15688   dynamic_linker=no
15689   ;;
15690 esac
15691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15692 echo "${ECHO_T}$dynamic_linker" >&6; }
15693 test "$dynamic_linker" = no && can_build_shared=no
15694
15695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15696 if test "$GCC" = yes; then
15697   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15698 fi
15699
15700 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15702 hardcode_action_F77=
15703 if test -n "$hardcode_libdir_flag_spec_F77" || \
15704    test -n "$runpath_var_F77" || \
15705    test "X$hardcode_automatic_F77" = "Xyes" ; then
15706
15707   # We can hardcode non-existant directories.
15708   if test "$hardcode_direct_F77" != no &&
15709      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15710      # have to relink, otherwise we might link with an installed library
15711      # when we should be linking with a yet-to-be-installed one
15712      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15713      test "$hardcode_minus_L_F77" != no; then
15714     # Linking always hardcodes the temporary library directory.
15715     hardcode_action_F77=relink
15716   else
15717     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15718     hardcode_action_F77=immediate
15719   fi
15720 else
15721   # We cannot hardcode anything, or else we can only hardcode existing
15722   # directories.
15723   hardcode_action_F77=unsupported
15724 fi
15725 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15726 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15727
15728 if test "$hardcode_action_F77" = relink; then
15729   # Fast installation is not supported
15730   enable_fast_install=no
15731 elif test "$shlibpath_overrides_runpath" = yes ||
15732      test "$enable_shared" = no; then
15733   # Fast installation is not necessary
15734   enable_fast_install=needless
15735 fi
15736
15737
15738 # The else clause should only fire when bootstrapping the
15739 # libtool distribution, otherwise you forgot to ship ltmain.sh
15740 # with your package, and you will get complaints that there are
15741 # no rules to generate ltmain.sh.
15742 if test -f "$ltmain"; then
15743   # See if we are running on zsh, and set the options which allow our commands through
15744   # without removal of \ escapes.
15745   if test -n "${ZSH_VERSION+set}" ; then
15746     setopt NO_GLOB_SUBST
15747   fi
15748   # Now quote all the things that may contain metacharacters while being
15749   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15750   # variables and quote the copies for generation of the libtool script.
15751   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15752     SED SHELL STRIP \
15753     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15754     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15755     deplibs_check_method reload_flag reload_cmds need_locks \
15756     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15757     lt_cv_sys_global_symbol_to_c_name_address \
15758     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15759     old_postinstall_cmds old_postuninstall_cmds \
15760     compiler_F77 \
15761     CC_F77 \
15762     LD_F77 \
15763     lt_prog_compiler_wl_F77 \
15764     lt_prog_compiler_pic_F77 \
15765     lt_prog_compiler_static_F77 \
15766     lt_prog_compiler_no_builtin_flag_F77 \
15767     export_dynamic_flag_spec_F77 \
15768     thread_safe_flag_spec_F77 \
15769     whole_archive_flag_spec_F77 \
15770     enable_shared_with_static_runtimes_F77 \
15771     old_archive_cmds_F77 \
15772     old_archive_from_new_cmds_F77 \
15773     predep_objects_F77 \
15774     postdep_objects_F77 \
15775     predeps_F77 \
15776     postdeps_F77 \
15777     compiler_lib_search_path_F77 \
15778     archive_cmds_F77 \
15779     archive_expsym_cmds_F77 \
15780     postinstall_cmds_F77 \
15781     postuninstall_cmds_F77 \
15782     old_archive_from_expsyms_cmds_F77 \
15783     allow_undefined_flag_F77 \
15784     no_undefined_flag_F77 \
15785     export_symbols_cmds_F77 \
15786     hardcode_libdir_flag_spec_F77 \
15787     hardcode_libdir_flag_spec_ld_F77 \
15788     hardcode_libdir_separator_F77 \
15789     hardcode_automatic_F77 \
15790     module_cmds_F77 \
15791     module_expsym_cmds_F77 \
15792     lt_cv_prog_compiler_c_o_F77 \
15793     exclude_expsyms_F77 \
15794     include_expsyms_F77; do
15795
15796     case $var in
15797     old_archive_cmds_F77 | \
15798     old_archive_from_new_cmds_F77 | \
15799     archive_cmds_F77 | \
15800     archive_expsym_cmds_F77 | \
15801     module_cmds_F77 | \
15802     module_expsym_cmds_F77 | \
15803     old_archive_from_expsyms_cmds_F77 | \
15804     export_symbols_cmds_F77 | \
15805     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15806     postinstall_cmds | postuninstall_cmds | \
15807     old_postinstall_cmds | old_postuninstall_cmds | \
15808     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15809       # Double-quote double-evaled strings.
15810       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15811       ;;
15812     *)
15813       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15814       ;;
15815     esac
15816   done
15817
15818   case $lt_echo in
15819   *'\$0 --fallback-echo"')
15820     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15821     ;;
15822   esac
15823
15824 cfgfile="$ofile"
15825
15826   cat <<__EOF__ >> "$cfgfile"
15827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15828
15829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15830
15831 # Shell to use when invoking shell scripts.
15832 SHELL=$lt_SHELL
15833
15834 # Whether or not to build shared libraries.
15835 build_libtool_libs=$enable_shared
15836
15837 # Whether or not to build static libraries.
15838 build_old_libs=$enable_static
15839
15840 # Whether or not to add -lc for building shared libraries.
15841 build_libtool_need_lc=$archive_cmds_need_lc_F77
15842
15843 # Whether or not to disallow shared libs when runtime libs are static
15844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15845
15846 # Whether or not to optimize for fast installation.
15847 fast_install=$enable_fast_install
15848
15849 # The host system.
15850 host_alias=$host_alias
15851 host=$host
15852 host_os=$host_os
15853
15854 # The build system.
15855 build_alias=$build_alias
15856 build=$build
15857 build_os=$build_os
15858
15859 # An echo program that does not interpret backslashes.
15860 echo=$lt_echo
15861
15862 # The archiver.
15863 AR=$lt_AR
15864 AR_FLAGS=$lt_AR_FLAGS
15865
15866 # A C compiler.
15867 LTCC=$lt_LTCC
15868
15869 # LTCC compiler flags.
15870 LTCFLAGS=$lt_LTCFLAGS
15871
15872 # A language-specific compiler.
15873 CC=$lt_compiler_F77
15874
15875 # Is the compiler the GNU C compiler?
15876 with_gcc=$GCC_F77
15877
15878 # An ERE matcher.
15879 EGREP=$lt_EGREP
15880
15881 # The linker used to build libraries.
15882 LD=$lt_LD_F77
15883
15884 # Whether we need hard or soft links.
15885 LN_S=$lt_LN_S
15886
15887 # A BSD-compatible nm program.
15888 NM=$lt_NM
15889
15890 # A symbol stripping program
15891 STRIP=$lt_STRIP
15892
15893 # Used to examine libraries when file_magic_cmd begins "file"
15894 MAGIC_CMD=$MAGIC_CMD
15895
15896 # Used on cygwin: DLL creation program.
15897 DLLTOOL="$DLLTOOL"
15898
15899 # Used on cygwin: object dumper.
15900 OBJDUMP="$OBJDUMP"
15901
15902 # Used on cygwin: assembler.
15903 AS="$AS"
15904
15905 # The name of the directory that contains temporary libtool files.
15906 objdir=$objdir
15907
15908 # How to create reloadable object files.
15909 reload_flag=$lt_reload_flag
15910 reload_cmds=$lt_reload_cmds
15911
15912 # How to pass a linker flag through the compiler.
15913 wl=$lt_lt_prog_compiler_wl_F77
15914
15915 # Object file suffix (normally "o").
15916 objext="$ac_objext"
15917
15918 # Old archive suffix (normally "a").
15919 libext="$libext"
15920
15921 # Shared library suffix (normally ".so").
15922 shrext_cmds='$shrext_cmds'
15923
15924 # Executable file suffix (normally "").
15925 exeext="$exeext"
15926
15927 # Additional compiler flags for building library objects.
15928 pic_flag=$lt_lt_prog_compiler_pic_F77
15929 pic_mode=$pic_mode
15930
15931 # What is the maximum length of a command?
15932 max_cmd_len=$lt_cv_sys_max_cmd_len
15933
15934 # Does compiler simultaneously support -c and -o options?
15935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15936
15937 # Must we lock files when doing compilation?
15938 need_locks=$lt_need_locks
15939
15940 # Do we need the lib prefix for modules?
15941 need_lib_prefix=$need_lib_prefix
15942
15943 # Do we need a version for libraries?
15944 need_version=$need_version
15945
15946 # Whether dlopen is supported.
15947 dlopen_support=$enable_dlopen
15948
15949 # Whether dlopen of programs is supported.
15950 dlopen_self=$enable_dlopen_self
15951
15952 # Whether dlopen of statically linked programs is supported.
15953 dlopen_self_static=$enable_dlopen_self_static
15954
15955 # Compiler flag to prevent dynamic linking.
15956 link_static_flag=$lt_lt_prog_compiler_static_F77
15957
15958 # Compiler flag to turn off builtin functions.
15959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15960
15961 # Compiler flag to allow reflexive dlopens.
15962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15963
15964 # Compiler flag to generate shared objects directly from archives.
15965 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15966
15967 # Compiler flag to generate thread-safe objects.
15968 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15969
15970 # Library versioning type.
15971 version_type=$version_type
15972
15973 # Format of library name prefix.
15974 libname_spec=$lt_libname_spec
15975
15976 # List of archive names.  First name is the real one, the rest are links.
15977 # The last name is the one that the linker finds with -lNAME.
15978 library_names_spec=$lt_library_names_spec
15979
15980 # The coded name of the library, if different from the real name.
15981 soname_spec=$lt_soname_spec
15982
15983 # Commands used to build and install an old-style archive.
15984 RANLIB=$lt_RANLIB
15985 old_archive_cmds=$lt_old_archive_cmds_F77
15986 old_postinstall_cmds=$lt_old_postinstall_cmds
15987 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15988
15989 # Create an old-style archive from a shared archive.
15990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15991
15992 # Create a temporary old-style archive to link instead of a shared archive.
15993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15994
15995 # Commands used to build and install a shared archive.
15996 archive_cmds=$lt_archive_cmds_F77
15997 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15998 postinstall_cmds=$lt_postinstall_cmds
15999 postuninstall_cmds=$lt_postuninstall_cmds
16000
16001 # Commands used to build a loadable module (assumed same as above if empty)
16002 module_cmds=$lt_module_cmds_F77
16003 module_expsym_cmds=$lt_module_expsym_cmds_F77
16004
16005 # Commands to strip libraries.
16006 old_striplib=$lt_old_striplib
16007 striplib=$lt_striplib
16008
16009 # Dependencies to place before the objects being linked to create a
16010 # shared library.
16011 predep_objects=$lt_predep_objects_F77
16012
16013 # Dependencies to place after the objects being linked to create a
16014 # shared library.
16015 postdep_objects=$lt_postdep_objects_F77
16016
16017 # Dependencies to place before the objects being linked to create a
16018 # shared library.
16019 predeps=$lt_predeps_F77
16020
16021 # Dependencies to place after the objects being linked to create a
16022 # shared library.
16023 postdeps=$lt_postdeps_F77
16024
16025 # The library search path used internally by the compiler when linking
16026 # a shared library.
16027 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16028
16029 # Method to check whether dependent libraries are shared objects.
16030 deplibs_check_method=$lt_deplibs_check_method
16031
16032 # Command to use when deplibs_check_method == file_magic.
16033 file_magic_cmd=$lt_file_magic_cmd
16034
16035 # Flag that allows shared libraries with undefined symbols to be built.
16036 allow_undefined_flag=$lt_allow_undefined_flag_F77
16037
16038 # Flag that forces no undefined symbols.
16039 no_undefined_flag=$lt_no_undefined_flag_F77
16040
16041 # Commands used to finish a libtool library installation in a directory.
16042 finish_cmds=$lt_finish_cmds
16043
16044 # Same as above, but a single script fragment to be evaled but not shown.
16045 finish_eval=$lt_finish_eval
16046
16047 # Take the output of nm and produce a listing of raw symbols and C names.
16048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16049
16050 # Transform the output of nm in a proper C declaration
16051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16052
16053 # Transform the output of nm in a C name address pair
16054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16055
16056 # This is the shared library runtime path variable.
16057 runpath_var=$runpath_var
16058
16059 # This is the shared library path variable.
16060 shlibpath_var=$shlibpath_var
16061
16062 # Is shlibpath searched before the hard-coded library search path?
16063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16064
16065 # How to hardcode a shared library path into an executable.
16066 hardcode_action=$hardcode_action_F77
16067
16068 # Whether we should hardcode library paths into libraries.
16069 hardcode_into_libs=$hardcode_into_libs
16070
16071 # Flag to hardcode \$libdir into a binary during linking.
16072 # This must work even if \$libdir does not exist.
16073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16074
16075 # If ld is used when linking, flag to hardcode \$libdir into
16076 # a binary during linking. This must work even if \$libdir does
16077 # not exist.
16078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16079
16080 # Whether we need a single -rpath flag with a separated argument.
16081 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16082
16083 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16084 # resulting binary.
16085 hardcode_direct=$hardcode_direct_F77
16086
16087 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16088 # resulting binary.
16089 hardcode_minus_L=$hardcode_minus_L_F77
16090
16091 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16092 # the resulting binary.
16093 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16094
16095 # Set to yes if building a shared library automatically hardcodes DIR into the library
16096 # and all subsequent libraries and executables linked against it.
16097 hardcode_automatic=$hardcode_automatic_F77
16098
16099 # Variables whose values should be saved in libtool wrapper scripts and
16100 # restored at relink time.
16101 variables_saved_for_relink="$variables_saved_for_relink"
16102
16103 # Whether libtool must link a program against all its dependency libraries.
16104 link_all_deplibs=$link_all_deplibs_F77
16105
16106 # Compile-time system search path for libraries
16107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16108
16109 # Run-time system search path for libraries
16110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16111
16112 # Fix the shell variable \$srcfile for the compiler.
16113 fix_srcfile_path="$fix_srcfile_path_F77"
16114
16115 # Set to yes if exported symbols are required.
16116 always_export_symbols=$always_export_symbols_F77
16117
16118 # The commands to list exported symbols.
16119 export_symbols_cmds=$lt_export_symbols_cmds_F77
16120
16121 # The commands to extract the exported symbol list from a shared archive.
16122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16123
16124 # Symbols that should not be listed in the preloaded symbols.
16125 exclude_expsyms=$lt_exclude_expsyms_F77
16126
16127 # Symbols that must always be exported.
16128 include_expsyms=$lt_include_expsyms_F77
16129
16130 # ### END LIBTOOL TAG CONFIG: $tagname
16131
16132 __EOF__
16133
16134
16135 else
16136   # If there is no Makefile yet, we rely on a make rule to execute
16137   # `config.status --recheck' to rerun these tests and create the
16138   # libtool script then.
16139   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16140   if test -f "$ltmain_in"; then
16141     test -f Makefile && make "$ltmain"
16142   fi
16143 fi
16144
16145
16146 ac_ext=c
16147 ac_cpp='$CPP $CPPFLAGS'
16148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16151
16152 CC="$lt_save_CC"
16153
16154         else
16155           tagname=""
16156         fi
16157         ;;
16158
16159       GCJ)
16160         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16161
16162
16163 # Source file extension for Java test sources.
16164 ac_ext=java
16165
16166 # Object file extension for compiled Java test sources.
16167 objext=o
16168 objext_GCJ=$objext
16169
16170 # Code to be used in simple compile tests
16171 lt_simple_compile_test_code="class foo {}\n"
16172
16173 # Code to be used in simple link tests
16174 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16175
16176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16177
16178 # If no C compiler was specified, use CC.
16179 LTCC=${LTCC-"$CC"}
16180
16181 # If no C compiler flags were specified, use CFLAGS.
16182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16183
16184 # Allow CC to be a program name with arguments.
16185 compiler=$CC
16186
16187
16188 # save warnings/boilerplate of simple test code
16189 ac_outfile=conftest.$ac_objext
16190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16192 _lt_compiler_boilerplate=`cat conftest.err`
16193 $rm conftest*
16194
16195 ac_outfile=conftest.$ac_objext
16196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16198 _lt_linker_boilerplate=`cat conftest.err`
16199 $rm conftest*
16200
16201
16202 # Allow CC to be a program name with arguments.
16203 lt_save_CC="$CC"
16204 CC=${GCJ-"gcj"}
16205 compiler=$CC
16206 compiler_GCJ=$CC
16207 for cc_temp in $compiler""; do
16208   case $cc_temp in
16209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16211     \-*) ;;
16212     *) break;;
16213   esac
16214 done
16215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16216
16217
16218 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16219 archive_cmds_need_lc_GCJ=no
16220
16221 old_archive_cmds_GCJ=$old_archive_cmds
16222
16223
16224 lt_prog_compiler_no_builtin_flag_GCJ=
16225
16226 if test "$GCC" = yes; then
16227   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16228
16229
16230 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16231 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16232 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235   lt_cv_prog_compiler_rtti_exceptions=no
16236   ac_outfile=conftest.$ac_objext
16237    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16238    lt_compiler_flag="-fno-rtti -fno-exceptions"
16239    # Insert the option either (1) after the last *FLAGS variable, or
16240    # (2) before a word containing "conftest.", or (3) at the end.
16241    # Note that $ac_compile itself does not contain backslashes and begins
16242    # with a dollar sign (not a hyphen), so the echo should work correctly.
16243    # The option is referenced via a variable to avoid confusing sed.
16244    lt_compile=`echo "$ac_compile" | $SED \
16245    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16246    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16247    -e 's:$: $lt_compiler_flag:'`
16248    (eval echo "\"\$as_me:16248: $lt_compile\"" >&5)
16249    (eval "$lt_compile" 2>conftest.err)
16250    ac_status=$?
16251    cat conftest.err >&5
16252    echo "$as_me:16252: \$? = $ac_status" >&5
16253    if (exit $ac_status) && test -s "$ac_outfile"; then
16254      # The compiler can only warn and ignore the option if not recognized
16255      # So say no if there are warnings other than the usual output.
16256      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16257      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16259        lt_cv_prog_compiler_rtti_exceptions=yes
16260      fi
16261    fi
16262    $rm conftest*
16263
16264 fi
16265 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16266 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16267
16268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16269     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16270 else
16271     :
16272 fi
16273
16274 fi
16275
16276 lt_prog_compiler_wl_GCJ=
16277 lt_prog_compiler_pic_GCJ=
16278 lt_prog_compiler_static_GCJ=
16279
16280 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16282
16283   if test "$GCC" = yes; then
16284     lt_prog_compiler_wl_GCJ='-Wl,'
16285     lt_prog_compiler_static_GCJ='-static'
16286
16287     case $host_os in
16288       aix*)
16289       # All AIX code is PIC.
16290       if test "$host_cpu" = ia64; then
16291         # AIX 5 now supports IA64 processor
16292         lt_prog_compiler_static_GCJ='-Bstatic'
16293       fi
16294       ;;
16295
16296     amigaos*)
16297       # FIXME: we need at least 68020 code to build shared libraries, but
16298       # adding the `-m68020' flag to GCC prevents building anything better,
16299       # like `-m68040'.
16300       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16301       ;;
16302
16303     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16304       # PIC is the default for these OSes.
16305       ;;
16306
16307     mingw* | pw32* | os2*)
16308       # This hack is so that the source file can tell whether it is being
16309       # built for inclusion in a dll (and should export symbols for example).
16310       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16311       ;;
16312
16313     darwin* | rhapsody*)
16314       # PIC is the default on this platform
16315       # Common symbols not allowed in MH_DYLIB files
16316       lt_prog_compiler_pic_GCJ='-fno-common'
16317       ;;
16318
16319     interix3*)
16320       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16321       # Instead, we relocate shared libraries at runtime.
16322       ;;
16323
16324     msdosdjgpp*)
16325       # Just because we use GCC doesn't mean we suddenly get shared libraries
16326       # on systems that don't support them.
16327       lt_prog_compiler_can_build_shared_GCJ=no
16328       enable_shared=no
16329       ;;
16330
16331     sysv4*MP*)
16332       if test -d /usr/nec; then
16333         lt_prog_compiler_pic_GCJ=-Kconform_pic
16334       fi
16335       ;;
16336
16337     hpux*)
16338       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16339       # not for PA HP-UX.
16340       case $host_cpu in
16341       hppa*64*|ia64*)
16342         # +Z the default
16343         ;;
16344       *)
16345         lt_prog_compiler_pic_GCJ='-fPIC'
16346         ;;
16347       esac
16348       ;;
16349
16350     *)
16351       lt_prog_compiler_pic_GCJ='-fPIC'
16352       ;;
16353     esac
16354   else
16355     # PORTME Check for flag to pass linker flags through the system compiler.
16356     case $host_os in
16357     aix*)
16358       lt_prog_compiler_wl_GCJ='-Wl,'
16359       if test "$host_cpu" = ia64; then
16360         # AIX 5 now supports IA64 processor
16361         lt_prog_compiler_static_GCJ='-Bstatic'
16362       else
16363         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16364       fi
16365       ;;
16366       darwin*)
16367         # PIC is the default on this platform
16368         # Common symbols not allowed in MH_DYLIB files
16369        case $cc_basename in
16370          xlc*)
16371          lt_prog_compiler_pic_GCJ='-qnocommon'
16372          lt_prog_compiler_wl_GCJ='-Wl,'
16373          ;;
16374        esac
16375        ;;
16376
16377     mingw* | pw32* | os2*)
16378       # This hack is so that the source file can tell whether it is being
16379       # built for inclusion in a dll (and should export symbols for example).
16380       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16381       ;;
16382
16383     hpux9* | hpux10* | hpux11*)
16384       lt_prog_compiler_wl_GCJ='-Wl,'
16385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16386       # not for PA HP-UX.
16387       case $host_cpu in
16388       hppa*64*|ia64*)
16389         # +Z the default
16390         ;;
16391       *)
16392         lt_prog_compiler_pic_GCJ='+Z'
16393         ;;
16394       esac
16395       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16396       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16397       ;;
16398
16399     irix5* | irix6* | nonstopux*)
16400       lt_prog_compiler_wl_GCJ='-Wl,'
16401       # PIC (with -KPIC) is the default.
16402       lt_prog_compiler_static_GCJ='-non_shared'
16403       ;;
16404
16405     newsos6)
16406       lt_prog_compiler_pic_GCJ='-KPIC'
16407       lt_prog_compiler_static_GCJ='-Bstatic'
16408       ;;
16409
16410     linux* | k*bsd*-gnu)
16411       case $cc_basename in
16412       icc* | ecc*)
16413         lt_prog_compiler_wl_GCJ='-Wl,'
16414         lt_prog_compiler_pic_GCJ='-KPIC'
16415         lt_prog_compiler_static_GCJ='-static'
16416         ;;
16417       pgcc* | pgf77* | pgf90* | pgf95*)
16418         # Portland Group compilers (*not* the Pentium gcc compiler,
16419         # which looks to be a dead project)
16420         lt_prog_compiler_wl_GCJ='-Wl,'
16421         lt_prog_compiler_pic_GCJ='-fpic'
16422         lt_prog_compiler_static_GCJ='-Bstatic'
16423         ;;
16424       ccc*)
16425         lt_prog_compiler_wl_GCJ='-Wl,'
16426         # All Alpha code is PIC.
16427         lt_prog_compiler_static_GCJ='-non_shared'
16428         ;;
16429       esac
16430       ;;
16431
16432     osf3* | osf4* | osf5*)
16433       lt_prog_compiler_wl_GCJ='-Wl,'
16434       # All OSF/1 code is PIC.
16435       lt_prog_compiler_static_GCJ='-non_shared'
16436       ;;
16437
16438     solaris*)
16439       lt_prog_compiler_pic_GCJ='-KPIC'
16440       lt_prog_compiler_static_GCJ='-Bstatic'
16441       case $cc_basename in
16442       f77* | f90* | f95*)
16443         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16444       *)
16445         lt_prog_compiler_wl_GCJ='-Wl,';;
16446       esac
16447       ;;
16448
16449     sunos4*)
16450       lt_prog_compiler_wl_GCJ='-Qoption ld '
16451       lt_prog_compiler_pic_GCJ='-PIC'
16452       lt_prog_compiler_static_GCJ='-Bstatic'
16453       ;;
16454
16455     sysv4 | sysv4.2uw2* | sysv4.3*)
16456       lt_prog_compiler_wl_GCJ='-Wl,'
16457       lt_prog_compiler_pic_GCJ='-KPIC'
16458       lt_prog_compiler_static_GCJ='-Bstatic'
16459       ;;
16460
16461     sysv4*MP*)
16462       if test -d /usr/nec ;then
16463         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16464         lt_prog_compiler_static_GCJ='-Bstatic'
16465       fi
16466       ;;
16467
16468     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16469       lt_prog_compiler_wl_GCJ='-Wl,'
16470       lt_prog_compiler_pic_GCJ='-KPIC'
16471       lt_prog_compiler_static_GCJ='-Bstatic'
16472       ;;
16473
16474     unicos*)
16475       lt_prog_compiler_wl_GCJ='-Wl,'
16476       lt_prog_compiler_can_build_shared_GCJ=no
16477       ;;
16478
16479     uts4*)
16480       lt_prog_compiler_pic_GCJ='-pic'
16481       lt_prog_compiler_static_GCJ='-Bstatic'
16482       ;;
16483
16484     *)
16485       lt_prog_compiler_can_build_shared_GCJ=no
16486       ;;
16487     esac
16488   fi
16489
16490 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16491 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16492
16493 #
16494 # Check to make sure the PIC flag actually works.
16495 #
16496 if test -n "$lt_prog_compiler_pic_GCJ"; then
16497
16498 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16500 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   lt_prog_compiler_pic_works_GCJ=no
16504   ac_outfile=conftest.$ac_objext
16505    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16506    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16507    # Insert the option either (1) after the last *FLAGS variable, or
16508    # (2) before a word containing "conftest.", or (3) at the end.
16509    # Note that $ac_compile itself does not contain backslashes and begins
16510    # with a dollar sign (not a hyphen), so the echo should work correctly.
16511    # The option is referenced via a variable to avoid confusing sed.
16512    lt_compile=`echo "$ac_compile" | $SED \
16513    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16515    -e 's:$: $lt_compiler_flag:'`
16516    (eval echo "\"\$as_me:16516: $lt_compile\"" >&5)
16517    (eval "$lt_compile" 2>conftest.err)
16518    ac_status=$?
16519    cat conftest.err >&5
16520    echo "$as_me:16520: \$? = $ac_status" >&5
16521    if (exit $ac_status) && test -s "$ac_outfile"; then
16522      # The compiler can only warn and ignore the option if not recognized
16523      # So say no if there are warnings other than the usual output.
16524      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16525      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16526      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16527        lt_prog_compiler_pic_works_GCJ=yes
16528      fi
16529    fi
16530    $rm conftest*
16531
16532 fi
16533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16534 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16535
16536 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16537     case $lt_prog_compiler_pic_GCJ in
16538      "" | " "*) ;;
16539      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16540      esac
16541 else
16542     lt_prog_compiler_pic_GCJ=
16543      lt_prog_compiler_can_build_shared_GCJ=no
16544 fi
16545
16546 fi
16547 case $host_os in
16548   # For platforms which do not support PIC, -DPIC is meaningless:
16549   *djgpp*)
16550     lt_prog_compiler_pic_GCJ=
16551     ;;
16552   *)
16553     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16554     ;;
16555 esac
16556
16557 #
16558 # Check to make sure the static flag actually works.
16559 #
16560 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16561 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16562 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16563 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   lt_prog_compiler_static_works_GCJ=no
16567    save_LDFLAGS="$LDFLAGS"
16568    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16569    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16570    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16571      # The linker can only warn and ignore the option if not recognized
16572      # So say no if there are warnings
16573      if test -s conftest.err; then
16574        # Append any errors to the config.log.
16575        cat conftest.err 1>&5
16576        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16577        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16578        if diff conftest.exp conftest.er2 >/dev/null; then
16579          lt_prog_compiler_static_works_GCJ=yes
16580        fi
16581      else
16582        lt_prog_compiler_static_works_GCJ=yes
16583      fi
16584    fi
16585    $rm conftest*
16586    LDFLAGS="$save_LDFLAGS"
16587
16588 fi
16589 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16590 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16591
16592 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16593     :
16594 else
16595     lt_prog_compiler_static_GCJ=
16596 fi
16597
16598
16599 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16600 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16601 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   lt_cv_prog_compiler_c_o_GCJ=no
16605    $rm -r conftest 2>/dev/null
16606    mkdir conftest
16607    cd conftest
16608    mkdir out
16609    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16610
16611    lt_compiler_flag="-o out/conftest2.$ac_objext"
16612    # Insert the option either (1) after the last *FLAGS variable, or
16613    # (2) before a word containing "conftest.", or (3) at the end.
16614    # Note that $ac_compile itself does not contain backslashes and begins
16615    # with a dollar sign (not a hyphen), so the echo should work correctly.
16616    lt_compile=`echo "$ac_compile" | $SED \
16617    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16619    -e 's:$: $lt_compiler_flag:'`
16620    (eval echo "\"\$as_me:16620: $lt_compile\"" >&5)
16621    (eval "$lt_compile" 2>out/conftest.err)
16622    ac_status=$?
16623    cat out/conftest.err >&5
16624    echo "$as_me:16624: \$? = $ac_status" >&5
16625    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16626    then
16627      # The compiler can only warn and ignore the option if not recognized
16628      # So say no if there are warnings
16629      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16630      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16631      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16632        lt_cv_prog_compiler_c_o_GCJ=yes
16633      fi
16634    fi
16635    chmod u+w . 2>&5
16636    $rm conftest*
16637    # SGI C++ compiler will create directory out/ii_files/ for
16638    # template instantiation
16639    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16640    $rm out/* && rmdir out
16641    cd ..
16642    rmdir conftest
16643    $rm conftest*
16644
16645 fi
16646 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16648
16649
16650 hard_links="nottested"
16651 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16652   # do not overwrite the value of need_locks provided by the user
16653   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16654 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16655   hard_links=yes
16656   $rm conftest*
16657   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16658   touch conftest.a
16659   ln conftest.a conftest.b 2>&5 || hard_links=no
16660   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16661   { echo "$as_me:$LINENO: result: $hard_links" >&5
16662 echo "${ECHO_T}$hard_links" >&6; }
16663   if test "$hard_links" = no; then
16664     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16665 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16666     need_locks=warn
16667   fi
16668 else
16669   need_locks=no
16670 fi
16671
16672 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16674
16675   runpath_var=
16676   allow_undefined_flag_GCJ=
16677   enable_shared_with_static_runtimes_GCJ=no
16678   archive_cmds_GCJ=
16679   archive_expsym_cmds_GCJ=
16680   old_archive_From_new_cmds_GCJ=
16681   old_archive_from_expsyms_cmds_GCJ=
16682   export_dynamic_flag_spec_GCJ=
16683   whole_archive_flag_spec_GCJ=
16684   thread_safe_flag_spec_GCJ=
16685   hardcode_libdir_flag_spec_GCJ=
16686   hardcode_libdir_flag_spec_ld_GCJ=
16687   hardcode_libdir_separator_GCJ=
16688   hardcode_direct_GCJ=no
16689   hardcode_minus_L_GCJ=no
16690   hardcode_shlibpath_var_GCJ=unsupported
16691   link_all_deplibs_GCJ=unknown
16692   hardcode_automatic_GCJ=no
16693   module_cmds_GCJ=
16694   module_expsym_cmds_GCJ=
16695   always_export_symbols_GCJ=no
16696   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16697   # include_expsyms should be a list of space-separated symbols to be *always*
16698   # included in the symbol list
16699   include_expsyms_GCJ=
16700   # exclude_expsyms can be an extended regexp of symbols to exclude
16701   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16702   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16703   # as well as any symbol that contains `d'.
16704   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16705   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16706   # platforms (ab)use it in PIC code, but their linkers get confused if
16707   # the symbol is explicitly referenced.  Since portable code cannot
16708   # rely on this symbol name, it's probably fine to never include it in
16709   # preloaded symbol tables.
16710   extract_expsyms_cmds=
16711   # Just being paranoid about ensuring that cc_basename is set.
16712   for cc_temp in $compiler""; do
16713   case $cc_temp in
16714     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16715     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16716     \-*) ;;
16717     *) break;;
16718   esac
16719 done
16720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16721
16722   case $host_os in
16723   cygwin* | mingw* | pw32*)
16724     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16725     # When not using gcc, we currently assume that we are using
16726     # Microsoft Visual C++.
16727     if test "$GCC" != yes; then
16728       with_gnu_ld=no
16729     fi
16730     ;;
16731   interix*)
16732     # we just hope/assume this is gcc and not c89 (= MSVC++)
16733     with_gnu_ld=yes
16734     ;;
16735   openbsd*)
16736     with_gnu_ld=no
16737     ;;
16738   esac
16739
16740   ld_shlibs_GCJ=yes
16741   if test "$with_gnu_ld" = yes; then
16742     # If archive_cmds runs LD, not CC, wlarc should be empty
16743     wlarc='${wl}'
16744
16745     # Set some defaults for GNU ld with shared library support. These
16746     # are reset later if shared libraries are not supported. Putting them
16747     # here allows them to be overridden if necessary.
16748     runpath_var=LD_RUN_PATH
16749     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16750     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16751     # ancient GNU ld didn't support --whole-archive et. al.
16752     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16753         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16754       else
16755         whole_archive_flag_spec_GCJ=
16756     fi
16757     supports_anon_versioning=no
16758     case `$LD -v 2>/dev/null` in
16759       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16760       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16761       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16762       *\ 2.11.*) ;; # other 2.11 versions
16763       *) supports_anon_versioning=yes ;;
16764     esac
16765
16766     # See if GNU ld supports shared libraries.
16767     case $host_os in
16768     aix3* | aix4* | aix5*)
16769       # On AIX/PPC, the GNU linker is very broken
16770       if test "$host_cpu" != ia64; then
16771         ld_shlibs_GCJ=no
16772         cat <<EOF 1>&2
16773
16774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16775 *** to be unable to reliably create shared libraries on AIX.
16776 *** Therefore, libtool is disabling shared libraries support.  If you
16777 *** really care for shared libraries, you may want to modify your PATH
16778 *** so that a non-GNU linker is found, and then restart.
16779
16780 EOF
16781       fi
16782       ;;
16783
16784     amigaos*)
16785       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)'
16786       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16787       hardcode_minus_L_GCJ=yes
16788
16789       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16790       # that the semantics of dynamic libraries on AmigaOS, at least up
16791       # to version 4, is to share data among multiple programs linked
16792       # with the same dynamic library.  Since this doesn't match the
16793       # behavior of shared libraries on other platforms, we can't use
16794       # them.
16795       ld_shlibs_GCJ=no
16796       ;;
16797
16798     beos*)
16799       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16800         allow_undefined_flag_GCJ=unsupported
16801         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16802         # support --undefined.  This deserves some investigation.  FIXME
16803         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16804       else
16805         ld_shlibs_GCJ=no
16806       fi
16807       ;;
16808
16809     cygwin* | mingw* | pw32*)
16810       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16811       # as there is no search path for DLLs.
16812       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16813       allow_undefined_flag_GCJ=unsupported
16814       always_export_symbols_GCJ=no
16815       enable_shared_with_static_runtimes_GCJ=yes
16816       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16817
16818       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16819         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16820         # If the export-symbols file already is a .def file (1st line
16821         # is EXPORTS), use it as is; otherwise, prepend...
16822         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16823           cp $export_symbols $output_objdir/$soname.def;
16824         else
16825           echo EXPORTS > $output_objdir/$soname.def;
16826           cat $export_symbols >> $output_objdir/$soname.def;
16827         fi~
16828         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16829       else
16830         ld_shlibs_GCJ=no
16831       fi
16832       ;;
16833
16834     interix3*)
16835       hardcode_direct_GCJ=no
16836       hardcode_shlibpath_var_GCJ=no
16837       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16838       export_dynamic_flag_spec_GCJ='${wl}-E'
16839       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16840       # Instead, shared libraries are loaded at an image base (0x10000000 by
16841       # default) and relocated if they conflict, which is a slow very memory
16842       # consuming and fragmenting process.  To avoid this, we pick a random,
16843       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16844       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16845       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'
16846       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'
16847       ;;
16848
16849     linux* | k*bsd*-gnu)
16850       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16851         tmp_addflag=
16852         case $cc_basename,$host_cpu in
16853         pgcc*)                          # Portland Group C compiler
16854           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'
16855           tmp_addflag=' $pic_flag'
16856           ;;
16857         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16858           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'
16859           tmp_addflag=' $pic_flag -Mnomain' ;;
16860         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16861           tmp_addflag=' -i_dynamic' ;;
16862         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16863           tmp_addflag=' -i_dynamic -nofor_main' ;;
16864         ifc* | ifort*)                  # Intel Fortran compiler
16865           tmp_addflag=' -nofor_main' ;;
16866         esac
16867         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16868
16869         if test $supports_anon_versioning = yes; then
16870           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16871   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16872   $echo "local: *; };" >> $output_objdir/$libname.ver~
16873           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16874         fi
16875         link_all_deplibs_GCJ=no
16876       else
16877         ld_shlibs_GCJ=no
16878       fi
16879       ;;
16880
16881     netbsd* | netbsdelf*-gnu)
16882       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16883         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16884         wlarc=
16885       else
16886         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16888       fi
16889       ;;
16890
16891     solaris*)
16892       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16893         ld_shlibs_GCJ=no
16894         cat <<EOF 1>&2
16895
16896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16897 *** create shared libraries on Solaris systems.  Therefore, libtool
16898 *** is disabling shared libraries support.  We urge you to upgrade GNU
16899 *** binutils to release 2.9.1 or newer.  Another option is to modify
16900 *** your PATH or compiler configuration so that the native linker is
16901 *** used, and then restart.
16902
16903 EOF
16904       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16905         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16906         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16907       else
16908         ld_shlibs_GCJ=no
16909       fi
16910       ;;
16911
16912     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16913       case `$LD -v 2>&1` in
16914         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16915         ld_shlibs_GCJ=no
16916         cat <<_LT_EOF 1>&2
16917
16918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16919 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16920 *** is disabling shared libraries support.  We urge you to upgrade GNU
16921 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16922 *** your PATH or compiler configuration so that the native linker is
16923 *** used, and then restart.
16924
16925 _LT_EOF
16926         ;;
16927         *)
16928           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16929             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16930             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16931             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16932           else
16933             ld_shlibs_GCJ=no
16934           fi
16935         ;;
16936       esac
16937       ;;
16938
16939     sunos4*)
16940       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16941       wlarc=
16942       hardcode_direct_GCJ=yes
16943       hardcode_shlibpath_var_GCJ=no
16944       ;;
16945
16946     *)
16947       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16948         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16949         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16950       else
16951         ld_shlibs_GCJ=no
16952       fi
16953       ;;
16954     esac
16955
16956     if test "$ld_shlibs_GCJ" = no; then
16957       runpath_var=
16958       hardcode_libdir_flag_spec_GCJ=
16959       export_dynamic_flag_spec_GCJ=
16960       whole_archive_flag_spec_GCJ=
16961     fi
16962   else
16963     # PORTME fill in a description of your system's linker (not GNU ld)
16964     case $host_os in
16965     aix3*)
16966       allow_undefined_flag_GCJ=unsupported
16967       always_export_symbols_GCJ=yes
16968       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'
16969       # Note: this linker hardcodes the directories in LIBPATH if there
16970       # are no directories specified by -L.
16971       hardcode_minus_L_GCJ=yes
16972       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16973         # Neither direct hardcoding nor static linking is supported with a
16974         # broken collect2.
16975         hardcode_direct_GCJ=unsupported
16976       fi
16977       ;;
16978
16979     aix4* | aix5*)
16980       if test "$host_cpu" = ia64; then
16981         # On IA64, the linker does run time linking by default, so we don't
16982         # have to do anything special.
16983         aix_use_runtimelinking=no
16984         exp_sym_flag='-Bexport'
16985         no_entry_flag=""
16986       else
16987         # If we're using GNU nm, then we don't want the "-C" option.
16988         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16989         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16990           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'
16991         else
16992           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'
16993         fi
16994         aix_use_runtimelinking=no
16995
16996         # Test if we are trying to use run time linking or normal
16997         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16998         # need to do runtime linking.
16999         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17000           for ld_flag in $LDFLAGS; do
17001           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17002             aix_use_runtimelinking=yes
17003             break
17004           fi
17005           done
17006           ;;
17007         esac
17008
17009         exp_sym_flag='-bexport'
17010         no_entry_flag='-bnoentry'
17011       fi
17012
17013       # When large executables or shared objects are built, AIX ld can
17014       # have problems creating the table of contents.  If linking a library
17015       # or program results in "error TOC overflow" add -mminimal-toc to
17016       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17017       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17018
17019       archive_cmds_GCJ=''
17020       hardcode_direct_GCJ=yes
17021       hardcode_libdir_separator_GCJ=':'
17022       link_all_deplibs_GCJ=yes
17023
17024       if test "$GCC" = yes; then
17025         case $host_os in aix4.[012]|aix4.[012].*)
17026         # We only want to do this on AIX 4.2 and lower, the check
17027         # below for broken collect2 doesn't work under 4.3+
17028           collect2name=`${CC} -print-prog-name=collect2`
17029           if test -f "$collect2name" && \
17030            strings "$collect2name" | grep resolve_lib_name >/dev/null
17031           then
17032           # We have reworked collect2
17033           hardcode_direct_GCJ=yes
17034           else
17035           # We have old collect2
17036           hardcode_direct_GCJ=unsupported
17037           # It fails to find uninstalled libraries when the uninstalled
17038           # path is not listed in the libpath.  Setting hardcode_minus_L
17039           # to unsupported forces relinking
17040           hardcode_minus_L_GCJ=yes
17041           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042           hardcode_libdir_separator_GCJ=
17043           fi
17044           ;;
17045         esac
17046         shared_flag='-shared'
17047         if test "$aix_use_runtimelinking" = yes; then
17048           shared_flag="$shared_flag "'${wl}-G'
17049         fi
17050       else
17051         # not using gcc
17052         if test "$host_cpu" = ia64; then
17053         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17054         # chokes on -Wl,-G. The following line is correct:
17055           shared_flag='-G'
17056         else
17057           if test "$aix_use_runtimelinking" = yes; then
17058             shared_flag='${wl}-G'
17059           else
17060             shared_flag='${wl}-bM:SRE'
17061           fi
17062         fi
17063       fi
17064
17065       # It seems that -bexpall does not export symbols beginning with
17066       # underscore (_), so it is better to generate a list of symbols to export.
17067       always_export_symbols_GCJ=yes
17068       if test "$aix_use_runtimelinking" = yes; then
17069         # Warning - without using the other runtime loading flags (-brtl),
17070         # -berok will link without error, but may produce a broken library.
17071         allow_undefined_flag_GCJ='-berok'
17072        # Determine the default libpath from the value encoded in an empty executable.
17073        cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079
17080 int
17081 main ()
17082 {
17083
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_link") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } && {
17102          test -z "$ac_c_werror_flag" ||
17103          test ! -s conftest.err
17104        } && test -s conftest$ac_exeext &&
17105        $as_test_x conftest$ac_exeext; then
17106
17107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17108 }'`
17109 # Check for a 64-bit object if we didn't find anything.
17110 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; }
17111 }'`; fi
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116
17117 fi
17118
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120       conftest$ac_exeext conftest.$ac_ext
17121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17122
17123        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17124         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"
17125        else
17126         if test "$host_cpu" = ia64; then
17127           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17128           allow_undefined_flag_GCJ="-z nodefs"
17129           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"
17130         else
17131          # Determine the default libpath from the value encoded in an empty executable.
17132          cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h.  */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h.  */
17138
17139 int
17140 main ()
17141 {
17142
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_link") 2>conftest.er1
17155   ac_status=$?
17156   grep -v '^ *+' conftest.er1 >conftest.err
17157   rm -f conftest.er1
17158   cat conftest.err >&5
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } && {
17161          test -z "$ac_c_werror_flag" ||
17162          test ! -s conftest.err
17163        } && test -s conftest$ac_exeext &&
17164        $as_test_x conftest$ac_exeext; then
17165
17166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17167 }'`
17168 # Check for a 64-bit object if we didn't find anything.
17169 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; }
17170 }'`; fi
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175
17176 fi
17177
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179       conftest$ac_exeext conftest.$ac_ext
17180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17181
17182          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17183           # Warning - without using the other run time loading flags,
17184           # -berok will link without error, but may produce a broken library.
17185           no_undefined_flag_GCJ=' ${wl}-bernotok'
17186           allow_undefined_flag_GCJ=' ${wl}-berok'
17187           # Exported symbols can be pulled into shared objects from archives
17188           whole_archive_flag_spec_GCJ='$convenience'
17189           archive_cmds_need_lc_GCJ=yes
17190           # This is similar to how AIX traditionally builds its shared libraries.
17191           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'
17192         fi
17193       fi
17194       ;;
17195
17196     amigaos*)
17197       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)'
17198       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17199       hardcode_minus_L_GCJ=yes
17200       # see comment about different semantics on the GNU ld section
17201       ld_shlibs_GCJ=no
17202       ;;
17203
17204     bsdi[45]*)
17205       export_dynamic_flag_spec_GCJ=-rdynamic
17206       ;;
17207
17208     cygwin* | mingw* | pw32*)
17209       # When not using gcc, we currently assume that we are using
17210       # Microsoft Visual C++.
17211       # hardcode_libdir_flag_spec is actually meaningless, as there is
17212       # no search path for DLLs.
17213       hardcode_libdir_flag_spec_GCJ=' '
17214       allow_undefined_flag_GCJ=unsupported
17215       # Tell ltmain to make .lib files, not .a files.
17216       libext=lib
17217       # Tell ltmain to make .dll files, not .so files.
17218       shrext_cmds=".dll"
17219       # FIXME: Setting linknames here is a bad hack.
17220       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17221       # The linker will automatically build a .lib file if we build a DLL.
17222       old_archive_From_new_cmds_GCJ='true'
17223       # FIXME: Should let the user specify the lib program.
17224       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17225       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17226       enable_shared_with_static_runtimes_GCJ=yes
17227       ;;
17228
17229     darwin* | rhapsody*)
17230       case $host_os in
17231         rhapsody* | darwin1.[012])
17232          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17233          ;;
17234        *) # Darwin 1.3 on
17235          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17236            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17237          else
17238            case ${MACOSX_DEPLOYMENT_TARGET} in
17239              10.[012])
17240                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17241                ;;
17242              10.*)
17243                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17244                ;;
17245            esac
17246          fi
17247          ;;
17248       esac
17249       archive_cmds_need_lc_GCJ=no
17250       hardcode_direct_GCJ=no
17251       hardcode_automatic_GCJ=yes
17252       hardcode_shlibpath_var_GCJ=unsupported
17253       whole_archive_flag_spec_GCJ=''
17254       link_all_deplibs_GCJ=yes
17255     if test "$GCC" = yes ; then
17256         output_verbose_link_cmd='echo'
17257         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17258       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17259       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17260       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}'
17261       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}'
17262     else
17263       case $cc_basename in
17264         xlc*)
17265          output_verbose_link_cmd='echo'
17266          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17267          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17268           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17269          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}'
17270           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}'
17271           ;;
17272        *)
17273          ld_shlibs_GCJ=no
17274           ;;
17275       esac
17276     fi
17277       ;;
17278
17279     dgux*)
17280       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17281       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282       hardcode_shlibpath_var_GCJ=no
17283       ;;
17284
17285     freebsd1*)
17286       ld_shlibs_GCJ=no
17287       ;;
17288
17289     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17290     # support.  Future versions do this automatically, but an explicit c++rt0.o
17291     # does not break anything, and helps significantly (at the cost of a little
17292     # extra space).
17293     freebsd2.2*)
17294       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17295       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17296       hardcode_direct_GCJ=yes
17297       hardcode_shlibpath_var_GCJ=no
17298       ;;
17299
17300     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17301     freebsd2*)
17302       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17303       hardcode_direct_GCJ=yes
17304       hardcode_minus_L_GCJ=yes
17305       hardcode_shlibpath_var_GCJ=no
17306       ;;
17307
17308     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17309     freebsd* | dragonfly*)
17310       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17311       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17312       hardcode_direct_GCJ=yes
17313       hardcode_shlibpath_var_GCJ=no
17314       ;;
17315
17316     hpux9*)
17317       if test "$GCC" = yes; then
17318         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'
17319       else
17320         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'
17321       fi
17322       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17323       hardcode_libdir_separator_GCJ=:
17324       hardcode_direct_GCJ=yes
17325
17326       # hardcode_minus_L: Not really in the search PATH,
17327       # but as the default location of the library.
17328       hardcode_minus_L_GCJ=yes
17329       export_dynamic_flag_spec_GCJ='${wl}-E'
17330       ;;
17331
17332     hpux10*)
17333       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17334         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17335       else
17336         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17337       fi
17338       if test "$with_gnu_ld" = no; then
17339         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17340         hardcode_libdir_separator_GCJ=:
17341
17342         hardcode_direct_GCJ=yes
17343         export_dynamic_flag_spec_GCJ='${wl}-E'
17344
17345         # hardcode_minus_L: Not really in the search PATH,
17346         # but as the default location of the library.
17347         hardcode_minus_L_GCJ=yes
17348       fi
17349       ;;
17350
17351     hpux11*)
17352       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17353         case $host_cpu in
17354         hppa*64*)
17355           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17356           ;;
17357         ia64*)
17358           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17359           ;;
17360         *)
17361           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17362           ;;
17363         esac
17364       else
17365         case $host_cpu in
17366         hppa*64*)
17367           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17368           ;;
17369         ia64*)
17370           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17371           ;;
17372         *)
17373           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17374           ;;
17375         esac
17376       fi
17377       if test "$with_gnu_ld" = no; then
17378         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17379         hardcode_libdir_separator_GCJ=:
17380
17381         case $host_cpu in
17382         hppa*64*|ia64*)
17383           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17384           hardcode_direct_GCJ=no
17385           hardcode_shlibpath_var_GCJ=no
17386           ;;
17387         *)
17388           hardcode_direct_GCJ=yes
17389           export_dynamic_flag_spec_GCJ='${wl}-E'
17390
17391           # hardcode_minus_L: Not really in the search PATH,
17392           # but as the default location of the library.
17393           hardcode_minus_L_GCJ=yes
17394           ;;
17395         esac
17396       fi
17397       ;;
17398
17399     irix5* | irix6* | nonstopux*)
17400       if test "$GCC" = yes; then
17401         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'
17402       else
17403         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'
17404         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17405       fi
17406       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17407       hardcode_libdir_separator_GCJ=:
17408       link_all_deplibs_GCJ=yes
17409       ;;
17410
17411     netbsd* | netbsdelf*-gnu)
17412       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17413         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17414       else
17415         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17416       fi
17417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418       hardcode_direct_GCJ=yes
17419       hardcode_shlibpath_var_GCJ=no
17420       ;;
17421
17422     newsos6)
17423       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17424       hardcode_direct_GCJ=yes
17425       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17426       hardcode_libdir_separator_GCJ=:
17427       hardcode_shlibpath_var_GCJ=no
17428       ;;
17429
17430     openbsd*)
17431       hardcode_direct_GCJ=yes
17432       hardcode_shlibpath_var_GCJ=no
17433       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17434         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17435         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17436         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17437         export_dynamic_flag_spec_GCJ='${wl}-E'
17438       else
17439        case $host_os in
17440          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17441            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17442            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443            ;;
17444          *)
17445            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17446            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17447            ;;
17448        esac
17449       fi
17450       ;;
17451
17452     os2*)
17453       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454       hardcode_minus_L_GCJ=yes
17455       allow_undefined_flag_GCJ=unsupported
17456       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'
17457       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17458       ;;
17459
17460     osf3*)
17461       if test "$GCC" = yes; then
17462         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17463         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'
17464       else
17465         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17466         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'
17467       fi
17468       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17469       hardcode_libdir_separator_GCJ=:
17470       ;;
17471
17472     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17473       if test "$GCC" = yes; then
17474         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17475         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'
17476         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17477       else
17478         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17479         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'
17480         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~
17481         $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'
17482
17483         # Both c and cxx compiler support -rpath directly
17484         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17485       fi
17486       hardcode_libdir_separator_GCJ=:
17487       ;;
17488
17489     solaris*)
17490       no_undefined_flag_GCJ=' -z text'
17491       if test "$GCC" = yes; then
17492         wlarc='${wl}'
17493         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17494         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17495           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17496       else
17497         wlarc=''
17498         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17499         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17500         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17501       fi
17502       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17503       hardcode_shlibpath_var_GCJ=no
17504       case $host_os in
17505       solaris2.[0-5] | solaris2.[0-5].*) ;;
17506       *)
17507         # The compiler driver will combine linker options so we
17508         # cannot just pass the convience library names through
17509         # without $wl, iff we do not link with $LD.
17510         # Luckily, gcc supports the same syntax we need for Sun Studio.
17511         # Supported since Solaris 2.6 (maybe 2.5.1?)
17512         case $wlarc in
17513         '')
17514           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17515         *)
17516           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' ;;
17517         esac ;;
17518       esac
17519       link_all_deplibs_GCJ=yes
17520       ;;
17521
17522     sunos4*)
17523       if test "x$host_vendor" = xsequent; then
17524         # Use $CC to link under sequent, because it throws in some extra .o
17525         # files that make .init and .fini sections work.
17526         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17527       else
17528         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17529       fi
17530       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531       hardcode_direct_GCJ=yes
17532       hardcode_minus_L_GCJ=yes
17533       hardcode_shlibpath_var_GCJ=no
17534       ;;
17535
17536     sysv4)
17537       case $host_vendor in
17538         sni)
17539           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540           hardcode_direct_GCJ=yes # is this really true???
17541         ;;
17542         siemens)
17543           ## LD is ld it makes a PLAMLIB
17544           ## CC just makes a GrossModule.
17545           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17546           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17547           hardcode_direct_GCJ=no
17548         ;;
17549         motorola)
17550           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17552         ;;
17553       esac
17554       runpath_var='LD_RUN_PATH'
17555       hardcode_shlibpath_var_GCJ=no
17556       ;;
17557
17558     sysv4.3*)
17559       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17560       hardcode_shlibpath_var_GCJ=no
17561       export_dynamic_flag_spec_GCJ='-Bexport'
17562       ;;
17563
17564     sysv4*MP*)
17565       if test -d /usr/nec; then
17566         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567         hardcode_shlibpath_var_GCJ=no
17568         runpath_var=LD_RUN_PATH
17569         hardcode_runpath_var=yes
17570         ld_shlibs_GCJ=yes
17571       fi
17572       ;;
17573
17574     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17575       no_undefined_flag_GCJ='${wl}-z,text'
17576       archive_cmds_need_lc_GCJ=no
17577       hardcode_shlibpath_var_GCJ=no
17578       runpath_var='LD_RUN_PATH'
17579
17580       if test "$GCC" = yes; then
17581         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17582         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583       else
17584         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17585         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586       fi
17587       ;;
17588
17589     sysv5* | sco3.2v5* | sco5v6*)
17590       # Note: We can NOT use -z defs as we might desire, because we do not
17591       # link with -lc, and that would cause any symbols used from libc to
17592       # always be unresolved, which means just about no library would
17593       # ever link correctly.  If we're not using GNU ld we use -z text
17594       # though, which does catch some bad symbols but isn't as heavy-handed
17595       # as -z defs.
17596       no_undefined_flag_GCJ='${wl}-z,text'
17597       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17598       archive_cmds_need_lc_GCJ=no
17599       hardcode_shlibpath_var_GCJ=no
17600       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17601       hardcode_libdir_separator_GCJ=':'
17602       link_all_deplibs_GCJ=yes
17603       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17604       runpath_var='LD_RUN_PATH'
17605
17606       if test "$GCC" = yes; then
17607         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17608         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17609       else
17610         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17611         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612       fi
17613       ;;
17614
17615     uts4*)
17616       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17617       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17618       hardcode_shlibpath_var_GCJ=no
17619       ;;
17620
17621     *)
17622       ld_shlibs_GCJ=no
17623       ;;
17624     esac
17625   fi
17626
17627 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17628 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17629 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17630
17631 #
17632 # Do we need to explicitly link libc?
17633 #
17634 case "x$archive_cmds_need_lc_GCJ" in
17635 x|xyes)
17636   # Assume -lc should be added
17637   archive_cmds_need_lc_GCJ=yes
17638
17639   if test "$enable_shared" = yes && test "$GCC" = yes; then
17640     case $archive_cmds_GCJ in
17641     *'~'*)
17642       # FIXME: we may have to deal with multi-command sequences.
17643       ;;
17644     '$CC '*)
17645       # Test whether the compiler implicitly links with -lc since on some
17646       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17647       # to ld, don't add -lc before -lgcc.
17648       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17649 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17650       $rm conftest*
17651       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17652
17653       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654   (eval $ac_compile) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); } 2>conftest.err; then
17658         soname=conftest
17659         lib=conftest
17660         libobjs=conftest.$ac_objext
17661         deplibs=
17662         wl=$lt_prog_compiler_wl_GCJ
17663         pic_flag=$lt_prog_compiler_pic_GCJ
17664         compiler_flags=-v
17665         linker_flags=-v
17666         verstring=
17667         output_objdir=.
17668         libname=conftest
17669         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17670         allow_undefined_flag_GCJ=
17671         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17672   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }
17676         then
17677           archive_cmds_need_lc_GCJ=no
17678         else
17679           archive_cmds_need_lc_GCJ=yes
17680         fi
17681         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17682       else
17683         cat conftest.err 1>&5
17684       fi
17685       $rm conftest*
17686       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17687 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17688       ;;
17689     esac
17690   fi
17691   ;;
17692 esac
17693
17694 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17695 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17696 library_names_spec=
17697 libname_spec='lib$name'
17698 soname_spec=
17699 shrext_cmds=".so"
17700 postinstall_cmds=
17701 postuninstall_cmds=
17702 finish_cmds=
17703 finish_eval=
17704 shlibpath_var=
17705 shlibpath_overrides_runpath=unknown
17706 version_type=none
17707 dynamic_linker="$host_os ld.so"
17708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17709 if test "$GCC" = yes; then
17710   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17711   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17712     # if the path contains ";" then we assume it to be the separator
17713     # otherwise default to the standard path separator (i.e. ":") - it is
17714     # assumed that no part of a normal pathname contains ";" but that should
17715     # okay in the real world where ";" in dirpaths is itself problematic.
17716     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17717   else
17718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17719   fi
17720 else
17721   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17722 fi
17723 need_lib_prefix=unknown
17724 hardcode_into_libs=no
17725
17726 # when you set need_version to no, make sure it does not cause -set_version
17727 # flags to be left without arguments
17728 need_version=unknown
17729
17730 case $host_os in
17731 aix3*)
17732   version_type=linux
17733   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17734   shlibpath_var=LIBPATH
17735
17736   # AIX 3 has no versioning support, so we append a major version to the name.
17737   soname_spec='${libname}${release}${shared_ext}$major'
17738   ;;
17739
17740 aix4* | aix5*)
17741   version_type=linux
17742   need_lib_prefix=no
17743   need_version=no
17744   hardcode_into_libs=yes
17745   if test "$host_cpu" = ia64; then
17746     # AIX 5 supports IA64
17747     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17748     shlibpath_var=LD_LIBRARY_PATH
17749   else
17750     # With GCC up to 2.95.x, collect2 would create an import file
17751     # for dependence libraries.  The import file would start with
17752     # the line `#! .'.  This would cause the generated library to
17753     # depend on `.', always an invalid library.  This was fixed in
17754     # development snapshots of GCC prior to 3.0.
17755     case $host_os in
17756       aix4 | aix4.[01] | aix4.[01].*)
17757       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17758            echo ' yes '
17759            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17760         :
17761       else
17762         can_build_shared=no
17763       fi
17764       ;;
17765     esac
17766     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17767     # soname into executable. Probably we can add versioning support to
17768     # collect2, so additional links can be useful in future.
17769     if test "$aix_use_runtimelinking" = yes; then
17770       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17771       # instead of lib<name>.a to let people know that these are not
17772       # typical AIX shared libraries.
17773       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774     else
17775       # We preserve .a as extension for shared libraries through AIX4.2
17776       # and later when we are not doing run time linking.
17777       library_names_spec='${libname}${release}.a $libname.a'
17778       soname_spec='${libname}${release}${shared_ext}$major'
17779     fi
17780     shlibpath_var=LIBPATH
17781   fi
17782   ;;
17783
17784 amigaos*)
17785   library_names_spec='$libname.ixlibrary $libname.a'
17786   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17787   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'
17788   ;;
17789
17790 beos*)
17791   library_names_spec='${libname}${shared_ext}'
17792   dynamic_linker="$host_os ld.so"
17793   shlibpath_var=LIBRARY_PATH
17794   ;;
17795
17796 bsdi[45]*)
17797   version_type=linux
17798   need_version=no
17799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800   soname_spec='${libname}${release}${shared_ext}$major'
17801   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17802   shlibpath_var=LD_LIBRARY_PATH
17803   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17804   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17805   # the default ld.so.conf also contains /usr/contrib/lib and
17806   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17807   # libtool to hard-code these into programs
17808   ;;
17809
17810 cygwin* | mingw* | pw32*)
17811   version_type=windows
17812   shrext_cmds=".dll"
17813   need_version=no
17814   need_lib_prefix=no
17815
17816   case $GCC,$host_os in
17817   yes,cygwin* | yes,mingw* | yes,pw32*)
17818     library_names_spec='$libname.dll.a'
17819     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17820     postinstall_cmds='base_file=`basename \${file}`~
17821       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17822       dldir=$destdir/`dirname \$dlpath`~
17823       test -d \$dldir || mkdir -p \$dldir~
17824       $install_prog $dir/$dlname \$dldir/$dlname~
17825       chmod a+x \$dldir/$dlname'
17826     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17827       dlpath=$dir/\$dldll~
17828        $rm \$dlpath'
17829     shlibpath_overrides_runpath=yes
17830
17831     case $host_os in
17832     cygwin*)
17833       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17834       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17835       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17836       ;;
17837     mingw*)
17838       # MinGW DLLs use traditional 'lib' prefix
17839       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17840       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17841       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17842         # It is most probably a Windows format PATH printed by
17843         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17844         # path with ; separators, and with drive letters. We can handle the
17845         # drive letters (cygwin fileutils understands them), so leave them,
17846         # especially as we might pass files found there to a mingw objdump,
17847         # which wouldn't understand a cygwinified path. Ahh.
17848         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17849       else
17850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17851       fi
17852       ;;
17853     pw32*)
17854       # pw32 DLLs use 'pw' prefix rather than 'lib'
17855       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17856       ;;
17857     esac
17858     ;;
17859
17860   *)
17861     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17862     ;;
17863   esac
17864   dynamic_linker='Win32 ld.exe'
17865   # FIXME: first we should search . and the directory the executable is in
17866   shlibpath_var=PATH
17867   ;;
17868
17869 darwin* | rhapsody*)
17870   dynamic_linker="$host_os dyld"
17871   version_type=darwin
17872   need_lib_prefix=no
17873   need_version=no
17874   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17875   soname_spec='${libname}${release}${major}$shared_ext'
17876   shlibpath_overrides_runpath=yes
17877   shlibpath_var=DYLD_LIBRARY_PATH
17878   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17879   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17880   if test "$GCC" = yes; then
17881     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"`
17882   else
17883     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17884   fi
17885   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17886   ;;
17887
17888 dgux*)
17889   version_type=linux
17890   need_lib_prefix=no
17891   need_version=no
17892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17893   soname_spec='${libname}${release}${shared_ext}$major'
17894   shlibpath_var=LD_LIBRARY_PATH
17895   ;;
17896
17897 freebsd1*)
17898   dynamic_linker=no
17899   ;;
17900
17901 freebsd* | dragonfly*)
17902   # DragonFly does not have aout.  When/if they implement a new
17903   # versioning mechanism, adjust this.
17904   if test -x /usr/bin/objformat; then
17905     objformat=`/usr/bin/objformat`
17906   else
17907     case $host_os in
17908     freebsd[123]*) objformat=aout ;;
17909     *) objformat=elf ;;
17910     esac
17911   fi
17912   version_type=freebsd-$objformat
17913   case $version_type in
17914     freebsd-elf*)
17915       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17916       need_version=no
17917       need_lib_prefix=no
17918       ;;
17919     freebsd-*)
17920       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17921       need_version=yes
17922       ;;
17923   esac
17924   shlibpath_var=LD_LIBRARY_PATH
17925   case $host_os in
17926   freebsd2*)
17927     shlibpath_overrides_runpath=yes
17928     ;;
17929   freebsd3.[01]* | freebsdelf3.[01]*)
17930     shlibpath_overrides_runpath=yes
17931     hardcode_into_libs=yes
17932     ;;
17933   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17934   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17935     shlibpath_overrides_runpath=no
17936     hardcode_into_libs=yes
17937     ;;
17938   freebsd*) # from 4.6 on
17939     shlibpath_overrides_runpath=yes
17940     hardcode_into_libs=yes
17941     ;;
17942   esac
17943   ;;
17944
17945 gnu*)
17946   version_type=linux
17947   need_lib_prefix=no
17948   need_version=no
17949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17950   soname_spec='${libname}${release}${shared_ext}$major'
17951   shlibpath_var=LD_LIBRARY_PATH
17952   hardcode_into_libs=yes
17953   ;;
17954
17955 hpux9* | hpux10* | hpux11*)
17956   # Give a soname corresponding to the major version so that dld.sl refuses to
17957   # link against other versions.
17958   version_type=sunos
17959   need_lib_prefix=no
17960   need_version=no
17961   case $host_cpu in
17962   ia64*)
17963     shrext_cmds='.so'
17964     hardcode_into_libs=yes
17965     dynamic_linker="$host_os dld.so"
17966     shlibpath_var=LD_LIBRARY_PATH
17967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969     soname_spec='${libname}${release}${shared_ext}$major'
17970     if test "X$HPUX_IA64_MODE" = X32; then
17971       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17972     else
17973       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17974     fi
17975     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17976     ;;
17977    hppa*64*)
17978      shrext_cmds='.sl'
17979      hardcode_into_libs=yes
17980      dynamic_linker="$host_os dld.sl"
17981      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17982      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17983      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984      soname_spec='${libname}${release}${shared_ext}$major'
17985      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17986      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17987      ;;
17988    *)
17989     shrext_cmds='.sl'
17990     dynamic_linker="$host_os dld.sl"
17991     shlibpath_var=SHLIB_PATH
17992     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
17996   esac
17997   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17998   postinstall_cmds='chmod 555 $lib'
17999   ;;
18000
18001 interix3*)
18002   version_type=linux
18003   need_lib_prefix=no
18004   need_version=no
18005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18006   soname_spec='${libname}${release}${shared_ext}$major'
18007   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18008   shlibpath_var=LD_LIBRARY_PATH
18009   shlibpath_overrides_runpath=no
18010   hardcode_into_libs=yes
18011   ;;
18012
18013 irix5* | irix6* | nonstopux*)
18014   case $host_os in
18015     nonstopux*) version_type=nonstopux ;;
18016     *)
18017         if test "$lt_cv_prog_gnu_ld" = yes; then
18018                 version_type=linux
18019         else
18020                 version_type=irix
18021         fi ;;
18022   esac
18023   need_lib_prefix=no
18024   need_version=no
18025   soname_spec='${libname}${release}${shared_ext}$major'
18026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18027   case $host_os in
18028   irix5* | nonstopux*)
18029     libsuff= shlibsuff=
18030     ;;
18031   *)
18032     case $LD in # libtool.m4 will add one of these switches to LD
18033     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18034       libsuff= shlibsuff= libmagic=32-bit;;
18035     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18036       libsuff=32 shlibsuff=N32 libmagic=N32;;
18037     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18038       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18039     *) libsuff= shlibsuff= libmagic=never-match;;
18040     esac
18041     ;;
18042   esac
18043   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18044   shlibpath_overrides_runpath=no
18045   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18046   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18047   hardcode_into_libs=yes
18048   ;;
18049
18050 # No shared lib support for Linux oldld, aout, or coff.
18051 linux*oldld* | linux*aout* | linux*coff*)
18052   dynamic_linker=no
18053   ;;
18054
18055 # This must be Linux ELF.
18056 linux* | k*bsd*-gnu)
18057   version_type=linux
18058   need_lib_prefix=no
18059   need_version=no
18060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18061   soname_spec='${libname}${release}${shared_ext}$major'
18062   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18063   shlibpath_var=LD_LIBRARY_PATH
18064   shlibpath_overrides_runpath=no
18065   # This implies no fast_install, which is unacceptable.
18066   # Some rework will be needed to allow for fast_install
18067   # before this can be enabled.
18068   hardcode_into_libs=yes
18069
18070   # Append ld.so.conf contents to the search path
18071   if test -f /etc/ld.so.conf; then
18072     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' ' '`
18073     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18074   fi
18075
18076   # We used to test for /lib/ld.so.1 and disable shared libraries on
18077   # powerpc, because MkLinux only supported shared libraries with the
18078   # GNU dynamic linker.  Since this was broken with cross compilers,
18079   # most powerpc-linux boxes support dynamic linking these days and
18080   # people can always --disable-shared, the test was removed, and we
18081   # assume the GNU/Linux dynamic linker is in use.
18082   dynamic_linker='GNU/Linux ld.so'
18083   ;;
18084
18085 netbsdelf*-gnu)
18086   version_type=linux
18087   need_lib_prefix=no
18088   need_version=no
18089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18090   soname_spec='${libname}${release}${shared_ext}$major'
18091   shlibpath_var=LD_LIBRARY_PATH
18092   shlibpath_overrides_runpath=no
18093   hardcode_into_libs=yes
18094   dynamic_linker='NetBSD ld.elf_so'
18095   ;;
18096
18097 netbsd*)
18098   version_type=sunos
18099   need_lib_prefix=no
18100   need_version=no
18101   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18103     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18104     dynamic_linker='NetBSD (a.out) ld.so'
18105   else
18106     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18107     soname_spec='${libname}${release}${shared_ext}$major'
18108     dynamic_linker='NetBSD ld.elf_so'
18109   fi
18110   shlibpath_var=LD_LIBRARY_PATH
18111   shlibpath_overrides_runpath=yes
18112   hardcode_into_libs=yes
18113   ;;
18114
18115 newsos6)
18116   version_type=linux
18117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118   shlibpath_var=LD_LIBRARY_PATH
18119   shlibpath_overrides_runpath=yes
18120   ;;
18121
18122 nto-qnx*)
18123   version_type=linux
18124   need_lib_prefix=no
18125   need_version=no
18126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127   soname_spec='${libname}${release}${shared_ext}$major'
18128   shlibpath_var=LD_LIBRARY_PATH
18129   shlibpath_overrides_runpath=yes
18130   ;;
18131
18132 openbsd*)
18133   version_type=sunos
18134   sys_lib_dlsearch_path_spec="/usr/lib"
18135   need_lib_prefix=no
18136   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18137   case $host_os in
18138     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18139     *)                         need_version=no  ;;
18140   esac
18141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18142   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18143   shlibpath_var=LD_LIBRARY_PATH
18144   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18145     case $host_os in
18146       openbsd2.[89] | openbsd2.[89].*)
18147         shlibpath_overrides_runpath=no
18148         ;;
18149       *)
18150         shlibpath_overrides_runpath=yes
18151         ;;
18152       esac
18153   else
18154     shlibpath_overrides_runpath=yes
18155   fi
18156   ;;
18157
18158 os2*)
18159   libname_spec='$name'
18160   shrext_cmds=".dll"
18161   need_lib_prefix=no
18162   library_names_spec='$libname${shared_ext} $libname.a'
18163   dynamic_linker='OS/2 ld.exe'
18164   shlibpath_var=LIBPATH
18165   ;;
18166
18167 osf3* | osf4* | osf5*)
18168   version_type=osf
18169   need_lib_prefix=no
18170   need_version=no
18171   soname_spec='${libname}${release}${shared_ext}$major'
18172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173   shlibpath_var=LD_LIBRARY_PATH
18174   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18175   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18176   ;;
18177
18178 solaris*)
18179   version_type=linux
18180   need_lib_prefix=no
18181   need_version=no
18182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183   soname_spec='${libname}${release}${shared_ext}$major'
18184   shlibpath_var=LD_LIBRARY_PATH
18185   shlibpath_overrides_runpath=yes
18186   hardcode_into_libs=yes
18187   # ldd complains unless libraries are executable
18188   postinstall_cmds='chmod +x $lib'
18189   ;;
18190
18191 sunos4*)
18192   version_type=sunos
18193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18194   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18195   shlibpath_var=LD_LIBRARY_PATH
18196   shlibpath_overrides_runpath=yes
18197   if test "$with_gnu_ld" = yes; then
18198     need_lib_prefix=no
18199   fi
18200   need_version=yes
18201   ;;
18202
18203 sysv4 | sysv4.3*)
18204   version_type=linux
18205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206   soname_spec='${libname}${release}${shared_ext}$major'
18207   shlibpath_var=LD_LIBRARY_PATH
18208   case $host_vendor in
18209     sni)
18210       shlibpath_overrides_runpath=no
18211       need_lib_prefix=no
18212       export_dynamic_flag_spec='${wl}-Blargedynsym'
18213       runpath_var=LD_RUN_PATH
18214       ;;
18215     siemens)
18216       need_lib_prefix=no
18217       ;;
18218     motorola)
18219       need_lib_prefix=no
18220       need_version=no
18221       shlibpath_overrides_runpath=no
18222       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18223       ;;
18224   esac
18225   ;;
18226
18227 sysv4*MP*)
18228   if test -d /usr/nec ;then
18229     version_type=linux
18230     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18231     soname_spec='$libname${shared_ext}.$major'
18232     shlibpath_var=LD_LIBRARY_PATH
18233   fi
18234   ;;
18235
18236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18237   version_type=freebsd-elf
18238   need_lib_prefix=no
18239   need_version=no
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18241   soname_spec='${libname}${release}${shared_ext}$major'
18242   shlibpath_var=LD_LIBRARY_PATH
18243   hardcode_into_libs=yes
18244   if test "$with_gnu_ld" = yes; then
18245     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18246     shlibpath_overrides_runpath=no
18247   else
18248     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18249     shlibpath_overrides_runpath=yes
18250     case $host_os in
18251       sco3.2v5*)
18252         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18253         ;;
18254     esac
18255   fi
18256   sys_lib_dlsearch_path_spec='/usr/lib'
18257   ;;
18258
18259 uts4*)
18260   version_type=linux
18261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262   soname_spec='${libname}${release}${shared_ext}$major'
18263   shlibpath_var=LD_LIBRARY_PATH
18264   ;;
18265
18266 *)
18267   dynamic_linker=no
18268   ;;
18269 esac
18270 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18271 echo "${ECHO_T}$dynamic_linker" >&6; }
18272 test "$dynamic_linker" = no && can_build_shared=no
18273
18274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18275 if test "$GCC" = yes; then
18276   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18277 fi
18278
18279 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18281 hardcode_action_GCJ=
18282 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18283    test -n "$runpath_var_GCJ" || \
18284    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18285
18286   # We can hardcode non-existant directories.
18287   if test "$hardcode_direct_GCJ" != no &&
18288      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18289      # have to relink, otherwise we might link with an installed library
18290      # when we should be linking with a yet-to-be-installed one
18291      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18292      test "$hardcode_minus_L_GCJ" != no; then
18293     # Linking always hardcodes the temporary library directory.
18294     hardcode_action_GCJ=relink
18295   else
18296     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18297     hardcode_action_GCJ=immediate
18298   fi
18299 else
18300   # We cannot hardcode anything, or else we can only hardcode existing
18301   # directories.
18302   hardcode_action_GCJ=unsupported
18303 fi
18304 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18305 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18306
18307 if test "$hardcode_action_GCJ" = relink; then
18308   # Fast installation is not supported
18309   enable_fast_install=no
18310 elif test "$shlibpath_overrides_runpath" = yes ||
18311      test "$enable_shared" = no; then
18312   # Fast installation is not necessary
18313   enable_fast_install=needless
18314 fi
18315
18316
18317 # The else clause should only fire when bootstrapping the
18318 # libtool distribution, otherwise you forgot to ship ltmain.sh
18319 # with your package, and you will get complaints that there are
18320 # no rules to generate ltmain.sh.
18321 if test -f "$ltmain"; then
18322   # See if we are running on zsh, and set the options which allow our commands through
18323   # without removal of \ escapes.
18324   if test -n "${ZSH_VERSION+set}" ; then
18325     setopt NO_GLOB_SUBST
18326   fi
18327   # Now quote all the things that may contain metacharacters while being
18328   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18329   # variables and quote the copies for generation of the libtool script.
18330   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18331     SED SHELL STRIP \
18332     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18333     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18334     deplibs_check_method reload_flag reload_cmds need_locks \
18335     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18336     lt_cv_sys_global_symbol_to_c_name_address \
18337     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18338     old_postinstall_cmds old_postuninstall_cmds \
18339     compiler_GCJ \
18340     CC_GCJ \
18341     LD_GCJ \
18342     lt_prog_compiler_wl_GCJ \
18343     lt_prog_compiler_pic_GCJ \
18344     lt_prog_compiler_static_GCJ \
18345     lt_prog_compiler_no_builtin_flag_GCJ \
18346     export_dynamic_flag_spec_GCJ \
18347     thread_safe_flag_spec_GCJ \
18348     whole_archive_flag_spec_GCJ \
18349     enable_shared_with_static_runtimes_GCJ \
18350     old_archive_cmds_GCJ \
18351     old_archive_from_new_cmds_GCJ \
18352     predep_objects_GCJ \
18353     postdep_objects_GCJ \
18354     predeps_GCJ \
18355     postdeps_GCJ \
18356     compiler_lib_search_path_GCJ \
18357     archive_cmds_GCJ \
18358     archive_expsym_cmds_GCJ \
18359     postinstall_cmds_GCJ \
18360     postuninstall_cmds_GCJ \
18361     old_archive_from_expsyms_cmds_GCJ \
18362     allow_undefined_flag_GCJ \
18363     no_undefined_flag_GCJ \
18364     export_symbols_cmds_GCJ \
18365     hardcode_libdir_flag_spec_GCJ \
18366     hardcode_libdir_flag_spec_ld_GCJ \
18367     hardcode_libdir_separator_GCJ \
18368     hardcode_automatic_GCJ \
18369     module_cmds_GCJ \
18370     module_expsym_cmds_GCJ \
18371     lt_cv_prog_compiler_c_o_GCJ \
18372     exclude_expsyms_GCJ \
18373     include_expsyms_GCJ; do
18374
18375     case $var in
18376     old_archive_cmds_GCJ | \
18377     old_archive_from_new_cmds_GCJ | \
18378     archive_cmds_GCJ | \
18379     archive_expsym_cmds_GCJ | \
18380     module_cmds_GCJ | \
18381     module_expsym_cmds_GCJ | \
18382     old_archive_from_expsyms_cmds_GCJ | \
18383     export_symbols_cmds_GCJ | \
18384     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18385     postinstall_cmds | postuninstall_cmds | \
18386     old_postinstall_cmds | old_postuninstall_cmds | \
18387     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18388       # Double-quote double-evaled strings.
18389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18390       ;;
18391     *)
18392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18393       ;;
18394     esac
18395   done
18396
18397   case $lt_echo in
18398   *'\$0 --fallback-echo"')
18399     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18400     ;;
18401   esac
18402
18403 cfgfile="$ofile"
18404
18405   cat <<__EOF__ >> "$cfgfile"
18406 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18407
18408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18409
18410 # Shell to use when invoking shell scripts.
18411 SHELL=$lt_SHELL
18412
18413 # Whether or not to build shared libraries.
18414 build_libtool_libs=$enable_shared
18415
18416 # Whether or not to build static libraries.
18417 build_old_libs=$enable_static
18418
18419 # Whether or not to add -lc for building shared libraries.
18420 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18421
18422 # Whether or not to disallow shared libs when runtime libs are static
18423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18424
18425 # Whether or not to optimize for fast installation.
18426 fast_install=$enable_fast_install
18427
18428 # The host system.
18429 host_alias=$host_alias
18430 host=$host
18431 host_os=$host_os
18432
18433 # The build system.
18434 build_alias=$build_alias
18435 build=$build
18436 build_os=$build_os
18437
18438 # An echo program that does not interpret backslashes.
18439 echo=$lt_echo
18440
18441 # The archiver.
18442 AR=$lt_AR
18443 AR_FLAGS=$lt_AR_FLAGS
18444
18445 # A C compiler.
18446 LTCC=$lt_LTCC
18447
18448 # LTCC compiler flags.
18449 LTCFLAGS=$lt_LTCFLAGS
18450
18451 # A language-specific compiler.
18452 CC=$lt_compiler_GCJ
18453
18454 # Is the compiler the GNU C compiler?
18455 with_gcc=$GCC_GCJ
18456
18457 # An ERE matcher.
18458 EGREP=$lt_EGREP
18459
18460 # The linker used to build libraries.
18461 LD=$lt_LD_GCJ
18462
18463 # Whether we need hard or soft links.
18464 LN_S=$lt_LN_S
18465
18466 # A BSD-compatible nm program.
18467 NM=$lt_NM
18468
18469 # A symbol stripping program
18470 STRIP=$lt_STRIP
18471
18472 # Used to examine libraries when file_magic_cmd begins "file"
18473 MAGIC_CMD=$MAGIC_CMD
18474
18475 # Used on cygwin: DLL creation program.
18476 DLLTOOL="$DLLTOOL"
18477
18478 # Used on cygwin: object dumper.
18479 OBJDUMP="$OBJDUMP"
18480
18481 # Used on cygwin: assembler.
18482 AS="$AS"
18483
18484 # The name of the directory that contains temporary libtool files.
18485 objdir=$objdir
18486
18487 # How to create reloadable object files.
18488 reload_flag=$lt_reload_flag
18489 reload_cmds=$lt_reload_cmds
18490
18491 # How to pass a linker flag through the compiler.
18492 wl=$lt_lt_prog_compiler_wl_GCJ
18493
18494 # Object file suffix (normally "o").
18495 objext="$ac_objext"
18496
18497 # Old archive suffix (normally "a").
18498 libext="$libext"
18499
18500 # Shared library suffix (normally ".so").
18501 shrext_cmds='$shrext_cmds'
18502
18503 # Executable file suffix (normally "").
18504 exeext="$exeext"
18505
18506 # Additional compiler flags for building library objects.
18507 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18508 pic_mode=$pic_mode
18509
18510 # What is the maximum length of a command?
18511 max_cmd_len=$lt_cv_sys_max_cmd_len
18512
18513 # Does compiler simultaneously support -c and -o options?
18514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18515
18516 # Must we lock files when doing compilation?
18517 need_locks=$lt_need_locks
18518
18519 # Do we need the lib prefix for modules?
18520 need_lib_prefix=$need_lib_prefix
18521
18522 # Do we need a version for libraries?
18523 need_version=$need_version
18524
18525 # Whether dlopen is supported.
18526 dlopen_support=$enable_dlopen
18527
18528 # Whether dlopen of programs is supported.
18529 dlopen_self=$enable_dlopen_self
18530
18531 # Whether dlopen of statically linked programs is supported.
18532 dlopen_self_static=$enable_dlopen_self_static
18533
18534 # Compiler flag to prevent dynamic linking.
18535 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18536
18537 # Compiler flag to turn off builtin functions.
18538 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18539
18540 # Compiler flag to allow reflexive dlopens.
18541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18542
18543 # Compiler flag to generate shared objects directly from archives.
18544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18545
18546 # Compiler flag to generate thread-safe objects.
18547 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18548
18549 # Library versioning type.
18550 version_type=$version_type
18551
18552 # Format of library name prefix.
18553 libname_spec=$lt_libname_spec
18554
18555 # List of archive names.  First name is the real one, the rest are links.
18556 # The last name is the one that the linker finds with -lNAME.
18557 library_names_spec=$lt_library_names_spec
18558
18559 # The coded name of the library, if different from the real name.
18560 soname_spec=$lt_soname_spec
18561
18562 # Commands used to build and install an old-style archive.
18563 RANLIB=$lt_RANLIB
18564 old_archive_cmds=$lt_old_archive_cmds_GCJ
18565 old_postinstall_cmds=$lt_old_postinstall_cmds
18566 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18567
18568 # Create an old-style archive from a shared archive.
18569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18570
18571 # Create a temporary old-style archive to link instead of a shared archive.
18572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18573
18574 # Commands used to build and install a shared archive.
18575 archive_cmds=$lt_archive_cmds_GCJ
18576 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18577 postinstall_cmds=$lt_postinstall_cmds
18578 postuninstall_cmds=$lt_postuninstall_cmds
18579
18580 # Commands used to build a loadable module (assumed same as above if empty)
18581 module_cmds=$lt_module_cmds_GCJ
18582 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18583
18584 # Commands to strip libraries.
18585 old_striplib=$lt_old_striplib
18586 striplib=$lt_striplib
18587
18588 # Dependencies to place before the objects being linked to create a
18589 # shared library.
18590 predep_objects=$lt_predep_objects_GCJ
18591
18592 # Dependencies to place after the objects being linked to create a
18593 # shared library.
18594 postdep_objects=$lt_postdep_objects_GCJ
18595
18596 # Dependencies to place before the objects being linked to create a
18597 # shared library.
18598 predeps=$lt_predeps_GCJ
18599
18600 # Dependencies to place after the objects being linked to create a
18601 # shared library.
18602 postdeps=$lt_postdeps_GCJ
18603
18604 # The library search path used internally by the compiler when linking
18605 # a shared library.
18606 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18607
18608 # Method to check whether dependent libraries are shared objects.
18609 deplibs_check_method=$lt_deplibs_check_method
18610
18611 # Command to use when deplibs_check_method == file_magic.
18612 file_magic_cmd=$lt_file_magic_cmd
18613
18614 # Flag that allows shared libraries with undefined symbols to be built.
18615 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18616
18617 # Flag that forces no undefined symbols.
18618 no_undefined_flag=$lt_no_undefined_flag_GCJ
18619
18620 # Commands used to finish a libtool library installation in a directory.
18621 finish_cmds=$lt_finish_cmds
18622
18623 # Same as above, but a single script fragment to be evaled but not shown.
18624 finish_eval=$lt_finish_eval
18625
18626 # Take the output of nm and produce a listing of raw symbols and C names.
18627 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18628
18629 # Transform the output of nm in a proper C declaration
18630 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18631
18632 # Transform the output of nm in a C name address pair
18633 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18634
18635 # This is the shared library runtime path variable.
18636 runpath_var=$runpath_var
18637
18638 # This is the shared library path variable.
18639 shlibpath_var=$shlibpath_var
18640
18641 # Is shlibpath searched before the hard-coded library search path?
18642 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18643
18644 # How to hardcode a shared library path into an executable.
18645 hardcode_action=$hardcode_action_GCJ
18646
18647 # Whether we should hardcode library paths into libraries.
18648 hardcode_into_libs=$hardcode_into_libs
18649
18650 # Flag to hardcode \$libdir into a binary during linking.
18651 # This must work even if \$libdir does not exist.
18652 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18653
18654 # If ld is used when linking, flag to hardcode \$libdir into
18655 # a binary during linking. This must work even if \$libdir does
18656 # not exist.
18657 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18658
18659 # Whether we need a single -rpath flag with a separated argument.
18660 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18661
18662 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18663 # resulting binary.
18664 hardcode_direct=$hardcode_direct_GCJ
18665
18666 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18667 # resulting binary.
18668 hardcode_minus_L=$hardcode_minus_L_GCJ
18669
18670 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18671 # the resulting binary.
18672 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18673
18674 # Set to yes if building a shared library automatically hardcodes DIR into the library
18675 # and all subsequent libraries and executables linked against it.
18676 hardcode_automatic=$hardcode_automatic_GCJ
18677
18678 # Variables whose values should be saved in libtool wrapper scripts and
18679 # restored at relink time.
18680 variables_saved_for_relink="$variables_saved_for_relink"
18681
18682 # Whether libtool must link a program against all its dependency libraries.
18683 link_all_deplibs=$link_all_deplibs_GCJ
18684
18685 # Compile-time system search path for libraries
18686 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18687
18688 # Run-time system search path for libraries
18689 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18690
18691 # Fix the shell variable \$srcfile for the compiler.
18692 fix_srcfile_path="$fix_srcfile_path_GCJ"
18693
18694 # Set to yes if exported symbols are required.
18695 always_export_symbols=$always_export_symbols_GCJ
18696
18697 # The commands to list exported symbols.
18698 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18699
18700 # The commands to extract the exported symbol list from a shared archive.
18701 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18702
18703 # Symbols that should not be listed in the preloaded symbols.
18704 exclude_expsyms=$lt_exclude_expsyms_GCJ
18705
18706 # Symbols that must always be exported.
18707 include_expsyms=$lt_include_expsyms_GCJ
18708
18709 # ### END LIBTOOL TAG CONFIG: $tagname
18710
18711 __EOF__
18712
18713
18714 else
18715   # If there is no Makefile yet, we rely on a make rule to execute
18716   # `config.status --recheck' to rerun these tests and create the
18717   # libtool script then.
18718   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18719   if test -f "$ltmain_in"; then
18720     test -f Makefile && make "$ltmain"
18721   fi
18722 fi
18723
18724
18725 ac_ext=c
18726 ac_cpp='$CPP $CPPFLAGS'
18727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18730
18731 CC="$lt_save_CC"
18732
18733         else
18734           tagname=""
18735         fi
18736         ;;
18737
18738       RC)
18739
18740
18741 # Source file extension for RC test sources.
18742 ac_ext=rc
18743
18744 # Object file extension for compiled RC test sources.
18745 objext=o
18746 objext_RC=$objext
18747
18748 # Code to be used in simple compile tests
18749 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18750
18751 # Code to be used in simple link tests
18752 lt_simple_link_test_code="$lt_simple_compile_test_code"
18753
18754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18755
18756 # If no C compiler was specified, use CC.
18757 LTCC=${LTCC-"$CC"}
18758
18759 # If no C compiler flags were specified, use CFLAGS.
18760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18761
18762 # Allow CC to be a program name with arguments.
18763 compiler=$CC
18764
18765
18766 # save warnings/boilerplate of simple test code
18767 ac_outfile=conftest.$ac_objext
18768 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18770 _lt_compiler_boilerplate=`cat conftest.err`
18771 $rm conftest*
18772
18773 ac_outfile=conftest.$ac_objext
18774 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18776 _lt_linker_boilerplate=`cat conftest.err`
18777 $rm conftest*
18778
18779
18780 # Allow CC to be a program name with arguments.
18781 lt_save_CC="$CC"
18782 CC=${RC-"windres"}
18783 compiler=$CC
18784 compiler_RC=$CC
18785 for cc_temp in $compiler""; do
18786   case $cc_temp in
18787     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18788     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18789     \-*) ;;
18790     *) break;;
18791   esac
18792 done
18793 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18794
18795 lt_cv_prog_compiler_c_o_RC=yes
18796
18797 # The else clause should only fire when bootstrapping the
18798 # libtool distribution, otherwise you forgot to ship ltmain.sh
18799 # with your package, and you will get complaints that there are
18800 # no rules to generate ltmain.sh.
18801 if test -f "$ltmain"; then
18802   # See if we are running on zsh, and set the options which allow our commands through
18803   # without removal of \ escapes.
18804   if test -n "${ZSH_VERSION+set}" ; then
18805     setopt NO_GLOB_SUBST
18806   fi
18807   # Now quote all the things that may contain metacharacters while being
18808   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18809   # variables and quote the copies for generation of the libtool script.
18810   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18811     SED SHELL STRIP \
18812     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18813     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18814     deplibs_check_method reload_flag reload_cmds need_locks \
18815     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18816     lt_cv_sys_global_symbol_to_c_name_address \
18817     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18818     old_postinstall_cmds old_postuninstall_cmds \
18819     compiler_RC \
18820     CC_RC \
18821     LD_RC \
18822     lt_prog_compiler_wl_RC \
18823     lt_prog_compiler_pic_RC \
18824     lt_prog_compiler_static_RC \
18825     lt_prog_compiler_no_builtin_flag_RC \
18826     export_dynamic_flag_spec_RC \
18827     thread_safe_flag_spec_RC \
18828     whole_archive_flag_spec_RC \
18829     enable_shared_with_static_runtimes_RC \
18830     old_archive_cmds_RC \
18831     old_archive_from_new_cmds_RC \
18832     predep_objects_RC \
18833     postdep_objects_RC \
18834     predeps_RC \
18835     postdeps_RC \
18836     compiler_lib_search_path_RC \
18837     archive_cmds_RC \
18838     archive_expsym_cmds_RC \
18839     postinstall_cmds_RC \
18840     postuninstall_cmds_RC \
18841     old_archive_from_expsyms_cmds_RC \
18842     allow_undefined_flag_RC \
18843     no_undefined_flag_RC \
18844     export_symbols_cmds_RC \
18845     hardcode_libdir_flag_spec_RC \
18846     hardcode_libdir_flag_spec_ld_RC \
18847     hardcode_libdir_separator_RC \
18848     hardcode_automatic_RC \
18849     module_cmds_RC \
18850     module_expsym_cmds_RC \
18851     lt_cv_prog_compiler_c_o_RC \
18852     exclude_expsyms_RC \
18853     include_expsyms_RC; do
18854
18855     case $var in
18856     old_archive_cmds_RC | \
18857     old_archive_from_new_cmds_RC | \
18858     archive_cmds_RC | \
18859     archive_expsym_cmds_RC | \
18860     module_cmds_RC | \
18861     module_expsym_cmds_RC | \
18862     old_archive_from_expsyms_cmds_RC | \
18863     export_symbols_cmds_RC | \
18864     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18865     postinstall_cmds | postuninstall_cmds | \
18866     old_postinstall_cmds | old_postuninstall_cmds | \
18867     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18868       # Double-quote double-evaled strings.
18869       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18870       ;;
18871     *)
18872       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18873       ;;
18874     esac
18875   done
18876
18877   case $lt_echo in
18878   *'\$0 --fallback-echo"')
18879     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18880     ;;
18881   esac
18882
18883 cfgfile="$ofile"
18884
18885   cat <<__EOF__ >> "$cfgfile"
18886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18887
18888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18889
18890 # Shell to use when invoking shell scripts.
18891 SHELL=$lt_SHELL
18892
18893 # Whether or not to build shared libraries.
18894 build_libtool_libs=$enable_shared
18895
18896 # Whether or not to build static libraries.
18897 build_old_libs=$enable_static
18898
18899 # Whether or not to add -lc for building shared libraries.
18900 build_libtool_need_lc=$archive_cmds_need_lc_RC
18901
18902 # Whether or not to disallow shared libs when runtime libs are static
18903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18904
18905 # Whether or not to optimize for fast installation.
18906 fast_install=$enable_fast_install
18907
18908 # The host system.
18909 host_alias=$host_alias
18910 host=$host
18911 host_os=$host_os
18912
18913 # The build system.
18914 build_alias=$build_alias
18915 build=$build
18916 build_os=$build_os
18917
18918 # An echo program that does not interpret backslashes.
18919 echo=$lt_echo
18920
18921 # The archiver.
18922 AR=$lt_AR
18923 AR_FLAGS=$lt_AR_FLAGS
18924
18925 # A C compiler.
18926 LTCC=$lt_LTCC
18927
18928 # LTCC compiler flags.
18929 LTCFLAGS=$lt_LTCFLAGS
18930
18931 # A language-specific compiler.
18932 CC=$lt_compiler_RC
18933
18934 # Is the compiler the GNU C compiler?
18935 with_gcc=$GCC_RC
18936
18937 # An ERE matcher.
18938 EGREP=$lt_EGREP
18939
18940 # The linker used to build libraries.
18941 LD=$lt_LD_RC
18942
18943 # Whether we need hard or soft links.
18944 LN_S=$lt_LN_S
18945
18946 # A BSD-compatible nm program.
18947 NM=$lt_NM
18948
18949 # A symbol stripping program
18950 STRIP=$lt_STRIP
18951
18952 # Used to examine libraries when file_magic_cmd begins "file"
18953 MAGIC_CMD=$MAGIC_CMD
18954
18955 # Used on cygwin: DLL creation program.
18956 DLLTOOL="$DLLTOOL"
18957
18958 # Used on cygwin: object dumper.
18959 OBJDUMP="$OBJDUMP"
18960
18961 # Used on cygwin: assembler.
18962 AS="$AS"
18963
18964 # The name of the directory that contains temporary libtool files.
18965 objdir=$objdir
18966
18967 # How to create reloadable object files.
18968 reload_flag=$lt_reload_flag
18969 reload_cmds=$lt_reload_cmds
18970
18971 # How to pass a linker flag through the compiler.
18972 wl=$lt_lt_prog_compiler_wl_RC
18973
18974 # Object file suffix (normally "o").
18975 objext="$ac_objext"
18976
18977 # Old archive suffix (normally "a").
18978 libext="$libext"
18979
18980 # Shared library suffix (normally ".so").
18981 shrext_cmds='$shrext_cmds'
18982
18983 # Executable file suffix (normally "").
18984 exeext="$exeext"
18985
18986 # Additional compiler flags for building library objects.
18987 pic_flag=$lt_lt_prog_compiler_pic_RC
18988 pic_mode=$pic_mode
18989
18990 # What is the maximum length of a command?
18991 max_cmd_len=$lt_cv_sys_max_cmd_len
18992
18993 # Does compiler simultaneously support -c and -o options?
18994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18995
18996 # Must we lock files when doing compilation?
18997 need_locks=$lt_need_locks
18998
18999 # Do we need the lib prefix for modules?
19000 need_lib_prefix=$need_lib_prefix
19001
19002 # Do we need a version for libraries?
19003 need_version=$need_version
19004
19005 # Whether dlopen is supported.
19006 dlopen_support=$enable_dlopen
19007
19008 # Whether dlopen of programs is supported.
19009 dlopen_self=$enable_dlopen_self
19010
19011 # Whether dlopen of statically linked programs is supported.
19012 dlopen_self_static=$enable_dlopen_self_static
19013
19014 # Compiler flag to prevent dynamic linking.
19015 link_static_flag=$lt_lt_prog_compiler_static_RC
19016
19017 # Compiler flag to turn off builtin functions.
19018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19019
19020 # Compiler flag to allow reflexive dlopens.
19021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19022
19023 # Compiler flag to generate shared objects directly from archives.
19024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19025
19026 # Compiler flag to generate thread-safe objects.
19027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19028
19029 # Library versioning type.
19030 version_type=$version_type
19031
19032 # Format of library name prefix.
19033 libname_spec=$lt_libname_spec
19034
19035 # List of archive names.  First name is the real one, the rest are links.
19036 # The last name is the one that the linker finds with -lNAME.
19037 library_names_spec=$lt_library_names_spec
19038
19039 # The coded name of the library, if different from the real name.
19040 soname_spec=$lt_soname_spec
19041
19042 # Commands used to build and install an old-style archive.
19043 RANLIB=$lt_RANLIB
19044 old_archive_cmds=$lt_old_archive_cmds_RC
19045 old_postinstall_cmds=$lt_old_postinstall_cmds
19046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19047
19048 # Create an old-style archive from a shared archive.
19049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19050
19051 # Create a temporary old-style archive to link instead of a shared archive.
19052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19053
19054 # Commands used to build and install a shared archive.
19055 archive_cmds=$lt_archive_cmds_RC
19056 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19057 postinstall_cmds=$lt_postinstall_cmds
19058 postuninstall_cmds=$lt_postuninstall_cmds
19059
19060 # Commands used to build a loadable module (assumed same as above if empty)
19061 module_cmds=$lt_module_cmds_RC
19062 module_expsym_cmds=$lt_module_expsym_cmds_RC
19063
19064 # Commands to strip libraries.
19065 old_striplib=$lt_old_striplib
19066 striplib=$lt_striplib
19067
19068 # Dependencies to place before the objects being linked to create a
19069 # shared library.
19070 predep_objects=$lt_predep_objects_RC
19071
19072 # Dependencies to place after the objects being linked to create a
19073 # shared library.
19074 postdep_objects=$lt_postdep_objects_RC
19075
19076 # Dependencies to place before the objects being linked to create a
19077 # shared library.
19078 predeps=$lt_predeps_RC
19079
19080 # Dependencies to place after the objects being linked to create a
19081 # shared library.
19082 postdeps=$lt_postdeps_RC
19083
19084 # The library search path used internally by the compiler when linking
19085 # a shared library.
19086 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19087
19088 # Method to check whether dependent libraries are shared objects.
19089 deplibs_check_method=$lt_deplibs_check_method
19090
19091 # Command to use when deplibs_check_method == file_magic.
19092 file_magic_cmd=$lt_file_magic_cmd
19093
19094 # Flag that allows shared libraries with undefined symbols to be built.
19095 allow_undefined_flag=$lt_allow_undefined_flag_RC
19096
19097 # Flag that forces no undefined symbols.
19098 no_undefined_flag=$lt_no_undefined_flag_RC
19099
19100 # Commands used to finish a libtool library installation in a directory.
19101 finish_cmds=$lt_finish_cmds
19102
19103 # Same as above, but a single script fragment to be evaled but not shown.
19104 finish_eval=$lt_finish_eval
19105
19106 # Take the output of nm and produce a listing of raw symbols and C names.
19107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19108
19109 # Transform the output of nm in a proper C declaration
19110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19111
19112 # Transform the output of nm in a C name address pair
19113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19114
19115 # This is the shared library runtime path variable.
19116 runpath_var=$runpath_var
19117
19118 # This is the shared library path variable.
19119 shlibpath_var=$shlibpath_var
19120
19121 # Is shlibpath searched before the hard-coded library search path?
19122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19123
19124 # How to hardcode a shared library path into an executable.
19125 hardcode_action=$hardcode_action_RC
19126
19127 # Whether we should hardcode library paths into libraries.
19128 hardcode_into_libs=$hardcode_into_libs
19129
19130 # Flag to hardcode \$libdir into a binary during linking.
19131 # This must work even if \$libdir does not exist.
19132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19133
19134 # If ld is used when linking, flag to hardcode \$libdir into
19135 # a binary during linking. This must work even if \$libdir does
19136 # not exist.
19137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19138
19139 # Whether we need a single -rpath flag with a separated argument.
19140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19141
19142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19143 # resulting binary.
19144 hardcode_direct=$hardcode_direct_RC
19145
19146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19147 # resulting binary.
19148 hardcode_minus_L=$hardcode_minus_L_RC
19149
19150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19151 # the resulting binary.
19152 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19153
19154 # Set to yes if building a shared library automatically hardcodes DIR into the library
19155 # and all subsequent libraries and executables linked against it.
19156 hardcode_automatic=$hardcode_automatic_RC
19157
19158 # Variables whose values should be saved in libtool wrapper scripts and
19159 # restored at relink time.
19160 variables_saved_for_relink="$variables_saved_for_relink"
19161
19162 # Whether libtool must link a program against all its dependency libraries.
19163 link_all_deplibs=$link_all_deplibs_RC
19164
19165 # Compile-time system search path for libraries
19166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19167
19168 # Run-time system search path for libraries
19169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19170
19171 # Fix the shell variable \$srcfile for the compiler.
19172 fix_srcfile_path="$fix_srcfile_path_RC"
19173
19174 # Set to yes if exported symbols are required.
19175 always_export_symbols=$always_export_symbols_RC
19176
19177 # The commands to list exported symbols.
19178 export_symbols_cmds=$lt_export_symbols_cmds_RC
19179
19180 # The commands to extract the exported symbol list from a shared archive.
19181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19182
19183 # Symbols that should not be listed in the preloaded symbols.
19184 exclude_expsyms=$lt_exclude_expsyms_RC
19185
19186 # Symbols that must always be exported.
19187 include_expsyms=$lt_include_expsyms_RC
19188
19189 # ### END LIBTOOL TAG CONFIG: $tagname
19190
19191 __EOF__
19192
19193
19194 else
19195   # If there is no Makefile yet, we rely on a make rule to execute
19196   # `config.status --recheck' to rerun these tests and create the
19197   # libtool script then.
19198   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19199   if test -f "$ltmain_in"; then
19200     test -f Makefile && make "$ltmain"
19201   fi
19202 fi
19203
19204
19205 ac_ext=c
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19210
19211 CC="$lt_save_CC"
19212
19213         ;;
19214
19215       *)
19216         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19217 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19218    { (exit 1); exit 1; }; }
19219         ;;
19220       esac
19221
19222       # Append the new tag name to the list of available tags.
19223       if test -n "$tagname" ; then
19224       available_tags="$available_tags $tagname"
19225     fi
19226     fi
19227   done
19228   IFS="$lt_save_ifs"
19229
19230   # Now substitute the updated list of available tags.
19231   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19232     mv "${ofile}T" "$ofile"
19233     chmod +x "$ofile"
19234   else
19235     rm -f "${ofile}T"
19236     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19237 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19238    { (exit 1); exit 1; }; }
19239   fi
19240 fi
19241
19242
19243
19244 # This can be used to rebuild libtool when needed
19245 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19246
19247 # Always use our own libtool.
19248 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19249
19250 # Prevent multiple expansion
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274 # Checks for libraries.
19275
19276 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19277 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19278 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281   ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-lapr-1  $LIBS"
19283 cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289
19290
19291 int
19292 main ()
19293 {
19294 return main ();
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_link") 2>conftest.er1
19307   ac_status=$?
19308   grep -v '^ *+' conftest.er1 >conftest.err
19309   rm -f conftest.er1
19310   cat conftest.err >&5
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } && {
19313          test -z "$ac_c_werror_flag" ||
19314          test ! -s conftest.err
19315        } && test -s conftest$ac_exeext &&
19316        $as_test_x conftest$ac_exeext; then
19317   ac_cv_lib_apr_1_main=yes
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322         ac_cv_lib_apr_1_main=no
19323 fi
19324
19325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19326       conftest$ac_exeext conftest.$ac_ext
19327 LIBS=$ac_check_lib_save_LIBS
19328 fi
19329 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19330 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19331 if test $ac_cv_lib_apr_1_main = yes; then
19332   cat >>confdefs.h <<_ACEOF
19333 #define HAVE_LIBAPR_1 1
19334 _ACEOF
19335
19336   LIBS="-lapr-1 $LIBS"
19337
19338 fi
19339
19340
19341
19342 # Check whether --with-apache-header was given.
19343 if test "${with_apache_header+set}" = set; then
19344   withval=$with_apache_header;
19345 fi
19346
19347 if test "x$with_apache_header" = "xyes"; then
19348     { { echo "$as_me:$LINENO: error:
19349 Please specify the --with-apache-header option. And, please specify the place of the header file.
19350
19351 " >&5
19352 echo "$as_me: error:
19353 Please specify the --with-apache-header option. And, please specify the place of the header file.
19354
19355 " >&2;}
19356    { (exit 1); exit 1; }; }
19357 fi
19358
19359
19360 # Check whether --with-apxs was given.
19361 if test "${with_apxs+set}" = set; then
19362   withval=$with_apxs;
19363 fi
19364
19365 if test "x$with_apxs" = "x" ; then
19366   APXS=""
19367 fi
19368 if test "x$with_apxs" = "xyes" ; then
19369     { { echo "$as_me:$LINENO: error:
19370 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19371 " >&5
19372 echo "$as_me: error:
19373 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19374 " >&2;}
19375    { (exit 1); exit 1; }; }
19376 fi
19377
19378
19379 # Check whether --with-apr-config was given.
19380 if test "${with_apr_config+set}" = set; then
19381   withval=$with_apr_config;
19382 fi
19383
19384 if test "x$with_apr_config" = "xyes" ; then
19385     { { echo "$as_me:$LINENO: error:
19386 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19387 " >&5
19388 echo "$as_me: error:
19389 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19390 " >&2;}
19391    { (exit 1); exit 1; }; }
19392 fi
19393
19394
19395 # Check whether --with-apu-config was given.
19396 if test "${with_apu_config+set}" = set; then
19397   withval=$with_apu_config;
19398 fi
19399
19400 if test "x$with_apu_config" = "xyes" ; then
19401     { { echo "$as_me:$LINENO: error:
19402 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19403 " >&5
19404 echo "$as_me: error:
19405 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19406 " >&2;}
19407    { (exit 1); exit 1; }; }
19408 fi
19409
19410
19411 # Check whether --with-pcre-config was given.
19412 if test "${with_pcre_config+set}" = set; then
19413   withval=$with_pcre_config;
19414 fi
19415
19416 if test "x$with_pcre_config" = "xyes" ; then
19417     { { echo "$as_me:$LINENO: error:
19418 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19419 " >&5
19420 echo "$as_me: error:
19421 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19422 " >&2;}
19423    { (exit 1); exit 1; }; }
19424 fi
19425
19426 # Check whether --enable-img-conv-f was given.
19427 if test "${enable_img_conv_f+set}" = set; then
19428   enableval=$enable_img_conv_f;
19429 fi
19430
19431 if test "x$enable_img_conv_f" = "xyes"; then
19432   QDEFS=""
19433 else
19434   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19435 fi
19436
19437
19438 # Check whether --enable-memcache-cookie was given.
19439 if test "${enable_memcache_cookie+set}" = set; then
19440   enableval=$enable_memcache_cookie;
19441 fi
19442
19443
19444 # Check whether --with-apr-memcache-header was given.
19445 if test "${with_apr_memcache_header+set}" = set; then
19446   withval=$with_apr_memcache_header;
19447 fi
19448
19449
19450 # Check whether --with-apr-memcache-lib-dir was given.
19451 if test "${with_apr_memcache_lib_dir+set}" = set; then
19452   withval=$with_apr_memcache_lib_dir;
19453 fi
19454
19455 if test "x$enable_memcache_cookie" = "xyes" ; then
19456         if test "x$with_apr_memcache_header" = "x" -o "x$with_apr_memcache_header" = "xyes" ; then
19457     { { echo "$as_me:$LINENO: error:
19458 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
19459 " >&5
19460 echo "$as_me: error:
19461 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
19462 " >&2;}
19463    { (exit 1); exit 1; }; }
19464   fi
19465   if test "x$with_apr_memcache_lib_dir" = "x" -o "x$with_apr_memcache_lib_dir" = "xyes" ; then
19466     { { echo "$as_me:$LINENO: error:
19467 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
19468 " >&5
19469 echo "$as_me: error:
19470 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
19471 " >&2;}
19472    { (exit 1); exit 1; }; }
19473   fi
19474   MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_apr_memcache_header}"
19475   MEMCACHE_COOKIE_LIBS="-L${with_apr_memcache_lib_dir} -lapr_memcache"
19476 else
19477         MEMCACHE_COOKIE_DEFS=""
19478   MEMCACHE_COOKIE_LIBS=""
19479 fi
19480 # Check whether --enable-mysql-cookie was given.
19481 if test "${enable_mysql_cookie+set}" = set; then
19482   enableval=$enable_mysql_cookie;
19483 fi
19484
19485
19486 # Check whether --with-mysql-header was given.
19487 if test "${with_mysql_header+set}" = set; then
19488   withval=$with_mysql_header;
19489 fi
19490
19491
19492 # Check whether --with-mysql-lib-dir was given.
19493 if test "${with_mysql_lib_dir+set}" = set; then
19494   withval=$with_mysql_lib_dir;
19495 fi
19496
19497 if test "x$enable_mysql_cookie" = "xyes"; then
19498         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19499     { { echo "$as_me:$LINENO: error:
19500 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19501 " >&5
19502 echo "$as_me: error:
19503 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19504 " >&2;}
19505    { (exit 1); exit 1; }; }
19506   fi
19507   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19508     { { echo "$as_me:$LINENO: error:
19509 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19510 " >&5
19511 echo "$as_me: error:
19512 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19513 " >&2;}
19514    { (exit 1); exit 1; }; }
19515   fi
19516   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19517   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19518 else
19519         MYSQL_COOKIE_DEFS=""
19520   MYSQL_COOKIE_LIBS=""
19521 fi
19522
19523 # Check whether --enable-dump-log was given.
19524 if test "${enable_dump_log+set}" = set; then
19525   enableval=$enable_dump_log;
19526 fi
19527
19528 if test "x$enable_dump_log" = "xyes"; then
19529   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19530 else
19531     if test "x$enable_dump_log" != "x" ; then
19532         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19533     fi
19534 fi
19535
19536
19537 if test "x$with_apxs" = "x" ; then
19538   # Extract the first word of "apxs2", so it can be a program name with args.
19539 set dummy apxs2; ac_word=$2
19540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19542 if test "${ac_cv_path_APXS2+set}" = set; then
19543   echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545   case $APXS2 in
19546   [\\/]* | ?:[\\/]*)
19547   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19548   ;;
19549   *)
19550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19551 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19552 for as_dir in $as_dummy
19553 do
19554   IFS=$as_save_IFS
19555   test -z "$as_dir" && as_dir=.
19556   for ac_exec_ext in '' $ac_executable_extensions; do
19557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19558     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19560     break 2
19561   fi
19562 done
19563 done
19564 IFS=$as_save_IFS
19565
19566   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19567   ;;
19568 esac
19569 fi
19570 APXS2=$ac_cv_path_APXS2
19571 if test -n "$APXS2"; then
19572   { echo "$as_me:$LINENO: result: $APXS2" >&5
19573 echo "${ECHO_T}$APXS2" >&6; }
19574 else
19575   { echo "$as_me:$LINENO: result: no" >&5
19576 echo "${ECHO_T}no" >&6; }
19577 fi
19578
19579
19580   if test "x$APXS2" = "xno"; then
19581     # Extract the first word of "apxs", so it can be a program name with args.
19582 set dummy apxs; ac_word=$2
19583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19585 if test "${ac_cv_path_APXS+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   case $APXS in
19589   [\\/]* | ?:[\\/]*)
19590   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19591   ;;
19592   *)
19593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19595 for as_dir in $as_dummy
19596 do
19597   IFS=$as_save_IFS
19598   test -z "$as_dir" && as_dir=.
19599   for ac_exec_ext in '' $ac_executable_extensions; do
19600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19601     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19603     break 2
19604   fi
19605 done
19606 done
19607 IFS=$as_save_IFS
19608
19609   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19610   ;;
19611 esac
19612 fi
19613 APXS=$ac_cv_path_APXS
19614 if test -n "$APXS"; then
19615   { echo "$as_me:$LINENO: result: $APXS" >&5
19616 echo "${ECHO_T}$APXS" >&6; }
19617 else
19618   { echo "$as_me:$LINENO: result: no" >&5
19619 echo "${ECHO_T}no" >&6; }
19620 fi
19621
19622
19623     if test "x$APXS" = "xno" ; then
19624       { { echo "$as_me:$LINENO: error: apxs not found." >&5
19625 echo "$as_me: error: apxs not found." >&2;}
19626    { (exit 1); exit 1; }; }
19627     fi
19628   else
19629     APXS="$APXS2"
19630   fi
19631 fi
19632 if test "x$with_apxs" != "x" ; then
19633   APXS=$with_apxs
19634 fi
19635
19636 # Extract the first word of "libtool", so it can be a program name with args.
19637 set dummy libtool; ac_word=$2
19638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19640 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643   case $LIBTOOL in
19644   [\\/]* | ?:[\\/]*)
19645   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19646   ;;
19647   *)
19648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19650 for as_dir in $as_dummy
19651 do
19652   IFS=$as_save_IFS
19653   test -z "$as_dir" && as_dir=.
19654   for ac_exec_ext in '' $ac_executable_extensions; do
19655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19656     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19658     break 2
19659   fi
19660 done
19661 done
19662 IFS=$as_save_IFS
19663
19664   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19665   ;;
19666 esac
19667 fi
19668 LIBTOOL=$ac_cv_path_LIBTOOL
19669 if test -n "$LIBTOOL"; then
19670   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19671 echo "${ECHO_T}$LIBTOOL" >&6; }
19672 else
19673   { echo "$as_me:$LINENO: result: no" >&5
19674 echo "${ECHO_T}no" >&6; }
19675 fi
19676
19677
19678 if test "x$LIBTOOL" = "xno"; then
19679     { { echo "$as_me:$LINENO: error: libtool not found." >&5
19680 echo "$as_me: error: libtool not found." >&2;}
19681    { (exit 1); exit 1; }; }
19682 fi
19683
19684
19685 # Extract the first word of "Wand-config", so it can be a program name with args.
19686 set dummy Wand-config; ac_word=$2
19687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19689 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   case $WAND_CONFIG in
19693   [\\/]* | ?:[\\/]*)
19694   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19695   ;;
19696   *)
19697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19698 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19699 for as_dir in $as_dummy
19700 do
19701   IFS=$as_save_IFS
19702   test -z "$as_dir" && as_dir=.
19703   for ac_exec_ext in '' $ac_executable_extensions; do
19704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19705     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19707     break 2
19708   fi
19709 done
19710 done
19711 IFS=$as_save_IFS
19712
19713   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19714   ;;
19715 esac
19716 fi
19717 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19718 if test -n "$WAND_CONFIG"; then
19719   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19720 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19721 else
19722   { echo "$as_me:$LINENO: result: no" >&5
19723 echo "${ECHO_T}no" >&6; }
19724 fi
19725
19726
19727 if test "x$WAND_CONFIG" = "xno" ; then
19728     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19729 echo "$as_me: error: wand-config not found." >&2;}
19730    { (exit 1); exit 1; }; }
19731 fi
19732
19733 if test "x$with_apr_config" = "x" ; then
19734   # Extract the first word of "apr-config", so it can be a program name with args.
19735 set dummy apr-config; ac_word=$2
19736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19738 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   case $APR_CONFIG in
19742   [\\/]* | ?:[\\/]*)
19743   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19744   ;;
19745   *)
19746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19748 for as_dir in $as_dummy
19749 do
19750   IFS=$as_save_IFS
19751   test -z "$as_dir" && as_dir=.
19752   for ac_exec_ext in '' $ac_executable_extensions; do
19753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19754     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19756     break 2
19757   fi
19758 done
19759 done
19760 IFS=$as_save_IFS
19761
19762   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19763   ;;
19764 esac
19765 fi
19766 APR_CONFIG=$ac_cv_path_APR_CONFIG
19767 if test -n "$APR_CONFIG"; then
19768   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19769 echo "${ECHO_T}$APR_CONFIG" >&6; }
19770 else
19771   { echo "$as_me:$LINENO: result: no" >&5
19772 echo "${ECHO_T}no" >&6; }
19773 fi
19774
19775
19776   if test "x$APR_CONFIG" = "xno" ; then
19777     # Extract the first word of "apr-1-config", so it can be a program name with args.
19778 set dummy apr-1-config; ac_word=$2
19779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19781 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784   case $APR_1_CONFIG in
19785   [\\/]* | ?:[\\/]*)
19786   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19787   ;;
19788   *)
19789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19790 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19791 for as_dir in $as_dummy
19792 do
19793   IFS=$as_save_IFS
19794   test -z "$as_dir" && as_dir=.
19795   for ac_exec_ext in '' $ac_executable_extensions; do
19796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19797     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19799     break 2
19800   fi
19801 done
19802 done
19803 IFS=$as_save_IFS
19804
19805   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19806   ;;
19807 esac
19808 fi
19809 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19810 if test -n "$APR_1_CONFIG"; then
19811   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19812 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19813 else
19814   { echo "$as_me:$LINENO: result: no" >&5
19815 echo "${ECHO_T}no" >&6; }
19816 fi
19817
19818
19819     if test "x$APR_1_CONFIG" = "xno" ; then
19820       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19821 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19822    { (exit 1); exit 1; }; }
19823     else
19824       APR_CONFIG="$APR_1_CONFIG"
19825     fi
19826   fi
19827 fi
19828 if test "x$with_apr_config" != "x" ; then
19829   APR_CONFIG=$with_apr_config
19830 fi
19831 if test "x$with_apu_config" = "x" ; then
19832   # Extract the first word of "apu-config", so it can be a program name with args.
19833 set dummy apu-config; ac_word=$2
19834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19836 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839   case $APU_CONFIG in
19840   [\\/]* | ?:[\\/]*)
19841   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19842   ;;
19843   *)
19844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19845 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19846 for as_dir in $as_dummy
19847 do
19848   IFS=$as_save_IFS
19849   test -z "$as_dir" && as_dir=.
19850   for ac_exec_ext in '' $ac_executable_extensions; do
19851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19852     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19854     break 2
19855   fi
19856 done
19857 done
19858 IFS=$as_save_IFS
19859
19860   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19861   ;;
19862 esac
19863 fi
19864 APU_CONFIG=$ac_cv_path_APU_CONFIG
19865 if test -n "$APU_CONFIG"; then
19866   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19867 echo "${ECHO_T}$APU_CONFIG" >&6; }
19868 else
19869   { echo "$as_me:$LINENO: result: no" >&5
19870 echo "${ECHO_T}no" >&6; }
19871 fi
19872
19873
19874   if test "x$APU_CONFIG" = "xno" ; then
19875     # Extract the first word of "apu-1-config", so it can be a program name with args.
19876 set dummy apu-1-config; ac_word=$2
19877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19879 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19880   echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882   case $APU_1_CONFIG in
19883   [\\/]* | ?:[\\/]*)
19884   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19885   ;;
19886   *)
19887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19888 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19889 for as_dir in $as_dummy
19890 do
19891   IFS=$as_save_IFS
19892   test -z "$as_dir" && as_dir=.
19893   for ac_exec_ext in '' $ac_executable_extensions; do
19894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19895     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19897     break 2
19898   fi
19899 done
19900 done
19901 IFS=$as_save_IFS
19902
19903   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19904   ;;
19905 esac
19906 fi
19907 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19908 if test -n "$APU_1_CONFIG"; then
19909   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19910 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19911 else
19912   { echo "$as_me:$LINENO: result: no" >&5
19913 echo "${ECHO_T}no" >&6; }
19914 fi
19915
19916
19917     if test "x$APU_1_CONFIG" = "xno" ; then
19918       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19919 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19920    { (exit 1); exit 1; }; }
19921     else
19922       APU_CONFIG="$APU_1_CONFIG"
19923     fi
19924   fi
19925 fi
19926 if test "x$with_apu_config" != "x" ; then
19927   APU_CONFIG=$with_apu_config
19928 fi
19929
19930
19931 case $host_os in
19932   freebsd*)
19933     CFLAGS="${CFLAGS} -I/usr/local/include "
19934     ;;
19935 esac
19936
19937 if test "x${with_apache_header}" = "x" ; then
19938   with_apache_header=`${APXS} -q includedir`
19939 fi
19940
19941 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19942 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19943 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19944 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
19945 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS}"
19946 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19947 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19948 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19949 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
19950 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19951 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19952 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
19953 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19954
19955 # Checks for header files.
19956 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19958 if test "${ac_cv_header_stdc+set}" = set; then
19959   echo $ECHO_N "(cached) $ECHO_C" >&6
19960 else
19961   cat >conftest.$ac_ext <<_ACEOF
19962 /* confdefs.h.  */
19963 _ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h.  */
19967 #include <stdlib.h>
19968 #include <stdarg.h>
19969 #include <string.h>
19970 #include <float.h>
19971
19972 int
19973 main ()
19974 {
19975
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_compile") 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } && {
19994          test -z "$ac_c_werror_flag" ||
19995          test ! -s conftest.err
19996        } && test -s conftest.$ac_objext; then
19997   ac_cv_header_stdc=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         ac_cv_header_stdc=no
20003 fi
20004
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006
20007 if test $ac_cv_header_stdc = yes; then
20008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20009   cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 #include <string.h>
20016
20017 _ACEOF
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019   $EGREP "memchr" >/dev/null 2>&1; then
20020   :
20021 else
20022   ac_cv_header_stdc=no
20023 fi
20024 rm -f conftest*
20025
20026 fi
20027
20028 if test $ac_cv_header_stdc = yes; then
20029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20030   cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #include <stdlib.h>
20037
20038 _ACEOF
20039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20040   $EGREP "free" >/dev/null 2>&1; then
20041   :
20042 else
20043   ac_cv_header_stdc=no
20044 fi
20045 rm -f conftest*
20046
20047 fi
20048
20049 if test $ac_cv_header_stdc = yes; then
20050   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20051   if test "$cross_compiling" = yes; then
20052   :
20053 else
20054   cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 #include <ctype.h>
20061 #include <stdlib.h>
20062 #if ((' ' & 0x0FF) == 0x020)
20063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20065 #else
20066 # define ISLOWER(c) \
20067                    (('a' <= (c) && (c) <= 'i') \
20068                      || ('j' <= (c) && (c) <= 'r') \
20069                      || ('s' <= (c) && (c) <= 'z'))
20070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20071 #endif
20072
20073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20074 int
20075 main ()
20076 {
20077   int i;
20078   for (i = 0; i < 256; i++)
20079     if (XOR (islower (i), ISLOWER (i))
20080         || toupper (i) != TOUPPER (i))
20081       return 2;
20082   return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest$ac_exeext
20086 if { (ac_try="$ac_link"
20087 case "(($ac_try" in
20088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089   *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092   (eval "$ac_link") 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20096   { (case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_try") 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; }; then
20105   :
20106 else
20107   echo "$as_me: program exited with status $ac_status" >&5
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20110
20111 ( exit $ac_status )
20112 ac_cv_header_stdc=no
20113 fi
20114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20115 fi
20116
20117
20118 fi
20119 fi
20120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20122 if test $ac_cv_header_stdc = yes; then
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define STDC_HEADERS 1
20126 _ACEOF
20127
20128 fi
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20139 do
20140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20142   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 fi
20147 ac_res=`eval echo '${'$as_ac_Header'}'`
20148                { echo "$as_me:$LINENO: result: $ac_res" >&5
20149 echo "${ECHO_T}$ac_res" >&6; }
20150 else
20151   # Is the header compilable?
20152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h.  */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h.  */
20160 $ac_includes_default
20161 #include <$ac_header>
20162 _ACEOF
20163 rm -f conftest.$ac_objext
20164 if { (ac_try="$ac_compile"
20165 case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_compile") 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } && {
20177          test -z "$ac_c_werror_flag" ||
20178          test ! -s conftest.err
20179        } && test -s conftest.$ac_objext; then
20180   ac_header_compiler=yes
20181 else
20182   echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185         ac_header_compiler=no
20186 fi
20187
20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20190 echo "${ECHO_T}$ac_header_compiler" >&6; }
20191
20192 # Is the header present?
20193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201 #include <$ac_header>
20202 _ACEOF
20203 if { (ac_try="$ac_cpp conftest.$ac_ext"
20204 case "(($ac_try" in
20205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206   *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20210   ac_status=$?
20211   grep -v '^ *+' conftest.er1 >conftest.err
20212   rm -f conftest.er1
20213   cat conftest.err >&5
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } >/dev/null && {
20216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20217          test ! -s conftest.err
20218        }; then
20219   ac_header_preproc=yes
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224   ac_header_preproc=no
20225 fi
20226
20227 rm -f conftest.err conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20229 echo "${ECHO_T}$ac_header_preproc" >&6; }
20230
20231 # So?  What about this header?
20232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20233   yes:no: )
20234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20238     ac_header_preproc=yes
20239     ;;
20240   no:yes:* )
20241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20243     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20244 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20245     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20247     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20248 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20251     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20253
20254     ;;
20255 esac
20256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261   eval "$as_ac_Header=\$ac_header_preproc"
20262 fi
20263 ac_res=`eval echo '${'$as_ac_Header'}'`
20264                { echo "$as_me:$LINENO: result: $ac_res" >&5
20265 echo "${ECHO_T}$ac_res" >&6; }
20266
20267 fi
20268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20269   cat >>confdefs.h <<_ACEOF
20270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20271 _ACEOF
20272
20273 fi
20274
20275 done
20276
20277 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20278
20279
20280 for ac_header in apr_shm.h apr_global_mutex.h
20281 do
20282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20284   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 fi
20289 ac_res=`eval echo '${'$as_ac_Header'}'`
20290                { echo "$as_me:$LINENO: result: $ac_res" >&5
20291 echo "${ECHO_T}$ac_res" >&6; }
20292 else
20293   # Is the header compilable?
20294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302 $ac_includes_default
20303 #include <$ac_header>
20304 _ACEOF
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309   *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312   (eval "$ac_compile") 2>conftest.er1
20313   ac_status=$?
20314   grep -v '^ *+' conftest.er1 >conftest.err
20315   rm -f conftest.er1
20316   cat conftest.err >&5
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } && {
20319          test -z "$ac_c_werror_flag" ||
20320          test ! -s conftest.err
20321        } && test -s conftest.$ac_objext; then
20322   ac_header_compiler=yes
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327         ac_header_compiler=no
20328 fi
20329
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20332 echo "${ECHO_T}$ac_header_compiler" >&6; }
20333
20334 # Is the header present?
20335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h.  */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h.  */
20343 #include <$ac_header>
20344 _ACEOF
20345 if { (ac_try="$ac_cpp conftest.$ac_ext"
20346 case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20352   ac_status=$?
20353   grep -v '^ *+' conftest.er1 >conftest.err
20354   rm -f conftest.er1
20355   cat conftest.err >&5
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } >/dev/null && {
20358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20359          test ! -s conftest.err
20360        }; then
20361   ac_header_preproc=yes
20362 else
20363   echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366   ac_header_preproc=no
20367 fi
20368
20369 rm -f conftest.err conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20371 echo "${ECHO_T}$ac_header_preproc" >&6; }
20372
20373 # So?  What about this header?
20374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20375   yes:no: )
20376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20380     ac_header_preproc=yes
20381     ;;
20382   no:yes:* )
20383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20395
20396     ;;
20397 esac
20398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   eval "$as_ac_Header=\$ac_header_preproc"
20404 fi
20405 ac_res=`eval echo '${'$as_ac_Header'}'`
20406                { echo "$as_me:$LINENO: result: $ac_res" >&5
20407 echo "${ECHO_T}$ac_res" >&6; }
20408
20409 fi
20410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20411   cat >>confdefs.h <<_ACEOF
20412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20413 _ACEOF
20414
20415 fi
20416
20417 done
20418
20419
20420 for ac_header in apr.h
20421 do
20422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20424   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20427   echo $ECHO_N "(cached) $ECHO_C" >&6
20428 fi
20429 ac_res=`eval echo '${'$as_ac_Header'}'`
20430                { echo "$as_me:$LINENO: result: $ac_res" >&5
20431 echo "${ECHO_T}$ac_res" >&6; }
20432 else
20433   # Is the header compilable?
20434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h.  */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h.  */
20442 $ac_includes_default
20443 #include <$ac_header>
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_compile") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } && {
20459          test -z "$ac_c_werror_flag" ||
20460          test ! -s conftest.err
20461        } && test -s conftest.$ac_objext; then
20462   ac_header_compiler=yes
20463 else
20464   echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467         ac_header_compiler=no
20468 fi
20469
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20472 echo "${ECHO_T}$ac_header_compiler" >&6; }
20473
20474 # Is the header present?
20475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 #include <$ac_header>
20484 _ACEOF
20485 if { (ac_try="$ac_cpp conftest.$ac_ext"
20486 case "(($ac_try" in
20487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488   *) ac_try_echo=$ac_try;;
20489 esac
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20492   ac_status=$?
20493   grep -v '^ *+' conftest.er1 >conftest.err
20494   rm -f conftest.er1
20495   cat conftest.err >&5
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); } >/dev/null && {
20498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20499          test ! -s conftest.err
20500        }; then
20501   ac_header_preproc=yes
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506   ac_header_preproc=no
20507 fi
20508
20509 rm -f conftest.err conftest.$ac_ext
20510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20511 echo "${ECHO_T}$ac_header_preproc" >&6; }
20512
20513 # So?  What about this header?
20514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20515   yes:no: )
20516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20520     ac_header_preproc=yes
20521     ;;
20522   no:yes:* )
20523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20535
20536     ;;
20537 esac
20538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20541   echo $ECHO_N "(cached) $ECHO_C" >&6
20542 else
20543   eval "$as_ac_Header=\$ac_header_preproc"
20544 fi
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546                { echo "$as_me:$LINENO: result: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20548
20549 fi
20550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20551   cat >>confdefs.h <<_ACEOF
20552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20553 _ACEOF
20554
20555 fi
20556
20557 done
20558
20559
20560 for ac_header in ap_config.h
20561 do
20562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 fi
20569 ac_res=`eval echo '${'$as_ac_Header'}'`
20570                { echo "$as_me:$LINENO: result: $ac_res" >&5
20571 echo "${ECHO_T}$ac_res" >&6; }
20572 else
20573   # Is the header compilable?
20574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582 $ac_includes_default
20583 #include <$ac_header>
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_compile") 2>conftest.er1
20593   ac_status=$?
20594   grep -v '^ *+' conftest.er1 >conftest.err
20595   rm -f conftest.er1
20596   cat conftest.err >&5
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); } && {
20599          test -z "$ac_c_werror_flag" ||
20600          test ! -s conftest.err
20601        } && test -s conftest.$ac_objext; then
20602   ac_header_compiler=yes
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607         ac_header_compiler=no
20608 fi
20609
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6; }
20613
20614 # Is the header present?
20615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623 #include <$ac_header>
20624 _ACEOF
20625 if { (ac_try="$ac_cpp conftest.$ac_ext"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } >/dev/null && {
20638          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        }; then
20641   ac_header_preproc=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646   ac_header_preproc=no
20647 fi
20648
20649 rm -f conftest.err conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6; }
20652
20653 # So?  What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20655   yes:no: )
20656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20660     ac_header_preproc=yes
20661     ;;
20662   no:yes:* )
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20673     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20675
20676     ;;
20677 esac
20678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683   eval "$as_ac_Header=\$ac_header_preproc"
20684 fi
20685 ac_res=`eval echo '${'$as_ac_Header'}'`
20686                { echo "$as_me:$LINENO: result: $ac_res" >&5
20687 echo "${ECHO_T}$ac_res" >&6; }
20688
20689 fi
20690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20691   cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20693 _ACEOF
20694
20695 fi
20696
20697 done
20698
20699 #AC_CHECK_HEADERS([ap_regex.h],
20700 #  AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
20701 #[[
20702 ##ifdef HAVE_APR_H
20703 ##include "apr.h"
20704 ##endif
20705 ##ifdef HAVE_AP_CONFIG_H
20706 ##include "ap_config.h"
20707 ##endif
20708 #]])
20709
20710 for ac_header in ap_regex.h
20711 do
20712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20714   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 fi
20719 ac_res=`eval echo '${'$as_ac_Header'}'`
20720                { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20722 else
20723   # Is the header compilable?
20724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h.  */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h.  */
20732 $ac_includes_default
20733 #include <$ac_header>
20734 _ACEOF
20735 rm -f conftest.$ac_objext
20736 if { (ac_try="$ac_compile"
20737 case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_compile") 2>conftest.er1
20743   ac_status=$?
20744   grep -v '^ *+' conftest.er1 >conftest.err
20745   rm -f conftest.er1
20746   cat conftest.err >&5
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); } && {
20749          test -z "$ac_c_werror_flag" ||
20750          test ! -s conftest.err
20751        } && test -s conftest.$ac_objext; then
20752   ac_header_compiler=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757         ac_header_compiler=no
20758 fi
20759
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20762 echo "${ECHO_T}$ac_header_compiler" >&6; }
20763
20764 # Is the header present?
20765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <$ac_header>
20774 _ACEOF
20775 if { (ac_try="$ac_cpp conftest.$ac_ext"
20776 case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } >/dev/null && {
20788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20789          test ! -s conftest.err
20790        }; then
20791   ac_header_preproc=yes
20792 else
20793   echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796   ac_header_preproc=no
20797 fi
20798
20799 rm -f conftest.err conftest.$ac_ext
20800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20801 echo "${ECHO_T}$ac_header_preproc" >&6; }
20802
20803 # So?  What about this header?
20804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20805   yes:no: )
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20810     ac_header_preproc=yes
20811     ;;
20812   no:yes:* )
20813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20825
20826     ;;
20827 esac
20828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833   eval "$as_ac_Header=\$ac_header_preproc"
20834 fi
20835 ac_res=`eval echo '${'$as_ac_Header'}'`
20836                { echo "$as_me:$LINENO: result: $ac_res" >&5
20837 echo "${ECHO_T}$ac_res" >&6; }
20838
20839 fi
20840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20841   cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20843 _ACEOF
20844  use_pcre_flag="no"
20845 else
20846   use_pcre_flag="yes"
20847 fi
20848
20849 done
20850
20851 if test "x$use_pcre_flag" = "xyes" ; then
20852   if test "x$with_pcre_config" = "x" ; then
20853     # Extract the first word of "pcre-config", so it can be a program name with args.
20854 set dummy pcre-config; ac_word=$2
20855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20857 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860   case $PCRE_CONFIG in
20861   [\\/]* | ?:[\\/]*)
20862   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
20863   ;;
20864   *)
20865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20867 for as_dir in $as_dummy
20868 do
20869   IFS=$as_save_IFS
20870   test -z "$as_dir" && as_dir=.
20871   for ac_exec_ext in '' $ac_executable_extensions; do
20872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20873     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20875     break 2
20876   fi
20877 done
20878 done
20879 IFS=$as_save_IFS
20880
20881   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
20882   ;;
20883 esac
20884 fi
20885 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
20886 if test -n "$PCRE_CONFIG"; then
20887   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
20888 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
20889 else
20890   { echo "$as_me:$LINENO: result: no" >&5
20891 echo "${ECHO_T}no" >&6; }
20892 fi
20893
20894
20895     if test "x$PCRE_CONFIG" = "xno" ; then
20896       # Extract the first word of "pcre-1-config", so it can be a program name with args.
20897 set dummy pcre-1-config; ac_word=$2
20898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20900 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903   case $PCRE_1_CONFIG in
20904   [\\/]* | ?:[\\/]*)
20905   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
20906   ;;
20907   *)
20908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20909 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20910 for as_dir in $as_dummy
20911 do
20912   IFS=$as_save_IFS
20913   test -z "$as_dir" && as_dir=.
20914   for ac_exec_ext in '' $ac_executable_extensions; do
20915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20916     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20918     break 2
20919   fi
20920 done
20921 done
20922 IFS=$as_save_IFS
20923
20924   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
20925   ;;
20926 esac
20927 fi
20928 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
20929 if test -n "$PCRE_1_CONFIG"; then
20930   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
20931 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
20932 else
20933   { echo "$as_me:$LINENO: result: no" >&5
20934 echo "${ECHO_T}no" >&6; }
20935 fi
20936
20937
20938       if test "x$PCRE_1_CONFIG" = "xno" ; then
20939         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
20940 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
20941    { (exit 1); exit 1; }; }
20942       else
20943         PCRE_CONFIG="$PCRE_1_CONFIG"
20944       fi
20945     fi
20946   fi
20947   if test "x$with_pcre_config" != "x" ; then
20948     PCRE_CONFIG=$with_pcre_config
20949   fi
20950   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
20951 else
20952
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_AP_REGEX_H
20955 _ACEOF
20956
20957 fi
20958
20959 # Checks for typedefs, structures, and compiler characteristics.
20960 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20961 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20962 if test "${ac_cv_c_const+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971
20972 int
20973 main ()
20974 {
20975 /* FIXME: Include the comments suggested by Paul. */
20976 #ifndef __cplusplus
20977   /* Ultrix mips cc rejects this.  */
20978   typedef int charset[2];
20979   const charset cs;
20980   /* SunOS 4.1.1 cc rejects this.  */
20981   char const *const *pcpcc;
20982   char **ppc;
20983   /* NEC SVR4.0.2 mips cc rejects this.  */
20984   struct point {int x, y;};
20985   static struct point const zero = {0,0};
20986   /* AIX XL C 1.02.0.0 rejects this.
20987      It does not let you subtract one const X* pointer from another in
20988      an arm of an if-expression whose if-part is not a constant
20989      expression */
20990   const char *g = "string";
20991   pcpcc = &g + (g ? g-g : 0);
20992   /* HPUX 7.0 cc rejects these. */
20993   ++pcpcc;
20994   ppc = (char**) pcpcc;
20995   pcpcc = (char const *const *) ppc;
20996   { /* SCO 3.2v4 cc rejects this.  */
20997     char *t;
20998     char const *s = 0 ? (char *) 0 : (char const *) 0;
20999
21000     *t++ = 0;
21001     if (s) return 0;
21002   }
21003   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21004     int x[] = {25, 17};
21005     const int *foo = &x[0];
21006     ++foo;
21007   }
21008   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21009     typedef const int *iptr;
21010     iptr p = 0;
21011     ++p;
21012   }
21013   { /* AIX XL C 1.02.0.0 rejects this saying
21014        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21015     struct s { int j; const int *ap[3]; };
21016     struct s *b; b->j = 5;
21017   }
21018   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21019     const int foo = 10;
21020     if (!foo) return 0;
21021   }
21022   return !cs[0] && !zero.x;
21023 #endif
21024
21025   ;
21026   return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext
21030 if { (ac_try="$ac_compile"
21031 case "(($ac_try" in
21032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033   *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036   (eval "$ac_compile") 2>conftest.er1
21037   ac_status=$?
21038   grep -v '^ *+' conftest.er1 >conftest.err
21039   rm -f conftest.er1
21040   cat conftest.err >&5
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } && {
21043          test -z "$ac_c_werror_flag" ||
21044          test ! -s conftest.err
21045        } && test -s conftest.$ac_objext; then
21046   ac_cv_c_const=yes
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051         ac_cv_c_const=no
21052 fi
21053
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 fi
21056 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21057 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21058 if test $ac_cv_c_const = no; then
21059
21060 cat >>confdefs.h <<\_ACEOF
21061 #define const
21062 _ACEOF
21063
21064 fi
21065
21066
21067 # Checks for library functions.
21068
21069 for ac_header in stdlib.h
21070 do
21071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21076   echo $ECHO_N "(cached) $ECHO_C" >&6
21077 fi
21078 ac_res=`eval echo '${'$as_ac_Header'}'`
21079                { echo "$as_me:$LINENO: result: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21081 else
21082   # Is the header compilable?
21083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091 $ac_includes_default
21092 #include <$ac_header>
21093 _ACEOF
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_compile") 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } && {
21108          test -z "$ac_c_werror_flag" ||
21109          test ! -s conftest.err
21110        } && test -s conftest.$ac_objext; then
21111   ac_header_compiler=yes
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116         ac_header_compiler=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21121 echo "${ECHO_T}$ac_header_compiler" >&6; }
21122
21123 # Is the header present?
21124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132 #include <$ac_header>
21133 _ACEOF
21134 if { (ac_try="$ac_cpp conftest.$ac_ext"
21135 case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } >/dev/null && {
21147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21148          test ! -s conftest.err
21149        }; then
21150   ac_header_preproc=yes
21151 else
21152   echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155   ac_header_preproc=no
21156 fi
21157
21158 rm -f conftest.err conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160 echo "${ECHO_T}$ac_header_preproc" >&6; }
21161
21162 # So?  What about this header?
21163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21164   yes:no: )
21165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21169     ac_header_preproc=yes
21170     ;;
21171   no:yes:* )
21172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21184
21185     ;;
21186 esac
21187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190   echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192   eval "$as_ac_Header=\$ac_header_preproc"
21193 fi
21194 ac_res=`eval echo '${'$as_ac_Header'}'`
21195                { echo "$as_me:$LINENO: result: $ac_res" >&5
21196 echo "${ECHO_T}$ac_res" >&6; }
21197
21198 fi
21199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21200   cat >>confdefs.h <<_ACEOF
21201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21202 _ACEOF
21203
21204 fi
21205
21206 done
21207
21208 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21209 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21210 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213   if test "$cross_compiling" = yes; then
21214   ac_cv_func_malloc_0_nonnull=no
21215 else
21216   cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21223 # include <stdlib.h>
21224 #else
21225 char *malloc ();
21226 #endif
21227
21228 int
21229 main ()
21230 {
21231 return ! malloc (0);
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240   *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243   (eval "$ac_link") 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21247   { (case "(($ac_try" in
21248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249   *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252   (eval "$ac_try") 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; }; then
21256   ac_cv_func_malloc_0_nonnull=yes
21257 else
21258   echo "$as_me: program exited with status $ac_status" >&5
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ( exit $ac_status )
21263 ac_cv_func_malloc_0_nonnull=no
21264 fi
21265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21266 fi
21267
21268
21269 fi
21270 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21271 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21272 if test $ac_cv_func_malloc_0_nonnull = yes; then
21273
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_MALLOC 1
21276 _ACEOF
21277
21278 else
21279   cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_MALLOC 0
21281 _ACEOF
21282
21283    case " $LIBOBJS " in
21284   *" malloc.$ac_objext "* ) ;;
21285   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21286  ;;
21287 esac
21288
21289
21290 cat >>confdefs.h <<\_ACEOF
21291 #define malloc rpl_malloc
21292 _ACEOF
21293
21294 fi
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21307 do
21308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21312   echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21314   cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21322 #define $ac_func innocuous_$ac_func
21323
21324 /* System header to define __stub macros and hopefully few prototypes,
21325     which can conflict with char $ac_func (); below.
21326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21327     <limits.h> exists even on freestanding compilers.  */
21328
21329 #ifdef __STDC__
21330 # include <limits.h>
21331 #else
21332 # include <assert.h>
21333 #endif
21334
21335 #undef $ac_func
21336
21337 /* Override any GCC internal prototype to avoid an error.
21338    Use char because int might match the return type of a GCC
21339    builtin and then its argument prototype would still apply.  */
21340 #ifdef __cplusplus
21341 extern "C"
21342 #endif
21343 char $ac_func ();
21344 /* The GNU C library defines this for functions which it implements
21345     to always fail with ENOSYS.  Some functions are actually named
21346     something starting with __ and the normal name is an alias.  */
21347 #if defined __stub_$ac_func || defined __stub___$ac_func
21348 choke me
21349 #endif
21350
21351 int
21352 main ()
21353 {
21354 return $ac_func ();
21355   ;
21356   return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest.$ac_objext conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_link") 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } && {
21373          test -z "$ac_c_werror_flag" ||
21374          test ! -s conftest.err
21375        } && test -s conftest$ac_exeext &&
21376        $as_test_x conftest$ac_exeext; then
21377   eval "$as_ac_var=yes"
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382         eval "$as_ac_var=no"
21383 fi
21384
21385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21386       conftest$ac_exeext conftest.$ac_ext
21387 fi
21388 ac_res=`eval echo '${'$as_ac_var'}'`
21389                { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21391 if test `eval echo '${'$as_ac_var'}'` = yes; then
21392   cat >>confdefs.h <<_ACEOF
21393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21394 _ACEOF
21395
21396 fi
21397 done
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408 ac_config_files="$ac_config_files Makefile src/Makefile"
21409
21410 cat >confcache <<\_ACEOF
21411 # This file is a shell script that caches the results of configure
21412 # tests run on this system so they can be shared between configure
21413 # scripts and configure runs, see configure's option --config-cache.
21414 # It is not useful on other systems.  If it contains results you don't
21415 # want to keep, you may remove or edit it.
21416 #
21417 # config.status only pays attention to the cache file if you give it
21418 # the --recheck option to rerun configure.
21419 #
21420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21422 # following values.
21423
21424 _ACEOF
21425
21426 # The following way of writing the cache mishandles newlines in values,
21427 # but we know of no workaround that is simple, portable, and efficient.
21428 # So, we kill variables containing newlines.
21429 # Ultrix sh set writes to stderr and can't be redirected directly,
21430 # and sets the high bit in the cache file unless we assign to the vars.
21431 (
21432   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21433     eval ac_val=\$$ac_var
21434     case $ac_val in #(
21435     *${as_nl}*)
21436       case $ac_var in #(
21437       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21438 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21439       esac
21440       case $ac_var in #(
21441       _ | IFS | as_nl) ;; #(
21442       *) $as_unset $ac_var ;;
21443       esac ;;
21444     esac
21445   done
21446
21447   (set) 2>&1 |
21448     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21449     *${as_nl}ac_space=\ *)
21450       # `set' does not quote correctly, so add quotes (double-quote
21451       # substitution turns \\\\ into \\, and sed turns \\ into \).
21452       sed -n \
21453         "s/'/'\\\\''/g;
21454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21455       ;; #(
21456     *)
21457       # `set' quotes correctly as required by POSIX, so do not add quotes.
21458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21459       ;;
21460     esac |
21461     sort
21462 ) |
21463   sed '
21464      /^ac_cv_env_/b end
21465      t clear
21466      :clear
21467      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21468      t end
21469      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21470      :end' >>confcache
21471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21472   if test -w "$cache_file"; then
21473     test "x$cache_file" != "x/dev/null" &&
21474       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21475 echo "$as_me: updating cache $cache_file" >&6;}
21476     cat confcache >$cache_file
21477   else
21478     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21479 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21480   fi
21481 fi
21482 rm -f confcache
21483
21484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21485 # Let make expand exec_prefix.
21486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21487
21488 DEFS=-DHAVE_CONFIG_H
21489
21490 ac_libobjs=
21491 ac_ltlibobjs=
21492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21493   # 1. Remove the extension, and $U if already installed.
21494   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21495   ac_i=`echo "$ac_i" | sed "$ac_script"`
21496   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21497   #    will be set to the directory where LIBOBJS objects are built.
21498   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21499   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21500 done
21501 LIBOBJS=$ac_libobjs
21502
21503 LTLIBOBJS=$ac_ltlibobjs
21504
21505
21506 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21507   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21508 Usually this means the macro was only invoked conditionally." >&5
21509 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21510 Usually this means the macro was only invoked conditionally." >&2;}
21511    { (exit 1); exit 1; }; }
21512 fi
21513 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21514   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21515 Usually this means the macro was only invoked conditionally." >&5
21516 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21517 Usually this means the macro was only invoked conditionally." >&2;}
21518    { (exit 1); exit 1; }; }
21519 fi
21520 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21521   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21522 Usually this means the macro was only invoked conditionally." >&5
21523 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21524 Usually this means the macro was only invoked conditionally." >&2;}
21525    { (exit 1); exit 1; }; }
21526 fi
21527
21528 : ${CONFIG_STATUS=./config.status}
21529 ac_clean_files_save=$ac_clean_files
21530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21531 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21532 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21533 cat >$CONFIG_STATUS <<_ACEOF
21534 #! $SHELL
21535 # Generated by $as_me.
21536 # Run this file to recreate the current configuration.
21537 # Compiler output produced by configure, useful for debugging
21538 # configure, is in config.log if it exists.
21539
21540 debug=false
21541 ac_cs_recheck=false
21542 ac_cs_silent=false
21543 SHELL=\${CONFIG_SHELL-$SHELL}
21544 _ACEOF
21545
21546 cat >>$CONFIG_STATUS <<\_ACEOF
21547 ## --------------------- ##
21548 ## M4sh Initialization.  ##
21549 ## --------------------- ##
21550
21551 # Be more Bourne compatible
21552 DUALCASE=1; export DUALCASE # for MKS sh
21553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21554   emulate sh
21555   NULLCMD=:
21556   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21557   # is contrary to our usage.  Disable this feature.
21558   alias -g '${1+"$@"}'='"$@"'
21559   setopt NO_GLOB_SUBST
21560 else
21561   case `(set -o) 2>/dev/null` in
21562   *posix*) set -o posix ;;
21563 esac
21564
21565 fi
21566
21567
21568
21569
21570 # PATH needs CR
21571 # Avoid depending upon Character Ranges.
21572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21575 as_cr_digits='0123456789'
21576 as_cr_alnum=$as_cr_Letters$as_cr_digits
21577
21578 # The user is always right.
21579 if test "${PATH_SEPARATOR+set}" != set; then
21580   echo "#! /bin/sh" >conf$$.sh
21581   echo  "exit 0"   >>conf$$.sh
21582   chmod +x conf$$.sh
21583   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21584     PATH_SEPARATOR=';'
21585   else
21586     PATH_SEPARATOR=:
21587   fi
21588   rm -f conf$$.sh
21589 fi
21590
21591 # Support unset when possible.
21592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21593   as_unset=unset
21594 else
21595   as_unset=false
21596 fi
21597
21598
21599 # IFS
21600 # We need space, tab and new line, in precisely that order.  Quoting is
21601 # there to prevent editors from complaining about space-tab.
21602 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21603 # splitting by setting IFS to empty value.)
21604 as_nl='
21605 '
21606 IFS=" ""        $as_nl"
21607
21608 # Find who we are.  Look in the path if we contain no directory separator.
21609 case $0 in
21610   *[\\/]* ) as_myself=$0 ;;
21611   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21612 for as_dir in $PATH
21613 do
21614   IFS=$as_save_IFS
21615   test -z "$as_dir" && as_dir=.
21616   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21617 done
21618 IFS=$as_save_IFS
21619
21620      ;;
21621 esac
21622 # We did not find ourselves, most probably we were run as `sh COMMAND'
21623 # in which case we are not to be found in the path.
21624 if test "x$as_myself" = x; then
21625   as_myself=$0
21626 fi
21627 if test ! -f "$as_myself"; then
21628   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21629   { (exit 1); exit 1; }
21630 fi
21631
21632 # Work around bugs in pre-3.0 UWIN ksh.
21633 for as_var in ENV MAIL MAILPATH
21634 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21635 done
21636 PS1='$ '
21637 PS2='> '
21638 PS4='+ '
21639
21640 # NLS nuisances.
21641 for as_var in \
21642   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21643   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21644   LC_TELEPHONE LC_TIME
21645 do
21646   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21647     eval $as_var=C; export $as_var
21648   else
21649     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21650   fi
21651 done
21652
21653 # Required to use basename.
21654 if expr a : '\(a\)' >/dev/null 2>&1 &&
21655    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21656   as_expr=expr
21657 else
21658   as_expr=false
21659 fi
21660
21661 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21662   as_basename=basename
21663 else
21664   as_basename=false
21665 fi
21666
21667
21668 # Name of the executable.
21669 as_me=`$as_basename -- "$0" ||
21670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21671          X"$0" : 'X\(//\)$' \| \
21672          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21673 echo X/"$0" |
21674     sed '/^.*\/\([^/][^/]*\)\/*$/{
21675             s//\1/
21676             q
21677           }
21678           /^X\/\(\/\/\)$/{
21679             s//\1/
21680             q
21681           }
21682           /^X\/\(\/\).*/{
21683             s//\1/
21684             q
21685           }
21686           s/.*/./; q'`
21687
21688 # CDPATH.
21689 $as_unset CDPATH
21690
21691
21692
21693   as_lineno_1=$LINENO
21694   as_lineno_2=$LINENO
21695   test "x$as_lineno_1" != "x$as_lineno_2" &&
21696   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21697
21698   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21699   # uniformly replaced by the line number.  The first 'sed' inserts a
21700   # line-number line after each line using $LINENO; the second 'sed'
21701   # does the real work.  The second script uses 'N' to pair each
21702   # line-number line with the line containing $LINENO, and appends
21703   # trailing '-' during substitution so that $LINENO is not a special
21704   # case at line end.
21705   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21706   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21707   # E. McMahon (1931-1989) for sed's syntax.  :-)
21708   sed -n '
21709     p
21710     /[$]LINENO/=
21711   ' <$as_myself |
21712     sed '
21713       s/[$]LINENO.*/&-/
21714       t lineno
21715       b
21716       :lineno
21717       N
21718       :loop
21719       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21720       t loop
21721       s/-\n.*//
21722     ' >$as_me.lineno &&
21723   chmod +x "$as_me.lineno" ||
21724     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21725    { (exit 1); exit 1; }; }
21726
21727   # Don't try to exec as it changes $[0], causing all sort of problems
21728   # (the dirname of $[0] is not the place where we might find the
21729   # original and so on.  Autoconf is especially sensitive to this).
21730   . "./$as_me.lineno"
21731   # Exit status is that of the last command.
21732   exit
21733 }
21734
21735
21736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21737   as_dirname=dirname
21738 else
21739   as_dirname=false
21740 fi
21741
21742 ECHO_C= ECHO_N= ECHO_T=
21743 case `echo -n x` in
21744 -n*)
21745   case `echo 'x\c'` in
21746   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21747   *)   ECHO_C='\c';;
21748   esac;;
21749 *)
21750   ECHO_N='-n';;
21751 esac
21752
21753 if expr a : '\(a\)' >/dev/null 2>&1 &&
21754    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21755   as_expr=expr
21756 else
21757   as_expr=false
21758 fi
21759
21760 rm -f conf$$ conf$$.exe conf$$.file
21761 if test -d conf$$.dir; then
21762   rm -f conf$$.dir/conf$$.file
21763 else
21764   rm -f conf$$.dir
21765   mkdir conf$$.dir
21766 fi
21767 echo >conf$$.file
21768 if ln -s conf$$.file conf$$ 2>/dev/null; then
21769   as_ln_s='ln -s'
21770   # ... but there are two gotchas:
21771   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21772   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21773   # In both cases, we have to default to `cp -p'.
21774   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21775     as_ln_s='cp -p'
21776 elif ln conf$$.file conf$$ 2>/dev/null; then
21777   as_ln_s=ln
21778 else
21779   as_ln_s='cp -p'
21780 fi
21781 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21782 rmdir conf$$.dir 2>/dev/null
21783
21784 if mkdir -p . 2>/dev/null; then
21785   as_mkdir_p=:
21786 else
21787   test -d ./-p && rmdir ./-p
21788   as_mkdir_p=false
21789 fi
21790
21791 if test -x / >/dev/null 2>&1; then
21792   as_test_x='test -x'
21793 else
21794   if ls -dL / >/dev/null 2>&1; then
21795     as_ls_L_option=L
21796   else
21797     as_ls_L_option=
21798   fi
21799   as_test_x='
21800     eval sh -c '\''
21801       if test -d "$1"; then
21802         test -d "$1/.";
21803       else
21804         case $1 in
21805         -*)set "./$1";;
21806         esac;
21807         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21808         ???[sx]*):;;*)false;;esac;fi
21809     '\'' sh
21810   '
21811 fi
21812 as_executable_p=$as_test_x
21813
21814 # Sed expression to map a string onto a valid CPP name.
21815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21816
21817 # Sed expression to map a string onto a valid variable name.
21818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21819
21820
21821 exec 6>&1
21822
21823 # Save the log message, to keep $[0] and so on meaningful, and to
21824 # report actual input values of CONFIG_FILES etc. instead of their
21825 # values after options handling.
21826 ac_log="
21827 This file was extended by mod_chxj $as_me 0.10.2-1, which was
21828 generated by GNU Autoconf 2.61.  Invocation command line was
21829
21830   CONFIG_FILES    = $CONFIG_FILES
21831   CONFIG_HEADERS  = $CONFIG_HEADERS
21832   CONFIG_LINKS    = $CONFIG_LINKS
21833   CONFIG_COMMANDS = $CONFIG_COMMANDS
21834   $ $0 $@
21835
21836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21837 "
21838
21839 _ACEOF
21840
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 # Files that config.status was made for.
21843 config_files="$ac_config_files"
21844 config_headers="$ac_config_headers"
21845 config_commands="$ac_config_commands"
21846
21847 _ACEOF
21848
21849 cat >>$CONFIG_STATUS <<\_ACEOF
21850 ac_cs_usage="\
21851 \`$as_me' instantiates files from templates according to the
21852 current configuration.
21853
21854 Usage: $0 [OPTIONS] [FILE]...
21855
21856   -h, --help       print this help, then exit
21857   -V, --version    print version number and configuration settings, then exit
21858   -q, --quiet      do not print progress messages
21859   -d, --debug      don't remove temporary files
21860       --recheck    update $as_me by reconfiguring in the same conditions
21861   --file=FILE[:TEMPLATE]
21862                    instantiate the configuration file FILE
21863   --header=FILE[:TEMPLATE]
21864                    instantiate the configuration header FILE
21865
21866 Configuration files:
21867 $config_files
21868
21869 Configuration headers:
21870 $config_headers
21871
21872 Configuration commands:
21873 $config_commands
21874
21875 Report bugs to <bug-autoconf@gnu.org>."
21876
21877 _ACEOF
21878 cat >>$CONFIG_STATUS <<_ACEOF
21879 ac_cs_version="\\
21880 mod_chxj config.status 0.10.2-1
21881 configured by $0, generated by GNU Autoconf 2.61,
21882   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21883
21884 Copyright (C) 2006 Free Software Foundation, Inc.
21885 This config.status script is free software; the Free Software Foundation
21886 gives unlimited permission to copy, distribute and modify it."
21887
21888 ac_pwd='$ac_pwd'
21889 srcdir='$srcdir'
21890 INSTALL='$INSTALL'
21891 MKDIR_P='$MKDIR_P'
21892 _ACEOF
21893
21894 cat >>$CONFIG_STATUS <<\_ACEOF
21895 # If no file are specified by the user, then we need to provide default
21896 # value.  By we need to know if files were specified by the user.
21897 ac_need_defaults=:
21898 while test $# != 0
21899 do
21900   case $1 in
21901   --*=*)
21902     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21903     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21904     ac_shift=:
21905     ;;
21906   *)
21907     ac_option=$1
21908     ac_optarg=$2
21909     ac_shift=shift
21910     ;;
21911   esac
21912
21913   case $ac_option in
21914   # Handling of the options.
21915   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21916     ac_cs_recheck=: ;;
21917   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21918     echo "$ac_cs_version"; exit ;;
21919   --debug | --debu | --deb | --de | --d | -d )
21920     debug=: ;;
21921   --file | --fil | --fi | --f )
21922     $ac_shift
21923     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21924     ac_need_defaults=false;;
21925   --header | --heade | --head | --hea )
21926     $ac_shift
21927     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21928     ac_need_defaults=false;;
21929   --he | --h)
21930     # Conflict between --help and --header
21931     { echo "$as_me: error: ambiguous option: $1
21932 Try \`$0 --help' for more information." >&2
21933    { (exit 1); exit 1; }; };;
21934   --help | --hel | -h )
21935     echo "$ac_cs_usage"; exit ;;
21936   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21937   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21938     ac_cs_silent=: ;;
21939
21940   # This is an error.
21941   -*) { echo "$as_me: error: unrecognized option: $1
21942 Try \`$0 --help' for more information." >&2
21943    { (exit 1); exit 1; }; } ;;
21944
21945   *) ac_config_targets="$ac_config_targets $1"
21946      ac_need_defaults=false ;;
21947
21948   esac
21949   shift
21950 done
21951
21952 ac_configure_extra_args=
21953
21954 if $ac_cs_silent; then
21955   exec 6>/dev/null
21956   ac_configure_extra_args="$ac_configure_extra_args --silent"
21957 fi
21958
21959 _ACEOF
21960 cat >>$CONFIG_STATUS <<_ACEOF
21961 if \$ac_cs_recheck; then
21962   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21963   CONFIG_SHELL=$SHELL
21964   export CONFIG_SHELL
21965   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21966 fi
21967
21968 _ACEOF
21969 cat >>$CONFIG_STATUS <<\_ACEOF
21970 exec 5>>config.log
21971 {
21972   echo
21973   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21974 ## Running $as_me. ##
21975 _ASBOX
21976   echo "$ac_log"
21977 } >&5
21978
21979 _ACEOF
21980 cat >>$CONFIG_STATUS <<_ACEOF
21981 #
21982 # INIT-COMMANDS
21983 #
21984 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21985
21986 _ACEOF
21987
21988 cat >>$CONFIG_STATUS <<\_ACEOF
21989
21990 # Handling of arguments.
21991 for ac_config_target in $ac_config_targets
21992 do
21993   case $ac_config_target in
21994     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21995     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21996     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21997     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21998
21999   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22000 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22001    { (exit 1); exit 1; }; };;
22002   esac
22003 done
22004
22005
22006 # If the user did not use the arguments to specify the items to instantiate,
22007 # then the envvar interface is used.  Set only those that are not.
22008 # We use the long form for the default assignment because of an extremely
22009 # bizarre bug on SunOS 4.1.3.
22010 if $ac_need_defaults; then
22011   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22012   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22013   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22014 fi
22015
22016 # Have a temporary directory for convenience.  Make it in the build tree
22017 # simply because there is no reason against having it here, and in addition,
22018 # creating and moving files from /tmp can sometimes cause problems.
22019 # Hook for its removal unless debugging.
22020 # Note that there is a small window in which the directory will not be cleaned:
22021 # after its creation but before its name has been assigned to `$tmp'.
22022 $debug ||
22023 {
22024   tmp=
22025   trap 'exit_status=$?
22026   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22027 ' 0
22028   trap '{ (exit 1); exit 1; }' 1 2 13 15
22029 }
22030 # Create a (secure) tmp directory for tmp files.
22031
22032 {
22033   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22034   test -n "$tmp" && test -d "$tmp"
22035 }  ||
22036 {
22037   tmp=./conf$$-$RANDOM
22038   (umask 077 && mkdir "$tmp")
22039 } ||
22040 {
22041    echo "$me: cannot create a temporary directory in ." >&2
22042    { (exit 1); exit 1; }
22043 }
22044
22045 #
22046 # Set up the sed scripts for CONFIG_FILES section.
22047 #
22048
22049 # No need to generate the scripts if there are no CONFIG_FILES.
22050 # This happens for instance when ./config.status config.h
22051 if test -n "$CONFIG_FILES"; then
22052
22053 _ACEOF
22054
22055
22056
22057 ac_delim='%!_!# '
22058 for ac_last_try in false false false false false :; do
22059   cat >conf$$subs.sed <<_ACEOF
22060 SHELL!$SHELL$ac_delim
22061 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22062 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22063 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22064 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22065 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22066 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22067 exec_prefix!$exec_prefix$ac_delim
22068 prefix!$prefix$ac_delim
22069 program_transform_name!$program_transform_name$ac_delim
22070 bindir!$bindir$ac_delim
22071 sbindir!$sbindir$ac_delim
22072 libexecdir!$libexecdir$ac_delim
22073 datarootdir!$datarootdir$ac_delim
22074 datadir!$datadir$ac_delim
22075 sysconfdir!$sysconfdir$ac_delim
22076 sharedstatedir!$sharedstatedir$ac_delim
22077 localstatedir!$localstatedir$ac_delim
22078 includedir!$includedir$ac_delim
22079 oldincludedir!$oldincludedir$ac_delim
22080 docdir!$docdir$ac_delim
22081 infodir!$infodir$ac_delim
22082 htmldir!$htmldir$ac_delim
22083 dvidir!$dvidir$ac_delim
22084 pdfdir!$pdfdir$ac_delim
22085 psdir!$psdir$ac_delim
22086 libdir!$libdir$ac_delim
22087 localedir!$localedir$ac_delim
22088 mandir!$mandir$ac_delim
22089 DEFS!$DEFS$ac_delim
22090 ECHO_C!$ECHO_C$ac_delim
22091 ECHO_N!$ECHO_N$ac_delim
22092 ECHO_T!$ECHO_T$ac_delim
22093 LIBS!$LIBS$ac_delim
22094 build_alias!$build_alias$ac_delim
22095 host_alias!$host_alias$ac_delim
22096 target_alias!$target_alias$ac_delim
22097 build!$build$ac_delim
22098 build_cpu!$build_cpu$ac_delim
22099 build_vendor!$build_vendor$ac_delim
22100 build_os!$build_os$ac_delim
22101 host!$host$ac_delim
22102 host_cpu!$host_cpu$ac_delim
22103 host_vendor!$host_vendor$ac_delim
22104 host_os!$host_os$ac_delim
22105 target!$target$ac_delim
22106 target_cpu!$target_cpu$ac_delim
22107 target_vendor!$target_vendor$ac_delim
22108 target_os!$target_os$ac_delim
22109 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22110 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22111 INSTALL_DATA!$INSTALL_DATA$ac_delim
22112 am__isrc!$am__isrc$ac_delim
22113 CYGPATH_W!$CYGPATH_W$ac_delim
22114 PACKAGE!$PACKAGE$ac_delim
22115 VERSION!$VERSION$ac_delim
22116 ACLOCAL!$ACLOCAL$ac_delim
22117 AUTOCONF!$AUTOCONF$ac_delim
22118 AUTOMAKE!$AUTOMAKE$ac_delim
22119 AUTOHEADER!$AUTOHEADER$ac_delim
22120 MAKEINFO!$MAKEINFO$ac_delim
22121 install_sh!$install_sh$ac_delim
22122 STRIP!$STRIP$ac_delim
22123 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22124 mkdir_p!$mkdir_p$ac_delim
22125 AWK!$AWK$ac_delim
22126 SET_MAKE!$SET_MAKE$ac_delim
22127 am__leading_dot!$am__leading_dot$ac_delim
22128 AMTAR!$AMTAR$ac_delim
22129 am__tar!$am__tar$ac_delim
22130 am__untar!$am__untar$ac_delim
22131 CC!$CC$ac_delim
22132 CFLAGS!$CFLAGS$ac_delim
22133 LDFLAGS!$LDFLAGS$ac_delim
22134 CPPFLAGS!$CPPFLAGS$ac_delim
22135 ac_ct_CC!$ac_ct_CC$ac_delim
22136 EXEEXT!$EXEEXT$ac_delim
22137 OBJEXT!$OBJEXT$ac_delim
22138 DEPDIR!$DEPDIR$ac_delim
22139 am__include!$am__include$ac_delim
22140 am__quote!$am__quote$ac_delim
22141 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22142 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22143 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22144 CCDEPMODE!$CCDEPMODE$ac_delim
22145 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22146 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22147 GREP!$GREP$ac_delim
22148 EGREP!$EGREP$ac_delim
22149 LN_S!$LN_S$ac_delim
22150 ECHO!$ECHO$ac_delim
22151 AR!$AR$ac_delim
22152 RANLIB!$RANLIB$ac_delim
22153 CPP!$CPP$ac_delim
22154 CXX!$CXX$ac_delim
22155 CXXFLAGS!$CXXFLAGS$ac_delim
22156 ac_ct_CXX!$ac_ct_CXX$ac_delim
22157 _ACEOF
22158
22159   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22160     break
22161   elif $ac_last_try; then
22162     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22164    { (exit 1); exit 1; }; }
22165   else
22166     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22167   fi
22168 done
22169
22170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22171 if test -n "$ac_eof"; then
22172   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22173   ac_eof=`expr $ac_eof + 1`
22174 fi
22175
22176 cat >>$CONFIG_STATUS <<_ACEOF
22177 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22179 _ACEOF
22180 sed '
22181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22182 s/^/s,@/; s/!/@,|#_!!_#|/
22183 :n
22184 t n
22185 s/'"$ac_delim"'$/,g/; t
22186 s/$/\\/; p
22187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22188 ' >>$CONFIG_STATUS <conf$$subs.sed
22189 rm -f conf$$subs.sed
22190 cat >>$CONFIG_STATUS <<_ACEOF
22191 CEOF$ac_eof
22192 _ACEOF
22193
22194
22195 ac_delim='%!_!# '
22196 for ac_last_try in false false false false false :; do
22197   cat >conf$$subs.sed <<_ACEOF
22198 CXXDEPMODE!$CXXDEPMODE$ac_delim
22199 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22200 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22201 CXXCPP!$CXXCPP$ac_delim
22202 F77!$F77$ac_delim
22203 FFLAGS!$FFLAGS$ac_delim
22204 ac_ct_F77!$ac_ct_F77$ac_delim
22205 LIBTOOL!$LIBTOOL$ac_delim
22206 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22207 APXS2!$APXS2$ac_delim
22208 APXS!$APXS$ac_delim
22209 WAND_CONFIG!$WAND_CONFIG$ac_delim
22210 APR_CONFIG!$APR_CONFIG$ac_delim
22211 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22212 APU_CONFIG!$APU_CONFIG$ac_delim
22213 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22214 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22215 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22216 LIBOBJS!$LIBOBJS$ac_delim
22217 with_apache_header!$with_apache_header$ac_delim
22218 QDEFS!$QDEFS$ac_delim
22219 DDEFS!$DDEFS$ac_delim
22220 LTLIBOBJS!$LTLIBOBJS$ac_delim
22221 _ACEOF
22222
22223   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
22224     break
22225   elif $ac_last_try; then
22226     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22228    { (exit 1); exit 1; }; }
22229   else
22230     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22231   fi
22232 done
22233
22234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22235 if test -n "$ac_eof"; then
22236   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22237   ac_eof=`expr $ac_eof + 1`
22238 fi
22239
22240 cat >>$CONFIG_STATUS <<_ACEOF
22241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22243 _ACEOF
22244 sed '
22245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22246 s/^/s,@/; s/!/@,|#_!!_#|/
22247 :n
22248 t n
22249 s/'"$ac_delim"'$/,g/; t
22250 s/$/\\/; p
22251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22252 ' >>$CONFIG_STATUS <conf$$subs.sed
22253 rm -f conf$$subs.sed
22254 cat >>$CONFIG_STATUS <<_ACEOF
22255 :end
22256 s/|#_!!_#|//g
22257 CEOF$ac_eof
22258 _ACEOF
22259
22260
22261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22263 # trailing colons and then remove the whole line if VPATH becomes empty
22264 # (actually we leave an empty line to preserve line numbers).
22265 if test "x$srcdir" = x.; then
22266   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22267 s/:*\$(srcdir):*/:/
22268 s/:*\${srcdir}:*/:/
22269 s/:*@srcdir@:*/:/
22270 s/^\([^=]*=[     ]*\):*/\1/
22271 s/:*$//
22272 s/^[^=]*=[       ]*$//
22273 }'
22274 fi
22275
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 fi # test -n "$CONFIG_FILES"
22278
22279
22280 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22281 do
22282   case $ac_tag in
22283   :[FHLC]) ac_mode=$ac_tag; continue;;
22284   esac
22285   case $ac_mode$ac_tag in
22286   :[FHL]*:*);;
22287   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22289    { (exit 1); exit 1; }; };;
22290   :[FH]-) ac_tag=-:-;;
22291   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22292   esac
22293   ac_save_IFS=$IFS
22294   IFS=:
22295   set x $ac_tag
22296   IFS=$ac_save_IFS
22297   shift
22298   ac_file=$1
22299   shift
22300
22301   case $ac_mode in
22302   :L) ac_source=$1;;
22303   :[FH])
22304     ac_file_inputs=
22305     for ac_f
22306     do
22307       case $ac_f in
22308       -) ac_f="$tmp/stdin";;
22309       *) # Look for the file first in the build tree, then in the source tree
22310          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22311          # because $ac_f cannot contain `:'.
22312          test -f "$ac_f" ||
22313            case $ac_f in
22314            [\\/$]*) false;;
22315            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22316            esac ||
22317            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22319    { (exit 1); exit 1; }; };;
22320       esac
22321       ac_file_inputs="$ac_file_inputs $ac_f"
22322     done
22323
22324     # Let's still pretend it is `configure' which instantiates (i.e., don't
22325     # use $as_me), people would be surprised to read:
22326     #    /* config.h.  Generated by config.status.  */
22327     configure_input="Generated from "`IFS=:
22328           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22329     if test x"$ac_file" != x-; then
22330       configure_input="$ac_file.  $configure_input"
22331       { echo "$as_me:$LINENO: creating $ac_file" >&5
22332 echo "$as_me: creating $ac_file" >&6;}
22333     fi
22334
22335     case $ac_tag in
22336     *:-:* | *:-) cat >"$tmp/stdin";;
22337     esac
22338     ;;
22339   esac
22340
22341   ac_dir=`$as_dirname -- "$ac_file" ||
22342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343          X"$ac_file" : 'X\(//\)[^/]' \| \
22344          X"$ac_file" : 'X\(//\)$' \| \
22345          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22346 echo X"$ac_file" |
22347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22348             s//\1/
22349             q
22350           }
22351           /^X\(\/\/\)[^/].*/{
22352             s//\1/
22353             q
22354           }
22355           /^X\(\/\/\)$/{
22356             s//\1/
22357             q
22358           }
22359           /^X\(\/\).*/{
22360             s//\1/
22361             q
22362           }
22363           s/.*/./; q'`
22364   { as_dir="$ac_dir"
22365   case $as_dir in #(
22366   -*) as_dir=./$as_dir;;
22367   esac
22368   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22369     as_dirs=
22370     while :; do
22371       case $as_dir in #(
22372       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22373       *) as_qdir=$as_dir;;
22374       esac
22375       as_dirs="'$as_qdir' $as_dirs"
22376       as_dir=`$as_dirname -- "$as_dir" ||
22377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378          X"$as_dir" : 'X\(//\)[^/]' \| \
22379          X"$as_dir" : 'X\(//\)$' \| \
22380          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22381 echo X"$as_dir" |
22382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383             s//\1/
22384             q
22385           }
22386           /^X\(\/\/\)[^/].*/{
22387             s//\1/
22388             q
22389           }
22390           /^X\(\/\/\)$/{
22391             s//\1/
22392             q
22393           }
22394           /^X\(\/\).*/{
22395             s//\1/
22396             q
22397           }
22398           s/.*/./; q'`
22399       test -d "$as_dir" && break
22400     done
22401     test -z "$as_dirs" || eval "mkdir $as_dirs"
22402   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22404    { (exit 1); exit 1; }; }; }
22405   ac_builddir=.
22406
22407 case "$ac_dir" in
22408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409 *)
22410   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22411   # A ".." for each directory in $ac_dir_suffix.
22412   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22413   case $ac_top_builddir_sub in
22414   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22416   esac ;;
22417 esac
22418 ac_abs_top_builddir=$ac_pwd
22419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22420 # for backward compatibility:
22421 ac_top_builddir=$ac_top_build_prefix
22422
22423 case $srcdir in
22424   .)  # We are building in place.
22425     ac_srcdir=.
22426     ac_top_srcdir=$ac_top_builddir_sub
22427     ac_abs_top_srcdir=$ac_pwd ;;
22428   [\\/]* | ?:[\\/]* )  # Absolute name.
22429     ac_srcdir=$srcdir$ac_dir_suffix;
22430     ac_top_srcdir=$srcdir
22431     ac_abs_top_srcdir=$srcdir ;;
22432   *) # Relative name.
22433     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22434     ac_top_srcdir=$ac_top_build_prefix$srcdir
22435     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22436 esac
22437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22438
22439
22440   case $ac_mode in
22441   :F)
22442   #
22443   # CONFIG_FILE
22444   #
22445
22446   case $INSTALL in
22447   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22448   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22449   esac
22450   ac_MKDIR_P=$MKDIR_P
22451   case $MKDIR_P in
22452   [\\/$]* | ?:[\\/]* ) ;;
22453   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22454   esac
22455 _ACEOF
22456
22457 cat >>$CONFIG_STATUS <<\_ACEOF
22458 # If the template does not know about datarootdir, expand it.
22459 # FIXME: This hack should be removed a few years after 2.60.
22460 ac_datarootdir_hack=; ac_datarootdir_seen=
22461
22462 case `sed -n '/datarootdir/ {
22463   p
22464   q
22465 }
22466 /@datadir@/p
22467 /@docdir@/p
22468 /@infodir@/p
22469 /@localedir@/p
22470 /@mandir@/p
22471 ' $ac_file_inputs` in
22472 *datarootdir*) ac_datarootdir_seen=yes;;
22473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22474   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22475 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22476 _ACEOF
22477 cat >>$CONFIG_STATUS <<_ACEOF
22478   ac_datarootdir_hack='
22479   s&@datadir@&$datadir&g
22480   s&@docdir@&$docdir&g
22481   s&@infodir@&$infodir&g
22482   s&@localedir@&$localedir&g
22483   s&@mandir@&$mandir&g
22484     s&\\\${datarootdir}&$datarootdir&g' ;;
22485 esac
22486 _ACEOF
22487
22488 # Neutralize VPATH when `$srcdir' = `.'.
22489 # Shell code in configure.ac might set extrasub.
22490 # FIXME: do we really want to maintain this feature?
22491 cat >>$CONFIG_STATUS <<_ACEOF
22492   sed "$ac_vpsub
22493 $extrasub
22494 _ACEOF
22495 cat >>$CONFIG_STATUS <<\_ACEOF
22496 :t
22497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22498 s&@configure_input@&$configure_input&;t t
22499 s&@top_builddir@&$ac_top_builddir_sub&;t t
22500 s&@srcdir@&$ac_srcdir&;t t
22501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22502 s&@top_srcdir@&$ac_top_srcdir&;t t
22503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22504 s&@builddir@&$ac_builddir&;t t
22505 s&@abs_builddir@&$ac_abs_builddir&;t t
22506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22507 s&@INSTALL@&$ac_INSTALL&;t t
22508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22509 $ac_datarootdir_hack
22510 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22511
22512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22513   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22514   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22515   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22516 which seems to be undefined.  Please make sure it is defined." >&5
22517 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22518 which seems to be undefined.  Please make sure it is defined." >&2;}
22519
22520   rm -f "$tmp/stdin"
22521   case $ac_file in
22522   -) cat "$tmp/out"; rm -f "$tmp/out";;
22523   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22524   esac
22525  ;;
22526   :H)
22527   #
22528   # CONFIG_HEADER
22529   #
22530 _ACEOF
22531
22532 # Transform confdefs.h into a sed script `conftest.defines', that
22533 # substitutes the proper values into config.h.in to produce config.h.
22534 rm -f conftest.defines conftest.tail
22535 # First, append a space to every undef/define line, to ease matching.
22536 echo 's/$/ /' >conftest.defines
22537 # Then, protect against being on the right side of a sed subst, or in
22538 # an unquoted here document, in config.status.  If some macros were
22539 # called several times there might be several #defines for the same
22540 # symbol, which is useless.  But do not sort them, since the last
22541 # AC_DEFINE must be honored.
22542 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22543 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22544 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22545 # PARAMS is the parameter list in the macro definition--in most cases, it's
22546 # just an empty string.
22547 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22548 ac_dB='\\)[      (].*,\\1define\\2'
22549 ac_dC=' '
22550 ac_dD=' ,'
22551
22552 uniq confdefs.h |
22553   sed -n '
22554         t rset
22555         :rset
22556         s/^[     ]*#[    ]*define[       ][      ]*//
22557         t ok
22558         d
22559         :ok
22560         s/[\\&,]/\\&/g
22561         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22562         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22563   ' >>conftest.defines
22564
22565 # Remove the space that was appended to ease matching.
22566 # Then replace #undef with comments.  This is necessary, for
22567 # example, in the case of _POSIX_SOURCE, which is predefined and required
22568 # on some systems where configure will not decide to define it.
22569 # (The regexp can be short, since the line contains either #define or #undef.)
22570 echo 's/ $//
22571 s,^[     #]*u.*,/* & */,' >>conftest.defines
22572
22573 # Break up conftest.defines:
22574 ac_max_sed_lines=50
22575
22576 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22577 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22578 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22579 # et cetera.
22580 ac_in='$ac_file_inputs'
22581 ac_out='"$tmp/out1"'
22582 ac_nxt='"$tmp/out2"'
22583
22584 while :
22585 do
22586   # Write a here document:
22587     cat >>$CONFIG_STATUS <<_ACEOF
22588     # First, check the format of the line:
22589     cat >"\$tmp/defines.sed" <<\\CEOF
22590 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22591 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22592 b
22593 :def
22594 _ACEOF
22595   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22596   echo 'CEOF
22597     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22598   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22599   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22600   grep . conftest.tail >/dev/null || break
22601   rm -f conftest.defines
22602   mv conftest.tail conftest.defines
22603 done
22604 rm -f conftest.defines conftest.tail
22605
22606 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22608   if test x"$ac_file" != x-; then
22609     echo "/* $configure_input  */" >"$tmp/config.h"
22610     cat "$ac_result" >>"$tmp/config.h"
22611     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22612       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22613 echo "$as_me: $ac_file is unchanged" >&6;}
22614     else
22615       rm -f $ac_file
22616       mv "$tmp/config.h" $ac_file
22617     fi
22618   else
22619     echo "/* $configure_input  */"
22620     cat "$ac_result"
22621   fi
22622   rm -f "$tmp/out12"
22623 # Compute $ac_file's index in $config_headers.
22624 _am_stamp_count=1
22625 for _am_header in $config_headers :; do
22626   case $_am_header in
22627     $ac_file | $ac_file:* )
22628       break ;;
22629     * )
22630       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22631   esac
22632 done
22633 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22634 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22635          X$ac_file : 'X\(//\)[^/]' \| \
22636          X$ac_file : 'X\(//\)$' \| \
22637          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22638 echo X$ac_file |
22639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22640             s//\1/
22641             q
22642           }
22643           /^X\(\/\/\)[^/].*/{
22644             s//\1/
22645             q
22646           }
22647           /^X\(\/\/\)$/{
22648             s//\1/
22649             q
22650           }
22651           /^X\(\/\).*/{
22652             s//\1/
22653             q
22654           }
22655           s/.*/./; q'`/stamp-h$_am_stamp_count
22656  ;;
22657
22658   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22659 echo "$as_me: executing $ac_file commands" >&6;}
22660  ;;
22661   esac
22662
22663
22664   case $ac_file$ac_mode in
22665     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22666   # Strip MF so we end up with the name of the file.
22667   mf=`echo "$mf" | sed -e 's/:.*$//'`
22668   # Check whether this is an Automake generated Makefile or not.
22669   # We used to match only the files named `Makefile.in', but
22670   # some people rename them; so instead we look at the file content.
22671   # Grep'ing the first line is not enough: some people post-process
22672   # each Makefile.in and add a new line on top of each file to say so.
22673   # Grep'ing the whole file is not good either: AIX grep has a line
22674   # limit of 2048, but all sed's we know have understand at least 4000.
22675   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22676     dirpart=`$as_dirname -- "$mf" ||
22677 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22678          X"$mf" : 'X\(//\)[^/]' \| \
22679          X"$mf" : 'X\(//\)$' \| \
22680          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22681 echo X"$mf" |
22682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22683             s//\1/
22684             q
22685           }
22686           /^X\(\/\/\)[^/].*/{
22687             s//\1/
22688             q
22689           }
22690           /^X\(\/\/\)$/{
22691             s//\1/
22692             q
22693           }
22694           /^X\(\/\).*/{
22695             s//\1/
22696             q
22697           }
22698           s/.*/./; q'`
22699   else
22700     continue
22701   fi
22702   # Extract the definition of DEPDIR, am__include, and am__quote
22703   # from the Makefile without running `make'.
22704   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22705   test -z "$DEPDIR" && continue
22706   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22707   test -z "am__include" && continue
22708   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22709   # When using ansi2knr, U may be empty or an underscore; expand it
22710   U=`sed -n 's/^U = //p' < "$mf"`
22711   # Find all dependency output files, they are included files with
22712   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22713   # simplest approach to changing $(DEPDIR) to its actual value in the
22714   # expansion.
22715   for file in `sed -n "
22716     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22717        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22718     # Make sure the directory exists.
22719     test -f "$dirpart/$file" && continue
22720     fdir=`$as_dirname -- "$file" ||
22721 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22722          X"$file" : 'X\(//\)[^/]' \| \
22723          X"$file" : 'X\(//\)$' \| \
22724          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22725 echo X"$file" |
22726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22727             s//\1/
22728             q
22729           }
22730           /^X\(\/\/\)[^/].*/{
22731             s//\1/
22732             q
22733           }
22734           /^X\(\/\/\)$/{
22735             s//\1/
22736             q
22737           }
22738           /^X\(\/\).*/{
22739             s//\1/
22740             q
22741           }
22742           s/.*/./; q'`
22743     { as_dir=$dirpart/$fdir
22744   case $as_dir in #(
22745   -*) as_dir=./$as_dir;;
22746   esac
22747   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22748     as_dirs=
22749     while :; do
22750       case $as_dir in #(
22751       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22752       *) as_qdir=$as_dir;;
22753       esac
22754       as_dirs="'$as_qdir' $as_dirs"
22755       as_dir=`$as_dirname -- "$as_dir" ||
22756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22757          X"$as_dir" : 'X\(//\)[^/]' \| \
22758          X"$as_dir" : 'X\(//\)$' \| \
22759          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22760 echo X"$as_dir" |
22761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22762             s//\1/
22763             q
22764           }
22765           /^X\(\/\/\)[^/].*/{
22766             s//\1/
22767             q
22768           }
22769           /^X\(\/\/\)$/{
22770             s//\1/
22771             q
22772           }
22773           /^X\(\/\).*/{
22774             s//\1/
22775             q
22776           }
22777           s/.*/./; q'`
22778       test -d "$as_dir" && break
22779     done
22780     test -z "$as_dirs" || eval "mkdir $as_dirs"
22781   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22782 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22783    { (exit 1); exit 1; }; }; }
22784     # echo "creating $dirpart/$file"
22785     echo '# dummy' > "$dirpart/$file"
22786   done
22787 done
22788  ;;
22789
22790   esac
22791 done # for ac_tag
22792
22793
22794 { (exit 0); exit 0; }
22795 _ACEOF
22796 chmod +x $CONFIG_STATUS
22797 ac_clean_files=$ac_clean_files_save
22798
22799
22800 # configure is writing to config.log, and then calls config.status.
22801 # config.status does its own redirection, appending to config.log.
22802 # Unfortunately, on DOS this fails, as config.log is still kept open
22803 # by configure, so config.status won't be able to write to it; its
22804 # output is simply discarded.  So we exec the FD to /dev/null,
22805 # effectively closing config.log, so it can be properly (re)opened and
22806 # appended to by config.status.  When coming back to configure, we
22807 # need to make the FD available again.
22808 if test "$no_create" != yes; then
22809   ac_cs_success=:
22810   ac_config_status_args=
22811   test "$silent" = yes &&
22812     ac_config_status_args="$ac_config_status_args --quiet"
22813   exec 5>/dev/null
22814   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22815   exec 5>>config.log
22816   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22817   # would make configure fail if this is the last instruction.
22818   $ac_cs_success || { (exit 1); exit 1; }
22819 fi
22820