OSDN Git Service

* Bug Fix.
[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.12.15.
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.12.15'
730 PACKAGE_STRING='mod_chxj 0.12.15'
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.12.15 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.12.15:";;
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-memcached-static use static link.
1497   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1498   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1499
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1504   --with-pic              try to use only PIC/non-PIC objects [default=use
1505                           both]
1506   --with-tags[=TAGS]      include additional configurations [automatic]
1507   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1508   --with-apxs=ARG Path of apxs program file.
1509   --with-apr-config=ARG  Path of apr-config program file.
1510   --with-apu-config=ARG  Path of apu-config program file.
1511   --with-pcre-config=ARG  Path of pcre-config program file.
1512   --with-memcached-header Path of "memcached.h"
1513   --with-memcached-lib-dir Path of "libmemcached.so"
1514   --with-mysql-header=ARG  Path of "mysql.h"
1515   --with-mysql-lib-dir=ARG Path of libmysqlclient
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   LIBS        libraries to pass to the linker, e.g. -l<library>
1523   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524               you have headers in a nonstandard directory <include dir>
1525   CPP         C preprocessor
1526   CXX         C++ compiler command
1527   CXXFLAGS    C++ compiler flags
1528   CXXCPP      C++ preprocessor
1529   F77         Fortran 77 compiler command
1530   FFLAGS      Fortran 77 compiler flags
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540   # If there are subdirs, report their specific --help.
1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542     test -d "$ac_dir" || continue
1543     ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549   # A ".." for each directory in $ac_dir_suffix.
1550   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551   case $ac_top_builddir_sub in
1552   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554   esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562   .)  # We are building in place.
1563     ac_srcdir=.
1564     ac_top_srcdir=$ac_top_builddir_sub
1565     ac_abs_top_srcdir=$ac_pwd ;;
1566   [\\/]* | ?:[\\/]* )  # Absolute name.
1567     ac_srcdir=$srcdir$ac_dir_suffix;
1568     ac_top_srcdir=$srcdir
1569     ac_abs_top_srcdir=$srcdir ;;
1570   *) # Relative name.
1571     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572     ac_top_srcdir=$ac_top_build_prefix$srcdir
1573     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577     cd "$ac_dir" || { ac_status=$?; continue; }
1578     # Check for guested configure.
1579     if test -f "$ac_srcdir/configure.gnu"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582     elif test -f "$ac_srcdir/configure"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure" --help=recursive
1585     else
1586       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587     fi || ac_status=$?
1588     cd "$ac_pwd" || { ac_status=$?; break; }
1589   done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594   cat <<\_ACEOF
1595 mod_chxj configure 0.12.15
1596 generated by GNU Autoconf 2.61
1597
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1608
1609 It was created by mod_chxj $as_me 0.12.15, which was
1610 generated by GNU Autoconf 2.61.  Invocation command line was
1611
1612   $ $0 $@
1613
1614 _ACEOF
1615 exec 5>>config.log
1616 {
1617 cat <<_ASUNAME
1618 ## --------- ##
1619 ## Platform. ##
1620 ## --------- ##
1621
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1630
1631 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1632 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1635 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1636 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1637 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1638
1639 _ASUNAME
1640
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   echo "PATH: $as_dir"
1647 done
1648 IFS=$as_save_IFS
1649
1650 } >&5
1651
1652 cat >&5 <<_ACEOF
1653
1654
1655 ## ----------- ##
1656 ## Core tests. ##
1657 ## ----------- ##
1658
1659 _ACEOF
1660
1661
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_configure_args=
1668 ac_configure_args0=
1669 ac_configure_args1=
1670 ac_must_keep_next=false
1671 for ac_pass in 1 2
1672 do
1673   for ac_arg
1674   do
1675     case $ac_arg in
1676     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678     | -silent | --silent | --silen | --sile | --sil)
1679       continue ;;
1680     *\'*)
1681       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1682     esac
1683     case $ac_pass in
1684     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685     2)
1686       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687       if test $ac_must_keep_next = true; then
1688         ac_must_keep_next=false # Got value, back to normal.
1689       else
1690         case $ac_arg in
1691           *=* | --config-cache | -C | -disable-* | --disable-* \
1692           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694           | -with-* | --with-* | -without-* | --without-* | --x)
1695             case "$ac_configure_args0 " in
1696               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697             esac
1698             ;;
1699           -* ) ac_must_keep_next=true ;;
1700         esac
1701       fi
1702       ac_configure_args="$ac_configure_args '$ac_arg'"
1703       ;;
1704     esac
1705   done
1706 done
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log.  We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716   # Save into config.log some information that might help in debugging.
1717   {
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1724 _ASBOX
1725     echo
1726     # The following way of writing the cache mishandles newlines in values,
1727 (
1728   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729     eval ac_val=\$$ac_var
1730     case $ac_val in #(
1731     *${as_nl}*)
1732       case $ac_var in #(
1733       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735       esac
1736       case $ac_var in #(
1737       _ | IFS | as_nl) ;; #(
1738       *) $as_unset $ac_var ;;
1739       esac ;;
1740     esac
1741   done
1742   (set) 2>&1 |
1743     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744     *${as_nl}ac_space=\ *)
1745       sed -n \
1746         "s/'\''/'\''\\\\'\'''\''/g;
1747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1748       ;; #(
1749     *)
1750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751       ;;
1752     esac |
1753     sort
1754 )
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1761 _ASBOX
1762     echo
1763     for ac_var in $ac_subst_vars
1764     do
1765       eval ac_val=\$$ac_var
1766       case $ac_val in
1767       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768       esac
1769       echo "$ac_var='\''$ac_val'\''"
1770     done | sort
1771     echo
1772
1773     if test -n "$ac_subst_files"; then
1774       cat <<\_ASBOX
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1778 _ASBOX
1779       echo
1780       for ac_var in $ac_subst_files
1781       do
1782         eval ac_val=\$$ac_var
1783         case $ac_val in
1784         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785         esac
1786         echo "$ac_var='\''$ac_val'\''"
1787       done | sort
1788       echo
1789     fi
1790
1791     if test -s confdefs.h; then
1792       cat <<\_ASBOX
1793 ## ----------- ##
1794 ## confdefs.h. ##
1795 ## ----------- ##
1796 _ASBOX
1797       echo
1798       cat confdefs.h
1799       echo
1800     fi
1801     test "$ac_signal" != 0 &&
1802       echo "$as_me: caught signal $ac_signal"
1803     echo "$as_me: exit $exit_status"
1804   } >&5
1805   rm -f core *.core core.conftest.* &&
1806     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807     exit $exit_status
1808 ' 0
1809 for ac_signal in 1 2 13 15; do
1810   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 done
1812 ac_signal=0
1813
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1816
1817 # Predefined preprocessor variables.
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 _ACEOF
1842
1843
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847   set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850 else
1851   set x "$ac_default_prefix/share/config.site" \
1852         "$ac_default_prefix/etc/config.site"
1853 fi
1854 shift
1855 for ac_site_file
1856 do
1857   if test -r "$ac_site_file"; then
1858     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860     sed 's/^/| /' "$ac_site_file" >&5
1861     . "$ac_site_file"
1862   fi
1863 done
1864
1865 if test -r "$cache_file"; then
1866   # Some versions of bash will fail to source /dev/null (special
1867   # files actually), so we avoid doing that.
1868   if test -f "$cache_file"; then
1869     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1871     case $cache_file in
1872       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873       *)                      . "./$cache_file";;
1874     esac
1875   fi
1876 else
1877   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1879   >$cache_file
1880 fi
1881
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887   eval ac_new_set=\$ac_env_${ac_var}_set
1888   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889   eval ac_new_val=\$ac_env_${ac_var}_value
1890   case $ac_old_set,$ac_new_set in
1891     set,)
1892       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894       ac_cache_corrupted=: ;;
1895     ,set)
1896       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898       ac_cache_corrupted=: ;;
1899     ,);;
1900     *)
1901       if test "x$ac_old_val" != "x$ac_new_val"; then
1902         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1905 echo "$as_me:   former value:  $ac_old_val" >&2;}
1906         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1907 echo "$as_me:   current value: $ac_new_val" >&2;}
1908         ac_cache_corrupted=:
1909       fi;;
1910   esac
1911   # Pass precious variables to config.status.
1912   if test "$ac_new_set" = set; then
1913     case $ac_new_val in
1914     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     *) ac_arg=$ac_var=$ac_new_val ;;
1916     esac
1917     case " $ac_configure_args " in
1918       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1919       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920     esac
1921   fi
1922 done
1923 if $ac_cache_corrupted; then
1924   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
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
1955 ac_ext=c
1956 ac_cpp='$CPP $CPPFLAGS'
1957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1960
1961
1962
1963
1964 ac_aux_dir=
1965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966   if test -f "$ac_dir/install-sh"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/install-sh -c"
1969     break
1970   elif test -f "$ac_dir/install.sh"; then
1971     ac_aux_dir=$ac_dir
1972     ac_install_sh="$ac_aux_dir/install.sh -c"
1973     break
1974   elif test -f "$ac_dir/shtool"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/shtool install -c"
1977     break
1978   fi
1979 done
1980 if test -z "$ac_aux_dir"; then
1981   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983    { (exit 1); exit 1; }; }
1984 fi
1985
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1993
1994
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999    { (exit 1); exit 1; }; }
2000
2001 { echo "$as_me:$LINENO: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_build+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   ac_build_alias=$build_alias
2007 test "x$ac_build_alias" = x &&
2008   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009 test "x$ac_build_alias" = x &&
2010   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012    { (exit 1); exit 1; }; }
2013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016    { (exit 1); exit 1; }; }
2017
2018 fi
2019 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6; }
2021 case $ac_cv_build in
2022 *-*-*) ;;
2023 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024 echo "$as_me: error: invalid value of canonical build" >&2;}
2025    { (exit 1); exit 1; }; };;
2026 esac
2027 build=$ac_cv_build
2028 ac_save_IFS=$IFS; IFS='-'
2029 set x $ac_cv_build
2030 shift
2031 build_cpu=$1
2032 build_vendor=$2
2033 shift; shift
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2036 build_os=$*
2037 IFS=$ac_save_IFS
2038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039
2040
2041 { echo "$as_me:$LINENO: checking host system type" >&5
2042 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_host+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test "x$host_alias" = x; then
2047   ac_cv_host=$ac_cv_build
2048 else
2049   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052    { (exit 1); exit 1; }; }
2053 fi
2054
2055 fi
2056 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057 echo "${ECHO_T}$ac_cv_host" >&6; }
2058 case $ac_cv_host in
2059 *-*-*) ;;
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061 echo "$as_me: error: invalid value of canonical host" >&2;}
2062    { (exit 1); exit 1; }; };;
2063 esac
2064 host=$ac_cv_host
2065 ac_save_IFS=$IFS; IFS='-'
2066 set x $ac_cv_host
2067 shift
2068 host_cpu=$1
2069 host_vendor=$2
2070 shift; shift
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2073 host_os=$*
2074 IFS=$ac_save_IFS
2075 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2076
2077
2078 { echo "$as_me:$LINENO: checking target system type" >&5
2079 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_target+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test "x$target_alias" = x; then
2084   ac_cv_target=$ac_cv_host
2085 else
2086   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089    { (exit 1); exit 1; }; }
2090 fi
2091
2092 fi
2093 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094 echo "${ECHO_T}$ac_cv_target" >&6; }
2095 case $ac_cv_target in
2096 *-*-*) ;;
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098 echo "$as_me: error: invalid value of canonical target" >&2;}
2099    { (exit 1); exit 1; }; };;
2100 esac
2101 target=$ac_cv_target
2102 ac_save_IFS=$IFS; IFS='-'
2103 set x $ac_cv_target
2104 shift
2105 target_cpu=$1
2106 target_vendor=$2
2107 shift; shift
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2110 target_os=$*
2111 IFS=$ac_save_IFS
2112 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2113
2114
2115 # The aliases save the names the user supplied, while $host etc.
2116 # will get canonicalized.
2117 test -n "$target_alias" &&
2118   test "$program_prefix$program_suffix$program_transform_name" = \
2119     NONENONEs,x,x, &&
2120   program_prefix=${target_alias}-
2121 am__api_version='1.10'
2122
2123 # Find a good install program.  We prefer a C program (faster),
2124 # so one script is as good as another.  But avoid the broken or
2125 # incompatible versions:
2126 # SysV /etc/install, /usr/sbin/install
2127 # SunOS /usr/etc/install
2128 # IRIX /sbin/install
2129 # AIX /bin/install
2130 # AmigaOS /C/install, which installs bootblocks on floppy discs
2131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2134 # OS/2's system install, which has a completely different semantic
2135 # ./install, which can be erroneously created by make from ./install.sh.
2136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147   # Account for people who put trailing slashes in PATH elements.
2148 case $as_dir/ in
2149   ./ | .// | /cC/* | \
2150   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152   /usr/ucb/* ) ;;
2153   *)
2154     # OSF1 and SCO ODT 3.0 have their own names for install.
2155     # Don't use installbsd from OSF since it installs stuff as root
2156     # by default.
2157     for ac_prog in ginstall scoinst install; do
2158       for ac_exec_ext in '' $ac_executable_extensions; do
2159         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160           if test $ac_prog = install &&
2161             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162             # AIX install.  It has an incompatible calling convention.
2163             :
2164           elif test $ac_prog = install &&
2165             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166             # program-specific install script used by HP pwplus--don't use.
2167             :
2168           else
2169             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170             break 3
2171           fi
2172         fi
2173       done
2174     done
2175     ;;
2176 esac
2177 done
2178 IFS=$as_save_IFS
2179
2180
2181 fi
2182   if test "${ac_cv_path_install+set}" = set; then
2183     INSTALL=$ac_cv_path_install
2184   else
2185     # As a last resort, use the slow shell script.  Don't cache a
2186     # value for INSTALL within a source directory, because that will
2187     # break other packages using the cache if that directory is
2188     # removed, or if the value is a relative name.
2189     INSTALL=$ac_install_sh
2190   fi
2191 fi
2192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2193 echo "${ECHO_T}$INSTALL" >&6; }
2194
2195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2196 # It thinks the first close brace ends the variable substitution.
2197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2198
2199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2200
2201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2202
2203 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2204 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2205 # Just in case
2206 sleep 1
2207 echo timestamp > conftest.file
2208 # Do `set' in a subshell so we don't clobber the current shell's
2209 # arguments.  Must try -L first in case configure is actually a
2210 # symlink; some systems play weird games with the mod time of symlinks
2211 # (eg FreeBSD returns the mod time of the symlink's containing
2212 # directory).
2213 if (
2214    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2215    if test "$*" = "X"; then
2216       # -L didn't work.
2217       set X `ls -t $srcdir/configure conftest.file`
2218    fi
2219    rm -f conftest.file
2220    if test "$*" != "X $srcdir/configure conftest.file" \
2221       && test "$*" != "X conftest.file $srcdir/configure"; then
2222
2223       # If neither matched, then we have a broken ls.  This can happen
2224       # if, for instance, CONFIG_SHELL is bash and it inherits a
2225       # broken ls alias from the environment.  This has actually
2226       # happened.  Such a system could not be considered "sane".
2227       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2228 alias in your environment" >&5
2229 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2230 alias in your environment" >&2;}
2231    { (exit 1); exit 1; }; }
2232    fi
2233
2234    test "$2" = conftest.file
2235    )
2236 then
2237    # Ok.
2238    :
2239 else
2240    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2241 Check your system clock" >&5
2242 echo "$as_me: error: newly created file is older than distributed files!
2243 Check your system clock" >&2;}
2244    { (exit 1); exit 1; }; }
2245 fi
2246 { echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6; }
2248 test "$program_prefix" != NONE &&
2249   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2250 # Use a double $ so make ignores it.
2251 test "$program_suffix" != NONE &&
2252   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2253 # Double any \ or $.  echo might interpret backslashes.
2254 # By default was `s,x,x', remove it if useless.
2255 cat <<\_ACEOF >conftest.sed
2256 s/[\\$]/&&/g;s/;s,x,x,$//
2257 _ACEOF
2258 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2259 rm -f conftest.sed
2260
2261 # expand $ac_aux_dir to an absolute path
2262 am_aux_dir=`cd $ac_aux_dir && pwd`
2263
2264 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267   am_missing_run="$MISSING --run "
2268 else
2269   am_missing_run=
2270   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2271 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2272 fi
2273
2274 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2275 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2276 if test -z "$MKDIR_P"; then
2277   if test "${ac_cv_path_mkdir+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2282 do
2283   IFS=$as_save_IFS
2284   test -z "$as_dir" && as_dir=.
2285   for ac_prog in mkdir gmkdir; do
2286          for ac_exec_ext in '' $ac_executable_extensions; do
2287            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2288            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2289              'mkdir (GNU coreutils) '* | \
2290              'mkdir (coreutils) '* | \
2291              'mkdir (fileutils) '4.1*)
2292                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2293                break 3;;
2294            esac
2295          done
2296        done
2297 done
2298 IFS=$as_save_IFS
2299
2300 fi
2301
2302   if test "${ac_cv_path_mkdir+set}" = set; then
2303     MKDIR_P="$ac_cv_path_mkdir -p"
2304   else
2305     # As a last resort, use the slow shell script.  Don't cache a
2306     # value for MKDIR_P within a source directory, because that will
2307     # break other packages using the cache if that directory is
2308     # removed, or if the value is a relative name.
2309     test -d ./--version && rmdir ./--version
2310     MKDIR_P="$ac_install_sh -d"
2311   fi
2312 fi
2313 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2314 echo "${ECHO_T}$MKDIR_P" >&6; }
2315
2316 mkdir_p="$MKDIR_P"
2317 case $mkdir_p in
2318   [\\/$]* | ?:[\\/]*) ;;
2319   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2320 esac
2321
2322 for ac_prog in gawk mawk nawk awk
2323 do
2324   # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   if test -n "$AWK"; then
2332   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337   IFS=$as_save_IFS
2338   test -z "$as_dir" && as_dir=.
2339   for ac_exec_ext in '' $ac_executable_extensions; do
2340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341     ac_cv_prog_AWK="$ac_prog"
2342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343     break 2
2344   fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 AWK=$ac_cv_prog_AWK
2352 if test -n "$AWK"; then
2353   { echo "$as_me:$LINENO: result: $AWK" >&5
2354 echo "${ECHO_T}$AWK" >&6; }
2355 else
2356   { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2358 fi
2359
2360
2361   test -n "$AWK" && break
2362 done
2363
2364 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373         @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377   *@@@%%%=?*=@@@%%%*)
2378     eval ac_cv_prog_make_${ac_make}_set=yes;;
2379   *)
2380     eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2383 fi
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385   { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2387   SET_MAKE=
2388 else
2389   { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391   SET_MAKE="MAKE=${MAKE-make}"
2392 fi
2393
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397   am__leading_dot=.
2398 else
2399   am__leading_dot=_
2400 fi
2401 rmdir .tst 2>/dev/null
2402
2403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2404   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2405   # is not polluted with repeated "-I."
2406   am__isrc=' -I$(srcdir)'
2407   # test to see if srcdir already configured
2408   if test -f $srcdir/config.status; then
2409     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2410 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2411    { (exit 1); exit 1; }; }
2412   fi
2413 fi
2414
2415 # test whether we have cygpath
2416 if test -z "$CYGPATH_W"; then
2417   if (cygpath --version) >/dev/null 2>/dev/null; then
2418     CYGPATH_W='cygpath -w'
2419   else
2420     CYGPATH_W=echo
2421   fi
2422 fi
2423
2424
2425 # Define the identity of the package.
2426  PACKAGE=mod_chxj
2427  VERSION=0.12.15
2428
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE "$PACKAGE"
2432 _ACEOF
2433
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define VERSION "$VERSION"
2437 _ACEOF
2438
2439 # Some tools Automake needs.
2440
2441 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2442
2443
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2445
2446
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2448
2449
2450 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2451
2452
2453 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454
2455 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2456
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'.  However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462   if test -n "$ac_tool_prefix"; then
2463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$STRIP"; then
2471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492   { echo "$as_me:$LINENO: result: $STRIP" >&5
2493 echo "${ECHO_T}$STRIP" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_STRIP"; then
2502   ac_ct_STRIP=$STRIP
2503   # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$ac_ct_STRIP"; then
2511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_ac_ct_STRIP="strip"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2534 else
2535   { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2537 fi
2538
2539   if test "x$ac_ct_STRIP" = x; then
2540     STRIP=":"
2541   else
2542     case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet.  If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet.  If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552     STRIP=$ac_ct_STRIP
2553   fi
2554 else
2555   STRIP="$ac_cv_prog_STRIP"
2556 fi
2557
2558 fi
2559 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2560
2561 # We need awk for the "check" target.  The system "awk" is bad on
2562 # some platforms.
2563 # Always define AMTAR for backward compatibility.
2564
2565 AMTAR=${AMTAR-"${am_missing_run}tar"}
2566
2567 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2568
2569
2570
2571
2572
2573 ac_config_headers="$ac_config_headers include/config.h"
2574
2575
2576
2577 # Checks for programs.
2578 ac_ext=c
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613   { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_CC"; then
2623   ac_ct_CC=$CC
2624   # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$ac_ct_CC"; then
2632   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_ac_ct_CC="gcc"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652 if test -n "$ac_ct_CC"; then
2653   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2654 echo "${ECHO_T}$ac_ct_CC" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_CC" = x; then
2661     CC=""
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet.  If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet.  If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673     CC=$ac_ct_CC
2674   fi
2675 else
2676   CC="$ac_cv_prog_CC"
2677 fi
2678
2679 if test -z "$CC"; then
2680           if test -n "$ac_tool_prefix"; then
2681     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2682 set dummy ${ac_tool_prefix}cc; ac_word=$2
2683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2685 if test "${ac_cv_prog_CC+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   if test -n "$CC"; then
2689   ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   for ac_exec_ext in '' $ac_executable_extensions; do
2697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698     ac_cv_prog_CC="${ac_tool_prefix}cc"
2699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710   { echo "$as_me:$LINENO: result: $CC" >&5
2711 echo "${ECHO_T}$CC" >&6; }
2712 else
2713   { echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6; }
2715 fi
2716
2717
2718   fi
2719 fi
2720 if test -z "$CC"; then
2721   # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; ac_word=$2
2723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   if test -n "$CC"; then
2729   ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731   ac_prog_rejected=no
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737   for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2740        ac_prog_rejected=yes
2741        continue
2742      fi
2743     ac_cv_prog_CC="cc"
2744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 if test $ac_prog_rejected = yes; then
2752   # We found a bogon in the path, so make sure we never use it.
2753   set dummy $ac_cv_prog_CC
2754   shift
2755   if test $# != 0; then
2756     # We chose a different compiler from the bogus one.
2757     # However, it has the same basename, so the bogon will be chosen
2758     # first if we set CC to just the basename; use the full file name.
2759     shift
2760     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761   fi
2762 fi
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767   { echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6; }
2769 else
2770   { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2772 fi
2773
2774
2775 fi
2776 if test -z "$CC"; then
2777   if test -n "$ac_tool_prefix"; then
2778   for ac_prog in cl.exe
2779   do
2780     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   if test -n "$CC"; then
2788   ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795   for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809   { echo "$as_me:$LINENO: result: $CC" >&5
2810 echo "${ECHO_T}$CC" >&6; }
2811 else
2812   { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2814 fi
2815
2816
2817     test -n "$CC" && break
2818   done
2819 fi
2820 if test -z "$CC"; then
2821   ac_ct_CC=$CC
2822   for ac_prog in cl.exe
2823 do
2824   # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CC"; then
2832   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_ac_ct_CC="$ac_prog"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 echo "${ECHO_T}$ac_ct_CC" >&6; }
2855 else
2856   { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2858 fi
2859
2860
2861   test -n "$ac_ct_CC" && break
2862 done
2863
2864   if test "x$ac_ct_CC" = x; then
2865     CC=""
2866   else
2867     case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet.  If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&5
2872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet.  If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875 ac_tool_warned=yes ;;
2876 esac
2877     CC=$ac_ct_CC
2878   fi
2879 fi
2880
2881 fi
2882
2883
2884 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: no acceptable C compiler found in \$PATH
2887 See \`config.log' for more details." >&2;}
2888    { (exit 1); exit 1; }; }
2889
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO: checking for C compiler version" >&5
2892 ac_compiler=`set X $ac_compile; echo $2`
2893 { (ac_try="$ac_compiler --version >&5"
2894 case "(($ac_try" in
2895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896   *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899   (eval "$ac_compiler --version >&5") 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }
2903 { (ac_try="$ac_compiler -v >&5"
2904 case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_compiler -v >&5") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }
2913 { (ac_try="$ac_compiler -V >&5"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_compiler -V >&5") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }
2923
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930
2931 int
2932 main ()
2933 {
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 ac_clean_files_save=$ac_clean_files
2940 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2941 # Try to create an executable without -o first, disregard a.out.
2942 # It will help us diagnose broken compilers, and finding out an intuition
2943 # of exeext.
2944 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2945 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2946 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2947 #
2948 # List of possible output files, starting from the most likely.
2949 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2950 # only as a last resort.  b.out is created by i960 compilers.
2951 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2952 #
2953 # The IRIX 6 linker writes into existing files which may not be
2954 # executable, retaining their permissions.  Remove them first so a
2955 # subsequent execution test works.
2956 ac_rmfiles=
2957 for ac_file in $ac_files
2958 do
2959   case $ac_file in
2960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2961     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2962   esac
2963 done
2964 rm -f $ac_rmfiles
2965
2966 if { (ac_try="$ac_link_default"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_link_default") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; then
2976   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2977 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2978 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2979 # so that the user can short-circuit this test for compilers unknown to
2980 # Autoconf.
2981 for ac_file in $ac_files ''
2982 do
2983   test -f "$ac_file" || continue
2984   case $ac_file in
2985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2986         ;;
2987     [ab].out )
2988         # We found the default executable, but exeext='' is most
2989         # certainly right.
2990         break;;
2991     *.* )
2992         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2993         then :; else
2994            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995         fi
2996         # We set ac_cv_exeext here because the later test for it is not
2997         # safe: cross compilers may not add the suffix if given an `-o'
2998         # argument, so we may need to know it at that point already.
2999         # Even if this section looks crufty: it has the advantage of
3000         # actually working.
3001         break;;
3002     * )
3003         break;;
3004   esac
3005 done
3006 test "$ac_cv_exeext" = no && ac_cv_exeext=
3007
3008 else
3009   ac_file=''
3010 fi
3011
3012 { echo "$as_me:$LINENO: result: $ac_file" >&5
3013 echo "${ECHO_T}$ac_file" >&6; }
3014 if test -z "$ac_file"; then
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C compiler cannot create executables
3021 See \`config.log' for more details." >&2;}
3022    { (exit 77); exit 77; }; }
3023 fi
3024
3025 ac_exeext=$ac_cv_exeext
3026
3027 # Check that the compiler produces executables we can run.  If not, either
3028 # the compiler is broken, or we cross compile.
3029 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3030 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3031 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3032 # If not cross compiling, check that we can run a simple program.
3033 if test "$cross_compiling" != yes; then
3034   if { ac_try='./$ac_file'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044     cross_compiling=no
3045   else
3046     if test "$cross_compiling" = maybe; then
3047         cross_compiling=yes
3048     else
3049         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3050 If you meant to cross compile, use \`--host'.
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&2;}
3055    { (exit 1); exit 1; }; }
3056     fi
3057   fi
3058 fi
3059 { echo "$as_me:$LINENO: result: yes" >&5
3060 echo "${ECHO_T}yes" >&6; }
3061
3062 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3063 ac_clean_files=$ac_clean_files_save
3064 # Check that the compiler produces executables we can run.  If not, either
3065 # the compiler is broken, or we cross compile.
3066 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3067 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3068 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3069 echo "${ECHO_T}$cross_compiling" >&6; }
3070
3071 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3072 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3073 if { (ac_try="$ac_link"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079   (eval "$ac_link") 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; then
3083   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3084 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3085 # work properly (i.e., refer to `conftest.exe'), while it won't with
3086 # `rm'.
3087 for ac_file in conftest.exe conftest conftest.*; do
3088   test -f "$ac_file" || continue
3089   case $ac_file in
3090     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3091     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3092           break;;
3093     * ) break;;
3094   esac
3095 done
3096 else
3097   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3100 See \`config.log' for more details." >&2;}
3101    { (exit 1); exit 1; }; }
3102 fi
3103
3104 rm -f conftest$ac_cv_exeext
3105 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3106 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3107
3108 rm -f conftest.$ac_ext
3109 EXEEXT=$ac_cv_exeext
3110 ac_exeext=$EXEEXT
3111 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3112 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3113 if test "${ac_cv_objext+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.o conftest.obj
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; then
3142   for ac_file in conftest.o conftest.obj conftest.*; do
3143   test -f "$ac_file" || continue;
3144   case $ac_file in
3145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3146     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3147        break;;
3148   esac
3149 done
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&2;}
3158    { (exit 1); exit 1; }; }
3159 fi
3160
3161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162 fi
3163 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3164 echo "${ECHO_T}$ac_cv_objext" >&6; }
3165 OBJEXT=$ac_cv_objext
3166 ac_objext=$OBJEXT
3167 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182 #ifndef __GNUC__
3183        choke me
3184 #endif
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compile") 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } && {
3204          test -z "$ac_c_werror_flag" ||
3205          test ! -s conftest.err
3206        } && test -s conftest.$ac_objext; then
3207   ac_compiler_gnu=yes
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212         ac_compiler_gnu=no
3213 fi
3214
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218 fi
3219 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3220 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3221 GCC=`test $ac_compiler_gnu = yes && echo yes`
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3225 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3226 if test "${ac_cv_prog_cc_g+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   ac_save_c_werror_flag=$ac_c_werror_flag
3230    ac_c_werror_flag=yes
3231    ac_cv_prog_cc_g=no
3232    CFLAGS="-g"
3233    cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239
3240 int
3241 main ()
3242 {
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_compile") 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } && {
3262          test -z "$ac_c_werror_flag" ||
3263          test ! -s conftest.err
3264        } && test -s conftest.$ac_objext; then
3265   ac_cv_prog_cc_g=yes
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270         CFLAGS=""
3271       cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_compile") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } && {
3300          test -z "$ac_c_werror_flag" ||
3301          test ! -s conftest.err
3302        } && test -s conftest.$ac_objext; then
3303   :
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308         ac_c_werror_flag=$ac_save_c_werror_flag
3309          CFLAGS="-g"
3310          cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316
3317 int
3318 main ()
3319 {
3320
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332   (eval "$ac_compile") 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } && {
3339          test -z "$ac_c_werror_flag" ||
3340          test ! -s conftest.err
3341        } && test -s conftest.$ac_objext; then
3342   ac_cv_prog_cc_g=yes
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347
3348 fi
3349
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357    ac_c_werror_flag=$ac_save_c_werror_flag
3358 fi
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3361 if test "$ac_test_CFLAGS" = set; then
3362   CFLAGS=$ac_save_CFLAGS
3363 elif test $ac_cv_prog_cc_g = yes; then
3364   if test "$GCC" = yes; then
3365     CFLAGS="-g -O2"
3366   else
3367     CFLAGS="-g"
3368   fi
3369 else
3370   if test "$GCC" = yes; then
3371     CFLAGS="-O2"
3372   else
3373     CFLAGS=
3374   fi
3375 fi
3376 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3377 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_c89+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   ac_cv_prog_cc_c89=no
3382 ac_save_CC=$CC
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389 #include <stdarg.h>
3390 #include <stdio.h>
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3397      char **p;
3398      int i;
3399 {
3400   return p[i];
3401 }
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3403 {
3404   char *s;
3405   va_list v;
3406   va_start (v,p);
3407   s = g (p, va_arg (v,int));
3408   va_end (v);
3409   return s;
3410 }
3411
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3413    function prototypes and stuff, but not '\xHH' hex character constants.
3414    These don't provoke an error unfortunately, instead are silently treated
3415    as 'x'.  The following induces an error, until -std is added to get
3416    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3417    array size at least.  It's necessary to write '\x00'==0 to get something
3418    that's true only with -std.  */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422    inside strings and character constants.  */
3423 #define FOO(x) 'x'
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 int argc;
3431 char **argv;
3432 int
3433 main ()
3434 {
3435 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 do
3443   CC="$ac_save_CC $ac_arg"
3444   rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_compile") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } && {
3458          test -z "$ac_c_werror_flag" ||
3459          test ! -s conftest.err
3460        } && test -s conftest.$ac_objext; then
3461   ac_cv_prog_cc_c89=$ac_arg
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466
3467 fi
3468
3469 rm -f core conftest.err conftest.$ac_objext
3470   test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 done
3472 rm -f conftest.$ac_ext
3473 CC=$ac_save_CC
3474
3475 fi
3476 # AC_CACHE_VAL
3477 case "x$ac_cv_prog_cc_c89" in
3478   x)
3479     { echo "$as_me:$LINENO: result: none needed" >&5
3480 echo "${ECHO_T}none needed" >&6; } ;;
3481   xno)
3482     { echo "$as_me:$LINENO: result: unsupported" >&5
3483 echo "${ECHO_T}unsupported" >&6; } ;;
3484   *)
3485     CC="$CC $ac_cv_prog_cc_c89"
3486     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3488 esac
3489
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 DEPDIR="${am__leading_dot}deps"
3497
3498 ac_config_commands="$ac_config_commands depfiles"
3499
3500
3501 am_make=${MAKE-make}
3502 cat > confinc << 'END'
3503 am__doit:
3504         @echo done
3505 .PHONY: am__doit
3506 END
3507 # If we don't find an include directive, just comment out the code.
3508 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3509 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3510 am__include="#"
3511 am__quote=
3512 _am_result=none
3513 # First try GNU make style include.
3514 echo "include confinc" > confmf
3515 # We grep out `Entering directory' and `Leaving directory'
3516 # messages which can occur if `w' ends up in MAKEFLAGS.
3517 # In particular we don't look at `^make:' because GNU make might
3518 # be invoked under some other name (usually "gmake"), in which
3519 # case it prints its new name instead of `make'.
3520 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3521    am__include=include
3522    am__quote=
3523    _am_result=GNU
3524 fi
3525 # Now try BSD make style include.
3526 if test "$am__include" = "#"; then
3527    echo '.include "confinc"' > confmf
3528    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3529       am__include=.include
3530       am__quote="\""
3531       _am_result=BSD
3532    fi
3533 fi
3534
3535
3536 { echo "$as_me:$LINENO: result: $_am_result" >&5
3537 echo "${ECHO_T}$_am_result" >&6; }
3538 rm -f confinc confmf
3539
3540 # Check whether --enable-dependency-tracking was given.
3541 if test "${enable_dependency_tracking+set}" = set; then
3542   enableval=$enable_dependency_tracking;
3543 fi
3544
3545 if test "x$enable_dependency_tracking" != xno; then
3546   am_depcomp="$ac_aux_dir/depcomp"
3547   AMDEPBACKSLASH='\'
3548 fi
3549  if test "x$enable_dependency_tracking" != xno; then
3550   AMDEP_TRUE=
3551   AMDEP_FALSE='#'
3552 else
3553   AMDEP_TRUE='#'
3554   AMDEP_FALSE=
3555 fi
3556
3557
3558
3559 depcc="$CC"   am_compiler_list=
3560
3561 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3562 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3563 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3567   # We make a subdir and do the tests there.  Otherwise we can end up
3568   # making bogus files that we don't know about and never remove.  For
3569   # instance it was reported that on HP-UX the gcc test will end up
3570   # making a dummy file named `D' -- because `-MD' means `put the output
3571   # in D'.
3572   mkdir conftest.dir
3573   # Copy depcomp to subdir because otherwise we won't find it if we're
3574   # using a relative directory.
3575   cp "$am_depcomp" conftest.dir
3576   cd conftest.dir
3577   # We will build objects and dependencies in a subdirectory because
3578   # it helps to detect inapplicable dependency modes.  For instance
3579   # both Tru64's cc and ICC support -MD to output dependencies as a
3580   # side effect of compilation, but ICC will put the dependencies in
3581   # the current directory while Tru64 will put them in the object
3582   # directory.
3583   mkdir sub
3584
3585   am_cv_CC_dependencies_compiler_type=none
3586   if test "$am_compiler_list" = ""; then
3587      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3588   fi
3589   for depmode in $am_compiler_list; do
3590     # Setup a source with many dependencies, because some compilers
3591     # like to wrap large dependency lists on column 80 (with \), and
3592     # we should not choose a depcomp mode which is confused by this.
3593     #
3594     # We need to recreate these files for each test, as the compiler may
3595     # overwrite some of them when testing with obscure command lines.
3596     # This happens at least with the AIX C compiler.
3597     : > sub/conftest.c
3598     for i in 1 2 3 4 5 6; do
3599       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3600       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3601       # Solaris 8's {/usr,}/bin/sh.
3602       touch sub/conftst$i.h
3603     done
3604     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3605
3606     case $depmode in
3607     nosideeffect)
3608       # after this tag, mechanisms are not by side-effect, so they'll
3609       # only be used when explicitly requested
3610       if test "x$enable_dependency_tracking" = xyes; then
3611         continue
3612       else
3613         break
3614       fi
3615       ;;
3616     none) break ;;
3617     esac
3618     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3619     # mode.  It turns out that the SunPro C++ compiler does not properly
3620     # handle `-M -o', and we need to detect this.
3621     if depmode=$depmode \
3622        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3623        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3624        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3625          >/dev/null 2>conftest.err &&
3626        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3627        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3628        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3629        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3630       # icc doesn't choke on unknown options, it will just issue warnings
3631       # or remarks (even with -Werror).  So we grep stderr for any message
3632       # that says an option was ignored or not supported.
3633       # When given -MP, icc 7.0 and 7.1 complain thusly:
3634       #   icc: Command line warning: ignoring option '-M'; no argument required
3635       # The diagnosis changed in icc 8.0:
3636       #   icc: Command line remark: option '-MP' not supported
3637       if (grep 'ignoring option' conftest.err ||
3638           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3639         am_cv_CC_dependencies_compiler_type=$depmode
3640         break
3641       fi
3642     fi
3643   done
3644
3645   cd ..
3646   rm -rf conftest.dir
3647 else
3648   am_cv_CC_dependencies_compiler_type=none
3649 fi
3650
3651 fi
3652 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3653 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3655
3656  if
3657   test "x$enable_dependency_tracking" != xno \
3658   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3659   am__fastdepCC_TRUE=
3660   am__fastdepCC_FALSE='#'
3661 else
3662   am__fastdepCC_TRUE='#'
3663   am__fastdepCC_FALSE=
3664 fi
3665
3666
3667 # Find a good install program.  We prefer a C program (faster),
3668 # so one script is as good as another.  But avoid the broken or
3669 # incompatible versions:
3670 # SysV /etc/install, /usr/sbin/install
3671 # SunOS /usr/etc/install
3672 # IRIX /sbin/install
3673 # AIX /bin/install
3674 # AmigaOS /C/install, which installs bootblocks on floppy discs
3675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3678 # OS/2's system install, which has a completely different semantic
3679 # ./install, which can be erroneously created by make from ./install.sh.
3680 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3681 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3682 if test -z "$INSTALL"; then
3683 if test "${ac_cv_path_install+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691   # Account for people who put trailing slashes in PATH elements.
3692 case $as_dir/ in
3693   ./ | .// | /cC/* | \
3694   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3695   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3696   /usr/ucb/* ) ;;
3697   *)
3698     # OSF1 and SCO ODT 3.0 have their own names for install.
3699     # Don't use installbsd from OSF since it installs stuff as root
3700     # by default.
3701     for ac_prog in ginstall scoinst install; do
3702       for ac_exec_ext in '' $ac_executable_extensions; do
3703         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3704           if test $ac_prog = install &&
3705             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3706             # AIX install.  It has an incompatible calling convention.
3707             :
3708           elif test $ac_prog = install &&
3709             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710             # program-specific install script used by HP pwplus--don't use.
3711             :
3712           else
3713             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3714             break 3
3715           fi
3716         fi
3717       done
3718     done
3719     ;;
3720 esac
3721 done
3722 IFS=$as_save_IFS
3723
3724
3725 fi
3726   if test "${ac_cv_path_install+set}" = set; then
3727     INSTALL=$ac_cv_path_install
3728   else
3729     # As a last resort, use the slow shell script.  Don't cache a
3730     # value for INSTALL within a source directory, because that will
3731     # break other packages using the cache if that directory is
3732     # removed, or if the value is a relative name.
3733     INSTALL=$ac_install_sh
3734   fi
3735 fi
3736 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3737 echo "${ECHO_T}$INSTALL" >&6; }
3738
3739 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3740 # It thinks the first close brace ends the variable substitution.
3741 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3742
3743 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3744
3745 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3746
3747
3748
3749 # Check whether --enable-shared was given.
3750 if test "${enable_shared+set}" = set; then
3751   enableval=$enable_shared; p=${PACKAGE-default}
3752     case $enableval in
3753     yes) enable_shared=yes ;;
3754     no) enable_shared=no ;;
3755     *)
3756       enable_shared=no
3757       # Look at the argument we got.  We use all the common list separators.
3758       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759       for pkg in $enableval; do
3760         IFS="$lt_save_ifs"
3761         if test "X$pkg" = "X$p"; then
3762           enable_shared=yes
3763         fi
3764       done
3765       IFS="$lt_save_ifs"
3766       ;;
3767     esac
3768 else
3769   enable_shared=yes
3770 fi
3771
3772
3773 # Check whether --enable-static was given.
3774 if test "${enable_static+set}" = set; then
3775   enableval=$enable_static; p=${PACKAGE-default}
3776     case $enableval in
3777     yes) enable_static=yes ;;
3778     no) enable_static=no ;;
3779     *)
3780      enable_static=no
3781       # Look at the argument we got.  We use all the common list separators.
3782       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3783       for pkg in $enableval; do
3784         IFS="$lt_save_ifs"
3785         if test "X$pkg" = "X$p"; then
3786           enable_static=yes
3787         fi
3788       done
3789       IFS="$lt_save_ifs"
3790       ;;
3791     esac
3792 else
3793   enable_static=yes
3794 fi
3795
3796
3797 # Check whether --enable-fast-install was given.
3798 if test "${enable_fast_install+set}" = set; then
3799   enableval=$enable_fast_install; p=${PACKAGE-default}
3800     case $enableval in
3801     yes) enable_fast_install=yes ;;
3802     no) enable_fast_install=no ;;
3803     *)
3804       enable_fast_install=no
3805       # Look at the argument we got.  We use all the common list separators.
3806       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3807       for pkg in $enableval; do
3808         IFS="$lt_save_ifs"
3809         if test "X$pkg" = "X$p"; then
3810           enable_fast_install=yes
3811         fi
3812       done
3813       IFS="$lt_save_ifs"
3814       ;;
3815     esac
3816 else
3817   enable_fast_install=yes
3818 fi
3819
3820
3821 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3822 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3823 if test "${lt_cv_path_SED+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   # Loop through the user's path and test for sed and gsed.
3827 # Then use that list of sed's as ones to test for truncation.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for lt_ac_prog in sed gsed; do
3834     for ac_exec_ext in '' $ac_executable_extensions; do
3835       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3836         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3837       fi
3838     done
3839   done
3840 done
3841 lt_ac_max=0
3842 lt_ac_count=0
3843 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3844 # along with /bin/sed that truncates output.
3845 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3846   test ! -f $lt_ac_sed && continue
3847   cat /dev/null > conftest.in
3848   lt_ac_count=0
3849   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3850   # Check for GNU sed and select it if it is found.
3851   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3852     lt_cv_path_SED=$lt_ac_sed
3853     break
3854   fi
3855   while true; do
3856     cat conftest.in conftest.in >conftest.tmp
3857     mv conftest.tmp conftest.in
3858     cp conftest.in conftest.nl
3859     echo >>conftest.nl
3860     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3861     cmp -s conftest.out conftest.nl || break
3862     # 10000 chars as input seems more than enough
3863     test $lt_ac_count -gt 10 && break
3864     lt_ac_count=`expr $lt_ac_count + 1`
3865     if test $lt_ac_count -gt $lt_ac_max; then
3866       lt_ac_max=$lt_ac_count
3867       lt_cv_path_SED=$lt_ac_sed
3868     fi
3869   done
3870 done
3871
3872 fi
3873
3874 SED=$lt_cv_path_SED
3875 { echo "$as_me:$LINENO: result: $SED" >&5
3876 echo "${ECHO_T}$SED" >&6; }
3877
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   ac_path_GREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_prog in grep ggrep; do
3897   for ac_exec_ext in '' $ac_executable_extensions; do
3898     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3900     # Check for GNU ac_path_GREP and select it if it is found.
3901   # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3903 *GNU*)
3904   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3905 *)
3906   ac_count=0
3907   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3908   while :
3909   do
3910     cat "conftest.in" "conftest.in" >"conftest.tmp"
3911     mv "conftest.tmp" "conftest.in"
3912     cp "conftest.in" "conftest.nl"
3913     echo 'GREP' >> "conftest.nl"
3914     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916     ac_count=`expr $ac_count + 1`
3917     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918       # Best one so far, save it but keep looking for a better one
3919       ac_cv_path_GREP="$ac_path_GREP"
3920       ac_path_GREP_max=$ac_count
3921     fi
3922     # 10*(2^10) chars as input seems more than enough
3923     test $ac_count -gt 10 && break
3924   done
3925   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3926 esac
3927
3928
3929     $ac_path_GREP_found && break 3
3930   done
3931 done
3932
3933 done
3934 IFS=$as_save_IFS
3935
3936
3937 fi
3938
3939 GREP="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943    { (exit 1); exit 1; }; }
3944 fi
3945
3946 else
3947   ac_cv_path_GREP=$GREP
3948 fi
3949
3950
3951 fi
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954  GREP="$ac_cv_path_GREP"
3955
3956
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963    then ac_cv_path_EGREP="$GREP -E"
3964    else
3965      # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy egrep; ac_prog_name=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_prog in egrep; do
3979   for ac_exec_ext in '' $ac_executable_extensions; do
3980     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982     # Check for GNU ac_path_EGREP and select it if it is found.
3983   # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3985 *GNU*)
3986   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3987 *)
3988   ac_count=0
3989   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990   while :
3991   do
3992     cat "conftest.in" "conftest.in" >"conftest.tmp"
3993     mv "conftest.tmp" "conftest.in"
3994     cp "conftest.in" "conftest.nl"
3995     echo 'EGREP' >> "conftest.nl"
3996     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998     ac_count=`expr $ac_count + 1`
3999     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000       # Best one so far, save it but keep looking for a better one
4001       ac_cv_path_EGREP="$ac_path_EGREP"
4002       ac_path_EGREP_max=$ac_count
4003     fi
4004     # 10*(2^10) chars as input seems more than enough
4005     test $ac_count -gt 10 && break
4006   done
4007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4009
4010
4011     $ac_path_EGREP_found && break 3
4012   done
4013 done
4014
4015 done
4016 IFS=$as_save_IFS
4017
4018
4019 fi
4020
4021 EGREP="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025    { (exit 1); exit 1; }; }
4026 fi
4027
4028 else
4029   ac_cv_path_EGREP=$EGREP
4030 fi
4031
4032
4033    fi
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037  EGREP="$ac_cv_path_EGREP"
4038
4039
4040
4041 # Check whether --with-gnu-ld was given.
4042 if test "${with_gnu_ld+set}" = set; then
4043   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4044 else
4045   with_gnu_ld=no
4046 fi
4047
4048 ac_prog=ld
4049 if test "$GCC" = yes; then
4050   # Check if gcc -print-prog-name=ld gives a path.
4051   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4052 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4053   case $host in
4054   *-*-mingw*)
4055     # gcc leaves a trailing carriage return which upsets mingw
4056     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4057   *)
4058     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4059   esac
4060   case $ac_prog in
4061     # Accept absolute paths.
4062     [\\/]* | ?:[\\/]*)
4063       re_direlt='/[^/][^/]*/\.\./'
4064       # Canonicalize the pathname of ld
4065       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4066       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4067         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4068       done
4069       test -z "$LD" && LD="$ac_prog"
4070       ;;
4071   "")
4072     # If it fails, then pretend we aren't using GCC.
4073     ac_prog=ld
4074     ;;
4075   *)
4076     # If it is relative, then search for the first ld in PATH.
4077     with_gnu_ld=unknown
4078     ;;
4079   esac
4080 elif test "$with_gnu_ld" = yes; then
4081   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4082 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4083 else
4084   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4085 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4086 fi
4087 if test "${lt_cv_path_LD+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -z "$LD"; then
4091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092   for ac_dir in $PATH; do
4093     IFS="$lt_save_ifs"
4094     test -z "$ac_dir" && ac_dir=.
4095     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4096       lt_cv_path_LD="$ac_dir/$ac_prog"
4097       # Check to see if the program is GNU ld.  I'd rather use --version,
4098       # but apparently some variants of GNU ld only accept -v.
4099       # Break only if it was the GNU/non-GNU ld that we prefer.
4100       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4101       *GNU* | *'with BFD'*)
4102         test "$with_gnu_ld" != no && break
4103         ;;
4104       *)
4105         test "$with_gnu_ld" != yes && break
4106         ;;
4107       esac
4108     fi
4109   done
4110   IFS="$lt_save_ifs"
4111 else
4112   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4113 fi
4114 fi
4115
4116 LD="$lt_cv_path_LD"
4117 if test -n "$LD"; then
4118   { echo "$as_me:$LINENO: result: $LD" >&5
4119 echo "${ECHO_T}$LD" >&6; }
4120 else
4121   { echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6; }
4123 fi
4124 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126    { (exit 1); exit 1; }; }
4127 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4129 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4133 case `$LD -v 2>&1 </dev/null` in
4134 *GNU* | *'with BFD'*)
4135   lt_cv_prog_gnu_ld=yes
4136   ;;
4137 *)
4138   lt_cv_prog_gnu_ld=no
4139   ;;
4140 esac
4141 fi
4142 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4143 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4144 with_gnu_ld=$lt_cv_prog_gnu_ld
4145
4146
4147 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4148 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4149 if test "${lt_cv_ld_reload_flag+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   lt_cv_ld_reload_flag='-r'
4153 fi
4154 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4155 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4156 reload_flag=$lt_cv_ld_reload_flag
4157 case $reload_flag in
4158 "" | " "*) ;;
4159 *) reload_flag=" $reload_flag" ;;
4160 esac
4161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4162 case $host_os in
4163   darwin*)
4164     if test "$GCC" = yes; then
4165       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4166     else
4167       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4168     fi
4169     ;;
4170 esac
4171
4172 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4173 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4174 if test "${lt_cv_path_NM+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   if test -n "$NM"; then
4178   # Let the user override the test.
4179   lt_cv_path_NM="$NM"
4180 else
4181   lt_nm_to_check="${ac_tool_prefix}nm"
4182   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4183     lt_nm_to_check="$lt_nm_to_check nm"
4184   fi
4185   for lt_tmp_nm in $lt_nm_to_check; do
4186     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4187     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4188       IFS="$lt_save_ifs"
4189       test -z "$ac_dir" && ac_dir=.
4190       tmp_nm="$ac_dir/$lt_tmp_nm"
4191       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4192         # Check to see if the nm accepts a BSD-compat flag.
4193         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4194         #   nm: unknown option "B" ignored
4195         # Tru64's nm complains that /dev/null is an invalid object file
4196         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4197         */dev/null* | *'Invalid file or object type'*)
4198           lt_cv_path_NM="$tmp_nm -B"
4199           break
4200           ;;
4201         *)
4202           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4203           */dev/null*)
4204             lt_cv_path_NM="$tmp_nm -p"
4205             break
4206             ;;
4207           *)
4208             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4209             continue # so that we can try to find one that supports BSD flags
4210             ;;
4211           esac
4212           ;;
4213         esac
4214       fi
4215     done
4216     IFS="$lt_save_ifs"
4217   done
4218   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4219 fi
4220 fi
4221 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4222 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4223 NM="$lt_cv_path_NM"
4224
4225 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4226 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4227 LN_S=$as_ln_s
4228 if test "$LN_S" = "ln -s"; then
4229   { echo "$as_me:$LINENO: result: yes" >&5
4230 echo "${ECHO_T}yes" >&6; }
4231 else
4232   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4233 echo "${ECHO_T}no, using $LN_S" >&6; }
4234 fi
4235
4236 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4237 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4238 if test "${lt_cv_deplibs_check_method+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   lt_cv_file_magic_cmd='$MAGIC_CMD'
4242 lt_cv_file_magic_test_file=
4243 lt_cv_deplibs_check_method='unknown'
4244 # Need to set the preceding variable on all platforms that support
4245 # interlibrary dependencies.
4246 # 'none' -- dependencies not supported.
4247 # `unknown' -- same as none, but documents that we really don't know.
4248 # 'pass_all' -- all dependencies passed with no checks.
4249 # 'test_compile' -- check by making test program.
4250 # 'file_magic [[regex]]' -- check by looking for files in library path
4251 # which responds to the $file_magic_cmd with a given extended regex.
4252 # If you have `file' or equivalent on your system and you're not sure
4253 # whether `pass_all' will *always* work, you probably want this one.
4254
4255 case $host_os in
4256 aix4* | aix5*)
4257   lt_cv_deplibs_check_method=pass_all
4258   ;;
4259
4260 beos*)
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 bsdi[45]*)
4265   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4266   lt_cv_file_magic_cmd='/usr/bin/file -L'
4267   lt_cv_file_magic_test_file=/shlib/libc.so
4268   ;;
4269
4270 cygwin*)
4271   # func_win32_libid is a shell function defined in ltmain.sh
4272   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4273   lt_cv_file_magic_cmd='func_win32_libid'
4274   ;;
4275
4276 mingw* | pw32*)
4277   # Base MSYS/MinGW do not provide the 'file' command needed by
4278   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4279   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4280   lt_cv_file_magic_cmd='$OBJDUMP -f'
4281   ;;
4282
4283 darwin* | rhapsody*)
4284   lt_cv_deplibs_check_method=pass_all
4285   ;;
4286
4287 freebsd* | dragonfly*)
4288   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4289     case $host_cpu in
4290     i*86 )
4291       # Not sure whether the presence of OpenBSD here was a mistake.
4292       # Let's accept both of them until this is cleared up.
4293       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4294       lt_cv_file_magic_cmd=/usr/bin/file
4295       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4296       ;;
4297     esac
4298   else
4299     lt_cv_deplibs_check_method=pass_all
4300   fi
4301   ;;
4302
4303 gnu*)
4304   lt_cv_deplibs_check_method=pass_all
4305   ;;
4306
4307 hpux10.20* | hpux11*)
4308   lt_cv_file_magic_cmd=/usr/bin/file
4309   case $host_cpu in
4310   ia64*)
4311     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4312     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4313     ;;
4314   hppa*64*)
4315     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]'
4316     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4317     ;;
4318   *)
4319     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4320     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4321     ;;
4322   esac
4323   ;;
4324
4325 interix3*)
4326   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4327   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4328   ;;
4329
4330 irix5* | irix6* | nonstopux*)
4331   case $LD in
4332   *-32|*"-32 ") libmagic=32-bit;;
4333   *-n32|*"-n32 ") libmagic=N32;;
4334   *-64|*"-64 ") libmagic=64-bit;;
4335   *) libmagic=never-match;;
4336   esac
4337   lt_cv_deplibs_check_method=pass_all
4338   ;;
4339
4340 # This must be Linux ELF.
4341 linux* | k*bsd*-gnu)
4342   lt_cv_deplibs_check_method=pass_all
4343   ;;
4344
4345 netbsd* | netbsdelf*-gnu)
4346   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4347     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4348   else
4349     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4350   fi
4351   ;;
4352
4353 newos6*)
4354   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4355   lt_cv_file_magic_cmd=/usr/bin/file
4356   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4357   ;;
4358
4359 nto-qnx*)
4360   lt_cv_deplibs_check_method=unknown
4361   ;;
4362
4363 openbsd*)
4364   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4365     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4366   else
4367     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4368   fi
4369   ;;
4370
4371 osf3* | osf4* | osf5*)
4372   lt_cv_deplibs_check_method=pass_all
4373   ;;
4374
4375 solaris*)
4376   lt_cv_deplibs_check_method=pass_all
4377   ;;
4378
4379 sysv4 | sysv4.3*)
4380   case $host_vendor in
4381   motorola)
4382     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]'
4383     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4384     ;;
4385   ncr)
4386     lt_cv_deplibs_check_method=pass_all
4387     ;;
4388   sequent)
4389     lt_cv_file_magic_cmd='/bin/file'
4390     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4391     ;;
4392   sni)
4393     lt_cv_file_magic_cmd='/bin/file'
4394     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4395     lt_cv_file_magic_test_file=/lib/libc.so
4396     ;;
4397   siemens)
4398     lt_cv_deplibs_check_method=pass_all
4399     ;;
4400   pc)
4401     lt_cv_deplibs_check_method=pass_all
4402     ;;
4403   esac
4404   ;;
4405
4406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4407   lt_cv_deplibs_check_method=pass_all
4408   ;;
4409 esac
4410
4411 fi
4412 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4413 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4414 file_magic_cmd=$lt_cv_file_magic_cmd
4415 deplibs_check_method=$lt_cv_deplibs_check_method
4416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4417
4418
4419
4420
4421 # If no C compiler was specified, use CC.
4422 LTCC=${LTCC-"$CC"}
4423
4424 # If no C compiler flags were specified, use CFLAGS.
4425 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4426
4427 # Allow CC to be a program name with arguments.
4428 compiler=$CC
4429
4430
4431 # Check whether --enable-libtool-lock was given.
4432 if test "${enable_libtool_lock+set}" = set; then
4433   enableval=$enable_libtool_lock;
4434 fi
4435
4436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4437
4438 # Some flags need to be propagated to the compiler or linker for good
4439 # libtool support.
4440 case $host in
4441 ia64-*-hpux*)
4442   # Find out which ABI we are using.
4443   echo 'int i;' > conftest.$ac_ext
4444   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445   (eval $ac_compile) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; then
4449     case `/usr/bin/file conftest.$ac_objext` in
4450     *ELF-32*)
4451       HPUX_IA64_MODE="32"
4452       ;;
4453     *ELF-64*)
4454       HPUX_IA64_MODE="64"
4455       ;;
4456     esac
4457   fi
4458   rm -rf conftest*
4459   ;;
4460 *-*-irix6*)
4461   # Find out which ABI we are using.
4462   echo '#line 4462 "configure"' > conftest.$ac_ext
4463   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464   (eval $ac_compile) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; then
4468    if test "$lt_cv_prog_gnu_ld" = yes; then
4469     case `/usr/bin/file conftest.$ac_objext` in
4470     *32-bit*)
4471       LD="${LD-ld} -melf32bsmip"
4472       ;;
4473     *N32*)
4474       LD="${LD-ld} -melf32bmipn32"
4475       ;;
4476     *64-bit*)
4477       LD="${LD-ld} -melf64bmip"
4478       ;;
4479     esac
4480    else
4481     case `/usr/bin/file conftest.$ac_objext` in
4482     *32-bit*)
4483       LD="${LD-ld} -32"
4484       ;;
4485     *N32*)
4486       LD="${LD-ld} -n32"
4487       ;;
4488     *64-bit*)
4489       LD="${LD-ld} -64"
4490       ;;
4491     esac
4492    fi
4493   fi
4494   rm -rf conftest*
4495   ;;
4496
4497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4498   # Find out which ABI we are using.
4499   echo 'int i;' > conftest.$ac_ext
4500   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501   (eval $ac_compile) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; then
4505     case `/usr/bin/file conftest.o` in
4506     *32-bit*)
4507       case $host in
4508         x86_64-*linux*)
4509           LD="${LD-ld} -m elf_i386"
4510           ;;
4511         ppc64-*linux*|powerpc64-*linux*)
4512           LD="${LD-ld} -m elf32ppclinux"
4513           ;;
4514         s390x-*linux*)
4515           LD="${LD-ld} -m elf_s390"
4516           ;;
4517         sparc64-*linux*)
4518           LD="${LD-ld} -m elf32_sparc"
4519           ;;
4520       esac
4521       ;;
4522     *64-bit*)
4523       case $host in
4524         x86_64-*linux*)
4525           LD="${LD-ld} -m elf_x86_64"
4526           ;;
4527         ppc*-*linux*|powerpc*-*linux*)
4528           LD="${LD-ld} -m elf64ppc"
4529           ;;
4530         s390*-*linux*)
4531           LD="${LD-ld} -m elf64_s390"
4532           ;;
4533         sparc*-*linux*)
4534           LD="${LD-ld} -m elf64_sparc"
4535           ;;
4536       esac
4537       ;;
4538     esac
4539   fi
4540   rm -rf conftest*
4541   ;;
4542
4543 *-*-sco3.2v5*)
4544   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4545   SAVE_CFLAGS="$CFLAGS"
4546   CFLAGS="$CFLAGS -belf"
4547   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4549 if test "${lt_cv_cc_needs_belf+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558      cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564
4565 int
4566 main ()
4567 {
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_link") 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } && {
4587          test -z "$ac_c_werror_flag" ||
4588          test ! -s conftest.err
4589        } && test -s conftest$ac_exeext &&
4590        $as_test_x conftest$ac_exeext; then
4591   lt_cv_cc_needs_belf=yes
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596         lt_cv_cc_needs_belf=no
4597 fi
4598
4599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4600       conftest$ac_exeext conftest.$ac_ext
4601      ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606
4607 fi
4608 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4610   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4611     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4612     CFLAGS="$SAVE_CFLAGS"
4613   fi
4614   ;;
4615 sparc*-*solaris*)
4616   # Find out which ABI we are using.
4617   echo 'int i;' > conftest.$ac_ext
4618   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619   (eval $ac_compile) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; then
4623     case `/usr/bin/file conftest.o` in
4624     *64-bit*)
4625       case $lt_cv_prog_gnu_ld in
4626       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4627       *)    LD="${LD-ld} -64" ;;
4628       esac
4629       ;;
4630     esac
4631   fi
4632   rm -rf conftest*
4633   ;;
4634
4635
4636 esac
4637
4638 need_locks="$enable_libtool_lock"
4639
4640
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4647 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4648 # On Suns, sometimes $CPP names a directory.
4649 if test -n "$CPP" && test -d "$CPP"; then
4650   CPP=
4651 fi
4652 if test -z "$CPP"; then
4653   if test "${ac_cv_prog_CPP+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656       # Double quotes because CPP needs to be expanded
4657     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4658     do
4659       ac_preproc_ok=false
4660 for ac_c_preproc_warn_flag in '' yes
4661 do
4662   # Use a header file that comes with gcc, so configuring glibc
4663   # with a fresh cross-compiler works.
4664   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665   # <limits.h> exists even on freestanding compilers.
4666   # On the NeXT, cc -E runs the code through the compiler's parser,
4667   # not just through cpp. "Syntax error" is here to catch this case.
4668   cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 #ifdef __STDC__
4675 # include <limits.h>
4676 #else
4677 # include <assert.h>
4678 #endif
4679                      Syntax error
4680 _ACEOF
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } >/dev/null && {
4694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695          test ! -s conftest.err
4696        }; then
4697   :
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702   # Broken: fails on valid input.
4703 continue
4704 fi
4705
4706 rm -f conftest.err conftest.$ac_ext
4707
4708   # OK, works on sane cases.  Now check whether nonexistent headers
4709   # can be detected and how.
4710   cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 case "(($ac_try" in
4720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721   *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725   ac_status=$?
4726   grep -v '^ *+' conftest.er1 >conftest.err
4727   rm -f conftest.er1
4728   cat conftest.err >&5
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } >/dev/null && {
4731          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732          test ! -s conftest.err
4733        }; then
4734   # Broken: success on invalid input.
4735 continue
4736 else
4737   echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740   # Passes both tests.
4741 ac_preproc_ok=:
4742 break
4743 fi
4744
4745 rm -f conftest.err conftest.$ac_ext
4746
4747 done
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then
4751   break
4752 fi
4753
4754     done
4755     ac_cv_prog_CPP=$CPP
4756
4757 fi
4758   CPP=$ac_cv_prog_CPP
4759 else
4760   ac_cv_prog_CPP=$CPP
4761 fi
4762 { echo "$as_me:$LINENO: result: $CPP" >&5
4763 echo "${ECHO_T}$CPP" >&6; }
4764 ac_preproc_ok=false
4765 for ac_c_preproc_warn_flag in '' yes
4766 do
4767   # Use a header file that comes with gcc, so configuring glibc
4768   # with a fresh cross-compiler works.
4769   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770   # <limits.h> exists even on freestanding compilers.
4771   # On the NeXT, cc -E runs the code through the compiler's parser,
4772   # not just through cpp. "Syntax error" is here to catch this case.
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 #ifdef __STDC__
4780 # include <limits.h>
4781 #else
4782 # include <assert.h>
4783 #endif
4784                      Syntax error
4785 _ACEOF
4786 if { (ac_try="$ac_cpp conftest.$ac_ext"
4787 case "(($ac_try" in
4788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789   *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793   ac_status=$?
4794   grep -v '^ *+' conftest.er1 >conftest.err
4795   rm -f conftest.er1
4796   cat conftest.err >&5
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); } >/dev/null && {
4799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800          test ! -s conftest.err
4801        }; then
4802   :
4803 else
4804   echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807   # Broken: fails on valid input.
4808 continue
4809 fi
4810
4811 rm -f conftest.err conftest.$ac_ext
4812
4813   # OK, works on sane cases.  Now check whether nonexistent headers
4814   # can be detected and how.
4815   cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h.  */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h.  */
4821 #include <ac_nonexistent.h>
4822 _ACEOF
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 case "(($ac_try" in
4825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826   *) ac_try_echo=$ac_try;;
4827 esac
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } >/dev/null && {
4836          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837          test ! -s conftest.err
4838        }; then
4839   # Broken: success on invalid input.
4840 continue
4841 else
4842   echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845   # Passes both tests.
4846 ac_preproc_ok=:
4847 break
4848 fi
4849
4850 rm -f conftest.err conftest.$ac_ext
4851
4852 done
4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854 rm -f conftest.err conftest.$ac_ext
4855 if $ac_preproc_ok; then
4856   :
4857 else
4858   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4859 See \`config.log' for more details." >&5
4860 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4861 See \`config.log' for more details." >&2;}
4862    { (exit 1); exit 1; }; }
4863 fi
4864
4865 ac_ext=c
4866 ac_cpp='$CPP $CPPFLAGS'
4867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870
4871
4872 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4873 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4874 if test "${ac_cv_header_stdc+set}" = set; then
4875   echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877   cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 #include <stdlib.h>
4884 #include <stdarg.h>
4885 #include <string.h>
4886 #include <float.h>
4887
4888 int
4889 main ()
4890 {
4891
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4898 case "(($ac_try" in
4899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900   *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903   (eval "$ac_compile") 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } && {
4910          test -z "$ac_c_werror_flag" ||
4911          test ! -s conftest.err
4912        } && test -s conftest.$ac_objext; then
4913   ac_cv_header_stdc=yes
4914 else
4915   echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918         ac_cv_header_stdc=no
4919 fi
4920
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922
4923 if test $ac_cv_header_stdc = yes; then
4924   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4925   cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h.  */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h.  */
4931 #include <string.h>
4932
4933 _ACEOF
4934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935   $EGREP "memchr" >/dev/null 2>&1; then
4936   :
4937 else
4938   ac_cv_header_stdc=no
4939 fi
4940 rm -f conftest*
4941
4942 fi
4943
4944 if test $ac_cv_header_stdc = yes; then
4945   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4946   cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <stdlib.h>
4953
4954 _ACEOF
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956   $EGREP "free" >/dev/null 2>&1; then
4957   :
4958 else
4959   ac_cv_header_stdc=no
4960 fi
4961 rm -f conftest*
4962
4963 fi
4964
4965 if test $ac_cv_header_stdc = yes; then
4966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967   if test "$cross_compiling" = yes; then
4968   :
4969 else
4970   cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976 #include <ctype.h>
4977 #include <stdlib.h>
4978 #if ((' ' & 0x0FF) == 0x020)
4979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4981 #else
4982 # define ISLOWER(c) \
4983                    (('a' <= (c) && (c) <= 'i') \
4984                      || ('j' <= (c) && (c) <= 'r') \
4985                      || ('s' <= (c) && (c) <= 'z'))
4986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4987 #endif
4988
4989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4990 int
4991 main ()
4992 {
4993   int i;
4994   for (i = 0; i < 256; i++)
4995     if (XOR (islower (i), ISLOWER (i))
4996         || toupper (i) != TOUPPER (i))
4997       return 2;
4998   return 0;
4999 }
5000 _ACEOF
5001 rm -f conftest$ac_exeext
5002 if { (ac_try="$ac_link"
5003 case "(($ac_try" in
5004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005   *) ac_try_echo=$ac_try;;
5006 esac
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008   (eval "$ac_link") 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5012   { (case "(($ac_try" in
5013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014   *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017   (eval "$ac_try") 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; }; then
5021   :
5022 else
5023   echo "$as_me: program exited with status $ac_status" >&5
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ( exit $ac_status )
5028 ac_cv_header_stdc=no
5029 fi
5030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5031 fi
5032
5033
5034 fi
5035 fi
5036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5038 if test $ac_cv_header_stdc = yes; then
5039
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5042 _ACEOF
5043
5044 fi
5045
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057                   inttypes.h stdint.h unistd.h
5058 do
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h.  */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h.  */
5071 $ac_includes_default
5072
5073 #include <$ac_header>
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (ac_try="$ac_compile"
5077 case "(($ac_try" in
5078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079   *) ac_try_echo=$ac_try;;
5080 esac
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082   (eval "$ac_compile") 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } && {
5089          test -z "$ac_c_werror_flag" ||
5090          test ! -s conftest.err
5091        } && test -s conftest.$ac_objext; then
5092   eval "$as_ac_Header=yes"
5093 else
5094   echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097         eval "$as_ac_Header=no"
5098 fi
5099
5100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 fi
5102 ac_res=`eval echo '${'$as_ac_Header'}'`
5103                { echo "$as_me:$LINENO: result: $ac_res" >&5
5104 echo "${ECHO_T}$ac_res" >&6; }
5105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5106   cat >>confdefs.h <<_ACEOF
5107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5108 _ACEOF
5109
5110 fi
5111
5112 done
5113
5114
5115
5116 for ac_header in dlfcn.h
5117 do
5118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 fi
5125 ac_res=`eval echo '${'$as_ac_Header'}'`
5126                { echo "$as_me:$LINENO: result: $ac_res" >&5
5127 echo "${ECHO_T}$ac_res" >&6; }
5128 else
5129   # Is the header compilable?
5130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h.  */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h.  */
5138 $ac_includes_default
5139 #include <$ac_header>
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (ac_try="$ac_compile"
5143 case "(($ac_try" in
5144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145   *) ac_try_echo=$ac_try;;
5146 esac
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148   (eval "$ac_compile") 2>conftest.er1
5149   ac_status=$?
5150   grep -v '^ *+' conftest.er1 >conftest.err
5151   rm -f conftest.er1
5152   cat conftest.err >&5
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } && {
5155          test -z "$ac_c_werror_flag" ||
5156          test ! -s conftest.err
5157        } && test -s conftest.$ac_objext; then
5158   ac_header_compiler=yes
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163         ac_header_compiler=no
5164 fi
5165
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5168 echo "${ECHO_T}$ac_header_compiler" >&6; }
5169
5170 # Is the header present?
5171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #include <$ac_header>
5180 _ACEOF
5181 if { (ac_try="$ac_cpp conftest.$ac_ext"
5182 case "(($ac_try" in
5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184   *) ac_try_echo=$ac_try;;
5185 esac
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5188   ac_status=$?
5189   grep -v '^ *+' conftest.er1 >conftest.err
5190   rm -f conftest.er1
5191   cat conftest.err >&5
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } >/dev/null && {
5194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5195          test ! -s conftest.err
5196        }; then
5197   ac_header_preproc=yes
5198 else
5199   echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202   ac_header_preproc=no
5203 fi
5204
5205 rm -f conftest.err conftest.$ac_ext
5206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5207 echo "${ECHO_T}$ac_header_preproc" >&6; }
5208
5209 # So?  What about this header?
5210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5211   yes:no: )
5212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5216     ac_header_preproc=yes
5217     ;;
5218   no:yes:* )
5219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5231
5232     ;;
5233 esac
5234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   eval "$as_ac_Header=\$ac_header_preproc"
5240 fi
5241 ac_res=`eval echo '${'$as_ac_Header'}'`
5242                { echo "$as_me:$LINENO: result: $ac_res" >&5
5243 echo "${ECHO_T}$ac_res" >&6; }
5244
5245 fi
5246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5247   cat >>confdefs.h <<_ACEOF
5248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249 _ACEOF
5250
5251 fi
5252
5253 done
5254
5255 ac_ext=cpp
5256 ac_cpp='$CXXCPP $CPPFLAGS'
5257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 if test -z "$CXX"; then
5261   if test -n "$CCC"; then
5262     CXX=$CCC
5263   else
5264     if test -n "$ac_tool_prefix"; then
5265   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266   do
5267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_CXX+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test -n "$CXX"; then
5275   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282   for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 CXX=$ac_cv_prog_CXX
5295 if test -n "$CXX"; then
5296   { echo "$as_me:$LINENO: result: $CXX" >&5
5297 echo "${ECHO_T}$CXX" >&6; }
5298 else
5299   { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5301 fi
5302
5303
5304     test -n "$CXX" && break
5305   done
5306 fi
5307 if test -z "$CXX"; then
5308   ac_ct_CXX=$CXX
5309   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5310 do
5311   # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   if test -n "$ac_ct_CXX"; then
5319   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326   for ac_exec_ext in '' $ac_executable_extensions; do
5327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328     ac_cv_prog_ac_ct_CXX="$ac_prog"
5329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330     break 2
5331   fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5339 if test -n "$ac_ct_CXX"; then
5340   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5341 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5342 else
5343   { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5345 fi
5346
5347
5348   test -n "$ac_ct_CXX" && break
5349 done
5350
5351   if test "x$ac_ct_CXX" = x; then
5352     CXX="g++"
5353   else
5354     case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5357 whose name does not start with the host triplet.  If you think this
5358 configuration is useful to you, please write to autoconf@gnu.org." >&5
5359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5360 whose name does not start with the host triplet.  If you think this
5361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5362 ac_tool_warned=yes ;;
5363 esac
5364     CXX=$ac_ct_CXX
5365   fi
5366 fi
5367
5368   fi
5369 fi
5370 # Provide some information about the compiler.
5371 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5372 ac_compiler=`set X $ac_compile; echo $2`
5373 { (ac_try="$ac_compiler --version >&5"
5374 case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_compiler --version >&5") 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); }
5383 { (ac_try="$ac_compiler -v >&5"
5384 case "(($ac_try" in
5385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386   *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389   (eval "$ac_compiler -v >&5") 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); }
5393 { (ac_try="$ac_compiler -V >&5"
5394 case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_compiler -V >&5") 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }
5403
5404 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5405 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5406 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415
5416 int
5417 main ()
5418 {
5419 #ifndef __GNUC__
5420        choke me
5421 #endif
5422
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5429 case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_compile") 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } && {
5441          test -z "$ac_cxx_werror_flag" ||
5442          test ! -s conftest.err
5443        } && test -s conftest.$ac_objext; then
5444   ac_compiler_gnu=yes
5445 else
5446   echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449         ac_compiler_gnu=no
5450 fi
5451
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5454
5455 fi
5456 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5457 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5458 GXX=`test $ac_compiler_gnu = yes && echo yes`
5459 ac_test_CXXFLAGS=${CXXFLAGS+set}
5460 ac_save_CXXFLAGS=$CXXFLAGS
5461 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5462 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5463 if test "${ac_cv_prog_cxx_g+set}" = set; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5467    ac_cxx_werror_flag=yes
5468    ac_cv_prog_cxx_g=no
5469    CXXFLAGS="-g"
5470    cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476
5477 int
5478 main ()
5479 {
5480
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5487 case "(($ac_try" in
5488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489   *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492   (eval "$ac_compile") 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } && {
5499          test -z "$ac_cxx_werror_flag" ||
5500          test ! -s conftest.err
5501        } && test -s conftest.$ac_objext; then
5502   ac_cv_prog_cxx_g=yes
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507         CXXFLAGS=""
5508       cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514
5515 int
5516 main ()
5517 {
5518
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527   *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530   (eval "$ac_compile") 2>conftest.er1
5531   ac_status=$?
5532   grep -v '^ *+' conftest.er1 >conftest.err
5533   rm -f conftest.er1
5534   cat conftest.err >&5
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } && {
5537          test -z "$ac_cxx_werror_flag" ||
5538          test ! -s conftest.err
5539        } && test -s conftest.$ac_objext; then
5540   :
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546          CXXFLAGS="-g"
5547          cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553
5554 int
5555 main ()
5556 {
5557
5558   ;
5559   return 0;
5560 }
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566   *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569   (eval "$ac_compile") 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } && {
5576          test -z "$ac_cxx_werror_flag" ||
5577          test ! -s conftest.err
5578        } && test -s conftest.$ac_objext; then
5579   ac_cv_prog_cxx_g=yes
5580 else
5581   echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5595 fi
5596 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5598 if test "$ac_test_CXXFLAGS" = set; then
5599   CXXFLAGS=$ac_save_CXXFLAGS
5600 elif test $ac_cv_prog_cxx_g = yes; then
5601   if test "$GXX" = yes; then
5602     CXXFLAGS="-g -O2"
5603   else
5604     CXXFLAGS="-g"
5605   fi
5606 else
5607   if test "$GXX" = yes; then
5608     CXXFLAGS="-O2"
5609   else
5610     CXXFLAGS=
5611   fi
5612 fi
5613 ac_ext=cpp
5614 ac_cpp='$CXXCPP $CPPFLAGS'
5615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5618
5619 depcc="$CXX"  am_compiler_list=
5620
5621 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5623 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5627   # We make a subdir and do the tests there.  Otherwise we can end up
5628   # making bogus files that we don't know about and never remove.  For
5629   # instance it was reported that on HP-UX the gcc test will end up
5630   # making a dummy file named `D' -- because `-MD' means `put the output
5631   # in D'.
5632   mkdir conftest.dir
5633   # Copy depcomp to subdir because otherwise we won't find it if we're
5634   # using a relative directory.
5635   cp "$am_depcomp" conftest.dir
5636   cd conftest.dir
5637   # We will build objects and dependencies in a subdirectory because
5638   # it helps to detect inapplicable dependency modes.  For instance
5639   # both Tru64's cc and ICC support -MD to output dependencies as a
5640   # side effect of compilation, but ICC will put the dependencies in
5641   # the current directory while Tru64 will put them in the object
5642   # directory.
5643   mkdir sub
5644
5645   am_cv_CXX_dependencies_compiler_type=none
5646   if test "$am_compiler_list" = ""; then
5647      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5648   fi
5649   for depmode in $am_compiler_list; do
5650     # Setup a source with many dependencies, because some compilers
5651     # like to wrap large dependency lists on column 80 (with \), and
5652     # we should not choose a depcomp mode which is confused by this.
5653     #
5654     # We need to recreate these files for each test, as the compiler may
5655     # overwrite some of them when testing with obscure command lines.
5656     # This happens at least with the AIX C compiler.
5657     : > sub/conftest.c
5658     for i in 1 2 3 4 5 6; do
5659       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5660       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5661       # Solaris 8's {/usr,}/bin/sh.
5662       touch sub/conftst$i.h
5663     done
5664     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5665
5666     case $depmode in
5667     nosideeffect)
5668       # after this tag, mechanisms are not by side-effect, so they'll
5669       # only be used when explicitly requested
5670       if test "x$enable_dependency_tracking" = xyes; then
5671         continue
5672       else
5673         break
5674       fi
5675       ;;
5676     none) break ;;
5677     esac
5678     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5679     # mode.  It turns out that the SunPro C++ compiler does not properly
5680     # handle `-M -o', and we need to detect this.
5681     if depmode=$depmode \
5682        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5683        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5684        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5685          >/dev/null 2>conftest.err &&
5686        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5687        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5688        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5689        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5690       # icc doesn't choke on unknown options, it will just issue warnings
5691       # or remarks (even with -Werror).  So we grep stderr for any message
5692       # that says an option was ignored or not supported.
5693       # When given -MP, icc 7.0 and 7.1 complain thusly:
5694       #   icc: Command line warning: ignoring option '-M'; no argument required
5695       # The diagnosis changed in icc 8.0:
5696       #   icc: Command line remark: option '-MP' not supported
5697       if (grep 'ignoring option' conftest.err ||
5698           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5699         am_cv_CXX_dependencies_compiler_type=$depmode
5700         break
5701       fi
5702     fi
5703   done
5704
5705   cd ..
5706   rm -rf conftest.dir
5707 else
5708   am_cv_CXX_dependencies_compiler_type=none
5709 fi
5710
5711 fi
5712 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5713 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5714 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5715
5716  if
5717   test "x$enable_dependency_tracking" != xno \
5718   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5719   am__fastdepCXX_TRUE=
5720   am__fastdepCXX_FALSE='#'
5721 else
5722   am__fastdepCXX_TRUE='#'
5723   am__fastdepCXX_FALSE=
5724 fi
5725
5726
5727
5728
5729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5730     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5731     (test "X$CXX" != "Xg++"))) ; then
5732   ac_ext=cpp
5733 ac_cpp='$CXXCPP $CPPFLAGS'
5734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5737 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5738 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5739 if test -z "$CXXCPP"; then
5740   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743       # Double quotes because CXXCPP needs to be expanded
5744     for CXXCPP in "$CXX -E" "/lib/cpp"
5745     do
5746       ac_preproc_ok=false
5747 for ac_cxx_preproc_warn_flag in '' yes
5748 do
5749   # Use a header file that comes with gcc, so configuring glibc
5750   # with a fresh cross-compiler works.
5751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752   # <limits.h> exists even on freestanding compilers.
5753   # On the NeXT, cc -E runs the code through the compiler's parser,
5754   # not just through cpp. "Syntax error" is here to catch this case.
5755   cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766                      Syntax error
5767 _ACEOF
5768 if { (ac_try="$ac_cpp conftest.$ac_ext"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } >/dev/null && {
5781          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5782          test ! -s conftest.err
5783        }; then
5784   :
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789   # Broken: fails on valid input.
5790 continue
5791 fi
5792
5793 rm -f conftest.err conftest.$ac_ext
5794
5795   # OK, works on sane cases.  Now check whether nonexistent headers
5796   # can be detected and how.
5797   cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #include <ac_nonexistent.h>
5804 _ACEOF
5805 if { (ac_try="$ac_cpp conftest.$ac_ext"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } >/dev/null && {
5818          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5819          test ! -s conftest.err
5820        }; then
5821   # Broken: success on invalid input.
5822 continue
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827   # Passes both tests.
5828 ac_preproc_ok=:
5829 break
5830 fi
5831
5832 rm -f conftest.err conftest.$ac_ext
5833
5834 done
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.err conftest.$ac_ext
5837 if $ac_preproc_ok; then
5838   break
5839 fi
5840
5841     done
5842     ac_cv_prog_CXXCPP=$CXXCPP
5843
5844 fi
5845   CXXCPP=$ac_cv_prog_CXXCPP
5846 else
5847   ac_cv_prog_CXXCPP=$CXXCPP
5848 fi
5849 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5850 echo "${ECHO_T}$CXXCPP" >&6; }
5851 ac_preproc_ok=false
5852 for ac_cxx_preproc_warn_flag in '' yes
5853 do
5854   # Use a header file that comes with gcc, so configuring glibc
5855   # with a fresh cross-compiler works.
5856   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857   # <limits.h> exists even on freestanding compilers.
5858   # On the NeXT, cc -E runs the code through the compiler's parser,
5859   # not just through cpp. "Syntax error" is here to catch this case.
5860   cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 #ifdef __STDC__
5867 # include <limits.h>
5868 #else
5869 # include <assert.h>
5870 #endif
5871                      Syntax error
5872 _ACEOF
5873 if { (ac_try="$ac_cpp conftest.$ac_ext"
5874 case "(($ac_try" in
5875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876   *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5880   ac_status=$?
5881   grep -v '^ *+' conftest.er1 >conftest.err
5882   rm -f conftest.er1
5883   cat conftest.err >&5
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); } >/dev/null && {
5886          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5887          test ! -s conftest.err
5888        }; then
5889   :
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894   # Broken: fails on valid input.
5895 continue
5896 fi
5897
5898 rm -f conftest.err conftest.$ac_ext
5899
5900   # OK, works on sane cases.  Now check whether nonexistent headers
5901   # can be detected and how.
5902   cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908 #include <ac_nonexistent.h>
5909 _ACEOF
5910 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 case "(($ac_try" in
5912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913   *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917   ac_status=$?
5918   grep -v '^ *+' conftest.er1 >conftest.err
5919   rm -f conftest.er1
5920   cat conftest.err >&5
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } >/dev/null && {
5923          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5924          test ! -s conftest.err
5925        }; then
5926   # Broken: success on invalid input.
5927 continue
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932   # Passes both tests.
5933 ac_preproc_ok=:
5934 break
5935 fi
5936
5937 rm -f conftest.err conftest.$ac_ext
5938
5939 done
5940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941 rm -f conftest.err conftest.$ac_ext
5942 if $ac_preproc_ok; then
5943   :
5944 else
5945   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5946 See \`config.log' for more details." >&5
5947 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948 See \`config.log' for more details." >&2;}
5949    { (exit 1); exit 1; }; }
5950 fi
5951
5952 ac_ext=cpp
5953 ac_cpp='$CXXCPP $CPPFLAGS'
5954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5957
5958 fi
5959
5960
5961 ac_ext=f
5962 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5963 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5965 if test -n "$ac_tool_prefix"; then
5966   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
5967   do
5968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_prog_F77+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   if test -n "$F77"; then
5976   ac_cv_prog_F77="$F77" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983   for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 F77=$ac_cv_prog_F77
5996 if test -n "$F77"; then
5997   { echo "$as_me:$LINENO: result: $F77" >&5
5998 echo "${ECHO_T}$F77" >&6; }
5999 else
6000   { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002 fi
6003
6004
6005     test -n "$F77" && break
6006   done
6007 fi
6008 if test -z "$F77"; then
6009   ac_ct_F77=$F77
6010   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
6011 do
6012   # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019   if test -n "$ac_ct_F77"; then
6020   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027   for ac_exec_ext in '' $ac_executable_extensions; do
6028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029     ac_cv_prog_ac_ct_F77="$ac_prog"
6030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031     break 2
6032   fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6040 if test -n "$ac_ct_F77"; then
6041   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6042 echo "${ECHO_T}$ac_ct_F77" >&6; }
6043 else
6044   { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6046 fi
6047
6048
6049   test -n "$ac_ct_F77" && break
6050 done
6051
6052   if test "x$ac_ct_F77" = x; then
6053     F77=""
6054   else
6055     case $cross_compiling:$ac_tool_warned in
6056 yes:)
6057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6058 whose name does not start with the host triplet.  If you think this
6059 configuration is useful to you, please write to autoconf@gnu.org." >&5
6060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6061 whose name does not start with the host triplet.  If you think this
6062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6063 ac_tool_warned=yes ;;
6064 esac
6065     F77=$ac_ct_F77
6066   fi
6067 fi
6068
6069
6070 # Provide some information about the compiler.
6071 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6072 ac_compiler=`set X $ac_compile; echo $2`
6073 { (ac_try="$ac_compiler --version >&5"
6074 case "(($ac_try" in
6075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076   *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079   (eval "$ac_compiler --version >&5") 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }
6083 { (ac_try="$ac_compiler -v >&5"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_compiler -v >&5") 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }
6093 { (ac_try="$ac_compiler -V >&5"
6094 case "(($ac_try" in
6095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096   *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099   (eval "$ac_compiler -V >&5") 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }
6103 rm -f a.out
6104
6105 # If we don't use `.F' as extension, the preprocessor is not run on the
6106 # input file.  (Note that this only needs to work for GNU compilers.)
6107 ac_save_ext=$ac_ext
6108 ac_ext=F
6109 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6110 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6111 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   cat >conftest.$ac_ext <<_ACEOF
6115       program main
6116 #ifndef __GNUC__
6117        choke me
6118 #endif
6119
6120       end
6121 _ACEOF
6122 rm -f conftest.$ac_objext
6123 if { (ac_try="$ac_compile"
6124 case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_compile") 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } && {
6136          test -z "$ac_f77_werror_flag" ||
6137          test ! -s conftest.err
6138        } && test -s conftest.$ac_objext; then
6139   ac_compiler_gnu=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144         ac_compiler_gnu=no
6145 fi
6146
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6149
6150 fi
6151 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6152 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6153 ac_ext=$ac_save_ext
6154 ac_test_FFLAGS=${FFLAGS+set}
6155 ac_save_FFLAGS=$FFLAGS
6156 FFLAGS=
6157 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6158 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6159 if test "${ac_cv_prog_f77_g+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   FFLAGS=-g
6163 cat >conftest.$ac_ext <<_ACEOF
6164       program main
6165
6166       end
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6170 case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_compile") 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } && {
6182          test -z "$ac_f77_werror_flag" ||
6183          test ! -s conftest.err
6184        } && test -s conftest.$ac_objext; then
6185   ac_cv_prog_f77_g=yes
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190         ac_cv_prog_f77_g=no
6191 fi
6192
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194
6195 fi
6196 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6197 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6198 if test "$ac_test_FFLAGS" = set; then
6199   FFLAGS=$ac_save_FFLAGS
6200 elif test $ac_cv_prog_f77_g = yes; then
6201   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6202     FFLAGS="-g -O2"
6203   else
6204     FFLAGS="-g"
6205   fi
6206 else
6207   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6208     FFLAGS="-O2"
6209   else
6210     FFLAGS=
6211   fi
6212 fi
6213
6214 G77=`test $ac_compiler_gnu = yes && echo yes`
6215 ac_ext=c
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221
6222
6223 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6224
6225 # find the maximum length of command line arguments
6226 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6227 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6228 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231     i=0
6232   teststring="ABCD"
6233
6234   case $build_os in
6235   msdosdjgpp*)
6236     # On DJGPP, this test can blow up pretty badly due to problems in libc
6237     # (any single argument exceeding 2000 bytes causes a buffer overrun
6238     # during glob expansion).  Even if it were fixed, the result of this
6239     # check would be larger than it should be.
6240     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6241     ;;
6242
6243   gnu*)
6244     # Under GNU Hurd, this test is not required because there is
6245     # no limit to the length of command line arguments.
6246     # Libtool will interpret -1 as no limit whatsoever
6247     lt_cv_sys_max_cmd_len=-1;
6248     ;;
6249
6250   cygwin* | mingw*)
6251     # On Win9x/ME, this test blows up -- it succeeds, but takes
6252     # about 5 minutes as the teststring grows exponentially.
6253     # Worse, since 9x/ME are not pre-emptively multitasking,
6254     # you end up with a "frozen" computer, even though with patience
6255     # the test eventually succeeds (with a max line length of 256k).
6256     # Instead, let's just punt: use the minimum linelength reported by
6257     # all of the supported platforms: 8192 (on NT/2K/XP).
6258     lt_cv_sys_max_cmd_len=8192;
6259     ;;
6260
6261   amigaos*)
6262     # On AmigaOS with pdksh, this test takes hours, literally.
6263     # So we just punt and use a minimum line length of 8192.
6264     lt_cv_sys_max_cmd_len=8192;
6265     ;;
6266
6267   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6268     # This has been around since 386BSD, at least.  Likely further.
6269     if test -x /sbin/sysctl; then
6270       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6271     elif test -x /usr/sbin/sysctl; then
6272       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6273     else
6274       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6275     fi
6276     # And add a safety zone
6277     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6278     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6279     ;;
6280
6281   interix*)
6282     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6283     lt_cv_sys_max_cmd_len=196608
6284     ;;
6285
6286   osf*)
6287     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6288     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6289     # nice to cause kernel panics so lets avoid the loop below.
6290     # First set a reasonable default.
6291     lt_cv_sys_max_cmd_len=16384
6292     #
6293     if test -x /sbin/sysconfig; then
6294       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6295         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6296       esac
6297     fi
6298     ;;
6299   sco3.2v5*)
6300     lt_cv_sys_max_cmd_len=102400
6301     ;;
6302   sysv5* | sco5v6* | sysv4.2uw2*)
6303     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6304     if test -n "$kargmax"; then
6305       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6306     else
6307       lt_cv_sys_max_cmd_len=32768
6308     fi
6309     ;;
6310   *)
6311     # If test is not a shell built-in, we'll probably end up computing a
6312     # maximum length that is only half of the actual maximum length, but
6313     # we can't tell.
6314     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6315     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6316                = "XX$teststring") >/dev/null 2>&1 &&
6317             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6318             lt_cv_sys_max_cmd_len=$new_result &&
6319             test $i != 17 # 1/2 MB should be enough
6320     do
6321       i=`expr $i + 1`
6322       teststring=$teststring$teststring
6323     done
6324     teststring=
6325     # Add a significant safety factor because C++ compilers can tack on massive
6326     # amounts of additional arguments before passing them to the linker.
6327     # It appears as though 1/2 is a usable value.
6328     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6329     ;;
6330   esac
6331
6332 fi
6333
6334 if test -n $lt_cv_sys_max_cmd_len ; then
6335   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6336 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: none" >&5
6339 echo "${ECHO_T}none" >&6; }
6340 fi
6341
6342
6343
6344
6345 # Check for command to grab the raw symbol name followed by C symbol from nm.
6346 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6347 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6348 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6349   echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351
6352 # These are sane defaults that work on at least a few old systems.
6353 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6354
6355 # Character class describing NM global symbol codes.
6356 symcode='[BCDEGRST]'
6357
6358 # Regexp to match symbols that can be accessed directly from C.
6359 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6360
6361 # Transform an extracted symbol line into a proper C declaration
6362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6363
6364 # Transform an extracted symbol line into symbol name and symbol address
6365 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'"
6366
6367 # Define system-specific variables.
6368 case $host_os in
6369 aix*)
6370   symcode='[BCDT]'
6371   ;;
6372 cygwin* | mingw* | pw32*)
6373   symcode='[ABCDGISTW]'
6374   ;;
6375 hpux*) # Its linker distinguishes data from code symbols
6376   if test "$host_cpu" = ia64; then
6377     symcode='[ABCDEGRST]'
6378   fi
6379   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380   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'"
6381   ;;
6382 linux* | k*bsd*-gnu)
6383   if test "$host_cpu" = ia64; then
6384     symcode='[ABCDGIRSTW]'
6385     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6386     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'"
6387   fi
6388   ;;
6389 irix* | nonstopux*)
6390   symcode='[BCDEGRST]'
6391   ;;
6392 osf*)
6393   symcode='[BCDEGQRST]'
6394   ;;
6395 solaris*)
6396   symcode='[BDRT]'
6397   ;;
6398 sco3.2v5*)
6399   symcode='[DT]'
6400   ;;
6401 sysv4.2uw2*)
6402   symcode='[DT]'
6403   ;;
6404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6405   symcode='[ABDT]'
6406   ;;
6407 sysv4)
6408   symcode='[DFNSTU]'
6409   ;;
6410 esac
6411
6412 # Handle CRLF in mingw tool chain
6413 opt_cr=
6414 case $build_os in
6415 mingw*)
6416   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6417   ;;
6418 esac
6419
6420 # If we're using GNU nm, then use its standard symbol codes.
6421 case `$NM -V 2>&1` in
6422 *GNU* | *'with BFD'*)
6423   symcode='[ABCDGIRSTW]' ;;
6424 esac
6425
6426 # Try without a prefix undercore, then with it.
6427 for ac_symprfx in "" "_"; do
6428
6429   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6430   symxfrm="\\1 $ac_symprfx\\2 \\2"
6431
6432   # Write the raw and C identifiers.
6433   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6434
6435   # Check to see that the pipe works correctly.
6436   pipe_works=no
6437
6438   rm -f conftest*
6439   cat > conftest.$ac_ext <<EOF
6440 #ifdef __cplusplus
6441 extern "C" {
6442 #endif
6443 char nm_test_var;
6444 void nm_test_func(){}
6445 #ifdef __cplusplus
6446 }
6447 #endif
6448 int main(){nm_test_var='a';nm_test_func();return(0);}
6449 EOF
6450
6451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; then
6456     # Now try to grab the symbols.
6457     nlist=conftest.nm
6458     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6459   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); } && test -s "$nlist"; then
6463       # Try sorting and uniquifying the output.
6464       if sort "$nlist" | uniq > "$nlist"T; then
6465         mv -f "$nlist"T "$nlist"
6466       else
6467         rm -f "$nlist"T
6468       fi
6469
6470       # Make sure that we snagged all the symbols we need.
6471       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6472         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6473           cat <<EOF > conftest.$ac_ext
6474 #ifdef __cplusplus
6475 extern "C" {
6476 #endif
6477
6478 EOF
6479           # Now generate the symbol file.
6480           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6481
6482           cat <<EOF >> conftest.$ac_ext
6483 #if defined (__STDC__) && __STDC__
6484 # define lt_ptr_t void *
6485 #else
6486 # define lt_ptr_t char *
6487 # define const
6488 #endif
6489
6490 /* The mapping between symbol names and symbols. */
6491 const struct {
6492   const char *name;
6493   lt_ptr_t address;
6494 }
6495 lt_preloaded_symbols[] =
6496 {
6497 EOF
6498           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6499           cat <<\EOF >> conftest.$ac_ext
6500   {0, (lt_ptr_t) 0}
6501 };
6502
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 EOF
6507           # Now try linking the two files.
6508           mv conftest.$ac_objext conftstm.$ac_objext
6509           lt_save_LIBS="$LIBS"
6510           lt_save_CFLAGS="$CFLAGS"
6511           LIBS="conftstm.$ac_objext"
6512           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6518             pipe_works=yes
6519           fi
6520           LIBS="$lt_save_LIBS"
6521           CFLAGS="$lt_save_CFLAGS"
6522         else
6523           echo "cannot find nm_test_func in $nlist" >&5
6524         fi
6525       else
6526         echo "cannot find nm_test_var in $nlist" >&5
6527       fi
6528     else
6529       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530     fi
6531   else
6532     echo "$progname: failed program was:" >&5
6533     cat conftest.$ac_ext >&5
6534   fi
6535   rm -f conftest* conftst*
6536
6537   # Do not use the global_symbol_pipe unless it works.
6538   if test "$pipe_works" = yes; then
6539     break
6540   else
6541     lt_cv_sys_global_symbol_pipe=
6542   fi
6543 done
6544
6545 fi
6546
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548   lt_cv_sys_global_symbol_to_cdecl=
6549 fi
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551   { echo "$as_me:$LINENO: result: failed" >&5
6552 echo "${ECHO_T}failed" >&6; }
6553 else
6554   { echo "$as_me:$LINENO: result: ok" >&5
6555 echo "${ECHO_T}ok" >&6; }
6556 fi
6557
6558 { echo "$as_me:$LINENO: checking for objdir" >&5
6559 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6560 if test "${lt_cv_objdir+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   rm -f .libs 2>/dev/null
6564 mkdir .libs 2>/dev/null
6565 if test -d .libs; then
6566   lt_cv_objdir=.libs
6567 else
6568   # MS-DOS does not allow filenames that begin with a dot.
6569   lt_cv_objdir=_libs
6570 fi
6571 rmdir .libs 2>/dev/null
6572 fi
6573 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6574 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6575 objdir=$lt_cv_objdir
6576
6577
6578
6579
6580
6581 case $host_os in
6582 aix3*)
6583   # AIX sometimes has problems with the GCC collect2 program.  For some
6584   # reason, if we set the COLLECT_NAMES environment variable, the problems
6585   # vanish in a puff of smoke.
6586   if test "X${COLLECT_NAMES+set}" != Xset; then
6587     COLLECT_NAMES=
6588     export COLLECT_NAMES
6589   fi
6590   ;;
6591 esac
6592
6593 # Sed substitution that helps us do robust quoting.  It backslashifies
6594 # metacharacters that are still active within double-quoted strings.
6595 Xsed='sed -e 1s/^X//'
6596 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6597
6598 # Same as above, but do not quote variable references.
6599 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6600
6601 # Sed substitution to delay expansion of an escaped shell variable in a
6602 # double_quote_subst'ed string.
6603 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6604
6605 # Sed substitution to avoid accidental globbing in evaled expressions
6606 no_glob_subst='s/\*/\\\*/g'
6607
6608 # Constants:
6609 rm="rm -f"
6610
6611 # Global variables:
6612 default_ofile=libtool
6613 can_build_shared=yes
6614
6615 # All known linkers require a `.a' archive for static linking (except MSVC,
6616 # which needs '.lib').
6617 libext=a
6618 ltmain="$ac_aux_dir/ltmain.sh"
6619 ofile="$default_ofile"
6620 with_gnu_ld="$lt_cv_prog_gnu_ld"
6621
6622 if test -n "$ac_tool_prefix"; then
6623   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ar; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_prog_AR+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   if test -n "$AR"; then
6631   ac_cv_prog_AR="$AR" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638   for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_prog_AR="${ac_tool_prefix}ar"
6641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 AR=$ac_cv_prog_AR
6651 if test -n "$AR"; then
6652   { echo "$as_me:$LINENO: result: $AR" >&5
6653 echo "${ECHO_T}$AR" >&6; }
6654 else
6655   { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_AR"; then
6662   ac_ct_AR=$AR
6663   # Extract the first word of "ar", so it can be a program name with args.
6664 set dummy ar; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   if test -n "$ac_ct_AR"; then
6671   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_prog_ac_ct_AR="ar"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6691 if test -n "$ac_ct_AR"; then
6692   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6693 echo "${ECHO_T}$ac_ct_AR" >&6; }
6694 else
6695   { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6697 fi
6698
6699   if test "x$ac_ct_AR" = x; then
6700     AR="false"
6701   else
6702     case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&5
6707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet.  If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712     AR=$ac_ct_AR
6713   fi
6714 else
6715   AR="$ac_cv_prog_AR"
6716 fi
6717
6718 if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$RANLIB"; then
6727   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758   ac_ct_RANLIB=$RANLIB
6759   # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$ac_ct_RANLIB"; then
6767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_ac_ct_RANLIB="ranlib"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795   if test "x$ac_ct_RANLIB" = x; then
6796     RANLIB=":"
6797   else
6798     case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet.  If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 if test -n "$ac_tool_prefix"; then
6815   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}strip; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_STRIP+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   if test -n "$STRIP"; then
6823   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830   for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 STRIP=$ac_cv_prog_STRIP
6843 if test -n "$STRIP"; then
6844   { echo "$as_me:$LINENO: result: $STRIP" >&5
6845 echo "${ECHO_T}$STRIP" >&6; }
6846 else
6847   { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_STRIP"; then
6854   ac_ct_STRIP=$STRIP
6855   # Extract the first word of "strip", so it can be a program name with args.
6856 set dummy strip; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   if test -n "$ac_ct_STRIP"; then
6863   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_ac_ct_STRIP="strip"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6883 if test -n "$ac_ct_STRIP"; then
6884   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6885 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6886 else
6887   { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6889 fi
6890
6891   if test "x$ac_ct_STRIP" = x; then
6892     STRIP=":"
6893   else
6894     case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&5
6899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet.  If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     STRIP=$ac_ct_STRIP
6905   fi
6906 else
6907   STRIP="$ac_cv_prog_STRIP"
6908 fi
6909
6910
6911 old_CC="$CC"
6912 old_CFLAGS="$CFLAGS"
6913
6914 # Set sane defaults for various variables
6915 test -z "$AR" && AR=ar
6916 test -z "$AR_FLAGS" && AR_FLAGS=cru
6917 test -z "$AS" && AS=as
6918 test -z "$CC" && CC=cc
6919 test -z "$LTCC" && LTCC=$CC
6920 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6921 test -z "$DLLTOOL" && DLLTOOL=dlltool
6922 test -z "$LD" && LD=ld
6923 test -z "$LN_S" && LN_S="ln -s"
6924 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6925 test -z "$NM" && NM=nm
6926 test -z "$SED" && SED=sed
6927 test -z "$OBJDUMP" && OBJDUMP=objdump
6928 test -z "$RANLIB" && RANLIB=:
6929 test -z "$STRIP" && STRIP=:
6930 test -z "$ac_objext" && ac_objext=o
6931
6932 # Determine commands to create old-style static archives.
6933 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6934 old_postinstall_cmds='chmod 644 $oldlib'
6935 old_postuninstall_cmds=
6936
6937 if test -n "$RANLIB"; then
6938   case $host_os in
6939   openbsd*)
6940     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6941     ;;
6942   *)
6943     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6944     ;;
6945   esac
6946   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6947 fi
6948
6949 for cc_temp in $compiler""; do
6950   case $cc_temp in
6951     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6952     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6953     \-*) ;;
6954     *) break;;
6955   esac
6956 done
6957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6958
6959
6960 # Only perform the check for file, if the check method requires it
6961 case $deplibs_check_method in
6962 file_magic*)
6963   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6964     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6965 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6966 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   case $MAGIC_CMD in
6970 [\\/*] |  ?:[\\/]*)
6971   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6972   ;;
6973 *)
6974   lt_save_MAGIC_CMD="$MAGIC_CMD"
6975   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6976   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6977   for ac_dir in $ac_dummy; do
6978     IFS="$lt_save_ifs"
6979     test -z "$ac_dir" && ac_dir=.
6980     if test -f $ac_dir/${ac_tool_prefix}file; then
6981       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6982       if test -n "$file_magic_test_file"; then
6983         case $deplibs_check_method in
6984         "file_magic "*)
6985           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6986           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6988             $EGREP "$file_magic_regex" > /dev/null; then
6989             :
6990           else
6991             cat <<EOF 1>&2
6992
6993 *** Warning: the command libtool uses to detect shared libraries,
6994 *** $file_magic_cmd, produces output that libtool cannot recognize.
6995 *** The result is that libtool may fail to recognize shared libraries
6996 *** as such.  This will affect the creation of libtool libraries that
6997 *** depend on shared libraries, but programs linked with such libtool
6998 *** libraries will work regardless of this problem.  Nevertheless, you
6999 *** may want to report the problem to your system manager and/or to
7000 *** bug-libtool@gnu.org
7001
7002 EOF
7003           fi ;;
7004         esac
7005       fi
7006       break
7007     fi
7008   done
7009   IFS="$lt_save_ifs"
7010   MAGIC_CMD="$lt_save_MAGIC_CMD"
7011   ;;
7012 esac
7013 fi
7014
7015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7016 if test -n "$MAGIC_CMD"; then
7017   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7018 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024 if test -z "$lt_cv_path_MAGIC_CMD"; then
7025   if test -n "$ac_tool_prefix"; then
7026     { echo "$as_me:$LINENO: checking for file" >&5
7027 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7028 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $MAGIC_CMD in
7032 [\\/*] |  ?:[\\/]*)
7033   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034   ;;
7035 *)
7036   lt_save_MAGIC_CMD="$MAGIC_CMD"
7037   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039   for ac_dir in $ac_dummy; do
7040     IFS="$lt_save_ifs"
7041     test -z "$ac_dir" && ac_dir=.
7042     if test -f $ac_dir/file; then
7043       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7044       if test -n "$file_magic_test_file"; then
7045         case $deplibs_check_method in
7046         "file_magic "*)
7047           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050             $EGREP "$file_magic_regex" > /dev/null; then
7051             :
7052           else
7053             cat <<EOF 1>&2
7054
7055 *** Warning: the command libtool uses to detect shared libraries,
7056 *** $file_magic_cmd, produces output that libtool cannot recognize.
7057 *** The result is that libtool may fail to recognize shared libraries
7058 *** as such.  This will affect the creation of libtool libraries that
7059 *** depend on shared libraries, but programs linked with such libtool
7060 *** libraries will work regardless of this problem.  Nevertheless, you
7061 *** may want to report the problem to your system manager and/or to
7062 *** bug-libtool@gnu.org
7063
7064 EOF
7065           fi ;;
7066         esac
7067       fi
7068       break
7069     fi
7070   done
7071   IFS="$lt_save_ifs"
7072   MAGIC_CMD="$lt_save_MAGIC_CMD"
7073   ;;
7074 esac
7075 fi
7076
7077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078 if test -n "$MAGIC_CMD"; then
7079   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7080 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7081 else
7082   { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7084 fi
7085
7086   else
7087     MAGIC_CMD=:
7088   fi
7089 fi
7090
7091   fi
7092   ;;
7093 esac
7094
7095 enable_dlopen=no
7096 enable_win32_dll=no
7097
7098 # Check whether --enable-libtool-lock was given.
7099 if test "${enable_libtool_lock+set}" = set; then
7100   enableval=$enable_libtool_lock;
7101 fi
7102
7103 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7104
7105
7106 # Check whether --with-pic was given.
7107 if test "${with_pic+set}" = set; then
7108   withval=$with_pic; pic_mode="$withval"
7109 else
7110   pic_mode=default
7111 fi
7112
7113 test -z "$pic_mode" && pic_mode=default
7114
7115 # Use C for the default configuration in the libtool script
7116 tagname=
7117 lt_save_CC="$CC"
7118 ac_ext=c
7119 ac_cpp='$CPP $CPPFLAGS'
7120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123
7124
7125 # Source file extension for C test sources.
7126 ac_ext=c
7127
7128 # Object file extension for compiled C test sources.
7129 objext=o
7130 objext=$objext
7131
7132 # Code to be used in simple compile tests
7133 lt_simple_compile_test_code="int some_variable = 0;\n"
7134
7135 # Code to be used in simple link tests
7136 lt_simple_link_test_code='int main(){return(0);}\n'
7137
7138
7139 # If no C compiler was specified, use CC.
7140 LTCC=${LTCC-"$CC"}
7141
7142 # If no C compiler flags were specified, use CFLAGS.
7143 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7144
7145 # Allow CC to be a program name with arguments.
7146 compiler=$CC
7147
7148
7149 # save warnings/boilerplate of simple test code
7150 ac_outfile=conftest.$ac_objext
7151 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7153 _lt_compiler_boilerplate=`cat conftest.err`
7154 $rm conftest*
7155
7156 ac_outfile=conftest.$ac_objext
7157 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7159 _lt_linker_boilerplate=`cat conftest.err`
7160 $rm conftest*
7161
7162
7163
7164 lt_prog_compiler_no_builtin_flag=
7165
7166 if test "$GCC" = yes; then
7167   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7168
7169
7170 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7171 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7172 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7173   echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175   lt_cv_prog_compiler_rtti_exceptions=no
7176   ac_outfile=conftest.$ac_objext
7177    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7178    lt_compiler_flag="-fno-rtti -fno-exceptions"
7179    # Insert the option either (1) after the last *FLAGS variable, or
7180    # (2) before a word containing "conftest.", or (3) at the end.
7181    # Note that $ac_compile itself does not contain backslashes and begins
7182    # with a dollar sign (not a hyphen), so the echo should work correctly.
7183    # The option is referenced via a variable to avoid confusing sed.
7184    lt_compile=`echo "$ac_compile" | $SED \
7185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7187    -e 's:$: $lt_compiler_flag:'`
7188    (eval echo "\"\$as_me:7188: $lt_compile\"" >&5)
7189    (eval "$lt_compile" 2>conftest.err)
7190    ac_status=$?
7191    cat conftest.err >&5
7192    echo "$as_me:7192: \$? = $ac_status" >&5
7193    if (exit $ac_status) && test -s "$ac_outfile"; then
7194      # The compiler can only warn and ignore the option if not recognized
7195      # So say no if there are warnings other than the usual output.
7196      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7197      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7198      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7199        lt_cv_prog_compiler_rtti_exceptions=yes
7200      fi
7201    fi
7202    $rm conftest*
7203
7204 fi
7205 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7206 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7207
7208 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7209     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7210 else
7211     :
7212 fi
7213
7214 fi
7215
7216 lt_prog_compiler_wl=
7217 lt_prog_compiler_pic=
7218 lt_prog_compiler_static=
7219
7220 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7222
7223   if test "$GCC" = yes; then
7224     lt_prog_compiler_wl='-Wl,'
7225     lt_prog_compiler_static='-static'
7226
7227     case $host_os in
7228       aix*)
7229       # All AIX code is PIC.
7230       if test "$host_cpu" = ia64; then
7231         # AIX 5 now supports IA64 processor
7232         lt_prog_compiler_static='-Bstatic'
7233       fi
7234       ;;
7235
7236     amigaos*)
7237       # FIXME: we need at least 68020 code to build shared libraries, but
7238       # adding the `-m68020' flag to GCC prevents building anything better,
7239       # like `-m68040'.
7240       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7241       ;;
7242
7243     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7244       # PIC is the default for these OSes.
7245       ;;
7246
7247     mingw* | pw32* | os2*)
7248       # This hack is so that the source file can tell whether it is being
7249       # built for inclusion in a dll (and should export symbols for example).
7250       lt_prog_compiler_pic='-DDLL_EXPORT'
7251       ;;
7252
7253     darwin* | rhapsody*)
7254       # PIC is the default on this platform
7255       # Common symbols not allowed in MH_DYLIB files
7256       lt_prog_compiler_pic='-fno-common'
7257       ;;
7258
7259     interix3*)
7260       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7261       # Instead, we relocate shared libraries at runtime.
7262       ;;
7263
7264     msdosdjgpp*)
7265       # Just because we use GCC doesn't mean we suddenly get shared libraries
7266       # on systems that don't support them.
7267       lt_prog_compiler_can_build_shared=no
7268       enable_shared=no
7269       ;;
7270
7271     sysv4*MP*)
7272       if test -d /usr/nec; then
7273         lt_prog_compiler_pic=-Kconform_pic
7274       fi
7275       ;;
7276
7277     hpux*)
7278       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7279       # not for PA HP-UX.
7280       case $host_cpu in
7281       hppa*64*|ia64*)
7282         # +Z the default
7283         ;;
7284       *)
7285         lt_prog_compiler_pic='-fPIC'
7286         ;;
7287       esac
7288       ;;
7289
7290     *)
7291       lt_prog_compiler_pic='-fPIC'
7292       ;;
7293     esac
7294   else
7295     # PORTME Check for flag to pass linker flags through the system compiler.
7296     case $host_os in
7297     aix*)
7298       lt_prog_compiler_wl='-Wl,'
7299       if test "$host_cpu" = ia64; then
7300         # AIX 5 now supports IA64 processor
7301         lt_prog_compiler_static='-Bstatic'
7302       else
7303         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7304       fi
7305       ;;
7306       darwin*)
7307         # PIC is the default on this platform
7308         # Common symbols not allowed in MH_DYLIB files
7309        case $cc_basename in
7310          xlc*)
7311          lt_prog_compiler_pic='-qnocommon'
7312          lt_prog_compiler_wl='-Wl,'
7313          ;;
7314        esac
7315        ;;
7316
7317     mingw* | pw32* | os2*)
7318       # This hack is so that the source file can tell whether it is being
7319       # built for inclusion in a dll (and should export symbols for example).
7320       lt_prog_compiler_pic='-DDLL_EXPORT'
7321       ;;
7322
7323     hpux9* | hpux10* | hpux11*)
7324       lt_prog_compiler_wl='-Wl,'
7325       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7326       # not for PA HP-UX.
7327       case $host_cpu in
7328       hppa*64*|ia64*)
7329         # +Z the default
7330         ;;
7331       *)
7332         lt_prog_compiler_pic='+Z'
7333         ;;
7334       esac
7335       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7336       lt_prog_compiler_static='${wl}-a ${wl}archive'
7337       ;;
7338
7339     irix5* | irix6* | nonstopux*)
7340       lt_prog_compiler_wl='-Wl,'
7341       # PIC (with -KPIC) is the default.
7342       lt_prog_compiler_static='-non_shared'
7343       ;;
7344
7345     newsos6)
7346       lt_prog_compiler_pic='-KPIC'
7347       lt_prog_compiler_static='-Bstatic'
7348       ;;
7349
7350     linux* | k*bsd*-gnu)
7351       case $cc_basename in
7352       icc* | ecc*)
7353         lt_prog_compiler_wl='-Wl,'
7354         lt_prog_compiler_pic='-KPIC'
7355         lt_prog_compiler_static='-static'
7356         ;;
7357       pgcc* | pgf77* | pgf90* | pgf95*)
7358         # Portland Group compilers (*not* the Pentium gcc compiler,
7359         # which looks to be a dead project)
7360         lt_prog_compiler_wl='-Wl,'
7361         lt_prog_compiler_pic='-fpic'
7362         lt_prog_compiler_static='-Bstatic'
7363         ;;
7364       ccc*)
7365         lt_prog_compiler_wl='-Wl,'
7366         # All Alpha code is PIC.
7367         lt_prog_compiler_static='-non_shared'
7368         ;;
7369       esac
7370       ;;
7371
7372     osf3* | osf4* | osf5*)
7373       lt_prog_compiler_wl='-Wl,'
7374       # All OSF/1 code is PIC.
7375       lt_prog_compiler_static='-non_shared'
7376       ;;
7377
7378     solaris*)
7379       lt_prog_compiler_pic='-KPIC'
7380       lt_prog_compiler_static='-Bstatic'
7381       case $cc_basename in
7382       f77* | f90* | f95*)
7383         lt_prog_compiler_wl='-Qoption ld ';;
7384       *)
7385         lt_prog_compiler_wl='-Wl,';;
7386       esac
7387       ;;
7388
7389     sunos4*)
7390       lt_prog_compiler_wl='-Qoption ld '
7391       lt_prog_compiler_pic='-PIC'
7392       lt_prog_compiler_static='-Bstatic'
7393       ;;
7394
7395     sysv4 | sysv4.2uw2* | sysv4.3*)
7396       lt_prog_compiler_wl='-Wl,'
7397       lt_prog_compiler_pic='-KPIC'
7398       lt_prog_compiler_static='-Bstatic'
7399       ;;
7400
7401     sysv4*MP*)
7402       if test -d /usr/nec ;then
7403         lt_prog_compiler_pic='-Kconform_pic'
7404         lt_prog_compiler_static='-Bstatic'
7405       fi
7406       ;;
7407
7408     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7409       lt_prog_compiler_wl='-Wl,'
7410       lt_prog_compiler_pic='-KPIC'
7411       lt_prog_compiler_static='-Bstatic'
7412       ;;
7413
7414     unicos*)
7415       lt_prog_compiler_wl='-Wl,'
7416       lt_prog_compiler_can_build_shared=no
7417       ;;
7418
7419     uts4*)
7420       lt_prog_compiler_pic='-pic'
7421       lt_prog_compiler_static='-Bstatic'
7422       ;;
7423
7424     *)
7425       lt_prog_compiler_can_build_shared=no
7426       ;;
7427     esac
7428   fi
7429
7430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7431 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7432
7433 #
7434 # Check to make sure the PIC flag actually works.
7435 #
7436 if test -n "$lt_prog_compiler_pic"; then
7437
7438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7440 if test "${lt_prog_compiler_pic_works+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   lt_prog_compiler_pic_works=no
7444   ac_outfile=conftest.$ac_objext
7445    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7446    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7447    # Insert the option either (1) after the last *FLAGS variable, or
7448    # (2) before a word containing "conftest.", or (3) at the end.
7449    # Note that $ac_compile itself does not contain backslashes and begins
7450    # with a dollar sign (not a hyphen), so the echo should work correctly.
7451    # The option is referenced via a variable to avoid confusing sed.
7452    lt_compile=`echo "$ac_compile" | $SED \
7453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7455    -e 's:$: $lt_compiler_flag:'`
7456    (eval echo "\"\$as_me:7456: $lt_compile\"" >&5)
7457    (eval "$lt_compile" 2>conftest.err)
7458    ac_status=$?
7459    cat conftest.err >&5
7460    echo "$as_me:7460: \$? = $ac_status" >&5
7461    if (exit $ac_status) && test -s "$ac_outfile"; then
7462      # The compiler can only warn and ignore the option if not recognized
7463      # So say no if there are warnings other than the usual output.
7464      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7465      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7466      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7467        lt_prog_compiler_pic_works=yes
7468      fi
7469    fi
7470    $rm conftest*
7471
7472 fi
7473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7474 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7475
7476 if test x"$lt_prog_compiler_pic_works" = xyes; then
7477     case $lt_prog_compiler_pic in
7478      "" | " "*) ;;
7479      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7480      esac
7481 else
7482     lt_prog_compiler_pic=
7483      lt_prog_compiler_can_build_shared=no
7484 fi
7485
7486 fi
7487 case $host_os in
7488   # For platforms which do not support PIC, -DPIC is meaningless:
7489   *djgpp*)
7490     lt_prog_compiler_pic=
7491     ;;
7492   *)
7493     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7494     ;;
7495 esac
7496
7497 #
7498 # Check to make sure the static flag actually works.
7499 #
7500 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7503 if test "${lt_prog_compiler_static_works+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   lt_prog_compiler_static_works=no
7507    save_LDFLAGS="$LDFLAGS"
7508    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7509    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7510    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7511      # The linker can only warn and ignore the option if not recognized
7512      # So say no if there are warnings
7513      if test -s conftest.err; then
7514        # Append any errors to the config.log.
7515        cat conftest.err 1>&5
7516        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7517        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7518        if diff conftest.exp conftest.er2 >/dev/null; then
7519          lt_prog_compiler_static_works=yes
7520        fi
7521      else
7522        lt_prog_compiler_static_works=yes
7523      fi
7524    fi
7525    $rm conftest*
7526    LDFLAGS="$save_LDFLAGS"
7527
7528 fi
7529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7530 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7531
7532 if test x"$lt_prog_compiler_static_works" = xyes; then
7533     :
7534 else
7535     lt_prog_compiler_static=
7536 fi
7537
7538
7539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7541 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   lt_cv_prog_compiler_c_o=no
7545    $rm -r conftest 2>/dev/null
7546    mkdir conftest
7547    cd conftest
7548    mkdir out
7549    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7550
7551    lt_compiler_flag="-o out/conftest2.$ac_objext"
7552    # Insert the option either (1) after the last *FLAGS variable, or
7553    # (2) before a word containing "conftest.", or (3) at the end.
7554    # Note that $ac_compile itself does not contain backslashes and begins
7555    # with a dollar sign (not a hyphen), so the echo should work correctly.
7556    lt_compile=`echo "$ac_compile" | $SED \
7557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7559    -e 's:$: $lt_compiler_flag:'`
7560    (eval echo "\"\$as_me:7560: $lt_compile\"" >&5)
7561    (eval "$lt_compile" 2>out/conftest.err)
7562    ac_status=$?
7563    cat out/conftest.err >&5
7564    echo "$as_me:7564: \$? = $ac_status" >&5
7565    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7566    then
7567      # The compiler can only warn and ignore the option if not recognized
7568      # So say no if there are warnings
7569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7570      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7571      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7572        lt_cv_prog_compiler_c_o=yes
7573      fi
7574    fi
7575    chmod u+w . 2>&5
7576    $rm conftest*
7577    # SGI C++ compiler will create directory out/ii_files/ for
7578    # template instantiation
7579    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7580    $rm out/* && rmdir out
7581    cd ..
7582    rmdir conftest
7583    $rm conftest*
7584
7585 fi
7586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7588
7589
7590 hard_links="nottested"
7591 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7592   # do not overwrite the value of need_locks provided by the user
7593   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7595   hard_links=yes
7596   $rm conftest*
7597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7598   touch conftest.a
7599   ln conftest.a conftest.b 2>&5 || hard_links=no
7600   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7601   { echo "$as_me:$LINENO: result: $hard_links" >&5
7602 echo "${ECHO_T}$hard_links" >&6; }
7603   if test "$hard_links" = no; then
7604     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7606     need_locks=warn
7607   fi
7608 else
7609   need_locks=no
7610 fi
7611
7612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7614
7615   runpath_var=
7616   allow_undefined_flag=
7617   enable_shared_with_static_runtimes=no
7618   archive_cmds=
7619   archive_expsym_cmds=
7620   old_archive_From_new_cmds=
7621   old_archive_from_expsyms_cmds=
7622   export_dynamic_flag_spec=
7623   whole_archive_flag_spec=
7624   thread_safe_flag_spec=
7625   hardcode_libdir_flag_spec=
7626   hardcode_libdir_flag_spec_ld=
7627   hardcode_libdir_separator=
7628   hardcode_direct=no
7629   hardcode_minus_L=no
7630   hardcode_shlibpath_var=unsupported
7631   link_all_deplibs=unknown
7632   hardcode_automatic=no
7633   module_cmds=
7634   module_expsym_cmds=
7635   always_export_symbols=no
7636   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7637   # include_expsyms should be a list of space-separated symbols to be *always*
7638   # included in the symbol list
7639   include_expsyms=
7640   # exclude_expsyms can be an extended regexp of symbols to exclude
7641   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7642   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7643   # as well as any symbol that contains `d'.
7644   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7645   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7646   # platforms (ab)use it in PIC code, but their linkers get confused if
7647   # the symbol is explicitly referenced.  Since portable code cannot
7648   # rely on this symbol name, it's probably fine to never include it in
7649   # preloaded symbol tables.
7650   extract_expsyms_cmds=
7651   # Just being paranoid about ensuring that cc_basename is set.
7652   for cc_temp in $compiler""; do
7653   case $cc_temp in
7654     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7655     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7656     \-*) ;;
7657     *) break;;
7658   esac
7659 done
7660 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7661
7662   case $host_os in
7663   cygwin* | mingw* | pw32*)
7664     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7665     # When not using gcc, we currently assume that we are using
7666     # Microsoft Visual C++.
7667     if test "$GCC" != yes; then
7668       with_gnu_ld=no
7669     fi
7670     ;;
7671   interix*)
7672     # we just hope/assume this is gcc and not c89 (= MSVC++)
7673     with_gnu_ld=yes
7674     ;;
7675   openbsd*)
7676     with_gnu_ld=no
7677     ;;
7678   esac
7679
7680   ld_shlibs=yes
7681   if test "$with_gnu_ld" = yes; then
7682     # If archive_cmds runs LD, not CC, wlarc should be empty
7683     wlarc='${wl}'
7684
7685     # Set some defaults for GNU ld with shared library support. These
7686     # are reset later if shared libraries are not supported. Putting them
7687     # here allows them to be overridden if necessary.
7688     runpath_var=LD_RUN_PATH
7689     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7690     export_dynamic_flag_spec='${wl}--export-dynamic'
7691     # ancient GNU ld didn't support --whole-archive et. al.
7692     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7693         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7694       else
7695         whole_archive_flag_spec=
7696     fi
7697     supports_anon_versioning=no
7698     case `$LD -v 2>/dev/null` in
7699       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7700       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7701       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7702       *\ 2.11.*) ;; # other 2.11 versions
7703       *) supports_anon_versioning=yes ;;
7704     esac
7705
7706     # See if GNU ld supports shared libraries.
7707     case $host_os in
7708     aix3* | aix4* | aix5*)
7709       # On AIX/PPC, the GNU linker is very broken
7710       if test "$host_cpu" != ia64; then
7711         ld_shlibs=no
7712         cat <<EOF 1>&2
7713
7714 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7715 *** to be unable to reliably create shared libraries on AIX.
7716 *** Therefore, libtool is disabling shared libraries support.  If you
7717 *** really care for shared libraries, you may want to modify your PATH
7718 *** so that a non-GNU linker is found, and then restart.
7719
7720 EOF
7721       fi
7722       ;;
7723
7724     amigaos*)
7725       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)'
7726       hardcode_libdir_flag_spec='-L$libdir'
7727       hardcode_minus_L=yes
7728
7729       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7730       # that the semantics of dynamic libraries on AmigaOS, at least up
7731       # to version 4, is to share data among multiple programs linked
7732       # with the same dynamic library.  Since this doesn't match the
7733       # behavior of shared libraries on other platforms, we can't use
7734       # them.
7735       ld_shlibs=no
7736       ;;
7737
7738     beos*)
7739       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7740         allow_undefined_flag=unsupported
7741         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7742         # support --undefined.  This deserves some investigation.  FIXME
7743         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7744       else
7745         ld_shlibs=no
7746       fi
7747       ;;
7748
7749     cygwin* | mingw* | pw32*)
7750       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7751       # as there is no search path for DLLs.
7752       hardcode_libdir_flag_spec='-L$libdir'
7753       allow_undefined_flag=unsupported
7754       always_export_symbols=no
7755       enable_shared_with_static_runtimes=yes
7756       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7757
7758       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7760         # If the export-symbols file already is a .def file (1st line
7761         # is EXPORTS), use it as is; otherwise, prepend...
7762         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7763           cp $export_symbols $output_objdir/$soname.def;
7764         else
7765           echo EXPORTS > $output_objdir/$soname.def;
7766           cat $export_symbols >> $output_objdir/$soname.def;
7767         fi~
7768         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7769       else
7770         ld_shlibs=no
7771       fi
7772       ;;
7773
7774     interix3*)
7775       hardcode_direct=no
7776       hardcode_shlibpath_var=no
7777       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7778       export_dynamic_flag_spec='${wl}-E'
7779       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7780       # Instead, shared libraries are loaded at an image base (0x10000000 by
7781       # default) and relocated if they conflict, which is a slow very memory
7782       # consuming and fragmenting process.  To avoid this, we pick a random,
7783       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7784       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7785       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7786       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'
7787       ;;
7788
7789     linux* | k*bsd*-gnu)
7790       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791         tmp_addflag=
7792         case $cc_basename,$host_cpu in
7793         pgcc*)                          # Portland Group C compiler
7794           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'
7795           tmp_addflag=' $pic_flag'
7796           ;;
7797         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7798           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'
7799           tmp_addflag=' $pic_flag -Mnomain' ;;
7800         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7801           tmp_addflag=' -i_dynamic' ;;
7802         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7803           tmp_addflag=' -i_dynamic -nofor_main' ;;
7804         ifc* | ifort*)                  # Intel Fortran compiler
7805           tmp_addflag=' -nofor_main' ;;
7806         esac
7807         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808
7809         if test $supports_anon_versioning = yes; then
7810           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7811   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7812   $echo "local: *; };" >> $output_objdir/$libname.ver~
7813           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7814         fi
7815         link_all_deplibs=no
7816       else
7817         ld_shlibs=no
7818       fi
7819       ;;
7820
7821     netbsd* | netbsdelf*-gnu)
7822       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7823         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7824         wlarc=
7825       else
7826         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7828       fi
7829       ;;
7830
7831     solaris*)
7832       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7833         ld_shlibs=no
7834         cat <<EOF 1>&2
7835
7836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7837 *** create shared libraries on Solaris systems.  Therefore, libtool
7838 *** is disabling shared libraries support.  We urge you to upgrade GNU
7839 *** binutils to release 2.9.1 or newer.  Another option is to modify
7840 *** your PATH or compiler configuration so that the native linker is
7841 *** used, and then restart.
7842
7843 EOF
7844       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7847       else
7848         ld_shlibs=no
7849       fi
7850       ;;
7851
7852     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7853       case `$LD -v 2>&1` in
7854         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7855         ld_shlibs=no
7856         cat <<_LT_EOF 1>&2
7857
7858 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7859 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7860 *** is disabling shared libraries support.  We urge you to upgrade GNU
7861 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7862 *** your PATH or compiler configuration so that the native linker is
7863 *** used, and then restart.
7864
7865 _LT_EOF
7866         ;;
7867         *)
7868           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7869             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7870             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7871             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7872           else
7873             ld_shlibs=no
7874           fi
7875         ;;
7876       esac
7877       ;;
7878
7879     sunos4*)
7880       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7881       wlarc=
7882       hardcode_direct=yes
7883       hardcode_shlibpath_var=no
7884       ;;
7885
7886     *)
7887       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7888         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7890       else
7891         ld_shlibs=no
7892       fi
7893       ;;
7894     esac
7895
7896     if test "$ld_shlibs" = no; then
7897       runpath_var=
7898       hardcode_libdir_flag_spec=
7899       export_dynamic_flag_spec=
7900       whole_archive_flag_spec=
7901     fi
7902   else
7903     # PORTME fill in a description of your system's linker (not GNU ld)
7904     case $host_os in
7905     aix3*)
7906       allow_undefined_flag=unsupported
7907       always_export_symbols=yes
7908       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'
7909       # Note: this linker hardcodes the directories in LIBPATH if there
7910       # are no directories specified by -L.
7911       hardcode_minus_L=yes
7912       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7913         # Neither direct hardcoding nor static linking is supported with a
7914         # broken collect2.
7915         hardcode_direct=unsupported
7916       fi
7917       ;;
7918
7919     aix4* | aix5*)
7920       if test "$host_cpu" = ia64; then
7921         # On IA64, the linker does run time linking by default, so we don't
7922         # have to do anything special.
7923         aix_use_runtimelinking=no
7924         exp_sym_flag='-Bexport'
7925         no_entry_flag=""
7926       else
7927         # If we're using GNU nm, then we don't want the "-C" option.
7928         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7929         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7930           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'
7931         else
7932           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'
7933         fi
7934         aix_use_runtimelinking=no
7935
7936         # Test if we are trying to use run time linking or normal
7937         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7938         # need to do runtime linking.
7939         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7940           for ld_flag in $LDFLAGS; do
7941           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7942             aix_use_runtimelinking=yes
7943             break
7944           fi
7945           done
7946           ;;
7947         esac
7948
7949         exp_sym_flag='-bexport'
7950         no_entry_flag='-bnoentry'
7951       fi
7952
7953       # When large executables or shared objects are built, AIX ld can
7954       # have problems creating the table of contents.  If linking a library
7955       # or program results in "error TOC overflow" add -mminimal-toc to
7956       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7957       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7958
7959       archive_cmds=''
7960       hardcode_direct=yes
7961       hardcode_libdir_separator=':'
7962       link_all_deplibs=yes
7963
7964       if test "$GCC" = yes; then
7965         case $host_os in aix4.[012]|aix4.[012].*)
7966         # We only want to do this on AIX 4.2 and lower, the check
7967         # below for broken collect2 doesn't work under 4.3+
7968           collect2name=`${CC} -print-prog-name=collect2`
7969           if test -f "$collect2name" && \
7970            strings "$collect2name" | grep resolve_lib_name >/dev/null
7971           then
7972           # We have reworked collect2
7973           hardcode_direct=yes
7974           else
7975           # We have old collect2
7976           hardcode_direct=unsupported
7977           # It fails to find uninstalled libraries when the uninstalled
7978           # path is not listed in the libpath.  Setting hardcode_minus_L
7979           # to unsupported forces relinking
7980           hardcode_minus_L=yes
7981           hardcode_libdir_flag_spec='-L$libdir'
7982           hardcode_libdir_separator=
7983           fi
7984           ;;
7985         esac
7986         shared_flag='-shared'
7987         if test "$aix_use_runtimelinking" = yes; then
7988           shared_flag="$shared_flag "'${wl}-G'
7989         fi
7990       else
7991         # not using gcc
7992         if test "$host_cpu" = ia64; then
7993         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7994         # chokes on -Wl,-G. The following line is correct:
7995           shared_flag='-G'
7996         else
7997           if test "$aix_use_runtimelinking" = yes; then
7998             shared_flag='${wl}-G'
7999           else
8000             shared_flag='${wl}-bM:SRE'
8001           fi
8002         fi
8003       fi
8004
8005       # It seems that -bexpall does not export symbols beginning with
8006       # underscore (_), so it is better to generate a list of symbols to export.
8007       always_export_symbols=yes
8008       if test "$aix_use_runtimelinking" = yes; then
8009         # Warning - without using the other runtime loading flags (-brtl),
8010         # -berok will link without error, but may produce a broken library.
8011         allow_undefined_flag='-berok'
8012        # Determine the default libpath from the value encoded in an empty executable.
8013        cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019
8020 int
8021 main ()
8022 {
8023
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032   *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035   (eval "$ac_link") 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } && {
8042          test -z "$ac_c_werror_flag" ||
8043          test ! -s conftest.err
8044        } && test -s conftest$ac_exeext &&
8045        $as_test_x conftest$ac_exeext; then
8046
8047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8048 }'`
8049 # Check for a 64-bit object if we didn't find anything.
8050 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; }
8051 }'`; fi
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056
8057 fi
8058
8059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060       conftest$ac_exeext conftest.$ac_ext
8061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8062
8063        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8064         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"
8065        else
8066         if test "$host_cpu" = ia64; then
8067           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8068           allow_undefined_flag="-z nodefs"
8069           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"
8070         else
8071          # Determine the default libpath from the value encoded in an empty executable.
8072          cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078
8079 int
8080 main ()
8081 {
8082
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8089 case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_link") 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } && {
8101          test -z "$ac_c_werror_flag" ||
8102          test ! -s conftest.err
8103        } && test -s conftest$ac_exeext &&
8104        $as_test_x conftest$ac_exeext; then
8105
8106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8107 }'`
8108 # Check for a 64-bit object if we didn't find anything.
8109 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; }
8110 }'`; fi
8111 else
8112   echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115
8116 fi
8117
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119       conftest$ac_exeext conftest.$ac_ext
8120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8121
8122          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8123           # Warning - without using the other run time loading flags,
8124           # -berok will link without error, but may produce a broken library.
8125           no_undefined_flag=' ${wl}-bernotok'
8126           allow_undefined_flag=' ${wl}-berok'
8127           # Exported symbols can be pulled into shared objects from archives
8128           whole_archive_flag_spec='$convenience'
8129           archive_cmds_need_lc=yes
8130           # This is similar to how AIX traditionally builds its shared libraries.
8131           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'
8132         fi
8133       fi
8134       ;;
8135
8136     amigaos*)
8137       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)'
8138       hardcode_libdir_flag_spec='-L$libdir'
8139       hardcode_minus_L=yes
8140       # see comment about different semantics on the GNU ld section
8141       ld_shlibs=no
8142       ;;
8143
8144     bsdi[45]*)
8145       export_dynamic_flag_spec=-rdynamic
8146       ;;
8147
8148     cygwin* | mingw* | pw32*)
8149       # When not using gcc, we currently assume that we are using
8150       # Microsoft Visual C++.
8151       # hardcode_libdir_flag_spec is actually meaningless, as there is
8152       # no search path for DLLs.
8153       hardcode_libdir_flag_spec=' '
8154       allow_undefined_flag=unsupported
8155       # Tell ltmain to make .lib files, not .a files.
8156       libext=lib
8157       # Tell ltmain to make .dll files, not .so files.
8158       shrext_cmds=".dll"
8159       # FIXME: Setting linknames here is a bad hack.
8160       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8161       # The linker will automatically build a .lib file if we build a DLL.
8162       old_archive_From_new_cmds='true'
8163       # FIXME: Should let the user specify the lib program.
8164       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8165       fix_srcfile_path='`cygpath -w "$srcfile"`'
8166       enable_shared_with_static_runtimes=yes
8167       ;;
8168
8169     darwin* | rhapsody*)
8170       case $host_os in
8171         rhapsody* | darwin1.[012])
8172          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8173          ;;
8174        *) # Darwin 1.3 on
8175          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8176            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8177          else
8178            case ${MACOSX_DEPLOYMENT_TARGET} in
8179              10.[012])
8180                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8181                ;;
8182              10.*)
8183                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8184                ;;
8185            esac
8186          fi
8187          ;;
8188       esac
8189       archive_cmds_need_lc=no
8190       hardcode_direct=no
8191       hardcode_automatic=yes
8192       hardcode_shlibpath_var=unsupported
8193       whole_archive_flag_spec=''
8194       link_all_deplibs=yes
8195     if test "$GCC" = yes ; then
8196         output_verbose_link_cmd='echo'
8197         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8198       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8199       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8200       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}'
8201       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}'
8202     else
8203       case $cc_basename in
8204         xlc*)
8205          output_verbose_link_cmd='echo'
8206          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8207          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8208           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8209          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}'
8210           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}'
8211           ;;
8212        *)
8213          ld_shlibs=no
8214           ;;
8215       esac
8216     fi
8217       ;;
8218
8219     dgux*)
8220       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8221       hardcode_libdir_flag_spec='-L$libdir'
8222       hardcode_shlibpath_var=no
8223       ;;
8224
8225     freebsd1*)
8226       ld_shlibs=no
8227       ;;
8228
8229     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8230     # support.  Future versions do this automatically, but an explicit c++rt0.o
8231     # does not break anything, and helps significantly (at the cost of a little
8232     # extra space).
8233     freebsd2.2*)
8234       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8235       hardcode_libdir_flag_spec='-R$libdir'
8236       hardcode_direct=yes
8237       hardcode_shlibpath_var=no
8238       ;;
8239
8240     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8241     freebsd2*)
8242       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243       hardcode_direct=yes
8244       hardcode_minus_L=yes
8245       hardcode_shlibpath_var=no
8246       ;;
8247
8248     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8249     freebsd* | dragonfly*)
8250       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8251       hardcode_libdir_flag_spec='-R$libdir'
8252       hardcode_direct=yes
8253       hardcode_shlibpath_var=no
8254       ;;
8255
8256     hpux9*)
8257       if test "$GCC" = yes; then
8258         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'
8259       else
8260         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'
8261       fi
8262       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8263       hardcode_libdir_separator=:
8264       hardcode_direct=yes
8265
8266       # hardcode_minus_L: Not really in the search PATH,
8267       # but as the default location of the library.
8268       hardcode_minus_L=yes
8269       export_dynamic_flag_spec='${wl}-E'
8270       ;;
8271
8272     hpux10*)
8273       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8274         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8275       else
8276         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8277       fi
8278       if test "$with_gnu_ld" = no; then
8279         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8280         hardcode_libdir_separator=:
8281
8282         hardcode_direct=yes
8283         export_dynamic_flag_spec='${wl}-E'
8284
8285         # hardcode_minus_L: Not really in the search PATH,
8286         # but as the default location of the library.
8287         hardcode_minus_L=yes
8288       fi
8289       ;;
8290
8291     hpux11*)
8292       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8293         case $host_cpu in
8294         hppa*64*)
8295           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8296           ;;
8297         ia64*)
8298           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8299           ;;
8300         *)
8301           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8302           ;;
8303         esac
8304       else
8305         case $host_cpu in
8306         hppa*64*)
8307           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8308           ;;
8309         ia64*)
8310           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8311           ;;
8312         *)
8313           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8314           ;;
8315         esac
8316       fi
8317       if test "$with_gnu_ld" = no; then
8318         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8319         hardcode_libdir_separator=:
8320
8321         case $host_cpu in
8322         hppa*64*|ia64*)
8323           hardcode_libdir_flag_spec_ld='+b $libdir'
8324           hardcode_direct=no
8325           hardcode_shlibpath_var=no
8326           ;;
8327         *)
8328           hardcode_direct=yes
8329           export_dynamic_flag_spec='${wl}-E'
8330
8331           # hardcode_minus_L: Not really in the search PATH,
8332           # but as the default location of the library.
8333           hardcode_minus_L=yes
8334           ;;
8335         esac
8336       fi
8337       ;;
8338
8339     irix5* | irix6* | nonstopux*)
8340       if test "$GCC" = yes; then
8341         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'
8342       else
8343         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'
8344         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8345       fi
8346       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8347       hardcode_libdir_separator=:
8348       link_all_deplibs=yes
8349       ;;
8350
8351     netbsd* | netbsdelf*-gnu)
8352       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8353         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8354       else
8355         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8356       fi
8357       hardcode_libdir_flag_spec='-R$libdir'
8358       hardcode_direct=yes
8359       hardcode_shlibpath_var=no
8360       ;;
8361
8362     newsos6)
8363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364       hardcode_direct=yes
8365       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366       hardcode_libdir_separator=:
8367       hardcode_shlibpath_var=no
8368       ;;
8369
8370     openbsd*)
8371       hardcode_direct=yes
8372       hardcode_shlibpath_var=no
8373       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8374         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8375         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8376         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8377         export_dynamic_flag_spec='${wl}-E'
8378       else
8379        case $host_os in
8380          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8381            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8382            hardcode_libdir_flag_spec='-R$libdir'
8383            ;;
8384          *)
8385            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8386            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8387            ;;
8388        esac
8389       fi
8390       ;;
8391
8392     os2*)
8393       hardcode_libdir_flag_spec='-L$libdir'
8394       hardcode_minus_L=yes
8395       allow_undefined_flag=unsupported
8396       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'
8397       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8398       ;;
8399
8400     osf3*)
8401       if test "$GCC" = yes; then
8402         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8403         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'
8404       else
8405         allow_undefined_flag=' -expect_unresolved \*'
8406         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'
8407       fi
8408       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8409       hardcode_libdir_separator=:
8410       ;;
8411
8412     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8413       if test "$GCC" = yes; then
8414         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8415         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'
8416         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417       else
8418         allow_undefined_flag=' -expect_unresolved \*'
8419         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'
8420         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8421         $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'
8422
8423         # Both c and cxx compiler support -rpath directly
8424         hardcode_libdir_flag_spec='-rpath $libdir'
8425       fi
8426       hardcode_libdir_separator=:
8427       ;;
8428
8429     solaris*)
8430       no_undefined_flag=' -z text'
8431       if test "$GCC" = yes; then
8432         wlarc='${wl}'
8433         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8434         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8435           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8436       else
8437         wlarc=''
8438         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8440         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8441       fi
8442       hardcode_libdir_flag_spec='-R$libdir'
8443       hardcode_shlibpath_var=no
8444       case $host_os in
8445       solaris2.[0-5] | solaris2.[0-5].*) ;;
8446       *)
8447         # The compiler driver will combine linker options so we
8448         # cannot just pass the convience library names through
8449         # without $wl, iff we do not link with $LD.
8450         # Luckily, gcc supports the same syntax we need for Sun Studio.
8451         # Supported since Solaris 2.6 (maybe 2.5.1?)
8452         case $wlarc in
8453         '')
8454           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8455         *)
8456           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' ;;
8457         esac ;;
8458       esac
8459       link_all_deplibs=yes
8460       ;;
8461
8462     sunos4*)
8463       if test "x$host_vendor" = xsequent; then
8464         # Use $CC to link under sequent, because it throws in some extra .o
8465         # files that make .init and .fini sections work.
8466         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8467       else
8468         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8469       fi
8470       hardcode_libdir_flag_spec='-L$libdir'
8471       hardcode_direct=yes
8472       hardcode_minus_L=yes
8473       hardcode_shlibpath_var=no
8474       ;;
8475
8476     sysv4)
8477       case $host_vendor in
8478         sni)
8479           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480           hardcode_direct=yes # is this really true???
8481         ;;
8482         siemens)
8483           ## LD is ld it makes a PLAMLIB
8484           ## CC just makes a GrossModule.
8485           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8486           reload_cmds='$CC -r -o $output$reload_objs'
8487           hardcode_direct=no
8488         ;;
8489         motorola)
8490           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8491           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8492         ;;
8493       esac
8494       runpath_var='LD_RUN_PATH'
8495       hardcode_shlibpath_var=no
8496       ;;
8497
8498     sysv4.3*)
8499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500       hardcode_shlibpath_var=no
8501       export_dynamic_flag_spec='-Bexport'
8502       ;;
8503
8504     sysv4*MP*)
8505       if test -d /usr/nec; then
8506         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507         hardcode_shlibpath_var=no
8508         runpath_var=LD_RUN_PATH
8509         hardcode_runpath_var=yes
8510         ld_shlibs=yes
8511       fi
8512       ;;
8513
8514     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8515       no_undefined_flag='${wl}-z,text'
8516       archive_cmds_need_lc=no
8517       hardcode_shlibpath_var=no
8518       runpath_var='LD_RUN_PATH'
8519
8520       if test "$GCC" = yes; then
8521         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8522         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523       else
8524         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8525         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8526       fi
8527       ;;
8528
8529     sysv5* | sco3.2v5* | sco5v6*)
8530       # Note: We can NOT use -z defs as we might desire, because we do not
8531       # link with -lc, and that would cause any symbols used from libc to
8532       # always be unresolved, which means just about no library would
8533       # ever link correctly.  If we're not using GNU ld we use -z text
8534       # though, which does catch some bad symbols but isn't as heavy-handed
8535       # as -z defs.
8536       no_undefined_flag='${wl}-z,text'
8537       allow_undefined_flag='${wl}-z,nodefs'
8538       archive_cmds_need_lc=no
8539       hardcode_shlibpath_var=no
8540       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8541       hardcode_libdir_separator=':'
8542       link_all_deplibs=yes
8543       export_dynamic_flag_spec='${wl}-Bexport'
8544       runpath_var='LD_RUN_PATH'
8545
8546       if test "$GCC" = yes; then
8547         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8548         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549       else
8550         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8551         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552       fi
8553       ;;
8554
8555     uts4*)
8556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557       hardcode_libdir_flag_spec='-L$libdir'
8558       hardcode_shlibpath_var=no
8559       ;;
8560
8561     *)
8562       ld_shlibs=no
8563       ;;
8564     esac
8565   fi
8566
8567 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8568 echo "${ECHO_T}$ld_shlibs" >&6; }
8569 test "$ld_shlibs" = no && can_build_shared=no
8570
8571 #
8572 # Do we need to explicitly link libc?
8573 #
8574 case "x$archive_cmds_need_lc" in
8575 x|xyes)
8576   # Assume -lc should be added
8577   archive_cmds_need_lc=yes
8578
8579   if test "$enable_shared" = yes && test "$GCC" = yes; then
8580     case $archive_cmds in
8581     *'~'*)
8582       # FIXME: we may have to deal with multi-command sequences.
8583       ;;
8584     '$CC '*)
8585       # Test whether the compiler implicitly links with -lc since on some
8586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8587       # to ld, don't add -lc before -lgcc.
8588       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8590       $rm conftest*
8591       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8592
8593       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594   (eval $ac_compile) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } 2>conftest.err; then
8598         soname=conftest
8599         lib=conftest
8600         libobjs=conftest.$ac_objext
8601         deplibs=
8602         wl=$lt_prog_compiler_wl
8603         pic_flag=$lt_prog_compiler_pic
8604         compiler_flags=-v
8605         linker_flags=-v
8606         verstring=
8607         output_objdir=.
8608         libname=conftest
8609         lt_save_allow_undefined_flag=$allow_undefined_flag
8610         allow_undefined_flag=
8611         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8612   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }
8616         then
8617           archive_cmds_need_lc=no
8618         else
8619           archive_cmds_need_lc=yes
8620         fi
8621         allow_undefined_flag=$lt_save_allow_undefined_flag
8622       else
8623         cat conftest.err 1>&5
8624       fi
8625       $rm conftest*
8626       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8627 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8628       ;;
8629     esac
8630   fi
8631   ;;
8632 esac
8633
8634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8636 library_names_spec=
8637 libname_spec='lib$name'
8638 soname_spec=
8639 shrext_cmds=".so"
8640 postinstall_cmds=
8641 postuninstall_cmds=
8642 finish_cmds=
8643 finish_eval=
8644 shlibpath_var=
8645 shlibpath_overrides_runpath=unknown
8646 version_type=none
8647 dynamic_linker="$host_os ld.so"
8648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8649 if test "$GCC" = yes; then
8650   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8651   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8652     # if the path contains ";" then we assume it to be the separator
8653     # otherwise default to the standard path separator (i.e. ":") - it is
8654     # assumed that no part of a normal pathname contains ";" but that should
8655     # okay in the real world where ";" in dirpaths is itself problematic.
8656     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8657   else
8658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8659   fi
8660 else
8661   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8662 fi
8663 need_lib_prefix=unknown
8664 hardcode_into_libs=no
8665
8666 # when you set need_version to no, make sure it does not cause -set_version
8667 # flags to be left without arguments
8668 need_version=unknown
8669
8670 case $host_os in
8671 aix3*)
8672   version_type=linux
8673   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8674   shlibpath_var=LIBPATH
8675
8676   # AIX 3 has no versioning support, so we append a major version to the name.
8677   soname_spec='${libname}${release}${shared_ext}$major'
8678   ;;
8679
8680 aix4* | aix5*)
8681   version_type=linux
8682   need_lib_prefix=no
8683   need_version=no
8684   hardcode_into_libs=yes
8685   if test "$host_cpu" = ia64; then
8686     # AIX 5 supports IA64
8687     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8688     shlibpath_var=LD_LIBRARY_PATH
8689   else
8690     # With GCC up to 2.95.x, collect2 would create an import file
8691     # for dependence libraries.  The import file would start with
8692     # the line `#! .'.  This would cause the generated library to
8693     # depend on `.', always an invalid library.  This was fixed in
8694     # development snapshots of GCC prior to 3.0.
8695     case $host_os in
8696       aix4 | aix4.[01] | aix4.[01].*)
8697       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8698            echo ' yes '
8699            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8700         :
8701       else
8702         can_build_shared=no
8703       fi
8704       ;;
8705     esac
8706     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8707     # soname into executable. Probably we can add versioning support to
8708     # collect2, so additional links can be useful in future.
8709     if test "$aix_use_runtimelinking" = yes; then
8710       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8711       # instead of lib<name>.a to let people know that these are not
8712       # typical AIX shared libraries.
8713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714     else
8715       # We preserve .a as extension for shared libraries through AIX4.2
8716       # and later when we are not doing run time linking.
8717       library_names_spec='${libname}${release}.a $libname.a'
8718       soname_spec='${libname}${release}${shared_ext}$major'
8719     fi
8720     shlibpath_var=LIBPATH
8721   fi
8722   ;;
8723
8724 amigaos*)
8725   library_names_spec='$libname.ixlibrary $libname.a'
8726   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8727   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'
8728   ;;
8729
8730 beos*)
8731   library_names_spec='${libname}${shared_ext}'
8732   dynamic_linker="$host_os ld.so"
8733   shlibpath_var=LIBRARY_PATH
8734   ;;
8735
8736 bsdi[45]*)
8737   version_type=linux
8738   need_version=no
8739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740   soname_spec='${libname}${release}${shared_ext}$major'
8741   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8742   shlibpath_var=LD_LIBRARY_PATH
8743   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8744   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8745   # the default ld.so.conf also contains /usr/contrib/lib and
8746   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8747   # libtool to hard-code these into programs
8748   ;;
8749
8750 cygwin* | mingw* | pw32*)
8751   version_type=windows
8752   shrext_cmds=".dll"
8753   need_version=no
8754   need_lib_prefix=no
8755
8756   case $GCC,$host_os in
8757   yes,cygwin* | yes,mingw* | yes,pw32*)
8758     library_names_spec='$libname.dll.a'
8759     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8760     postinstall_cmds='base_file=`basename \${file}`~
8761       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8762       dldir=$destdir/`dirname \$dlpath`~
8763       test -d \$dldir || mkdir -p \$dldir~
8764       $install_prog $dir/$dlname \$dldir/$dlname~
8765       chmod a+x \$dldir/$dlname'
8766     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8767       dlpath=$dir/\$dldll~
8768        $rm \$dlpath'
8769     shlibpath_overrides_runpath=yes
8770
8771     case $host_os in
8772     cygwin*)
8773       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8774       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8776       ;;
8777     mingw*)
8778       # MinGW DLLs use traditional 'lib' prefix
8779       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8780       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8781       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8782         # It is most probably a Windows format PATH printed by
8783         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8784         # path with ; separators, and with drive letters. We can handle the
8785         # drive letters (cygwin fileutils understands them), so leave them,
8786         # especially as we might pass files found there to a mingw objdump,
8787         # which wouldn't understand a cygwinified path. Ahh.
8788         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8789       else
8790         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8791       fi
8792       ;;
8793     pw32*)
8794       # pw32 DLLs use 'pw' prefix rather than 'lib'
8795       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796       ;;
8797     esac
8798     ;;
8799
8800   *)
8801     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8802     ;;
8803   esac
8804   dynamic_linker='Win32 ld.exe'
8805   # FIXME: first we should search . and the directory the executable is in
8806   shlibpath_var=PATH
8807   ;;
8808
8809 darwin* | rhapsody*)
8810   dynamic_linker="$host_os dyld"
8811   version_type=darwin
8812   need_lib_prefix=no
8813   need_version=no
8814   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8815   soname_spec='${libname}${release}${major}$shared_ext'
8816   shlibpath_overrides_runpath=yes
8817   shlibpath_var=DYLD_LIBRARY_PATH
8818   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8819   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8820   if test "$GCC" = yes; then
8821     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"`
8822   else
8823     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8824   fi
8825   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8826   ;;
8827
8828 dgux*)
8829   version_type=linux
8830   need_lib_prefix=no
8831   need_version=no
8832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8833   soname_spec='${libname}${release}${shared_ext}$major'
8834   shlibpath_var=LD_LIBRARY_PATH
8835   ;;
8836
8837 freebsd1*)
8838   dynamic_linker=no
8839   ;;
8840
8841 freebsd* | dragonfly*)
8842   # DragonFly does not have aout.  When/if they implement a new
8843   # versioning mechanism, adjust this.
8844   if test -x /usr/bin/objformat; then
8845     objformat=`/usr/bin/objformat`
8846   else
8847     case $host_os in
8848     freebsd[123]*) objformat=aout ;;
8849     *) objformat=elf ;;
8850     esac
8851   fi
8852   version_type=freebsd-$objformat
8853   case $version_type in
8854     freebsd-elf*)
8855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8856       need_version=no
8857       need_lib_prefix=no
8858       ;;
8859     freebsd-*)
8860       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8861       need_version=yes
8862       ;;
8863   esac
8864   shlibpath_var=LD_LIBRARY_PATH
8865   case $host_os in
8866   freebsd2*)
8867     shlibpath_overrides_runpath=yes
8868     ;;
8869   freebsd3.[01]* | freebsdelf3.[01]*)
8870     shlibpath_overrides_runpath=yes
8871     hardcode_into_libs=yes
8872     ;;
8873   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8874   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8875     shlibpath_overrides_runpath=no
8876     hardcode_into_libs=yes
8877     ;;
8878   freebsd*) # from 4.6 on
8879     shlibpath_overrides_runpath=yes
8880     hardcode_into_libs=yes
8881     ;;
8882   esac
8883   ;;
8884
8885 gnu*)
8886   version_type=linux
8887   need_lib_prefix=no
8888   need_version=no
8889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8890   soname_spec='${libname}${release}${shared_ext}$major'
8891   shlibpath_var=LD_LIBRARY_PATH
8892   hardcode_into_libs=yes
8893   ;;
8894
8895 hpux9* | hpux10* | hpux11*)
8896   # Give a soname corresponding to the major version so that dld.sl refuses to
8897   # link against other versions.
8898   version_type=sunos
8899   need_lib_prefix=no
8900   need_version=no
8901   case $host_cpu in
8902   ia64*)
8903     shrext_cmds='.so'
8904     hardcode_into_libs=yes
8905     dynamic_linker="$host_os dld.so"
8906     shlibpath_var=LD_LIBRARY_PATH
8907     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909     soname_spec='${libname}${release}${shared_ext}$major'
8910     if test "X$HPUX_IA64_MODE" = X32; then
8911       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8912     else
8913       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8914     fi
8915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916     ;;
8917    hppa*64*)
8918      shrext_cmds='.sl'
8919      hardcode_into_libs=yes
8920      dynamic_linker="$host_os dld.sl"
8921      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8922      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8923      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924      soname_spec='${libname}${release}${shared_ext}$major'
8925      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8926      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8927      ;;
8928    *)
8929     shrext_cmds='.sl'
8930     dynamic_linker="$host_os dld.sl"
8931     shlibpath_var=SHLIB_PATH
8932     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934     soname_spec='${libname}${release}${shared_ext}$major'
8935     ;;
8936   esac
8937   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8938   postinstall_cmds='chmod 555 $lib'
8939   ;;
8940
8941 interix3*)
8942   version_type=linux
8943   need_lib_prefix=no
8944   need_version=no
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8948   shlibpath_var=LD_LIBRARY_PATH
8949   shlibpath_overrides_runpath=no
8950   hardcode_into_libs=yes
8951   ;;
8952
8953 irix5* | irix6* | nonstopux*)
8954   case $host_os in
8955     nonstopux*) version_type=nonstopux ;;
8956     *)
8957         if test "$lt_cv_prog_gnu_ld" = yes; then
8958                 version_type=linux
8959         else
8960                 version_type=irix
8961         fi ;;
8962   esac
8963   need_lib_prefix=no
8964   need_version=no
8965   soname_spec='${libname}${release}${shared_ext}$major'
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8967   case $host_os in
8968   irix5* | nonstopux*)
8969     libsuff= shlibsuff=
8970     ;;
8971   *)
8972     case $LD in # libtool.m4 will add one of these switches to LD
8973     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8974       libsuff= shlibsuff= libmagic=32-bit;;
8975     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8976       libsuff=32 shlibsuff=N32 libmagic=N32;;
8977     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8978       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8979     *) libsuff= shlibsuff= libmagic=never-match;;
8980     esac
8981     ;;
8982   esac
8983   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8984   shlibpath_overrides_runpath=no
8985   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8986   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8987   hardcode_into_libs=yes
8988   ;;
8989
8990 # No shared lib support for Linux oldld, aout, or coff.
8991 linux*oldld* | linux*aout* | linux*coff*)
8992   dynamic_linker=no
8993   ;;
8994
8995 # This must be Linux ELF.
8996 linux* | k*bsd*-gnu)
8997   version_type=linux
8998   need_lib_prefix=no
8999   need_version=no
9000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001   soname_spec='${libname}${release}${shared_ext}$major'
9002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   shlibpath_overrides_runpath=no
9005   # This implies no fast_install, which is unacceptable.
9006   # Some rework will be needed to allow for fast_install
9007   # before this can be enabled.
9008   hardcode_into_libs=yes
9009
9010   # Append ld.so.conf contents to the search path
9011   if test -f /etc/ld.so.conf; then
9012     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' ' '`
9013     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9014   fi
9015
9016   # We used to test for /lib/ld.so.1 and disable shared libraries on
9017   # powerpc, because MkLinux only supported shared libraries with the
9018   # GNU dynamic linker.  Since this was broken with cross compilers,
9019   # most powerpc-linux boxes support dynamic linking these days and
9020   # people can always --disable-shared, the test was removed, and we
9021   # assume the GNU/Linux dynamic linker is in use.
9022   dynamic_linker='GNU/Linux ld.so'
9023   ;;
9024
9025 netbsdelf*-gnu)
9026   version_type=linux
9027   need_lib_prefix=no
9028   need_version=no
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   shlibpath_var=LD_LIBRARY_PATH
9032   shlibpath_overrides_runpath=no
9033   hardcode_into_libs=yes
9034   dynamic_linker='NetBSD ld.elf_so'
9035   ;;
9036
9037 netbsd*)
9038   version_type=sunos
9039   need_lib_prefix=no
9040   need_version=no
9041   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9043     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9044     dynamic_linker='NetBSD (a.out) ld.so'
9045   else
9046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9047     soname_spec='${libname}${release}${shared_ext}$major'
9048     dynamic_linker='NetBSD ld.elf_so'
9049   fi
9050   shlibpath_var=LD_LIBRARY_PATH
9051   shlibpath_overrides_runpath=yes
9052   hardcode_into_libs=yes
9053   ;;
9054
9055 newsos6)
9056   version_type=linux
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058   shlibpath_var=LD_LIBRARY_PATH
9059   shlibpath_overrides_runpath=yes
9060   ;;
9061
9062 nto-qnx*)
9063   version_type=linux
9064   need_lib_prefix=no
9065   need_version=no
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067   soname_spec='${libname}${release}${shared_ext}$major'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   shlibpath_overrides_runpath=yes
9070   ;;
9071
9072 openbsd*)
9073   version_type=sunos
9074   sys_lib_dlsearch_path_spec="/usr/lib"
9075   need_lib_prefix=no
9076   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9077   case $host_os in
9078     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9079     *)                         need_version=no  ;;
9080   esac
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9085     case $host_os in
9086       openbsd2.[89] | openbsd2.[89].*)
9087         shlibpath_overrides_runpath=no
9088         ;;
9089       *)
9090         shlibpath_overrides_runpath=yes
9091         ;;
9092       esac
9093   else
9094     shlibpath_overrides_runpath=yes
9095   fi
9096   ;;
9097
9098 os2*)
9099   libname_spec='$name'
9100   shrext_cmds=".dll"
9101   need_lib_prefix=no
9102   library_names_spec='$libname${shared_ext} $libname.a'
9103   dynamic_linker='OS/2 ld.exe'
9104   shlibpath_var=LIBPATH
9105   ;;
9106
9107 osf3* | osf4* | osf5*)
9108   version_type=osf
9109   need_lib_prefix=no
9110   need_version=no
9111   soname_spec='${libname}${release}${shared_ext}$major'
9112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113   shlibpath_var=LD_LIBRARY_PATH
9114   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9115   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9116   ;;
9117
9118 solaris*)
9119   version_type=linux
9120   need_lib_prefix=no
9121   need_version=no
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123   soname_spec='${libname}${release}${shared_ext}$major'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   shlibpath_overrides_runpath=yes
9126   hardcode_into_libs=yes
9127   # ldd complains unless libraries are executable
9128   postinstall_cmds='chmod +x $lib'
9129   ;;
9130
9131 sunos4*)
9132   version_type=sunos
9133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9134   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9135   shlibpath_var=LD_LIBRARY_PATH
9136   shlibpath_overrides_runpath=yes
9137   if test "$with_gnu_ld" = yes; then
9138     need_lib_prefix=no
9139   fi
9140   need_version=yes
9141   ;;
9142
9143 sysv4 | sysv4.3*)
9144   version_type=linux
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   case $host_vendor in
9149     sni)
9150       shlibpath_overrides_runpath=no
9151       need_lib_prefix=no
9152       export_dynamic_flag_spec='${wl}-Blargedynsym'
9153       runpath_var=LD_RUN_PATH
9154       ;;
9155     siemens)
9156       need_lib_prefix=no
9157       ;;
9158     motorola)
9159       need_lib_prefix=no
9160       need_version=no
9161       shlibpath_overrides_runpath=no
9162       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9163       ;;
9164   esac
9165   ;;
9166
9167 sysv4*MP*)
9168   if test -d /usr/nec ;then
9169     version_type=linux
9170     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9171     soname_spec='$libname${shared_ext}.$major'
9172     shlibpath_var=LD_LIBRARY_PATH
9173   fi
9174   ;;
9175
9176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9177   version_type=freebsd-elf
9178   need_lib_prefix=no
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   shlibpath_var=LD_LIBRARY_PATH
9183   hardcode_into_libs=yes
9184   if test "$with_gnu_ld" = yes; then
9185     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9186     shlibpath_overrides_runpath=no
9187   else
9188     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9189     shlibpath_overrides_runpath=yes
9190     case $host_os in
9191       sco3.2v5*)
9192         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9193         ;;
9194     esac
9195   fi
9196   sys_lib_dlsearch_path_spec='/usr/lib'
9197   ;;
9198
9199 uts4*)
9200   version_type=linux
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202   soname_spec='${libname}${release}${shared_ext}$major'
9203   shlibpath_var=LD_LIBRARY_PATH
9204   ;;
9205
9206 *)
9207   dynamic_linker=no
9208   ;;
9209 esac
9210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9211 echo "${ECHO_T}$dynamic_linker" >&6; }
9212 test "$dynamic_linker" = no && can_build_shared=no
9213
9214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9215 if test "$GCC" = yes; then
9216   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9217 fi
9218
9219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9221 hardcode_action=
9222 if test -n "$hardcode_libdir_flag_spec" || \
9223    test -n "$runpath_var" || \
9224    test "X$hardcode_automatic" = "Xyes" ; then
9225
9226   # We can hardcode non-existant directories.
9227   if test "$hardcode_direct" != no &&
9228      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9229      # have to relink, otherwise we might link with an installed library
9230      # when we should be linking with a yet-to-be-installed one
9231      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9232      test "$hardcode_minus_L" != no; then
9233     # Linking always hardcodes the temporary library directory.
9234     hardcode_action=relink
9235   else
9236     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9237     hardcode_action=immediate
9238   fi
9239 else
9240   # We cannot hardcode anything, or else we can only hardcode existing
9241   # directories.
9242   hardcode_action=unsupported
9243 fi
9244 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9245 echo "${ECHO_T}$hardcode_action" >&6; }
9246
9247 if test "$hardcode_action" = relink; then
9248   # Fast installation is not supported
9249   enable_fast_install=no
9250 elif test "$shlibpath_overrides_runpath" = yes ||
9251      test "$enable_shared" = no; then
9252   # Fast installation is not necessary
9253   enable_fast_install=needless
9254 fi
9255
9256 striplib=
9257 old_striplib=
9258 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9260 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9261   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9262   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9263   { echo "$as_me:$LINENO: result: yes" >&5
9264 echo "${ECHO_T}yes" >&6; }
9265 else
9266 # FIXME - insert some real tests, host_os isn't really good enough
9267   case $host_os in
9268    darwin*)
9269        if test -n "$STRIP" ; then
9270          striplib="$STRIP -x"
9271          { echo "$as_me:$LINENO: result: yes" >&5
9272 echo "${ECHO_T}yes" >&6; }
9273        else
9274   { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9276 fi
9277        ;;
9278    *)
9279   { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9281     ;;
9282   esac
9283 fi
9284
9285 if test "x$enable_dlopen" != xyes; then
9286   enable_dlopen=unknown
9287   enable_dlopen_self=unknown
9288   enable_dlopen_self_static=unknown
9289 else
9290   lt_cv_dlopen=no
9291   lt_cv_dlopen_libs=
9292
9293   case $host_os in
9294   beos*)
9295     lt_cv_dlopen="load_add_on"
9296     lt_cv_dlopen_libs=
9297     lt_cv_dlopen_self=yes
9298     ;;
9299
9300   mingw* | pw32*)
9301     lt_cv_dlopen="LoadLibrary"
9302     lt_cv_dlopen_libs=
9303    ;;
9304
9305   cygwin*)
9306     lt_cv_dlopen="dlopen"
9307     lt_cv_dlopen_libs=
9308    ;;
9309
9310   darwin*)
9311   # if libdl is installed we need to link against it
9312     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9313 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9315   echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317   ac_check_lib_save_LIBS=$LIBS
9318 LIBS="-ldl  $LIBS"
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325
9326 /* Override any GCC internal prototype to avoid an error.
9327    Use char because int might match the return type of a GCC
9328    builtin and then its argument prototype would still apply.  */
9329 #ifdef __cplusplus
9330 extern "C"
9331 #endif
9332 char dlopen ();
9333 int
9334 main ()
9335 {
9336 return dlopen ();
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9343 case "(($ac_try" in
9344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345   *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348   (eval "$ac_link") 2>conftest.er1
9349   ac_status=$?
9350   grep -v '^ *+' conftest.er1 >conftest.err
9351   rm -f conftest.er1
9352   cat conftest.err >&5
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } && {
9355          test -z "$ac_c_werror_flag" ||
9356          test ! -s conftest.err
9357        } && test -s conftest$ac_exeext &&
9358        $as_test_x conftest$ac_exeext; then
9359   ac_cv_lib_dl_dlopen=yes
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364         ac_cv_lib_dl_dlopen=no
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368       conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9370 fi
9371 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9373 if test $ac_cv_lib_dl_dlopen = yes; then
9374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9375 else
9376
9377     lt_cv_dlopen="dyld"
9378     lt_cv_dlopen_libs=
9379     lt_cv_dlopen_self=yes
9380
9381 fi
9382
9383    ;;
9384
9385   *)
9386     { echo "$as_me:$LINENO: checking for shl_load" >&5
9387 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9388 if test "${ac_cv_func_shl_load+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9399 #define shl_load innocuous_shl_load
9400
9401 /* System header to define __stub macros and hopefully few prototypes,
9402     which can conflict with char shl_load (); below.
9403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9404     <limits.h> exists even on freestanding compilers.  */
9405
9406 #ifdef __STDC__
9407 # include <limits.h>
9408 #else
9409 # include <assert.h>
9410 #endif
9411
9412 #undef shl_load
9413
9414 /* Override any GCC internal prototype to avoid an error.
9415    Use char because int might match the return type of a GCC
9416    builtin and then its argument prototype would still apply.  */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char shl_load ();
9421 /* The GNU C library defines this for functions which it implements
9422     to always fail with ENOSYS.  Some functions are actually named
9423     something starting with __ and the normal name is an alias.  */
9424 #if defined __stub_shl_load || defined __stub___shl_load
9425 choke me
9426 #endif
9427
9428 int
9429 main ()
9430 {
9431 return shl_load ();
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (ac_try="$ac_link"
9438 case "(($ac_try" in
9439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440   *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443   (eval "$ac_link") 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } && {
9450          test -z "$ac_c_werror_flag" ||
9451          test ! -s conftest.err
9452        } && test -s conftest$ac_exeext &&
9453        $as_test_x conftest$ac_exeext; then
9454   ac_cv_func_shl_load=yes
9455 else
9456   echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459         ac_cv_func_shl_load=no
9460 fi
9461
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463       conftest$ac_exeext conftest.$ac_ext
9464 fi
9465 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9466 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9467 if test $ac_cv_func_shl_load = yes; then
9468   lt_cv_dlopen="shl_load"
9469 else
9470   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9471 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475   ac_check_lib_save_LIBS=$LIBS
9476 LIBS="-ldld  $LIBS"
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483
9484 /* Override any GCC internal prototype to avoid an error.
9485    Use char because int might match the return type of a GCC
9486    builtin and then its argument prototype would still apply.  */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char shl_load ();
9491 int
9492 main ()
9493 {
9494 return shl_load ();
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (ac_try="$ac_link"
9501 case "(($ac_try" in
9502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503   *) ac_try_echo=$ac_try;;
9504 esac
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506   (eval "$ac_link") 2>conftest.er1
9507   ac_status=$?
9508   grep -v '^ *+' conftest.er1 >conftest.err
9509   rm -f conftest.er1
9510   cat conftest.err >&5
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } && {
9513          test -z "$ac_c_werror_flag" ||
9514          test ! -s conftest.err
9515        } && test -s conftest$ac_exeext &&
9516        $as_test_x conftest$ac_exeext; then
9517   ac_cv_lib_dld_shl_load=yes
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522         ac_cv_lib_dld_shl_load=no
9523 fi
9524
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526       conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9528 fi
9529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9530 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9531 if test $ac_cv_lib_dld_shl_load = yes; then
9532   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9533 else
9534   { echo "$as_me:$LINENO: checking for dlopen" >&5
9535 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9536 if test "${ac_cv_func_dlopen+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9547 #define dlopen innocuous_dlopen
9548
9549 /* System header to define __stub macros and hopefully few prototypes,
9550     which can conflict with char dlopen (); below.
9551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552     <limits.h> exists even on freestanding compilers.  */
9553
9554 #ifdef __STDC__
9555 # include <limits.h>
9556 #else
9557 # include <assert.h>
9558 #endif
9559
9560 #undef dlopen
9561
9562 /* Override any GCC internal prototype to avoid an error.
9563    Use char because int might match the return type of a GCC
9564    builtin and then its argument prototype would still apply.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char dlopen ();
9569 /* The GNU C library defines this for functions which it implements
9570     to always fail with ENOSYS.  Some functions are actually named
9571     something starting with __ and the normal name is an alias.  */
9572 #if defined __stub_dlopen || defined __stub___dlopen
9573 choke me
9574 #endif
9575
9576 int
9577 main ()
9578 {
9579 return dlopen ();
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9586 case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_link") 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } && {
9598          test -z "$ac_c_werror_flag" ||
9599          test ! -s conftest.err
9600        } && test -s conftest$ac_exeext &&
9601        $as_test_x conftest$ac_exeext; then
9602   ac_cv_func_dlopen=yes
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607         ac_cv_func_dlopen=no
9608 fi
9609
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611       conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9615 if test $ac_cv_func_dlopen = yes; then
9616   lt_cv_dlopen="dlopen"
9617 else
9618   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9621   echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623   ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-ldl  $LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631
9632 /* Override any GCC internal prototype to avoid an error.
9633    Use char because int might match the return type of a GCC
9634    builtin and then its argument prototype would still apply.  */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char dlopen ();
9639 int
9640 main ()
9641 {
9642 return dlopen ();
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654   (eval "$ac_link") 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } && {
9661          test -z "$ac_c_werror_flag" ||
9662          test ! -s conftest.err
9663        } && test -s conftest$ac_exeext &&
9664        $as_test_x conftest$ac_exeext; then
9665   ac_cv_lib_dl_dlopen=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670         ac_cv_lib_dl_dlopen=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9679 if test $ac_cv_lib_dl_dlopen = yes; then
9680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9681 else
9682   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9683 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9684 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   ac_check_lib_save_LIBS=$LIBS
9688 LIBS="-lsvld  $LIBS"
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695
9696 /* Override any GCC internal prototype to avoid an error.
9697    Use char because int might match the return type of a GCC
9698    builtin and then its argument prototype would still apply.  */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 char dlopen ();
9703 int
9704 main ()
9705 {
9706 return dlopen ();
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9713 case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_link") 2>conftest.er1
9719   ac_status=$?
9720   grep -v '^ *+' conftest.er1 >conftest.err
9721   rm -f conftest.er1
9722   cat conftest.err >&5
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } && {
9725          test -z "$ac_c_werror_flag" ||
9726          test ! -s conftest.err
9727        } && test -s conftest$ac_exeext &&
9728        $as_test_x conftest$ac_exeext; then
9729   ac_cv_lib_svld_dlopen=yes
9730 else
9731   echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734         ac_cv_lib_svld_dlopen=no
9735 fi
9736
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738       conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9740 fi
9741 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9742 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9743 if test $ac_cv_lib_svld_dlopen = yes; then
9744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9745 else
9746   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9747 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9748 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   ac_check_lib_save_LIBS=$LIBS
9752 LIBS="-ldld  $LIBS"
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h.  */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h.  */
9759
9760 /* Override any GCC internal prototype to avoid an error.
9761    Use char because int might match the return type of a GCC
9762    builtin and then its argument prototype would still apply.  */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 char dld_link ();
9767 int
9768 main ()
9769 {
9770 return dld_link ();
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9777 case "(($ac_try" in
9778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779   *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782   (eval "$ac_link") 2>conftest.er1
9783   ac_status=$?
9784   grep -v '^ *+' conftest.er1 >conftest.err
9785   rm -f conftest.er1
9786   cat conftest.err >&5
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); } && {
9789          test -z "$ac_c_werror_flag" ||
9790          test ! -s conftest.err
9791        } && test -s conftest$ac_exeext &&
9792        $as_test_x conftest$ac_exeext; then
9793   ac_cv_lib_dld_dld_link=yes
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798         ac_cv_lib_dld_dld_link=no
9799 fi
9800
9801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9802       conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_lib_save_LIBS
9804 fi
9805 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9806 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9807 if test $ac_cv_lib_dld_dld_link = yes; then
9808   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9809 fi
9810
9811
9812 fi
9813
9814
9815 fi
9816
9817
9818 fi
9819
9820
9821 fi
9822
9823
9824 fi
9825
9826     ;;
9827   esac
9828
9829   if test "x$lt_cv_dlopen" != xno; then
9830     enable_dlopen=yes
9831   else
9832     enable_dlopen=no
9833   fi
9834
9835   case $lt_cv_dlopen in
9836   dlopen)
9837     save_CPPFLAGS="$CPPFLAGS"
9838     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9839
9840     save_LDFLAGS="$LDFLAGS"
9841     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9842
9843     save_LIBS="$LIBS"
9844     LIBS="$lt_cv_dlopen_libs $LIBS"
9845
9846     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9847 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9848 if test "${lt_cv_dlopen_self+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851           if test "$cross_compiling" = yes; then :
9852   lt_cv_dlopen_self=cross
9853 else
9854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9855   lt_status=$lt_dlunknown
9856   cat > conftest.$ac_ext <<EOF
9857 #line 9857 "configure"
9858 #include "confdefs.h"
9859
9860 #if HAVE_DLFCN_H
9861 #include <dlfcn.h>
9862 #endif
9863
9864 #include <stdio.h>
9865
9866 #ifdef RTLD_GLOBAL
9867 #  define LT_DLGLOBAL           RTLD_GLOBAL
9868 #else
9869 #  ifdef DL_GLOBAL
9870 #    define LT_DLGLOBAL         DL_GLOBAL
9871 #  else
9872 #    define LT_DLGLOBAL         0
9873 #  endif
9874 #endif
9875
9876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9877    find out it does not work in some platform. */
9878 #ifndef LT_DLLAZY_OR_NOW
9879 #  ifdef RTLD_LAZY
9880 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9881 #  else
9882 #    ifdef DL_LAZY
9883 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9884 #    else
9885 #      ifdef RTLD_NOW
9886 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9887 #      else
9888 #        ifdef DL_NOW
9889 #          define LT_DLLAZY_OR_NOW      DL_NOW
9890 #        else
9891 #          define LT_DLLAZY_OR_NOW      0
9892 #        endif
9893 #      endif
9894 #    endif
9895 #  endif
9896 #endif
9897
9898 #ifdef __cplusplus
9899 extern "C" void exit (int);
9900 #endif
9901
9902 void fnord() { int i=42;}
9903 int main ()
9904 {
9905   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9906   int status = $lt_dlunknown;
9907
9908   if (self)
9909     {
9910       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9911       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9912       /* dlclose (self); */
9913     }
9914   else
9915     puts (dlerror ());
9916
9917     exit (status);
9918 }
9919 EOF
9920   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921   (eval $ac_link) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9925     (./conftest; exit; ) >&5 2>/dev/null
9926     lt_status=$?
9927     case x$lt_status in
9928       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9929       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9930       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9931     esac
9932   else :
9933     # compilation failed
9934     lt_cv_dlopen_self=no
9935   fi
9936 fi
9937 rm -fr conftest*
9938
9939
9940 fi
9941 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9942 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9943
9944     if test "x$lt_cv_dlopen_self" = xyes; then
9945       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9946       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9947 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9948 if test "${lt_cv_dlopen_self_static+set}" = set; then
9949   echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951           if test "$cross_compiling" = yes; then :
9952   lt_cv_dlopen_self_static=cross
9953 else
9954   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9955   lt_status=$lt_dlunknown
9956   cat > conftest.$ac_ext <<EOF
9957 #line 9957 "configure"
9958 #include "confdefs.h"
9959
9960 #if HAVE_DLFCN_H
9961 #include <dlfcn.h>
9962 #endif
9963
9964 #include <stdio.h>
9965
9966 #ifdef RTLD_GLOBAL
9967 #  define LT_DLGLOBAL           RTLD_GLOBAL
9968 #else
9969 #  ifdef DL_GLOBAL
9970 #    define LT_DLGLOBAL         DL_GLOBAL
9971 #  else
9972 #    define LT_DLGLOBAL         0
9973 #  endif
9974 #endif
9975
9976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9977    find out it does not work in some platform. */
9978 #ifndef LT_DLLAZY_OR_NOW
9979 #  ifdef RTLD_LAZY
9980 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9981 #  else
9982 #    ifdef DL_LAZY
9983 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9984 #    else
9985 #      ifdef RTLD_NOW
9986 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9987 #      else
9988 #        ifdef DL_NOW
9989 #          define LT_DLLAZY_OR_NOW      DL_NOW
9990 #        else
9991 #          define LT_DLLAZY_OR_NOW      0
9992 #        endif
9993 #      endif
9994 #    endif
9995 #  endif
9996 #endif
9997
9998 #ifdef __cplusplus
9999 extern "C" void exit (int);
10000 #endif
10001
10002 void fnord() { int i=42;}
10003 int main ()
10004 {
10005   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10006   int status = $lt_dlunknown;
10007
10008   if (self)
10009     {
10010       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10011       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10012       /* dlclose (self); */
10013     }
10014   else
10015     puts (dlerror ());
10016
10017     exit (status);
10018 }
10019 EOF
10020   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021   (eval $ac_link) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10025     (./conftest; exit; ) >&5 2>/dev/null
10026     lt_status=$?
10027     case x$lt_status in
10028       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10029       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10030       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10031     esac
10032   else :
10033     # compilation failed
10034     lt_cv_dlopen_self_static=no
10035   fi
10036 fi
10037 rm -fr conftest*
10038
10039
10040 fi
10041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10042 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10043     fi
10044
10045     CPPFLAGS="$save_CPPFLAGS"
10046     LDFLAGS="$save_LDFLAGS"
10047     LIBS="$save_LIBS"
10048     ;;
10049   esac
10050
10051   case $lt_cv_dlopen_self in
10052   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10053   *) enable_dlopen_self=unknown ;;
10054   esac
10055
10056   case $lt_cv_dlopen_self_static in
10057   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10058   *) enable_dlopen_self_static=unknown ;;
10059   esac
10060 fi
10061
10062
10063 # Report which library types will actually be built
10064 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10065 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10066 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10067 echo "${ECHO_T}$can_build_shared" >&6; }
10068
10069 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10070 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10071 test "$can_build_shared" = "no" && enable_shared=no
10072
10073 # On AIX, shared libraries and static libraries use the same namespace, and
10074 # are all built from PIC.
10075 case $host_os in
10076 aix3*)
10077   test "$enable_shared" = yes && enable_static=no
10078   if test -n "$RANLIB"; then
10079     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10080     postinstall_cmds='$RANLIB $lib'
10081   fi
10082   ;;
10083
10084 aix4* | aix5*)
10085   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10086     test "$enable_shared" = yes && enable_static=no
10087   fi
10088     ;;
10089 esac
10090 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10091 echo "${ECHO_T}$enable_shared" >&6; }
10092
10093 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10094 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10095 # Make sure either enable_shared or enable_static is yes.
10096 test "$enable_shared" = yes || enable_static=yes
10097 { echo "$as_me:$LINENO: result: $enable_static" >&5
10098 echo "${ECHO_T}$enable_static" >&6; }
10099
10100 # The else clause should only fire when bootstrapping the
10101 # libtool distribution, otherwise you forgot to ship ltmain.sh
10102 # with your package, and you will get complaints that there are
10103 # no rules to generate ltmain.sh.
10104 if test -f "$ltmain"; then
10105   # See if we are running on zsh, and set the options which allow our commands through
10106   # without removal of \ escapes.
10107   if test -n "${ZSH_VERSION+set}" ; then
10108     setopt NO_GLOB_SUBST
10109   fi
10110   # Now quote all the things that may contain metacharacters while being
10111   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10112   # variables and quote the copies for generation of the libtool script.
10113   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10114     SED SHELL STRIP \
10115     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10116     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10117     deplibs_check_method reload_flag reload_cmds need_locks \
10118     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10119     lt_cv_sys_global_symbol_to_c_name_address \
10120     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10121     old_postinstall_cmds old_postuninstall_cmds \
10122     compiler \
10123     CC \
10124     LD \
10125     lt_prog_compiler_wl \
10126     lt_prog_compiler_pic \
10127     lt_prog_compiler_static \
10128     lt_prog_compiler_no_builtin_flag \
10129     export_dynamic_flag_spec \
10130     thread_safe_flag_spec \
10131     whole_archive_flag_spec \
10132     enable_shared_with_static_runtimes \
10133     old_archive_cmds \
10134     old_archive_from_new_cmds \
10135     predep_objects \
10136     postdep_objects \
10137     predeps \
10138     postdeps \
10139     compiler_lib_search_path \
10140     archive_cmds \
10141     archive_expsym_cmds \
10142     postinstall_cmds \
10143     postuninstall_cmds \
10144     old_archive_from_expsyms_cmds \
10145     allow_undefined_flag \
10146     no_undefined_flag \
10147     export_symbols_cmds \
10148     hardcode_libdir_flag_spec \
10149     hardcode_libdir_flag_spec_ld \
10150     hardcode_libdir_separator \
10151     hardcode_automatic \
10152     module_cmds \
10153     module_expsym_cmds \
10154     lt_cv_prog_compiler_c_o \
10155     exclude_expsyms \
10156     include_expsyms; do
10157
10158     case $var in
10159     old_archive_cmds | \
10160     old_archive_from_new_cmds | \
10161     archive_cmds | \
10162     archive_expsym_cmds | \
10163     module_cmds | \
10164     module_expsym_cmds | \
10165     old_archive_from_expsyms_cmds | \
10166     export_symbols_cmds | \
10167     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10168     postinstall_cmds | postuninstall_cmds | \
10169     old_postinstall_cmds | old_postuninstall_cmds | \
10170     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10171       # Double-quote double-evaled strings.
10172       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10173       ;;
10174     *)
10175       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10176       ;;
10177     esac
10178   done
10179
10180   case $lt_echo in
10181   *'\$0 --fallback-echo"')
10182     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10183     ;;
10184   esac
10185
10186 cfgfile="${ofile}T"
10187   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10188   $rm -f "$cfgfile"
10189   { echo "$as_me:$LINENO: creating $ofile" >&5
10190 echo "$as_me: creating $ofile" >&6;}
10191
10192   cat <<__EOF__ >> "$cfgfile"
10193 #! $SHELL
10194
10195 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10196 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10198 #
10199 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10200 # Free Software Foundation, Inc.
10201 #
10202 # This file is part of GNU Libtool:
10203 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10204 #
10205 # This program is free software; you can redistribute it and/or modify
10206 # it under the terms of the GNU General Public License as published by
10207 # the Free Software Foundation; either version 2 of the License, or
10208 # (at your option) any later version.
10209 #
10210 # This program is distributed in the hope that it will be useful, but
10211 # WITHOUT ANY WARRANTY; without even the implied warranty of
10212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10213 # General Public License for more details.
10214 #
10215 # You should have received a copy of the GNU General Public License
10216 # along with this program; if not, write to the Free Software
10217 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10218 #
10219 # As a special exception to the GNU General Public License, if you
10220 # distribute this file as part of a program that contains a
10221 # configuration script generated by Autoconf, you may include it under
10222 # the same distribution terms that you use for the rest of that program.
10223
10224 # A sed program that does not truncate output.
10225 SED=$lt_SED
10226
10227 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10228 Xsed="$SED -e 1s/^X//"
10229
10230 # The HP-UX ksh and POSIX shell print the target directory to stdout
10231 # if CDPATH is set.
10232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10233
10234 # The names of the tagged configurations supported by this script.
10235 available_tags=
10236
10237 # ### BEGIN LIBTOOL CONFIG
10238
10239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10240
10241 # Shell to use when invoking shell scripts.
10242 SHELL=$lt_SHELL
10243
10244 # Whether or not to build shared libraries.
10245 build_libtool_libs=$enable_shared
10246
10247 # Whether or not to build static libraries.
10248 build_old_libs=$enable_static
10249
10250 # Whether or not to add -lc for building shared libraries.
10251 build_libtool_need_lc=$archive_cmds_need_lc
10252
10253 # Whether or not to disallow shared libs when runtime libs are static
10254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10255
10256 # Whether or not to optimize for fast installation.
10257 fast_install=$enable_fast_install
10258
10259 # The host system.
10260 host_alias=$host_alias
10261 host=$host
10262 host_os=$host_os
10263
10264 # The build system.
10265 build_alias=$build_alias
10266 build=$build
10267 build_os=$build_os
10268
10269 # An echo program that does not interpret backslashes.
10270 echo=$lt_echo
10271
10272 # The archiver.
10273 AR=$lt_AR
10274 AR_FLAGS=$lt_AR_FLAGS
10275
10276 # A C compiler.
10277 LTCC=$lt_LTCC
10278
10279 # LTCC compiler flags.
10280 LTCFLAGS=$lt_LTCFLAGS
10281
10282 # A language-specific compiler.
10283 CC=$lt_compiler
10284
10285 # Is the compiler the GNU C compiler?
10286 with_gcc=$GCC
10287
10288 # An ERE matcher.
10289 EGREP=$lt_EGREP
10290
10291 # The linker used to build libraries.
10292 LD=$lt_LD
10293
10294 # Whether we need hard or soft links.
10295 LN_S=$lt_LN_S
10296
10297 # A BSD-compatible nm program.
10298 NM=$lt_NM
10299
10300 # A symbol stripping program
10301 STRIP=$lt_STRIP
10302
10303 # Used to examine libraries when file_magic_cmd begins "file"
10304 MAGIC_CMD=$MAGIC_CMD
10305
10306 # Used on cygwin: DLL creation program.
10307 DLLTOOL="$DLLTOOL"
10308
10309 # Used on cygwin: object dumper.
10310 OBJDUMP="$OBJDUMP"
10311
10312 # Used on cygwin: assembler.
10313 AS="$AS"
10314
10315 # The name of the directory that contains temporary libtool files.
10316 objdir=$objdir
10317
10318 # How to create reloadable object files.
10319 reload_flag=$lt_reload_flag
10320 reload_cmds=$lt_reload_cmds
10321
10322 # How to pass a linker flag through the compiler.
10323 wl=$lt_lt_prog_compiler_wl
10324
10325 # Object file suffix (normally "o").
10326 objext="$ac_objext"
10327
10328 # Old archive suffix (normally "a").
10329 libext="$libext"
10330
10331 # Shared library suffix (normally ".so").
10332 shrext_cmds='$shrext_cmds'
10333
10334 # Executable file suffix (normally "").
10335 exeext="$exeext"
10336
10337 # Additional compiler flags for building library objects.
10338 pic_flag=$lt_lt_prog_compiler_pic
10339 pic_mode=$pic_mode
10340
10341 # What is the maximum length of a command?
10342 max_cmd_len=$lt_cv_sys_max_cmd_len
10343
10344 # Does compiler simultaneously support -c and -o options?
10345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10346
10347 # Must we lock files when doing compilation?
10348 need_locks=$lt_need_locks
10349
10350 # Do we need the lib prefix for modules?
10351 need_lib_prefix=$need_lib_prefix
10352
10353 # Do we need a version for libraries?
10354 need_version=$need_version
10355
10356 # Whether dlopen is supported.
10357 dlopen_support=$enable_dlopen
10358
10359 # Whether dlopen of programs is supported.
10360 dlopen_self=$enable_dlopen_self
10361
10362 # Whether dlopen of statically linked programs is supported.
10363 dlopen_self_static=$enable_dlopen_self_static
10364
10365 # Compiler flag to prevent dynamic linking.
10366 link_static_flag=$lt_lt_prog_compiler_static
10367
10368 # Compiler flag to turn off builtin functions.
10369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10370
10371 # Compiler flag to allow reflexive dlopens.
10372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10373
10374 # Compiler flag to generate shared objects directly from archives.
10375 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10376
10377 # Compiler flag to generate thread-safe objects.
10378 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10379
10380 # Library versioning type.
10381 version_type=$version_type
10382
10383 # Format of library name prefix.
10384 libname_spec=$lt_libname_spec
10385
10386 # List of archive names.  First name is the real one, the rest are links.
10387 # The last name is the one that the linker finds with -lNAME.
10388 library_names_spec=$lt_library_names_spec
10389
10390 # The coded name of the library, if different from the real name.
10391 soname_spec=$lt_soname_spec
10392
10393 # Commands used to build and install an old-style archive.
10394 RANLIB=$lt_RANLIB
10395 old_archive_cmds=$lt_old_archive_cmds
10396 old_postinstall_cmds=$lt_old_postinstall_cmds
10397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10398
10399 # Create an old-style archive from a shared archive.
10400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10401
10402 # Create a temporary old-style archive to link instead of a shared archive.
10403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10404
10405 # Commands used to build and install a shared archive.
10406 archive_cmds=$lt_archive_cmds
10407 archive_expsym_cmds=$lt_archive_expsym_cmds
10408 postinstall_cmds=$lt_postinstall_cmds
10409 postuninstall_cmds=$lt_postuninstall_cmds
10410
10411 # Commands used to build a loadable module (assumed same as above if empty)
10412 module_cmds=$lt_module_cmds
10413 module_expsym_cmds=$lt_module_expsym_cmds
10414
10415 # Commands to strip libraries.
10416 old_striplib=$lt_old_striplib
10417 striplib=$lt_striplib
10418
10419 # Dependencies to place before the objects being linked to create a
10420 # shared library.
10421 predep_objects=$lt_predep_objects
10422
10423 # Dependencies to place after the objects being linked to create a
10424 # shared library.
10425 postdep_objects=$lt_postdep_objects
10426
10427 # Dependencies to place before the objects being linked to create a
10428 # shared library.
10429 predeps=$lt_predeps
10430
10431 # Dependencies to place after the objects being linked to create a
10432 # shared library.
10433 postdeps=$lt_postdeps
10434
10435 # The library search path used internally by the compiler when linking
10436 # a shared library.
10437 compiler_lib_search_path=$lt_compiler_lib_search_path
10438
10439 # Method to check whether dependent libraries are shared objects.
10440 deplibs_check_method=$lt_deplibs_check_method
10441
10442 # Command to use when deplibs_check_method == file_magic.
10443 file_magic_cmd=$lt_file_magic_cmd
10444
10445 # Flag that allows shared libraries with undefined symbols to be built.
10446 allow_undefined_flag=$lt_allow_undefined_flag
10447
10448 # Flag that forces no undefined symbols.
10449 no_undefined_flag=$lt_no_undefined_flag
10450
10451 # Commands used to finish a libtool library installation in a directory.
10452 finish_cmds=$lt_finish_cmds
10453
10454 # Same as above, but a single script fragment to be evaled but not shown.
10455 finish_eval=$lt_finish_eval
10456
10457 # Take the output of nm and produce a listing of raw symbols and C names.
10458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10459
10460 # Transform the output of nm in a proper C declaration
10461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10462
10463 # Transform the output of nm in a C name address pair
10464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10465
10466 # This is the shared library runtime path variable.
10467 runpath_var=$runpath_var
10468
10469 # This is the shared library path variable.
10470 shlibpath_var=$shlibpath_var
10471
10472 # Is shlibpath searched before the hard-coded library search path?
10473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10474
10475 # How to hardcode a shared library path into an executable.
10476 hardcode_action=$hardcode_action
10477
10478 # Whether we should hardcode library paths into libraries.
10479 hardcode_into_libs=$hardcode_into_libs
10480
10481 # Flag to hardcode \$libdir into a binary during linking.
10482 # This must work even if \$libdir does not exist.
10483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10484
10485 # If ld is used when linking, flag to hardcode \$libdir into
10486 # a binary during linking. This must work even if \$libdir does
10487 # not exist.
10488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10489
10490 # Whether we need a single -rpath flag with a separated argument.
10491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10492
10493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10494 # resulting binary.
10495 hardcode_direct=$hardcode_direct
10496
10497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10498 # resulting binary.
10499 hardcode_minus_L=$hardcode_minus_L
10500
10501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10502 # the resulting binary.
10503 hardcode_shlibpath_var=$hardcode_shlibpath_var
10504
10505 # Set to yes if building a shared library automatically hardcodes DIR into the library
10506 # and all subsequent libraries and executables linked against it.
10507 hardcode_automatic=$hardcode_automatic
10508
10509 # Variables whose values should be saved in libtool wrapper scripts and
10510 # restored at relink time.
10511 variables_saved_for_relink="$variables_saved_for_relink"
10512
10513 # Whether libtool must link a program against all its dependency libraries.
10514 link_all_deplibs=$link_all_deplibs
10515
10516 # Compile-time system search path for libraries
10517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10518
10519 # Run-time system search path for libraries
10520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10521
10522 # Fix the shell variable \$srcfile for the compiler.
10523 fix_srcfile_path="$fix_srcfile_path"
10524
10525 # Set to yes if exported symbols are required.
10526 always_export_symbols=$always_export_symbols
10527
10528 # The commands to list exported symbols.
10529 export_symbols_cmds=$lt_export_symbols_cmds
10530
10531 # The commands to extract the exported symbol list from a shared archive.
10532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10533
10534 # Symbols that should not be listed in the preloaded symbols.
10535 exclude_expsyms=$lt_exclude_expsyms
10536
10537 # Symbols that must always be exported.
10538 include_expsyms=$lt_include_expsyms
10539
10540 # ### END LIBTOOL CONFIG
10541
10542 __EOF__
10543
10544
10545   case $host_os in
10546   aix3*)
10547     cat <<\EOF >> "$cfgfile"
10548
10549 # AIX sometimes has problems with the GCC collect2 program.  For some
10550 # reason, if we set the COLLECT_NAMES environment variable, the problems
10551 # vanish in a puff of smoke.
10552 if test "X${COLLECT_NAMES+set}" != Xset; then
10553   COLLECT_NAMES=
10554   export COLLECT_NAMES
10555 fi
10556 EOF
10557     ;;
10558   esac
10559
10560   # We use sed instead of cat because bash on DJGPP gets confused if
10561   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10562   # text mode, it properly converts lines to CR/LF.  This bash problem
10563   # is reportedly fixed, but why not run on old versions too?
10564   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10565
10566   mv -f "$cfgfile" "$ofile" || \
10567     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10568   chmod +x "$ofile"
10569
10570 else
10571   # If there is no Makefile yet, we rely on a make rule to execute
10572   # `config.status --recheck' to rerun these tests and create the
10573   # libtool script then.
10574   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10575   if test -f "$ltmain_in"; then
10576     test -f Makefile && make "$ltmain"
10577   fi
10578 fi
10579
10580
10581 ac_ext=c
10582 ac_cpp='$CPP $CPPFLAGS'
10583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586
10587 CC="$lt_save_CC"
10588
10589
10590 # Check whether --with-tags was given.
10591 if test "${with_tags+set}" = set; then
10592   withval=$with_tags; tagnames="$withval"
10593 fi
10594
10595
10596 if test -f "$ltmain" && test -n "$tagnames"; then
10597   if test ! -f "${ofile}"; then
10598     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10599 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10600   fi
10601
10602   if test -z "$LTCC"; then
10603     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10604     if test -z "$LTCC"; then
10605       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10606 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10607     else
10608       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10609 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10610     fi
10611   fi
10612   if test -z "$LTCFLAGS"; then
10613     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10614   fi
10615
10616   # Extract list of available tagged configurations in $ofile.
10617   # Note that this assumes the entire list is on one line.
10618   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10619
10620   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10621   for tagname in $tagnames; do
10622     IFS="$lt_save_ifs"
10623     # Check whether tagname contains only valid characters
10624     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10625     "") ;;
10626     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10627 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10628    { (exit 1); exit 1; }; }
10629         ;;
10630     esac
10631
10632     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10633     then
10634       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10635 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10636    { (exit 1); exit 1; }; }
10637     fi
10638
10639     # Update the list of available tags.
10640     if test -n "$tagname"; then
10641       echo appending configuration tag \"$tagname\" to $ofile
10642
10643       case $tagname in
10644       CXX)
10645         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10646             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10647             (test "X$CXX" != "Xg++"))) ; then
10648           ac_ext=cpp
10649 ac_cpp='$CXXCPP $CPPFLAGS'
10650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10653
10654
10655
10656
10657 archive_cmds_need_lc_CXX=no
10658 allow_undefined_flag_CXX=
10659 always_export_symbols_CXX=no
10660 archive_expsym_cmds_CXX=
10661 export_dynamic_flag_spec_CXX=
10662 hardcode_direct_CXX=no
10663 hardcode_libdir_flag_spec_CXX=
10664 hardcode_libdir_flag_spec_ld_CXX=
10665 hardcode_libdir_separator_CXX=
10666 hardcode_minus_L_CXX=no
10667 hardcode_shlibpath_var_CXX=unsupported
10668 hardcode_automatic_CXX=no
10669 module_cmds_CXX=
10670 module_expsym_cmds_CXX=
10671 link_all_deplibs_CXX=unknown
10672 old_archive_cmds_CXX=$old_archive_cmds
10673 no_undefined_flag_CXX=
10674 whole_archive_flag_spec_CXX=
10675 enable_shared_with_static_runtimes_CXX=no
10676
10677 # Dependencies to place before and after the object being linked:
10678 predep_objects_CXX=
10679 postdep_objects_CXX=
10680 predeps_CXX=
10681 postdeps_CXX=
10682 compiler_lib_search_path_CXX=
10683
10684 # Source file extension for C++ test sources.
10685 ac_ext=cpp
10686
10687 # Object file extension for compiled C++ test sources.
10688 objext=o
10689 objext_CXX=$objext
10690
10691 # Code to be used in simple compile tests
10692 lt_simple_compile_test_code="int some_variable = 0;\n"
10693
10694 # Code to be used in simple link tests
10695 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10696
10697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10698
10699 # If no C compiler was specified, use CC.
10700 LTCC=${LTCC-"$CC"}
10701
10702 # If no C compiler flags were specified, use CFLAGS.
10703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10704
10705 # Allow CC to be a program name with arguments.
10706 compiler=$CC
10707
10708
10709 # save warnings/boilerplate of simple test code
10710 ac_outfile=conftest.$ac_objext
10711 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10712 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10713 _lt_compiler_boilerplate=`cat conftest.err`
10714 $rm conftest*
10715
10716 ac_outfile=conftest.$ac_objext
10717 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10718 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10719 _lt_linker_boilerplate=`cat conftest.err`
10720 $rm conftest*
10721
10722
10723 # Allow CC to be a program name with arguments.
10724 lt_save_CC=$CC
10725 lt_save_LD=$LD
10726 lt_save_GCC=$GCC
10727 GCC=$GXX
10728 lt_save_with_gnu_ld=$with_gnu_ld
10729 lt_save_path_LD=$lt_cv_path_LD
10730 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10731   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10732 else
10733   $as_unset lt_cv_prog_gnu_ld
10734 fi
10735 if test -n "${lt_cv_path_LDCXX+set}"; then
10736   lt_cv_path_LD=$lt_cv_path_LDCXX
10737 else
10738   $as_unset lt_cv_path_LD
10739 fi
10740 test -z "${LDCXX+set}" || LD=$LDCXX
10741 CC=${CXX-"c++"}
10742 compiler=$CC
10743 compiler_CXX=$CC
10744 for cc_temp in $compiler""; do
10745   case $cc_temp in
10746     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10747     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10748     \-*) ;;
10749     *) break;;
10750   esac
10751 done
10752 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10753
10754
10755 # We don't want -fno-exception wen compiling C++ code, so set the
10756 # no_builtin_flag separately
10757 if test "$GXX" = yes; then
10758   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10759 else
10760   lt_prog_compiler_no_builtin_flag_CXX=
10761 fi
10762
10763 if test "$GXX" = yes; then
10764   # Set up default GNU C++ configuration
10765
10766
10767 # Check whether --with-gnu-ld was given.
10768 if test "${with_gnu_ld+set}" = set; then
10769   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10770 else
10771   with_gnu_ld=no
10772 fi
10773
10774 ac_prog=ld
10775 if test "$GCC" = yes; then
10776   # Check if gcc -print-prog-name=ld gives a path.
10777   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10778 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10779   case $host in
10780   *-*-mingw*)
10781     # gcc leaves a trailing carriage return which upsets mingw
10782     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10783   *)
10784     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10785   esac
10786   case $ac_prog in
10787     # Accept absolute paths.
10788     [\\/]* | ?:[\\/]*)
10789       re_direlt='/[^/][^/]*/\.\./'
10790       # Canonicalize the pathname of ld
10791       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10792       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10793         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10794       done
10795       test -z "$LD" && LD="$ac_prog"
10796       ;;
10797   "")
10798     # If it fails, then pretend we aren't using GCC.
10799     ac_prog=ld
10800     ;;
10801   *)
10802     # If it is relative, then search for the first ld in PATH.
10803     with_gnu_ld=unknown
10804     ;;
10805   esac
10806 elif test "$with_gnu_ld" = yes; then
10807   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10808 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10809 else
10810   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10811 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10812 fi
10813 if test "${lt_cv_path_LD+set}" = set; then
10814   echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816   if test -z "$LD"; then
10817   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10818   for ac_dir in $PATH; do
10819     IFS="$lt_save_ifs"
10820     test -z "$ac_dir" && ac_dir=.
10821     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10822       lt_cv_path_LD="$ac_dir/$ac_prog"
10823       # Check to see if the program is GNU ld.  I'd rather use --version,
10824       # but apparently some variants of GNU ld only accept -v.
10825       # Break only if it was the GNU/non-GNU ld that we prefer.
10826       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10827       *GNU* | *'with BFD'*)
10828         test "$with_gnu_ld" != no && break
10829         ;;
10830       *)
10831         test "$with_gnu_ld" != yes && break
10832         ;;
10833       esac
10834     fi
10835   done
10836   IFS="$lt_save_ifs"
10837 else
10838   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10839 fi
10840 fi
10841
10842 LD="$lt_cv_path_LD"
10843 if test -n "$LD"; then
10844   { echo "$as_me:$LINENO: result: $LD" >&5
10845 echo "${ECHO_T}$LD" >&6; }
10846 else
10847   { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10849 fi
10850 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10851 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10852    { (exit 1); exit 1; }; }
10853 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10854 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10855 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10859 case `$LD -v 2>&1 </dev/null` in
10860 *GNU* | *'with BFD'*)
10861   lt_cv_prog_gnu_ld=yes
10862   ;;
10863 *)
10864   lt_cv_prog_gnu_ld=no
10865   ;;
10866 esac
10867 fi
10868 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10869 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10870 with_gnu_ld=$lt_cv_prog_gnu_ld
10871
10872
10873
10874   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10875   # archiving commands below assume that GNU ld is being used.
10876   if test "$with_gnu_ld" = yes; then
10877     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878     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'
10879
10880     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10881     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10882
10883     # If archive_cmds runs LD, not CC, wlarc should be empty
10884     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10885     #     investigate it a little bit more. (MM)
10886     wlarc='${wl}'
10887
10888     # ancient GNU ld didn't support --whole-archive et. al.
10889     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10890         grep 'no-whole-archive' > /dev/null; then
10891       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10892     else
10893       whole_archive_flag_spec_CXX=
10894     fi
10895   else
10896     with_gnu_ld=no
10897     wlarc=
10898
10899     # A generic and very simple default shared library creation
10900     # command for GNU C++ for the case where it uses the native
10901     # linker, instead of GNU ld.  If possible, this setting should
10902     # overridden to take advantage of the native linker features on
10903     # the platform it is being used on.
10904     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10905   fi
10906
10907   # Commands to make compiler produce verbose output that lists
10908   # what "hidden" libraries, object files and flags are used when
10909   # linking a shared library.
10910   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10911
10912 else
10913   GXX=no
10914   with_gnu_ld=no
10915   wlarc=
10916 fi
10917
10918 # PORTME: fill in a description of your system's C++ link characteristics
10919 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10921 ld_shlibs_CXX=yes
10922 case $host_os in
10923   aix3*)
10924     # FIXME: insert proper C++ library support
10925     ld_shlibs_CXX=no
10926     ;;
10927   aix4* | aix5*)
10928     if test "$host_cpu" = ia64; then
10929       # On IA64, the linker does run time linking by default, so we don't
10930       # have to do anything special.
10931       aix_use_runtimelinking=no
10932       exp_sym_flag='-Bexport'
10933       no_entry_flag=""
10934     else
10935       aix_use_runtimelinking=no
10936
10937       # Test if we are trying to use run time linking or normal
10938       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10939       # need to do runtime linking.
10940       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10941         for ld_flag in $LDFLAGS; do
10942           case $ld_flag in
10943           *-brtl*)
10944             aix_use_runtimelinking=yes
10945             break
10946             ;;
10947           esac
10948         done
10949         ;;
10950       esac
10951
10952       exp_sym_flag='-bexport'
10953       no_entry_flag='-bnoentry'
10954     fi
10955
10956     # When large executables or shared objects are built, AIX ld can
10957     # have problems creating the table of contents.  If linking a library
10958     # or program results in "error TOC overflow" add -mminimal-toc to
10959     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10960     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10961
10962     archive_cmds_CXX=''
10963     hardcode_direct_CXX=yes
10964     hardcode_libdir_separator_CXX=':'
10965     link_all_deplibs_CXX=yes
10966
10967     if test "$GXX" = yes; then
10968       case $host_os in aix4.[012]|aix4.[012].*)
10969       # We only want to do this on AIX 4.2 and lower, the check
10970       # below for broken collect2 doesn't work under 4.3+
10971         collect2name=`${CC} -print-prog-name=collect2`
10972         if test -f "$collect2name" && \
10973            strings "$collect2name" | grep resolve_lib_name >/dev/null
10974         then
10975           # We have reworked collect2
10976           hardcode_direct_CXX=yes
10977         else
10978           # We have old collect2
10979           hardcode_direct_CXX=unsupported
10980           # It fails to find uninstalled libraries when the uninstalled
10981           # path is not listed in the libpath.  Setting hardcode_minus_L
10982           # to unsupported forces relinking
10983           hardcode_minus_L_CXX=yes
10984           hardcode_libdir_flag_spec_CXX='-L$libdir'
10985           hardcode_libdir_separator_CXX=
10986         fi
10987         ;;
10988       esac
10989       shared_flag='-shared'
10990       if test "$aix_use_runtimelinking" = yes; then
10991         shared_flag="$shared_flag "'${wl}-G'
10992       fi
10993     else
10994       # not using gcc
10995       if test "$host_cpu" = ia64; then
10996         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10997         # chokes on -Wl,-G. The following line is correct:
10998         shared_flag='-G'
10999       else
11000         if test "$aix_use_runtimelinking" = yes; then
11001           shared_flag='${wl}-G'
11002         else
11003           shared_flag='${wl}-bM:SRE'
11004         fi
11005       fi
11006     fi
11007
11008     # It seems that -bexpall does not export symbols beginning with
11009     # underscore (_), so it is better to generate a list of symbols to export.
11010     always_export_symbols_CXX=yes
11011     if test "$aix_use_runtimelinking" = yes; then
11012       # Warning - without using the other runtime loading flags (-brtl),
11013       # -berok will link without error, but may produce a broken library.
11014       allow_undefined_flag_CXX='-berok'
11015       # Determine the default libpath from the value encoded in an empty executable.
11016       cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h.  */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h.  */
11022
11023 int
11024 main ()
11025 {
11026
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (ac_try="$ac_link"
11033 case "(($ac_try" in
11034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035   *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038   (eval "$ac_link") 2>conftest.er1
11039   ac_status=$?
11040   grep -v '^ *+' conftest.er1 >conftest.err
11041   rm -f conftest.er1
11042   cat conftest.err >&5
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } && {
11045          test -z "$ac_cxx_werror_flag" ||
11046          test ! -s conftest.err
11047        } && test -s conftest$ac_exeext &&
11048        $as_test_x conftest$ac_exeext; then
11049
11050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11051 }'`
11052 # Check for a 64-bit object if we didn't find anything.
11053 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; }
11054 }'`; fi
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063       conftest$ac_exeext conftest.$ac_ext
11064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11065
11066       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11067
11068       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"
11069      else
11070       if test "$host_cpu" = ia64; then
11071         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11072         allow_undefined_flag_CXX="-z nodefs"
11073         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"
11074       else
11075         # Determine the default libpath from the value encoded in an empty executable.
11076         cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h.  */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h.  */
11082
11083 int
11084 main ()
11085 {
11086
11087   ;
11088   return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095   *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098   (eval "$ac_link") 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } && {
11105          test -z "$ac_cxx_werror_flag" ||
11106          test ! -s conftest.err
11107        } && test -s conftest$ac_exeext &&
11108        $as_test_x conftest$ac_exeext; then
11109
11110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11111 }'`
11112 # Check for a 64-bit object if we didn't find anything.
11113 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; }
11114 }'`; fi
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11123       conftest$ac_exeext conftest.$ac_ext
11124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11125
11126         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11127         # Warning - without using the other run time loading flags,
11128         # -berok will link without error, but may produce a broken library.
11129         no_undefined_flag_CXX=' ${wl}-bernotok'
11130         allow_undefined_flag_CXX=' ${wl}-berok'
11131         # Exported symbols can be pulled into shared objects from archives
11132         whole_archive_flag_spec_CXX='$convenience'
11133         archive_cmds_need_lc_CXX=yes
11134         # This is similar to how AIX traditionally builds its shared libraries.
11135         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'
11136       fi
11137     fi
11138     ;;
11139
11140   beos*)
11141     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11142       allow_undefined_flag_CXX=unsupported
11143       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11144       # support --undefined.  This deserves some investigation.  FIXME
11145       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11146     else
11147       ld_shlibs_CXX=no
11148     fi
11149     ;;
11150
11151   chorus*)
11152     case $cc_basename in
11153       *)
11154         # FIXME: insert proper C++ library support
11155         ld_shlibs_CXX=no
11156         ;;
11157     esac
11158     ;;
11159
11160   cygwin* | mingw* | pw32*)
11161     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11162     # as there is no search path for DLLs.
11163     hardcode_libdir_flag_spec_CXX='-L$libdir'
11164     allow_undefined_flag_CXX=unsupported
11165     always_export_symbols_CXX=no
11166     enable_shared_with_static_runtimes_CXX=yes
11167
11168     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11169       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'
11170       # If the export-symbols file already is a .def file (1st line
11171       # is EXPORTS), use it as is; otherwise, prepend...
11172       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11173         cp $export_symbols $output_objdir/$soname.def;
11174       else
11175         echo EXPORTS > $output_objdir/$soname.def;
11176         cat $export_symbols >> $output_objdir/$soname.def;
11177       fi~
11178       $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'
11179     else
11180       ld_shlibs_CXX=no
11181     fi
11182   ;;
11183       darwin* | rhapsody*)
11184         case $host_os in
11185         rhapsody* | darwin1.[012])
11186          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11187          ;;
11188        *) # Darwin 1.3 on
11189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11190            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11191          else
11192            case ${MACOSX_DEPLOYMENT_TARGET} in
11193              10.[012])
11194                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11195                ;;
11196              10.*)
11197                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11198                ;;
11199            esac
11200          fi
11201          ;;
11202         esac
11203       archive_cmds_need_lc_CXX=no
11204       hardcode_direct_CXX=no
11205       hardcode_automatic_CXX=yes
11206       hardcode_shlibpath_var_CXX=unsupported
11207       whole_archive_flag_spec_CXX=''
11208       link_all_deplibs_CXX=yes
11209
11210     if test "$GXX" = yes ; then
11211       lt_int_apple_cc_single_mod=no
11212       output_verbose_link_cmd='echo'
11213       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11214        lt_int_apple_cc_single_mod=yes
11215       fi
11216       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11217        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11218       else
11219           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'
11220         fi
11221         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11222         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11223           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224             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}'
11225           else
11226             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}'
11227           fi
11228             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}'
11229       else
11230       case $cc_basename in
11231         xlc*)
11232          output_verbose_link_cmd='echo'
11233           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'
11234           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11235           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11236           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}'
11237           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}'
11238           ;;
11239        *)
11240          ld_shlibs_CXX=no
11241           ;;
11242       esac
11243       fi
11244         ;;
11245
11246   dgux*)
11247     case $cc_basename in
11248       ec++*)
11249         # FIXME: insert proper C++ library support
11250         ld_shlibs_CXX=no
11251         ;;
11252       ghcx*)
11253         # Green Hills C++ Compiler
11254         # FIXME: insert proper C++ library support
11255         ld_shlibs_CXX=no
11256         ;;
11257       *)
11258         # FIXME: insert proper C++ library support
11259         ld_shlibs_CXX=no
11260         ;;
11261     esac
11262     ;;
11263   freebsd[12]*)
11264     # C++ shared libraries reported to be fairly broken before switch to ELF
11265     ld_shlibs_CXX=no
11266     ;;
11267   freebsd-elf*)
11268     archive_cmds_need_lc_CXX=no
11269     ;;
11270   freebsd* | dragonfly*)
11271     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11272     # conventions
11273     ld_shlibs_CXX=yes
11274     ;;
11275   gnu*)
11276     ;;
11277   hpux9*)
11278     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11279     hardcode_libdir_separator_CXX=:
11280     export_dynamic_flag_spec_CXX='${wl}-E'
11281     hardcode_direct_CXX=yes
11282     hardcode_minus_L_CXX=yes # Not in the search PATH,
11283                                 # but as the default
11284                                 # location of the library.
11285
11286     case $cc_basename in
11287     CC*)
11288       # FIXME: insert proper C++ library support
11289       ld_shlibs_CXX=no
11290       ;;
11291     aCC*)
11292       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'
11293       # Commands to make compiler produce verbose output that lists
11294       # what "hidden" libraries, object files and flags are used when
11295       # linking a shared library.
11296       #
11297       # There doesn't appear to be a way to prevent this compiler from
11298       # explicitly linking system object files so we need to strip them
11299       # from the output so that they don't get included in the library
11300       # dependencies.
11301       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'
11302       ;;
11303     *)
11304       if test "$GXX" = yes; then
11305         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'
11306       else
11307         # FIXME: insert proper C++ library support
11308         ld_shlibs_CXX=no
11309       fi
11310       ;;
11311     esac
11312     ;;
11313   hpux10*|hpux11*)
11314     if test $with_gnu_ld = no; then
11315       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11316       hardcode_libdir_separator_CXX=:
11317
11318       case $host_cpu in
11319       hppa*64*|ia64*)
11320         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11321         ;;
11322       *)
11323         export_dynamic_flag_spec_CXX='${wl}-E'
11324         ;;
11325       esac
11326     fi
11327     case $host_cpu in
11328     hppa*64*|ia64*)
11329       hardcode_direct_CXX=no
11330       hardcode_shlibpath_var_CXX=no
11331       ;;
11332     *)
11333       hardcode_direct_CXX=yes
11334       hardcode_minus_L_CXX=yes # Not in the search PATH,
11335                                               # but as the default
11336                                               # location of the library.
11337       ;;
11338     esac
11339
11340     case $cc_basename in
11341       CC*)
11342         # FIXME: insert proper C++ library support
11343         ld_shlibs_CXX=no
11344         ;;
11345       aCC*)
11346         case $host_cpu in
11347         hppa*64*)
11348           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11349           ;;
11350         ia64*)
11351           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11352           ;;
11353         *)
11354           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11355           ;;
11356         esac
11357         # Commands to make compiler produce verbose output that lists
11358         # what "hidden" libraries, object files and flags are used when
11359         # linking a shared library.
11360         #
11361         # There doesn't appear to be a way to prevent this compiler from
11362         # explicitly linking system object files so we need to strip them
11363         # from the output so that they don't get included in the library
11364         # dependencies.
11365         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'
11366         ;;
11367       *)
11368         if test "$GXX" = yes; then
11369           if test $with_gnu_ld = no; then
11370             case $host_cpu in
11371             hppa*64*)
11372               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11373               ;;
11374             ia64*)
11375               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11376               ;;
11377             *)
11378               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'
11379               ;;
11380             esac
11381           fi
11382         else
11383           # FIXME: insert proper C++ library support
11384           ld_shlibs_CXX=no
11385         fi
11386         ;;
11387     esac
11388     ;;
11389   interix3*)
11390     hardcode_direct_CXX=no
11391     hardcode_shlibpath_var_CXX=no
11392     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11393     export_dynamic_flag_spec_CXX='${wl}-E'
11394     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11395     # Instead, shared libraries are loaded at an image base (0x10000000 by
11396     # default) and relocated if they conflict, which is a slow very memory
11397     # consuming and fragmenting process.  To avoid this, we pick a random,
11398     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11399     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11400     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'
11401     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'
11402     ;;
11403   irix5* | irix6*)
11404     case $cc_basename in
11405       CC*)
11406         # SGI C++
11407         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'
11408
11409         # Archives containing C++ object files must be created using
11410         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11411         # necessary to make sure instantiated templates are included
11412         # in the archive.
11413         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11414         ;;
11415       *)
11416         if test "$GXX" = yes; then
11417           if test "$with_gnu_ld" = no; then
11418             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'
11419           else
11420             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'
11421           fi
11422         fi
11423         link_all_deplibs_CXX=yes
11424         ;;
11425     esac
11426     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11427     hardcode_libdir_separator_CXX=:
11428     ;;
11429   linux* | k*bsd*-gnu)
11430     case $cc_basename in
11431       KCC*)
11432         # Kuck and Associates, Inc. (KAI) C++ Compiler
11433
11434         # KCC will only create a shared library if the output file
11435         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11436         # to its proper name (with version) after linking.
11437         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'
11438         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'
11439         # Commands to make compiler produce verbose output that lists
11440         # what "hidden" libraries, object files and flags are used when
11441         # linking a shared library.
11442         #
11443         # There doesn't appear to be a way to prevent this compiler from
11444         # explicitly linking system object files so we need to strip them
11445         # from the output so that they don't get included in the library
11446         # dependencies.
11447         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'
11448
11449         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11450         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451
11452         # Archives containing C++ object files must be created using
11453         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11454         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11455         ;;
11456       icpc*)
11457         # Intel C++
11458         with_gnu_ld=yes
11459         # version 8.0 and above of icpc choke on multiply defined symbols
11460         # if we add $predep_objects and $postdep_objects, however 7.1 and
11461         # earlier do not add the objects themselves.
11462         case `$CC -V 2>&1` in
11463         *"Version 7."*)
11464           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465           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'
11466           ;;
11467         *)  # Version 8.0 or newer
11468           tmp_idyn=
11469           case $host_cpu in
11470             ia64*) tmp_idyn=' -i_dynamic';;
11471           esac
11472           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11473           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'
11474           ;;
11475         esac
11476         archive_cmds_need_lc_CXX=no
11477         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11478         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11479         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11480         ;;
11481       pgCC*)
11482         # Portland Group C++ compiler
11483         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11484         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'
11485
11486         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11487         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11488         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'
11489         ;;
11490       cxx*)
11491         # Compaq C++
11492         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11493         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'
11494
11495         runpath_var=LD_RUN_PATH
11496         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11497         hardcode_libdir_separator_CXX=:
11498
11499         # Commands to make compiler produce verbose output that lists
11500         # what "hidden" libraries, object files and flags are used when
11501         # linking a shared library.
11502         #
11503         # There doesn't appear to be a way to prevent this compiler from
11504         # explicitly linking system object files so we need to strip them
11505         # from the output so that they don't get included in the library
11506         # dependencies.
11507         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'
11508         ;;
11509     esac
11510     ;;
11511   lynxos*)
11512     # FIXME: insert proper C++ library support
11513     ld_shlibs_CXX=no
11514     ;;
11515   m88k*)
11516     # FIXME: insert proper C++ library support
11517     ld_shlibs_CXX=no
11518     ;;
11519   mvs*)
11520     case $cc_basename in
11521       cxx*)
11522         # FIXME: insert proper C++ library support
11523         ld_shlibs_CXX=no
11524         ;;
11525       *)
11526         # FIXME: insert proper C++ library support
11527         ld_shlibs_CXX=no
11528         ;;
11529     esac
11530     ;;
11531   netbsd* | netbsdelf*-gnu)
11532     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11533       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11534       wlarc=
11535       hardcode_libdir_flag_spec_CXX='-R$libdir'
11536       hardcode_direct_CXX=yes
11537       hardcode_shlibpath_var_CXX=no
11538     fi
11539     # Workaround some broken pre-1.5 toolchains
11540     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11541     ;;
11542   openbsd2*)
11543     # C++ shared libraries are fairly broken
11544     ld_shlibs_CXX=no
11545     ;;
11546   openbsd*)
11547     hardcode_direct_CXX=yes
11548     hardcode_shlibpath_var_CXX=no
11549     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11550     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11551     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11552       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11553       export_dynamic_flag_spec_CXX='${wl}-E'
11554       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11555     fi
11556     output_verbose_link_cmd='echo'
11557     ;;
11558   osf3*)
11559     case $cc_basename in
11560       KCC*)
11561         # Kuck and Associates, Inc. (KAI) C++ Compiler
11562
11563         # KCC will only create a shared library if the output file
11564         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11565         # to its proper name (with version) after linking.
11566         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'
11567
11568         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11569         hardcode_libdir_separator_CXX=:
11570
11571         # Archives containing C++ object files must be created using
11572         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11573         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11574
11575         ;;
11576       RCC*)
11577         # Rational C++ 2.4.1
11578         # FIXME: insert proper C++ library support
11579         ld_shlibs_CXX=no
11580         ;;
11581       cxx*)
11582         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11583         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'
11584
11585         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11586         hardcode_libdir_separator_CXX=:
11587
11588         # Commands to make compiler produce verbose output that lists
11589         # what "hidden" libraries, object files and flags are used when
11590         # linking a shared library.
11591         #
11592         # There doesn't appear to be a way to prevent this compiler from
11593         # explicitly linking system object files so we need to strip them
11594         # from the output so that they don't get included in the library
11595         # dependencies.
11596         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'
11597         ;;
11598       *)
11599         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11600           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11601           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'
11602
11603           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11604           hardcode_libdir_separator_CXX=:
11605
11606           # Commands to make compiler produce verbose output that lists
11607           # what "hidden" libraries, object files and flags are used when
11608           # linking a shared library.
11609           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11610
11611         else
11612           # FIXME: insert proper C++ library support
11613           ld_shlibs_CXX=no
11614         fi
11615         ;;
11616     esac
11617     ;;
11618   osf4* | osf5*)
11619     case $cc_basename in
11620       KCC*)
11621         # Kuck and Associates, Inc. (KAI) C++ Compiler
11622
11623         # KCC will only create a shared library if the output file
11624         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11625         # to its proper name (with version) after linking.
11626         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'
11627
11628         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11629         hardcode_libdir_separator_CXX=:
11630
11631         # Archives containing C++ object files must be created using
11632         # the KAI C++ compiler.
11633         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11634         ;;
11635       RCC*)
11636         # Rational C++ 2.4.1
11637         # FIXME: insert proper C++ library support
11638         ld_shlibs_CXX=no
11639         ;;
11640       cxx*)
11641         allow_undefined_flag_CXX=' -expect_unresolved \*'
11642         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'
11643         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11644           echo "-hidden">> $lib.exp~
11645           $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~
11646           $rm $lib.exp'
11647
11648         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11649         hardcode_libdir_separator_CXX=:
11650
11651         # Commands to make compiler produce verbose output that lists
11652         # what "hidden" libraries, object files and flags are used when
11653         # linking a shared library.
11654         #
11655         # There doesn't appear to be a way to prevent this compiler from
11656         # explicitly linking system object files so we need to strip them
11657         # from the output so that they don't get included in the library
11658         # dependencies.
11659         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'
11660         ;;
11661       *)
11662         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11663           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11664          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'
11665
11666           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11667           hardcode_libdir_separator_CXX=:
11668
11669           # Commands to make compiler produce verbose output that lists
11670           # what "hidden" libraries, object files and flags are used when
11671           # linking a shared library.
11672           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11673
11674         else
11675           # FIXME: insert proper C++ library support
11676           ld_shlibs_CXX=no
11677         fi
11678         ;;
11679     esac
11680     ;;
11681   psos*)
11682     # FIXME: insert proper C++ library support
11683     ld_shlibs_CXX=no
11684     ;;
11685   sunos4*)
11686     case $cc_basename in
11687       CC*)
11688         # Sun C++ 4.x
11689         # FIXME: insert proper C++ library support
11690         ld_shlibs_CXX=no
11691         ;;
11692       lcc*)
11693         # Lucid
11694         # FIXME: insert proper C++ library support
11695         ld_shlibs_CXX=no
11696         ;;
11697       *)
11698         # FIXME: insert proper C++ library support
11699         ld_shlibs_CXX=no
11700         ;;
11701     esac
11702     ;;
11703   solaris*)
11704     case $cc_basename in
11705       CC*)
11706         # Sun C++ 4.2, 5.x and Centerline C++
11707         archive_cmds_need_lc_CXX=yes
11708         no_undefined_flag_CXX=' -zdefs'
11709         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11711         $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'
11712
11713         hardcode_libdir_flag_spec_CXX='-R$libdir'
11714         hardcode_shlibpath_var_CXX=no
11715         case $host_os in
11716           solaris2.[0-5] | solaris2.[0-5].*) ;;
11717           *)
11718             # The C++ compiler is used as linker so we must use $wl
11719             # flag to pass the commands to the underlying system
11720             # linker. We must also pass each convience library through
11721             # to the system linker between allextract/defaultextract.
11722             # The C++ compiler will combine linker options so we
11723             # cannot just pass the convience library names through
11724             # without $wl.
11725             # Supported since Solaris 2.6 (maybe 2.5.1?)
11726             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'
11727             ;;
11728         esac
11729         link_all_deplibs_CXX=yes
11730
11731         output_verbose_link_cmd='echo'
11732
11733         # Archives containing C++ object files must be created using
11734         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11735         # necessary to make sure instantiated templates are included
11736         # in the archive.
11737         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11738         ;;
11739       gcx*)
11740         # Green Hills C++ Compiler
11741         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11742
11743         # The C++ compiler must be used to create the archive.
11744         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11745         ;;
11746       *)
11747         # GNU C++ compiler with Solaris linker
11748         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11749           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11750           if $CC --version | grep -v '^2\.7' > /dev/null; then
11751             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11752             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11753                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11754
11755             # Commands to make compiler produce verbose output that lists
11756             # what "hidden" libraries, object files and flags are used when
11757             # linking a shared library.
11758             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11759           else
11760             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11761             # platform.
11762             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11763             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11764                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11765
11766             # Commands to make compiler produce verbose output that lists
11767             # what "hidden" libraries, object files and flags are used when
11768             # linking a shared library.
11769             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11770           fi
11771
11772           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11773         fi
11774         ;;
11775     esac
11776     ;;
11777   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11778     no_undefined_flag_CXX='${wl}-z,text'
11779     archive_cmds_need_lc_CXX=no
11780     hardcode_shlibpath_var_CXX=no
11781     runpath_var='LD_RUN_PATH'
11782
11783     case $cc_basename in
11784       CC*)
11785         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787         ;;
11788       *)
11789         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11790         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11791         ;;
11792     esac
11793     ;;
11794   sysv5* | sco3.2v5* | sco5v6*)
11795     # Note: We can NOT use -z defs as we might desire, because we do not
11796     # link with -lc, and that would cause any symbols used from libc to
11797     # always be unresolved, which means just about no library would
11798     # ever link correctly.  If we're not using GNU ld we use -z text
11799     # though, which does catch some bad symbols but isn't as heavy-handed
11800     # as -z defs.
11801     # For security reasons, it is highly recommended that you always
11802     # use absolute paths for naming shared libraries, and exclude the
11803     # DT_RUNPATH tag from executables and libraries.  But doing so
11804     # requires that you compile everything twice, which is a pain.
11805     # So that behaviour is only enabled if SCOABSPATH is set to a
11806     # non-empty value in the environment.  Most likely only useful for
11807     # creating official distributions of packages.
11808     # This is a hack until libtool officially supports absolute path
11809     # names for shared libraries.
11810     no_undefined_flag_CXX='${wl}-z,text'
11811     allow_undefined_flag_CXX='${wl}-z,nodefs'
11812     archive_cmds_need_lc_CXX=no
11813     hardcode_shlibpath_var_CXX=no
11814     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11815     hardcode_libdir_separator_CXX=':'
11816     link_all_deplibs_CXX=yes
11817     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11818     runpath_var='LD_RUN_PATH'
11819
11820     case $cc_basename in
11821       CC*)
11822         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824         ;;
11825       *)
11826         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11827         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11828         ;;
11829     esac
11830     ;;
11831   tandem*)
11832     case $cc_basename in
11833       NCC*)
11834         # NonStop-UX NCC 3.20
11835         # FIXME: insert proper C++ library support
11836         ld_shlibs_CXX=no
11837         ;;
11838       *)
11839         # FIXME: insert proper C++ library support
11840         ld_shlibs_CXX=no
11841         ;;
11842     esac
11843     ;;
11844   vxworks*)
11845     # FIXME: insert proper C++ library support
11846     ld_shlibs_CXX=no
11847     ;;
11848   *)
11849     # FIXME: insert proper C++ library support
11850     ld_shlibs_CXX=no
11851     ;;
11852 esac
11853 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11854 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11855 test "$ld_shlibs_CXX" = no && can_build_shared=no
11856
11857 GCC_CXX="$GXX"
11858 LD_CXX="$LD"
11859
11860
11861 cat > conftest.$ac_ext <<EOF
11862 class Foo
11863 {
11864 public:
11865   Foo (void) { a = 0; }
11866 private:
11867   int a;
11868 };
11869 EOF
11870
11871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872   (eval $ac_compile) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; then
11876   # Parse the compiler output and extract the necessary
11877   # objects, libraries and library flags.
11878
11879   # Sentinel used to keep track of whether or not we are before
11880   # the conftest object file.
11881   pre_test_object_deps_done=no
11882
11883   # The `*' in the case matches for architectures that use `case' in
11884   # $output_verbose_cmd can trigger glob expansion during the loop
11885   # eval without this substitution.
11886   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11887
11888   for p in `eval $output_verbose_link_cmd`; do
11889     case $p in
11890
11891     -L* | -R* | -l*)
11892        # Some compilers place space between "-{L,R}" and the path.
11893        # Remove the space.
11894        if test $p = "-L" \
11895           || test $p = "-R"; then
11896          prev=$p
11897          continue
11898        else
11899          prev=
11900        fi
11901
11902        if test "$pre_test_object_deps_done" = no; then
11903          case $p in
11904          -L* | -R*)
11905            # Internal compiler library paths should come after those
11906            # provided the user.  The postdeps already come after the
11907            # user supplied libs so there is no need to process them.
11908            if test -z "$compiler_lib_search_path_CXX"; then
11909              compiler_lib_search_path_CXX="${prev}${p}"
11910            else
11911              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11912            fi
11913            ;;
11914          # The "-l" case would never come before the object being
11915          # linked, so don't bother handling this case.
11916          esac
11917        else
11918          if test -z "$postdeps_CXX"; then
11919            postdeps_CXX="${prev}${p}"
11920          else
11921            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11922          fi
11923        fi
11924        ;;
11925
11926     *.$objext)
11927        # This assumes that the test object file only shows up
11928        # once in the compiler output.
11929        if test "$p" = "conftest.$objext"; then
11930          pre_test_object_deps_done=yes
11931          continue
11932        fi
11933
11934        if test "$pre_test_object_deps_done" = no; then
11935          if test -z "$predep_objects_CXX"; then
11936            predep_objects_CXX="$p"
11937          else
11938            predep_objects_CXX="$predep_objects_CXX $p"
11939          fi
11940        else
11941          if test -z "$postdep_objects_CXX"; then
11942            postdep_objects_CXX="$p"
11943          else
11944            postdep_objects_CXX="$postdep_objects_CXX $p"
11945          fi
11946        fi
11947        ;;
11948
11949     *) ;; # Ignore the rest.
11950
11951     esac
11952   done
11953
11954   # Clean up.
11955   rm -f a.out a.exe
11956 else
11957   echo "libtool.m4: error: problem compiling CXX test program"
11958 fi
11959
11960 $rm -f confest.$objext
11961
11962 # PORTME: override above test on systems where it is broken
11963 case $host_os in
11964 interix3*)
11965   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11966   # hack all around it, let's just trust "g++" to DTRT.
11967   predep_objects_CXX=
11968   postdep_objects_CXX=
11969   postdeps_CXX=
11970   ;;
11971
11972 solaris*)
11973   case $cc_basename in
11974   CC*)
11975     # Adding this requires a known-good setup of shared libraries for
11976     # Sun compiler versions before 5.6, else PIC objects from an old
11977     # archive will be linked into the output, leading to subtle bugs.
11978     postdeps_CXX='-lCstd -lCrun'
11979     ;;
11980   esac
11981   ;;
11982 esac
11983
11984
11985 case " $postdeps_CXX " in
11986 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11987 esac
11988
11989 lt_prog_compiler_wl_CXX=
11990 lt_prog_compiler_pic_CXX=
11991 lt_prog_compiler_static_CXX=
11992
11993 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11994 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11995
11996   # C++ specific cases for pic, static, wl, etc.
11997   if test "$GXX" = yes; then
11998     lt_prog_compiler_wl_CXX='-Wl,'
11999     lt_prog_compiler_static_CXX='-static'
12000
12001     case $host_os in
12002     aix*)
12003       # All AIX code is PIC.
12004       if test "$host_cpu" = ia64; then
12005         # AIX 5 now supports IA64 processor
12006         lt_prog_compiler_static_CXX='-Bstatic'
12007       fi
12008       ;;
12009     amigaos*)
12010       # FIXME: we need at least 68020 code to build shared libraries, but
12011       # adding the `-m68020' flag to GCC prevents building anything better,
12012       # like `-m68040'.
12013       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12014       ;;
12015     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12016       # PIC is the default for these OSes.
12017       ;;
12018     mingw* | os2* | pw32*)
12019       # This hack is so that the source file can tell whether it is being
12020       # built for inclusion in a dll (and should export symbols for example).
12021       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12022       ;;
12023     darwin* | rhapsody*)
12024       # PIC is the default on this platform
12025       # Common symbols not allowed in MH_DYLIB files
12026       lt_prog_compiler_pic_CXX='-fno-common'
12027       ;;
12028     *djgpp*)
12029       # DJGPP does not support shared libraries at all
12030       lt_prog_compiler_pic_CXX=
12031       ;;
12032     interix3*)
12033       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12034       # Instead, we relocate shared libraries at runtime.
12035       ;;
12036     sysv4*MP*)
12037       if test -d /usr/nec; then
12038         lt_prog_compiler_pic_CXX=-Kconform_pic
12039       fi
12040       ;;
12041     hpux*)
12042       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12043       # not for PA HP-UX.
12044       case $host_cpu in
12045       hppa*64*|ia64*)
12046         ;;
12047       *)
12048         lt_prog_compiler_pic_CXX='-fPIC'
12049         ;;
12050       esac
12051       ;;
12052     *)
12053       lt_prog_compiler_pic_CXX='-fPIC'
12054       ;;
12055     esac
12056   else
12057     case $host_os in
12058       aix4* | aix5*)
12059         # All AIX code is PIC.
12060         if test "$host_cpu" = ia64; then
12061           # AIX 5 now supports IA64 processor
12062           lt_prog_compiler_static_CXX='-Bstatic'
12063         else
12064           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12065         fi
12066         ;;
12067       chorus*)
12068         case $cc_basename in
12069         cxch68*)
12070           # Green Hills C++ Compiler
12071           # _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"
12072           ;;
12073         esac
12074         ;;
12075        darwin*)
12076          # PIC is the default on this platform
12077          # Common symbols not allowed in MH_DYLIB files
12078          case $cc_basename in
12079            xlc*)
12080            lt_prog_compiler_pic_CXX='-qnocommon'
12081            lt_prog_compiler_wl_CXX='-Wl,'
12082            ;;
12083          esac
12084        ;;
12085       dgux*)
12086         case $cc_basename in
12087           ec++*)
12088             lt_prog_compiler_pic_CXX='-KPIC'
12089             ;;
12090           ghcx*)
12091             # Green Hills C++ Compiler
12092             lt_prog_compiler_pic_CXX='-pic'
12093             ;;
12094           *)
12095             ;;
12096         esac
12097         ;;
12098       freebsd* | dragonfly*)
12099         # FreeBSD uses GNU C++
12100         ;;
12101       hpux9* | hpux10* | hpux11*)
12102         case $cc_basename in
12103           CC*)
12104             lt_prog_compiler_wl_CXX='-Wl,'
12105             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12106             if test "$host_cpu" != ia64; then
12107               lt_prog_compiler_pic_CXX='+Z'
12108             fi
12109             ;;
12110           aCC*)
12111             lt_prog_compiler_wl_CXX='-Wl,'
12112             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12113             case $host_cpu in
12114             hppa*64*|ia64*)
12115               # +Z the default
12116               ;;
12117             *)
12118               lt_prog_compiler_pic_CXX='+Z'
12119               ;;
12120             esac
12121             ;;
12122           *)
12123             ;;
12124         esac
12125         ;;
12126       interix*)
12127         # This is c89, which is MS Visual C++ (no shared libs)
12128         # Anyone wants to do a port?
12129         ;;
12130       irix5* | irix6* | nonstopux*)
12131         case $cc_basename in
12132           CC*)
12133             lt_prog_compiler_wl_CXX='-Wl,'
12134             lt_prog_compiler_static_CXX='-non_shared'
12135             # CC pic flag -KPIC is the default.
12136             ;;
12137           *)
12138             ;;
12139         esac
12140         ;;
12141       linux* | k*bsd*-gnu)
12142         case $cc_basename in
12143           KCC*)
12144             # KAI C++ Compiler
12145             lt_prog_compiler_wl_CXX='--backend -Wl,'
12146             lt_prog_compiler_pic_CXX='-fPIC'
12147             ;;
12148           icpc* | ecpc*)
12149             # Intel C++
12150             lt_prog_compiler_wl_CXX='-Wl,'
12151             lt_prog_compiler_pic_CXX='-KPIC'
12152             lt_prog_compiler_static_CXX='-static'
12153             ;;
12154           pgCC*)
12155             # Portland Group C++ compiler.
12156             lt_prog_compiler_wl_CXX='-Wl,'
12157             lt_prog_compiler_pic_CXX='-fpic'
12158             lt_prog_compiler_static_CXX='-Bstatic'
12159             ;;
12160           cxx*)
12161             # Compaq C++
12162             # Make sure the PIC flag is empty.  It appears that all Alpha
12163             # Linux and Compaq Tru64 Unix objects are PIC.
12164             lt_prog_compiler_pic_CXX=
12165             lt_prog_compiler_static_CXX='-non_shared'
12166             ;;
12167           *)
12168             ;;
12169         esac
12170         ;;
12171       lynxos*)
12172         ;;
12173       m88k*)
12174         ;;
12175       mvs*)
12176         case $cc_basename in
12177           cxx*)
12178             lt_prog_compiler_pic_CXX='-W c,exportall'
12179             ;;
12180           *)
12181             ;;
12182         esac
12183         ;;
12184       netbsd* | netbsdelf*-gnu)
12185         ;;
12186       osf3* | osf4* | osf5*)
12187         case $cc_basename in
12188           KCC*)
12189             lt_prog_compiler_wl_CXX='--backend -Wl,'
12190             ;;
12191           RCC*)
12192             # Rational C++ 2.4.1
12193             lt_prog_compiler_pic_CXX='-pic'
12194             ;;
12195           cxx*)
12196             # Digital/Compaq C++
12197             lt_prog_compiler_wl_CXX='-Wl,'
12198             # Make sure the PIC flag is empty.  It appears that all Alpha
12199             # Linux and Compaq Tru64 Unix objects are PIC.
12200             lt_prog_compiler_pic_CXX=
12201             lt_prog_compiler_static_CXX='-non_shared'
12202             ;;
12203           *)
12204             ;;
12205         esac
12206         ;;
12207       psos*)
12208         ;;
12209       solaris*)
12210         case $cc_basename in
12211           CC*)
12212             # Sun C++ 4.2, 5.x and Centerline C++
12213             lt_prog_compiler_pic_CXX='-KPIC'
12214             lt_prog_compiler_static_CXX='-Bstatic'
12215             lt_prog_compiler_wl_CXX='-Qoption ld '
12216             ;;
12217           gcx*)
12218             # Green Hills C++ Compiler
12219             lt_prog_compiler_pic_CXX='-PIC'
12220             ;;
12221           *)
12222             ;;
12223         esac
12224         ;;
12225       sunos4*)
12226         case $cc_basename in
12227           CC*)
12228             # Sun C++ 4.x
12229             lt_prog_compiler_pic_CXX='-pic'
12230             lt_prog_compiler_static_CXX='-Bstatic'
12231             ;;
12232           lcc*)
12233             # Lucid
12234             lt_prog_compiler_pic_CXX='-pic'
12235             ;;
12236           *)
12237             ;;
12238         esac
12239         ;;
12240       tandem*)
12241         case $cc_basename in
12242           NCC*)
12243             # NonStop-UX NCC 3.20
12244             lt_prog_compiler_pic_CXX='-KPIC'
12245             ;;
12246           *)
12247             ;;
12248         esac
12249         ;;
12250       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251         case $cc_basename in
12252           CC*)
12253             lt_prog_compiler_wl_CXX='-Wl,'
12254             lt_prog_compiler_pic_CXX='-KPIC'
12255             lt_prog_compiler_static_CXX='-Bstatic'
12256             ;;
12257         esac
12258         ;;
12259       vxworks*)
12260         ;;
12261       *)
12262         lt_prog_compiler_can_build_shared_CXX=no
12263         ;;
12264     esac
12265   fi
12266
12267 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12268 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12269
12270 #
12271 # Check to make sure the PIC flag actually works.
12272 #
12273 if test -n "$lt_prog_compiler_pic_CXX"; then
12274
12275 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12276 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12277 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12278   echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280   lt_prog_compiler_pic_works_CXX=no
12281   ac_outfile=conftest.$ac_objext
12282    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12283    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12284    # Insert the option either (1) after the last *FLAGS variable, or
12285    # (2) before a word containing "conftest.", or (3) at the end.
12286    # Note that $ac_compile itself does not contain backslashes and begins
12287    # with a dollar sign (not a hyphen), so the echo should work correctly.
12288    # The option is referenced via a variable to avoid confusing sed.
12289    lt_compile=`echo "$ac_compile" | $SED \
12290    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12292    -e 's:$: $lt_compiler_flag:'`
12293    (eval echo "\"\$as_me:12293: $lt_compile\"" >&5)
12294    (eval "$lt_compile" 2>conftest.err)
12295    ac_status=$?
12296    cat conftest.err >&5
12297    echo "$as_me:12297: \$? = $ac_status" >&5
12298    if (exit $ac_status) && test -s "$ac_outfile"; then
12299      # The compiler can only warn and ignore the option if not recognized
12300      # So say no if there are warnings other than the usual output.
12301      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12302      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12304        lt_prog_compiler_pic_works_CXX=yes
12305      fi
12306    fi
12307    $rm conftest*
12308
12309 fi
12310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12311 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12312
12313 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12314     case $lt_prog_compiler_pic_CXX in
12315      "" | " "*) ;;
12316      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12317      esac
12318 else
12319     lt_prog_compiler_pic_CXX=
12320      lt_prog_compiler_can_build_shared_CXX=no
12321 fi
12322
12323 fi
12324 case $host_os in
12325   # For platforms which do not support PIC, -DPIC is meaningless:
12326   *djgpp*)
12327     lt_prog_compiler_pic_CXX=
12328     ;;
12329   *)
12330     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12331     ;;
12332 esac
12333
12334 #
12335 # Check to make sure the static flag actually works.
12336 #
12337 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12338 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12339 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12340 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   lt_prog_compiler_static_works_CXX=no
12344    save_LDFLAGS="$LDFLAGS"
12345    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12346    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12347    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12348      # The linker can only warn and ignore the option if not recognized
12349      # So say no if there are warnings
12350      if test -s conftest.err; then
12351        # Append any errors to the config.log.
12352        cat conftest.err 1>&5
12353        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12354        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12355        if diff conftest.exp conftest.er2 >/dev/null; then
12356          lt_prog_compiler_static_works_CXX=yes
12357        fi
12358      else
12359        lt_prog_compiler_static_works_CXX=yes
12360      fi
12361    fi
12362    $rm conftest*
12363    LDFLAGS="$save_LDFLAGS"
12364
12365 fi
12366 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12367 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12368
12369 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12370     :
12371 else
12372     lt_prog_compiler_static_CXX=
12373 fi
12374
12375
12376 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12377 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12378 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   lt_cv_prog_compiler_c_o_CXX=no
12382    $rm -r conftest 2>/dev/null
12383    mkdir conftest
12384    cd conftest
12385    mkdir out
12386    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12387
12388    lt_compiler_flag="-o out/conftest2.$ac_objext"
12389    # Insert the option either (1) after the last *FLAGS variable, or
12390    # (2) before a word containing "conftest.", or (3) at the end.
12391    # Note that $ac_compile itself does not contain backslashes and begins
12392    # with a dollar sign (not a hyphen), so the echo should work correctly.
12393    lt_compile=`echo "$ac_compile" | $SED \
12394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396    -e 's:$: $lt_compiler_flag:'`
12397    (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398    (eval "$lt_compile" 2>out/conftest.err)
12399    ac_status=$?
12400    cat out/conftest.err >&5
12401    echo "$as_me:12401: \$? = $ac_status" >&5
12402    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12403    then
12404      # The compiler can only warn and ignore the option if not recognized
12405      # So say no if there are warnings
12406      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12407      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12408      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12409        lt_cv_prog_compiler_c_o_CXX=yes
12410      fi
12411    fi
12412    chmod u+w . 2>&5
12413    $rm conftest*
12414    # SGI C++ compiler will create directory out/ii_files/ for
12415    # template instantiation
12416    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12417    $rm out/* && rmdir out
12418    cd ..
12419    rmdir conftest
12420    $rm conftest*
12421
12422 fi
12423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12424 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12425
12426
12427 hard_links="nottested"
12428 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12429   # do not overwrite the value of need_locks provided by the user
12430   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12431 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12432   hard_links=yes
12433   $rm conftest*
12434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12435   touch conftest.a
12436   ln conftest.a conftest.b 2>&5 || hard_links=no
12437   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12438   { echo "$as_me:$LINENO: result: $hard_links" >&5
12439 echo "${ECHO_T}$hard_links" >&6; }
12440   if test "$hard_links" = no; then
12441     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12442 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12443     need_locks=warn
12444   fi
12445 else
12446   need_locks=no
12447 fi
12448
12449 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12451
12452   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12453   case $host_os in
12454   aix4* | aix5*)
12455     # If we're using GNU nm, then we don't want the "-C" option.
12456     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12457     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12458       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'
12459     else
12460       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'
12461     fi
12462     ;;
12463   pw32*)
12464     export_symbols_cmds_CXX="$ltdll_cmds"
12465   ;;
12466   cygwin* | mingw*)
12467     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'
12468   ;;
12469   linux* | k*bsd*-gnu)
12470     link_all_deplibs_CXX=no
12471   ;;
12472   *)
12473     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12474   ;;
12475   esac
12476
12477 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12478 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12479 test "$ld_shlibs_CXX" = no && can_build_shared=no
12480
12481 #
12482 # Do we need to explicitly link libc?
12483 #
12484 case "x$archive_cmds_need_lc_CXX" in
12485 x|xyes)
12486   # Assume -lc should be added
12487   archive_cmds_need_lc_CXX=yes
12488
12489   if test "$enable_shared" = yes && test "$GCC" = yes; then
12490     case $archive_cmds_CXX in
12491     *'~'*)
12492       # FIXME: we may have to deal with multi-command sequences.
12493       ;;
12494     '$CC '*)
12495       # Test whether the compiler implicitly links with -lc since on some
12496       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12497       # to ld, don't add -lc before -lgcc.
12498       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12500       $rm conftest*
12501       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12502
12503       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504   (eval $ac_compile) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } 2>conftest.err; then
12508         soname=conftest
12509         lib=conftest
12510         libobjs=conftest.$ac_objext
12511         deplibs=
12512         wl=$lt_prog_compiler_wl_CXX
12513         pic_flag=$lt_prog_compiler_pic_CXX
12514         compiler_flags=-v
12515         linker_flags=-v
12516         verstring=
12517         output_objdir=.
12518         libname=conftest
12519         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12520         allow_undefined_flag_CXX=
12521         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12522   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }
12526         then
12527           archive_cmds_need_lc_CXX=no
12528         else
12529           archive_cmds_need_lc_CXX=yes
12530         fi
12531         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12532       else
12533         cat conftest.err 1>&5
12534       fi
12535       $rm conftest*
12536       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12537 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12538       ;;
12539     esac
12540   fi
12541   ;;
12542 esac
12543
12544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12546 library_names_spec=
12547 libname_spec='lib$name'
12548 soname_spec=
12549 shrext_cmds=".so"
12550 postinstall_cmds=
12551 postuninstall_cmds=
12552 finish_cmds=
12553 finish_eval=
12554 shlibpath_var=
12555 shlibpath_overrides_runpath=unknown
12556 version_type=none
12557 dynamic_linker="$host_os ld.so"
12558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12559 if test "$GCC" = yes; then
12560   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12561   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12562     # if the path contains ";" then we assume it to be the separator
12563     # otherwise default to the standard path separator (i.e. ":") - it is
12564     # assumed that no part of a normal pathname contains ";" but that should
12565     # okay in the real world where ";" in dirpaths is itself problematic.
12566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12567   else
12568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12569   fi
12570 else
12571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12572 fi
12573 need_lib_prefix=unknown
12574 hardcode_into_libs=no
12575
12576 # when you set need_version to no, make sure it does not cause -set_version
12577 # flags to be left without arguments
12578 need_version=unknown
12579
12580 case $host_os in
12581 aix3*)
12582   version_type=linux
12583   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12584   shlibpath_var=LIBPATH
12585
12586   # AIX 3 has no versioning support, so we append a major version to the name.
12587   soname_spec='${libname}${release}${shared_ext}$major'
12588   ;;
12589
12590 aix4* | aix5*)
12591   version_type=linux
12592   need_lib_prefix=no
12593   need_version=no
12594   hardcode_into_libs=yes
12595   if test "$host_cpu" = ia64; then
12596     # AIX 5 supports IA64
12597     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12598     shlibpath_var=LD_LIBRARY_PATH
12599   else
12600     # With GCC up to 2.95.x, collect2 would create an import file
12601     # for dependence libraries.  The import file would start with
12602     # the line `#! .'.  This would cause the generated library to
12603     # depend on `.', always an invalid library.  This was fixed in
12604     # development snapshots of GCC prior to 3.0.
12605     case $host_os in
12606       aix4 | aix4.[01] | aix4.[01].*)
12607       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12608            echo ' yes '
12609            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12610         :
12611       else
12612         can_build_shared=no
12613       fi
12614       ;;
12615     esac
12616     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12617     # soname into executable. Probably we can add versioning support to
12618     # collect2, so additional links can be useful in future.
12619     if test "$aix_use_runtimelinking" = yes; then
12620       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12621       # instead of lib<name>.a to let people know that these are not
12622       # typical AIX shared libraries.
12623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624     else
12625       # We preserve .a as extension for shared libraries through AIX4.2
12626       # and later when we are not doing run time linking.
12627       library_names_spec='${libname}${release}.a $libname.a'
12628       soname_spec='${libname}${release}${shared_ext}$major'
12629     fi
12630     shlibpath_var=LIBPATH
12631   fi
12632   ;;
12633
12634 amigaos*)
12635   library_names_spec='$libname.ixlibrary $libname.a'
12636   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12637   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'
12638   ;;
12639
12640 beos*)
12641   library_names_spec='${libname}${shared_ext}'
12642   dynamic_linker="$host_os ld.so"
12643   shlibpath_var=LIBRARY_PATH
12644   ;;
12645
12646 bsdi[45]*)
12647   version_type=linux
12648   need_version=no
12649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650   soname_spec='${libname}${release}${shared_ext}$major'
12651   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12652   shlibpath_var=LD_LIBRARY_PATH
12653   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12654   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12655   # the default ld.so.conf also contains /usr/contrib/lib and
12656   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12657   # libtool to hard-code these into programs
12658   ;;
12659
12660 cygwin* | mingw* | pw32*)
12661   version_type=windows
12662   shrext_cmds=".dll"
12663   need_version=no
12664   need_lib_prefix=no
12665
12666   case $GCC,$host_os in
12667   yes,cygwin* | yes,mingw* | yes,pw32*)
12668     library_names_spec='$libname.dll.a'
12669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12670     postinstall_cmds='base_file=`basename \${file}`~
12671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12672       dldir=$destdir/`dirname \$dlpath`~
12673       test -d \$dldir || mkdir -p \$dldir~
12674       $install_prog $dir/$dlname \$dldir/$dlname~
12675       chmod a+x \$dldir/$dlname'
12676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12677       dlpath=$dir/\$dldll~
12678        $rm \$dlpath'
12679     shlibpath_overrides_runpath=yes
12680
12681     case $host_os in
12682     cygwin*)
12683       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12684       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12685       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12686       ;;
12687     mingw*)
12688       # MinGW DLLs use traditional 'lib' prefix
12689       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12690       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12691       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12692         # It is most probably a Windows format PATH printed by
12693         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12694         # path with ; separators, and with drive letters. We can handle the
12695         # drive letters (cygwin fileutils understands them), so leave them,
12696         # especially as we might pass files found there to a mingw objdump,
12697         # which wouldn't understand a cygwinified path. Ahh.
12698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12699       else
12700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12701       fi
12702       ;;
12703     pw32*)
12704       # pw32 DLLs use 'pw' prefix rather than 'lib'
12705       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12706       ;;
12707     esac
12708     ;;
12709
12710   *)
12711     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12712     ;;
12713   esac
12714   dynamic_linker='Win32 ld.exe'
12715   # FIXME: first we should search . and the directory the executable is in
12716   shlibpath_var=PATH
12717   ;;
12718
12719 darwin* | rhapsody*)
12720   dynamic_linker="$host_os dyld"
12721   version_type=darwin
12722   need_lib_prefix=no
12723   need_version=no
12724   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12725   soname_spec='${libname}${release}${major}$shared_ext'
12726   shlibpath_overrides_runpath=yes
12727   shlibpath_var=DYLD_LIBRARY_PATH
12728   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12729   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12730   if test "$GCC" = yes; then
12731     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"`
12732   else
12733     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12734   fi
12735   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12736   ;;
12737
12738 dgux*)
12739   version_type=linux
12740   need_lib_prefix=no
12741   need_version=no
12742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12743   soname_spec='${libname}${release}${shared_ext}$major'
12744   shlibpath_var=LD_LIBRARY_PATH
12745   ;;
12746
12747 freebsd1*)
12748   dynamic_linker=no
12749   ;;
12750
12751 freebsd* | dragonfly*)
12752   # DragonFly does not have aout.  When/if they implement a new
12753   # versioning mechanism, adjust this.
12754   if test -x /usr/bin/objformat; then
12755     objformat=`/usr/bin/objformat`
12756   else
12757     case $host_os in
12758     freebsd[123]*) objformat=aout ;;
12759     *) objformat=elf ;;
12760     esac
12761   fi
12762   version_type=freebsd-$objformat
12763   case $version_type in
12764     freebsd-elf*)
12765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12766       need_version=no
12767       need_lib_prefix=no
12768       ;;
12769     freebsd-*)
12770       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12771       need_version=yes
12772       ;;
12773   esac
12774   shlibpath_var=LD_LIBRARY_PATH
12775   case $host_os in
12776   freebsd2*)
12777     shlibpath_overrides_runpath=yes
12778     ;;
12779   freebsd3.[01]* | freebsdelf3.[01]*)
12780     shlibpath_overrides_runpath=yes
12781     hardcode_into_libs=yes
12782     ;;
12783   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12784   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12785     shlibpath_overrides_runpath=no
12786     hardcode_into_libs=yes
12787     ;;
12788   freebsd*) # from 4.6 on
12789     shlibpath_overrides_runpath=yes
12790     hardcode_into_libs=yes
12791     ;;
12792   esac
12793   ;;
12794
12795 gnu*)
12796   version_type=linux
12797   need_lib_prefix=no
12798   need_version=no
12799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12800   soname_spec='${libname}${release}${shared_ext}$major'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   hardcode_into_libs=yes
12803   ;;
12804
12805 hpux9* | hpux10* | hpux11*)
12806   # Give a soname corresponding to the major version so that dld.sl refuses to
12807   # link against other versions.
12808   version_type=sunos
12809   need_lib_prefix=no
12810   need_version=no
12811   case $host_cpu in
12812   ia64*)
12813     shrext_cmds='.so'
12814     hardcode_into_libs=yes
12815     dynamic_linker="$host_os dld.so"
12816     shlibpath_var=LD_LIBRARY_PATH
12817     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12819     soname_spec='${libname}${release}${shared_ext}$major'
12820     if test "X$HPUX_IA64_MODE" = X32; then
12821       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12822     else
12823       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12824     fi
12825     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12826     ;;
12827    hppa*64*)
12828      shrext_cmds='.sl'
12829      hardcode_into_libs=yes
12830      dynamic_linker="$host_os dld.sl"
12831      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12832      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12833      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834      soname_spec='${libname}${release}${shared_ext}$major'
12835      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12836      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12837      ;;
12838    *)
12839     shrext_cmds='.sl'
12840     dynamic_linker="$host_os dld.sl"
12841     shlibpath_var=SHLIB_PATH
12842     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844     soname_spec='${libname}${release}${shared_ext}$major'
12845     ;;
12846   esac
12847   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12848   postinstall_cmds='chmod 555 $lib'
12849   ;;
12850
12851 interix3*)
12852   version_type=linux
12853   need_lib_prefix=no
12854   need_version=no
12855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12856   soname_spec='${libname}${release}${shared_ext}$major'
12857   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12858   shlibpath_var=LD_LIBRARY_PATH
12859   shlibpath_overrides_runpath=no
12860   hardcode_into_libs=yes
12861   ;;
12862
12863 irix5* | irix6* | nonstopux*)
12864   case $host_os in
12865     nonstopux*) version_type=nonstopux ;;
12866     *)
12867         if test "$lt_cv_prog_gnu_ld" = yes; then
12868                 version_type=linux
12869         else
12870                 version_type=irix
12871         fi ;;
12872   esac
12873   need_lib_prefix=no
12874   need_version=no
12875   soname_spec='${libname}${release}${shared_ext}$major'
12876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12877   case $host_os in
12878   irix5* | nonstopux*)
12879     libsuff= shlibsuff=
12880     ;;
12881   *)
12882     case $LD in # libtool.m4 will add one of these switches to LD
12883     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12884       libsuff= shlibsuff= libmagic=32-bit;;
12885     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12886       libsuff=32 shlibsuff=N32 libmagic=N32;;
12887     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12888       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12889     *) libsuff= shlibsuff= libmagic=never-match;;
12890     esac
12891     ;;
12892   esac
12893   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12894   shlibpath_overrides_runpath=no
12895   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12896   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12897   hardcode_into_libs=yes
12898   ;;
12899
12900 # No shared lib support for Linux oldld, aout, or coff.
12901 linux*oldld* | linux*aout* | linux*coff*)
12902   dynamic_linker=no
12903   ;;
12904
12905 # This must be Linux ELF.
12906 linux* | k*bsd*-gnu)
12907   version_type=linux
12908   need_lib_prefix=no
12909   need_version=no
12910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911   soname_spec='${libname}${release}${shared_ext}$major'
12912   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12913   shlibpath_var=LD_LIBRARY_PATH
12914   shlibpath_overrides_runpath=no
12915   # This implies no fast_install, which is unacceptable.
12916   # Some rework will be needed to allow for fast_install
12917   # before this can be enabled.
12918   hardcode_into_libs=yes
12919
12920   # Append ld.so.conf contents to the search path
12921   if test -f /etc/ld.so.conf; then
12922     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' ' '`
12923     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12924   fi
12925
12926   # We used to test for /lib/ld.so.1 and disable shared libraries on
12927   # powerpc, because MkLinux only supported shared libraries with the
12928   # GNU dynamic linker.  Since this was broken with cross compilers,
12929   # most powerpc-linux boxes support dynamic linking these days and
12930   # people can always --disable-shared, the test was removed, and we
12931   # assume the GNU/Linux dynamic linker is in use.
12932   dynamic_linker='GNU/Linux ld.so'
12933   ;;
12934
12935 netbsdelf*-gnu)
12936   version_type=linux
12937   need_lib_prefix=no
12938   need_version=no
12939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940   soname_spec='${libname}${release}${shared_ext}$major'
12941   shlibpath_var=LD_LIBRARY_PATH
12942   shlibpath_overrides_runpath=no
12943   hardcode_into_libs=yes
12944   dynamic_linker='NetBSD ld.elf_so'
12945   ;;
12946
12947 netbsd*)
12948   version_type=sunos
12949   need_lib_prefix=no
12950   need_version=no
12951   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12953     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12954     dynamic_linker='NetBSD (a.out) ld.so'
12955   else
12956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12957     soname_spec='${libname}${release}${shared_ext}$major'
12958     dynamic_linker='NetBSD ld.elf_so'
12959   fi
12960   shlibpath_var=LD_LIBRARY_PATH
12961   shlibpath_overrides_runpath=yes
12962   hardcode_into_libs=yes
12963   ;;
12964
12965 newsos6)
12966   version_type=linux
12967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12968   shlibpath_var=LD_LIBRARY_PATH
12969   shlibpath_overrides_runpath=yes
12970   ;;
12971
12972 nto-qnx*)
12973   version_type=linux
12974   need_lib_prefix=no
12975   need_version=no
12976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12977   soname_spec='${libname}${release}${shared_ext}$major'
12978   shlibpath_var=LD_LIBRARY_PATH
12979   shlibpath_overrides_runpath=yes
12980   ;;
12981
12982 openbsd*)
12983   version_type=sunos
12984   sys_lib_dlsearch_path_spec="/usr/lib"
12985   need_lib_prefix=no
12986   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12987   case $host_os in
12988     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12989     *)                         need_version=no  ;;
12990   esac
12991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12993   shlibpath_var=LD_LIBRARY_PATH
12994   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12995     case $host_os in
12996       openbsd2.[89] | openbsd2.[89].*)
12997         shlibpath_overrides_runpath=no
12998         ;;
12999       *)
13000         shlibpath_overrides_runpath=yes
13001         ;;
13002       esac
13003   else
13004     shlibpath_overrides_runpath=yes
13005   fi
13006   ;;
13007
13008 os2*)
13009   libname_spec='$name'
13010   shrext_cmds=".dll"
13011   need_lib_prefix=no
13012   library_names_spec='$libname${shared_ext} $libname.a'
13013   dynamic_linker='OS/2 ld.exe'
13014   shlibpath_var=LIBPATH
13015   ;;
13016
13017 osf3* | osf4* | osf5*)
13018   version_type=osf
13019   need_lib_prefix=no
13020   need_version=no
13021   soname_spec='${libname}${release}${shared_ext}$major'
13022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023   shlibpath_var=LD_LIBRARY_PATH
13024   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13025   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13026   ;;
13027
13028 solaris*)
13029   version_type=linux
13030   need_lib_prefix=no
13031   need_version=no
13032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033   soname_spec='${libname}${release}${shared_ext}$major'
13034   shlibpath_var=LD_LIBRARY_PATH
13035   shlibpath_overrides_runpath=yes
13036   hardcode_into_libs=yes
13037   # ldd complains unless libraries are executable
13038   postinstall_cmds='chmod +x $lib'
13039   ;;
13040
13041 sunos4*)
13042   version_type=sunos
13043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13044   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13045   shlibpath_var=LD_LIBRARY_PATH
13046   shlibpath_overrides_runpath=yes
13047   if test "$with_gnu_ld" = yes; then
13048     need_lib_prefix=no
13049   fi
13050   need_version=yes
13051   ;;
13052
13053 sysv4 | sysv4.3*)
13054   version_type=linux
13055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056   soname_spec='${libname}${release}${shared_ext}$major'
13057   shlibpath_var=LD_LIBRARY_PATH
13058   case $host_vendor in
13059     sni)
13060       shlibpath_overrides_runpath=no
13061       need_lib_prefix=no
13062       export_dynamic_flag_spec='${wl}-Blargedynsym'
13063       runpath_var=LD_RUN_PATH
13064       ;;
13065     siemens)
13066       need_lib_prefix=no
13067       ;;
13068     motorola)
13069       need_lib_prefix=no
13070       need_version=no
13071       shlibpath_overrides_runpath=no
13072       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13073       ;;
13074   esac
13075   ;;
13076
13077 sysv4*MP*)
13078   if test -d /usr/nec ;then
13079     version_type=linux
13080     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13081     soname_spec='$libname${shared_ext}.$major'
13082     shlibpath_var=LD_LIBRARY_PATH
13083   fi
13084   ;;
13085
13086 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13087   version_type=freebsd-elf
13088   need_lib_prefix=no
13089   need_version=no
13090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13091   soname_spec='${libname}${release}${shared_ext}$major'
13092   shlibpath_var=LD_LIBRARY_PATH
13093   hardcode_into_libs=yes
13094   if test "$with_gnu_ld" = yes; then
13095     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13096     shlibpath_overrides_runpath=no
13097   else
13098     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13099     shlibpath_overrides_runpath=yes
13100     case $host_os in
13101       sco3.2v5*)
13102         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13103         ;;
13104     esac
13105   fi
13106   sys_lib_dlsearch_path_spec='/usr/lib'
13107   ;;
13108
13109 uts4*)
13110   version_type=linux
13111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13112   soname_spec='${libname}${release}${shared_ext}$major'
13113   shlibpath_var=LD_LIBRARY_PATH
13114   ;;
13115
13116 *)
13117   dynamic_linker=no
13118   ;;
13119 esac
13120 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13121 echo "${ECHO_T}$dynamic_linker" >&6; }
13122 test "$dynamic_linker" = no && can_build_shared=no
13123
13124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13125 if test "$GCC" = yes; then
13126   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13127 fi
13128
13129 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13130 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13131 hardcode_action_CXX=
13132 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13133    test -n "$runpath_var_CXX" || \
13134    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13135
13136   # We can hardcode non-existant directories.
13137   if test "$hardcode_direct_CXX" != no &&
13138      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13139      # have to relink, otherwise we might link with an installed library
13140      # when we should be linking with a yet-to-be-installed one
13141      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13142      test "$hardcode_minus_L_CXX" != no; then
13143     # Linking always hardcodes the temporary library directory.
13144     hardcode_action_CXX=relink
13145   else
13146     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13147     hardcode_action_CXX=immediate
13148   fi
13149 else
13150   # We cannot hardcode anything, or else we can only hardcode existing
13151   # directories.
13152   hardcode_action_CXX=unsupported
13153 fi
13154 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13155 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13156
13157 if test "$hardcode_action_CXX" = relink; then
13158   # Fast installation is not supported
13159   enable_fast_install=no
13160 elif test "$shlibpath_overrides_runpath" = yes ||
13161      test "$enable_shared" = no; then
13162   # Fast installation is not necessary
13163   enable_fast_install=needless
13164 fi
13165
13166
13167 # The else clause should only fire when bootstrapping the
13168 # libtool distribution, otherwise you forgot to ship ltmain.sh
13169 # with your package, and you will get complaints that there are
13170 # no rules to generate ltmain.sh.
13171 if test -f "$ltmain"; then
13172   # See if we are running on zsh, and set the options which allow our commands through
13173   # without removal of \ escapes.
13174   if test -n "${ZSH_VERSION+set}" ; then
13175     setopt NO_GLOB_SUBST
13176   fi
13177   # Now quote all the things that may contain metacharacters while being
13178   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13179   # variables and quote the copies for generation of the libtool script.
13180   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13181     SED SHELL STRIP \
13182     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13183     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13184     deplibs_check_method reload_flag reload_cmds need_locks \
13185     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13186     lt_cv_sys_global_symbol_to_c_name_address \
13187     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13188     old_postinstall_cmds old_postuninstall_cmds \
13189     compiler_CXX \
13190     CC_CXX \
13191     LD_CXX \
13192     lt_prog_compiler_wl_CXX \
13193     lt_prog_compiler_pic_CXX \
13194     lt_prog_compiler_static_CXX \
13195     lt_prog_compiler_no_builtin_flag_CXX \
13196     export_dynamic_flag_spec_CXX \
13197     thread_safe_flag_spec_CXX \
13198     whole_archive_flag_spec_CXX \
13199     enable_shared_with_static_runtimes_CXX \
13200     old_archive_cmds_CXX \
13201     old_archive_from_new_cmds_CXX \
13202     predep_objects_CXX \
13203     postdep_objects_CXX \
13204     predeps_CXX \
13205     postdeps_CXX \
13206     compiler_lib_search_path_CXX \
13207     archive_cmds_CXX \
13208     archive_expsym_cmds_CXX \
13209     postinstall_cmds_CXX \
13210     postuninstall_cmds_CXX \
13211     old_archive_from_expsyms_cmds_CXX \
13212     allow_undefined_flag_CXX \
13213     no_undefined_flag_CXX \
13214     export_symbols_cmds_CXX \
13215     hardcode_libdir_flag_spec_CXX \
13216     hardcode_libdir_flag_spec_ld_CXX \
13217     hardcode_libdir_separator_CXX \
13218     hardcode_automatic_CXX \
13219     module_cmds_CXX \
13220     module_expsym_cmds_CXX \
13221     lt_cv_prog_compiler_c_o_CXX \
13222     exclude_expsyms_CXX \
13223     include_expsyms_CXX; do
13224
13225     case $var in
13226     old_archive_cmds_CXX | \
13227     old_archive_from_new_cmds_CXX | \
13228     archive_cmds_CXX | \
13229     archive_expsym_cmds_CXX | \
13230     module_cmds_CXX | \
13231     module_expsym_cmds_CXX | \
13232     old_archive_from_expsyms_cmds_CXX | \
13233     export_symbols_cmds_CXX | \
13234     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13235     postinstall_cmds | postuninstall_cmds | \
13236     old_postinstall_cmds | old_postuninstall_cmds | \
13237     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13238       # Double-quote double-evaled strings.
13239       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13240       ;;
13241     *)
13242       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13243       ;;
13244     esac
13245   done
13246
13247   case $lt_echo in
13248   *'\$0 --fallback-echo"')
13249     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13250     ;;
13251   esac
13252
13253 cfgfile="$ofile"
13254
13255   cat <<__EOF__ >> "$cfgfile"
13256 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13257
13258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13259
13260 # Shell to use when invoking shell scripts.
13261 SHELL=$lt_SHELL
13262
13263 # Whether or not to build shared libraries.
13264 build_libtool_libs=$enable_shared
13265
13266 # Whether or not to build static libraries.
13267 build_old_libs=$enable_static
13268
13269 # Whether or not to add -lc for building shared libraries.
13270 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13271
13272 # Whether or not to disallow shared libs when runtime libs are static
13273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13274
13275 # Whether or not to optimize for fast installation.
13276 fast_install=$enable_fast_install
13277
13278 # The host system.
13279 host_alias=$host_alias
13280 host=$host
13281 host_os=$host_os
13282
13283 # The build system.
13284 build_alias=$build_alias
13285 build=$build
13286 build_os=$build_os
13287
13288 # An echo program that does not interpret backslashes.
13289 echo=$lt_echo
13290
13291 # The archiver.
13292 AR=$lt_AR
13293 AR_FLAGS=$lt_AR_FLAGS
13294
13295 # A C compiler.
13296 LTCC=$lt_LTCC
13297
13298 # LTCC compiler flags.
13299 LTCFLAGS=$lt_LTCFLAGS
13300
13301 # A language-specific compiler.
13302 CC=$lt_compiler_CXX
13303
13304 # Is the compiler the GNU C compiler?
13305 with_gcc=$GCC_CXX
13306
13307 # An ERE matcher.
13308 EGREP=$lt_EGREP
13309
13310 # The linker used to build libraries.
13311 LD=$lt_LD_CXX
13312
13313 # Whether we need hard or soft links.
13314 LN_S=$lt_LN_S
13315
13316 # A BSD-compatible nm program.
13317 NM=$lt_NM
13318
13319 # A symbol stripping program
13320 STRIP=$lt_STRIP
13321
13322 # Used to examine libraries when file_magic_cmd begins "file"
13323 MAGIC_CMD=$MAGIC_CMD
13324
13325 # Used on cygwin: DLL creation program.
13326 DLLTOOL="$DLLTOOL"
13327
13328 # Used on cygwin: object dumper.
13329 OBJDUMP="$OBJDUMP"
13330
13331 # Used on cygwin: assembler.
13332 AS="$AS"
13333
13334 # The name of the directory that contains temporary libtool files.
13335 objdir=$objdir
13336
13337 # How to create reloadable object files.
13338 reload_flag=$lt_reload_flag
13339 reload_cmds=$lt_reload_cmds
13340
13341 # How to pass a linker flag through the compiler.
13342 wl=$lt_lt_prog_compiler_wl_CXX
13343
13344 # Object file suffix (normally "o").
13345 objext="$ac_objext"
13346
13347 # Old archive suffix (normally "a").
13348 libext="$libext"
13349
13350 # Shared library suffix (normally ".so").
13351 shrext_cmds='$shrext_cmds'
13352
13353 # Executable file suffix (normally "").
13354 exeext="$exeext"
13355
13356 # Additional compiler flags for building library objects.
13357 pic_flag=$lt_lt_prog_compiler_pic_CXX
13358 pic_mode=$pic_mode
13359
13360 # What is the maximum length of a command?
13361 max_cmd_len=$lt_cv_sys_max_cmd_len
13362
13363 # Does compiler simultaneously support -c and -o options?
13364 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13365
13366 # Must we lock files when doing compilation?
13367 need_locks=$lt_need_locks
13368
13369 # Do we need the lib prefix for modules?
13370 need_lib_prefix=$need_lib_prefix
13371
13372 # Do we need a version for libraries?
13373 need_version=$need_version
13374
13375 # Whether dlopen is supported.
13376 dlopen_support=$enable_dlopen
13377
13378 # Whether dlopen of programs is supported.
13379 dlopen_self=$enable_dlopen_self
13380
13381 # Whether dlopen of statically linked programs is supported.
13382 dlopen_self_static=$enable_dlopen_self_static
13383
13384 # Compiler flag to prevent dynamic linking.
13385 link_static_flag=$lt_lt_prog_compiler_static_CXX
13386
13387 # Compiler flag to turn off builtin functions.
13388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13389
13390 # Compiler flag to allow reflexive dlopens.
13391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13392
13393 # Compiler flag to generate shared objects directly from archives.
13394 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13395
13396 # Compiler flag to generate thread-safe objects.
13397 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13398
13399 # Library versioning type.
13400 version_type=$version_type
13401
13402 # Format of library name prefix.
13403 libname_spec=$lt_libname_spec
13404
13405 # List of archive names.  First name is the real one, the rest are links.
13406 # The last name is the one that the linker finds with -lNAME.
13407 library_names_spec=$lt_library_names_spec
13408
13409 # The coded name of the library, if different from the real name.
13410 soname_spec=$lt_soname_spec
13411
13412 # Commands used to build and install an old-style archive.
13413 RANLIB=$lt_RANLIB
13414 old_archive_cmds=$lt_old_archive_cmds_CXX
13415 old_postinstall_cmds=$lt_old_postinstall_cmds
13416 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13417
13418 # Create an old-style archive from a shared archive.
13419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13420
13421 # Create a temporary old-style archive to link instead of a shared archive.
13422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13423
13424 # Commands used to build and install a shared archive.
13425 archive_cmds=$lt_archive_cmds_CXX
13426 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13427 postinstall_cmds=$lt_postinstall_cmds
13428 postuninstall_cmds=$lt_postuninstall_cmds
13429
13430 # Commands used to build a loadable module (assumed same as above if empty)
13431 module_cmds=$lt_module_cmds_CXX
13432 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13433
13434 # Commands to strip libraries.
13435 old_striplib=$lt_old_striplib
13436 striplib=$lt_striplib
13437
13438 # Dependencies to place before the objects being linked to create a
13439 # shared library.
13440 predep_objects=$lt_predep_objects_CXX
13441
13442 # Dependencies to place after the objects being linked to create a
13443 # shared library.
13444 postdep_objects=$lt_postdep_objects_CXX
13445
13446 # Dependencies to place before the objects being linked to create a
13447 # shared library.
13448 predeps=$lt_predeps_CXX
13449
13450 # Dependencies to place after the objects being linked to create a
13451 # shared library.
13452 postdeps=$lt_postdeps_CXX
13453
13454 # The library search path used internally by the compiler when linking
13455 # a shared library.
13456 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13457
13458 # Method to check whether dependent libraries are shared objects.
13459 deplibs_check_method=$lt_deplibs_check_method
13460
13461 # Command to use when deplibs_check_method == file_magic.
13462 file_magic_cmd=$lt_file_magic_cmd
13463
13464 # Flag that allows shared libraries with undefined symbols to be built.
13465 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13466
13467 # Flag that forces no undefined symbols.
13468 no_undefined_flag=$lt_no_undefined_flag_CXX
13469
13470 # Commands used to finish a libtool library installation in a directory.
13471 finish_cmds=$lt_finish_cmds
13472
13473 # Same as above, but a single script fragment to be evaled but not shown.
13474 finish_eval=$lt_finish_eval
13475
13476 # Take the output of nm and produce a listing of raw symbols and C names.
13477 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13478
13479 # Transform the output of nm in a proper C declaration
13480 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13481
13482 # Transform the output of nm in a C name address pair
13483 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13484
13485 # This is the shared library runtime path variable.
13486 runpath_var=$runpath_var
13487
13488 # This is the shared library path variable.
13489 shlibpath_var=$shlibpath_var
13490
13491 # Is shlibpath searched before the hard-coded library search path?
13492 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13493
13494 # How to hardcode a shared library path into an executable.
13495 hardcode_action=$hardcode_action_CXX
13496
13497 # Whether we should hardcode library paths into libraries.
13498 hardcode_into_libs=$hardcode_into_libs
13499
13500 # Flag to hardcode \$libdir into a binary during linking.
13501 # This must work even if \$libdir does not exist.
13502 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13503
13504 # If ld is used when linking, flag to hardcode \$libdir into
13505 # a binary during linking. This must work even if \$libdir does
13506 # not exist.
13507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13508
13509 # Whether we need a single -rpath flag with a separated argument.
13510 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13511
13512 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13513 # resulting binary.
13514 hardcode_direct=$hardcode_direct_CXX
13515
13516 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13517 # resulting binary.
13518 hardcode_minus_L=$hardcode_minus_L_CXX
13519
13520 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13521 # the resulting binary.
13522 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13523
13524 # Set to yes if building a shared library automatically hardcodes DIR into the library
13525 # and all subsequent libraries and executables linked against it.
13526 hardcode_automatic=$hardcode_automatic_CXX
13527
13528 # Variables whose values should be saved in libtool wrapper scripts and
13529 # restored at relink time.
13530 variables_saved_for_relink="$variables_saved_for_relink"
13531
13532 # Whether libtool must link a program against all its dependency libraries.
13533 link_all_deplibs=$link_all_deplibs_CXX
13534
13535 # Compile-time system search path for libraries
13536 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13537
13538 # Run-time system search path for libraries
13539 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13540
13541 # Fix the shell variable \$srcfile for the compiler.
13542 fix_srcfile_path="$fix_srcfile_path_CXX"
13543
13544 # Set to yes if exported symbols are required.
13545 always_export_symbols=$always_export_symbols_CXX
13546
13547 # The commands to list exported symbols.
13548 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13549
13550 # The commands to extract the exported symbol list from a shared archive.
13551 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13552
13553 # Symbols that should not be listed in the preloaded symbols.
13554 exclude_expsyms=$lt_exclude_expsyms_CXX
13555
13556 # Symbols that must always be exported.
13557 include_expsyms=$lt_include_expsyms_CXX
13558
13559 # ### END LIBTOOL TAG CONFIG: $tagname
13560
13561 __EOF__
13562
13563
13564 else
13565   # If there is no Makefile yet, we rely on a make rule to execute
13566   # `config.status --recheck' to rerun these tests and create the
13567   # libtool script then.
13568   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13569   if test -f "$ltmain_in"; then
13570     test -f Makefile && make "$ltmain"
13571   fi
13572 fi
13573
13574
13575 ac_ext=c
13576 ac_cpp='$CPP $CPPFLAGS'
13577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13580
13581 CC=$lt_save_CC
13582 LDCXX=$LD
13583 LD=$lt_save_LD
13584 GCC=$lt_save_GCC
13585 with_gnu_ldcxx=$with_gnu_ld
13586 with_gnu_ld=$lt_save_with_gnu_ld
13587 lt_cv_path_LDCXX=$lt_cv_path_LD
13588 lt_cv_path_LD=$lt_save_path_LD
13589 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13590 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13591
13592         else
13593           tagname=""
13594         fi
13595         ;;
13596
13597       F77)
13598         if test -n "$F77" && test "X$F77" != "Xno"; then
13599
13600 ac_ext=f
13601 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13602 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13603 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13604
13605
13606 archive_cmds_need_lc_F77=no
13607 allow_undefined_flag_F77=
13608 always_export_symbols_F77=no
13609 archive_expsym_cmds_F77=
13610 export_dynamic_flag_spec_F77=
13611 hardcode_direct_F77=no
13612 hardcode_libdir_flag_spec_F77=
13613 hardcode_libdir_flag_spec_ld_F77=
13614 hardcode_libdir_separator_F77=
13615 hardcode_minus_L_F77=no
13616 hardcode_automatic_F77=no
13617 module_cmds_F77=
13618 module_expsym_cmds_F77=
13619 link_all_deplibs_F77=unknown
13620 old_archive_cmds_F77=$old_archive_cmds
13621 no_undefined_flag_F77=
13622 whole_archive_flag_spec_F77=
13623 enable_shared_with_static_runtimes_F77=no
13624
13625 # Source file extension for f77 test sources.
13626 ac_ext=f
13627
13628 # Object file extension for compiled f77 test sources.
13629 objext=o
13630 objext_F77=$objext
13631
13632 # Code to be used in simple compile tests
13633 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13634
13635 # Code to be used in simple link tests
13636 lt_simple_link_test_code="      program t\n      end\n"
13637
13638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13639
13640 # If no C compiler was specified, use CC.
13641 LTCC=${LTCC-"$CC"}
13642
13643 # If no C compiler flags were specified, use CFLAGS.
13644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13645
13646 # Allow CC to be a program name with arguments.
13647 compiler=$CC
13648
13649
13650 # save warnings/boilerplate of simple test code
13651 ac_outfile=conftest.$ac_objext
13652 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13654 _lt_compiler_boilerplate=`cat conftest.err`
13655 $rm conftest*
13656
13657 ac_outfile=conftest.$ac_objext
13658 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13660 _lt_linker_boilerplate=`cat conftest.err`
13661 $rm conftest*
13662
13663
13664 # Allow CC to be a program name with arguments.
13665 lt_save_CC="$CC"
13666 CC=${F77-"f77"}
13667 compiler=$CC
13668 compiler_F77=$CC
13669 for cc_temp in $compiler""; do
13670   case $cc_temp in
13671     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13672     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13673     \-*) ;;
13674     *) break;;
13675   esac
13676 done
13677 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13678
13679
13680 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13681 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13682 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13683 echo "${ECHO_T}$can_build_shared" >&6; }
13684
13685 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13686 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13687 test "$can_build_shared" = "no" && enable_shared=no
13688
13689 # On AIX, shared libraries and static libraries use the same namespace, and
13690 # are all built from PIC.
13691 case $host_os in
13692 aix3*)
13693   test "$enable_shared" = yes && enable_static=no
13694   if test -n "$RANLIB"; then
13695     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13696     postinstall_cmds='$RANLIB $lib'
13697   fi
13698   ;;
13699 aix4* | aix5*)
13700   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13701     test "$enable_shared" = yes && enable_static=no
13702   fi
13703   ;;
13704 esac
13705 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13706 echo "${ECHO_T}$enable_shared" >&6; }
13707
13708 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13710 # Make sure either enable_shared or enable_static is yes.
13711 test "$enable_shared" = yes || enable_static=yes
13712 { echo "$as_me:$LINENO: result: $enable_static" >&5
13713 echo "${ECHO_T}$enable_static" >&6; }
13714
13715 GCC_F77="$G77"
13716 LD_F77="$LD"
13717
13718 lt_prog_compiler_wl_F77=
13719 lt_prog_compiler_pic_F77=
13720 lt_prog_compiler_static_F77=
13721
13722 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13723 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13724
13725   if test "$GCC" = yes; then
13726     lt_prog_compiler_wl_F77='-Wl,'
13727     lt_prog_compiler_static_F77='-static'
13728
13729     case $host_os in
13730       aix*)
13731       # All AIX code is PIC.
13732       if test "$host_cpu" = ia64; then
13733         # AIX 5 now supports IA64 processor
13734         lt_prog_compiler_static_F77='-Bstatic'
13735       fi
13736       ;;
13737
13738     amigaos*)
13739       # FIXME: we need at least 68020 code to build shared libraries, but
13740       # adding the `-m68020' flag to GCC prevents building anything better,
13741       # like `-m68040'.
13742       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13743       ;;
13744
13745     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13746       # PIC is the default for these OSes.
13747       ;;
13748
13749     mingw* | pw32* | os2*)
13750       # This hack is so that the source file can tell whether it is being
13751       # built for inclusion in a dll (and should export symbols for example).
13752       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13753       ;;
13754
13755     darwin* | rhapsody*)
13756       # PIC is the default on this platform
13757       # Common symbols not allowed in MH_DYLIB files
13758       lt_prog_compiler_pic_F77='-fno-common'
13759       ;;
13760
13761     interix3*)
13762       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13763       # Instead, we relocate shared libraries at runtime.
13764       ;;
13765
13766     msdosdjgpp*)
13767       # Just because we use GCC doesn't mean we suddenly get shared libraries
13768       # on systems that don't support them.
13769       lt_prog_compiler_can_build_shared_F77=no
13770       enable_shared=no
13771       ;;
13772
13773     sysv4*MP*)
13774       if test -d /usr/nec; then
13775         lt_prog_compiler_pic_F77=-Kconform_pic
13776       fi
13777       ;;
13778
13779     hpux*)
13780       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13781       # not for PA HP-UX.
13782       case $host_cpu in
13783       hppa*64*|ia64*)
13784         # +Z the default
13785         ;;
13786       *)
13787         lt_prog_compiler_pic_F77='-fPIC'
13788         ;;
13789       esac
13790       ;;
13791
13792     *)
13793       lt_prog_compiler_pic_F77='-fPIC'
13794       ;;
13795     esac
13796   else
13797     # PORTME Check for flag to pass linker flags through the system compiler.
13798     case $host_os in
13799     aix*)
13800       lt_prog_compiler_wl_F77='-Wl,'
13801       if test "$host_cpu" = ia64; then
13802         # AIX 5 now supports IA64 processor
13803         lt_prog_compiler_static_F77='-Bstatic'
13804       else
13805         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13806       fi
13807       ;;
13808       darwin*)
13809         # PIC is the default on this platform
13810         # Common symbols not allowed in MH_DYLIB files
13811        case $cc_basename in
13812          xlc*)
13813          lt_prog_compiler_pic_F77='-qnocommon'
13814          lt_prog_compiler_wl_F77='-Wl,'
13815          ;;
13816        esac
13817        ;;
13818
13819     mingw* | pw32* | os2*)
13820       # This hack is so that the source file can tell whether it is being
13821       # built for inclusion in a dll (and should export symbols for example).
13822       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13823       ;;
13824
13825     hpux9* | hpux10* | hpux11*)
13826       lt_prog_compiler_wl_F77='-Wl,'
13827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13828       # not for PA HP-UX.
13829       case $host_cpu in
13830       hppa*64*|ia64*)
13831         # +Z the default
13832         ;;
13833       *)
13834         lt_prog_compiler_pic_F77='+Z'
13835         ;;
13836       esac
13837       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13838       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13839       ;;
13840
13841     irix5* | irix6* | nonstopux*)
13842       lt_prog_compiler_wl_F77='-Wl,'
13843       # PIC (with -KPIC) is the default.
13844       lt_prog_compiler_static_F77='-non_shared'
13845       ;;
13846
13847     newsos6)
13848       lt_prog_compiler_pic_F77='-KPIC'
13849       lt_prog_compiler_static_F77='-Bstatic'
13850       ;;
13851
13852     linux* | k*bsd*-gnu)
13853       case $cc_basename in
13854       icc* | ecc*)
13855         lt_prog_compiler_wl_F77='-Wl,'
13856         lt_prog_compiler_pic_F77='-KPIC'
13857         lt_prog_compiler_static_F77='-static'
13858         ;;
13859       pgcc* | pgf77* | pgf90* | pgf95*)
13860         # Portland Group compilers (*not* the Pentium gcc compiler,
13861         # which looks to be a dead project)
13862         lt_prog_compiler_wl_F77='-Wl,'
13863         lt_prog_compiler_pic_F77='-fpic'
13864         lt_prog_compiler_static_F77='-Bstatic'
13865         ;;
13866       ccc*)
13867         lt_prog_compiler_wl_F77='-Wl,'
13868         # All Alpha code is PIC.
13869         lt_prog_compiler_static_F77='-non_shared'
13870         ;;
13871       esac
13872       ;;
13873
13874     osf3* | osf4* | osf5*)
13875       lt_prog_compiler_wl_F77='-Wl,'
13876       # All OSF/1 code is PIC.
13877       lt_prog_compiler_static_F77='-non_shared'
13878       ;;
13879
13880     solaris*)
13881       lt_prog_compiler_pic_F77='-KPIC'
13882       lt_prog_compiler_static_F77='-Bstatic'
13883       case $cc_basename in
13884       f77* | f90* | f95*)
13885         lt_prog_compiler_wl_F77='-Qoption ld ';;
13886       *)
13887         lt_prog_compiler_wl_F77='-Wl,';;
13888       esac
13889       ;;
13890
13891     sunos4*)
13892       lt_prog_compiler_wl_F77='-Qoption ld '
13893       lt_prog_compiler_pic_F77='-PIC'
13894       lt_prog_compiler_static_F77='-Bstatic'
13895       ;;
13896
13897     sysv4 | sysv4.2uw2* | sysv4.3*)
13898       lt_prog_compiler_wl_F77='-Wl,'
13899       lt_prog_compiler_pic_F77='-KPIC'
13900       lt_prog_compiler_static_F77='-Bstatic'
13901       ;;
13902
13903     sysv4*MP*)
13904       if test -d /usr/nec ;then
13905         lt_prog_compiler_pic_F77='-Kconform_pic'
13906         lt_prog_compiler_static_F77='-Bstatic'
13907       fi
13908       ;;
13909
13910     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13911       lt_prog_compiler_wl_F77='-Wl,'
13912       lt_prog_compiler_pic_F77='-KPIC'
13913       lt_prog_compiler_static_F77='-Bstatic'
13914       ;;
13915
13916     unicos*)
13917       lt_prog_compiler_wl_F77='-Wl,'
13918       lt_prog_compiler_can_build_shared_F77=no
13919       ;;
13920
13921     uts4*)
13922       lt_prog_compiler_pic_F77='-pic'
13923       lt_prog_compiler_static_F77='-Bstatic'
13924       ;;
13925
13926     *)
13927       lt_prog_compiler_can_build_shared_F77=no
13928       ;;
13929     esac
13930   fi
13931
13932 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13933 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13934
13935 #
13936 # Check to make sure the PIC flag actually works.
13937 #
13938 if test -n "$lt_prog_compiler_pic_F77"; then
13939
13940 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13942 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13943   echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945   lt_prog_compiler_pic_works_F77=no
13946   ac_outfile=conftest.$ac_objext
13947    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13948    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13949    # Insert the option either (1) after the last *FLAGS variable, or
13950    # (2) before a word containing "conftest.", or (3) at the end.
13951    # Note that $ac_compile itself does not contain backslashes and begins
13952    # with a dollar sign (not a hyphen), so the echo should work correctly.
13953    # The option is referenced via a variable to avoid confusing sed.
13954    lt_compile=`echo "$ac_compile" | $SED \
13955    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13957    -e 's:$: $lt_compiler_flag:'`
13958    (eval echo "\"\$as_me:13958: $lt_compile\"" >&5)
13959    (eval "$lt_compile" 2>conftest.err)
13960    ac_status=$?
13961    cat conftest.err >&5
13962    echo "$as_me:13962: \$? = $ac_status" >&5
13963    if (exit $ac_status) && test -s "$ac_outfile"; then
13964      # The compiler can only warn and ignore the option if not recognized
13965      # So say no if there are warnings other than the usual output.
13966      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13967      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13969        lt_prog_compiler_pic_works_F77=yes
13970      fi
13971    fi
13972    $rm conftest*
13973
13974 fi
13975 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13976 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13977
13978 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13979     case $lt_prog_compiler_pic_F77 in
13980      "" | " "*) ;;
13981      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13982      esac
13983 else
13984     lt_prog_compiler_pic_F77=
13985      lt_prog_compiler_can_build_shared_F77=no
13986 fi
13987
13988 fi
13989 case $host_os in
13990   # For platforms which do not support PIC, -DPIC is meaningless:
13991   *djgpp*)
13992     lt_prog_compiler_pic_F77=
13993     ;;
13994   *)
13995     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13996     ;;
13997 esac
13998
13999 #
14000 # Check to make sure the static flag actually works.
14001 #
14002 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14003 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14004 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14005 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   lt_prog_compiler_static_works_F77=no
14009    save_LDFLAGS="$LDFLAGS"
14010    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14011    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14012    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14013      # The linker can only warn and ignore the option if not recognized
14014      # So say no if there are warnings
14015      if test -s conftest.err; then
14016        # Append any errors to the config.log.
14017        cat conftest.err 1>&5
14018        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14019        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14020        if diff conftest.exp conftest.er2 >/dev/null; then
14021          lt_prog_compiler_static_works_F77=yes
14022        fi
14023      else
14024        lt_prog_compiler_static_works_F77=yes
14025      fi
14026    fi
14027    $rm conftest*
14028    LDFLAGS="$save_LDFLAGS"
14029
14030 fi
14031 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14032 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14033
14034 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14035     :
14036 else
14037     lt_prog_compiler_static_F77=
14038 fi
14039
14040
14041 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14042 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14043 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046   lt_cv_prog_compiler_c_o_F77=no
14047    $rm -r conftest 2>/dev/null
14048    mkdir conftest
14049    cd conftest
14050    mkdir out
14051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14052
14053    lt_compiler_flag="-o out/conftest2.$ac_objext"
14054    # Insert the option either (1) after the last *FLAGS variable, or
14055    # (2) before a word containing "conftest.", or (3) at the end.
14056    # Note that $ac_compile itself does not contain backslashes and begins
14057    # with a dollar sign (not a hyphen), so the echo should work correctly.
14058    lt_compile=`echo "$ac_compile" | $SED \
14059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14061    -e 's:$: $lt_compiler_flag:'`
14062    (eval echo "\"\$as_me:14062: $lt_compile\"" >&5)
14063    (eval "$lt_compile" 2>out/conftest.err)
14064    ac_status=$?
14065    cat out/conftest.err >&5
14066    echo "$as_me:14066: \$? = $ac_status" >&5
14067    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14068    then
14069      # The compiler can only warn and ignore the option if not recognized
14070      # So say no if there are warnings
14071      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14072      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14073      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14074        lt_cv_prog_compiler_c_o_F77=yes
14075      fi
14076    fi
14077    chmod u+w . 2>&5
14078    $rm conftest*
14079    # SGI C++ compiler will create directory out/ii_files/ for
14080    # template instantiation
14081    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14082    $rm out/* && rmdir out
14083    cd ..
14084    rmdir conftest
14085    $rm conftest*
14086
14087 fi
14088 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14090
14091
14092 hard_links="nottested"
14093 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14094   # do not overwrite the value of need_locks provided by the user
14095   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14096 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14097   hard_links=yes
14098   $rm conftest*
14099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14100   touch conftest.a
14101   ln conftest.a conftest.b 2>&5 || hard_links=no
14102   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14103   { echo "$as_me:$LINENO: result: $hard_links" >&5
14104 echo "${ECHO_T}$hard_links" >&6; }
14105   if test "$hard_links" = no; then
14106     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14107 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14108     need_locks=warn
14109   fi
14110 else
14111   need_locks=no
14112 fi
14113
14114 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14116
14117   runpath_var=
14118   allow_undefined_flag_F77=
14119   enable_shared_with_static_runtimes_F77=no
14120   archive_cmds_F77=
14121   archive_expsym_cmds_F77=
14122   old_archive_From_new_cmds_F77=
14123   old_archive_from_expsyms_cmds_F77=
14124   export_dynamic_flag_spec_F77=
14125   whole_archive_flag_spec_F77=
14126   thread_safe_flag_spec_F77=
14127   hardcode_libdir_flag_spec_F77=
14128   hardcode_libdir_flag_spec_ld_F77=
14129   hardcode_libdir_separator_F77=
14130   hardcode_direct_F77=no
14131   hardcode_minus_L_F77=no
14132   hardcode_shlibpath_var_F77=unsupported
14133   link_all_deplibs_F77=unknown
14134   hardcode_automatic_F77=no
14135   module_cmds_F77=
14136   module_expsym_cmds_F77=
14137   always_export_symbols_F77=no
14138   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14139   # include_expsyms should be a list of space-separated symbols to be *always*
14140   # included in the symbol list
14141   include_expsyms_F77=
14142   # exclude_expsyms can be an extended regexp of symbols to exclude
14143   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14144   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14145   # as well as any symbol that contains `d'.
14146   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14147   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14148   # platforms (ab)use it in PIC code, but their linkers get confused if
14149   # the symbol is explicitly referenced.  Since portable code cannot
14150   # rely on this symbol name, it's probably fine to never include it in
14151   # preloaded symbol tables.
14152   extract_expsyms_cmds=
14153   # Just being paranoid about ensuring that cc_basename is set.
14154   for cc_temp in $compiler""; do
14155   case $cc_temp in
14156     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14157     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14158     \-*) ;;
14159     *) break;;
14160   esac
14161 done
14162 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14163
14164   case $host_os in
14165   cygwin* | mingw* | pw32*)
14166     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14167     # When not using gcc, we currently assume that we are using
14168     # Microsoft Visual C++.
14169     if test "$GCC" != yes; then
14170       with_gnu_ld=no
14171     fi
14172     ;;
14173   interix*)
14174     # we just hope/assume this is gcc and not c89 (= MSVC++)
14175     with_gnu_ld=yes
14176     ;;
14177   openbsd*)
14178     with_gnu_ld=no
14179     ;;
14180   esac
14181
14182   ld_shlibs_F77=yes
14183   if test "$with_gnu_ld" = yes; then
14184     # If archive_cmds runs LD, not CC, wlarc should be empty
14185     wlarc='${wl}'
14186
14187     # Set some defaults for GNU ld with shared library support. These
14188     # are reset later if shared libraries are not supported. Putting them
14189     # here allows them to be overridden if necessary.
14190     runpath_var=LD_RUN_PATH
14191     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14192     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14193     # ancient GNU ld didn't support --whole-archive et. al.
14194     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14195         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14196       else
14197         whole_archive_flag_spec_F77=
14198     fi
14199     supports_anon_versioning=no
14200     case `$LD -v 2>/dev/null` in
14201       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14202       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14203       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14204       *\ 2.11.*) ;; # other 2.11 versions
14205       *) supports_anon_versioning=yes ;;
14206     esac
14207
14208     # See if GNU ld supports shared libraries.
14209     case $host_os in
14210     aix3* | aix4* | aix5*)
14211       # On AIX/PPC, the GNU linker is very broken
14212       if test "$host_cpu" != ia64; then
14213         ld_shlibs_F77=no
14214         cat <<EOF 1>&2
14215
14216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14217 *** to be unable to reliably create shared libraries on AIX.
14218 *** Therefore, libtool is disabling shared libraries support.  If you
14219 *** really care for shared libraries, you may want to modify your PATH
14220 *** so that a non-GNU linker is found, and then restart.
14221
14222 EOF
14223       fi
14224       ;;
14225
14226     amigaos*)
14227       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)'
14228       hardcode_libdir_flag_spec_F77='-L$libdir'
14229       hardcode_minus_L_F77=yes
14230
14231       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14232       # that the semantics of dynamic libraries on AmigaOS, at least up
14233       # to version 4, is to share data among multiple programs linked
14234       # with the same dynamic library.  Since this doesn't match the
14235       # behavior of shared libraries on other platforms, we can't use
14236       # them.
14237       ld_shlibs_F77=no
14238       ;;
14239
14240     beos*)
14241       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14242         allow_undefined_flag_F77=unsupported
14243         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14244         # support --undefined.  This deserves some investigation.  FIXME
14245         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14246       else
14247         ld_shlibs_F77=no
14248       fi
14249       ;;
14250
14251     cygwin* | mingw* | pw32*)
14252       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14253       # as there is no search path for DLLs.
14254       hardcode_libdir_flag_spec_F77='-L$libdir'
14255       allow_undefined_flag_F77=unsupported
14256       always_export_symbols_F77=no
14257       enable_shared_with_static_runtimes_F77=yes
14258       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14259
14260       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14261         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14262         # If the export-symbols file already is a .def file (1st line
14263         # is EXPORTS), use it as is; otherwise, prepend...
14264         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14265           cp $export_symbols $output_objdir/$soname.def;
14266         else
14267           echo EXPORTS > $output_objdir/$soname.def;
14268           cat $export_symbols >> $output_objdir/$soname.def;
14269         fi~
14270         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14271       else
14272         ld_shlibs_F77=no
14273       fi
14274       ;;
14275
14276     interix3*)
14277       hardcode_direct_F77=no
14278       hardcode_shlibpath_var_F77=no
14279       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14280       export_dynamic_flag_spec_F77='${wl}-E'
14281       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14282       # Instead, shared libraries are loaded at an image base (0x10000000 by
14283       # default) and relocated if they conflict, which is a slow very memory
14284       # consuming and fragmenting process.  To avoid this, we pick a random,
14285       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14286       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14287       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'
14288       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'
14289       ;;
14290
14291     linux* | k*bsd*-gnu)
14292       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14293         tmp_addflag=
14294         case $cc_basename,$host_cpu in
14295         pgcc*)                          # Portland Group C compiler
14296           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'
14297           tmp_addflag=' $pic_flag'
14298           ;;
14299         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14300           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'
14301           tmp_addflag=' $pic_flag -Mnomain' ;;
14302         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14303           tmp_addflag=' -i_dynamic' ;;
14304         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14305           tmp_addflag=' -i_dynamic -nofor_main' ;;
14306         ifc* | ifort*)                  # Intel Fortran compiler
14307           tmp_addflag=' -nofor_main' ;;
14308         esac
14309         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14310
14311         if test $supports_anon_versioning = yes; then
14312           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14313   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14314   $echo "local: *; };" >> $output_objdir/$libname.ver~
14315           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14316         fi
14317         link_all_deplibs_F77=no
14318       else
14319         ld_shlibs_F77=no
14320       fi
14321       ;;
14322
14323     netbsd* | netbsdelf*-gnu)
14324       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14325         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14326         wlarc=
14327       else
14328         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14329         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14330       fi
14331       ;;
14332
14333     solaris*)
14334       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14335         ld_shlibs_F77=no
14336         cat <<EOF 1>&2
14337
14338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14339 *** create shared libraries on Solaris systems.  Therefore, libtool
14340 *** is disabling shared libraries support.  We urge you to upgrade GNU
14341 *** binutils to release 2.9.1 or newer.  Another option is to modify
14342 *** your PATH or compiler configuration so that the native linker is
14343 *** used, and then restart.
14344
14345 EOF
14346       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14347         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14348         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14349       else
14350         ld_shlibs_F77=no
14351       fi
14352       ;;
14353
14354     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14355       case `$LD -v 2>&1` in
14356         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14357         ld_shlibs_F77=no
14358         cat <<_LT_EOF 1>&2
14359
14360 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14361 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14362 *** is disabling shared libraries support.  We urge you to upgrade GNU
14363 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14364 *** your PATH or compiler configuration so that the native linker is
14365 *** used, and then restart.
14366
14367 _LT_EOF
14368         ;;
14369         *)
14370           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14371             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14372             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14373             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14374           else
14375             ld_shlibs_F77=no
14376           fi
14377         ;;
14378       esac
14379       ;;
14380
14381     sunos4*)
14382       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14383       wlarc=
14384       hardcode_direct_F77=yes
14385       hardcode_shlibpath_var_F77=no
14386       ;;
14387
14388     *)
14389       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14390         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14391         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14392       else
14393         ld_shlibs_F77=no
14394       fi
14395       ;;
14396     esac
14397
14398     if test "$ld_shlibs_F77" = no; then
14399       runpath_var=
14400       hardcode_libdir_flag_spec_F77=
14401       export_dynamic_flag_spec_F77=
14402       whole_archive_flag_spec_F77=
14403     fi
14404   else
14405     # PORTME fill in a description of your system's linker (not GNU ld)
14406     case $host_os in
14407     aix3*)
14408       allow_undefined_flag_F77=unsupported
14409       always_export_symbols_F77=yes
14410       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'
14411       # Note: this linker hardcodes the directories in LIBPATH if there
14412       # are no directories specified by -L.
14413       hardcode_minus_L_F77=yes
14414       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14415         # Neither direct hardcoding nor static linking is supported with a
14416         # broken collect2.
14417         hardcode_direct_F77=unsupported
14418       fi
14419       ;;
14420
14421     aix4* | aix5*)
14422       if test "$host_cpu" = ia64; then
14423         # On IA64, the linker does run time linking by default, so we don't
14424         # have to do anything special.
14425         aix_use_runtimelinking=no
14426         exp_sym_flag='-Bexport'
14427         no_entry_flag=""
14428       else
14429         # If we're using GNU nm, then we don't want the "-C" option.
14430         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14431         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14432           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'
14433         else
14434           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'
14435         fi
14436         aix_use_runtimelinking=no
14437
14438         # Test if we are trying to use run time linking or normal
14439         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14440         # need to do runtime linking.
14441         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14442           for ld_flag in $LDFLAGS; do
14443           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14444             aix_use_runtimelinking=yes
14445             break
14446           fi
14447           done
14448           ;;
14449         esac
14450
14451         exp_sym_flag='-bexport'
14452         no_entry_flag='-bnoentry'
14453       fi
14454
14455       # When large executables or shared objects are built, AIX ld can
14456       # have problems creating the table of contents.  If linking a library
14457       # or program results in "error TOC overflow" add -mminimal-toc to
14458       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14459       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14460
14461       archive_cmds_F77=''
14462       hardcode_direct_F77=yes
14463       hardcode_libdir_separator_F77=':'
14464       link_all_deplibs_F77=yes
14465
14466       if test "$GCC" = yes; then
14467         case $host_os in aix4.[012]|aix4.[012].*)
14468         # We only want to do this on AIX 4.2 and lower, the check
14469         # below for broken collect2 doesn't work under 4.3+
14470           collect2name=`${CC} -print-prog-name=collect2`
14471           if test -f "$collect2name" && \
14472            strings "$collect2name" | grep resolve_lib_name >/dev/null
14473           then
14474           # We have reworked collect2
14475           hardcode_direct_F77=yes
14476           else
14477           # We have old collect2
14478           hardcode_direct_F77=unsupported
14479           # It fails to find uninstalled libraries when the uninstalled
14480           # path is not listed in the libpath.  Setting hardcode_minus_L
14481           # to unsupported forces relinking
14482           hardcode_minus_L_F77=yes
14483           hardcode_libdir_flag_spec_F77='-L$libdir'
14484           hardcode_libdir_separator_F77=
14485           fi
14486           ;;
14487         esac
14488         shared_flag='-shared'
14489         if test "$aix_use_runtimelinking" = yes; then
14490           shared_flag="$shared_flag "'${wl}-G'
14491         fi
14492       else
14493         # not using gcc
14494         if test "$host_cpu" = ia64; then
14495         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14496         # chokes on -Wl,-G. The following line is correct:
14497           shared_flag='-G'
14498         else
14499           if test "$aix_use_runtimelinking" = yes; then
14500             shared_flag='${wl}-G'
14501           else
14502             shared_flag='${wl}-bM:SRE'
14503           fi
14504         fi
14505       fi
14506
14507       # It seems that -bexpall does not export symbols beginning with
14508       # underscore (_), so it is better to generate a list of symbols to export.
14509       always_export_symbols_F77=yes
14510       if test "$aix_use_runtimelinking" = yes; then
14511         # Warning - without using the other runtime loading flags (-brtl),
14512         # -berok will link without error, but may produce a broken library.
14513         allow_undefined_flag_F77='-berok'
14514        # Determine the default libpath from the value encoded in an empty executable.
14515        cat >conftest.$ac_ext <<_ACEOF
14516       program main
14517
14518       end
14519 _ACEOF
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_link") 2>conftest.er1
14528   ac_status=$?
14529   grep -v '^ *+' conftest.er1 >conftest.err
14530   rm -f conftest.er1
14531   cat conftest.err >&5
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } && {
14534          test -z "$ac_f77_werror_flag" ||
14535          test ! -s conftest.err
14536        } && test -s conftest$ac_exeext &&
14537        $as_test_x conftest$ac_exeext; then
14538
14539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14540 }'`
14541 # Check for a 64-bit object if we didn't find anything.
14542 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; }
14543 }'`; fi
14544 else
14545   echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548
14549 fi
14550
14551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14552       conftest$ac_exeext conftest.$ac_ext
14553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14554
14555        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14556         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"
14557        else
14558         if test "$host_cpu" = ia64; then
14559           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14560           allow_undefined_flag_F77="-z nodefs"
14561           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"
14562         else
14563          # Determine the default libpath from the value encoded in an empty executable.
14564          cat >conftest.$ac_ext <<_ACEOF
14565       program main
14566
14567       end
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_link") 2>conftest.er1
14577   ac_status=$?
14578   grep -v '^ *+' conftest.er1 >conftest.err
14579   rm -f conftest.er1
14580   cat conftest.err >&5
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } && {
14583          test -z "$ac_f77_werror_flag" ||
14584          test ! -s conftest.err
14585        } && test -s conftest$ac_exeext &&
14586        $as_test_x conftest$ac_exeext; then
14587
14588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14589 }'`
14590 # Check for a 64-bit object if we didn't find anything.
14591 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; }
14592 }'`; fi
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597
14598 fi
14599
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601       conftest$ac_exeext conftest.$ac_ext
14602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14603
14604          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14605           # Warning - without using the other run time loading flags,
14606           # -berok will link without error, but may produce a broken library.
14607           no_undefined_flag_F77=' ${wl}-bernotok'
14608           allow_undefined_flag_F77=' ${wl}-berok'
14609           # Exported symbols can be pulled into shared objects from archives
14610           whole_archive_flag_spec_F77='$convenience'
14611           archive_cmds_need_lc_F77=yes
14612           # This is similar to how AIX traditionally builds its shared libraries.
14613           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'
14614         fi
14615       fi
14616       ;;
14617
14618     amigaos*)
14619       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)'
14620       hardcode_libdir_flag_spec_F77='-L$libdir'
14621       hardcode_minus_L_F77=yes
14622       # see comment about different semantics on the GNU ld section
14623       ld_shlibs_F77=no
14624       ;;
14625
14626     bsdi[45]*)
14627       export_dynamic_flag_spec_F77=-rdynamic
14628       ;;
14629
14630     cygwin* | mingw* | pw32*)
14631       # When not using gcc, we currently assume that we are using
14632       # Microsoft Visual C++.
14633       # hardcode_libdir_flag_spec is actually meaningless, as there is
14634       # no search path for DLLs.
14635       hardcode_libdir_flag_spec_F77=' '
14636       allow_undefined_flag_F77=unsupported
14637       # Tell ltmain to make .lib files, not .a files.
14638       libext=lib
14639       # Tell ltmain to make .dll files, not .so files.
14640       shrext_cmds=".dll"
14641       # FIXME: Setting linknames here is a bad hack.
14642       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14643       # The linker will automatically build a .lib file if we build a DLL.
14644       old_archive_From_new_cmds_F77='true'
14645       # FIXME: Should let the user specify the lib program.
14646       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14647       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14648       enable_shared_with_static_runtimes_F77=yes
14649       ;;
14650
14651     darwin* | rhapsody*)
14652       case $host_os in
14653         rhapsody* | darwin1.[012])
14654          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14655          ;;
14656        *) # Darwin 1.3 on
14657          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14658            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14659          else
14660            case ${MACOSX_DEPLOYMENT_TARGET} in
14661              10.[012])
14662                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14663                ;;
14664              10.*)
14665                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14666                ;;
14667            esac
14668          fi
14669          ;;
14670       esac
14671       archive_cmds_need_lc_F77=no
14672       hardcode_direct_F77=no
14673       hardcode_automatic_F77=yes
14674       hardcode_shlibpath_var_F77=unsupported
14675       whole_archive_flag_spec_F77=''
14676       link_all_deplibs_F77=yes
14677     if test "$GCC" = yes ; then
14678         output_verbose_link_cmd='echo'
14679         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14680       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14681       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14682       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}'
14683       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}'
14684     else
14685       case $cc_basename in
14686         xlc*)
14687          output_verbose_link_cmd='echo'
14688          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14689          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14690           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14691          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}'
14692           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}'
14693           ;;
14694        *)
14695          ld_shlibs_F77=no
14696           ;;
14697       esac
14698     fi
14699       ;;
14700
14701     dgux*)
14702       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703       hardcode_libdir_flag_spec_F77='-L$libdir'
14704       hardcode_shlibpath_var_F77=no
14705       ;;
14706
14707     freebsd1*)
14708       ld_shlibs_F77=no
14709       ;;
14710
14711     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14712     # support.  Future versions do this automatically, but an explicit c++rt0.o
14713     # does not break anything, and helps significantly (at the cost of a little
14714     # extra space).
14715     freebsd2.2*)
14716       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14717       hardcode_libdir_flag_spec_F77='-R$libdir'
14718       hardcode_direct_F77=yes
14719       hardcode_shlibpath_var_F77=no
14720       ;;
14721
14722     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14723     freebsd2*)
14724       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14725       hardcode_direct_F77=yes
14726       hardcode_minus_L_F77=yes
14727       hardcode_shlibpath_var_F77=no
14728       ;;
14729
14730     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14731     freebsd* | dragonfly*)
14732       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14733       hardcode_libdir_flag_spec_F77='-R$libdir'
14734       hardcode_direct_F77=yes
14735       hardcode_shlibpath_var_F77=no
14736       ;;
14737
14738     hpux9*)
14739       if test "$GCC" = yes; then
14740         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'
14741       else
14742         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'
14743       fi
14744       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14745       hardcode_libdir_separator_F77=:
14746       hardcode_direct_F77=yes
14747
14748       # hardcode_minus_L: Not really in the search PATH,
14749       # but as the default location of the library.
14750       hardcode_minus_L_F77=yes
14751       export_dynamic_flag_spec_F77='${wl}-E'
14752       ;;
14753
14754     hpux10*)
14755       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14756         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14757       else
14758         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14759       fi
14760       if test "$with_gnu_ld" = no; then
14761         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14762         hardcode_libdir_separator_F77=:
14763
14764         hardcode_direct_F77=yes
14765         export_dynamic_flag_spec_F77='${wl}-E'
14766
14767         # hardcode_minus_L: Not really in the search PATH,
14768         # but as the default location of the library.
14769         hardcode_minus_L_F77=yes
14770       fi
14771       ;;
14772
14773     hpux11*)
14774       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14775         case $host_cpu in
14776         hppa*64*)
14777           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14778           ;;
14779         ia64*)
14780           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14781           ;;
14782         *)
14783           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14784           ;;
14785         esac
14786       else
14787         case $host_cpu in
14788         hppa*64*)
14789           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14790           ;;
14791         ia64*)
14792           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14793           ;;
14794         *)
14795           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14796           ;;
14797         esac
14798       fi
14799       if test "$with_gnu_ld" = no; then
14800         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14801         hardcode_libdir_separator_F77=:
14802
14803         case $host_cpu in
14804         hppa*64*|ia64*)
14805           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14806           hardcode_direct_F77=no
14807           hardcode_shlibpath_var_F77=no
14808           ;;
14809         *)
14810           hardcode_direct_F77=yes
14811           export_dynamic_flag_spec_F77='${wl}-E'
14812
14813           # hardcode_minus_L: Not really in the search PATH,
14814           # but as the default location of the library.
14815           hardcode_minus_L_F77=yes
14816           ;;
14817         esac
14818       fi
14819       ;;
14820
14821     irix5* | irix6* | nonstopux*)
14822       if test "$GCC" = yes; then
14823         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'
14824       else
14825         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'
14826         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14827       fi
14828       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14829       hardcode_libdir_separator_F77=:
14830       link_all_deplibs_F77=yes
14831       ;;
14832
14833     netbsd* | netbsdelf*-gnu)
14834       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14835         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14836       else
14837         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14838       fi
14839       hardcode_libdir_flag_spec_F77='-R$libdir'
14840       hardcode_direct_F77=yes
14841       hardcode_shlibpath_var_F77=no
14842       ;;
14843
14844     newsos6)
14845       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14846       hardcode_direct_F77=yes
14847       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14848       hardcode_libdir_separator_F77=:
14849       hardcode_shlibpath_var_F77=no
14850       ;;
14851
14852     openbsd*)
14853       hardcode_direct_F77=yes
14854       hardcode_shlibpath_var_F77=no
14855       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14856         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14857         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14858         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14859         export_dynamic_flag_spec_F77='${wl}-E'
14860       else
14861        case $host_os in
14862          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14863            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14864            hardcode_libdir_flag_spec_F77='-R$libdir'
14865            ;;
14866          *)
14867            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14868            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14869            ;;
14870        esac
14871       fi
14872       ;;
14873
14874     os2*)
14875       hardcode_libdir_flag_spec_F77='-L$libdir'
14876       hardcode_minus_L_F77=yes
14877       allow_undefined_flag_F77=unsupported
14878       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'
14879       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14880       ;;
14881
14882     osf3*)
14883       if test "$GCC" = yes; then
14884         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14885         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'
14886       else
14887         allow_undefined_flag_F77=' -expect_unresolved \*'
14888         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'
14889       fi
14890       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14891       hardcode_libdir_separator_F77=:
14892       ;;
14893
14894     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14895       if test "$GCC" = yes; then
14896         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14897         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'
14898         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14899       else
14900         allow_undefined_flag_F77=' -expect_unresolved \*'
14901         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'
14902         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~
14903         $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'
14904
14905         # Both c and cxx compiler support -rpath directly
14906         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14907       fi
14908       hardcode_libdir_separator_F77=:
14909       ;;
14910
14911     solaris*)
14912       no_undefined_flag_F77=' -z text'
14913       if test "$GCC" = yes; then
14914         wlarc='${wl}'
14915         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14916         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14917           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14918       else
14919         wlarc=''
14920         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14921         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14922         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14923       fi
14924       hardcode_libdir_flag_spec_F77='-R$libdir'
14925       hardcode_shlibpath_var_F77=no
14926       case $host_os in
14927       solaris2.[0-5] | solaris2.[0-5].*) ;;
14928       *)
14929         # The compiler driver will combine linker options so we
14930         # cannot just pass the convience library names through
14931         # without $wl, iff we do not link with $LD.
14932         # Luckily, gcc supports the same syntax we need for Sun Studio.
14933         # Supported since Solaris 2.6 (maybe 2.5.1?)
14934         case $wlarc in
14935         '')
14936           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14937         *)
14938           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' ;;
14939         esac ;;
14940       esac
14941       link_all_deplibs_F77=yes
14942       ;;
14943
14944     sunos4*)
14945       if test "x$host_vendor" = xsequent; then
14946         # Use $CC to link under sequent, because it throws in some extra .o
14947         # files that make .init and .fini sections work.
14948         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14949       else
14950         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14951       fi
14952       hardcode_libdir_flag_spec_F77='-L$libdir'
14953       hardcode_direct_F77=yes
14954       hardcode_minus_L_F77=yes
14955       hardcode_shlibpath_var_F77=no
14956       ;;
14957
14958     sysv4)
14959       case $host_vendor in
14960         sni)
14961           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962           hardcode_direct_F77=yes # is this really true???
14963         ;;
14964         siemens)
14965           ## LD is ld it makes a PLAMLIB
14966           ## CC just makes a GrossModule.
14967           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14968           reload_cmds_F77='$CC -r -o $output$reload_objs'
14969           hardcode_direct_F77=no
14970         ;;
14971         motorola)
14972           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14973           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14974         ;;
14975       esac
14976       runpath_var='LD_RUN_PATH'
14977       hardcode_shlibpath_var_F77=no
14978       ;;
14979
14980     sysv4.3*)
14981       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14982       hardcode_shlibpath_var_F77=no
14983       export_dynamic_flag_spec_F77='-Bexport'
14984       ;;
14985
14986     sysv4*MP*)
14987       if test -d /usr/nec; then
14988         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14989         hardcode_shlibpath_var_F77=no
14990         runpath_var=LD_RUN_PATH
14991         hardcode_runpath_var=yes
14992         ld_shlibs_F77=yes
14993       fi
14994       ;;
14995
14996     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14997       no_undefined_flag_F77='${wl}-z,text'
14998       archive_cmds_need_lc_F77=no
14999       hardcode_shlibpath_var_F77=no
15000       runpath_var='LD_RUN_PATH'
15001
15002       if test "$GCC" = yes; then
15003         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15005       else
15006         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008       fi
15009       ;;
15010
15011     sysv5* | sco3.2v5* | sco5v6*)
15012       # Note: We can NOT use -z defs as we might desire, because we do not
15013       # link with -lc, and that would cause any symbols used from libc to
15014       # always be unresolved, which means just about no library would
15015       # ever link correctly.  If we're not using GNU ld we use -z text
15016       # though, which does catch some bad symbols but isn't as heavy-handed
15017       # as -z defs.
15018       no_undefined_flag_F77='${wl}-z,text'
15019       allow_undefined_flag_F77='${wl}-z,nodefs'
15020       archive_cmds_need_lc_F77=no
15021       hardcode_shlibpath_var_F77=no
15022       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15023       hardcode_libdir_separator_F77=':'
15024       link_all_deplibs_F77=yes
15025       export_dynamic_flag_spec_F77='${wl}-Bexport'
15026       runpath_var='LD_RUN_PATH'
15027
15028       if test "$GCC" = yes; then
15029         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15030         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15031       else
15032         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15033         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15034       fi
15035       ;;
15036
15037     uts4*)
15038       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039       hardcode_libdir_flag_spec_F77='-L$libdir'
15040       hardcode_shlibpath_var_F77=no
15041       ;;
15042
15043     *)
15044       ld_shlibs_F77=no
15045       ;;
15046     esac
15047   fi
15048
15049 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15050 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15051 test "$ld_shlibs_F77" = no && can_build_shared=no
15052
15053 #
15054 # Do we need to explicitly link libc?
15055 #
15056 case "x$archive_cmds_need_lc_F77" in
15057 x|xyes)
15058   # Assume -lc should be added
15059   archive_cmds_need_lc_F77=yes
15060
15061   if test "$enable_shared" = yes && test "$GCC" = yes; then
15062     case $archive_cmds_F77 in
15063     *'~'*)
15064       # FIXME: we may have to deal with multi-command sequences.
15065       ;;
15066     '$CC '*)
15067       # Test whether the compiler implicitly links with -lc since on some
15068       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15069       # to ld, don't add -lc before -lgcc.
15070       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15072       $rm conftest*
15073       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15074
15075       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076   (eval $ac_compile) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } 2>conftest.err; then
15080         soname=conftest
15081         lib=conftest
15082         libobjs=conftest.$ac_objext
15083         deplibs=
15084         wl=$lt_prog_compiler_wl_F77
15085         pic_flag=$lt_prog_compiler_pic_F77
15086         compiler_flags=-v
15087         linker_flags=-v
15088         verstring=
15089         output_objdir=.
15090         libname=conftest
15091         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15092         allow_undefined_flag_F77=
15093         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15094   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }
15098         then
15099           archive_cmds_need_lc_F77=no
15100         else
15101           archive_cmds_need_lc_F77=yes
15102         fi
15103         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15104       else
15105         cat conftest.err 1>&5
15106       fi
15107       $rm conftest*
15108       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15109 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15110       ;;
15111     esac
15112   fi
15113   ;;
15114 esac
15115
15116 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15117 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15118 library_names_spec=
15119 libname_spec='lib$name'
15120 soname_spec=
15121 shrext_cmds=".so"
15122 postinstall_cmds=
15123 postuninstall_cmds=
15124 finish_cmds=
15125 finish_eval=
15126 shlibpath_var=
15127 shlibpath_overrides_runpath=unknown
15128 version_type=none
15129 dynamic_linker="$host_os ld.so"
15130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15131 if test "$GCC" = yes; then
15132   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15133   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15134     # if the path contains ";" then we assume it to be the separator
15135     # otherwise default to the standard path separator (i.e. ":") - it is
15136     # assumed that no part of a normal pathname contains ";" but that should
15137     # okay in the real world where ";" in dirpaths is itself problematic.
15138     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15139   else
15140     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15141   fi
15142 else
15143   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15144 fi
15145 need_lib_prefix=unknown
15146 hardcode_into_libs=no
15147
15148 # when you set need_version to no, make sure it does not cause -set_version
15149 # flags to be left without arguments
15150 need_version=unknown
15151
15152 case $host_os in
15153 aix3*)
15154   version_type=linux
15155   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15156   shlibpath_var=LIBPATH
15157
15158   # AIX 3 has no versioning support, so we append a major version to the name.
15159   soname_spec='${libname}${release}${shared_ext}$major'
15160   ;;
15161
15162 aix4* | aix5*)
15163   version_type=linux
15164   need_lib_prefix=no
15165   need_version=no
15166   hardcode_into_libs=yes
15167   if test "$host_cpu" = ia64; then
15168     # AIX 5 supports IA64
15169     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15170     shlibpath_var=LD_LIBRARY_PATH
15171   else
15172     # With GCC up to 2.95.x, collect2 would create an import file
15173     # for dependence libraries.  The import file would start with
15174     # the line `#! .'.  This would cause the generated library to
15175     # depend on `.', always an invalid library.  This was fixed in
15176     # development snapshots of GCC prior to 3.0.
15177     case $host_os in
15178       aix4 | aix4.[01] | aix4.[01].*)
15179       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15180            echo ' yes '
15181            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15182         :
15183       else
15184         can_build_shared=no
15185       fi
15186       ;;
15187     esac
15188     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15189     # soname into executable. Probably we can add versioning support to
15190     # collect2, so additional links can be useful in future.
15191     if test "$aix_use_runtimelinking" = yes; then
15192       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15193       # instead of lib<name>.a to let people know that these are not
15194       # typical AIX shared libraries.
15195       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196     else
15197       # We preserve .a as extension for shared libraries through AIX4.2
15198       # and later when we are not doing run time linking.
15199       library_names_spec='${libname}${release}.a $libname.a'
15200       soname_spec='${libname}${release}${shared_ext}$major'
15201     fi
15202     shlibpath_var=LIBPATH
15203   fi
15204   ;;
15205
15206 amigaos*)
15207   library_names_spec='$libname.ixlibrary $libname.a'
15208   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15209   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'
15210   ;;
15211
15212 beos*)
15213   library_names_spec='${libname}${shared_ext}'
15214   dynamic_linker="$host_os ld.so"
15215   shlibpath_var=LIBRARY_PATH
15216   ;;
15217
15218 bsdi[45]*)
15219   version_type=linux
15220   need_version=no
15221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222   soname_spec='${libname}${release}${shared_ext}$major'
15223   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15224   shlibpath_var=LD_LIBRARY_PATH
15225   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15226   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15227   # the default ld.so.conf also contains /usr/contrib/lib and
15228   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15229   # libtool to hard-code these into programs
15230   ;;
15231
15232 cygwin* | mingw* | pw32*)
15233   version_type=windows
15234   shrext_cmds=".dll"
15235   need_version=no
15236   need_lib_prefix=no
15237
15238   case $GCC,$host_os in
15239   yes,cygwin* | yes,mingw* | yes,pw32*)
15240     library_names_spec='$libname.dll.a'
15241     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15242     postinstall_cmds='base_file=`basename \${file}`~
15243       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15244       dldir=$destdir/`dirname \$dlpath`~
15245       test -d \$dldir || mkdir -p \$dldir~
15246       $install_prog $dir/$dlname \$dldir/$dlname~
15247       chmod a+x \$dldir/$dlname'
15248     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15249       dlpath=$dir/\$dldll~
15250        $rm \$dlpath'
15251     shlibpath_overrides_runpath=yes
15252
15253     case $host_os in
15254     cygwin*)
15255       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15256       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15257       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15258       ;;
15259     mingw*)
15260       # MinGW DLLs use traditional 'lib' prefix
15261       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15262       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15263       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15264         # It is most probably a Windows format PATH printed by
15265         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15266         # path with ; separators, and with drive letters. We can handle the
15267         # drive letters (cygwin fileutils understands them), so leave them,
15268         # especially as we might pass files found there to a mingw objdump,
15269         # which wouldn't understand a cygwinified path. Ahh.
15270         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15271       else
15272         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15273       fi
15274       ;;
15275     pw32*)
15276       # pw32 DLLs use 'pw' prefix rather than 'lib'
15277       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15278       ;;
15279     esac
15280     ;;
15281
15282   *)
15283     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15284     ;;
15285   esac
15286   dynamic_linker='Win32 ld.exe'
15287   # FIXME: first we should search . and the directory the executable is in
15288   shlibpath_var=PATH
15289   ;;
15290
15291 darwin* | rhapsody*)
15292   dynamic_linker="$host_os dyld"
15293   version_type=darwin
15294   need_lib_prefix=no
15295   need_version=no
15296   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15297   soname_spec='${libname}${release}${major}$shared_ext'
15298   shlibpath_overrides_runpath=yes
15299   shlibpath_var=DYLD_LIBRARY_PATH
15300   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15301   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15302   if test "$GCC" = yes; then
15303     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"`
15304   else
15305     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15306   fi
15307   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15308   ;;
15309
15310 dgux*)
15311   version_type=linux
15312   need_lib_prefix=no
15313   need_version=no
15314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15315   soname_spec='${libname}${release}${shared_ext}$major'
15316   shlibpath_var=LD_LIBRARY_PATH
15317   ;;
15318
15319 freebsd1*)
15320   dynamic_linker=no
15321   ;;
15322
15323 freebsd* | dragonfly*)
15324   # DragonFly does not have aout.  When/if they implement a new
15325   # versioning mechanism, adjust this.
15326   if test -x /usr/bin/objformat; then
15327     objformat=`/usr/bin/objformat`
15328   else
15329     case $host_os in
15330     freebsd[123]*) objformat=aout ;;
15331     *) objformat=elf ;;
15332     esac
15333   fi
15334   version_type=freebsd-$objformat
15335   case $version_type in
15336     freebsd-elf*)
15337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15338       need_version=no
15339       need_lib_prefix=no
15340       ;;
15341     freebsd-*)
15342       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15343       need_version=yes
15344       ;;
15345   esac
15346   shlibpath_var=LD_LIBRARY_PATH
15347   case $host_os in
15348   freebsd2*)
15349     shlibpath_overrides_runpath=yes
15350     ;;
15351   freebsd3.[01]* | freebsdelf3.[01]*)
15352     shlibpath_overrides_runpath=yes
15353     hardcode_into_libs=yes
15354     ;;
15355   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15356   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15357     shlibpath_overrides_runpath=no
15358     hardcode_into_libs=yes
15359     ;;
15360   freebsd*) # from 4.6 on
15361     shlibpath_overrides_runpath=yes
15362     hardcode_into_libs=yes
15363     ;;
15364   esac
15365   ;;
15366
15367 gnu*)
15368   version_type=linux
15369   need_lib_prefix=no
15370   need_version=no
15371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15372   soname_spec='${libname}${release}${shared_ext}$major'
15373   shlibpath_var=LD_LIBRARY_PATH
15374   hardcode_into_libs=yes
15375   ;;
15376
15377 hpux9* | hpux10* | hpux11*)
15378   # Give a soname corresponding to the major version so that dld.sl refuses to
15379   # link against other versions.
15380   version_type=sunos
15381   need_lib_prefix=no
15382   need_version=no
15383   case $host_cpu in
15384   ia64*)
15385     shrext_cmds='.so'
15386     hardcode_into_libs=yes
15387     dynamic_linker="$host_os dld.so"
15388     shlibpath_var=LD_LIBRARY_PATH
15389     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391     soname_spec='${libname}${release}${shared_ext}$major'
15392     if test "X$HPUX_IA64_MODE" = X32; then
15393       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15394     else
15395       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15396     fi
15397     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15398     ;;
15399    hppa*64*)
15400      shrext_cmds='.sl'
15401      hardcode_into_libs=yes
15402      dynamic_linker="$host_os dld.sl"
15403      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15404      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15405      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406      soname_spec='${libname}${release}${shared_ext}$major'
15407      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15408      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15409      ;;
15410    *)
15411     shrext_cmds='.sl'
15412     dynamic_linker="$host_os dld.sl"
15413     shlibpath_var=SHLIB_PATH
15414     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416     soname_spec='${libname}${release}${shared_ext}$major'
15417     ;;
15418   esac
15419   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15420   postinstall_cmds='chmod 555 $lib'
15421   ;;
15422
15423 interix3*)
15424   version_type=linux
15425   need_lib_prefix=no
15426   need_version=no
15427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15428   soname_spec='${libname}${release}${shared_ext}$major'
15429   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   shlibpath_overrides_runpath=no
15432   hardcode_into_libs=yes
15433   ;;
15434
15435 irix5* | irix6* | nonstopux*)
15436   case $host_os in
15437     nonstopux*) version_type=nonstopux ;;
15438     *)
15439         if test "$lt_cv_prog_gnu_ld" = yes; then
15440                 version_type=linux
15441         else
15442                 version_type=irix
15443         fi ;;
15444   esac
15445   need_lib_prefix=no
15446   need_version=no
15447   soname_spec='${libname}${release}${shared_ext}$major'
15448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15449   case $host_os in
15450   irix5* | nonstopux*)
15451     libsuff= shlibsuff=
15452     ;;
15453   *)
15454     case $LD in # libtool.m4 will add one of these switches to LD
15455     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15456       libsuff= shlibsuff= libmagic=32-bit;;
15457     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15458       libsuff=32 shlibsuff=N32 libmagic=N32;;
15459     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15460       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15461     *) libsuff= shlibsuff= libmagic=never-match;;
15462     esac
15463     ;;
15464   esac
15465   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15466   shlibpath_overrides_runpath=no
15467   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15468   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15469   hardcode_into_libs=yes
15470   ;;
15471
15472 # No shared lib support for Linux oldld, aout, or coff.
15473 linux*oldld* | linux*aout* | linux*coff*)
15474   dynamic_linker=no
15475   ;;
15476
15477 # This must be Linux ELF.
15478 linux* | k*bsd*-gnu)
15479   version_type=linux
15480   need_lib_prefix=no
15481   need_version=no
15482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483   soname_spec='${libname}${release}${shared_ext}$major'
15484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   shlibpath_overrides_runpath=no
15487   # This implies no fast_install, which is unacceptable.
15488   # Some rework will be needed to allow for fast_install
15489   # before this can be enabled.
15490   hardcode_into_libs=yes
15491
15492   # Append ld.so.conf contents to the search path
15493   if test -f /etc/ld.so.conf; then
15494     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' ' '`
15495     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15496   fi
15497
15498   # We used to test for /lib/ld.so.1 and disable shared libraries on
15499   # powerpc, because MkLinux only supported shared libraries with the
15500   # GNU dynamic linker.  Since this was broken with cross compilers,
15501   # most powerpc-linux boxes support dynamic linking these days and
15502   # people can always --disable-shared, the test was removed, and we
15503   # assume the GNU/Linux dynamic linker is in use.
15504   dynamic_linker='GNU/Linux ld.so'
15505   ;;
15506
15507 netbsdelf*-gnu)
15508   version_type=linux
15509   need_lib_prefix=no
15510   need_version=no
15511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15512   soname_spec='${libname}${release}${shared_ext}$major'
15513   shlibpath_var=LD_LIBRARY_PATH
15514   shlibpath_overrides_runpath=no
15515   hardcode_into_libs=yes
15516   dynamic_linker='NetBSD ld.elf_so'
15517   ;;
15518
15519 netbsd*)
15520   version_type=sunos
15521   need_lib_prefix=no
15522   need_version=no
15523   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15526     dynamic_linker='NetBSD (a.out) ld.so'
15527   else
15528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15529     soname_spec='${libname}${release}${shared_ext}$major'
15530     dynamic_linker='NetBSD ld.elf_so'
15531   fi
15532   shlibpath_var=LD_LIBRARY_PATH
15533   shlibpath_overrides_runpath=yes
15534   hardcode_into_libs=yes
15535   ;;
15536
15537 newsos6)
15538   version_type=linux
15539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   shlibpath_overrides_runpath=yes
15542   ;;
15543
15544 nto-qnx*)
15545   version_type=linux
15546   need_lib_prefix=no
15547   need_version=no
15548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549   soname_spec='${libname}${release}${shared_ext}$major'
15550   shlibpath_var=LD_LIBRARY_PATH
15551   shlibpath_overrides_runpath=yes
15552   ;;
15553
15554 openbsd*)
15555   version_type=sunos
15556   sys_lib_dlsearch_path_spec="/usr/lib"
15557   need_lib_prefix=no
15558   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15559   case $host_os in
15560     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15561     *)                         need_version=no  ;;
15562   esac
15563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15565   shlibpath_var=LD_LIBRARY_PATH
15566   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15567     case $host_os in
15568       openbsd2.[89] | openbsd2.[89].*)
15569         shlibpath_overrides_runpath=no
15570         ;;
15571       *)
15572         shlibpath_overrides_runpath=yes
15573         ;;
15574       esac
15575   else
15576     shlibpath_overrides_runpath=yes
15577   fi
15578   ;;
15579
15580 os2*)
15581   libname_spec='$name'
15582   shrext_cmds=".dll"
15583   need_lib_prefix=no
15584   library_names_spec='$libname${shared_ext} $libname.a'
15585   dynamic_linker='OS/2 ld.exe'
15586   shlibpath_var=LIBPATH
15587   ;;
15588
15589 osf3* | osf4* | osf5*)
15590   version_type=osf
15591   need_lib_prefix=no
15592   need_version=no
15593   soname_spec='${libname}${release}${shared_ext}$major'
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595   shlibpath_var=LD_LIBRARY_PATH
15596   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15597   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15598   ;;
15599
15600 solaris*)
15601   version_type=linux
15602   need_lib_prefix=no
15603   need_version=no
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   shlibpath_var=LD_LIBRARY_PATH
15607   shlibpath_overrides_runpath=yes
15608   hardcode_into_libs=yes
15609   # ldd complains unless libraries are executable
15610   postinstall_cmds='chmod +x $lib'
15611   ;;
15612
15613 sunos4*)
15614   version_type=sunos
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15616   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15617   shlibpath_var=LD_LIBRARY_PATH
15618   shlibpath_overrides_runpath=yes
15619   if test "$with_gnu_ld" = yes; then
15620     need_lib_prefix=no
15621   fi
15622   need_version=yes
15623   ;;
15624
15625 sysv4 | sysv4.3*)
15626   version_type=linux
15627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   shlibpath_var=LD_LIBRARY_PATH
15630   case $host_vendor in
15631     sni)
15632       shlibpath_overrides_runpath=no
15633       need_lib_prefix=no
15634       export_dynamic_flag_spec='${wl}-Blargedynsym'
15635       runpath_var=LD_RUN_PATH
15636       ;;
15637     siemens)
15638       need_lib_prefix=no
15639       ;;
15640     motorola)
15641       need_lib_prefix=no
15642       need_version=no
15643       shlibpath_overrides_runpath=no
15644       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15645       ;;
15646   esac
15647   ;;
15648
15649 sysv4*MP*)
15650   if test -d /usr/nec ;then
15651     version_type=linux
15652     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15653     soname_spec='$libname${shared_ext}.$major'
15654     shlibpath_var=LD_LIBRARY_PATH
15655   fi
15656   ;;
15657
15658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15659   version_type=freebsd-elf
15660   need_lib_prefix=no
15661   need_version=no
15662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15663   soname_spec='${libname}${release}${shared_ext}$major'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   hardcode_into_libs=yes
15666   if test "$with_gnu_ld" = yes; then
15667     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15668     shlibpath_overrides_runpath=no
15669   else
15670     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15671     shlibpath_overrides_runpath=yes
15672     case $host_os in
15673       sco3.2v5*)
15674         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15675         ;;
15676     esac
15677   fi
15678   sys_lib_dlsearch_path_spec='/usr/lib'
15679   ;;
15680
15681 uts4*)
15682   version_type=linux
15683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   ;;
15687
15688 *)
15689   dynamic_linker=no
15690   ;;
15691 esac
15692 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15693 echo "${ECHO_T}$dynamic_linker" >&6; }
15694 test "$dynamic_linker" = no && can_build_shared=no
15695
15696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15697 if test "$GCC" = yes; then
15698   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15699 fi
15700
15701 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15703 hardcode_action_F77=
15704 if test -n "$hardcode_libdir_flag_spec_F77" || \
15705    test -n "$runpath_var_F77" || \
15706    test "X$hardcode_automatic_F77" = "Xyes" ; then
15707
15708   # We can hardcode non-existant directories.
15709   if test "$hardcode_direct_F77" != no &&
15710      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15711      # have to relink, otherwise we might link with an installed library
15712      # when we should be linking with a yet-to-be-installed one
15713      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15714      test "$hardcode_minus_L_F77" != no; then
15715     # Linking always hardcodes the temporary library directory.
15716     hardcode_action_F77=relink
15717   else
15718     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15719     hardcode_action_F77=immediate
15720   fi
15721 else
15722   # We cannot hardcode anything, or else we can only hardcode existing
15723   # directories.
15724   hardcode_action_F77=unsupported
15725 fi
15726 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15727 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15728
15729 if test "$hardcode_action_F77" = relink; then
15730   # Fast installation is not supported
15731   enable_fast_install=no
15732 elif test "$shlibpath_overrides_runpath" = yes ||
15733      test "$enable_shared" = no; then
15734   # Fast installation is not necessary
15735   enable_fast_install=needless
15736 fi
15737
15738
15739 # The else clause should only fire when bootstrapping the
15740 # libtool distribution, otherwise you forgot to ship ltmain.sh
15741 # with your package, and you will get complaints that there are
15742 # no rules to generate ltmain.sh.
15743 if test -f "$ltmain"; then
15744   # See if we are running on zsh, and set the options which allow our commands through
15745   # without removal of \ escapes.
15746   if test -n "${ZSH_VERSION+set}" ; then
15747     setopt NO_GLOB_SUBST
15748   fi
15749   # Now quote all the things that may contain metacharacters while being
15750   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15751   # variables and quote the copies for generation of the libtool script.
15752   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15753     SED SHELL STRIP \
15754     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15755     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15756     deplibs_check_method reload_flag reload_cmds need_locks \
15757     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15758     lt_cv_sys_global_symbol_to_c_name_address \
15759     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15760     old_postinstall_cmds old_postuninstall_cmds \
15761     compiler_F77 \
15762     CC_F77 \
15763     LD_F77 \
15764     lt_prog_compiler_wl_F77 \
15765     lt_prog_compiler_pic_F77 \
15766     lt_prog_compiler_static_F77 \
15767     lt_prog_compiler_no_builtin_flag_F77 \
15768     export_dynamic_flag_spec_F77 \
15769     thread_safe_flag_spec_F77 \
15770     whole_archive_flag_spec_F77 \
15771     enable_shared_with_static_runtimes_F77 \
15772     old_archive_cmds_F77 \
15773     old_archive_from_new_cmds_F77 \
15774     predep_objects_F77 \
15775     postdep_objects_F77 \
15776     predeps_F77 \
15777     postdeps_F77 \
15778     compiler_lib_search_path_F77 \
15779     archive_cmds_F77 \
15780     archive_expsym_cmds_F77 \
15781     postinstall_cmds_F77 \
15782     postuninstall_cmds_F77 \
15783     old_archive_from_expsyms_cmds_F77 \
15784     allow_undefined_flag_F77 \
15785     no_undefined_flag_F77 \
15786     export_symbols_cmds_F77 \
15787     hardcode_libdir_flag_spec_F77 \
15788     hardcode_libdir_flag_spec_ld_F77 \
15789     hardcode_libdir_separator_F77 \
15790     hardcode_automatic_F77 \
15791     module_cmds_F77 \
15792     module_expsym_cmds_F77 \
15793     lt_cv_prog_compiler_c_o_F77 \
15794     exclude_expsyms_F77 \
15795     include_expsyms_F77; do
15796
15797     case $var in
15798     old_archive_cmds_F77 | \
15799     old_archive_from_new_cmds_F77 | \
15800     archive_cmds_F77 | \
15801     archive_expsym_cmds_F77 | \
15802     module_cmds_F77 | \
15803     module_expsym_cmds_F77 | \
15804     old_archive_from_expsyms_cmds_F77 | \
15805     export_symbols_cmds_F77 | \
15806     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15807     postinstall_cmds | postuninstall_cmds | \
15808     old_postinstall_cmds | old_postuninstall_cmds | \
15809     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15810       # Double-quote double-evaled strings.
15811       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15812       ;;
15813     *)
15814       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15815       ;;
15816     esac
15817   done
15818
15819   case $lt_echo in
15820   *'\$0 --fallback-echo"')
15821     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15822     ;;
15823   esac
15824
15825 cfgfile="$ofile"
15826
15827   cat <<__EOF__ >> "$cfgfile"
15828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15829
15830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15831
15832 # Shell to use when invoking shell scripts.
15833 SHELL=$lt_SHELL
15834
15835 # Whether or not to build shared libraries.
15836 build_libtool_libs=$enable_shared
15837
15838 # Whether or not to build static libraries.
15839 build_old_libs=$enable_static
15840
15841 # Whether or not to add -lc for building shared libraries.
15842 build_libtool_need_lc=$archive_cmds_need_lc_F77
15843
15844 # Whether or not to disallow shared libs when runtime libs are static
15845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15846
15847 # Whether or not to optimize for fast installation.
15848 fast_install=$enable_fast_install
15849
15850 # The host system.
15851 host_alias=$host_alias
15852 host=$host
15853 host_os=$host_os
15854
15855 # The build system.
15856 build_alias=$build_alias
15857 build=$build
15858 build_os=$build_os
15859
15860 # An echo program that does not interpret backslashes.
15861 echo=$lt_echo
15862
15863 # The archiver.
15864 AR=$lt_AR
15865 AR_FLAGS=$lt_AR_FLAGS
15866
15867 # A C compiler.
15868 LTCC=$lt_LTCC
15869
15870 # LTCC compiler flags.
15871 LTCFLAGS=$lt_LTCFLAGS
15872
15873 # A language-specific compiler.
15874 CC=$lt_compiler_F77
15875
15876 # Is the compiler the GNU C compiler?
15877 with_gcc=$GCC_F77
15878
15879 # An ERE matcher.
15880 EGREP=$lt_EGREP
15881
15882 # The linker used to build libraries.
15883 LD=$lt_LD_F77
15884
15885 # Whether we need hard or soft links.
15886 LN_S=$lt_LN_S
15887
15888 # A BSD-compatible nm program.
15889 NM=$lt_NM
15890
15891 # A symbol stripping program
15892 STRIP=$lt_STRIP
15893
15894 # Used to examine libraries when file_magic_cmd begins "file"
15895 MAGIC_CMD=$MAGIC_CMD
15896
15897 # Used on cygwin: DLL creation program.
15898 DLLTOOL="$DLLTOOL"
15899
15900 # Used on cygwin: object dumper.
15901 OBJDUMP="$OBJDUMP"
15902
15903 # Used on cygwin: assembler.
15904 AS="$AS"
15905
15906 # The name of the directory that contains temporary libtool files.
15907 objdir=$objdir
15908
15909 # How to create reloadable object files.
15910 reload_flag=$lt_reload_flag
15911 reload_cmds=$lt_reload_cmds
15912
15913 # How to pass a linker flag through the compiler.
15914 wl=$lt_lt_prog_compiler_wl_F77
15915
15916 # Object file suffix (normally "o").
15917 objext="$ac_objext"
15918
15919 # Old archive suffix (normally "a").
15920 libext="$libext"
15921
15922 # Shared library suffix (normally ".so").
15923 shrext_cmds='$shrext_cmds'
15924
15925 # Executable file suffix (normally "").
15926 exeext="$exeext"
15927
15928 # Additional compiler flags for building library objects.
15929 pic_flag=$lt_lt_prog_compiler_pic_F77
15930 pic_mode=$pic_mode
15931
15932 # What is the maximum length of a command?
15933 max_cmd_len=$lt_cv_sys_max_cmd_len
15934
15935 # Does compiler simultaneously support -c and -o options?
15936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15937
15938 # Must we lock files when doing compilation?
15939 need_locks=$lt_need_locks
15940
15941 # Do we need the lib prefix for modules?
15942 need_lib_prefix=$need_lib_prefix
15943
15944 # Do we need a version for libraries?
15945 need_version=$need_version
15946
15947 # Whether dlopen is supported.
15948 dlopen_support=$enable_dlopen
15949
15950 # Whether dlopen of programs is supported.
15951 dlopen_self=$enable_dlopen_self
15952
15953 # Whether dlopen of statically linked programs is supported.
15954 dlopen_self_static=$enable_dlopen_self_static
15955
15956 # Compiler flag to prevent dynamic linking.
15957 link_static_flag=$lt_lt_prog_compiler_static_F77
15958
15959 # Compiler flag to turn off builtin functions.
15960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15961
15962 # Compiler flag to allow reflexive dlopens.
15963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15964
15965 # Compiler flag to generate shared objects directly from archives.
15966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15967
15968 # Compiler flag to generate thread-safe objects.
15969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15970
15971 # Library versioning type.
15972 version_type=$version_type
15973
15974 # Format of library name prefix.
15975 libname_spec=$lt_libname_spec
15976
15977 # List of archive names.  First name is the real one, the rest are links.
15978 # The last name is the one that the linker finds with -lNAME.
15979 library_names_spec=$lt_library_names_spec
15980
15981 # The coded name of the library, if different from the real name.
15982 soname_spec=$lt_soname_spec
15983
15984 # Commands used to build and install an old-style archive.
15985 RANLIB=$lt_RANLIB
15986 old_archive_cmds=$lt_old_archive_cmds_F77
15987 old_postinstall_cmds=$lt_old_postinstall_cmds
15988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15989
15990 # Create an old-style archive from a shared archive.
15991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15992
15993 # Create a temporary old-style archive to link instead of a shared archive.
15994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15995
15996 # Commands used to build and install a shared archive.
15997 archive_cmds=$lt_archive_cmds_F77
15998 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15999 postinstall_cmds=$lt_postinstall_cmds
16000 postuninstall_cmds=$lt_postuninstall_cmds
16001
16002 # Commands used to build a loadable module (assumed same as above if empty)
16003 module_cmds=$lt_module_cmds_F77
16004 module_expsym_cmds=$lt_module_expsym_cmds_F77
16005
16006 # Commands to strip libraries.
16007 old_striplib=$lt_old_striplib
16008 striplib=$lt_striplib
16009
16010 # Dependencies to place before the objects being linked to create a
16011 # shared library.
16012 predep_objects=$lt_predep_objects_F77
16013
16014 # Dependencies to place after the objects being linked to create a
16015 # shared library.
16016 postdep_objects=$lt_postdep_objects_F77
16017
16018 # Dependencies to place before the objects being linked to create a
16019 # shared library.
16020 predeps=$lt_predeps_F77
16021
16022 # Dependencies to place after the objects being linked to create a
16023 # shared library.
16024 postdeps=$lt_postdeps_F77
16025
16026 # The library search path used internally by the compiler when linking
16027 # a shared library.
16028 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16029
16030 # Method to check whether dependent libraries are shared objects.
16031 deplibs_check_method=$lt_deplibs_check_method
16032
16033 # Command to use when deplibs_check_method == file_magic.
16034 file_magic_cmd=$lt_file_magic_cmd
16035
16036 # Flag that allows shared libraries with undefined symbols to be built.
16037 allow_undefined_flag=$lt_allow_undefined_flag_F77
16038
16039 # Flag that forces no undefined symbols.
16040 no_undefined_flag=$lt_no_undefined_flag_F77
16041
16042 # Commands used to finish a libtool library installation in a directory.
16043 finish_cmds=$lt_finish_cmds
16044
16045 # Same as above, but a single script fragment to be evaled but not shown.
16046 finish_eval=$lt_finish_eval
16047
16048 # Take the output of nm and produce a listing of raw symbols and C names.
16049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16050
16051 # Transform the output of nm in a proper C declaration
16052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16053
16054 # Transform the output of nm in a C name address pair
16055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16056
16057 # This is the shared library runtime path variable.
16058 runpath_var=$runpath_var
16059
16060 # This is the shared library path variable.
16061 shlibpath_var=$shlibpath_var
16062
16063 # Is shlibpath searched before the hard-coded library search path?
16064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16065
16066 # How to hardcode a shared library path into an executable.
16067 hardcode_action=$hardcode_action_F77
16068
16069 # Whether we should hardcode library paths into libraries.
16070 hardcode_into_libs=$hardcode_into_libs
16071
16072 # Flag to hardcode \$libdir into a binary during linking.
16073 # This must work even if \$libdir does not exist.
16074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16075
16076 # If ld is used when linking, flag to hardcode \$libdir into
16077 # a binary during linking. This must work even if \$libdir does
16078 # not exist.
16079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16080
16081 # Whether we need a single -rpath flag with a separated argument.
16082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16083
16084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16085 # resulting binary.
16086 hardcode_direct=$hardcode_direct_F77
16087
16088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16089 # resulting binary.
16090 hardcode_minus_L=$hardcode_minus_L_F77
16091
16092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16093 # the resulting binary.
16094 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16095
16096 # Set to yes if building a shared library automatically hardcodes DIR into the library
16097 # and all subsequent libraries and executables linked against it.
16098 hardcode_automatic=$hardcode_automatic_F77
16099
16100 # Variables whose values should be saved in libtool wrapper scripts and
16101 # restored at relink time.
16102 variables_saved_for_relink="$variables_saved_for_relink"
16103
16104 # Whether libtool must link a program against all its dependency libraries.
16105 link_all_deplibs=$link_all_deplibs_F77
16106
16107 # Compile-time system search path for libraries
16108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16109
16110 # Run-time system search path for libraries
16111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16112
16113 # Fix the shell variable \$srcfile for the compiler.
16114 fix_srcfile_path="$fix_srcfile_path_F77"
16115
16116 # Set to yes if exported symbols are required.
16117 always_export_symbols=$always_export_symbols_F77
16118
16119 # The commands to list exported symbols.
16120 export_symbols_cmds=$lt_export_symbols_cmds_F77
16121
16122 # The commands to extract the exported symbol list from a shared archive.
16123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16124
16125 # Symbols that should not be listed in the preloaded symbols.
16126 exclude_expsyms=$lt_exclude_expsyms_F77
16127
16128 # Symbols that must always be exported.
16129 include_expsyms=$lt_include_expsyms_F77
16130
16131 # ### END LIBTOOL TAG CONFIG: $tagname
16132
16133 __EOF__
16134
16135
16136 else
16137   # If there is no Makefile yet, we rely on a make rule to execute
16138   # `config.status --recheck' to rerun these tests and create the
16139   # libtool script then.
16140   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16141   if test -f "$ltmain_in"; then
16142     test -f Makefile && make "$ltmain"
16143   fi
16144 fi
16145
16146
16147 ac_ext=c
16148 ac_cpp='$CPP $CPPFLAGS'
16149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16152
16153 CC="$lt_save_CC"
16154
16155         else
16156           tagname=""
16157         fi
16158         ;;
16159
16160       GCJ)
16161         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16162
16163
16164 # Source file extension for Java test sources.
16165 ac_ext=java
16166
16167 # Object file extension for compiled Java test sources.
16168 objext=o
16169 objext_GCJ=$objext
16170
16171 # Code to be used in simple compile tests
16172 lt_simple_compile_test_code="class foo {}\n"
16173
16174 # Code to be used in simple link tests
16175 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16176
16177 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16178
16179 # If no C compiler was specified, use CC.
16180 LTCC=${LTCC-"$CC"}
16181
16182 # If no C compiler flags were specified, use CFLAGS.
16183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16184
16185 # Allow CC to be a program name with arguments.
16186 compiler=$CC
16187
16188
16189 # save warnings/boilerplate of simple test code
16190 ac_outfile=conftest.$ac_objext
16191 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16193 _lt_compiler_boilerplate=`cat conftest.err`
16194 $rm conftest*
16195
16196 ac_outfile=conftest.$ac_objext
16197 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16199 _lt_linker_boilerplate=`cat conftest.err`
16200 $rm conftest*
16201
16202
16203 # Allow CC to be a program name with arguments.
16204 lt_save_CC="$CC"
16205 CC=${GCJ-"gcj"}
16206 compiler=$CC
16207 compiler_GCJ=$CC
16208 for cc_temp in $compiler""; do
16209   case $cc_temp in
16210     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16211     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16212     \-*) ;;
16213     *) break;;
16214   esac
16215 done
16216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16217
16218
16219 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16220 archive_cmds_need_lc_GCJ=no
16221
16222 old_archive_cmds_GCJ=$old_archive_cmds
16223
16224
16225 lt_prog_compiler_no_builtin_flag_GCJ=
16226
16227 if test "$GCC" = yes; then
16228   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16229
16230
16231 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16232 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16233 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16234   echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236   lt_cv_prog_compiler_rtti_exceptions=no
16237   ac_outfile=conftest.$ac_objext
16238    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16239    lt_compiler_flag="-fno-rtti -fno-exceptions"
16240    # Insert the option either (1) after the last *FLAGS variable, or
16241    # (2) before a word containing "conftest.", or (3) at the end.
16242    # Note that $ac_compile itself does not contain backslashes and begins
16243    # with a dollar sign (not a hyphen), so the echo should work correctly.
16244    # The option is referenced via a variable to avoid confusing sed.
16245    lt_compile=`echo "$ac_compile" | $SED \
16246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16248    -e 's:$: $lt_compiler_flag:'`
16249    (eval echo "\"\$as_me:16249: $lt_compile\"" >&5)
16250    (eval "$lt_compile" 2>conftest.err)
16251    ac_status=$?
16252    cat conftest.err >&5
16253    echo "$as_me:16253: \$? = $ac_status" >&5
16254    if (exit $ac_status) && test -s "$ac_outfile"; then
16255      # The compiler can only warn and ignore the option if not recognized
16256      # So say no if there are warnings other than the usual output.
16257      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16258      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16259      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16260        lt_cv_prog_compiler_rtti_exceptions=yes
16261      fi
16262    fi
16263    $rm conftest*
16264
16265 fi
16266 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16267 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16268
16269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16270     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16271 else
16272     :
16273 fi
16274
16275 fi
16276
16277 lt_prog_compiler_wl_GCJ=
16278 lt_prog_compiler_pic_GCJ=
16279 lt_prog_compiler_static_GCJ=
16280
16281 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16282 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16283
16284   if test "$GCC" = yes; then
16285     lt_prog_compiler_wl_GCJ='-Wl,'
16286     lt_prog_compiler_static_GCJ='-static'
16287
16288     case $host_os in
16289       aix*)
16290       # All AIX code is PIC.
16291       if test "$host_cpu" = ia64; then
16292         # AIX 5 now supports IA64 processor
16293         lt_prog_compiler_static_GCJ='-Bstatic'
16294       fi
16295       ;;
16296
16297     amigaos*)
16298       # FIXME: we need at least 68020 code to build shared libraries, but
16299       # adding the `-m68020' flag to GCC prevents building anything better,
16300       # like `-m68040'.
16301       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16302       ;;
16303
16304     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16305       # PIC is the default for these OSes.
16306       ;;
16307
16308     mingw* | pw32* | os2*)
16309       # This hack is so that the source file can tell whether it is being
16310       # built for inclusion in a dll (and should export symbols for example).
16311       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16312       ;;
16313
16314     darwin* | rhapsody*)
16315       # PIC is the default on this platform
16316       # Common symbols not allowed in MH_DYLIB files
16317       lt_prog_compiler_pic_GCJ='-fno-common'
16318       ;;
16319
16320     interix3*)
16321       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16322       # Instead, we relocate shared libraries at runtime.
16323       ;;
16324
16325     msdosdjgpp*)
16326       # Just because we use GCC doesn't mean we suddenly get shared libraries
16327       # on systems that don't support them.
16328       lt_prog_compiler_can_build_shared_GCJ=no
16329       enable_shared=no
16330       ;;
16331
16332     sysv4*MP*)
16333       if test -d /usr/nec; then
16334         lt_prog_compiler_pic_GCJ=-Kconform_pic
16335       fi
16336       ;;
16337
16338     hpux*)
16339       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16340       # not for PA HP-UX.
16341       case $host_cpu in
16342       hppa*64*|ia64*)
16343         # +Z the default
16344         ;;
16345       *)
16346         lt_prog_compiler_pic_GCJ='-fPIC'
16347         ;;
16348       esac
16349       ;;
16350
16351     *)
16352       lt_prog_compiler_pic_GCJ='-fPIC'
16353       ;;
16354     esac
16355   else
16356     # PORTME Check for flag to pass linker flags through the system compiler.
16357     case $host_os in
16358     aix*)
16359       lt_prog_compiler_wl_GCJ='-Wl,'
16360       if test "$host_cpu" = ia64; then
16361         # AIX 5 now supports IA64 processor
16362         lt_prog_compiler_static_GCJ='-Bstatic'
16363       else
16364         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16365       fi
16366       ;;
16367       darwin*)
16368         # PIC is the default on this platform
16369         # Common symbols not allowed in MH_DYLIB files
16370        case $cc_basename in
16371          xlc*)
16372          lt_prog_compiler_pic_GCJ='-qnocommon'
16373          lt_prog_compiler_wl_GCJ='-Wl,'
16374          ;;
16375        esac
16376        ;;
16377
16378     mingw* | pw32* | os2*)
16379       # This hack is so that the source file can tell whether it is being
16380       # built for inclusion in a dll (and should export symbols for example).
16381       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16382       ;;
16383
16384     hpux9* | hpux10* | hpux11*)
16385       lt_prog_compiler_wl_GCJ='-Wl,'
16386       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16387       # not for PA HP-UX.
16388       case $host_cpu in
16389       hppa*64*|ia64*)
16390         # +Z the default
16391         ;;
16392       *)
16393         lt_prog_compiler_pic_GCJ='+Z'
16394         ;;
16395       esac
16396       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16397       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16398       ;;
16399
16400     irix5* | irix6* | nonstopux*)
16401       lt_prog_compiler_wl_GCJ='-Wl,'
16402       # PIC (with -KPIC) is the default.
16403       lt_prog_compiler_static_GCJ='-non_shared'
16404       ;;
16405
16406     newsos6)
16407       lt_prog_compiler_pic_GCJ='-KPIC'
16408       lt_prog_compiler_static_GCJ='-Bstatic'
16409       ;;
16410
16411     linux* | k*bsd*-gnu)
16412       case $cc_basename in
16413       icc* | ecc*)
16414         lt_prog_compiler_wl_GCJ='-Wl,'
16415         lt_prog_compiler_pic_GCJ='-KPIC'
16416         lt_prog_compiler_static_GCJ='-static'
16417         ;;
16418       pgcc* | pgf77* | pgf90* | pgf95*)
16419         # Portland Group compilers (*not* the Pentium gcc compiler,
16420         # which looks to be a dead project)
16421         lt_prog_compiler_wl_GCJ='-Wl,'
16422         lt_prog_compiler_pic_GCJ='-fpic'
16423         lt_prog_compiler_static_GCJ='-Bstatic'
16424         ;;
16425       ccc*)
16426         lt_prog_compiler_wl_GCJ='-Wl,'
16427         # All Alpha code is PIC.
16428         lt_prog_compiler_static_GCJ='-non_shared'
16429         ;;
16430       esac
16431       ;;
16432
16433     osf3* | osf4* | osf5*)
16434       lt_prog_compiler_wl_GCJ='-Wl,'
16435       # All OSF/1 code is PIC.
16436       lt_prog_compiler_static_GCJ='-non_shared'
16437       ;;
16438
16439     solaris*)
16440       lt_prog_compiler_pic_GCJ='-KPIC'
16441       lt_prog_compiler_static_GCJ='-Bstatic'
16442       case $cc_basename in
16443       f77* | f90* | f95*)
16444         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16445       *)
16446         lt_prog_compiler_wl_GCJ='-Wl,';;
16447       esac
16448       ;;
16449
16450     sunos4*)
16451       lt_prog_compiler_wl_GCJ='-Qoption ld '
16452       lt_prog_compiler_pic_GCJ='-PIC'
16453       lt_prog_compiler_static_GCJ='-Bstatic'
16454       ;;
16455
16456     sysv4 | sysv4.2uw2* | sysv4.3*)
16457       lt_prog_compiler_wl_GCJ='-Wl,'
16458       lt_prog_compiler_pic_GCJ='-KPIC'
16459       lt_prog_compiler_static_GCJ='-Bstatic'
16460       ;;
16461
16462     sysv4*MP*)
16463       if test -d /usr/nec ;then
16464         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16465         lt_prog_compiler_static_GCJ='-Bstatic'
16466       fi
16467       ;;
16468
16469     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16470       lt_prog_compiler_wl_GCJ='-Wl,'
16471       lt_prog_compiler_pic_GCJ='-KPIC'
16472       lt_prog_compiler_static_GCJ='-Bstatic'
16473       ;;
16474
16475     unicos*)
16476       lt_prog_compiler_wl_GCJ='-Wl,'
16477       lt_prog_compiler_can_build_shared_GCJ=no
16478       ;;
16479
16480     uts4*)
16481       lt_prog_compiler_pic_GCJ='-pic'
16482       lt_prog_compiler_static_GCJ='-Bstatic'
16483       ;;
16484
16485     *)
16486       lt_prog_compiler_can_build_shared_GCJ=no
16487       ;;
16488     esac
16489   fi
16490
16491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16492 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16493
16494 #
16495 # Check to make sure the PIC flag actually works.
16496 #
16497 if test -n "$lt_prog_compiler_pic_GCJ"; then
16498
16499 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16501 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504   lt_prog_compiler_pic_works_GCJ=no
16505   ac_outfile=conftest.$ac_objext
16506    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16507    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16508    # Insert the option either (1) after the last *FLAGS variable, or
16509    # (2) before a word containing "conftest.", or (3) at the end.
16510    # Note that $ac_compile itself does not contain backslashes and begins
16511    # with a dollar sign (not a hyphen), so the echo should work correctly.
16512    # The option is referenced via a variable to avoid confusing sed.
16513    lt_compile=`echo "$ac_compile" | $SED \
16514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16516    -e 's:$: $lt_compiler_flag:'`
16517    (eval echo "\"\$as_me:16517: $lt_compile\"" >&5)
16518    (eval "$lt_compile" 2>conftest.err)
16519    ac_status=$?
16520    cat conftest.err >&5
16521    echo "$as_me:16521: \$? = $ac_status" >&5
16522    if (exit $ac_status) && test -s "$ac_outfile"; then
16523      # The compiler can only warn and ignore the option if not recognized
16524      # So say no if there are warnings other than the usual output.
16525      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16526      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16527      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16528        lt_prog_compiler_pic_works_GCJ=yes
16529      fi
16530    fi
16531    $rm conftest*
16532
16533 fi
16534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16535 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16536
16537 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16538     case $lt_prog_compiler_pic_GCJ in
16539      "" | " "*) ;;
16540      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16541      esac
16542 else
16543     lt_prog_compiler_pic_GCJ=
16544      lt_prog_compiler_can_build_shared_GCJ=no
16545 fi
16546
16547 fi
16548 case $host_os in
16549   # For platforms which do not support PIC, -DPIC is meaningless:
16550   *djgpp*)
16551     lt_prog_compiler_pic_GCJ=
16552     ;;
16553   *)
16554     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16555     ;;
16556 esac
16557
16558 #
16559 # Check to make sure the static flag actually works.
16560 #
16561 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16562 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16563 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16564 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   lt_prog_compiler_static_works_GCJ=no
16568    save_LDFLAGS="$LDFLAGS"
16569    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16570    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16571    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16572      # The linker can only warn and ignore the option if not recognized
16573      # So say no if there are warnings
16574      if test -s conftest.err; then
16575        # Append any errors to the config.log.
16576        cat conftest.err 1>&5
16577        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16578        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16579        if diff conftest.exp conftest.er2 >/dev/null; then
16580          lt_prog_compiler_static_works_GCJ=yes
16581        fi
16582      else
16583        lt_prog_compiler_static_works_GCJ=yes
16584      fi
16585    fi
16586    $rm conftest*
16587    LDFLAGS="$save_LDFLAGS"
16588
16589 fi
16590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16591 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16592
16593 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16594     :
16595 else
16596     lt_prog_compiler_static_GCJ=
16597 fi
16598
16599
16600 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16601 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16602 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   lt_cv_prog_compiler_c_o_GCJ=no
16606    $rm -r conftest 2>/dev/null
16607    mkdir conftest
16608    cd conftest
16609    mkdir out
16610    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16611
16612    lt_compiler_flag="-o out/conftest2.$ac_objext"
16613    # Insert the option either (1) after the last *FLAGS variable, or
16614    # (2) before a word containing "conftest.", or (3) at the end.
16615    # Note that $ac_compile itself does not contain backslashes and begins
16616    # with a dollar sign (not a hyphen), so the echo should work correctly.
16617    lt_compile=`echo "$ac_compile" | $SED \
16618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16620    -e 's:$: $lt_compiler_flag:'`
16621    (eval echo "\"\$as_me:16621: $lt_compile\"" >&5)
16622    (eval "$lt_compile" 2>out/conftest.err)
16623    ac_status=$?
16624    cat out/conftest.err >&5
16625    echo "$as_me:16625: \$? = $ac_status" >&5
16626    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16627    then
16628      # The compiler can only warn and ignore the option if not recognized
16629      # So say no if there are warnings
16630      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16631      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16632      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16633        lt_cv_prog_compiler_c_o_GCJ=yes
16634      fi
16635    fi
16636    chmod u+w . 2>&5
16637    $rm conftest*
16638    # SGI C++ compiler will create directory out/ii_files/ for
16639    # template instantiation
16640    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16641    $rm out/* && rmdir out
16642    cd ..
16643    rmdir conftest
16644    $rm conftest*
16645
16646 fi
16647 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16648 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16649
16650
16651 hard_links="nottested"
16652 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16653   # do not overwrite the value of need_locks provided by the user
16654   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16655 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16656   hard_links=yes
16657   $rm conftest*
16658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16659   touch conftest.a
16660   ln conftest.a conftest.b 2>&5 || hard_links=no
16661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16662   { echo "$as_me:$LINENO: result: $hard_links" >&5
16663 echo "${ECHO_T}$hard_links" >&6; }
16664   if test "$hard_links" = no; then
16665     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16666 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16667     need_locks=warn
16668   fi
16669 else
16670   need_locks=no
16671 fi
16672
16673 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16674 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16675
16676   runpath_var=
16677   allow_undefined_flag_GCJ=
16678   enable_shared_with_static_runtimes_GCJ=no
16679   archive_cmds_GCJ=
16680   archive_expsym_cmds_GCJ=
16681   old_archive_From_new_cmds_GCJ=
16682   old_archive_from_expsyms_cmds_GCJ=
16683   export_dynamic_flag_spec_GCJ=
16684   whole_archive_flag_spec_GCJ=
16685   thread_safe_flag_spec_GCJ=
16686   hardcode_libdir_flag_spec_GCJ=
16687   hardcode_libdir_flag_spec_ld_GCJ=
16688   hardcode_libdir_separator_GCJ=
16689   hardcode_direct_GCJ=no
16690   hardcode_minus_L_GCJ=no
16691   hardcode_shlibpath_var_GCJ=unsupported
16692   link_all_deplibs_GCJ=unknown
16693   hardcode_automatic_GCJ=no
16694   module_cmds_GCJ=
16695   module_expsym_cmds_GCJ=
16696   always_export_symbols_GCJ=no
16697   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16698   # include_expsyms should be a list of space-separated symbols to be *always*
16699   # included in the symbol list
16700   include_expsyms_GCJ=
16701   # exclude_expsyms can be an extended regexp of symbols to exclude
16702   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16703   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16704   # as well as any symbol that contains `d'.
16705   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16706   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16707   # platforms (ab)use it in PIC code, but their linkers get confused if
16708   # the symbol is explicitly referenced.  Since portable code cannot
16709   # rely on this symbol name, it's probably fine to never include it in
16710   # preloaded symbol tables.
16711   extract_expsyms_cmds=
16712   # Just being paranoid about ensuring that cc_basename is set.
16713   for cc_temp in $compiler""; do
16714   case $cc_temp in
16715     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16716     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16717     \-*) ;;
16718     *) break;;
16719   esac
16720 done
16721 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16722
16723   case $host_os in
16724   cygwin* | mingw* | pw32*)
16725     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16726     # When not using gcc, we currently assume that we are using
16727     # Microsoft Visual C++.
16728     if test "$GCC" != yes; then
16729       with_gnu_ld=no
16730     fi
16731     ;;
16732   interix*)
16733     # we just hope/assume this is gcc and not c89 (= MSVC++)
16734     with_gnu_ld=yes
16735     ;;
16736   openbsd*)
16737     with_gnu_ld=no
16738     ;;
16739   esac
16740
16741   ld_shlibs_GCJ=yes
16742   if test "$with_gnu_ld" = yes; then
16743     # If archive_cmds runs LD, not CC, wlarc should be empty
16744     wlarc='${wl}'
16745
16746     # Set some defaults for GNU ld with shared library support. These
16747     # are reset later if shared libraries are not supported. Putting them
16748     # here allows them to be overridden if necessary.
16749     runpath_var=LD_RUN_PATH
16750     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16751     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16752     # ancient GNU ld didn't support --whole-archive et. al.
16753     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16754         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16755       else
16756         whole_archive_flag_spec_GCJ=
16757     fi
16758     supports_anon_versioning=no
16759     case `$LD -v 2>/dev/null` in
16760       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16761       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16762       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16763       *\ 2.11.*) ;; # other 2.11 versions
16764       *) supports_anon_versioning=yes ;;
16765     esac
16766
16767     # See if GNU ld supports shared libraries.
16768     case $host_os in
16769     aix3* | aix4* | aix5*)
16770       # On AIX/PPC, the GNU linker is very broken
16771       if test "$host_cpu" != ia64; then
16772         ld_shlibs_GCJ=no
16773         cat <<EOF 1>&2
16774
16775 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16776 *** to be unable to reliably create shared libraries on AIX.
16777 *** Therefore, libtool is disabling shared libraries support.  If you
16778 *** really care for shared libraries, you may want to modify your PATH
16779 *** so that a non-GNU linker is found, and then restart.
16780
16781 EOF
16782       fi
16783       ;;
16784
16785     amigaos*)
16786       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)'
16787       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16788       hardcode_minus_L_GCJ=yes
16789
16790       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16791       # that the semantics of dynamic libraries on AmigaOS, at least up
16792       # to version 4, is to share data among multiple programs linked
16793       # with the same dynamic library.  Since this doesn't match the
16794       # behavior of shared libraries on other platforms, we can't use
16795       # them.
16796       ld_shlibs_GCJ=no
16797       ;;
16798
16799     beos*)
16800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16801         allow_undefined_flag_GCJ=unsupported
16802         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16803         # support --undefined.  This deserves some investigation.  FIXME
16804         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16805       else
16806         ld_shlibs_GCJ=no
16807       fi
16808       ;;
16809
16810     cygwin* | mingw* | pw32*)
16811       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16812       # as there is no search path for DLLs.
16813       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16814       allow_undefined_flag_GCJ=unsupported
16815       always_export_symbols_GCJ=no
16816       enable_shared_with_static_runtimes_GCJ=yes
16817       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16818
16819       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16820         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16821         # If the export-symbols file already is a .def file (1st line
16822         # is EXPORTS), use it as is; otherwise, prepend...
16823         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16824           cp $export_symbols $output_objdir/$soname.def;
16825         else
16826           echo EXPORTS > $output_objdir/$soname.def;
16827           cat $export_symbols >> $output_objdir/$soname.def;
16828         fi~
16829         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16830       else
16831         ld_shlibs_GCJ=no
16832       fi
16833       ;;
16834
16835     interix3*)
16836       hardcode_direct_GCJ=no
16837       hardcode_shlibpath_var_GCJ=no
16838       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16839       export_dynamic_flag_spec_GCJ='${wl}-E'
16840       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16841       # Instead, shared libraries are loaded at an image base (0x10000000 by
16842       # default) and relocated if they conflict, which is a slow very memory
16843       # consuming and fragmenting process.  To avoid this, we pick a random,
16844       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16845       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16846       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'
16847       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'
16848       ;;
16849
16850     linux* | k*bsd*-gnu)
16851       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16852         tmp_addflag=
16853         case $cc_basename,$host_cpu in
16854         pgcc*)                          # Portland Group C compiler
16855           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'
16856           tmp_addflag=' $pic_flag'
16857           ;;
16858         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16859           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'
16860           tmp_addflag=' $pic_flag -Mnomain' ;;
16861         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16862           tmp_addflag=' -i_dynamic' ;;
16863         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16864           tmp_addflag=' -i_dynamic -nofor_main' ;;
16865         ifc* | ifort*)                  # Intel Fortran compiler
16866           tmp_addflag=' -nofor_main' ;;
16867         esac
16868         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869
16870         if test $supports_anon_versioning = yes; then
16871           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16872   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16873   $echo "local: *; };" >> $output_objdir/$libname.ver~
16874           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16875         fi
16876         link_all_deplibs_GCJ=no
16877       else
16878         ld_shlibs_GCJ=no
16879       fi
16880       ;;
16881
16882     netbsd* | netbsdelf*-gnu)
16883       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16884         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16885         wlarc=
16886       else
16887         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16889       fi
16890       ;;
16891
16892     solaris*)
16893       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16894         ld_shlibs_GCJ=no
16895         cat <<EOF 1>&2
16896
16897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16898 *** create shared libraries on Solaris systems.  Therefore, libtool
16899 *** is disabling shared libraries support.  We urge you to upgrade GNU
16900 *** binutils to release 2.9.1 or newer.  Another option is to modify
16901 *** your PATH or compiler configuration so that the native linker is
16902 *** used, and then restart.
16903
16904 EOF
16905       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16906         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16907         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16908       else
16909         ld_shlibs_GCJ=no
16910       fi
16911       ;;
16912
16913     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16914       case `$LD -v 2>&1` in
16915         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16916         ld_shlibs_GCJ=no
16917         cat <<_LT_EOF 1>&2
16918
16919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16920 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16921 *** is disabling shared libraries support.  We urge you to upgrade GNU
16922 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16923 *** your PATH or compiler configuration so that the native linker is
16924 *** used, and then restart.
16925
16926 _LT_EOF
16927         ;;
16928         *)
16929           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16931             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16932             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16933           else
16934             ld_shlibs_GCJ=no
16935           fi
16936         ;;
16937       esac
16938       ;;
16939
16940     sunos4*)
16941       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16942       wlarc=
16943       hardcode_direct_GCJ=yes
16944       hardcode_shlibpath_var_GCJ=no
16945       ;;
16946
16947     *)
16948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16949         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16950         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16951       else
16952         ld_shlibs_GCJ=no
16953       fi
16954       ;;
16955     esac
16956
16957     if test "$ld_shlibs_GCJ" = no; then
16958       runpath_var=
16959       hardcode_libdir_flag_spec_GCJ=
16960       export_dynamic_flag_spec_GCJ=
16961       whole_archive_flag_spec_GCJ=
16962     fi
16963   else
16964     # PORTME fill in a description of your system's linker (not GNU ld)
16965     case $host_os in
16966     aix3*)
16967       allow_undefined_flag_GCJ=unsupported
16968       always_export_symbols_GCJ=yes
16969       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'
16970       # Note: this linker hardcodes the directories in LIBPATH if there
16971       # are no directories specified by -L.
16972       hardcode_minus_L_GCJ=yes
16973       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16974         # Neither direct hardcoding nor static linking is supported with a
16975         # broken collect2.
16976         hardcode_direct_GCJ=unsupported
16977       fi
16978       ;;
16979
16980     aix4* | aix5*)
16981       if test "$host_cpu" = ia64; then
16982         # On IA64, the linker does run time linking by default, so we don't
16983         # have to do anything special.
16984         aix_use_runtimelinking=no
16985         exp_sym_flag='-Bexport'
16986         no_entry_flag=""
16987       else
16988         # If we're using GNU nm, then we don't want the "-C" option.
16989         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16990         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16991           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'
16992         else
16993           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'
16994         fi
16995         aix_use_runtimelinking=no
16996
16997         # Test if we are trying to use run time linking or normal
16998         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16999         # need to do runtime linking.
17000         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17001           for ld_flag in $LDFLAGS; do
17002           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17003             aix_use_runtimelinking=yes
17004             break
17005           fi
17006           done
17007           ;;
17008         esac
17009
17010         exp_sym_flag='-bexport'
17011         no_entry_flag='-bnoentry'
17012       fi
17013
17014       # When large executables or shared objects are built, AIX ld can
17015       # have problems creating the table of contents.  If linking a library
17016       # or program results in "error TOC overflow" add -mminimal-toc to
17017       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17018       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17019
17020       archive_cmds_GCJ=''
17021       hardcode_direct_GCJ=yes
17022       hardcode_libdir_separator_GCJ=':'
17023       link_all_deplibs_GCJ=yes
17024
17025       if test "$GCC" = yes; then
17026         case $host_os in aix4.[012]|aix4.[012].*)
17027         # We only want to do this on AIX 4.2 and lower, the check
17028         # below for broken collect2 doesn't work under 4.3+
17029           collect2name=`${CC} -print-prog-name=collect2`
17030           if test -f "$collect2name" && \
17031            strings "$collect2name" | grep resolve_lib_name >/dev/null
17032           then
17033           # We have reworked collect2
17034           hardcode_direct_GCJ=yes
17035           else
17036           # We have old collect2
17037           hardcode_direct_GCJ=unsupported
17038           # It fails to find uninstalled libraries when the uninstalled
17039           # path is not listed in the libpath.  Setting hardcode_minus_L
17040           # to unsupported forces relinking
17041           hardcode_minus_L_GCJ=yes
17042           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17043           hardcode_libdir_separator_GCJ=
17044           fi
17045           ;;
17046         esac
17047         shared_flag='-shared'
17048         if test "$aix_use_runtimelinking" = yes; then
17049           shared_flag="$shared_flag "'${wl}-G'
17050         fi
17051       else
17052         # not using gcc
17053         if test "$host_cpu" = ia64; then
17054         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17055         # chokes on -Wl,-G. The following line is correct:
17056           shared_flag='-G'
17057         else
17058           if test "$aix_use_runtimelinking" = yes; then
17059             shared_flag='${wl}-G'
17060           else
17061             shared_flag='${wl}-bM:SRE'
17062           fi
17063         fi
17064       fi
17065
17066       # It seems that -bexpall does not export symbols beginning with
17067       # underscore (_), so it is better to generate a list of symbols to export.
17068       always_export_symbols_GCJ=yes
17069       if test "$aix_use_runtimelinking" = yes; then
17070         # Warning - without using the other runtime loading flags (-brtl),
17071         # -berok will link without error, but may produce a broken library.
17072         allow_undefined_flag_GCJ='-berok'
17073        # Determine the default libpath from the value encoded in an empty executable.
17074        cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080
17081 int
17082 main ()
17083 {
17084
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_link") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } && {
17103          test -z "$ac_c_werror_flag" ||
17104          test ! -s conftest.err
17105        } && test -s conftest$ac_exeext &&
17106        $as_test_x conftest$ac_exeext; then
17107
17108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17109 }'`
17110 # Check for a 64-bit object if we didn't find anything.
17111 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; }
17112 }'`; fi
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121       conftest$ac_exeext conftest.$ac_ext
17122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17123
17124        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17125         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"
17126        else
17127         if test "$host_cpu" = ia64; then
17128           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17129           allow_undefined_flag_GCJ="-z nodefs"
17130           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"
17131         else
17132          # Determine the default libpath from the value encoded in an empty executable.
17133          cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h.  */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h.  */
17139
17140 int
17141 main ()
17142 {
17143
17144   ;
17145   return 0;
17146 }
17147 _ACEOF
17148 rm -f conftest.$ac_objext conftest$ac_exeext
17149 if { (ac_try="$ac_link"
17150 case "(($ac_try" in
17151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152   *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155   (eval "$ac_link") 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } && {
17162          test -z "$ac_c_werror_flag" ||
17163          test ! -s conftest.err
17164        } && test -s conftest$ac_exeext &&
17165        $as_test_x conftest$ac_exeext; then
17166
17167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17168 }'`
17169 # Check for a 64-bit object if we didn't find anything.
17170 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; }
17171 }'`; fi
17172 else
17173   echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176
17177 fi
17178
17179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17180       conftest$ac_exeext conftest.$ac_ext
17181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17182
17183          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17184           # Warning - without using the other run time loading flags,
17185           # -berok will link without error, but may produce a broken library.
17186           no_undefined_flag_GCJ=' ${wl}-bernotok'
17187           allow_undefined_flag_GCJ=' ${wl}-berok'
17188           # Exported symbols can be pulled into shared objects from archives
17189           whole_archive_flag_spec_GCJ='$convenience'
17190           archive_cmds_need_lc_GCJ=yes
17191           # This is similar to how AIX traditionally builds its shared libraries.
17192           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'
17193         fi
17194       fi
17195       ;;
17196
17197     amigaos*)
17198       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)'
17199       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17200       hardcode_minus_L_GCJ=yes
17201       # see comment about different semantics on the GNU ld section
17202       ld_shlibs_GCJ=no
17203       ;;
17204
17205     bsdi[45]*)
17206       export_dynamic_flag_spec_GCJ=-rdynamic
17207       ;;
17208
17209     cygwin* | mingw* | pw32*)
17210       # When not using gcc, we currently assume that we are using
17211       # Microsoft Visual C++.
17212       # hardcode_libdir_flag_spec is actually meaningless, as there is
17213       # no search path for DLLs.
17214       hardcode_libdir_flag_spec_GCJ=' '
17215       allow_undefined_flag_GCJ=unsupported
17216       # Tell ltmain to make .lib files, not .a files.
17217       libext=lib
17218       # Tell ltmain to make .dll files, not .so files.
17219       shrext_cmds=".dll"
17220       # FIXME: Setting linknames here is a bad hack.
17221       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17222       # The linker will automatically build a .lib file if we build a DLL.
17223       old_archive_From_new_cmds_GCJ='true'
17224       # FIXME: Should let the user specify the lib program.
17225       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17226       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17227       enable_shared_with_static_runtimes_GCJ=yes
17228       ;;
17229
17230     darwin* | rhapsody*)
17231       case $host_os in
17232         rhapsody* | darwin1.[012])
17233          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17234          ;;
17235        *) # Darwin 1.3 on
17236          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17237            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17238          else
17239            case ${MACOSX_DEPLOYMENT_TARGET} in
17240              10.[012])
17241                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17242                ;;
17243              10.*)
17244                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17245                ;;
17246            esac
17247          fi
17248          ;;
17249       esac
17250       archive_cmds_need_lc_GCJ=no
17251       hardcode_direct_GCJ=no
17252       hardcode_automatic_GCJ=yes
17253       hardcode_shlibpath_var_GCJ=unsupported
17254       whole_archive_flag_spec_GCJ=''
17255       link_all_deplibs_GCJ=yes
17256     if test "$GCC" = yes ; then
17257         output_verbose_link_cmd='echo'
17258         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17259       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17260       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17261       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}'
17262       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}'
17263     else
17264       case $cc_basename in
17265         xlc*)
17266          output_verbose_link_cmd='echo'
17267          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17268          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17269           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17270          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}'
17271           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}'
17272           ;;
17273        *)
17274          ld_shlibs_GCJ=no
17275           ;;
17276       esac
17277     fi
17278       ;;
17279
17280     dgux*)
17281       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17282       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17283       hardcode_shlibpath_var_GCJ=no
17284       ;;
17285
17286     freebsd1*)
17287       ld_shlibs_GCJ=no
17288       ;;
17289
17290     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17291     # support.  Future versions do this automatically, but an explicit c++rt0.o
17292     # does not break anything, and helps significantly (at the cost of a little
17293     # extra space).
17294     freebsd2.2*)
17295       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17296       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17297       hardcode_direct_GCJ=yes
17298       hardcode_shlibpath_var_GCJ=no
17299       ;;
17300
17301     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17302     freebsd2*)
17303       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17304       hardcode_direct_GCJ=yes
17305       hardcode_minus_L_GCJ=yes
17306       hardcode_shlibpath_var_GCJ=no
17307       ;;
17308
17309     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17310     freebsd* | dragonfly*)
17311       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17312       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17313       hardcode_direct_GCJ=yes
17314       hardcode_shlibpath_var_GCJ=no
17315       ;;
17316
17317     hpux9*)
17318       if test "$GCC" = yes; then
17319         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'
17320       else
17321         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'
17322       fi
17323       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17324       hardcode_libdir_separator_GCJ=:
17325       hardcode_direct_GCJ=yes
17326
17327       # hardcode_minus_L: Not really in the search PATH,
17328       # but as the default location of the library.
17329       hardcode_minus_L_GCJ=yes
17330       export_dynamic_flag_spec_GCJ='${wl}-E'
17331       ;;
17332
17333     hpux10*)
17334       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17335         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17336       else
17337         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17338       fi
17339       if test "$with_gnu_ld" = no; then
17340         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17341         hardcode_libdir_separator_GCJ=:
17342
17343         hardcode_direct_GCJ=yes
17344         export_dynamic_flag_spec_GCJ='${wl}-E'
17345
17346         # hardcode_minus_L: Not really in the search PATH,
17347         # but as the default location of the library.
17348         hardcode_minus_L_GCJ=yes
17349       fi
17350       ;;
17351
17352     hpux11*)
17353       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17354         case $host_cpu in
17355         hppa*64*)
17356           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357           ;;
17358         ia64*)
17359           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17360           ;;
17361         *)
17362           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17363           ;;
17364         esac
17365       else
17366         case $host_cpu in
17367         hppa*64*)
17368           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17369           ;;
17370         ia64*)
17371           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17372           ;;
17373         *)
17374           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17375           ;;
17376         esac
17377       fi
17378       if test "$with_gnu_ld" = no; then
17379         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17380         hardcode_libdir_separator_GCJ=:
17381
17382         case $host_cpu in
17383         hppa*64*|ia64*)
17384           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17385           hardcode_direct_GCJ=no
17386           hardcode_shlibpath_var_GCJ=no
17387           ;;
17388         *)
17389           hardcode_direct_GCJ=yes
17390           export_dynamic_flag_spec_GCJ='${wl}-E'
17391
17392           # hardcode_minus_L: Not really in the search PATH,
17393           # but as the default location of the library.
17394           hardcode_minus_L_GCJ=yes
17395           ;;
17396         esac
17397       fi
17398       ;;
17399
17400     irix5* | irix6* | nonstopux*)
17401       if test "$GCC" = yes; then
17402         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'
17403       else
17404         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'
17405         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17406       fi
17407       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17408       hardcode_libdir_separator_GCJ=:
17409       link_all_deplibs_GCJ=yes
17410       ;;
17411
17412     netbsd* | netbsdelf*-gnu)
17413       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17414         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17415       else
17416         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17417       fi
17418       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17419       hardcode_direct_GCJ=yes
17420       hardcode_shlibpath_var_GCJ=no
17421       ;;
17422
17423     newsos6)
17424       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17425       hardcode_direct_GCJ=yes
17426       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17427       hardcode_libdir_separator_GCJ=:
17428       hardcode_shlibpath_var_GCJ=no
17429       ;;
17430
17431     openbsd*)
17432       hardcode_direct_GCJ=yes
17433       hardcode_shlibpath_var_GCJ=no
17434       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17435         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17436         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17437         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17438         export_dynamic_flag_spec_GCJ='${wl}-E'
17439       else
17440        case $host_os in
17441          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17442            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17443            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17444            ;;
17445          *)
17446            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17447            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17448            ;;
17449        esac
17450       fi
17451       ;;
17452
17453     os2*)
17454       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455       hardcode_minus_L_GCJ=yes
17456       allow_undefined_flag_GCJ=unsupported
17457       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'
17458       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17459       ;;
17460
17461     osf3*)
17462       if test "$GCC" = yes; then
17463         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17464         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'
17465       else
17466         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17467         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'
17468       fi
17469       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17470       hardcode_libdir_separator_GCJ=:
17471       ;;
17472
17473     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17474       if test "$GCC" = yes; then
17475         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17476         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'
17477         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17478       else
17479         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17480         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'
17481         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~
17482         $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'
17483
17484         # Both c and cxx compiler support -rpath directly
17485         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17486       fi
17487       hardcode_libdir_separator_GCJ=:
17488       ;;
17489
17490     solaris*)
17491       no_undefined_flag_GCJ=' -z text'
17492       if test "$GCC" = yes; then
17493         wlarc='${wl}'
17494         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17495         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17496           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17497       else
17498         wlarc=''
17499         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17501         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17502       fi
17503       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17504       hardcode_shlibpath_var_GCJ=no
17505       case $host_os in
17506       solaris2.[0-5] | solaris2.[0-5].*) ;;
17507       *)
17508         # The compiler driver will combine linker options so we
17509         # cannot just pass the convience library names through
17510         # without $wl, iff we do not link with $LD.
17511         # Luckily, gcc supports the same syntax we need for Sun Studio.
17512         # Supported since Solaris 2.6 (maybe 2.5.1?)
17513         case $wlarc in
17514         '')
17515           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17516         *)
17517           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' ;;
17518         esac ;;
17519       esac
17520       link_all_deplibs_GCJ=yes
17521       ;;
17522
17523     sunos4*)
17524       if test "x$host_vendor" = xsequent; then
17525         # Use $CC to link under sequent, because it throws in some extra .o
17526         # files that make .init and .fini sections work.
17527         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17528       else
17529         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17530       fi
17531       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532       hardcode_direct_GCJ=yes
17533       hardcode_minus_L_GCJ=yes
17534       hardcode_shlibpath_var_GCJ=no
17535       ;;
17536
17537     sysv4)
17538       case $host_vendor in
17539         sni)
17540           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541           hardcode_direct_GCJ=yes # is this really true???
17542         ;;
17543         siemens)
17544           ## LD is ld it makes a PLAMLIB
17545           ## CC just makes a GrossModule.
17546           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17547           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17548           hardcode_direct_GCJ=no
17549         ;;
17550         motorola)
17551           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17553         ;;
17554       esac
17555       runpath_var='LD_RUN_PATH'
17556       hardcode_shlibpath_var_GCJ=no
17557       ;;
17558
17559     sysv4.3*)
17560       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17561       hardcode_shlibpath_var_GCJ=no
17562       export_dynamic_flag_spec_GCJ='-Bexport'
17563       ;;
17564
17565     sysv4*MP*)
17566       if test -d /usr/nec; then
17567         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568         hardcode_shlibpath_var_GCJ=no
17569         runpath_var=LD_RUN_PATH
17570         hardcode_runpath_var=yes
17571         ld_shlibs_GCJ=yes
17572       fi
17573       ;;
17574
17575     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17576       no_undefined_flag_GCJ='${wl}-z,text'
17577       archive_cmds_need_lc_GCJ=no
17578       hardcode_shlibpath_var_GCJ=no
17579       runpath_var='LD_RUN_PATH'
17580
17581       if test "$GCC" = yes; then
17582         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17584       else
17585         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17587       fi
17588       ;;
17589
17590     sysv5* | sco3.2v5* | sco5v6*)
17591       # Note: We can NOT use -z defs as we might desire, because we do not
17592       # link with -lc, and that would cause any symbols used from libc to
17593       # always be unresolved, which means just about no library would
17594       # ever link correctly.  If we're not using GNU ld we use -z text
17595       # though, which does catch some bad symbols but isn't as heavy-handed
17596       # as -z defs.
17597       no_undefined_flag_GCJ='${wl}-z,text'
17598       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17599       archive_cmds_need_lc_GCJ=no
17600       hardcode_shlibpath_var_GCJ=no
17601       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17602       hardcode_libdir_separator_GCJ=':'
17603       link_all_deplibs_GCJ=yes
17604       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17605       runpath_var='LD_RUN_PATH'
17606
17607       if test "$GCC" = yes; then
17608         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17609         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17610       else
17611         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613       fi
17614       ;;
17615
17616     uts4*)
17617       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619       hardcode_shlibpath_var_GCJ=no
17620       ;;
17621
17622     *)
17623       ld_shlibs_GCJ=no
17624       ;;
17625     esac
17626   fi
17627
17628 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17629 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17630 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17631
17632 #
17633 # Do we need to explicitly link libc?
17634 #
17635 case "x$archive_cmds_need_lc_GCJ" in
17636 x|xyes)
17637   # Assume -lc should be added
17638   archive_cmds_need_lc_GCJ=yes
17639
17640   if test "$enable_shared" = yes && test "$GCC" = yes; then
17641     case $archive_cmds_GCJ in
17642     *'~'*)
17643       # FIXME: we may have to deal with multi-command sequences.
17644       ;;
17645     '$CC '*)
17646       # Test whether the compiler implicitly links with -lc since on some
17647       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17648       # to ld, don't add -lc before -lgcc.
17649       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17651       $rm conftest*
17652       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17653
17654       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655   (eval $ac_compile) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } 2>conftest.err; then
17659         soname=conftest
17660         lib=conftest
17661         libobjs=conftest.$ac_objext
17662         deplibs=
17663         wl=$lt_prog_compiler_wl_GCJ
17664         pic_flag=$lt_prog_compiler_pic_GCJ
17665         compiler_flags=-v
17666         linker_flags=-v
17667         verstring=
17668         output_objdir=.
17669         libname=conftest
17670         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17671         allow_undefined_flag_GCJ=
17672         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17673   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }
17677         then
17678           archive_cmds_need_lc_GCJ=no
17679         else
17680           archive_cmds_need_lc_GCJ=yes
17681         fi
17682         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17683       else
17684         cat conftest.err 1>&5
17685       fi
17686       $rm conftest*
17687       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17688 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17689       ;;
17690     esac
17691   fi
17692   ;;
17693 esac
17694
17695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17697 library_names_spec=
17698 libname_spec='lib$name'
17699 soname_spec=
17700 shrext_cmds=".so"
17701 postinstall_cmds=
17702 postuninstall_cmds=
17703 finish_cmds=
17704 finish_eval=
17705 shlibpath_var=
17706 shlibpath_overrides_runpath=unknown
17707 version_type=none
17708 dynamic_linker="$host_os ld.so"
17709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17710 if test "$GCC" = yes; then
17711   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17712   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17713     # if the path contains ";" then we assume it to be the separator
17714     # otherwise default to the standard path separator (i.e. ":") - it is
17715     # assumed that no part of a normal pathname contains ";" but that should
17716     # okay in the real world where ";" in dirpaths is itself problematic.
17717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17718   else
17719     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17720   fi
17721 else
17722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17723 fi
17724 need_lib_prefix=unknown
17725 hardcode_into_libs=no
17726
17727 # when you set need_version to no, make sure it does not cause -set_version
17728 # flags to be left without arguments
17729 need_version=unknown
17730
17731 case $host_os in
17732 aix3*)
17733   version_type=linux
17734   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17735   shlibpath_var=LIBPATH
17736
17737   # AIX 3 has no versioning support, so we append a major version to the name.
17738   soname_spec='${libname}${release}${shared_ext}$major'
17739   ;;
17740
17741 aix4* | aix5*)
17742   version_type=linux
17743   need_lib_prefix=no
17744   need_version=no
17745   hardcode_into_libs=yes
17746   if test "$host_cpu" = ia64; then
17747     # AIX 5 supports IA64
17748     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17749     shlibpath_var=LD_LIBRARY_PATH
17750   else
17751     # With GCC up to 2.95.x, collect2 would create an import file
17752     # for dependence libraries.  The import file would start with
17753     # the line `#! .'.  This would cause the generated library to
17754     # depend on `.', always an invalid library.  This was fixed in
17755     # development snapshots of GCC prior to 3.0.
17756     case $host_os in
17757       aix4 | aix4.[01] | aix4.[01].*)
17758       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17759            echo ' yes '
17760            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17761         :
17762       else
17763         can_build_shared=no
17764       fi
17765       ;;
17766     esac
17767     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17768     # soname into executable. Probably we can add versioning support to
17769     # collect2, so additional links can be useful in future.
17770     if test "$aix_use_runtimelinking" = yes; then
17771       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17772       # instead of lib<name>.a to let people know that these are not
17773       # typical AIX shared libraries.
17774       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17775     else
17776       # We preserve .a as extension for shared libraries through AIX4.2
17777       # and later when we are not doing run time linking.
17778       library_names_spec='${libname}${release}.a $libname.a'
17779       soname_spec='${libname}${release}${shared_ext}$major'
17780     fi
17781     shlibpath_var=LIBPATH
17782   fi
17783   ;;
17784
17785 amigaos*)
17786   library_names_spec='$libname.ixlibrary $libname.a'
17787   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17788   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'
17789   ;;
17790
17791 beos*)
17792   library_names_spec='${libname}${shared_ext}'
17793   dynamic_linker="$host_os ld.so"
17794   shlibpath_var=LIBRARY_PATH
17795   ;;
17796
17797 bsdi[45]*)
17798   version_type=linux
17799   need_version=no
17800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801   soname_spec='${libname}${release}${shared_ext}$major'
17802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17803   shlibpath_var=LD_LIBRARY_PATH
17804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17806   # the default ld.so.conf also contains /usr/contrib/lib and
17807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17808   # libtool to hard-code these into programs
17809   ;;
17810
17811 cygwin* | mingw* | pw32*)
17812   version_type=windows
17813   shrext_cmds=".dll"
17814   need_version=no
17815   need_lib_prefix=no
17816
17817   case $GCC,$host_os in
17818   yes,cygwin* | yes,mingw* | yes,pw32*)
17819     library_names_spec='$libname.dll.a'
17820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17821     postinstall_cmds='base_file=`basename \${file}`~
17822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17823       dldir=$destdir/`dirname \$dlpath`~
17824       test -d \$dldir || mkdir -p \$dldir~
17825       $install_prog $dir/$dlname \$dldir/$dlname~
17826       chmod a+x \$dldir/$dlname'
17827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17828       dlpath=$dir/\$dldll~
17829        $rm \$dlpath'
17830     shlibpath_overrides_runpath=yes
17831
17832     case $host_os in
17833     cygwin*)
17834       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17835       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17836       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17837       ;;
17838     mingw*)
17839       # MinGW DLLs use traditional 'lib' prefix
17840       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17841       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17842       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17843         # It is most probably a Windows format PATH printed by
17844         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17845         # path with ; separators, and with drive letters. We can handle the
17846         # drive letters (cygwin fileutils understands them), so leave them,
17847         # especially as we might pass files found there to a mingw objdump,
17848         # which wouldn't understand a cygwinified path. Ahh.
17849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17850       else
17851         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17852       fi
17853       ;;
17854     pw32*)
17855       # pw32 DLLs use 'pw' prefix rather than 'lib'
17856       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17857       ;;
17858     esac
17859     ;;
17860
17861   *)
17862     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17863     ;;
17864   esac
17865   dynamic_linker='Win32 ld.exe'
17866   # FIXME: first we should search . and the directory the executable is in
17867   shlibpath_var=PATH
17868   ;;
17869
17870 darwin* | rhapsody*)
17871   dynamic_linker="$host_os dyld"
17872   version_type=darwin
17873   need_lib_prefix=no
17874   need_version=no
17875   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17876   soname_spec='${libname}${release}${major}$shared_ext'
17877   shlibpath_overrides_runpath=yes
17878   shlibpath_var=DYLD_LIBRARY_PATH
17879   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17880   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17881   if test "$GCC" = yes; then
17882     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"`
17883   else
17884     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17885   fi
17886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17887   ;;
17888
17889 dgux*)
17890   version_type=linux
17891   need_lib_prefix=no
17892   need_version=no
17893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17894   soname_spec='${libname}${release}${shared_ext}$major'
17895   shlibpath_var=LD_LIBRARY_PATH
17896   ;;
17897
17898 freebsd1*)
17899   dynamic_linker=no
17900   ;;
17901
17902 freebsd* | dragonfly*)
17903   # DragonFly does not have aout.  When/if they implement a new
17904   # versioning mechanism, adjust this.
17905   if test -x /usr/bin/objformat; then
17906     objformat=`/usr/bin/objformat`
17907   else
17908     case $host_os in
17909     freebsd[123]*) objformat=aout ;;
17910     *) objformat=elf ;;
17911     esac
17912   fi
17913   version_type=freebsd-$objformat
17914   case $version_type in
17915     freebsd-elf*)
17916       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17917       need_version=no
17918       need_lib_prefix=no
17919       ;;
17920     freebsd-*)
17921       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17922       need_version=yes
17923       ;;
17924   esac
17925   shlibpath_var=LD_LIBRARY_PATH
17926   case $host_os in
17927   freebsd2*)
17928     shlibpath_overrides_runpath=yes
17929     ;;
17930   freebsd3.[01]* | freebsdelf3.[01]*)
17931     shlibpath_overrides_runpath=yes
17932     hardcode_into_libs=yes
17933     ;;
17934   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17935   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17936     shlibpath_overrides_runpath=no
17937     hardcode_into_libs=yes
17938     ;;
17939   freebsd*) # from 4.6 on
17940     shlibpath_overrides_runpath=yes
17941     hardcode_into_libs=yes
17942     ;;
17943   esac
17944   ;;
17945
17946 gnu*)
17947   version_type=linux
17948   need_lib_prefix=no
17949   need_version=no
17950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17951   soname_spec='${libname}${release}${shared_ext}$major'
17952   shlibpath_var=LD_LIBRARY_PATH
17953   hardcode_into_libs=yes
17954   ;;
17955
17956 hpux9* | hpux10* | hpux11*)
17957   # Give a soname corresponding to the major version so that dld.sl refuses to
17958   # link against other versions.
17959   version_type=sunos
17960   need_lib_prefix=no
17961   need_version=no
17962   case $host_cpu in
17963   ia64*)
17964     shrext_cmds='.so'
17965     hardcode_into_libs=yes
17966     dynamic_linker="$host_os dld.so"
17967     shlibpath_var=LD_LIBRARY_PATH
17968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17970     soname_spec='${libname}${release}${shared_ext}$major'
17971     if test "X$HPUX_IA64_MODE" = X32; then
17972       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17973     else
17974       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17975     fi
17976     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17977     ;;
17978    hppa*64*)
17979      shrext_cmds='.sl'
17980      hardcode_into_libs=yes
17981      dynamic_linker="$host_os dld.sl"
17982      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17983      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985      soname_spec='${libname}${release}${shared_ext}$major'
17986      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17987      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17988      ;;
17989    *)
17990     shrext_cmds='.sl'
17991     dynamic_linker="$host_os dld.sl"
17992     shlibpath_var=SHLIB_PATH
17993     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995     soname_spec='${libname}${release}${shared_ext}$major'
17996     ;;
17997   esac
17998   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17999   postinstall_cmds='chmod 555 $lib'
18000   ;;
18001
18002 interix3*)
18003   version_type=linux
18004   need_lib_prefix=no
18005   need_version=no
18006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18007   soname_spec='${libname}${release}${shared_ext}$major'
18008   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18009   shlibpath_var=LD_LIBRARY_PATH
18010   shlibpath_overrides_runpath=no
18011   hardcode_into_libs=yes
18012   ;;
18013
18014 irix5* | irix6* | nonstopux*)
18015   case $host_os in
18016     nonstopux*) version_type=nonstopux ;;
18017     *)
18018         if test "$lt_cv_prog_gnu_ld" = yes; then
18019                 version_type=linux
18020         else
18021                 version_type=irix
18022         fi ;;
18023   esac
18024   need_lib_prefix=no
18025   need_version=no
18026   soname_spec='${libname}${release}${shared_ext}$major'
18027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18028   case $host_os in
18029   irix5* | nonstopux*)
18030     libsuff= shlibsuff=
18031     ;;
18032   *)
18033     case $LD in # libtool.m4 will add one of these switches to LD
18034     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18035       libsuff= shlibsuff= libmagic=32-bit;;
18036     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18037       libsuff=32 shlibsuff=N32 libmagic=N32;;
18038     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18039       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18040     *) libsuff= shlibsuff= libmagic=never-match;;
18041     esac
18042     ;;
18043   esac
18044   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18045   shlibpath_overrides_runpath=no
18046   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18047   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18048   hardcode_into_libs=yes
18049   ;;
18050
18051 # No shared lib support for Linux oldld, aout, or coff.
18052 linux*oldld* | linux*aout* | linux*coff*)
18053   dynamic_linker=no
18054   ;;
18055
18056 # This must be Linux ELF.
18057 linux* | k*bsd*-gnu)
18058   version_type=linux
18059   need_lib_prefix=no
18060   need_version=no
18061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062   soname_spec='${libname}${release}${shared_ext}$major'
18063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18064   shlibpath_var=LD_LIBRARY_PATH
18065   shlibpath_overrides_runpath=no
18066   # This implies no fast_install, which is unacceptable.
18067   # Some rework will be needed to allow for fast_install
18068   # before this can be enabled.
18069   hardcode_into_libs=yes
18070
18071   # Append ld.so.conf contents to the search path
18072   if test -f /etc/ld.so.conf; then
18073     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' ' '`
18074     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18075   fi
18076
18077   # We used to test for /lib/ld.so.1 and disable shared libraries on
18078   # powerpc, because MkLinux only supported shared libraries with the
18079   # GNU dynamic linker.  Since this was broken with cross compilers,
18080   # most powerpc-linux boxes support dynamic linking these days and
18081   # people can always --disable-shared, the test was removed, and we
18082   # assume the GNU/Linux dynamic linker is in use.
18083   dynamic_linker='GNU/Linux ld.so'
18084   ;;
18085
18086 netbsdelf*-gnu)
18087   version_type=linux
18088   need_lib_prefix=no
18089   need_version=no
18090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18091   soname_spec='${libname}${release}${shared_ext}$major'
18092   shlibpath_var=LD_LIBRARY_PATH
18093   shlibpath_overrides_runpath=no
18094   hardcode_into_libs=yes
18095   dynamic_linker='NetBSD ld.elf_so'
18096   ;;
18097
18098 netbsd*)
18099   version_type=sunos
18100   need_lib_prefix=no
18101   need_version=no
18102   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18104     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18105     dynamic_linker='NetBSD (a.out) ld.so'
18106   else
18107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108     soname_spec='${libname}${release}${shared_ext}$major'
18109     dynamic_linker='NetBSD ld.elf_so'
18110   fi
18111   shlibpath_var=LD_LIBRARY_PATH
18112   shlibpath_overrides_runpath=yes
18113   hardcode_into_libs=yes
18114   ;;
18115
18116 newsos6)
18117   version_type=linux
18118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18119   shlibpath_var=LD_LIBRARY_PATH
18120   shlibpath_overrides_runpath=yes
18121   ;;
18122
18123 nto-qnx*)
18124   version_type=linux
18125   need_lib_prefix=no
18126   need_version=no
18127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128   soname_spec='${libname}${release}${shared_ext}$major'
18129   shlibpath_var=LD_LIBRARY_PATH
18130   shlibpath_overrides_runpath=yes
18131   ;;
18132
18133 openbsd*)
18134   version_type=sunos
18135   sys_lib_dlsearch_path_spec="/usr/lib"
18136   need_lib_prefix=no
18137   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18138   case $host_os in
18139     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18140     *)                         need_version=no  ;;
18141   esac
18142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18144   shlibpath_var=LD_LIBRARY_PATH
18145   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18146     case $host_os in
18147       openbsd2.[89] | openbsd2.[89].*)
18148         shlibpath_overrides_runpath=no
18149         ;;
18150       *)
18151         shlibpath_overrides_runpath=yes
18152         ;;
18153       esac
18154   else
18155     shlibpath_overrides_runpath=yes
18156   fi
18157   ;;
18158
18159 os2*)
18160   libname_spec='$name'
18161   shrext_cmds=".dll"
18162   need_lib_prefix=no
18163   library_names_spec='$libname${shared_ext} $libname.a'
18164   dynamic_linker='OS/2 ld.exe'
18165   shlibpath_var=LIBPATH
18166   ;;
18167
18168 osf3* | osf4* | osf5*)
18169   version_type=osf
18170   need_lib_prefix=no
18171   need_version=no
18172   soname_spec='${libname}${release}${shared_ext}$major'
18173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174   shlibpath_var=LD_LIBRARY_PATH
18175   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18176   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18177   ;;
18178
18179 solaris*)
18180   version_type=linux
18181   need_lib_prefix=no
18182   need_version=no
18183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184   soname_spec='${libname}${release}${shared_ext}$major'
18185   shlibpath_var=LD_LIBRARY_PATH
18186   shlibpath_overrides_runpath=yes
18187   hardcode_into_libs=yes
18188   # ldd complains unless libraries are executable
18189   postinstall_cmds='chmod +x $lib'
18190   ;;
18191
18192 sunos4*)
18193   version_type=sunos
18194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18195   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18196   shlibpath_var=LD_LIBRARY_PATH
18197   shlibpath_overrides_runpath=yes
18198   if test "$with_gnu_ld" = yes; then
18199     need_lib_prefix=no
18200   fi
18201   need_version=yes
18202   ;;
18203
18204 sysv4 | sysv4.3*)
18205   version_type=linux
18206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18207   soname_spec='${libname}${release}${shared_ext}$major'
18208   shlibpath_var=LD_LIBRARY_PATH
18209   case $host_vendor in
18210     sni)
18211       shlibpath_overrides_runpath=no
18212       need_lib_prefix=no
18213       export_dynamic_flag_spec='${wl}-Blargedynsym'
18214       runpath_var=LD_RUN_PATH
18215       ;;
18216     siemens)
18217       need_lib_prefix=no
18218       ;;
18219     motorola)
18220       need_lib_prefix=no
18221       need_version=no
18222       shlibpath_overrides_runpath=no
18223       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18224       ;;
18225   esac
18226   ;;
18227
18228 sysv4*MP*)
18229   if test -d /usr/nec ;then
18230     version_type=linux
18231     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18232     soname_spec='$libname${shared_ext}.$major'
18233     shlibpath_var=LD_LIBRARY_PATH
18234   fi
18235   ;;
18236
18237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18238   version_type=freebsd-elf
18239   need_lib_prefix=no
18240   need_version=no
18241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18242   soname_spec='${libname}${release}${shared_ext}$major'
18243   shlibpath_var=LD_LIBRARY_PATH
18244   hardcode_into_libs=yes
18245   if test "$with_gnu_ld" = yes; then
18246     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18247     shlibpath_overrides_runpath=no
18248   else
18249     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18250     shlibpath_overrides_runpath=yes
18251     case $host_os in
18252       sco3.2v5*)
18253         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18254         ;;
18255     esac
18256   fi
18257   sys_lib_dlsearch_path_spec='/usr/lib'
18258   ;;
18259
18260 uts4*)
18261   version_type=linux
18262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263   soname_spec='${libname}${release}${shared_ext}$major'
18264   shlibpath_var=LD_LIBRARY_PATH
18265   ;;
18266
18267 *)
18268   dynamic_linker=no
18269   ;;
18270 esac
18271 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18272 echo "${ECHO_T}$dynamic_linker" >&6; }
18273 test "$dynamic_linker" = no && can_build_shared=no
18274
18275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18276 if test "$GCC" = yes; then
18277   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18278 fi
18279
18280 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18281 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18282 hardcode_action_GCJ=
18283 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18284    test -n "$runpath_var_GCJ" || \
18285    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18286
18287   # We can hardcode non-existant directories.
18288   if test "$hardcode_direct_GCJ" != no &&
18289      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18290      # have to relink, otherwise we might link with an installed library
18291      # when we should be linking with a yet-to-be-installed one
18292      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18293      test "$hardcode_minus_L_GCJ" != no; then
18294     # Linking always hardcodes the temporary library directory.
18295     hardcode_action_GCJ=relink
18296   else
18297     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18298     hardcode_action_GCJ=immediate
18299   fi
18300 else
18301   # We cannot hardcode anything, or else we can only hardcode existing
18302   # directories.
18303   hardcode_action_GCJ=unsupported
18304 fi
18305 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18306 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18307
18308 if test "$hardcode_action_GCJ" = relink; then
18309   # Fast installation is not supported
18310   enable_fast_install=no
18311 elif test "$shlibpath_overrides_runpath" = yes ||
18312      test "$enable_shared" = no; then
18313   # Fast installation is not necessary
18314   enable_fast_install=needless
18315 fi
18316
18317
18318 # The else clause should only fire when bootstrapping the
18319 # libtool distribution, otherwise you forgot to ship ltmain.sh
18320 # with your package, and you will get complaints that there are
18321 # no rules to generate ltmain.sh.
18322 if test -f "$ltmain"; then
18323   # See if we are running on zsh, and set the options which allow our commands through
18324   # without removal of \ escapes.
18325   if test -n "${ZSH_VERSION+set}" ; then
18326     setopt NO_GLOB_SUBST
18327   fi
18328   # Now quote all the things that may contain metacharacters while being
18329   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18330   # variables and quote the copies for generation of the libtool script.
18331   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18332     SED SHELL STRIP \
18333     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18334     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18335     deplibs_check_method reload_flag reload_cmds need_locks \
18336     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18337     lt_cv_sys_global_symbol_to_c_name_address \
18338     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18339     old_postinstall_cmds old_postuninstall_cmds \
18340     compiler_GCJ \
18341     CC_GCJ \
18342     LD_GCJ \
18343     lt_prog_compiler_wl_GCJ \
18344     lt_prog_compiler_pic_GCJ \
18345     lt_prog_compiler_static_GCJ \
18346     lt_prog_compiler_no_builtin_flag_GCJ \
18347     export_dynamic_flag_spec_GCJ \
18348     thread_safe_flag_spec_GCJ \
18349     whole_archive_flag_spec_GCJ \
18350     enable_shared_with_static_runtimes_GCJ \
18351     old_archive_cmds_GCJ \
18352     old_archive_from_new_cmds_GCJ \
18353     predep_objects_GCJ \
18354     postdep_objects_GCJ \
18355     predeps_GCJ \
18356     postdeps_GCJ \
18357     compiler_lib_search_path_GCJ \
18358     archive_cmds_GCJ \
18359     archive_expsym_cmds_GCJ \
18360     postinstall_cmds_GCJ \
18361     postuninstall_cmds_GCJ \
18362     old_archive_from_expsyms_cmds_GCJ \
18363     allow_undefined_flag_GCJ \
18364     no_undefined_flag_GCJ \
18365     export_symbols_cmds_GCJ \
18366     hardcode_libdir_flag_spec_GCJ \
18367     hardcode_libdir_flag_spec_ld_GCJ \
18368     hardcode_libdir_separator_GCJ \
18369     hardcode_automatic_GCJ \
18370     module_cmds_GCJ \
18371     module_expsym_cmds_GCJ \
18372     lt_cv_prog_compiler_c_o_GCJ \
18373     exclude_expsyms_GCJ \
18374     include_expsyms_GCJ; do
18375
18376     case $var in
18377     old_archive_cmds_GCJ | \
18378     old_archive_from_new_cmds_GCJ | \
18379     archive_cmds_GCJ | \
18380     archive_expsym_cmds_GCJ | \
18381     module_cmds_GCJ | \
18382     module_expsym_cmds_GCJ | \
18383     old_archive_from_expsyms_cmds_GCJ | \
18384     export_symbols_cmds_GCJ | \
18385     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18386     postinstall_cmds | postuninstall_cmds | \
18387     old_postinstall_cmds | old_postuninstall_cmds | \
18388     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18389       # Double-quote double-evaled strings.
18390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18391       ;;
18392     *)
18393       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18394       ;;
18395     esac
18396   done
18397
18398   case $lt_echo in
18399   *'\$0 --fallback-echo"')
18400     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18401     ;;
18402   esac
18403
18404 cfgfile="$ofile"
18405
18406   cat <<__EOF__ >> "$cfgfile"
18407 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18408
18409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18410
18411 # Shell to use when invoking shell scripts.
18412 SHELL=$lt_SHELL
18413
18414 # Whether or not to build shared libraries.
18415 build_libtool_libs=$enable_shared
18416
18417 # Whether or not to build static libraries.
18418 build_old_libs=$enable_static
18419
18420 # Whether or not to add -lc for building shared libraries.
18421 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18422
18423 # Whether or not to disallow shared libs when runtime libs are static
18424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18425
18426 # Whether or not to optimize for fast installation.
18427 fast_install=$enable_fast_install
18428
18429 # The host system.
18430 host_alias=$host_alias
18431 host=$host
18432 host_os=$host_os
18433
18434 # The build system.
18435 build_alias=$build_alias
18436 build=$build
18437 build_os=$build_os
18438
18439 # An echo program that does not interpret backslashes.
18440 echo=$lt_echo
18441
18442 # The archiver.
18443 AR=$lt_AR
18444 AR_FLAGS=$lt_AR_FLAGS
18445
18446 # A C compiler.
18447 LTCC=$lt_LTCC
18448
18449 # LTCC compiler flags.
18450 LTCFLAGS=$lt_LTCFLAGS
18451
18452 # A language-specific compiler.
18453 CC=$lt_compiler_GCJ
18454
18455 # Is the compiler the GNU C compiler?
18456 with_gcc=$GCC_GCJ
18457
18458 # An ERE matcher.
18459 EGREP=$lt_EGREP
18460
18461 # The linker used to build libraries.
18462 LD=$lt_LD_GCJ
18463
18464 # Whether we need hard or soft links.
18465 LN_S=$lt_LN_S
18466
18467 # A BSD-compatible nm program.
18468 NM=$lt_NM
18469
18470 # A symbol stripping program
18471 STRIP=$lt_STRIP
18472
18473 # Used to examine libraries when file_magic_cmd begins "file"
18474 MAGIC_CMD=$MAGIC_CMD
18475
18476 # Used on cygwin: DLL creation program.
18477 DLLTOOL="$DLLTOOL"
18478
18479 # Used on cygwin: object dumper.
18480 OBJDUMP="$OBJDUMP"
18481
18482 # Used on cygwin: assembler.
18483 AS="$AS"
18484
18485 # The name of the directory that contains temporary libtool files.
18486 objdir=$objdir
18487
18488 # How to create reloadable object files.
18489 reload_flag=$lt_reload_flag
18490 reload_cmds=$lt_reload_cmds
18491
18492 # How to pass a linker flag through the compiler.
18493 wl=$lt_lt_prog_compiler_wl_GCJ
18494
18495 # Object file suffix (normally "o").
18496 objext="$ac_objext"
18497
18498 # Old archive suffix (normally "a").
18499 libext="$libext"
18500
18501 # Shared library suffix (normally ".so").
18502 shrext_cmds='$shrext_cmds'
18503
18504 # Executable file suffix (normally "").
18505 exeext="$exeext"
18506
18507 # Additional compiler flags for building library objects.
18508 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18509 pic_mode=$pic_mode
18510
18511 # What is the maximum length of a command?
18512 max_cmd_len=$lt_cv_sys_max_cmd_len
18513
18514 # Does compiler simultaneously support -c and -o options?
18515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18516
18517 # Must we lock files when doing compilation?
18518 need_locks=$lt_need_locks
18519
18520 # Do we need the lib prefix for modules?
18521 need_lib_prefix=$need_lib_prefix
18522
18523 # Do we need a version for libraries?
18524 need_version=$need_version
18525
18526 # Whether dlopen is supported.
18527 dlopen_support=$enable_dlopen
18528
18529 # Whether dlopen of programs is supported.
18530 dlopen_self=$enable_dlopen_self
18531
18532 # Whether dlopen of statically linked programs is supported.
18533 dlopen_self_static=$enable_dlopen_self_static
18534
18535 # Compiler flag to prevent dynamic linking.
18536 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18537
18538 # Compiler flag to turn off builtin functions.
18539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18540
18541 # Compiler flag to allow reflexive dlopens.
18542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18543
18544 # Compiler flag to generate shared objects directly from archives.
18545 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18546
18547 # Compiler flag to generate thread-safe objects.
18548 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18549
18550 # Library versioning type.
18551 version_type=$version_type
18552
18553 # Format of library name prefix.
18554 libname_spec=$lt_libname_spec
18555
18556 # List of archive names.  First name is the real one, the rest are links.
18557 # The last name is the one that the linker finds with -lNAME.
18558 library_names_spec=$lt_library_names_spec
18559
18560 # The coded name of the library, if different from the real name.
18561 soname_spec=$lt_soname_spec
18562
18563 # Commands used to build and install an old-style archive.
18564 RANLIB=$lt_RANLIB
18565 old_archive_cmds=$lt_old_archive_cmds_GCJ
18566 old_postinstall_cmds=$lt_old_postinstall_cmds
18567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18568
18569 # Create an old-style archive from a shared archive.
18570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18571
18572 # Create a temporary old-style archive to link instead of a shared archive.
18573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18574
18575 # Commands used to build and install a shared archive.
18576 archive_cmds=$lt_archive_cmds_GCJ
18577 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18578 postinstall_cmds=$lt_postinstall_cmds
18579 postuninstall_cmds=$lt_postuninstall_cmds
18580
18581 # Commands used to build a loadable module (assumed same as above if empty)
18582 module_cmds=$lt_module_cmds_GCJ
18583 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18584
18585 # Commands to strip libraries.
18586 old_striplib=$lt_old_striplib
18587 striplib=$lt_striplib
18588
18589 # Dependencies to place before the objects being linked to create a
18590 # shared library.
18591 predep_objects=$lt_predep_objects_GCJ
18592
18593 # Dependencies to place after the objects being linked to create a
18594 # shared library.
18595 postdep_objects=$lt_postdep_objects_GCJ
18596
18597 # Dependencies to place before the objects being linked to create a
18598 # shared library.
18599 predeps=$lt_predeps_GCJ
18600
18601 # Dependencies to place after the objects being linked to create a
18602 # shared library.
18603 postdeps=$lt_postdeps_GCJ
18604
18605 # The library search path used internally by the compiler when linking
18606 # a shared library.
18607 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18608
18609 # Method to check whether dependent libraries are shared objects.
18610 deplibs_check_method=$lt_deplibs_check_method
18611
18612 # Command to use when deplibs_check_method == file_magic.
18613 file_magic_cmd=$lt_file_magic_cmd
18614
18615 # Flag that allows shared libraries with undefined symbols to be built.
18616 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18617
18618 # Flag that forces no undefined symbols.
18619 no_undefined_flag=$lt_no_undefined_flag_GCJ
18620
18621 # Commands used to finish a libtool library installation in a directory.
18622 finish_cmds=$lt_finish_cmds
18623
18624 # Same as above, but a single script fragment to be evaled but not shown.
18625 finish_eval=$lt_finish_eval
18626
18627 # Take the output of nm and produce a listing of raw symbols and C names.
18628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18629
18630 # Transform the output of nm in a proper C declaration
18631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18632
18633 # Transform the output of nm in a C name address pair
18634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18635
18636 # This is the shared library runtime path variable.
18637 runpath_var=$runpath_var
18638
18639 # This is the shared library path variable.
18640 shlibpath_var=$shlibpath_var
18641
18642 # Is shlibpath searched before the hard-coded library search path?
18643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18644
18645 # How to hardcode a shared library path into an executable.
18646 hardcode_action=$hardcode_action_GCJ
18647
18648 # Whether we should hardcode library paths into libraries.
18649 hardcode_into_libs=$hardcode_into_libs
18650
18651 # Flag to hardcode \$libdir into a binary during linking.
18652 # This must work even if \$libdir does not exist.
18653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18654
18655 # If ld is used when linking, flag to hardcode \$libdir into
18656 # a binary during linking. This must work even if \$libdir does
18657 # not exist.
18658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18659
18660 # Whether we need a single -rpath flag with a separated argument.
18661 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18662
18663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18664 # resulting binary.
18665 hardcode_direct=$hardcode_direct_GCJ
18666
18667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18668 # resulting binary.
18669 hardcode_minus_L=$hardcode_minus_L_GCJ
18670
18671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18672 # the resulting binary.
18673 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18674
18675 # Set to yes if building a shared library automatically hardcodes DIR into the library
18676 # and all subsequent libraries and executables linked against it.
18677 hardcode_automatic=$hardcode_automatic_GCJ
18678
18679 # Variables whose values should be saved in libtool wrapper scripts and
18680 # restored at relink time.
18681 variables_saved_for_relink="$variables_saved_for_relink"
18682
18683 # Whether libtool must link a program against all its dependency libraries.
18684 link_all_deplibs=$link_all_deplibs_GCJ
18685
18686 # Compile-time system search path for libraries
18687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18688
18689 # Run-time system search path for libraries
18690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18691
18692 # Fix the shell variable \$srcfile for the compiler.
18693 fix_srcfile_path="$fix_srcfile_path_GCJ"
18694
18695 # Set to yes if exported symbols are required.
18696 always_export_symbols=$always_export_symbols_GCJ
18697
18698 # The commands to list exported symbols.
18699 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18700
18701 # The commands to extract the exported symbol list from a shared archive.
18702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18703
18704 # Symbols that should not be listed in the preloaded symbols.
18705 exclude_expsyms=$lt_exclude_expsyms_GCJ
18706
18707 # Symbols that must always be exported.
18708 include_expsyms=$lt_include_expsyms_GCJ
18709
18710 # ### END LIBTOOL TAG CONFIG: $tagname
18711
18712 __EOF__
18713
18714
18715 else
18716   # If there is no Makefile yet, we rely on a make rule to execute
18717   # `config.status --recheck' to rerun these tests and create the
18718   # libtool script then.
18719   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18720   if test -f "$ltmain_in"; then
18721     test -f Makefile && make "$ltmain"
18722   fi
18723 fi
18724
18725
18726 ac_ext=c
18727 ac_cpp='$CPP $CPPFLAGS'
18728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18731
18732 CC="$lt_save_CC"
18733
18734         else
18735           tagname=""
18736         fi
18737         ;;
18738
18739       RC)
18740
18741
18742 # Source file extension for RC test sources.
18743 ac_ext=rc
18744
18745 # Object file extension for compiled RC test sources.
18746 objext=o
18747 objext_RC=$objext
18748
18749 # Code to be used in simple compile tests
18750 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18751
18752 # Code to be used in simple link tests
18753 lt_simple_link_test_code="$lt_simple_compile_test_code"
18754
18755 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18756
18757 # If no C compiler was specified, use CC.
18758 LTCC=${LTCC-"$CC"}
18759
18760 # If no C compiler flags were specified, use CFLAGS.
18761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18762
18763 # Allow CC to be a program name with arguments.
18764 compiler=$CC
18765
18766
18767 # save warnings/boilerplate of simple test code
18768 ac_outfile=conftest.$ac_objext
18769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18771 _lt_compiler_boilerplate=`cat conftest.err`
18772 $rm conftest*
18773
18774 ac_outfile=conftest.$ac_objext
18775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18777 _lt_linker_boilerplate=`cat conftest.err`
18778 $rm conftest*
18779
18780
18781 # Allow CC to be a program name with arguments.
18782 lt_save_CC="$CC"
18783 CC=${RC-"windres"}
18784 compiler=$CC
18785 compiler_RC=$CC
18786 for cc_temp in $compiler""; do
18787   case $cc_temp in
18788     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18789     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18790     \-*) ;;
18791     *) break;;
18792   esac
18793 done
18794 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18795
18796 lt_cv_prog_compiler_c_o_RC=yes
18797
18798 # The else clause should only fire when bootstrapping the
18799 # libtool distribution, otherwise you forgot to ship ltmain.sh
18800 # with your package, and you will get complaints that there are
18801 # no rules to generate ltmain.sh.
18802 if test -f "$ltmain"; then
18803   # See if we are running on zsh, and set the options which allow our commands through
18804   # without removal of \ escapes.
18805   if test -n "${ZSH_VERSION+set}" ; then
18806     setopt NO_GLOB_SUBST
18807   fi
18808   # Now quote all the things that may contain metacharacters while being
18809   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18810   # variables and quote the copies for generation of the libtool script.
18811   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18812     SED SHELL STRIP \
18813     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18814     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18815     deplibs_check_method reload_flag reload_cmds need_locks \
18816     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18817     lt_cv_sys_global_symbol_to_c_name_address \
18818     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18819     old_postinstall_cmds old_postuninstall_cmds \
18820     compiler_RC \
18821     CC_RC \
18822     LD_RC \
18823     lt_prog_compiler_wl_RC \
18824     lt_prog_compiler_pic_RC \
18825     lt_prog_compiler_static_RC \
18826     lt_prog_compiler_no_builtin_flag_RC \
18827     export_dynamic_flag_spec_RC \
18828     thread_safe_flag_spec_RC \
18829     whole_archive_flag_spec_RC \
18830     enable_shared_with_static_runtimes_RC \
18831     old_archive_cmds_RC \
18832     old_archive_from_new_cmds_RC \
18833     predep_objects_RC \
18834     postdep_objects_RC \
18835     predeps_RC \
18836     postdeps_RC \
18837     compiler_lib_search_path_RC \
18838     archive_cmds_RC \
18839     archive_expsym_cmds_RC \
18840     postinstall_cmds_RC \
18841     postuninstall_cmds_RC \
18842     old_archive_from_expsyms_cmds_RC \
18843     allow_undefined_flag_RC \
18844     no_undefined_flag_RC \
18845     export_symbols_cmds_RC \
18846     hardcode_libdir_flag_spec_RC \
18847     hardcode_libdir_flag_spec_ld_RC \
18848     hardcode_libdir_separator_RC \
18849     hardcode_automatic_RC \
18850     module_cmds_RC \
18851     module_expsym_cmds_RC \
18852     lt_cv_prog_compiler_c_o_RC \
18853     exclude_expsyms_RC \
18854     include_expsyms_RC; do
18855
18856     case $var in
18857     old_archive_cmds_RC | \
18858     old_archive_from_new_cmds_RC | \
18859     archive_cmds_RC | \
18860     archive_expsym_cmds_RC | \
18861     module_cmds_RC | \
18862     module_expsym_cmds_RC | \
18863     old_archive_from_expsyms_cmds_RC | \
18864     export_symbols_cmds_RC | \
18865     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866     postinstall_cmds | postuninstall_cmds | \
18867     old_postinstall_cmds | old_postuninstall_cmds | \
18868     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18869       # Double-quote double-evaled strings.
18870       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18871       ;;
18872     *)
18873       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18874       ;;
18875     esac
18876   done
18877
18878   case $lt_echo in
18879   *'\$0 --fallback-echo"')
18880     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18881     ;;
18882   esac
18883
18884 cfgfile="$ofile"
18885
18886   cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18888
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890
18891 # Shell to use when invoking shell scripts.
18892 SHELL=$lt_SHELL
18893
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18896
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18899
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_RC
18902
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18905
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18908
18909 # The host system.
18910 host_alias=$host_alias
18911 host=$host
18912 host_os=$host_os
18913
18914 # The build system.
18915 build_alias=$build_alias
18916 build=$build
18917 build_os=$build_os
18918
18919 # An echo program that does not interpret backslashes.
18920 echo=$lt_echo
18921
18922 # The archiver.
18923 AR=$lt_AR
18924 AR_FLAGS=$lt_AR_FLAGS
18925
18926 # A C compiler.
18927 LTCC=$lt_LTCC
18928
18929 # LTCC compiler flags.
18930 LTCFLAGS=$lt_LTCFLAGS
18931
18932 # A language-specific compiler.
18933 CC=$lt_compiler_RC
18934
18935 # Is the compiler the GNU C compiler?
18936 with_gcc=$GCC_RC
18937
18938 # An ERE matcher.
18939 EGREP=$lt_EGREP
18940
18941 # The linker used to build libraries.
18942 LD=$lt_LD_RC
18943
18944 # Whether we need hard or soft links.
18945 LN_S=$lt_LN_S
18946
18947 # A BSD-compatible nm program.
18948 NM=$lt_NM
18949
18950 # A symbol stripping program
18951 STRIP=$lt_STRIP
18952
18953 # Used to examine libraries when file_magic_cmd begins "file"
18954 MAGIC_CMD=$MAGIC_CMD
18955
18956 # Used on cygwin: DLL creation program.
18957 DLLTOOL="$DLLTOOL"
18958
18959 # Used on cygwin: object dumper.
18960 OBJDUMP="$OBJDUMP"
18961
18962 # Used on cygwin: assembler.
18963 AS="$AS"
18964
18965 # The name of the directory that contains temporary libtool files.
18966 objdir=$objdir
18967
18968 # How to create reloadable object files.
18969 reload_flag=$lt_reload_flag
18970 reload_cmds=$lt_reload_cmds
18971
18972 # How to pass a linker flag through the compiler.
18973 wl=$lt_lt_prog_compiler_wl_RC
18974
18975 # Object file suffix (normally "o").
18976 objext="$ac_objext"
18977
18978 # Old archive suffix (normally "a").
18979 libext="$libext"
18980
18981 # Shared library suffix (normally ".so").
18982 shrext_cmds='$shrext_cmds'
18983
18984 # Executable file suffix (normally "").
18985 exeext="$exeext"
18986
18987 # Additional compiler flags for building library objects.
18988 pic_flag=$lt_lt_prog_compiler_pic_RC
18989 pic_mode=$pic_mode
18990
18991 # What is the maximum length of a command?
18992 max_cmd_len=$lt_cv_sys_max_cmd_len
18993
18994 # Does compiler simultaneously support -c and -o options?
18995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18996
18997 # Must we lock files when doing compilation?
18998 need_locks=$lt_need_locks
18999
19000 # Do we need the lib prefix for modules?
19001 need_lib_prefix=$need_lib_prefix
19002
19003 # Do we need a version for libraries?
19004 need_version=$need_version
19005
19006 # Whether dlopen is supported.
19007 dlopen_support=$enable_dlopen
19008
19009 # Whether dlopen of programs is supported.
19010 dlopen_self=$enable_dlopen_self
19011
19012 # Whether dlopen of statically linked programs is supported.
19013 dlopen_self_static=$enable_dlopen_self_static
19014
19015 # Compiler flag to prevent dynamic linking.
19016 link_static_flag=$lt_lt_prog_compiler_static_RC
19017
19018 # Compiler flag to turn off builtin functions.
19019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19020
19021 # Compiler flag to allow reflexive dlopens.
19022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19023
19024 # Compiler flag to generate shared objects directly from archives.
19025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19026
19027 # Compiler flag to generate thread-safe objects.
19028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19029
19030 # Library versioning type.
19031 version_type=$version_type
19032
19033 # Format of library name prefix.
19034 libname_spec=$lt_libname_spec
19035
19036 # List of archive names.  First name is the real one, the rest are links.
19037 # The last name is the one that the linker finds with -lNAME.
19038 library_names_spec=$lt_library_names_spec
19039
19040 # The coded name of the library, if different from the real name.
19041 soname_spec=$lt_soname_spec
19042
19043 # Commands used to build and install an old-style archive.
19044 RANLIB=$lt_RANLIB
19045 old_archive_cmds=$lt_old_archive_cmds_RC
19046 old_postinstall_cmds=$lt_old_postinstall_cmds
19047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19048
19049 # Create an old-style archive from a shared archive.
19050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19051
19052 # Create a temporary old-style archive to link instead of a shared archive.
19053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19054
19055 # Commands used to build and install a shared archive.
19056 archive_cmds=$lt_archive_cmds_RC
19057 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19058 postinstall_cmds=$lt_postinstall_cmds
19059 postuninstall_cmds=$lt_postuninstall_cmds
19060
19061 # Commands used to build a loadable module (assumed same as above if empty)
19062 module_cmds=$lt_module_cmds_RC
19063 module_expsym_cmds=$lt_module_expsym_cmds_RC
19064
19065 # Commands to strip libraries.
19066 old_striplib=$lt_old_striplib
19067 striplib=$lt_striplib
19068
19069 # Dependencies to place before the objects being linked to create a
19070 # shared library.
19071 predep_objects=$lt_predep_objects_RC
19072
19073 # Dependencies to place after the objects being linked to create a
19074 # shared library.
19075 postdep_objects=$lt_postdep_objects_RC
19076
19077 # Dependencies to place before the objects being linked to create a
19078 # shared library.
19079 predeps=$lt_predeps_RC
19080
19081 # Dependencies to place after the objects being linked to create a
19082 # shared library.
19083 postdeps=$lt_postdeps_RC
19084
19085 # The library search path used internally by the compiler when linking
19086 # a shared library.
19087 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19088
19089 # Method to check whether dependent libraries are shared objects.
19090 deplibs_check_method=$lt_deplibs_check_method
19091
19092 # Command to use when deplibs_check_method == file_magic.
19093 file_magic_cmd=$lt_file_magic_cmd
19094
19095 # Flag that allows shared libraries with undefined symbols to be built.
19096 allow_undefined_flag=$lt_allow_undefined_flag_RC
19097
19098 # Flag that forces no undefined symbols.
19099 no_undefined_flag=$lt_no_undefined_flag_RC
19100
19101 # Commands used to finish a libtool library installation in a directory.
19102 finish_cmds=$lt_finish_cmds
19103
19104 # Same as above, but a single script fragment to be evaled but not shown.
19105 finish_eval=$lt_finish_eval
19106
19107 # Take the output of nm and produce a listing of raw symbols and C names.
19108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19109
19110 # Transform the output of nm in a proper C declaration
19111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19112
19113 # Transform the output of nm in a C name address pair
19114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19115
19116 # This is the shared library runtime path variable.
19117 runpath_var=$runpath_var
19118
19119 # This is the shared library path variable.
19120 shlibpath_var=$shlibpath_var
19121
19122 # Is shlibpath searched before the hard-coded library search path?
19123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19124
19125 # How to hardcode a shared library path into an executable.
19126 hardcode_action=$hardcode_action_RC
19127
19128 # Whether we should hardcode library paths into libraries.
19129 hardcode_into_libs=$hardcode_into_libs
19130
19131 # Flag to hardcode \$libdir into a binary during linking.
19132 # This must work even if \$libdir does not exist.
19133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19134
19135 # If ld is used when linking, flag to hardcode \$libdir into
19136 # a binary during linking. This must work even if \$libdir does
19137 # not exist.
19138 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19139
19140 # Whether we need a single -rpath flag with a separated argument.
19141 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19142
19143 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19144 # resulting binary.
19145 hardcode_direct=$hardcode_direct_RC
19146
19147 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19148 # resulting binary.
19149 hardcode_minus_L=$hardcode_minus_L_RC
19150
19151 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19152 # the resulting binary.
19153 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19154
19155 # Set to yes if building a shared library automatically hardcodes DIR into the library
19156 # and all subsequent libraries and executables linked against it.
19157 hardcode_automatic=$hardcode_automatic_RC
19158
19159 # Variables whose values should be saved in libtool wrapper scripts and
19160 # restored at relink time.
19161 variables_saved_for_relink="$variables_saved_for_relink"
19162
19163 # Whether libtool must link a program against all its dependency libraries.
19164 link_all_deplibs=$link_all_deplibs_RC
19165
19166 # Compile-time system search path for libraries
19167 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19168
19169 # Run-time system search path for libraries
19170 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19171
19172 # Fix the shell variable \$srcfile for the compiler.
19173 fix_srcfile_path="$fix_srcfile_path_RC"
19174
19175 # Set to yes if exported symbols are required.
19176 always_export_symbols=$always_export_symbols_RC
19177
19178 # The commands to list exported symbols.
19179 export_symbols_cmds=$lt_export_symbols_cmds_RC
19180
19181 # The commands to extract the exported symbol list from a shared archive.
19182 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19183
19184 # Symbols that should not be listed in the preloaded symbols.
19185 exclude_expsyms=$lt_exclude_expsyms_RC
19186
19187 # Symbols that must always be exported.
19188 include_expsyms=$lt_include_expsyms_RC
19189
19190 # ### END LIBTOOL TAG CONFIG: $tagname
19191
19192 __EOF__
19193
19194
19195 else
19196   # If there is no Makefile yet, we rely on a make rule to execute
19197   # `config.status --recheck' to rerun these tests and create the
19198   # libtool script then.
19199   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19200   if test -f "$ltmain_in"; then
19201     test -f Makefile && make "$ltmain"
19202   fi
19203 fi
19204
19205
19206 ac_ext=c
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19211
19212 CC="$lt_save_CC"
19213
19214         ;;
19215
19216       *)
19217         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19218 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19219    { (exit 1); exit 1; }; }
19220         ;;
19221       esac
19222
19223       # Append the new tag name to the list of available tags.
19224       if test -n "$tagname" ; then
19225       available_tags="$available_tags $tagname"
19226     fi
19227     fi
19228   done
19229   IFS="$lt_save_ifs"
19230
19231   # Now substitute the updated list of available tags.
19232   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19233     mv "${ofile}T" "$ofile"
19234     chmod +x "$ofile"
19235   else
19236     rm -f "${ofile}T"
19237     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19238 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19239    { (exit 1); exit 1; }; }
19240   fi
19241 fi
19242
19243
19244
19245 # This can be used to rebuild libtool when needed
19246 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19247
19248 # Always use our own libtool.
19249 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19250
19251 # Prevent multiple expansion
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275 # Checks for libraries.
19276
19277 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19278 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19279 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19280   echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282   ac_check_lib_save_LIBS=$LIBS
19283 LIBS="-lapr-1  $LIBS"
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290
19291
19292 int
19293 main ()
19294 {
19295 return main ();
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_link") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } && {
19314          test -z "$ac_c_werror_flag" ||
19315          test ! -s conftest.err
19316        } && test -s conftest$ac_exeext &&
19317        $as_test_x conftest$ac_exeext; then
19318   ac_cv_lib_apr_1_main=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323         ac_cv_lib_apr_1_main=no
19324 fi
19325
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327       conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19329 fi
19330 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19331 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19332 if test $ac_cv_lib_apr_1_main = yes; then
19333   cat >>confdefs.h <<_ACEOF
19334 #define HAVE_LIBAPR_1 1
19335 _ACEOF
19336
19337   LIBS="-lapr-1 $LIBS"
19338
19339 fi
19340
19341
19342
19343 # Check whether --with-apache-header was given.
19344 if test "${with_apache_header+set}" = set; then
19345   withval=$with_apache_header;
19346 fi
19347
19348 if test "x$with_apache_header" = "xyes"; then
19349     { { echo "$as_me:$LINENO: error:
19350 Please specify the --with-apache-header option. And, please specify the place of the header file.
19351
19352 " >&5
19353 echo "$as_me: error:
19354 Please specify the --with-apache-header option. And, please specify the place of the header file.
19355
19356 " >&2;}
19357    { (exit 1); exit 1; }; }
19358 fi
19359
19360
19361 # Check whether --with-apxs was given.
19362 if test "${with_apxs+set}" = set; then
19363   withval=$with_apxs;
19364 fi
19365
19366 if test "x$with_apxs" = "x" ; then
19367   APXS=""
19368 fi
19369 if test "x$with_apxs" = "xyes" ; then
19370     { { echo "$as_me:$LINENO: error:
19371 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19372 " >&5
19373 echo "$as_me: error:
19374 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19375 " >&2;}
19376    { (exit 1); exit 1; }; }
19377 fi
19378
19379
19380 # Check whether --with-apr-config was given.
19381 if test "${with_apr_config+set}" = set; then
19382   withval=$with_apr_config;
19383 fi
19384
19385 if test "x$with_apr_config" = "xyes" ; then
19386     { { echo "$as_me:$LINENO: error:
19387 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19388 " >&5
19389 echo "$as_me: error:
19390 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19391 " >&2;}
19392    { (exit 1); exit 1; }; }
19393 fi
19394
19395
19396 # Check whether --with-apu-config was given.
19397 if test "${with_apu_config+set}" = set; then
19398   withval=$with_apu_config;
19399 fi
19400
19401 if test "x$with_apu_config" = "xyes" ; then
19402     { { echo "$as_me:$LINENO: error:
19403 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19404 " >&5
19405 echo "$as_me: error:
19406 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19407 " >&2;}
19408    { (exit 1); exit 1; }; }
19409 fi
19410
19411
19412 # Check whether --with-pcre-config was given.
19413 if test "${with_pcre_config+set}" = set; then
19414   withval=$with_pcre_config;
19415 fi
19416
19417 if test "x$with_pcre_config" = "xyes" ; then
19418     { { echo "$as_me:$LINENO: error:
19419 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19420 " >&5
19421 echo "$as_me: error:
19422 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19423 " >&2;}
19424    { (exit 1); exit 1; }; }
19425 fi
19426
19427 # Check whether --enable-img-conv-f was given.
19428 if test "${enable_img_conv_f+set}" = set; then
19429   enableval=$enable_img_conv_f;
19430 fi
19431
19432 if test "x$enable_img_conv_f" = "xyes"; then
19433   QDEFS=""
19434 else
19435   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19436 fi
19437
19438
19439 # Check whether --enable-memcache-cookie was given.
19440 if test "${enable_memcache_cookie+set}" = set; then
19441   enableval=$enable_memcache_cookie;
19442 fi
19443
19444 # Check whether --enable-memcached-static was given.
19445 if test "${enable_memcached_static+set}" = set; then
19446   enableval=$enable_memcached_static;
19447 fi
19448
19449
19450 # Check whether --with-memcached-header was given.
19451 if test "${with_memcached_header+set}" = set; then
19452   withval=$with_memcached_header;
19453 fi
19454
19455
19456 # Check whether --with-memcached-lib-dir was given.
19457 if test "${with_memcached_lib_dir+set}" = set; then
19458   withval=$with_memcached_lib_dir;
19459 fi
19460
19461 if test "x$enable_memcache_cookie" = "xyes" ; then
19462         if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
19463     { { echo "$as_me:$LINENO: error:
19464 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19465 " >&5
19466 echo "$as_me: error:
19467 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19468 " >&2;}
19469    { (exit 1); exit 1; }; }
19470   fi
19471   if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
19472     { { echo "$as_me:$LINENO: error:
19473 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19474 " >&5
19475 echo "$as_me: error:
19476 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19477 " >&2;}
19478    { (exit 1); exit 1; }; }
19479   fi
19480   if test "x$enable_memcached_static" = "xyes" ; then
19481     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19482     MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
19483   else
19484     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19485     MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
19486   fi
19487 else
19488         MEMCACHE_COOKIE_DEFS=""
19489   MEMCACHE_COOKIE_LIBS=""
19490 fi
19491 # Check whether --enable-mysql-cookie was given.
19492 if test "${enable_mysql_cookie+set}" = set; then
19493   enableval=$enable_mysql_cookie;
19494 fi
19495
19496
19497 # Check whether --with-mysql-header was given.
19498 if test "${with_mysql_header+set}" = set; then
19499   withval=$with_mysql_header;
19500 fi
19501
19502
19503 # Check whether --with-mysql-lib-dir was given.
19504 if test "${with_mysql_lib_dir+set}" = set; then
19505   withval=$with_mysql_lib_dir;
19506 fi
19507
19508 if test "x$enable_mysql_cookie" = "xyes"; then
19509         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19510     { { echo "$as_me:$LINENO: error:
19511 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19512 " >&5
19513 echo "$as_me: error:
19514 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19515 " >&2;}
19516    { (exit 1); exit 1; }; }
19517   fi
19518   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19519     { { echo "$as_me:$LINENO: error:
19520 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19521 " >&5
19522 echo "$as_me: error:
19523 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19524 " >&2;}
19525    { (exit 1); exit 1; }; }
19526   fi
19527   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19528   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19529 else
19530         MYSQL_COOKIE_DEFS=""
19531   MYSQL_COOKIE_LIBS=""
19532 fi
19533
19534 # Check whether --enable-dump-log was given.
19535 if test "${enable_dump_log+set}" = set; then
19536   enableval=$enable_dump_log;
19537 fi
19538
19539 if test "x$enable_dump_log" = "xyes"; then
19540   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19541 else
19542     if test "x$enable_dump_log" != "x" ; then
19543         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19544     fi
19545 fi
19546
19547
19548 if test "x$with_apxs" = "x" ; then
19549   # Extract the first word of "apxs2", so it can be a program name with args.
19550 set dummy apxs2; ac_word=$2
19551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19553 if test "${ac_cv_path_APXS2+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556   case $APXS2 in
19557   [\\/]* | ?:[\\/]*)
19558   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19559   ;;
19560   *)
19561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19562 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19563 for as_dir in $as_dummy
19564 do
19565   IFS=$as_save_IFS
19566   test -z "$as_dir" && as_dir=.
19567   for ac_exec_ext in '' $ac_executable_extensions; do
19568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19569     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19571     break 2
19572   fi
19573 done
19574 done
19575 IFS=$as_save_IFS
19576
19577   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19578   ;;
19579 esac
19580 fi
19581 APXS2=$ac_cv_path_APXS2
19582 if test -n "$APXS2"; then
19583   { echo "$as_me:$LINENO: result: $APXS2" >&5
19584 echo "${ECHO_T}$APXS2" >&6; }
19585 else
19586   { echo "$as_me:$LINENO: result: no" >&5
19587 echo "${ECHO_T}no" >&6; }
19588 fi
19589
19590
19591   if test "x$APXS2" = "xno"; then
19592     # Extract the first word of "apxs", so it can be a program name with args.
19593 set dummy apxs; ac_word=$2
19594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19596 if test "${ac_cv_path_APXS+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599   case $APXS in
19600   [\\/]* | ?:[\\/]*)
19601   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19602   ;;
19603   *)
19604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19606 for as_dir in $as_dummy
19607 do
19608   IFS=$as_save_IFS
19609   test -z "$as_dir" && as_dir=.
19610   for ac_exec_ext in '' $ac_executable_extensions; do
19611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19612     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19614     break 2
19615   fi
19616 done
19617 done
19618 IFS=$as_save_IFS
19619
19620   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19621   ;;
19622 esac
19623 fi
19624 APXS=$ac_cv_path_APXS
19625 if test -n "$APXS"; then
19626   { echo "$as_me:$LINENO: result: $APXS" >&5
19627 echo "${ECHO_T}$APXS" >&6; }
19628 else
19629   { echo "$as_me:$LINENO: result: no" >&5
19630 echo "${ECHO_T}no" >&6; }
19631 fi
19632
19633
19634     if test "x$APXS" = "xno" ; then
19635       { { echo "$as_me:$LINENO: error: apxs not found." >&5
19636 echo "$as_me: error: apxs not found." >&2;}
19637    { (exit 1); exit 1; }; }
19638     fi
19639   else
19640     APXS="$APXS2"
19641   fi
19642 fi
19643 if test "x$with_apxs" != "x" ; then
19644   APXS=$with_apxs
19645 fi
19646
19647 # Extract the first word of "libtool", so it can be a program name with args.
19648 set dummy libtool; ac_word=$2
19649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19651 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   case $LIBTOOL in
19655   [\\/]* | ?:[\\/]*)
19656   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19657   ;;
19658   *)
19659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19660 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19661 for as_dir in $as_dummy
19662 do
19663   IFS=$as_save_IFS
19664   test -z "$as_dir" && as_dir=.
19665   for ac_exec_ext in '' $ac_executable_extensions; do
19666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19669     break 2
19670   fi
19671 done
19672 done
19673 IFS=$as_save_IFS
19674
19675   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19676   ;;
19677 esac
19678 fi
19679 LIBTOOL=$ac_cv_path_LIBTOOL
19680 if test -n "$LIBTOOL"; then
19681   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19682 echo "${ECHO_T}$LIBTOOL" >&6; }
19683 else
19684   { echo "$as_me:$LINENO: result: no" >&5
19685 echo "${ECHO_T}no" >&6; }
19686 fi
19687
19688
19689 if test "x$LIBTOOL" = "xno"; then
19690     { { echo "$as_me:$LINENO: error: libtool not found." >&5
19691 echo "$as_me: error: libtool not found." >&2;}
19692    { (exit 1); exit 1; }; }
19693 fi
19694
19695
19696 # Extract the first word of "Wand-config", so it can be a program name with args.
19697 set dummy Wand-config; ac_word=$2
19698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19700 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   case $WAND_CONFIG in
19704   [\\/]* | ?:[\\/]*)
19705   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19706   ;;
19707   *)
19708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19709 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19710 for as_dir in $as_dummy
19711 do
19712   IFS=$as_save_IFS
19713   test -z "$as_dir" && as_dir=.
19714   for ac_exec_ext in '' $ac_executable_extensions; do
19715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19716     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19718     break 2
19719   fi
19720 done
19721 done
19722 IFS=$as_save_IFS
19723
19724   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19725   ;;
19726 esac
19727 fi
19728 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19729 if test -n "$WAND_CONFIG"; then
19730   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19731 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19732 else
19733   { echo "$as_me:$LINENO: result: no" >&5
19734 echo "${ECHO_T}no" >&6; }
19735 fi
19736
19737
19738 if test "x$WAND_CONFIG" = "xno" ; then
19739     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19740 echo "$as_me: error: wand-config not found." >&2;}
19741    { (exit 1); exit 1; }; }
19742 fi
19743
19744 if test "x$with_apr_config" = "x" ; then
19745   # Extract the first word of "apr-config", so it can be a program name with args.
19746 set dummy apr-config; ac_word=$2
19747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19749 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19750   echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752   case $APR_CONFIG in
19753   [\\/]* | ?:[\\/]*)
19754   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19755   ;;
19756   *)
19757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19758 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19759 for as_dir in $as_dummy
19760 do
19761   IFS=$as_save_IFS
19762   test -z "$as_dir" && as_dir=.
19763   for ac_exec_ext in '' $ac_executable_extensions; do
19764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19765     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19767     break 2
19768   fi
19769 done
19770 done
19771 IFS=$as_save_IFS
19772
19773   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19774   ;;
19775 esac
19776 fi
19777 APR_CONFIG=$ac_cv_path_APR_CONFIG
19778 if test -n "$APR_CONFIG"; then
19779   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19780 echo "${ECHO_T}$APR_CONFIG" >&6; }
19781 else
19782   { echo "$as_me:$LINENO: result: no" >&5
19783 echo "${ECHO_T}no" >&6; }
19784 fi
19785
19786
19787   if test "x$APR_CONFIG" = "xno" ; then
19788     # Extract the first word of "apr-1-config", so it can be a program name with args.
19789 set dummy apr-1-config; ac_word=$2
19790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19792 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795   case $APR_1_CONFIG in
19796   [\\/]* | ?:[\\/]*)
19797   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19798   ;;
19799   *)
19800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19801 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19802 for as_dir in $as_dummy
19803 do
19804   IFS=$as_save_IFS
19805   test -z "$as_dir" && as_dir=.
19806   for ac_exec_ext in '' $ac_executable_extensions; do
19807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19808     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19810     break 2
19811   fi
19812 done
19813 done
19814 IFS=$as_save_IFS
19815
19816   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19817   ;;
19818 esac
19819 fi
19820 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19821 if test -n "$APR_1_CONFIG"; then
19822   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19823 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19824 else
19825   { echo "$as_me:$LINENO: result: no" >&5
19826 echo "${ECHO_T}no" >&6; }
19827 fi
19828
19829
19830     if test "x$APR_1_CONFIG" = "xno" ; then
19831       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19832 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19833    { (exit 1); exit 1; }; }
19834     else
19835       APR_CONFIG="$APR_1_CONFIG"
19836     fi
19837   fi
19838 fi
19839 if test "x$with_apr_config" != "x" ; then
19840   APR_CONFIG=$with_apr_config
19841 fi
19842 if test "x$with_apu_config" = "x" ; then
19843   # Extract the first word of "apu-config", so it can be a program name with args.
19844 set dummy apu-config; ac_word=$2
19845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19847 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850   case $APU_CONFIG in
19851   [\\/]* | ?:[\\/]*)
19852   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19853   ;;
19854   *)
19855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19856 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19857 for as_dir in $as_dummy
19858 do
19859   IFS=$as_save_IFS
19860   test -z "$as_dir" && as_dir=.
19861   for ac_exec_ext in '' $ac_executable_extensions; do
19862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19863     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19865     break 2
19866   fi
19867 done
19868 done
19869 IFS=$as_save_IFS
19870
19871   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19872   ;;
19873 esac
19874 fi
19875 APU_CONFIG=$ac_cv_path_APU_CONFIG
19876 if test -n "$APU_CONFIG"; then
19877   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19878 echo "${ECHO_T}$APU_CONFIG" >&6; }
19879 else
19880   { echo "$as_me:$LINENO: result: no" >&5
19881 echo "${ECHO_T}no" >&6; }
19882 fi
19883
19884
19885   if test "x$APU_CONFIG" = "xno" ; then
19886     # Extract the first word of "apu-1-config", so it can be a program name with args.
19887 set dummy apu-1-config; ac_word=$2
19888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19890 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   case $APU_1_CONFIG in
19894   [\\/]* | ?:[\\/]*)
19895   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19896   ;;
19897   *)
19898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19899 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19900 for as_dir in $as_dummy
19901 do
19902   IFS=$as_save_IFS
19903   test -z "$as_dir" && as_dir=.
19904   for ac_exec_ext in '' $ac_executable_extensions; do
19905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19906     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19908     break 2
19909   fi
19910 done
19911 done
19912 IFS=$as_save_IFS
19913
19914   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19915   ;;
19916 esac
19917 fi
19918 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19919 if test -n "$APU_1_CONFIG"; then
19920   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19921 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19922 else
19923   { echo "$as_me:$LINENO: result: no" >&5
19924 echo "${ECHO_T}no" >&6; }
19925 fi
19926
19927
19928     if test "x$APU_1_CONFIG" = "xno" ; then
19929       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19930 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19931    { (exit 1); exit 1; }; }
19932     else
19933       APU_CONFIG="$APU_1_CONFIG"
19934     fi
19935   fi
19936 fi
19937 if test "x$with_apu_config" != "x" ; then
19938   APU_CONFIG=$with_apu_config
19939 fi
19940
19941
19942 case $host_os in
19943   freebsd*)
19944     CFLAGS="${CFLAGS} -I/usr/local/include "
19945     ;;
19946 esac
19947
19948 if test "x${with_apache_header}" = "x" ; then
19949   with_apache_header=`${APXS} -q includedir`
19950 fi
19951
19952 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19953 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19954 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19955 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
19956 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
19957 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19958 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19959 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19960 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
19961 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19962 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19963 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
19964 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19965
19966 # Checks for header files.
19967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19969 if test "${ac_cv_header_stdc+set}" = set; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978 #include <stdlib.h>
19979 #include <stdarg.h>
19980 #include <string.h>
19981 #include <float.h>
19982
19983 int
19984 main ()
19985 {
19986
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (ac_try="$ac_compile"
19993 case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_compile") 2>conftest.er1
19999   ac_status=$?
20000   grep -v '^ *+' conftest.er1 >conftest.err
20001   rm -f conftest.er1
20002   cat conftest.err >&5
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); } && {
20005          test -z "$ac_c_werror_flag" ||
20006          test ! -s conftest.err
20007        } && test -s conftest.$ac_objext; then
20008   ac_cv_header_stdc=yes
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013         ac_cv_header_stdc=no
20014 fi
20015
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017
20018 if test $ac_cv_header_stdc = yes; then
20019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 #include <string.h>
20027
20028 _ACEOF
20029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20030   $EGREP "memchr" >/dev/null 2>&1; then
20031   :
20032 else
20033   ac_cv_header_stdc=no
20034 fi
20035 rm -f conftest*
20036
20037 fi
20038
20039 if test $ac_cv_header_stdc = yes; then
20040   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20041   cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 #include <stdlib.h>
20048
20049 _ACEOF
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051   $EGREP "free" >/dev/null 2>&1; then
20052   :
20053 else
20054   ac_cv_header_stdc=no
20055 fi
20056 rm -f conftest*
20057
20058 fi
20059
20060 if test $ac_cv_header_stdc = yes; then
20061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20062   if test "$cross_compiling" = yes; then
20063   :
20064 else
20065   cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071 #include <ctype.h>
20072 #include <stdlib.h>
20073 #if ((' ' & 0x0FF) == 0x020)
20074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20076 #else
20077 # define ISLOWER(c) \
20078                    (('a' <= (c) && (c) <= 'i') \
20079                      || ('j' <= (c) && (c) <= 'r') \
20080                      || ('s' <= (c) && (c) <= 'z'))
20081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20082 #endif
20083
20084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20085 int
20086 main ()
20087 {
20088   int i;
20089   for (i = 0; i < 256; i++)
20090     if (XOR (islower (i), ISLOWER (i))
20091         || toupper (i) != TOUPPER (i))
20092       return 2;
20093   return 0;
20094 }
20095 _ACEOF
20096 rm -f conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100   *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103   (eval "$ac_link") 2>&5
20104   ac_status=$?
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20107   { (case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_try") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   :
20117 else
20118   echo "$as_me: program exited with status $ac_status" >&5
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122 ( exit $ac_status )
20123 ac_cv_header_stdc=no
20124 fi
20125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20126 fi
20127
20128
20129 fi
20130 fi
20131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20133 if test $ac_cv_header_stdc = yes; then
20134
20135 cat >>confdefs.h <<\_ACEOF
20136 #define STDC_HEADERS 1
20137 _ACEOF
20138
20139 fi
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20150 do
20151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20156   echo $ECHO_N "(cached) $ECHO_C" >&6
20157 fi
20158 ac_res=`eval echo '${'$as_ac_Header'}'`
20159                { echo "$as_me:$LINENO: result: $ac_res" >&5
20160 echo "${ECHO_T}$ac_res" >&6; }
20161 else
20162   # Is the header compilable?
20163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20165 cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h.  */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h.  */
20171 $ac_includes_default
20172 #include <$ac_header>
20173 _ACEOF
20174 rm -f conftest.$ac_objext
20175 if { (ac_try="$ac_compile"
20176 case "(($ac_try" in
20177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178   *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181   (eval "$ac_compile") 2>conftest.er1
20182   ac_status=$?
20183   grep -v '^ *+' conftest.er1 >conftest.err
20184   rm -f conftest.er1
20185   cat conftest.err >&5
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } && {
20188          test -z "$ac_c_werror_flag" ||
20189          test ! -s conftest.err
20190        } && test -s conftest.$ac_objext; then
20191   ac_header_compiler=yes
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196         ac_header_compiler=no
20197 fi
20198
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20201 echo "${ECHO_T}$ac_header_compiler" >&6; }
20202
20203 # Is the header present?
20204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20206 cat >conftest.$ac_ext <<_ACEOF
20207 /* confdefs.h.  */
20208 _ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h.  */
20212 #include <$ac_header>
20213 _ACEOF
20214 if { (ac_try="$ac_cpp conftest.$ac_ext"
20215 case "(($ac_try" in
20216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217   *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } >/dev/null && {
20227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20228          test ! -s conftest.err
20229        }; then
20230   ac_header_preproc=yes
20231 else
20232   echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20234
20235   ac_header_preproc=no
20236 fi
20237
20238 rm -f conftest.err conftest.$ac_ext
20239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20240 echo "${ECHO_T}$ac_header_preproc" >&6; }
20241
20242 # So?  What about this header?
20243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20244   yes:no: )
20245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20249     ac_header_preproc=yes
20250     ;;
20251   no:yes:* )
20252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20264
20265     ;;
20266 esac
20267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20270   echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272   eval "$as_ac_Header=\$ac_header_preproc"
20273 fi
20274 ac_res=`eval echo '${'$as_ac_Header'}'`
20275                { echo "$as_me:$LINENO: result: $ac_res" >&5
20276 echo "${ECHO_T}$ac_res" >&6; }
20277
20278 fi
20279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20280   cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20282 _ACEOF
20283
20284 fi
20285
20286 done
20287
20288 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20289
20290
20291 for ac_header in apr_shm.h apr_global_mutex.h
20292 do
20293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20295   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20298   echo $ECHO_N "(cached) $ECHO_C" >&6
20299 fi
20300 ac_res=`eval echo '${'$as_ac_Header'}'`
20301                { echo "$as_me:$LINENO: result: $ac_res" >&5
20302 echo "${ECHO_T}$ac_res" >&6; }
20303 else
20304   # Is the header compilable?
20305 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h.  */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h.  */
20313 $ac_includes_default
20314 #include <$ac_header>
20315 _ACEOF
20316 rm -f conftest.$ac_objext
20317 if { (ac_try="$ac_compile"
20318 case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323   (eval "$ac_compile") 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } && {
20330          test -z "$ac_c_werror_flag" ||
20331          test ! -s conftest.err
20332        } && test -s conftest.$ac_objext; then
20333   ac_header_compiler=yes
20334 else
20335   echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338         ac_header_compiler=no
20339 fi
20340
20341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343 echo "${ECHO_T}$ac_header_compiler" >&6; }
20344
20345 # Is the header present?
20346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354 #include <$ac_header>
20355 _ACEOF
20356 if { (ac_try="$ac_cpp conftest.$ac_ext"
20357 case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20363   ac_status=$?
20364   grep -v '^ *+' conftest.er1 >conftest.err
20365   rm -f conftest.er1
20366   cat conftest.err >&5
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } >/dev/null && {
20369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20370          test ! -s conftest.err
20371        }; then
20372   ac_header_preproc=yes
20373 else
20374   echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377   ac_header_preproc=no
20378 fi
20379
20380 rm -f conftest.err conftest.$ac_ext
20381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20382 echo "${ECHO_T}$ac_header_preproc" >&6; }
20383
20384 # So?  What about this header?
20385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20386   yes:no: )
20387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20391     ac_header_preproc=yes
20392     ;;
20393   no:yes:* )
20394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20406
20407     ;;
20408 esac
20409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   eval "$as_ac_Header=\$ac_header_preproc"
20415 fi
20416 ac_res=`eval echo '${'$as_ac_Header'}'`
20417                { echo "$as_me:$LINENO: result: $ac_res" >&5
20418 echo "${ECHO_T}$ac_res" >&6; }
20419
20420 fi
20421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20422   cat >>confdefs.h <<_ACEOF
20423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20424 _ACEOF
20425
20426 fi
20427
20428 done
20429
20430
20431 for ac_header in apr.h
20432 do
20433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20435   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20438   echo $ECHO_N "(cached) $ECHO_C" >&6
20439 fi
20440 ac_res=`eval echo '${'$as_ac_Header'}'`
20441                { echo "$as_me:$LINENO: result: $ac_res" >&5
20442 echo "${ECHO_T}$ac_res" >&6; }
20443 else
20444   # Is the header compilable?
20445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453 $ac_includes_default
20454 #include <$ac_header>
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_compile") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } && {
20470          test -z "$ac_c_werror_flag" ||
20471          test ! -s conftest.err
20472        } && test -s conftest.$ac_objext; then
20473   ac_header_compiler=yes
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478         ac_header_compiler=no
20479 fi
20480
20481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6; }
20484
20485 # Is the header present?
20486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494 #include <$ac_header>
20495 _ACEOF
20496 if { (ac_try="$ac_cpp conftest.$ac_ext"
20497 case "(($ac_try" in
20498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499   *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } >/dev/null && {
20509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20510          test ! -s conftest.err
20511        }; then
20512   ac_header_preproc=yes
20513 else
20514   echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517   ac_header_preproc=no
20518 fi
20519
20520 rm -f conftest.err conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6; }
20523
20524 # So?  What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20526   yes:no: )
20527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20531     ac_header_preproc=yes
20532     ;;
20533   no:yes:* )
20534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20546
20547     ;;
20548 esac
20549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20552   echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554   eval "$as_ac_Header=\$ac_header_preproc"
20555 fi
20556 ac_res=`eval echo '${'$as_ac_Header'}'`
20557                { echo "$as_me:$LINENO: result: $ac_res" >&5
20558 echo "${ECHO_T}$ac_res" >&6; }
20559
20560 fi
20561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20562   cat >>confdefs.h <<_ACEOF
20563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20564 _ACEOF
20565
20566 fi
20567
20568 done
20569
20570
20571 for ac_header in ap_config.h
20572 do
20573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20575   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 fi
20580 ac_res=`eval echo '${'$as_ac_Header'}'`
20581                { echo "$as_me:$LINENO: result: $ac_res" >&5
20582 echo "${ECHO_T}$ac_res" >&6; }
20583 else
20584   # Is the header compilable?
20585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593 $ac_includes_default
20594 #include <$ac_header>
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600   *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603   (eval "$ac_compile") 2>conftest.er1
20604   ac_status=$?
20605   grep -v '^ *+' conftest.er1 >conftest.err
20606   rm -f conftest.er1
20607   cat conftest.err >&5
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); } && {
20610          test -z "$ac_c_werror_flag" ||
20611          test ! -s conftest.err
20612        } && test -s conftest.$ac_objext; then
20613   ac_header_compiler=yes
20614 else
20615   echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20617
20618         ac_header_compiler=no
20619 fi
20620
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20623 echo "${ECHO_T}$ac_header_compiler" >&6; }
20624
20625 # Is the header present?
20626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20628 cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h.  */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h.  */
20634 #include <$ac_header>
20635 _ACEOF
20636 if { (ac_try="$ac_cpp conftest.$ac_ext"
20637 case "(($ac_try" in
20638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639   *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20643   ac_status=$?
20644   grep -v '^ *+' conftest.er1 >conftest.err
20645   rm -f conftest.er1
20646   cat conftest.err >&5
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } >/dev/null && {
20649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20650          test ! -s conftest.err
20651        }; then
20652   ac_header_preproc=yes
20653 else
20654   echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657   ac_header_preproc=no
20658 fi
20659
20660 rm -f conftest.err conftest.$ac_ext
20661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20662 echo "${ECHO_T}$ac_header_preproc" >&6; }
20663
20664 # So?  What about this header?
20665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20666   yes:no: )
20667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20671     ac_header_preproc=yes
20672     ;;
20673   no:yes:* )
20674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20686
20687     ;;
20688 esac
20689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694   eval "$as_ac_Header=\$ac_header_preproc"
20695 fi
20696 ac_res=`eval echo '${'$as_ac_Header'}'`
20697                { echo "$as_me:$LINENO: result: $ac_res" >&5
20698 echo "${ECHO_T}$ac_res" >&6; }
20699
20700 fi
20701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20702   cat >>confdefs.h <<_ACEOF
20703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20704 _ACEOF
20705
20706 fi
20707
20708 done
20709
20710 #AC_CHECK_HEADERS([ap_regex.h],
20711 #  AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
20712 #[[
20713 ##ifdef HAVE_APR_H
20714 ##include "apr.h"
20715 ##endif
20716 ##ifdef HAVE_AP_CONFIG_H
20717 ##include "ap_config.h"
20718 ##endif
20719 #]])
20720
20721 for ac_header in ap_regex.h
20722 do
20723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20725   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728   echo $ECHO_N "(cached) $ECHO_C" >&6
20729 fi
20730 ac_res=`eval echo '${'$as_ac_Header'}'`
20731                { echo "$as_me:$LINENO: result: $ac_res" >&5
20732 echo "${ECHO_T}$ac_res" >&6; }
20733 else
20734   # Is the header compilable?
20735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 $ac_includes_default
20744 #include <$ac_header>
20745 _ACEOF
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_compile") 2>conftest.er1
20754   ac_status=$?
20755   grep -v '^ *+' conftest.er1 >conftest.err
20756   rm -f conftest.er1
20757   cat conftest.err >&5
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } && {
20760          test -z "$ac_c_werror_flag" ||
20761          test ! -s conftest.err
20762        } && test -s conftest.$ac_objext; then
20763   ac_header_compiler=yes
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768         ac_header_compiler=no
20769 fi
20770
20771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20773 echo "${ECHO_T}$ac_header_compiler" >&6; }
20774
20775 # Is the header present?
20776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784 #include <$ac_header>
20785 _ACEOF
20786 if { (ac_try="$ac_cpp conftest.$ac_ext"
20787 case "(($ac_try" in
20788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789   *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20793   ac_status=$?
20794   grep -v '^ *+' conftest.er1 >conftest.err
20795   rm -f conftest.er1
20796   cat conftest.err >&5
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); } >/dev/null && {
20799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20800          test ! -s conftest.err
20801        }; then
20802   ac_header_preproc=yes
20803 else
20804   echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807   ac_header_preproc=no
20808 fi
20809
20810 rm -f conftest.err conftest.$ac_ext
20811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20812 echo "${ECHO_T}$ac_header_preproc" >&6; }
20813
20814 # So?  What about this header?
20815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20816   yes:no: )
20817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20821     ac_header_preproc=yes
20822     ;;
20823   no:yes:* )
20824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20836
20837     ;;
20838 esac
20839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842   echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844   eval "$as_ac_Header=\$ac_header_preproc"
20845 fi
20846 ac_res=`eval echo '${'$as_ac_Header'}'`
20847                { echo "$as_me:$LINENO: result: $ac_res" >&5
20848 echo "${ECHO_T}$ac_res" >&6; }
20849
20850 fi
20851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20852   cat >>confdefs.h <<_ACEOF
20853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20854 _ACEOF
20855  use_pcre_flag="no"
20856 else
20857   use_pcre_flag="yes"
20858 fi
20859
20860 done
20861
20862 if test "x$use_pcre_flag" = "xyes" ; then
20863   if test "x$with_pcre_config" = "x" ; then
20864     # Extract the first word of "pcre-config", so it can be a program name with args.
20865 set dummy pcre-config; ac_word=$2
20866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20868 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871   case $PCRE_CONFIG in
20872   [\\/]* | ?:[\\/]*)
20873   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
20874   ;;
20875   *)
20876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20877 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20878 for as_dir in $as_dummy
20879 do
20880   IFS=$as_save_IFS
20881   test -z "$as_dir" && as_dir=.
20882   for ac_exec_ext in '' $ac_executable_extensions; do
20883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20884     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20886     break 2
20887   fi
20888 done
20889 done
20890 IFS=$as_save_IFS
20891
20892   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
20893   ;;
20894 esac
20895 fi
20896 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
20897 if test -n "$PCRE_CONFIG"; then
20898   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
20899 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
20900 else
20901   { echo "$as_me:$LINENO: result: no" >&5
20902 echo "${ECHO_T}no" >&6; }
20903 fi
20904
20905
20906     if test "x$PCRE_CONFIG" = "xno" ; then
20907       # Extract the first word of "pcre-1-config", so it can be a program name with args.
20908 set dummy pcre-1-config; ac_word=$2
20909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20911 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
20912   echo $ECHO_N "(cached) $ECHO_C" >&6
20913 else
20914   case $PCRE_1_CONFIG in
20915   [\\/]* | ?:[\\/]*)
20916   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
20917   ;;
20918   *)
20919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20920 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20921 for as_dir in $as_dummy
20922 do
20923   IFS=$as_save_IFS
20924   test -z "$as_dir" && as_dir=.
20925   for ac_exec_ext in '' $ac_executable_extensions; do
20926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20927     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20929     break 2
20930   fi
20931 done
20932 done
20933 IFS=$as_save_IFS
20934
20935   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
20936   ;;
20937 esac
20938 fi
20939 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
20940 if test -n "$PCRE_1_CONFIG"; then
20941   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
20942 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
20943 else
20944   { echo "$as_me:$LINENO: result: no" >&5
20945 echo "${ECHO_T}no" >&6; }
20946 fi
20947
20948
20949       if test "x$PCRE_1_CONFIG" = "xno" ; then
20950         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
20951 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
20952    { (exit 1); exit 1; }; }
20953       else
20954         PCRE_CONFIG="$PCRE_1_CONFIG"
20955       fi
20956     fi
20957   fi
20958   if test "x$with_pcre_config" != "x" ; then
20959     PCRE_CONFIG=$with_pcre_config
20960   fi
20961   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
20962 else
20963
20964 cat >>confdefs.h <<\_ACEOF
20965 #define HAVE_AP_REGEX_H 1
20966 _ACEOF
20967
20968 fi
20969
20970 # Checks for typedefs, structures, and compiler characteristics.
20971 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20972 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20973 if test "${ac_cv_c_const+set}" = set; then
20974   echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976   cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982
20983 int
20984 main ()
20985 {
20986 /* FIXME: Include the comments suggested by Paul. */
20987 #ifndef __cplusplus
20988   /* Ultrix mips cc rejects this.  */
20989   typedef int charset[2];
20990   const charset cs;
20991   /* SunOS 4.1.1 cc rejects this.  */
20992   char const *const *pcpcc;
20993   char **ppc;
20994   /* NEC SVR4.0.2 mips cc rejects this.  */
20995   struct point {int x, y;};
20996   static struct point const zero = {0,0};
20997   /* AIX XL C 1.02.0.0 rejects this.
20998      It does not let you subtract one const X* pointer from another in
20999      an arm of an if-expression whose if-part is not a constant
21000      expression */
21001   const char *g = "string";
21002   pcpcc = &g + (g ? g-g : 0);
21003   /* HPUX 7.0 cc rejects these. */
21004   ++pcpcc;
21005   ppc = (char**) pcpcc;
21006   pcpcc = (char const *const *) ppc;
21007   { /* SCO 3.2v4 cc rejects this.  */
21008     char *t;
21009     char const *s = 0 ? (char *) 0 : (char const *) 0;
21010
21011     *t++ = 0;
21012     if (s) return 0;
21013   }
21014   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21015     int x[] = {25, 17};
21016     const int *foo = &x[0];
21017     ++foo;
21018   }
21019   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21020     typedef const int *iptr;
21021     iptr p = 0;
21022     ++p;
21023   }
21024   { /* AIX XL C 1.02.0.0 rejects this saying
21025        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21026     struct s { int j; const int *ap[3]; };
21027     struct s *b; b->j = 5;
21028   }
21029   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21030     const int foo = 10;
21031     if (!foo) return 0;
21032   }
21033   return !cs[0] && !zero.x;
21034 #endif
21035
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_compile") 2>conftest.er1
21048   ac_status=$?
21049   grep -v '^ *+' conftest.er1 >conftest.err
21050   rm -f conftest.er1
21051   cat conftest.err >&5
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } && {
21054          test -z "$ac_c_werror_flag" ||
21055          test ! -s conftest.err
21056        } && test -s conftest.$ac_objext; then
21057   ac_cv_c_const=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062         ac_cv_c_const=no
21063 fi
21064
21065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21066 fi
21067 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21068 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21069 if test $ac_cv_c_const = no; then
21070
21071 cat >>confdefs.h <<\_ACEOF
21072 #define const
21073 _ACEOF
21074
21075 fi
21076
21077
21078 # Checks for library functions.
21079
21080 for ac_header in stdlib.h
21081 do
21082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 fi
21089 ac_res=`eval echo '${'$as_ac_Header'}'`
21090                { echo "$as_me:$LINENO: result: $ac_res" >&5
21091 echo "${ECHO_T}$ac_res" >&6; }
21092 else
21093   # Is the header compilable?
21094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102 $ac_includes_default
21103 #include <$ac_header>
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109   *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112   (eval "$ac_compile") 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } && {
21119          test -z "$ac_c_werror_flag" ||
21120          test ! -s conftest.err
21121        } && test -s conftest.$ac_objext; then
21122   ac_header_compiler=yes
21123 else
21124   echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127         ac_header_compiler=no
21128 fi
21129
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21132 echo "${ECHO_T}$ac_header_compiler" >&6; }
21133
21134 # Is the header present?
21135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143 #include <$ac_header>
21144 _ACEOF
21145 if { (ac_try="$ac_cpp conftest.$ac_ext"
21146 case "(($ac_try" in
21147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148   *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } >/dev/null && {
21158          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21159          test ! -s conftest.err
21160        }; then
21161   ac_header_preproc=yes
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166   ac_header_preproc=no
21167 fi
21168
21169 rm -f conftest.err conftest.$ac_ext
21170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21171 echo "${ECHO_T}$ac_header_preproc" >&6; }
21172
21173 # So?  What about this header?
21174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21175   yes:no: )
21176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21180     ac_header_preproc=yes
21181     ;;
21182   no:yes:* )
21183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21185     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21186 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21187     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21189     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21190 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21193     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21195
21196     ;;
21197 esac
21198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   eval "$as_ac_Header=\$ac_header_preproc"
21204 fi
21205 ac_res=`eval echo '${'$as_ac_Header'}'`
21206                { echo "$as_me:$LINENO: result: $ac_res" >&5
21207 echo "${ECHO_T}$ac_res" >&6; }
21208
21209 fi
21210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21211   cat >>confdefs.h <<_ACEOF
21212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21213 _ACEOF
21214
21215 fi
21216
21217 done
21218
21219 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21220 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21221 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21222   echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224   if test "$cross_compiling" = yes; then
21225   ac_cv_func_malloc_0_nonnull=no
21226 else
21227   cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h.  */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h.  */
21233 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21234 # include <stdlib.h>
21235 #else
21236 char *malloc ();
21237 #endif
21238
21239 int
21240 main ()
21241 {
21242 return ! malloc (0);
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest$ac_exeext
21248 if { (ac_try="$ac_link"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_link") 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21258   { (case "(($ac_try" in
21259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260   *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263   (eval "$ac_try") 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); }; }; then
21267   ac_cv_func_malloc_0_nonnull=yes
21268 else
21269   echo "$as_me: program exited with status $ac_status" >&5
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 ( exit $ac_status )
21274 ac_cv_func_malloc_0_nonnull=no
21275 fi
21276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21277 fi
21278
21279
21280 fi
21281 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21282 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21283 if test $ac_cv_func_malloc_0_nonnull = yes; then
21284
21285 cat >>confdefs.h <<\_ACEOF
21286 #define HAVE_MALLOC 1
21287 _ACEOF
21288
21289 else
21290   cat >>confdefs.h <<\_ACEOF
21291 #define HAVE_MALLOC 0
21292 _ACEOF
21293
21294    case " $LIBOBJS " in
21295   *" malloc.$ac_objext "* ) ;;
21296   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21297  ;;
21298 esac
21299
21300
21301 cat >>confdefs.h <<\_ACEOF
21302 #define malloc rpl_malloc
21303 _ACEOF
21304
21305 fi
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21318 do
21319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21323   echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325   cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21333 #define $ac_func innocuous_$ac_func
21334
21335 /* System header to define __stub macros and hopefully few prototypes,
21336     which can conflict with char $ac_func (); below.
21337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21338     <limits.h> exists even on freestanding compilers.  */
21339
21340 #ifdef __STDC__
21341 # include <limits.h>
21342 #else
21343 # include <assert.h>
21344 #endif
21345
21346 #undef $ac_func
21347
21348 /* Override any GCC internal prototype to avoid an error.
21349    Use char because int might match the return type of a GCC
21350    builtin and then its argument prototype would still apply.  */
21351 #ifdef __cplusplus
21352 extern "C"
21353 #endif
21354 char $ac_func ();
21355 /* The GNU C library defines this for functions which it implements
21356     to always fail with ENOSYS.  Some functions are actually named
21357     something starting with __ and the normal name is an alias.  */
21358 #if defined __stub_$ac_func || defined __stub___$ac_func
21359 choke me
21360 #endif
21361
21362 int
21363 main ()
21364 {
21365 return $ac_func ();
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext conftest$ac_exeext
21371 if { (ac_try="$ac_link"
21372 case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_link") 2>conftest.er1
21378   ac_status=$?
21379   grep -v '^ *+' conftest.er1 >conftest.err
21380   rm -f conftest.er1
21381   cat conftest.err >&5
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); } && {
21384          test -z "$ac_c_werror_flag" ||
21385          test ! -s conftest.err
21386        } && test -s conftest$ac_exeext &&
21387        $as_test_x conftest$ac_exeext; then
21388   eval "$as_ac_var=yes"
21389 else
21390   echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393         eval "$as_ac_var=no"
21394 fi
21395
21396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21397       conftest$ac_exeext conftest.$ac_ext
21398 fi
21399 ac_res=`eval echo '${'$as_ac_var'}'`
21400                { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402 if test `eval echo '${'$as_ac_var'}'` = yes; then
21403   cat >>confdefs.h <<_ACEOF
21404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21405 _ACEOF
21406
21407 fi
21408 done
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419 ac_config_files="$ac_config_files Makefile src/Makefile"
21420
21421 cat >confcache <<\_ACEOF
21422 # This file is a shell script that caches the results of configure
21423 # tests run on this system so they can be shared between configure
21424 # scripts and configure runs, see configure's option --config-cache.
21425 # It is not useful on other systems.  If it contains results you don't
21426 # want to keep, you may remove or edit it.
21427 #
21428 # config.status only pays attention to the cache file if you give it
21429 # the --recheck option to rerun configure.
21430 #
21431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21433 # following values.
21434
21435 _ACEOF
21436
21437 # The following way of writing the cache mishandles newlines in values,
21438 # but we know of no workaround that is simple, portable, and efficient.
21439 # So, we kill variables containing newlines.
21440 # Ultrix sh set writes to stderr and can't be redirected directly,
21441 # and sets the high bit in the cache file unless we assign to the vars.
21442 (
21443   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21444     eval ac_val=\$$ac_var
21445     case $ac_val in #(
21446     *${as_nl}*)
21447       case $ac_var in #(
21448       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21449 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21450       esac
21451       case $ac_var in #(
21452       _ | IFS | as_nl) ;; #(
21453       *) $as_unset $ac_var ;;
21454       esac ;;
21455     esac
21456   done
21457
21458   (set) 2>&1 |
21459     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21460     *${as_nl}ac_space=\ *)
21461       # `set' does not quote correctly, so add quotes (double-quote
21462       # substitution turns \\\\ into \\, and sed turns \\ into \).
21463       sed -n \
21464         "s/'/'\\\\''/g;
21465           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21466       ;; #(
21467     *)
21468       # `set' quotes correctly as required by POSIX, so do not add quotes.
21469       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21470       ;;
21471     esac |
21472     sort
21473 ) |
21474   sed '
21475      /^ac_cv_env_/b end
21476      t clear
21477      :clear
21478      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21479      t end
21480      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21481      :end' >>confcache
21482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21483   if test -w "$cache_file"; then
21484     test "x$cache_file" != "x/dev/null" &&
21485       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21486 echo "$as_me: updating cache $cache_file" >&6;}
21487     cat confcache >$cache_file
21488   else
21489     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21490 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21491   fi
21492 fi
21493 rm -f confcache
21494
21495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21496 # Let make expand exec_prefix.
21497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21498
21499 DEFS=-DHAVE_CONFIG_H
21500
21501 ac_libobjs=
21502 ac_ltlibobjs=
21503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21504   # 1. Remove the extension, and $U if already installed.
21505   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21506   ac_i=`echo "$ac_i" | sed "$ac_script"`
21507   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21508   #    will be set to the directory where LIBOBJS objects are built.
21509   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21510   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21511 done
21512 LIBOBJS=$ac_libobjs
21513
21514 LTLIBOBJS=$ac_ltlibobjs
21515
21516
21517 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21518   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21519 Usually this means the macro was only invoked conditionally." >&5
21520 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21521 Usually this means the macro was only invoked conditionally." >&2;}
21522    { (exit 1); exit 1; }; }
21523 fi
21524 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21525   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21526 Usually this means the macro was only invoked conditionally." >&5
21527 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21528 Usually this means the macro was only invoked conditionally." >&2;}
21529    { (exit 1); exit 1; }; }
21530 fi
21531 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21532   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21533 Usually this means the macro was only invoked conditionally." >&5
21534 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21535 Usually this means the macro was only invoked conditionally." >&2;}
21536    { (exit 1); exit 1; }; }
21537 fi
21538
21539 : ${CONFIG_STATUS=./config.status}
21540 ac_clean_files_save=$ac_clean_files
21541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21542 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21543 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21544 cat >$CONFIG_STATUS <<_ACEOF
21545 #! $SHELL
21546 # Generated by $as_me.
21547 # Run this file to recreate the current configuration.
21548 # Compiler output produced by configure, useful for debugging
21549 # configure, is in config.log if it exists.
21550
21551 debug=false
21552 ac_cs_recheck=false
21553 ac_cs_silent=false
21554 SHELL=\${CONFIG_SHELL-$SHELL}
21555 _ACEOF
21556
21557 cat >>$CONFIG_STATUS <<\_ACEOF
21558 ## --------------------- ##
21559 ## M4sh Initialization.  ##
21560 ## --------------------- ##
21561
21562 # Be more Bourne compatible
21563 DUALCASE=1; export DUALCASE # for MKS sh
21564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21565   emulate sh
21566   NULLCMD=:
21567   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21568   # is contrary to our usage.  Disable this feature.
21569   alias -g '${1+"$@"}'='"$@"'
21570   setopt NO_GLOB_SUBST
21571 else
21572   case `(set -o) 2>/dev/null` in
21573   *posix*) set -o posix ;;
21574 esac
21575
21576 fi
21577
21578
21579
21580
21581 # PATH needs CR
21582 # Avoid depending upon Character Ranges.
21583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21586 as_cr_digits='0123456789'
21587 as_cr_alnum=$as_cr_Letters$as_cr_digits
21588
21589 # The user is always right.
21590 if test "${PATH_SEPARATOR+set}" != set; then
21591   echo "#! /bin/sh" >conf$$.sh
21592   echo  "exit 0"   >>conf$$.sh
21593   chmod +x conf$$.sh
21594   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21595     PATH_SEPARATOR=';'
21596   else
21597     PATH_SEPARATOR=:
21598   fi
21599   rm -f conf$$.sh
21600 fi
21601
21602 # Support unset when possible.
21603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21604   as_unset=unset
21605 else
21606   as_unset=false
21607 fi
21608
21609
21610 # IFS
21611 # We need space, tab and new line, in precisely that order.  Quoting is
21612 # there to prevent editors from complaining about space-tab.
21613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21614 # splitting by setting IFS to empty value.)
21615 as_nl='
21616 '
21617 IFS=" ""        $as_nl"
21618
21619 # Find who we are.  Look in the path if we contain no directory separator.
21620 case $0 in
21621   *[\\/]* ) as_myself=$0 ;;
21622   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21623 for as_dir in $PATH
21624 do
21625   IFS=$as_save_IFS
21626   test -z "$as_dir" && as_dir=.
21627   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21628 done
21629 IFS=$as_save_IFS
21630
21631      ;;
21632 esac
21633 # We did not find ourselves, most probably we were run as `sh COMMAND'
21634 # in which case we are not to be found in the path.
21635 if test "x$as_myself" = x; then
21636   as_myself=$0
21637 fi
21638 if test ! -f "$as_myself"; then
21639   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21640   { (exit 1); exit 1; }
21641 fi
21642
21643 # Work around bugs in pre-3.0 UWIN ksh.
21644 for as_var in ENV MAIL MAILPATH
21645 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21646 done
21647 PS1='$ '
21648 PS2='> '
21649 PS4='+ '
21650
21651 # NLS nuisances.
21652 for as_var in \
21653   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21654   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21655   LC_TELEPHONE LC_TIME
21656 do
21657   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21658     eval $as_var=C; export $as_var
21659   else
21660     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21661   fi
21662 done
21663
21664 # Required to use basename.
21665 if expr a : '\(a\)' >/dev/null 2>&1 &&
21666    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21667   as_expr=expr
21668 else
21669   as_expr=false
21670 fi
21671
21672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21673   as_basename=basename
21674 else
21675   as_basename=false
21676 fi
21677
21678
21679 # Name of the executable.
21680 as_me=`$as_basename -- "$0" ||
21681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21682          X"$0" : 'X\(//\)$' \| \
21683          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21684 echo X/"$0" |
21685     sed '/^.*\/\([^/][^/]*\)\/*$/{
21686             s//\1/
21687             q
21688           }
21689           /^X\/\(\/\/\)$/{
21690             s//\1/
21691             q
21692           }
21693           /^X\/\(\/\).*/{
21694             s//\1/
21695             q
21696           }
21697           s/.*/./; q'`
21698
21699 # CDPATH.
21700 $as_unset CDPATH
21701
21702
21703
21704   as_lineno_1=$LINENO
21705   as_lineno_2=$LINENO
21706   test "x$as_lineno_1" != "x$as_lineno_2" &&
21707   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21708
21709   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21710   # uniformly replaced by the line number.  The first 'sed' inserts a
21711   # line-number line after each line using $LINENO; the second 'sed'
21712   # does the real work.  The second script uses 'N' to pair each
21713   # line-number line with the line containing $LINENO, and appends
21714   # trailing '-' during substitution so that $LINENO is not a special
21715   # case at line end.
21716   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21717   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21718   # E. McMahon (1931-1989) for sed's syntax.  :-)
21719   sed -n '
21720     p
21721     /[$]LINENO/=
21722   ' <$as_myself |
21723     sed '
21724       s/[$]LINENO.*/&-/
21725       t lineno
21726       b
21727       :lineno
21728       N
21729       :loop
21730       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21731       t loop
21732       s/-\n.*//
21733     ' >$as_me.lineno &&
21734   chmod +x "$as_me.lineno" ||
21735     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21736    { (exit 1); exit 1; }; }
21737
21738   # Don't try to exec as it changes $[0], causing all sort of problems
21739   # (the dirname of $[0] is not the place where we might find the
21740   # original and so on.  Autoconf is especially sensitive to this).
21741   . "./$as_me.lineno"
21742   # Exit status is that of the last command.
21743   exit
21744 }
21745
21746
21747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21748   as_dirname=dirname
21749 else
21750   as_dirname=false
21751 fi
21752
21753 ECHO_C= ECHO_N= ECHO_T=
21754 case `echo -n x` in
21755 -n*)
21756   case `echo 'x\c'` in
21757   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21758   *)   ECHO_C='\c';;
21759   esac;;
21760 *)
21761   ECHO_N='-n';;
21762 esac
21763
21764 if expr a : '\(a\)' >/dev/null 2>&1 &&
21765    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21766   as_expr=expr
21767 else
21768   as_expr=false
21769 fi
21770
21771 rm -f conf$$ conf$$.exe conf$$.file
21772 if test -d conf$$.dir; then
21773   rm -f conf$$.dir/conf$$.file
21774 else
21775   rm -f conf$$.dir
21776   mkdir conf$$.dir
21777 fi
21778 echo >conf$$.file
21779 if ln -s conf$$.file conf$$ 2>/dev/null; then
21780   as_ln_s='ln -s'
21781   # ... but there are two gotchas:
21782   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21783   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21784   # In both cases, we have to default to `cp -p'.
21785   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21786     as_ln_s='cp -p'
21787 elif ln conf$$.file conf$$ 2>/dev/null; then
21788   as_ln_s=ln
21789 else
21790   as_ln_s='cp -p'
21791 fi
21792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21793 rmdir conf$$.dir 2>/dev/null
21794
21795 if mkdir -p . 2>/dev/null; then
21796   as_mkdir_p=:
21797 else
21798   test -d ./-p && rmdir ./-p
21799   as_mkdir_p=false
21800 fi
21801
21802 if test -x / >/dev/null 2>&1; then
21803   as_test_x='test -x'
21804 else
21805   if ls -dL / >/dev/null 2>&1; then
21806     as_ls_L_option=L
21807   else
21808     as_ls_L_option=
21809   fi
21810   as_test_x='
21811     eval sh -c '\''
21812       if test -d "$1"; then
21813         test -d "$1/.";
21814       else
21815         case $1 in
21816         -*)set "./$1";;
21817         esac;
21818         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21819         ???[sx]*):;;*)false;;esac;fi
21820     '\'' sh
21821   '
21822 fi
21823 as_executable_p=$as_test_x
21824
21825 # Sed expression to map a string onto a valid CPP name.
21826 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21827
21828 # Sed expression to map a string onto a valid variable name.
21829 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21830
21831
21832 exec 6>&1
21833
21834 # Save the log message, to keep $[0] and so on meaningful, and to
21835 # report actual input values of CONFIG_FILES etc. instead of their
21836 # values after options handling.
21837 ac_log="
21838 This file was extended by mod_chxj $as_me 0.12.15, which was
21839 generated by GNU Autoconf 2.61.  Invocation command line was
21840
21841   CONFIG_FILES    = $CONFIG_FILES
21842   CONFIG_HEADERS  = $CONFIG_HEADERS
21843   CONFIG_LINKS    = $CONFIG_LINKS
21844   CONFIG_COMMANDS = $CONFIG_COMMANDS
21845   $ $0 $@
21846
21847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21848 "
21849
21850 _ACEOF
21851
21852 cat >>$CONFIG_STATUS <<_ACEOF
21853 # Files that config.status was made for.
21854 config_files="$ac_config_files"
21855 config_headers="$ac_config_headers"
21856 config_commands="$ac_config_commands"
21857
21858 _ACEOF
21859
21860 cat >>$CONFIG_STATUS <<\_ACEOF
21861 ac_cs_usage="\
21862 \`$as_me' instantiates files from templates according to the
21863 current configuration.
21864
21865 Usage: $0 [OPTIONS] [FILE]...
21866
21867   -h, --help       print this help, then exit
21868   -V, --version    print version number and configuration settings, then exit
21869   -q, --quiet      do not print progress messages
21870   -d, --debug      don't remove temporary files
21871       --recheck    update $as_me by reconfiguring in the same conditions
21872   --file=FILE[:TEMPLATE]
21873                    instantiate the configuration file FILE
21874   --header=FILE[:TEMPLATE]
21875                    instantiate the configuration header FILE
21876
21877 Configuration files:
21878 $config_files
21879
21880 Configuration headers:
21881 $config_headers
21882
21883 Configuration commands:
21884 $config_commands
21885
21886 Report bugs to <bug-autoconf@gnu.org>."
21887
21888 _ACEOF
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 ac_cs_version="\\
21891 mod_chxj config.status 0.12.15
21892 configured by $0, generated by GNU Autoconf 2.61,
21893   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21894
21895 Copyright (C) 2006 Free Software Foundation, Inc.
21896 This config.status script is free software; the Free Software Foundation
21897 gives unlimited permission to copy, distribute and modify it."
21898
21899 ac_pwd='$ac_pwd'
21900 srcdir='$srcdir'
21901 INSTALL='$INSTALL'
21902 MKDIR_P='$MKDIR_P'
21903 _ACEOF
21904
21905 cat >>$CONFIG_STATUS <<\_ACEOF
21906 # If no file are specified by the user, then we need to provide default
21907 # value.  By we need to know if files were specified by the user.
21908 ac_need_defaults=:
21909 while test $# != 0
21910 do
21911   case $1 in
21912   --*=*)
21913     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21914     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21915     ac_shift=:
21916     ;;
21917   *)
21918     ac_option=$1
21919     ac_optarg=$2
21920     ac_shift=shift
21921     ;;
21922   esac
21923
21924   case $ac_option in
21925   # Handling of the options.
21926   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21927     ac_cs_recheck=: ;;
21928   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21929     echo "$ac_cs_version"; exit ;;
21930   --debug | --debu | --deb | --de | --d | -d )
21931     debug=: ;;
21932   --file | --fil | --fi | --f )
21933     $ac_shift
21934     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21935     ac_need_defaults=false;;
21936   --header | --heade | --head | --hea )
21937     $ac_shift
21938     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21939     ac_need_defaults=false;;
21940   --he | --h)
21941     # Conflict between --help and --header
21942     { echo "$as_me: error: ambiguous option: $1
21943 Try \`$0 --help' for more information." >&2
21944    { (exit 1); exit 1; }; };;
21945   --help | --hel | -h )
21946     echo "$ac_cs_usage"; exit ;;
21947   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21948   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21949     ac_cs_silent=: ;;
21950
21951   # This is an error.
21952   -*) { echo "$as_me: error: unrecognized option: $1
21953 Try \`$0 --help' for more information." >&2
21954    { (exit 1); exit 1; }; } ;;
21955
21956   *) ac_config_targets="$ac_config_targets $1"
21957      ac_need_defaults=false ;;
21958
21959   esac
21960   shift
21961 done
21962
21963 ac_configure_extra_args=
21964
21965 if $ac_cs_silent; then
21966   exec 6>/dev/null
21967   ac_configure_extra_args="$ac_configure_extra_args --silent"
21968 fi
21969
21970 _ACEOF
21971 cat >>$CONFIG_STATUS <<_ACEOF
21972 if \$ac_cs_recheck; then
21973   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21974   CONFIG_SHELL=$SHELL
21975   export CONFIG_SHELL
21976   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21977 fi
21978
21979 _ACEOF
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21981 exec 5>>config.log
21982 {
21983   echo
21984   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21985 ## Running $as_me. ##
21986 _ASBOX
21987   echo "$ac_log"
21988 } >&5
21989
21990 _ACEOF
21991 cat >>$CONFIG_STATUS <<_ACEOF
21992 #
21993 # INIT-COMMANDS
21994 #
21995 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21996
21997 _ACEOF
21998
21999 cat >>$CONFIG_STATUS <<\_ACEOF
22000
22001 # Handling of arguments.
22002 for ac_config_target in $ac_config_targets
22003 do
22004   case $ac_config_target in
22005     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22006     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22007     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22008     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22009
22010   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22011 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22012    { (exit 1); exit 1; }; };;
22013   esac
22014 done
22015
22016
22017 # If the user did not use the arguments to specify the items to instantiate,
22018 # then the envvar interface is used.  Set only those that are not.
22019 # We use the long form for the default assignment because of an extremely
22020 # bizarre bug on SunOS 4.1.3.
22021 if $ac_need_defaults; then
22022   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22023   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22024   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22025 fi
22026
22027 # Have a temporary directory for convenience.  Make it in the build tree
22028 # simply because there is no reason against having it here, and in addition,
22029 # creating and moving files from /tmp can sometimes cause problems.
22030 # Hook for its removal unless debugging.
22031 # Note that there is a small window in which the directory will not be cleaned:
22032 # after its creation but before its name has been assigned to `$tmp'.
22033 $debug ||
22034 {
22035   tmp=
22036   trap 'exit_status=$?
22037   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22038 ' 0
22039   trap '{ (exit 1); exit 1; }' 1 2 13 15
22040 }
22041 # Create a (secure) tmp directory for tmp files.
22042
22043 {
22044   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22045   test -n "$tmp" && test -d "$tmp"
22046 }  ||
22047 {
22048   tmp=./conf$$-$RANDOM
22049   (umask 077 && mkdir "$tmp")
22050 } ||
22051 {
22052    echo "$me: cannot create a temporary directory in ." >&2
22053    { (exit 1); exit 1; }
22054 }
22055
22056 #
22057 # Set up the sed scripts for CONFIG_FILES section.
22058 #
22059
22060 # No need to generate the scripts if there are no CONFIG_FILES.
22061 # This happens for instance when ./config.status config.h
22062 if test -n "$CONFIG_FILES"; then
22063
22064 _ACEOF
22065
22066
22067
22068 ac_delim='%!_!# '
22069 for ac_last_try in false false false false false :; do
22070   cat >conf$$subs.sed <<_ACEOF
22071 SHELL!$SHELL$ac_delim
22072 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22073 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22074 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22075 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22076 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22077 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22078 exec_prefix!$exec_prefix$ac_delim
22079 prefix!$prefix$ac_delim
22080 program_transform_name!$program_transform_name$ac_delim
22081 bindir!$bindir$ac_delim
22082 sbindir!$sbindir$ac_delim
22083 libexecdir!$libexecdir$ac_delim
22084 datarootdir!$datarootdir$ac_delim
22085 datadir!$datadir$ac_delim
22086 sysconfdir!$sysconfdir$ac_delim
22087 sharedstatedir!$sharedstatedir$ac_delim
22088 localstatedir!$localstatedir$ac_delim
22089 includedir!$includedir$ac_delim
22090 oldincludedir!$oldincludedir$ac_delim
22091 docdir!$docdir$ac_delim
22092 infodir!$infodir$ac_delim
22093 htmldir!$htmldir$ac_delim
22094 dvidir!$dvidir$ac_delim
22095 pdfdir!$pdfdir$ac_delim
22096 psdir!$psdir$ac_delim
22097 libdir!$libdir$ac_delim
22098 localedir!$localedir$ac_delim
22099 mandir!$mandir$ac_delim
22100 DEFS!$DEFS$ac_delim
22101 ECHO_C!$ECHO_C$ac_delim
22102 ECHO_N!$ECHO_N$ac_delim
22103 ECHO_T!$ECHO_T$ac_delim
22104 LIBS!$LIBS$ac_delim
22105 build_alias!$build_alias$ac_delim
22106 host_alias!$host_alias$ac_delim
22107 target_alias!$target_alias$ac_delim
22108 build!$build$ac_delim
22109 build_cpu!$build_cpu$ac_delim
22110 build_vendor!$build_vendor$ac_delim
22111 build_os!$build_os$ac_delim
22112 host!$host$ac_delim
22113 host_cpu!$host_cpu$ac_delim
22114 host_vendor!$host_vendor$ac_delim
22115 host_os!$host_os$ac_delim
22116 target!$target$ac_delim
22117 target_cpu!$target_cpu$ac_delim
22118 target_vendor!$target_vendor$ac_delim
22119 target_os!$target_os$ac_delim
22120 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22121 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22122 INSTALL_DATA!$INSTALL_DATA$ac_delim
22123 am__isrc!$am__isrc$ac_delim
22124 CYGPATH_W!$CYGPATH_W$ac_delim
22125 PACKAGE!$PACKAGE$ac_delim
22126 VERSION!$VERSION$ac_delim
22127 ACLOCAL!$ACLOCAL$ac_delim
22128 AUTOCONF!$AUTOCONF$ac_delim
22129 AUTOMAKE!$AUTOMAKE$ac_delim
22130 AUTOHEADER!$AUTOHEADER$ac_delim
22131 MAKEINFO!$MAKEINFO$ac_delim
22132 install_sh!$install_sh$ac_delim
22133 STRIP!$STRIP$ac_delim
22134 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22135 mkdir_p!$mkdir_p$ac_delim
22136 AWK!$AWK$ac_delim
22137 SET_MAKE!$SET_MAKE$ac_delim
22138 am__leading_dot!$am__leading_dot$ac_delim
22139 AMTAR!$AMTAR$ac_delim
22140 am__tar!$am__tar$ac_delim
22141 am__untar!$am__untar$ac_delim
22142 CC!$CC$ac_delim
22143 CFLAGS!$CFLAGS$ac_delim
22144 LDFLAGS!$LDFLAGS$ac_delim
22145 CPPFLAGS!$CPPFLAGS$ac_delim
22146 ac_ct_CC!$ac_ct_CC$ac_delim
22147 EXEEXT!$EXEEXT$ac_delim
22148 OBJEXT!$OBJEXT$ac_delim
22149 DEPDIR!$DEPDIR$ac_delim
22150 am__include!$am__include$ac_delim
22151 am__quote!$am__quote$ac_delim
22152 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22153 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22154 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22155 CCDEPMODE!$CCDEPMODE$ac_delim
22156 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22157 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22158 GREP!$GREP$ac_delim
22159 EGREP!$EGREP$ac_delim
22160 LN_S!$LN_S$ac_delim
22161 ECHO!$ECHO$ac_delim
22162 AR!$AR$ac_delim
22163 RANLIB!$RANLIB$ac_delim
22164 CPP!$CPP$ac_delim
22165 CXX!$CXX$ac_delim
22166 CXXFLAGS!$CXXFLAGS$ac_delim
22167 ac_ct_CXX!$ac_ct_CXX$ac_delim
22168 _ACEOF
22169
22170   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22171     break
22172   elif $ac_last_try; then
22173     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22174 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22175    { (exit 1); exit 1; }; }
22176   else
22177     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22178   fi
22179 done
22180
22181 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22182 if test -n "$ac_eof"; then
22183   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22184   ac_eof=`expr $ac_eof + 1`
22185 fi
22186
22187 cat >>$CONFIG_STATUS <<_ACEOF
22188 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22190 _ACEOF
22191 sed '
22192 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22193 s/^/s,@/; s/!/@,|#_!!_#|/
22194 :n
22195 t n
22196 s/'"$ac_delim"'$/,g/; t
22197 s/$/\\/; p
22198 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22199 ' >>$CONFIG_STATUS <conf$$subs.sed
22200 rm -f conf$$subs.sed
22201 cat >>$CONFIG_STATUS <<_ACEOF
22202 CEOF$ac_eof
22203 _ACEOF
22204
22205
22206 ac_delim='%!_!# '
22207 for ac_last_try in false false false false false :; do
22208   cat >conf$$subs.sed <<_ACEOF
22209 CXXDEPMODE!$CXXDEPMODE$ac_delim
22210 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22211 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22212 CXXCPP!$CXXCPP$ac_delim
22213 F77!$F77$ac_delim
22214 FFLAGS!$FFLAGS$ac_delim
22215 ac_ct_F77!$ac_ct_F77$ac_delim
22216 LIBTOOL!$LIBTOOL$ac_delim
22217 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22218 APXS2!$APXS2$ac_delim
22219 APXS!$APXS$ac_delim
22220 WAND_CONFIG!$WAND_CONFIG$ac_delim
22221 APR_CONFIG!$APR_CONFIG$ac_delim
22222 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22223 APU_CONFIG!$APU_CONFIG$ac_delim
22224 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22225 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22226 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22227 LIBOBJS!$LIBOBJS$ac_delim
22228 with_apache_header!$with_apache_header$ac_delim
22229 QDEFS!$QDEFS$ac_delim
22230 DDEFS!$DDEFS$ac_delim
22231 LTLIBOBJS!$LTLIBOBJS$ac_delim
22232 _ACEOF
22233
22234   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
22235     break
22236   elif $ac_last_try; then
22237     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22238 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22239    { (exit 1); exit 1; }; }
22240   else
22241     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22242   fi
22243 done
22244
22245 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22246 if test -n "$ac_eof"; then
22247   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22248   ac_eof=`expr $ac_eof + 1`
22249 fi
22250
22251 cat >>$CONFIG_STATUS <<_ACEOF
22252 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22254 _ACEOF
22255 sed '
22256 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22257 s/^/s,@/; s/!/@,|#_!!_#|/
22258 :n
22259 t n
22260 s/'"$ac_delim"'$/,g/; t
22261 s/$/\\/; p
22262 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22263 ' >>$CONFIG_STATUS <conf$$subs.sed
22264 rm -f conf$$subs.sed
22265 cat >>$CONFIG_STATUS <<_ACEOF
22266 :end
22267 s/|#_!!_#|//g
22268 CEOF$ac_eof
22269 _ACEOF
22270
22271
22272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22274 # trailing colons and then remove the whole line if VPATH becomes empty
22275 # (actually we leave an empty line to preserve line numbers).
22276 if test "x$srcdir" = x.; then
22277   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22278 s/:*\$(srcdir):*/:/
22279 s/:*\${srcdir}:*/:/
22280 s/:*@srcdir@:*/:/
22281 s/^\([^=]*=[     ]*\):*/\1/
22282 s/:*$//
22283 s/^[^=]*=[       ]*$//
22284 }'
22285 fi
22286
22287 cat >>$CONFIG_STATUS <<\_ACEOF
22288 fi # test -n "$CONFIG_FILES"
22289
22290
22291 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22292 do
22293   case $ac_tag in
22294   :[FHLC]) ac_mode=$ac_tag; continue;;
22295   esac
22296   case $ac_mode$ac_tag in
22297   :[FHL]*:*);;
22298   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22299 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22300    { (exit 1); exit 1; }; };;
22301   :[FH]-) ac_tag=-:-;;
22302   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22303   esac
22304   ac_save_IFS=$IFS
22305   IFS=:
22306   set x $ac_tag
22307   IFS=$ac_save_IFS
22308   shift
22309   ac_file=$1
22310   shift
22311
22312   case $ac_mode in
22313   :L) ac_source=$1;;
22314   :[FH])
22315     ac_file_inputs=
22316     for ac_f
22317     do
22318       case $ac_f in
22319       -) ac_f="$tmp/stdin";;
22320       *) # Look for the file first in the build tree, then in the source tree
22321          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22322          # because $ac_f cannot contain `:'.
22323          test -f "$ac_f" ||
22324            case $ac_f in
22325            [\\/$]*) false;;
22326            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22327            esac ||
22328            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22329 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22330    { (exit 1); exit 1; }; };;
22331       esac
22332       ac_file_inputs="$ac_file_inputs $ac_f"
22333     done
22334
22335     # Let's still pretend it is `configure' which instantiates (i.e., don't
22336     # use $as_me), people would be surprised to read:
22337     #    /* config.h.  Generated by config.status.  */
22338     configure_input="Generated from "`IFS=:
22339           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22340     if test x"$ac_file" != x-; then
22341       configure_input="$ac_file.  $configure_input"
22342       { echo "$as_me:$LINENO: creating $ac_file" >&5
22343 echo "$as_me: creating $ac_file" >&6;}
22344     fi
22345
22346     case $ac_tag in
22347     *:-:* | *:-) cat >"$tmp/stdin";;
22348     esac
22349     ;;
22350   esac
22351
22352   ac_dir=`$as_dirname -- "$ac_file" ||
22353 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22354          X"$ac_file" : 'X\(//\)[^/]' \| \
22355          X"$ac_file" : 'X\(//\)$' \| \
22356          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22357 echo X"$ac_file" |
22358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22359             s//\1/
22360             q
22361           }
22362           /^X\(\/\/\)[^/].*/{
22363             s//\1/
22364             q
22365           }
22366           /^X\(\/\/\)$/{
22367             s//\1/
22368             q
22369           }
22370           /^X\(\/\).*/{
22371             s//\1/
22372             q
22373           }
22374           s/.*/./; q'`
22375   { as_dir="$ac_dir"
22376   case $as_dir in #(
22377   -*) as_dir=./$as_dir;;
22378   esac
22379   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22380     as_dirs=
22381     while :; do
22382       case $as_dir in #(
22383       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22384       *) as_qdir=$as_dir;;
22385       esac
22386       as_dirs="'$as_qdir' $as_dirs"
22387       as_dir=`$as_dirname -- "$as_dir" ||
22388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389          X"$as_dir" : 'X\(//\)[^/]' \| \
22390          X"$as_dir" : 'X\(//\)$' \| \
22391          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22392 echo X"$as_dir" |
22393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22394             s//\1/
22395             q
22396           }
22397           /^X\(\/\/\)[^/].*/{
22398             s//\1/
22399             q
22400           }
22401           /^X\(\/\/\)$/{
22402             s//\1/
22403             q
22404           }
22405           /^X\(\/\).*/{
22406             s//\1/
22407             q
22408           }
22409           s/.*/./; q'`
22410       test -d "$as_dir" && break
22411     done
22412     test -z "$as_dirs" || eval "mkdir $as_dirs"
22413   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22414 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22415    { (exit 1); exit 1; }; }; }
22416   ac_builddir=.
22417
22418 case "$ac_dir" in
22419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22420 *)
22421   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22422   # A ".." for each directory in $ac_dir_suffix.
22423   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22424   case $ac_top_builddir_sub in
22425   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22426   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22427   esac ;;
22428 esac
22429 ac_abs_top_builddir=$ac_pwd
22430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22431 # for backward compatibility:
22432 ac_top_builddir=$ac_top_build_prefix
22433
22434 case $srcdir in
22435   .)  # We are building in place.
22436     ac_srcdir=.
22437     ac_top_srcdir=$ac_top_builddir_sub
22438     ac_abs_top_srcdir=$ac_pwd ;;
22439   [\\/]* | ?:[\\/]* )  # Absolute name.
22440     ac_srcdir=$srcdir$ac_dir_suffix;
22441     ac_top_srcdir=$srcdir
22442     ac_abs_top_srcdir=$srcdir ;;
22443   *) # Relative name.
22444     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22445     ac_top_srcdir=$ac_top_build_prefix$srcdir
22446     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22447 esac
22448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22449
22450
22451   case $ac_mode in
22452   :F)
22453   #
22454   # CONFIG_FILE
22455   #
22456
22457   case $INSTALL in
22458   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22459   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22460   esac
22461   ac_MKDIR_P=$MKDIR_P
22462   case $MKDIR_P in
22463   [\\/$]* | ?:[\\/]* ) ;;
22464   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22465   esac
22466 _ACEOF
22467
22468 cat >>$CONFIG_STATUS <<\_ACEOF
22469 # If the template does not know about datarootdir, expand it.
22470 # FIXME: This hack should be removed a few years after 2.60.
22471 ac_datarootdir_hack=; ac_datarootdir_seen=
22472
22473 case `sed -n '/datarootdir/ {
22474   p
22475   q
22476 }
22477 /@datadir@/p
22478 /@docdir@/p
22479 /@infodir@/p
22480 /@localedir@/p
22481 /@mandir@/p
22482 ' $ac_file_inputs` in
22483 *datarootdir*) ac_datarootdir_seen=yes;;
22484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22485   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22486 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22487 _ACEOF
22488 cat >>$CONFIG_STATUS <<_ACEOF
22489   ac_datarootdir_hack='
22490   s&@datadir@&$datadir&g
22491   s&@docdir@&$docdir&g
22492   s&@infodir@&$infodir&g
22493   s&@localedir@&$localedir&g
22494   s&@mandir@&$mandir&g
22495     s&\\\${datarootdir}&$datarootdir&g' ;;
22496 esac
22497 _ACEOF
22498
22499 # Neutralize VPATH when `$srcdir' = `.'.
22500 # Shell code in configure.ac might set extrasub.
22501 # FIXME: do we really want to maintain this feature?
22502 cat >>$CONFIG_STATUS <<_ACEOF
22503   sed "$ac_vpsub
22504 $extrasub
22505 _ACEOF
22506 cat >>$CONFIG_STATUS <<\_ACEOF
22507 :t
22508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22509 s&@configure_input@&$configure_input&;t t
22510 s&@top_builddir@&$ac_top_builddir_sub&;t t
22511 s&@srcdir@&$ac_srcdir&;t t
22512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22513 s&@top_srcdir@&$ac_top_srcdir&;t t
22514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22515 s&@builddir@&$ac_builddir&;t t
22516 s&@abs_builddir@&$ac_abs_builddir&;t t
22517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22518 s&@INSTALL@&$ac_INSTALL&;t t
22519 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22520 $ac_datarootdir_hack
22521 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22522
22523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22524   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22525   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22526   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22527 which seems to be undefined.  Please make sure it is defined." >&5
22528 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22529 which seems to be undefined.  Please make sure it is defined." >&2;}
22530
22531   rm -f "$tmp/stdin"
22532   case $ac_file in
22533   -) cat "$tmp/out"; rm -f "$tmp/out";;
22534   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22535   esac
22536  ;;
22537   :H)
22538   #
22539   # CONFIG_HEADER
22540   #
22541 _ACEOF
22542
22543 # Transform confdefs.h into a sed script `conftest.defines', that
22544 # substitutes the proper values into config.h.in to produce config.h.
22545 rm -f conftest.defines conftest.tail
22546 # First, append a space to every undef/define line, to ease matching.
22547 echo 's/$/ /' >conftest.defines
22548 # Then, protect against being on the right side of a sed subst, or in
22549 # an unquoted here document, in config.status.  If some macros were
22550 # called several times there might be several #defines for the same
22551 # symbol, which is useless.  But do not sort them, since the last
22552 # AC_DEFINE must be honored.
22553 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22554 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22555 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22556 # PARAMS is the parameter list in the macro definition--in most cases, it's
22557 # just an empty string.
22558 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22559 ac_dB='\\)[      (].*,\\1define\\2'
22560 ac_dC=' '
22561 ac_dD=' ,'
22562
22563 uniq confdefs.h |
22564   sed -n '
22565         t rset
22566         :rset
22567         s/^[     ]*#[    ]*define[       ][      ]*//
22568         t ok
22569         d
22570         :ok
22571         s/[\\&,]/\\&/g
22572         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22573         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22574   ' >>conftest.defines
22575
22576 # Remove the space that was appended to ease matching.
22577 # Then replace #undef with comments.  This is necessary, for
22578 # example, in the case of _POSIX_SOURCE, which is predefined and required
22579 # on some systems where configure will not decide to define it.
22580 # (The regexp can be short, since the line contains either #define or #undef.)
22581 echo 's/ $//
22582 s,^[     #]*u.*,/* & */,' >>conftest.defines
22583
22584 # Break up conftest.defines:
22585 ac_max_sed_lines=50
22586
22587 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22588 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22589 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22590 # et cetera.
22591 ac_in='$ac_file_inputs'
22592 ac_out='"$tmp/out1"'
22593 ac_nxt='"$tmp/out2"'
22594
22595 while :
22596 do
22597   # Write a here document:
22598     cat >>$CONFIG_STATUS <<_ACEOF
22599     # First, check the format of the line:
22600     cat >"\$tmp/defines.sed" <<\\CEOF
22601 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22602 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22603 b
22604 :def
22605 _ACEOF
22606   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22607   echo 'CEOF
22608     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22609   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22610   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22611   grep . conftest.tail >/dev/null || break
22612   rm -f conftest.defines
22613   mv conftest.tail conftest.defines
22614 done
22615 rm -f conftest.defines conftest.tail
22616
22617 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22618 cat >>$CONFIG_STATUS <<\_ACEOF
22619   if test x"$ac_file" != x-; then
22620     echo "/* $configure_input  */" >"$tmp/config.h"
22621     cat "$ac_result" >>"$tmp/config.h"
22622     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22623       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22624 echo "$as_me: $ac_file is unchanged" >&6;}
22625     else
22626       rm -f $ac_file
22627       mv "$tmp/config.h" $ac_file
22628     fi
22629   else
22630     echo "/* $configure_input  */"
22631     cat "$ac_result"
22632   fi
22633   rm -f "$tmp/out12"
22634 # Compute $ac_file's index in $config_headers.
22635 _am_stamp_count=1
22636 for _am_header in $config_headers :; do
22637   case $_am_header in
22638     $ac_file | $ac_file:* )
22639       break ;;
22640     * )
22641       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22642   esac
22643 done
22644 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22645 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22646          X$ac_file : 'X\(//\)[^/]' \| \
22647          X$ac_file : 'X\(//\)$' \| \
22648          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22649 echo X$ac_file |
22650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22651             s//\1/
22652             q
22653           }
22654           /^X\(\/\/\)[^/].*/{
22655             s//\1/
22656             q
22657           }
22658           /^X\(\/\/\)$/{
22659             s//\1/
22660             q
22661           }
22662           /^X\(\/\).*/{
22663             s//\1/
22664             q
22665           }
22666           s/.*/./; q'`/stamp-h$_am_stamp_count
22667  ;;
22668
22669   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22670 echo "$as_me: executing $ac_file commands" >&6;}
22671  ;;
22672   esac
22673
22674
22675   case $ac_file$ac_mode in
22676     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22677   # Strip MF so we end up with the name of the file.
22678   mf=`echo "$mf" | sed -e 's/:.*$//'`
22679   # Check whether this is an Automake generated Makefile or not.
22680   # We used to match only the files named `Makefile.in', but
22681   # some people rename them; so instead we look at the file content.
22682   # Grep'ing the first line is not enough: some people post-process
22683   # each Makefile.in and add a new line on top of each file to say so.
22684   # Grep'ing the whole file is not good either: AIX grep has a line
22685   # limit of 2048, but all sed's we know have understand at least 4000.
22686   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22687     dirpart=`$as_dirname -- "$mf" ||
22688 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22689          X"$mf" : 'X\(//\)[^/]' \| \
22690          X"$mf" : 'X\(//\)$' \| \
22691          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22692 echo X"$mf" |
22693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22694             s//\1/
22695             q
22696           }
22697           /^X\(\/\/\)[^/].*/{
22698             s//\1/
22699             q
22700           }
22701           /^X\(\/\/\)$/{
22702             s//\1/
22703             q
22704           }
22705           /^X\(\/\).*/{
22706             s//\1/
22707             q
22708           }
22709           s/.*/./; q'`
22710   else
22711     continue
22712   fi
22713   # Extract the definition of DEPDIR, am__include, and am__quote
22714   # from the Makefile without running `make'.
22715   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22716   test -z "$DEPDIR" && continue
22717   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22718   test -z "am__include" && continue
22719   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22720   # When using ansi2knr, U may be empty or an underscore; expand it
22721   U=`sed -n 's/^U = //p' < "$mf"`
22722   # Find all dependency output files, they are included files with
22723   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22724   # simplest approach to changing $(DEPDIR) to its actual value in the
22725   # expansion.
22726   for file in `sed -n "
22727     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22728        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22729     # Make sure the directory exists.
22730     test -f "$dirpart/$file" && continue
22731     fdir=`$as_dirname -- "$file" ||
22732 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22733          X"$file" : 'X\(//\)[^/]' \| \
22734          X"$file" : 'X\(//\)$' \| \
22735          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22736 echo X"$file" |
22737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22738             s//\1/
22739             q
22740           }
22741           /^X\(\/\/\)[^/].*/{
22742             s//\1/
22743             q
22744           }
22745           /^X\(\/\/\)$/{
22746             s//\1/
22747             q
22748           }
22749           /^X\(\/\).*/{
22750             s//\1/
22751             q
22752           }
22753           s/.*/./; q'`
22754     { as_dir=$dirpart/$fdir
22755   case $as_dir in #(
22756   -*) as_dir=./$as_dir;;
22757   esac
22758   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22759     as_dirs=
22760     while :; do
22761       case $as_dir in #(
22762       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22763       *) as_qdir=$as_dir;;
22764       esac
22765       as_dirs="'$as_qdir' $as_dirs"
22766       as_dir=`$as_dirname -- "$as_dir" ||
22767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22768          X"$as_dir" : 'X\(//\)[^/]' \| \
22769          X"$as_dir" : 'X\(//\)$' \| \
22770          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22771 echo X"$as_dir" |
22772     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22773             s//\1/
22774             q
22775           }
22776           /^X\(\/\/\)[^/].*/{
22777             s//\1/
22778             q
22779           }
22780           /^X\(\/\/\)$/{
22781             s//\1/
22782             q
22783           }
22784           /^X\(\/\).*/{
22785             s//\1/
22786             q
22787           }
22788           s/.*/./; q'`
22789       test -d "$as_dir" && break
22790     done
22791     test -z "$as_dirs" || eval "mkdir $as_dirs"
22792   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22793 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22794    { (exit 1); exit 1; }; }; }
22795     # echo "creating $dirpart/$file"
22796     echo '# dummy' > "$dirpart/$file"
22797   done
22798 done
22799  ;;
22800
22801   esac
22802 done # for ac_tag
22803
22804
22805 { (exit 0); exit 0; }
22806 _ACEOF
22807 chmod +x $CONFIG_STATUS
22808 ac_clean_files=$ac_clean_files_save
22809
22810
22811 # configure is writing to config.log, and then calls config.status.
22812 # config.status does its own redirection, appending to config.log.
22813 # Unfortunately, on DOS this fails, as config.log is still kept open
22814 # by configure, so config.status won't be able to write to it; its
22815 # output is simply discarded.  So we exec the FD to /dev/null,
22816 # effectively closing config.log, so it can be properly (re)opened and
22817 # appended to by config.status.  When coming back to configure, we
22818 # need to make the FD available again.
22819 if test "$no_create" != yes; then
22820   ac_cs_success=:
22821   ac_config_status_args=
22822   test "$silent" = yes &&
22823     ac_config_status_args="$ac_config_status_args --quiet"
22824   exec 5>/dev/null
22825   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22826   exec 5>>config.log
22827   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22828   # would make configure fail if this is the last instruction.
22829   $ac_cs_success || { (exit 1); exit 1; }
22830 fi
22831