Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz-2.1.28 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for yaz 2.1.28.
4 #
5 # Report bugs to <adam@indexdata.dk>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545   # Remove one level of quotation (which was required for Make).
546   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547   ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552   # Discard the --no-reexec flag, and continue.
553   shift
554 elif test "X$1" = X--fallback-echo; then
555   # Avoid inline document here, it may be left over
556   :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558   # Yippee, $echo works!
559   :
560 else
561   # Restart under the correct shell.
562   exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566   # used as fallback echo
567   shift
568   cat <<EOF
569 $*
570 EOF
571   exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584        echo_test_string=`eval $cmd` &&
585        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586     then
587       break
588     fi
589   done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594    test "X$echo_testing_string" = "X$echo_test_string"; then
595   :
596 else
597   # The Solaris, AIX, and Digital Unix default echo programs unquote
598   # backslashes.  This makes it impossible to quote backslashes using
599   #   echo "$something" | sed 's/\\/\\\\/g'
600   #
601   # So, first we look for a working echo in the user's PATH.
602
603   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604   for dir in $PATH /usr/ucb; do
605     IFS="$lt_save_ifs"
606     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609        test "X$echo_testing_string" = "X$echo_test_string"; then
610       echo="$dir/echo"
611       break
612     fi
613   done
614   IFS="$lt_save_ifs"
615
616   if test "X$echo" = Xecho; then
617     # We didn't find a better echo, so look for alternatives.
618     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620        test "X$echo_testing_string" = "X$echo_test_string"; then
621       # This shell has a builtin print -r that does the trick.
622       echo='print -r'
623     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624          test "X$CONFIG_SHELL" != X/bin/ksh; then
625       # If we have ksh, try running configure again with it.
626       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627       export ORIGINAL_CONFIG_SHELL
628       CONFIG_SHELL=/bin/ksh
629       export CONFIG_SHELL
630       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631     else
632       # Try using printf.
633       echo='printf %s\n'
634       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636          test "X$echo_testing_string" = "X$echo_test_string"; then
637         # Cool, printf works
638         :
639       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640            test "X$echo_testing_string" = 'X\t' &&
641            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642            test "X$echo_testing_string" = "X$echo_test_string"; then
643         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644         export CONFIG_SHELL
645         SHELL="$CONFIG_SHELL"
646         export SHELL
647         echo="$CONFIG_SHELL $0 --fallback-echo"
648       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649            test "X$echo_testing_string" = 'X\t' &&
650            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651            test "X$echo_testing_string" = "X$echo_test_string"; then
652         echo="$CONFIG_SHELL $0 --fallback-echo"
653       else
654         # maybe with a smaller string...
655         prev=:
656
657         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659           then
660             break
661           fi
662           prev="$cmd"
663         done
664
665         if test "$prev" != 'sed 50q "$0"'; then
666           echo_test_string=`eval $prev`
667           export echo_test_string
668           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669         else
670           # Oops.  We lost completely, so just stick with echo.
671           echo=echo
672         fi
673       fi
674     fi
675   fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='yaz'
715 PACKAGE_TARNAME='yaz'
716 PACKAGE_VERSION='2.1.28'
717 PACKAGE_STRING='yaz 2.1.28'
718 PACKAGE_BUGREPORT='adam@indexdata.dk'
719
720 ac_unique_file="configure.ac"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 #  include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 #  include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 INSTALL_PROGRAM
795 INSTALL_SCRIPT
796 INSTALL_DATA
797 CYGPATH_W
798 PACKAGE
799 VERSION
800 ACLOCAL
801 AUTOCONF
802 AUTOMAKE
803 AUTOHEADER
804 MAKEINFO
805 AMTAR
806 install_sh
807 STRIP
808 INSTALL_STRIP_PROGRAM
809 mkdir_p
810 AWK
811 SET_MAKE
812 am__leading_dot
813 READLINE_LIBS
814 YAZ_CONF_CFLAGS
815 CC
816 CFLAGS
817 LDFLAGS
818 CPPFLAGS
819 ac_ct_CC
820 EXEEXT
821 OBJEXT
822 DEPDIR
823 am__include
824 am__quote
825 AMDEP_TRUE
826 AMDEP_FALSE
827 AMDEPBACKSLASH
828 CCDEPMODE
829 am__fastdepCC_TRUE
830 am__fastdepCC_FALSE
831 CPP
832 YACC
833 TCLSH
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 GREP
843 EGREP
844 LN_S
845 ECHO
846 AR
847 RANLIB
848 CXX
849 CXXFLAGS
850 ac_ct_CXX
851 CXXDEPMODE
852 am__fastdepCXX_TRUE
853 am__fastdepCXX_FALSE
854 CXXCPP
855 F77
856 FFLAGS
857 ac_ct_F77
858 LIBTOOL
859 pkgconfigpath
860 XSLTPROC_COMPILE
861 MAN_COMPILE
862 HTML_COMPILE
863 TKL_COMPILE
864 DTD_DIR
865 DSSSL_DIR
866 XSL_DIR
867 SSL_CFLAGS
868 THREAD_CFLAGS
869 LIBPTH
870 XML2_CFLAGS
871 YAZ_CONFIG_CFLAGS
872 YAZ_SRC_ROOT
873 YAZ_BUILD_ROOT
874 LIBOBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 CPPFLAGS
884 CPP
885 CXX
886 CXXFLAGS
887 CCC
888 CXXCPP
889 F77
890 FFLAGS'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943   # If the previous option needs an argument, assign it.
944   if test -n "$ac_prev"; then
945     eval $ac_prev=\$ac_option
946     ac_prev=
947     continue
948   fi
949
950   case $ac_option in
951   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
997       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998    { (exit 1); exit 1; }; }
999     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1000     eval enable_$ac_feature=no ;;
1001
1002   -docdir | --docdir | --docdi | --doc | --do)
1003     ac_prev=docdir ;;
1004   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005     docdir=$ac_optarg ;;
1006
1007   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008     ac_prev=dvidir ;;
1009   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010     dvidir=$ac_optarg ;;
1011
1012   -enable-* | --enable-*)
1013     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1016       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017    { (exit 1); exit 1; }; }
1018     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1019     eval enable_$ac_feature=\$ac_optarg ;;
1020
1021   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023   | --exec | --exe | --ex)
1024     ac_prev=exec_prefix ;;
1025   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027   | --exec=* | --exe=* | --ex=*)
1028     exec_prefix=$ac_optarg ;;
1029
1030   -gas | --gas | --ga | --g)
1031     # Obsolete; use --with-gas.
1032     with_gas=yes ;;
1033
1034   -help | --help | --hel | --he | -h)
1035     ac_init_help=long ;;
1036   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037     ac_init_help=recursive ;;
1038   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039     ac_init_help=short ;;
1040
1041   -host | --host | --hos | --ho)
1042     ac_prev=host_alias ;;
1043   -host=* | --host=* | --hos=* | --ho=*)
1044     host_alias=$ac_optarg ;;
1045
1046   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047     ac_prev=htmldir ;;
1048   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049   | --ht=*)
1050     htmldir=$ac_optarg ;;
1051
1052   -includedir | --includedir | --includedi | --included | --include \
1053   | --includ | --inclu | --incl | --inc)
1054     ac_prev=includedir ;;
1055   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056   | --includ=* | --inclu=* | --incl=* | --inc=*)
1057     includedir=$ac_optarg ;;
1058
1059   -infodir | --infodir | --infodi | --infod | --info | --inf)
1060     ac_prev=infodir ;;
1061   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062     infodir=$ac_optarg ;;
1063
1064   -libdir | --libdir | --libdi | --libd)
1065     ac_prev=libdir ;;
1066   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067     libdir=$ac_optarg ;;
1068
1069   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070   | --libexe | --libex | --libe)
1071     ac_prev=libexecdir ;;
1072   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073   | --libexe=* | --libex=* | --libe=*)
1074     libexecdir=$ac_optarg ;;
1075
1076   -localedir | --localedir | --localedi | --localed | --locale)
1077     ac_prev=localedir ;;
1078   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079     localedir=$ac_optarg ;;
1080
1081   -localstatedir | --localstatedir | --localstatedi | --localstated \
1082   | --localstate | --localstat | --localsta | --localst | --locals)
1083     ac_prev=localstatedir ;;
1084   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086     localstatedir=$ac_optarg ;;
1087
1088   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089     ac_prev=mandir ;;
1090   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091     mandir=$ac_optarg ;;
1092
1093   -nfp | --nfp | --nf)
1094     # Obsolete; use --without-fp.
1095     with_fp=no ;;
1096
1097   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098   | --no-cr | --no-c | -n)
1099     no_create=yes ;;
1100
1101   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103     no_recursion=yes ;;
1104
1105   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107   | --oldin | --oldi | --old | --ol | --o)
1108     ac_prev=oldincludedir ;;
1109   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112     oldincludedir=$ac_optarg ;;
1113
1114   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115     ac_prev=prefix ;;
1116   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117     prefix=$ac_optarg ;;
1118
1119   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120   | --program-pre | --program-pr | --program-p)
1121     ac_prev=program_prefix ;;
1122   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124     program_prefix=$ac_optarg ;;
1125
1126   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127   | --program-suf | --program-su | --program-s)
1128     ac_prev=program_suffix ;;
1129   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131     program_suffix=$ac_optarg ;;
1132
1133   -program-transform-name | --program-transform-name \
1134   | --program-transform-nam | --program-transform-na \
1135   | --program-transform-n | --program-transform- \
1136   | --program-transform | --program-transfor \
1137   | --program-transfo | --program-transf \
1138   | --program-trans | --program-tran \
1139   | --progr-tra | --program-tr | --program-t)
1140     ac_prev=program_transform_name ;;
1141   -program-transform-name=* | --program-transform-name=* \
1142   | --program-transform-nam=* | --program-transform-na=* \
1143   | --program-transform-n=* | --program-transform-=* \
1144   | --program-transform=* | --program-transfor=* \
1145   | --program-transfo=* | --program-transf=* \
1146   | --program-trans=* | --program-tran=* \
1147   | --progr-tra=* | --program-tr=* | --program-t=*)
1148     program_transform_name=$ac_optarg ;;
1149
1150   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151     ac_prev=pdfdir ;;
1152   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153     pdfdir=$ac_optarg ;;
1154
1155   -psdir | --psdir | --psdi | --psd | --ps)
1156     ac_prev=psdir ;;
1157   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158     psdir=$ac_optarg ;;
1159
1160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161   | -silent | --silent | --silen | --sile | --sil)
1162     silent=yes ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1213       { echo "$as_me: error: invalid package name: $ac_package" >&2
1214    { (exit 1); exit 1; }; }
1215     ac_package=`echo $ac_package| sed 's/-/_/g'`
1216     eval with_$ac_package=\$ac_optarg ;;
1217
1218   -without-* | --without-*)
1219     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/-/_/g'`
1225     eval with_$ac_package=no ;;
1226
1227   --x)
1228     # Obsolete; use --with-x.
1229     with_x=yes ;;
1230
1231   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232   | --x-incl | --x-inc | --x-in | --x-i)
1233     ac_prev=x_includes ;;
1234   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236     x_includes=$ac_optarg ;;
1237
1238   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240     ac_prev=x_libraries ;;
1241   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243     x_libraries=$ac_optarg ;;
1244
1245   -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247    { (exit 1); exit 1; }; }
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255    { (exit 1); exit 1; }; }
1256     eval $ac_envvar=\$ac_optarg
1257     export $ac_envvar ;;
1258
1259   *)
1260     # FIXME: should be removed in autoconf 3.0.
1261     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265     ;;
1266
1267   esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272   { echo "$as_me: error: missing argument to $ac_option" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 # Be sure to have absolute directory names.
1277 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278                 datadir sysconfdir sharedstatedir localstatedir includedir \
1279                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280                 libdir localedir mandir
1281 do
1282   eval ac_val=\$$ac_var
1283   case $ac_val in
1284     [\\/$]* | ?:[\\/]* )  continue;;
1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286   esac
1287   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288    { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   { echo "$as_me: error: Working directory cannot be determined" >&2
1319    { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321   { echo "$as_me: error: pwd does not report name of working directory" >&2
1322    { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327   ac_srcdir_defaulted=yes
1328   # Try the directory containing this script, then the parent directory.
1329   ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331          X"$0" : 'X\(//\)[^/]' \| \
1332          X"$0" : 'X\(//\)$' \| \
1333          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 echo X"$0" |
1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)[^/].*/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\).*/{
1348             s//\1/
1349             q
1350           }
1351           s/.*/./; q'`
1352   srcdir=$ac_confdir
1353   if test ! -r "$srcdir/$ac_unique_file"; then
1354     srcdir=..
1355   fi
1356 else
1357   ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362    { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367    { (exit 1); exit 1; }; }
1368         pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371   srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures yaz 2.1.28 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR           user executables [EPREFIX/bin]
1428   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR       program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1433   --libdir=DIR           object code libraries [EPREFIX/lib]
1434   --includedir=DIR       C header files [PREFIX/include]
1435   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR          info documentation [DATAROOTDIR/info]
1439   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR           man documentation [DATAROOTDIR/man]
1441   --docdir=DIR           documentation root [DATAROOTDIR/doc/yaz]
1442   --htmldir=DIR          html documentation [DOCDIR]
1443   --dvidir=DIR           dvi documentation [DOCDIR]
1444   --pdfdir=DIR           pdf documentation [DOCDIR]
1445   --psdir=DIR            ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 Program names:
1451   --program-prefix=PREFIX            prepend PREFIX to installed program names
1452   --program-suffix=SUFFIX            append SUFFIX to installed program names
1453   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1454
1455 System types:
1456   --build=BUILD     configure for building on BUILD [guessed]
1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462   case $ac_init_help in
1463      short | recursive ) echo "Configuration of yaz 2.1.28:";;
1464    esac
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470   --disable-dependency-tracking  speeds up one-time build
1471   --enable-dependency-tracking   do not reject slow dependency extractors
1472   --enable-shared[=PKGS]  build shared libraries [default=yes]
1473   --enable-static[=PKGS]  build static libraries [default=yes]
1474   --enable-fast-install[=PKGS]
1475                           optimize for fast installation [default=yes]
1476   --disable-libtool-lock  avoid locking (might break parallel builds)
1477   --enable-tcpd=PREFIX  enable TCP wrapper for server if available
1478   --enable-pth            enable GNU threads
1479   --disable-threads       disable POSIX threads
1480   --enable-memdebug       enable memory debugging
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486   --with-pic              try to use only PIC/non-PIC objects [default=use
1487                           both]
1488   --with-tags[=TAGS]      include additional configurations [automatic]
1489   --with-docbook-dtd=DIR  use docbookx.dtd in DIR
1490   --with-docbook-dsssl=DIR use Docbook DSSSL in DIR/{html,print}/docbook.dsl
1491   --with-docbook-xsl=DIR  use Docbook XSL in DIR/{htmlhelp,xhtml}
1492   --with-openssl=PREFIX   OpenSSL library in PREFIX
1493   --with-iconv=PREFIX     iconv library in PREFIX
1494   --with-xml2[=PREFIX]    use libxml2 in PREFIX
1495   --with-xslt[=PREFIX]    use libXSLT in PREFIX
1496   --with-exslt[=PREFIX]   use libEXSLT in PREFIX
1497
1498 Some influential environment variables:
1499   CC          C compiler command
1500   CFLAGS      C compiler flags
1501   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502               nonstandard directory <lib dir>
1503   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   CXX         C++ compiler command
1507   CXXFLAGS    C++ compiler flags
1508   CXXCPP      C++ preprocessor
1509   F77         Fortran 77 compiler command
1510   FFLAGS      Fortran 77 compiler flags
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <adam@indexdata.dk>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" || continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 yaz configure 2.1.28
1577 generated by GNU Autoconf 2.60
1578
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584   exit
1585 fi
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1589
1590 It was created by yaz $as_me 2.1.28, which was
1591 generated by GNU Autoconf 2.60.  Invocation command line was
1592
1593   $ $0 $@
1594
1595 _ACEOF
1596 exec 5>>config.log
1597 {
1598 cat <<_ASUNAME
1599 ## --------- ##
1600 ## Platform. ##
1601 ## --------- ##
1602
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1611
1612 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1613 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1616 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1617 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1618 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1619
1620 _ASUNAME
1621
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625   IFS=$as_save_IFS
1626   test -z "$as_dir" && as_dir=.
1627   echo "PATH: $as_dir"
1628 done
1629 IFS=$as_save_IFS
1630
1631 } >&5
1632
1633 cat >&5 <<_ACEOF
1634
1635
1636 ## ----------- ##
1637 ## Core tests. ##
1638 ## ----------- ##
1639
1640 _ACEOF
1641
1642
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_configure_args=
1649 ac_configure_args0=
1650 ac_configure_args1=
1651 ac_must_keep_next=false
1652 for ac_pass in 1 2
1653 do
1654   for ac_arg
1655   do
1656     case $ac_arg in
1657     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659     | -silent | --silent | --silen | --sile | --sil)
1660       continue ;;
1661     *\'*)
1662       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663     esac
1664     case $ac_pass in
1665     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666     2)
1667       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668       if test $ac_must_keep_next = true; then
1669         ac_must_keep_next=false # Got value, back to normal.
1670       else
1671         case $ac_arg in
1672           *=* | --config-cache | -C | -disable-* | --disable-* \
1673           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675           | -with-* | --with-* | -without-* | --without-* | --x)
1676             case "$ac_configure_args0 " in
1677               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678             esac
1679             ;;
1680           -* ) ac_must_keep_next=true ;;
1681         esac
1682       fi
1683       ac_configure_args="$ac_configure_args '$ac_arg'"
1684       ;;
1685     esac
1686   done
1687 done
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log.  We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697   # Save into config.log some information that might help in debugging.
1698   {
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1705 _ASBOX
1706     echo
1707     # The following way of writing the cache mishandles newlines in values,
1708 (
1709   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710     eval ac_val=\$$ac_var
1711     case $ac_val in #(
1712     *${as_nl}*)
1713       case $ac_var in #(
1714       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716       esac
1717       case $ac_var in #(
1718       _ | IFS | as_nl) ;; #(
1719       *) $as_unset $ac_var ;;
1720       esac ;;
1721     esac
1722   done
1723   (set) 2>&1 |
1724     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725     *${as_nl}ac_space=\ *)
1726       sed -n \
1727         "s/'\''/'\''\\\\'\'''\''/g;
1728           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729       ;; #(
1730     *)
1731       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732       ;;
1733     esac |
1734     sort
1735 )
1736     echo
1737
1738     cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743     echo
1744     for ac_var in $ac_subst_vars
1745     do
1746       eval ac_val=\$$ac_var
1747       case $ac_val in
1748       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749       esac
1750       echo "$ac_var='\''$ac_val'\''"
1751     done | sort
1752     echo
1753
1754     if test -n "$ac_subst_files"; then
1755       cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760       echo
1761       for ac_var in $ac_subst_files
1762       do
1763         eval ac_val=\$$ac_var
1764         case $ac_val in
1765         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766         esac
1767         echo "$ac_var='\''$ac_val'\''"
1768       done | sort
1769       echo
1770     fi
1771
1772     if test -s confdefs.h; then
1773       cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778       echo
1779       cat confdefs.h
1780       echo
1781     fi
1782     test "$ac_signal" != 0 &&
1783       echo "$as_me: caught signal $ac_signal"
1784     echo "$as_me: exit $exit_status"
1785   } >&5
1786   rm -f core *.core core.conftest.* &&
1787     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788     exit $exit_status
1789 ' 0
1790 for ac_signal in 1 2 13 15; do
1791   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1794
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1797
1798 # Predefined preprocessor variables.
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1823
1824
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828   set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 else
1832   set x "$ac_default_prefix/share/config.site" \
1833         "$ac_default_prefix/etc/config.site"
1834 fi
1835 shift
1836 for ac_site_file
1837 do
1838   if test -r "$ac_site_file"; then
1839     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841     sed 's/^/| /' "$ac_site_file" >&5
1842     . "$ac_site_file"
1843   fi
1844 done
1845
1846 if test -r "$cache_file"; then
1847   # Some versions of bash will fail to source /dev/null (special
1848   # files actually), so we avoid doing that.
1849   if test -f "$cache_file"; then
1850     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1852     case $cache_file in
1853       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854       *)                      . "./$cache_file";;
1855     esac
1856   fi
1857 else
1858   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1860   >$cache_file
1861 fi
1862
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868   eval ac_new_set=\$ac_env_${ac_var}_set
1869   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870   eval ac_new_val=\$ac_env_${ac_var}_value
1871   case $ac_old_set,$ac_new_set in
1872     set,)
1873       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875       ac_cache_corrupted=: ;;
1876     ,set)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,);;
1881     *)
1882       if test "x$ac_old_val" != "x$ac_new_val"; then
1883         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1886 echo "$as_me:   former value:  $ac_old_val" >&2;}
1887         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1888 echo "$as_me:   current value: $ac_new_val" >&2;}
1889         ac_cache_corrupted=:
1890       fi;;
1891   esac
1892   # Pass precious variables to config.status.
1893   if test "$ac_new_set" = set; then
1894     case $ac_new_val in
1895     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896     *) ac_arg=$ac_var=$ac_new_val ;;
1897     esac
1898     case " $ac_configure_args " in
1899       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1900       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901     esac
1902   fi
1903 done
1904 if $ac_cache_corrupted; then
1905   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936 ac_ext=c
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941
1942
1943
1944 ac_aux_dir=
1945 for ac_dir in config "$srcdir"/config; do
1946   if test -f "$ac_dir/install-sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install-sh -c"
1949     break
1950   elif test -f "$ac_dir/install.sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install.sh -c"
1953     break
1954   elif test -f "$ac_dir/shtool"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/shtool install -c"
1957     break
1958   fi
1959 done
1960 if test -z "$ac_aux_dir"; then
1961   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1973
1974
1975 am__api_version="1.8"
1976 # Find a good install program.  We prefer a C program (faster),
1977 # so one script is as good as another.  But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1982 # AIX /bin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   # Account for people who put trailing slashes in PATH elements.
2001 case $as_dir/ in
2002   ./ | .// | /cC/* | \
2003   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005   /usr/ucb/* ) ;;
2006   *)
2007     # OSF1 and SCO ODT 3.0 have their own names for install.
2008     # Don't use installbsd from OSF since it installs stuff as root
2009     # by default.
2010     for ac_prog in ginstall scoinst install; do
2011       for ac_exec_ext in '' $ac_executable_extensions; do
2012         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013           if test $ac_prog = install &&
2014             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015             # AIX install.  It has an incompatible calling convention.
2016             :
2017           elif test $ac_prog = install &&
2018             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019             # program-specific install script used by HP pwplus--don't use.
2020             :
2021           else
2022             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2023             break 3
2024           fi
2025         fi
2026       done
2027     done
2028     ;;
2029 esac
2030 done
2031 IFS=$as_save_IFS
2032
2033
2034 fi
2035   if test "${ac_cv_path_install+set}" = set; then
2036     INSTALL=$ac_cv_path_install
2037   else
2038     # As a last resort, use the slow shell script.  Don't cache a
2039     # value for INSTALL within a source directory, because that will
2040     # break other packages using the cache if that directory is
2041     # removed, or if the value is a relative name.
2042     INSTALL=$ac_install_sh
2043   fi
2044 fi
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2047
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 # Just in case
2059 sleep 1
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments.  Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2065 # directory).
2066 if (
2067    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068    if test "$*" = "X"; then
2069       # -L didn't work.
2070       set X `ls -t $srcdir/configure conftest.file`
2071    fi
2072    rm -f conftest.file
2073    if test "$*" != "X $srcdir/configure conftest.file" \
2074       && test "$*" != "X conftest.file $srcdir/configure"; then
2075
2076       # If neither matched, then we have a broken ls.  This can happen
2077       # if, for instance, CONFIG_SHELL is bash and it inherits a
2078       # broken ls alias from the environment.  This has actually
2079       # happened.  Such a system could not be considered "sane".
2080       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2083 alias in your environment" >&2;}
2084    { (exit 1); exit 1; }; }
2085    fi
2086
2087    test "$2" = conftest.file
2088    )
2089 then
2090    # Ok.
2091    :
2092 else
2093    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097    { (exit 1); exit 1; }; }
2098 fi
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $.  echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2110 _ACEOF
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112 rm -f conftest.sed
2113
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2116
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120   am_missing_run="$MISSING --run "
2121 else
2122   am_missing_run=
2123   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 fi
2126
2127 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2128   # Keeping the `.' argument allows $(mkdir_p) to be used without
2129   # argument.  Indeed, we sometimes output rules like
2130   #   $(mkdir_p) $(somedir)
2131   # where $(somedir) is conditionally defined.
2132   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2133   # expensive solution, as it forces Make to start a sub-shell.)
2134   mkdir_p='mkdir -p -- .'
2135 else
2136   # On NextStep and OpenStep, the `mkdir' command does not
2137   # recognize any option.  It will interpret all options as
2138   # directories to create, and then abort because `.' already
2139   # exists.
2140   for d in ./-p ./--version;
2141   do
2142     test -d $d && rmdir $d
2143   done
2144   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2145   if test -f "$ac_aux_dir/mkinstalldirs"; then
2146     mkdir_p='$(mkinstalldirs)'
2147   else
2148     mkdir_p='$(install_sh) -d'
2149   fi
2150 fi
2151
2152 for ac_prog in gawk mawk nawk awk
2153 do
2154   # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_AWK+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test -n "$AWK"; then
2162   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_exec_ext in '' $ac_executable_extensions; do
2170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2171     ac_cv_prog_AWK="$ac_prog"
2172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173     break 2
2174   fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 AWK=$ac_cv_prog_AWK
2182 if test -n "$AWK"; then
2183   { echo "$as_me:$LINENO: result: $AWK" >&5
2184 echo "${ECHO_T}$AWK" >&6; }
2185 else
2186   { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191   test -n "$AWK" && break
2192 done
2193
2194 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2195 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2196 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2197 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   cat >conftest.make <<\_ACEOF
2201 SHELL = /bin/sh
2202 all:
2203         @echo '@@@%%%=$(MAKE)=@@@%%%'
2204 _ACEOF
2205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2206 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2207   *@@@%%%=?*=@@@%%%*)
2208     eval ac_cv_prog_make_${ac_make}_set=yes;;
2209   *)
2210     eval ac_cv_prog_make_${ac_make}_set=no;;
2211 esac
2212 rm -f conftest.make
2213 fi
2214 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2215   { echo "$as_me:$LINENO: result: yes" >&5
2216 echo "${ECHO_T}yes" >&6; }
2217   SET_MAKE=
2218 else
2219   { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2221   SET_MAKE="MAKE=${MAKE-make}"
2222 fi
2223
2224 rm -rf .tst 2>/dev/null
2225 mkdir .tst 2>/dev/null
2226 if test -d .tst; then
2227   am__leading_dot=.
2228 else
2229   am__leading_dot=_
2230 fi
2231 rmdir .tst 2>/dev/null
2232
2233 # test to see if srcdir already configured
2234 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2235    test -f $srcdir/config.status; then
2236   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2237 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 # test whether we have cygpath
2242 if test -z "$CYGPATH_W"; then
2243   if (cygpath --version) >/dev/null 2>/dev/null; then
2244     CYGPATH_W='cygpath -w'
2245   else
2246     CYGPATH_W=echo
2247   fi
2248 fi
2249
2250
2251 # Define the identity of the package.
2252  PACKAGE='yaz'
2253  VERSION='2.1.28'
2254
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE "$PACKAGE"
2258 _ACEOF
2259
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define VERSION "$VERSION"
2263 _ACEOF
2264
2265 # Some tools Automake needs.
2266
2267 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2268
2269
2270 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2271
2272
2273 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2274
2275
2276 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2277
2278
2279 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2280
2281
2282 AMTAR=${AMTAR-"${am_missing_run}tar"}
2283
2284 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2285
2286 # Installed binaries are usually stripped using `strip' when the user
2287 # run `make install-strip'.  However `strip' might not be the right
2288 # tool to use in cross-compilation environments, therefore Automake
2289 # will honor the `STRIP' environment variable to overrule this program.
2290 if test "$cross_compiling" != no; then
2291   if test -n "$ac_tool_prefix"; then
2292   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}strip; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_STRIP+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   if test -n "$STRIP"; then
2300   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2309     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318 fi
2319 STRIP=$ac_cv_prog_STRIP
2320 if test -n "$STRIP"; then
2321   { echo "$as_me:$LINENO: result: $STRIP" >&5
2322 echo "${ECHO_T}$STRIP" >&6; }
2323 else
2324   { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2326 fi
2327
2328
2329 fi
2330 if test -z "$ac_cv_prog_STRIP"; then
2331   ac_ct_STRIP=$STRIP
2332   # Extract the first word of "strip", so it can be a program name with args.
2333 set dummy strip; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$ac_ct_STRIP"; then
2340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2349     ac_cv_prog_ac_ct_STRIP="strip"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2360 if test -n "$ac_ct_STRIP"; then
2361   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2362 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2363 else
2364   { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366 fi
2367
2368   if test "x$ac_ct_STRIP" = x; then
2369     STRIP=":"
2370   else
2371     case $cross_compiling:$ac_tool_warned in
2372 yes:)
2373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet.  If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&5
2376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet.  If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2379 ac_tool_warned=yes ;;
2380 esac
2381     STRIP=$ac_ct_STRIP
2382   fi
2383 else
2384   STRIP="$ac_cv_prog_STRIP"
2385 fi
2386
2387 fi
2388 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2389
2390 # We need awk for the "check" target.  The system "awk" is bad on
2391 # some platforms.
2392
2393
2394
2395
2396
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402 if test -n "$ac_tool_prefix"; then
2403   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_CC+set}" = set; then
2408   echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410   if test -n "$CC"; then
2411   ac_cv_prog_CC="$CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423   fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432   { echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6; }
2434 else
2435   { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2437 fi
2438
2439
2440 fi
2441 if test -z "$ac_cv_prog_CC"; then
2442   ac_ct_CC=$CC
2443   # Extract the first word of "gcc", so it can be a program name with args.
2444 set dummy gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$ac_ct_CC"; then
2451   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   for ac_exec_ext in '' $ac_executable_extensions; do
2459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460     ac_cv_prog_ac_ct_CC="gcc"
2461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471 if test -n "$ac_ct_CC"; then
2472   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 echo "${ECHO_T}$ac_ct_CC" >&6; }
2474 else
2475   { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479   if test "x$ac_ct_CC" = x; then
2480     CC=""
2481   else
2482     case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet.  If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&5
2487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet.  If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492     CC=$ac_ct_CC
2493   fi
2494 else
2495   CC="$ac_cv_prog_CC"
2496 fi
2497
2498 if test -z "$CC"; then
2499           if test -n "$ac_tool_prefix"; then
2500     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2501 set dummy ${ac_tool_prefix}cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_CC="${ac_tool_prefix}cc"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 CC=$ac_cv_prog_CC
2528 if test -n "$CC"; then
2529   { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2531 else
2532   { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2534 fi
2535
2536
2537   fi
2538 fi
2539 if test -z "$CC"; then
2540   # Extract the first word of "cc", so it can be a program name with args.
2541 set dummy cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550   ac_prog_rejected=no
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554   IFS=$as_save_IFS
2555   test -z "$as_dir" && as_dir=.
2556   for ac_exec_ext in '' $ac_executable_extensions; do
2557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2558     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559        ac_prog_rejected=yes
2560        continue
2561      fi
2562     ac_cv_prog_CC="cc"
2563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 if test $ac_prog_rejected = yes; then
2571   # We found a bogon in the path, so make sure we never use it.
2572   set dummy $ac_cv_prog_CC
2573   shift
2574   if test $# != 0; then
2575     # We chose a different compiler from the bogus one.
2576     # However, it has the same basename, so the bogon will be chosen
2577     # first if we set CC to just the basename; use the full file name.
2578     shift
2579     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580   fi
2581 fi
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586   { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589   { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594 fi
2595 if test -z "$CC"; then
2596   if test -n "$ac_tool_prefix"; then
2597   for ac_prog in cl.exe
2598   do
2599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_CC+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$CC"; then
2607   ac_cv_prog_CC="$CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 CC=$ac_cv_prog_CC
2627 if test -n "$CC"; then
2628   { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2630 else
2631   { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636     test -n "$CC" && break
2637   done
2638 fi
2639 if test -z "$CC"; then
2640   ac_ct_CC=$CC
2641   for ac_prog in cl.exe
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$ac_ct_CC"; then
2651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_ac_ct_CC="$ac_prog"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673 echo "${ECHO_T}$ac_ct_CC" >&6; }
2674 else
2675   { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2677 fi
2678
2679
2680   test -n "$ac_ct_CC" && break
2681 done
2682
2683   if test "x$ac_ct_CC" = x; then
2684     CC=""
2685   else
2686     case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet.  If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet.  If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696     CC=$ac_ct_CC
2697   fi
2698 fi
2699
2700 fi
2701
2702
2703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: no acceptable C compiler found in \$PATH
2706 See \`config.log' for more details." >&2;}
2707    { (exit 1); exit 1; }; }
2708
2709 # Provide some information about the compiler.
2710 echo "$as_me:$LINENO: checking for C compiler version" >&5
2711 ac_compiler=`set X $ac_compile; echo $2`
2712 { (ac_try="$ac_compiler --version >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler --version >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722 { (ac_try="$ac_compiler -v >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler -v >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732 { (ac_try="$ac_compiler -V >&5"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compiler -V >&5") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2762 # of exeext.
2763 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2765 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2766 #
2767 # List of possible output files, starting from the most likely.
2768 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769 # only as a last resort.  b.out is created by i960 compilers.
2770 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771 #
2772 # The IRIX 6 linker writes into existing files which may not be
2773 # executable, retaining their permissions.  Remove them first so a
2774 # subsequent execution test works.
2775 ac_rmfiles=
2776 for ac_file in $ac_files
2777 do
2778   case $ac_file in
2779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781   esac
2782 done
2783 rm -f $ac_rmfiles
2784
2785 if { (ac_try="$ac_link_default"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791   (eval "$ac_link_default") 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; then
2795   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2798 # so that the user can short-circuit this test for compilers unknown to
2799 # Autoconf.
2800 for ac_file in $ac_files
2801 do
2802   test -f "$ac_file" || continue
2803   case $ac_file in
2804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2805         ;;
2806     [ab].out )
2807         # We found the default executable, but exeext='' is most
2808         # certainly right.
2809         break;;
2810     *.* )
2811         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812         then :; else
2813            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814         fi
2815         # We set ac_cv_exeext here because the later test for it is not
2816         # safe: cross compilers may not add the suffix if given an `-o'
2817         # argument, so we may need to know it at that point already.
2818         # Even if this section looks crufty: it has the advantage of
2819         # actually working.
2820         break;;
2821     * )
2822         break;;
2823   esac
2824 done
2825 test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: C compiler cannot create executables
2834 See \`config.log' for more details." >&2;}
2835    { (exit 77); exit 77; }; }
2836 fi
2837
2838 ac_exeext=$ac_cv_exeext
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2841
2842 # Check that the compiler produces executables we can run.  If not, either
2843 # the compiler is broken, or we cross compile.
2844 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847 # If not cross compiling, check that we can run a simple program.
2848 if test "$cross_compiling" != yes; then
2849   if { ac_try='./$ac_file'
2850   { (case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_try") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859     cross_compiling=no
2860   else
2861     if test "$cross_compiling" = maybe; then
2862         cross_compiling=yes
2863     else
2864         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot run C compiled programs.
2868 If you meant to cross compile, use \`--host'.
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871     fi
2872   fi
2873 fi
2874 { echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6; }
2876
2877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2878 ac_clean_files=$ac_clean_files_save
2879 # Check that the compiler produces executables we can run.  If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884 echo "${ECHO_T}$cross_compiling" >&6; }
2885
2886 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888 if { (ac_try="$ac_link"
2889 case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_link") 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; then
2898   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe'), while it won't with
2901 # `rm'.
2902 for ac_file in conftest.exe conftest conftest.*; do
2903   test -f "$ac_file" || continue
2904   case $ac_file in
2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2906     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907           break;;
2908     * ) break;;
2909   esac
2910 done
2911 else
2912   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details." >&2;}
2916    { (exit 1); exit 1; }; }
2917 fi
2918
2919 rm -f conftest$ac_cv_exeext
2920 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922
2923 rm -f conftest.$ac_ext
2924 EXEEXT=$ac_cv_exeext
2925 ac_exeext=$EXEEXT
2926 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2928 if test "${ac_cv_objext+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.o conftest.obj
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; then
2957   for ac_file in conftest.o conftest.obj conftest.*; do
2958   test -f "$ac_file" || continue;
2959   case $ac_file in
2960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2961     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962        break;;
2963   esac
2964 done
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 fi
2978 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979 echo "${ECHO_T}$ac_cv_objext" >&6; }
2980 OBJEXT=$ac_cv_objext
2981 ac_objext=$OBJEXT
2982 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2984 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h.  */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997 #ifndef __GNUC__
2998        choke me
2999 #endif
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   ac_compiler_gnu=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         ac_compiler_gnu=no
3045 fi
3046
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050 fi
3051 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053 GCC=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CFLAGS=${CFLAGS+set}
3055 ac_save_CFLAGS=$CFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cc_g+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   ac_save_c_werror_flag=$ac_c_werror_flag
3062    ac_c_werror_flag=yes
3063    ac_cv_prog_cc_g=no
3064    CFLAGS="-g"
3065    cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         CFLAGS=""
3120       cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174         ac_c_werror_flag=$ac_save_c_werror_flag
3175          CFLAGS="-g"
3176          cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206   { (case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_try") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; } &&
3215          { ac_try='test -s conftest.$ac_objext'
3216   { (case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_try") 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; }; then
3225   ac_cv_prog_cc_g=yes
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240    ac_c_werror_flag=$ac_save_c_werror_flag
3241 fi
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245   CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247   if test "$GCC" = yes; then
3248     CFLAGS="-g -O2"
3249   else
3250     CFLAGS="-g"
3251   fi
3252 else
3253   if test "$GCC" = yes; then
3254     CFLAGS="-O2"
3255   else
3256     CFLAGS=
3257   fi
3258 fi
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_cv_prog_cc_c89=no
3265 ac_save_CC=$CC
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <stdarg.h>
3273 #include <stdio.h>
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3280      char **p;
3281      int i;
3282 {
3283   return p[i];
3284 }
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3286 {
3287   char *s;
3288   va_list v;
3289   va_start (v,p);
3290   s = g (p, va_arg (v,int));
3291   va_end (v);
3292   return s;
3293 }
3294
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3296    function prototypes and stuff, but not '\xHH' hex character constants.
3297    These don't provoke an error unfortunately, instead are silently treated
3298    as 'x'.  The following induces an error, until -std is added to get
3299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3300    array size at least.  It's necessary to write '\x00'==0 to get something
3301    that's true only with -std.  */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305    inside strings and character constants.  */
3306 #define FOO(x) 'x'
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 int argc;
3314 char **argv;
3315 int
3316 main ()
3317 {
3318 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 do
3326   CC="$ac_save_CC $ac_arg"
3327   rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334   (eval "$ac_compile") 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } &&
3341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342   { (case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; } &&
3351          { ac_try='test -s conftest.$ac_objext'
3352   { (case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_try") 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_prog_cc_c89=$ac_arg
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366
3367 fi
3368
3369 rm -f core conftest.err conftest.$ac_objext
3370   test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3374
3375 fi
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3378   x)
3379     { echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6; } ;;
3381   xno)
3382     { echo "$as_me:$LINENO: result: unsupported" >&5
3383 echo "${ECHO_T}unsupported" >&6; } ;;
3384   *)
3385     CC="$CC $ac_cv_prog_cc_c89"
3386     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389
3390
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 DEPDIR="${am__leading_dot}deps"
3397
3398 ac_config_commands="$ac_config_commands depfiles"
3399
3400
3401 am_make=${MAKE-make}
3402 cat > confinc << 'END'
3403 am__doit:
3404         @echo done
3405 .PHONY: am__doit
3406 END
3407 # If we don't find an include directive, just comment out the code.
3408 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3409 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3410 am__include="#"
3411 am__quote=
3412 _am_result=none
3413 # First try GNU make style include.
3414 echo "include confinc" > confmf
3415 # We grep out `Entering directory' and `Leaving directory'
3416 # messages which can occur if `w' ends up in MAKEFLAGS.
3417 # In particular we don't look at `^make:' because GNU make might
3418 # be invoked under some other name (usually "gmake"), in which
3419 # case it prints its new name instead of `make'.
3420 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3421    am__include=include
3422    am__quote=
3423    _am_result=GNU
3424 fi
3425 # Now try BSD make style include.
3426 if test "$am__include" = "#"; then
3427    echo '.include "confinc"' > confmf
3428    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3429       am__include=.include
3430       am__quote="\""
3431       _am_result=BSD
3432    fi
3433 fi
3434
3435
3436 { echo "$as_me:$LINENO: result: $_am_result" >&5
3437 echo "${ECHO_T}$_am_result" >&6; }
3438 rm -f confinc confmf
3439
3440 # Check whether --enable-dependency-tracking was given.
3441 if test "${enable_dependency_tracking+set}" = set; then
3442   enableval=$enable_dependency_tracking;
3443 fi
3444
3445 if test "x$enable_dependency_tracking" != xno; then
3446   am_depcomp="$ac_aux_dir/depcomp"
3447   AMDEPBACKSLASH='\'
3448 fi
3449
3450
3451 if test "x$enable_dependency_tracking" != xno; then
3452   AMDEP_TRUE=
3453   AMDEP_FALSE='#'
3454 else
3455   AMDEP_TRUE='#'
3456   AMDEP_FALSE=
3457 fi
3458
3459
3460
3461
3462 depcc="$CC"   am_compiler_list=
3463
3464 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3465 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3466 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3470   # We make a subdir and do the tests there.  Otherwise we can end up
3471   # making bogus files that we don't know about and never remove.  For
3472   # instance it was reported that on HP-UX the gcc test will end up
3473   # making a dummy file named `D' -- because `-MD' means `put the output
3474   # in D'.
3475   mkdir conftest.dir
3476   # Copy depcomp to subdir because otherwise we won't find it if we're
3477   # using a relative directory.
3478   cp "$am_depcomp" conftest.dir
3479   cd conftest.dir
3480   # We will build objects and dependencies in a subdirectory because
3481   # it helps to detect inapplicable dependency modes.  For instance
3482   # both Tru64's cc and ICC support -MD to output dependencies as a
3483   # side effect of compilation, but ICC will put the dependencies in
3484   # the current directory while Tru64 will put them in the object
3485   # directory.
3486   mkdir sub
3487
3488   am_cv_CC_dependencies_compiler_type=none
3489   if test "$am_compiler_list" = ""; then
3490      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3491   fi
3492   for depmode in $am_compiler_list; do
3493     # Setup a source with many dependencies, because some compilers
3494     # like to wrap large dependency lists on column 80 (with \), and
3495     # we should not choose a depcomp mode which is confused by this.
3496     #
3497     # We need to recreate these files for each test, as the compiler may
3498     # overwrite some of them when testing with obscure command lines.
3499     # This happens at least with the AIX C compiler.
3500     : > sub/conftest.c
3501     for i in 1 2 3 4 5 6; do
3502       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3503       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3504       # Solaris 8's {/usr,}/bin/sh.
3505       touch sub/conftst$i.h
3506     done
3507     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3508
3509     case $depmode in
3510     nosideeffect)
3511       # after this tag, mechanisms are not by side-effect, so they'll
3512       # only be used when explicitly requested
3513       if test "x$enable_dependency_tracking" = xyes; then
3514         continue
3515       else
3516         break
3517       fi
3518       ;;
3519     none) break ;;
3520     esac
3521     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3522     # mode.  It turns out that the SunPro C++ compiler does not properly
3523     # handle `-M -o', and we need to detect this.
3524     if depmode=$depmode \
3525        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3526        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3527        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3528          >/dev/null 2>conftest.err &&
3529        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3530        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3531        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3532       # icc doesn't choke on unknown options, it will just issue warnings
3533       # or remarks (even with -Werror).  So we grep stderr for any message
3534       # that says an option was ignored or not supported.
3535       # When given -MP, icc 7.0 and 7.1 complain thusly:
3536       #   icc: Command line warning: ignoring option '-M'; no argument required
3537       # The diagnosis changed in icc 8.0:
3538       #   icc: Command line remark: option '-MP' not supported
3539       if (grep 'ignoring option' conftest.err ||
3540           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3541         am_cv_CC_dependencies_compiler_type=$depmode
3542         break
3543       fi
3544     fi
3545   done
3546
3547   cd ..
3548   rm -rf conftest.dir
3549 else
3550   am_cv_CC_dependencies_compiler_type=none
3551 fi
3552
3553 fi
3554 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3557
3558
3559
3560 if
3561   test "x$enable_dependency_tracking" != xno \
3562   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3563   am__fastdepCC_TRUE=
3564   am__fastdepCC_FALSE='#'
3565 else
3566   am__fastdepCC_TRUE='#'
3567   am__fastdepCC_FALSE=
3568 fi
3569
3570
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3577 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3578 # On Suns, sometimes $CPP names a directory.
3579 if test -n "$CPP" && test -d "$CPP"; then
3580   CPP=
3581 fi
3582 if test -z "$CPP"; then
3583   if test "${ac_cv_prog_CPP+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586       # Double quotes because CPP needs to be expanded
3587     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588     do
3589       ac_preproc_ok=false
3590 for ac_c_preproc_warn_flag in '' yes
3591 do
3592   # Use a header file that comes with gcc, so configuring glibc
3593   # with a fresh cross-compiler works.
3594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595   # <limits.h> exists even on freestanding compilers.
3596   # On the NeXT, cc -E runs the code through the compiler's parser,
3597   # not just through cpp. "Syntax error" is here to catch this case.
3598   cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 #ifdef __STDC__
3605 # include <limits.h>
3606 #else
3607 # include <assert.h>
3608 #endif
3609                      Syntax error
3610 _ACEOF
3611 if { (ac_try="$ac_cpp conftest.$ac_ext"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } >/dev/null; then
3624   if test -s conftest.err; then
3625     ac_cpp_err=$ac_c_preproc_warn_flag
3626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627   else
3628     ac_cpp_err=
3629   fi
3630 else
3631   ac_cpp_err=yes
3632 fi
3633 if test -z "$ac_cpp_err"; then
3634   :
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639   # Broken: fails on valid input.
3640 continue
3641 fi
3642
3643 rm -f conftest.err conftest.$ac_ext
3644
3645   # OK, works on sane cases.  Now check whether nonexistent headers
3646   # can be detected and how.
3647   cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h.  */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h.  */
3653 #include <ac_nonexistent.h>
3654 _ACEOF
3655 if { (ac_try="$ac_cpp conftest.$ac_ext"
3656 case "(($ac_try" in
3657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658   *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3662   ac_status=$?
3663   grep -v '^ *+' conftest.er1 >conftest.err
3664   rm -f conftest.er1
3665   cat conftest.err >&5
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); } >/dev/null; then
3668   if test -s conftest.err; then
3669     ac_cpp_err=$ac_c_preproc_warn_flag
3670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3671   else
3672     ac_cpp_err=
3673   fi
3674 else
3675   ac_cpp_err=yes
3676 fi
3677 if test -z "$ac_cpp_err"; then
3678   # Broken: success on invalid input.
3679 continue
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684   # Passes both tests.
3685 ac_preproc_ok=:
3686 break
3687 fi
3688
3689 rm -f conftest.err conftest.$ac_ext
3690
3691 done
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then
3695   break
3696 fi
3697
3698     done
3699     ac_cv_prog_CPP=$CPP
3700
3701 fi
3702   CPP=$ac_cv_prog_CPP
3703 else
3704   ac_cv_prog_CPP=$CPP
3705 fi
3706 { echo "$as_me:$LINENO: result: $CPP" >&5
3707 echo "${ECHO_T}$CPP" >&6; }
3708 ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3710 do
3711   # Use a header file that comes with gcc, so configuring glibc
3712   # with a fresh cross-compiler works.
3713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714   # <limits.h> exists even on freestanding compilers.
3715   # On the NeXT, cc -E runs the code through the compiler's parser,
3716   # not just through cpp. "Syntax error" is here to catch this case.
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723 #ifdef __STDC__
3724 # include <limits.h>
3725 #else
3726 # include <assert.h>
3727 #endif
3728                      Syntax error
3729 _ACEOF
3730 if { (ac_try="$ac_cpp conftest.$ac_ext"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } >/dev/null; then
3743   if test -s conftest.err; then
3744     ac_cpp_err=$ac_c_preproc_warn_flag
3745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3746   else
3747     ac_cpp_err=
3748   fi
3749 else
3750   ac_cpp_err=yes
3751 fi
3752 if test -z "$ac_cpp_err"; then
3753   :
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758   # Broken: fails on valid input.
3759 continue
3760 fi
3761
3762 rm -f conftest.err conftest.$ac_ext
3763
3764   # OK, works on sane cases.  Now check whether nonexistent headers
3765   # can be detected and how.
3766   cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h.  */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h.  */
3772 #include <ac_nonexistent.h>
3773 _ACEOF
3774 if { (ac_try="$ac_cpp conftest.$ac_ext"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3781   ac_status=$?
3782   grep -v '^ *+' conftest.er1 >conftest.err
3783   rm -f conftest.er1
3784   cat conftest.err >&5
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } >/dev/null; then
3787   if test -s conftest.err; then
3788     ac_cpp_err=$ac_c_preproc_warn_flag
3789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3790   else
3791     ac_cpp_err=
3792   fi
3793 else
3794   ac_cpp_err=yes
3795 fi
3796 if test -z "$ac_cpp_err"; then
3797   # Broken: success on invalid input.
3798 continue
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803   # Passes both tests.
3804 ac_preproc_ok=:
3805 break
3806 fi
3807
3808 rm -f conftest.err conftest.$ac_ext
3809
3810 done
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.err conftest.$ac_ext
3813 if $ac_preproc_ok; then
3814   :
3815 else
3816   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3819 See \`config.log' for more details." >&2;}
3820    { (exit 1); exit 1; }; }
3821 fi
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828
3829 for ac_prog in 'bison -y'
3830 do
3831   # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3835 if test "${ac_cv_prog_YACC+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   if test -n "$YACC"; then
3839   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3848     ac_cv_prog_YACC="$ac_prog"
3849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 YACC=$ac_cv_prog_YACC
3859 if test -n "$YACC"; then
3860   { echo "$as_me:$LINENO: result: $YACC" >&5
3861 echo "${ECHO_T}$YACC" >&6; }
3862 else
3863   { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3865 fi
3866
3867
3868   test -n "$YACC" && break
3869 done
3870
3871 test -z "$YACC" && { echo "$as_me:$LINENO: WARNING: GNU bison not found" >&5
3872 echo "$as_me: WARNING: GNU bison not found" >&2;}
3873 for ac_prog in tclsh8.5 tclsh8.4 tclsh8.3 tclsh8.2
3874 do
3875   # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3879 if test "${ac_cv_prog_TCLSH+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   if test -n "$TCLSH"; then
3883   ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_exec_ext in '' $ac_executable_extensions; do
3891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3892     ac_cv_prog_TCLSH="$ac_prog"
3893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897 done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 TCLSH=$ac_cv_prog_TCLSH
3903 if test -n "$TCLSH"; then
3904   { echo "$as_me:$LINENO: result: $TCLSH" >&5
3905 echo "${ECHO_T}$TCLSH" >&6; }
3906 else
3907   { echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6; }
3909 fi
3910
3911
3912   test -n "$TCLSH" && break
3913 done
3914 test -n "$TCLSH" || TCLSH="tclsh"
3915
3916 # Find a good install program.  We prefer a C program (faster),
3917 # so one script is as good as another.  But avoid the broken or
3918 # incompatible versions:
3919 # SysV /etc/install, /usr/sbin/install
3920 # SunOS /usr/etc/install
3921 # IRIX /sbin/install
3922 # AIX /bin/install
3923 # AmigaOS /C/install, which installs bootblocks on floppy discs
3924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3927 # OS/2's system install, which has a completely different semantic
3928 # ./install, which can be erroneously created by make from ./install.sh.
3929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3931 if test -z "$INSTALL"; then
3932 if test "${ac_cv_path_install+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   # Account for people who put trailing slashes in PATH elements.
3941 case $as_dir/ in
3942   ./ | .// | /cC/* | \
3943   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3944   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3945   /usr/ucb/* ) ;;
3946   *)
3947     # OSF1 and SCO ODT 3.0 have their own names for install.
3948     # Don't use installbsd from OSF since it installs stuff as root
3949     # by default.
3950     for ac_prog in ginstall scoinst install; do
3951       for ac_exec_ext in '' $ac_executable_extensions; do
3952         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3953           if test $ac_prog = install &&
3954             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3955             # AIX install.  It has an incompatible calling convention.
3956             :
3957           elif test $ac_prog = install &&
3958             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3959             # program-specific install script used by HP pwplus--don't use.
3960             :
3961           else
3962             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3963             break 3
3964           fi
3965         fi
3966       done
3967     done
3968     ;;
3969 esac
3970 done
3971 IFS=$as_save_IFS
3972
3973
3974 fi
3975   if test "${ac_cv_path_install+set}" = set; then
3976     INSTALL=$ac_cv_path_install
3977   else
3978     # As a last resort, use the slow shell script.  Don't cache a
3979     # value for INSTALL within a source directory, because that will
3980     # break other packages using the cache if that directory is
3981     # removed, or if the value is a relative name.
3982     INSTALL=$ac_install_sh
3983   fi
3984 fi
3985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3986 echo "${ECHO_T}$INSTALL" >&6; }
3987
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993
3994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995
3996 # Check whether --enable-shared was given.
3997 if test "${enable_shared+set}" = set; then
3998   enableval=$enable_shared; p=${PACKAGE-default}
3999     case $enableval in
4000     yes) enable_shared=yes ;;
4001     no) enable_shared=no ;;
4002     *)
4003       enable_shared=no
4004       # Look at the argument we got.  We use all the common list separators.
4005       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4006       for pkg in $enableval; do
4007         IFS="$lt_save_ifs"
4008         if test "X$pkg" = "X$p"; then
4009           enable_shared=yes
4010         fi
4011       done
4012       IFS="$lt_save_ifs"
4013       ;;
4014     esac
4015 else
4016   enable_shared=yes
4017 fi
4018
4019
4020 # Check whether --enable-static was given.
4021 if test "${enable_static+set}" = set; then
4022   enableval=$enable_static; p=${PACKAGE-default}
4023     case $enableval in
4024     yes) enable_static=yes ;;
4025     no) enable_static=no ;;
4026     *)
4027      enable_static=no
4028       # Look at the argument we got.  We use all the common list separators.
4029       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4030       for pkg in $enableval; do
4031         IFS="$lt_save_ifs"
4032         if test "X$pkg" = "X$p"; then
4033           enable_static=yes
4034         fi
4035       done
4036       IFS="$lt_save_ifs"
4037       ;;
4038     esac
4039 else
4040   enable_static=yes
4041 fi
4042
4043
4044 # Check whether --enable-fast-install was given.
4045 if test "${enable_fast_install+set}" = set; then
4046   enableval=$enable_fast_install; p=${PACKAGE-default}
4047     case $enableval in
4048     yes) enable_fast_install=yes ;;
4049     no) enable_fast_install=no ;;
4050     *)
4051       enable_fast_install=no
4052       # Look at the argument we got.  We use all the common list separators.
4053       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4054       for pkg in $enableval; do
4055         IFS="$lt_save_ifs"
4056         if test "X$pkg" = "X$p"; then
4057           enable_fast_install=yes
4058         fi
4059       done
4060       IFS="$lt_save_ifs"
4061       ;;
4062     esac
4063 else
4064   enable_fast_install=yes
4065 fi
4066
4067
4068 # Make sure we can run config.sub.
4069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4070   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4071 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4072    { (exit 1); exit 1; }; }
4073
4074 { echo "$as_me:$LINENO: checking build system type" >&5
4075 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4076 if test "${ac_cv_build+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   ac_build_alias=$build_alias
4080 test "x$ac_build_alias" = x &&
4081   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4082 test "x$ac_build_alias" = x &&
4083   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4084 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4085    { (exit 1); exit 1; }; }
4086 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4087   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4089    { (exit 1); exit 1; }; }
4090
4091 fi
4092 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4093 echo "${ECHO_T}$ac_cv_build" >&6; }
4094 case $ac_cv_build in
4095 *-*-*) ;;
4096 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4097 echo "$as_me: error: invalid value of canonical build" >&2;}
4098    { (exit 1); exit 1; }; };;
4099 esac
4100 build=$ac_cv_build
4101 ac_save_IFS=$IFS; IFS='-'
4102 set x $ac_cv_build
4103 shift
4104 build_cpu=$1
4105 build_vendor=$2
4106 shift; shift
4107 # Remember, the first character of IFS is used to create $*,
4108 # except with old shells:
4109 build_os=$*
4110 IFS=$ac_save_IFS
4111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4112
4113
4114 { echo "$as_me:$LINENO: checking host system type" >&5
4115 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4116 if test "${ac_cv_host+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   if test "x$host_alias" = x; then
4120   ac_cv_host=$ac_cv_build
4121 else
4122   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4123     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4124 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4125    { (exit 1); exit 1; }; }
4126 fi
4127
4128 fi
4129 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4130 echo "${ECHO_T}$ac_cv_host" >&6; }
4131 case $ac_cv_host in
4132 *-*-*) ;;
4133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4134 echo "$as_me: error: invalid value of canonical host" >&2;}
4135    { (exit 1); exit 1; }; };;
4136 esac
4137 host=$ac_cv_host
4138 ac_save_IFS=$IFS; IFS='-'
4139 set x $ac_cv_host
4140 shift
4141 host_cpu=$1
4142 host_vendor=$2
4143 shift; shift
4144 # Remember, the first character of IFS is used to create $*,
4145 # except with old shells:
4146 host_os=$*
4147 IFS=$ac_save_IFS
4148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4149
4150
4151 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4152 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4153 if test "${lt_cv_path_SED+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   # Loop through the user's path and test for sed and gsed.
4157 # Then use that list of sed's as ones to test for truncation.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163   for lt_ac_prog in sed gsed; do
4164     for ac_exec_ext in '' $ac_executable_extensions; do
4165       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4166         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4167       fi
4168     done
4169   done
4170 done
4171 lt_ac_max=0
4172 lt_ac_count=0
4173 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4174 # along with /bin/sed that truncates output.
4175 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4176   test ! -f $lt_ac_sed && continue
4177   cat /dev/null > conftest.in
4178   lt_ac_count=0
4179   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4180   # Check for GNU sed and select it if it is found.
4181   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4182     lt_cv_path_SED=$lt_ac_sed
4183     break
4184   fi
4185   while true; do
4186     cat conftest.in conftest.in >conftest.tmp
4187     mv conftest.tmp conftest.in
4188     cp conftest.in conftest.nl
4189     echo >>conftest.nl
4190     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4191     cmp -s conftest.out conftest.nl || break
4192     # 10000 chars as input seems more than enough
4193     test $lt_ac_count -gt 10 && break
4194     lt_ac_count=`expr $lt_ac_count + 1`
4195     if test $lt_ac_count -gt $lt_ac_max; then
4196       lt_ac_max=$lt_ac_count
4197       lt_cv_path_SED=$lt_ac_sed
4198     fi
4199   done
4200 done
4201
4202 fi
4203
4204 SED=$lt_cv_path_SED
4205 { echo "$as_me:$LINENO: result: $SED" >&5
4206 echo "${ECHO_T}$SED" >&6; }
4207
4208 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4209 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4210 if test "${ac_cv_path_GREP+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   # Extract the first word of "grep ggrep" to use in msg output
4214 if test -z "$GREP"; then
4215 set dummy grep ggrep; ac_prog_name=$2
4216 if test "${ac_cv_path_GREP+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   ac_path_GREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226   for ac_prog in grep ggrep; do
4227   for ac_exec_ext in '' $ac_executable_extensions; do
4228     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4230     # Check for GNU ac_path_GREP and select it if it is found.
4231   # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4233 *GNU*)
4234   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235 *)
4236   ac_count=0
4237   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4238   while :
4239   do
4240     cat "conftest.in" "conftest.in" >"conftest.tmp"
4241     mv "conftest.tmp" "conftest.in"
4242     cp "conftest.in" "conftest.nl"
4243     echo 'GREP' >> "conftest.nl"
4244     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246     ac_count=`expr $ac_count + 1`
4247     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248       # Best one so far, save it but keep looking for a better one
4249       ac_cv_path_GREP="$ac_path_GREP"
4250       ac_path_GREP_max=$ac_count
4251     fi
4252     # 10*(2^10) chars as input seems more than enough
4253     test $ac_count -gt 10 && break
4254   done
4255   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258
4259     $ac_path_GREP_found && break 3
4260   done
4261 done
4262
4263 done
4264 IFS=$as_save_IFS
4265
4266
4267 fi
4268
4269 GREP="$ac_cv_path_GREP"
4270 if test -z "$GREP"; then
4271   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273    { (exit 1); exit 1; }; }
4274 fi
4275
4276 else
4277   ac_cv_path_GREP=$GREP
4278 fi
4279
4280
4281 fi
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4284  GREP="$ac_cv_path_GREP"
4285
4286
4287 { echo "$as_me:$LINENO: checking for egrep" >&5
4288 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4289 if test "${ac_cv_path_EGREP+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4293    then ac_cv_path_EGREP="$GREP -E"
4294    else
4295      # Extract the first word of "egrep" to use in msg output
4296 if test -z "$EGREP"; then
4297 set dummy egrep; ac_prog_name=$2
4298 if test "${ac_cv_path_EGREP+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_path_EGREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308   for ac_prog in egrep; do
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4311     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4312     # Check for GNU ac_path_EGREP and select it if it is found.
4313   # Check for GNU $ac_path_EGREP
4314 case `"$ac_path_EGREP" --version 2>&1` in
4315 *GNU*)
4316   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4317 *)
4318   ac_count=0
4319   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4320   while :
4321   do
4322     cat "conftest.in" "conftest.in" >"conftest.tmp"
4323     mv "conftest.tmp" "conftest.in"
4324     cp "conftest.in" "conftest.nl"
4325     echo 'EGREP' >> "conftest.nl"
4326     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328     ac_count=`expr $ac_count + 1`
4329     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4330       # Best one so far, save it but keep looking for a better one
4331       ac_cv_path_EGREP="$ac_path_EGREP"
4332       ac_path_EGREP_max=$ac_count
4333     fi
4334     # 10*(2^10) chars as input seems more than enough
4335     test $ac_count -gt 10 && break
4336   done
4337   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338 esac
4339
4340
4341     $ac_path_EGREP_found && break 3
4342   done
4343 done
4344
4345 done
4346 IFS=$as_save_IFS
4347
4348
4349 fi
4350
4351 EGREP="$ac_cv_path_EGREP"
4352 if test -z "$EGREP"; then
4353   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355    { (exit 1); exit 1; }; }
4356 fi
4357
4358 else
4359   ac_cv_path_EGREP=$EGREP
4360 fi
4361
4362
4363    fi
4364 fi
4365 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4366 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4367  EGREP="$ac_cv_path_EGREP"
4368
4369
4370
4371 # Check whether --with-gnu-ld was given.
4372 if test "${with_gnu_ld+set}" = set; then
4373   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4374 else
4375   with_gnu_ld=no
4376 fi
4377
4378 ac_prog=ld
4379 if test "$GCC" = yes; then
4380   # Check if gcc -print-prog-name=ld gives a path.
4381   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4382 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4383   case $host in
4384   *-*-mingw*)
4385     # gcc leaves a trailing carriage return which upsets mingw
4386     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4387   *)
4388     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4389   esac
4390   case $ac_prog in
4391     # Accept absolute paths.
4392     [\\/]* | ?:[\\/]*)
4393       re_direlt='/[^/][^/]*/\.\./'
4394       # Canonicalize the pathname of ld
4395       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4396       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4397         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4398       done
4399       test -z "$LD" && LD="$ac_prog"
4400       ;;
4401   "")
4402     # If it fails, then pretend we aren't using GCC.
4403     ac_prog=ld
4404     ;;
4405   *)
4406     # If it is relative, then search for the first ld in PATH.
4407     with_gnu_ld=unknown
4408     ;;
4409   esac
4410 elif test "$with_gnu_ld" = yes; then
4411   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4412 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4413 else
4414   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4415 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4416 fi
4417 if test "${lt_cv_path_LD+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test -z "$LD"; then
4421   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422   for ac_dir in $PATH; do
4423     IFS="$lt_save_ifs"
4424     test -z "$ac_dir" && ac_dir=.
4425     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4426       lt_cv_path_LD="$ac_dir/$ac_prog"
4427       # Check to see if the program is GNU ld.  I'd rather use --version,
4428       # but apparently some variants of GNU ld only accept -v.
4429       # Break only if it was the GNU/non-GNU ld that we prefer.
4430       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4431       *GNU* | *'with BFD'*)
4432         test "$with_gnu_ld" != no && break
4433         ;;
4434       *)
4435         test "$with_gnu_ld" != yes && break
4436         ;;
4437       esac
4438     fi
4439   done
4440   IFS="$lt_save_ifs"
4441 else
4442   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4443 fi
4444 fi
4445
4446 LD="$lt_cv_path_LD"
4447 if test -n "$LD"; then
4448   { echo "$as_me:$LINENO: result: $LD" >&5
4449 echo "${ECHO_T}$LD" >&6; }
4450 else
4451   { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4453 fi
4454 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4455 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4456    { (exit 1); exit 1; }; }
4457 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4458 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4459 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4463 case `$LD -v 2>&1 </dev/null` in
4464 *GNU* | *'with BFD'*)
4465   lt_cv_prog_gnu_ld=yes
4466   ;;
4467 *)
4468   lt_cv_prog_gnu_ld=no
4469   ;;
4470 esac
4471 fi
4472 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4473 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4474 with_gnu_ld=$lt_cv_prog_gnu_ld
4475
4476
4477 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4478 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4479 if test "${lt_cv_ld_reload_flag+set}" = set; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   lt_cv_ld_reload_flag='-r'
4483 fi
4484 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4485 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4486 reload_flag=$lt_cv_ld_reload_flag
4487 case $reload_flag in
4488 "" | " "*) ;;
4489 *) reload_flag=" $reload_flag" ;;
4490 esac
4491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4492 case $host_os in
4493   darwin*)
4494     if test "$GCC" = yes; then
4495       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4496     else
4497       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4498     fi
4499     ;;
4500 esac
4501
4502 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4503 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4504 if test "${lt_cv_path_NM+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   if test -n "$NM"; then
4508   # Let the user override the test.
4509   lt_cv_path_NM="$NM"
4510 else
4511   lt_nm_to_check="${ac_tool_prefix}nm"
4512   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4513     lt_nm_to_check="$lt_nm_to_check nm"
4514   fi
4515   for lt_tmp_nm in $lt_nm_to_check; do
4516     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4517     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4518       IFS="$lt_save_ifs"
4519       test -z "$ac_dir" && ac_dir=.
4520       tmp_nm="$ac_dir/$lt_tmp_nm"
4521       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4522         # Check to see if the nm accepts a BSD-compat flag.
4523         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4524         #   nm: unknown option "B" ignored
4525         # Tru64's nm complains that /dev/null is an invalid object file
4526         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4527         */dev/null* | *'Invalid file or object type'*)
4528           lt_cv_path_NM="$tmp_nm -B"
4529           break
4530           ;;
4531         *)
4532           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4533           */dev/null*)
4534             lt_cv_path_NM="$tmp_nm -p"
4535             break
4536             ;;
4537           *)
4538             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4539             continue # so that we can try to find one that supports BSD flags
4540             ;;
4541           esac
4542           ;;
4543         esac
4544       fi
4545     done
4546     IFS="$lt_save_ifs"
4547   done
4548   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4549 fi
4550 fi
4551 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4552 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4553 NM="$lt_cv_path_NM"
4554
4555 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4557 LN_S=$as_ln_s
4558 if test "$LN_S" = "ln -s"; then
4559   { echo "$as_me:$LINENO: result: yes" >&5
4560 echo "${ECHO_T}yes" >&6; }
4561 else
4562   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4563 echo "${ECHO_T}no, using $LN_S" >&6; }
4564 fi
4565
4566 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4567 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4568 if test "${lt_cv_deplibs_check_method+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   lt_cv_file_magic_cmd='$MAGIC_CMD'
4572 lt_cv_file_magic_test_file=
4573 lt_cv_deplibs_check_method='unknown'
4574 # Need to set the preceding variable on all platforms that support
4575 # interlibrary dependencies.
4576 # 'none' -- dependencies not supported.
4577 # `unknown' -- same as none, but documents that we really don't know.
4578 # 'pass_all' -- all dependencies passed with no checks.
4579 # 'test_compile' -- check by making test program.
4580 # 'file_magic [[regex]]' -- check by looking for files in library path
4581 # which responds to the $file_magic_cmd with a given extended regex.
4582 # If you have `file' or equivalent on your system and you're not sure
4583 # whether `pass_all' will *always* work, you probably want this one.
4584
4585 case $host_os in
4586 aix4* | aix5*)
4587   lt_cv_deplibs_check_method=pass_all
4588   ;;
4589
4590 beos*)
4591   lt_cv_deplibs_check_method=pass_all
4592   ;;
4593
4594 bsdi[45]*)
4595   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4596   lt_cv_file_magic_cmd='/usr/bin/file -L'
4597   lt_cv_file_magic_test_file=/shlib/libc.so
4598   ;;
4599
4600 cygwin*)
4601   # func_win32_libid is a shell function defined in ltmain.sh
4602   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4603   lt_cv_file_magic_cmd='func_win32_libid'
4604   ;;
4605
4606 mingw* | pw32*)
4607   # Base MSYS/MinGW do not provide the 'file' command needed by
4608   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4609   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4610   lt_cv_file_magic_cmd='$OBJDUMP -f'
4611   ;;
4612
4613 darwin* | rhapsody*)
4614   lt_cv_deplibs_check_method=pass_all
4615   ;;
4616
4617 freebsd* | dragonfly*)
4618   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4619     case $host_cpu in
4620     i*86 )
4621       # Not sure whether the presence of OpenBSD here was a mistake.
4622       # Let's accept both of them until this is cleared up.
4623       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4624       lt_cv_file_magic_cmd=/usr/bin/file
4625       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4626       ;;
4627     esac
4628   else
4629     lt_cv_deplibs_check_method=pass_all
4630   fi
4631   ;;
4632
4633 gnu*)
4634   lt_cv_deplibs_check_method=pass_all
4635   ;;
4636
4637 hpux10.20* | hpux11*)
4638   lt_cv_file_magic_cmd=/usr/bin/file
4639   case $host_cpu in
4640   ia64*)
4641     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4642     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4643     ;;
4644   hppa*64*)
4645     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]'
4646     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4647     ;;
4648   *)
4649     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4650     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4651     ;;
4652   esac
4653   ;;
4654
4655 interix3*)
4656   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4657   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4658   ;;
4659
4660 irix5* | irix6* | nonstopux*)
4661   case $LD in
4662   *-32|*"-32 ") libmagic=32-bit;;
4663   *-n32|*"-n32 ") libmagic=N32;;
4664   *-64|*"-64 ") libmagic=64-bit;;
4665   *) libmagic=never-match;;
4666   esac
4667   lt_cv_deplibs_check_method=pass_all
4668   ;;
4669
4670 # This must be Linux ELF.
4671 linux* | k*bsd*-gnu)
4672   lt_cv_deplibs_check_method=pass_all
4673   ;;
4674
4675 netbsd* | netbsdelf*-gnu)
4676   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4677     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4678   else
4679     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4680   fi
4681   ;;
4682
4683 newos6*)
4684   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4685   lt_cv_file_magic_cmd=/usr/bin/file
4686   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4687   ;;
4688
4689 nto-qnx*)
4690   lt_cv_deplibs_check_method=unknown
4691   ;;
4692
4693 openbsd*)
4694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4696   else
4697     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4698   fi
4699   ;;
4700
4701 osf3* | osf4* | osf5*)
4702   lt_cv_deplibs_check_method=pass_all
4703   ;;
4704
4705 solaris*)
4706   lt_cv_deplibs_check_method=pass_all
4707   ;;
4708
4709 sysv4 | sysv4.3*)
4710   case $host_vendor in
4711   motorola)
4712     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]'
4713     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4714     ;;
4715   ncr)
4716     lt_cv_deplibs_check_method=pass_all
4717     ;;
4718   sequent)
4719     lt_cv_file_magic_cmd='/bin/file'
4720     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4721     ;;
4722   sni)
4723     lt_cv_file_magic_cmd='/bin/file'
4724     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4725     lt_cv_file_magic_test_file=/lib/libc.so
4726     ;;
4727   siemens)
4728     lt_cv_deplibs_check_method=pass_all
4729     ;;
4730   pc)
4731     lt_cv_deplibs_check_method=pass_all
4732     ;;
4733   esac
4734   ;;
4735
4736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4737   lt_cv_deplibs_check_method=pass_all
4738   ;;
4739 esac
4740
4741 fi
4742 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4743 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4744 file_magic_cmd=$lt_cv_file_magic_cmd
4745 deplibs_check_method=$lt_cv_deplibs_check_method
4746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4747
4748
4749
4750
4751 # If no C compiler was specified, use CC.
4752 LTCC=${LTCC-"$CC"}
4753
4754 # If no C compiler flags were specified, use CFLAGS.
4755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4756
4757 # Allow CC to be a program name with arguments.
4758 compiler=$CC
4759
4760
4761 # Check whether --enable-libtool-lock was given.
4762 if test "${enable_libtool_lock+set}" = set; then
4763   enableval=$enable_libtool_lock;
4764 fi
4765
4766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4767
4768 # Some flags need to be propagated to the compiler or linker for good
4769 # libtool support.
4770 case $host in
4771 ia64-*-hpux*)
4772   # Find out which ABI we are using.
4773   echo 'int i;' > conftest.$ac_ext
4774   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; then
4779     case `/usr/bin/file conftest.$ac_objext` in
4780     *ELF-32*)
4781       HPUX_IA64_MODE="32"
4782       ;;
4783     *ELF-64*)
4784       HPUX_IA64_MODE="64"
4785       ;;
4786     esac
4787   fi
4788   rm -rf conftest*
4789   ;;
4790 *-*-irix6*)
4791   # Find out which ABI we are using.
4792   echo '#line 4792 "configure"' > conftest.$ac_ext
4793   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794   (eval $ac_compile) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; then
4798    if test "$lt_cv_prog_gnu_ld" = yes; then
4799     case `/usr/bin/file conftest.$ac_objext` in
4800     *32-bit*)
4801       LD="${LD-ld} -melf32bsmip"
4802       ;;
4803     *N32*)
4804       LD="${LD-ld} -melf32bmipn32"
4805       ;;
4806     *64-bit*)
4807       LD="${LD-ld} -melf64bmip"
4808       ;;
4809     esac
4810    else
4811     case `/usr/bin/file conftest.$ac_objext` in
4812     *32-bit*)
4813       LD="${LD-ld} -32"
4814       ;;
4815     *N32*)
4816       LD="${LD-ld} -n32"
4817       ;;
4818     *64-bit*)
4819       LD="${LD-ld} -64"
4820       ;;
4821     esac
4822    fi
4823   fi
4824   rm -rf conftest*
4825   ;;
4826
4827 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4828   # Find out which ABI we are using.
4829   echo 'int i;' > conftest.$ac_ext
4830   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; then
4835     case `/usr/bin/file conftest.o` in
4836     *32-bit*)
4837       case $host in
4838         x86_64-*linux*)
4839           LD="${LD-ld} -m elf_i386"
4840           ;;
4841         ppc64-*linux*|powerpc64-*linux*)
4842           LD="${LD-ld} -m elf32ppclinux"
4843           ;;
4844         s390x-*linux*)
4845           LD="${LD-ld} -m elf_s390"
4846           ;;
4847         sparc64-*linux*)
4848           LD="${LD-ld} -m elf32_sparc"
4849           ;;
4850       esac
4851       ;;
4852     *64-bit*)
4853       case $host in
4854         x86_64-*linux*)
4855           LD="${LD-ld} -m elf_x86_64"
4856           ;;
4857         ppc*-*linux*|powerpc*-*linux*)
4858           LD="${LD-ld} -m elf64ppc"
4859           ;;
4860         s390*-*linux*)
4861           LD="${LD-ld} -m elf64_s390"
4862           ;;
4863         sparc*-*linux*)
4864           LD="${LD-ld} -m elf64_sparc"
4865           ;;
4866       esac
4867       ;;
4868     esac
4869   fi
4870   rm -rf conftest*
4871   ;;
4872
4873 *-*-sco3.2v5*)
4874   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4875   SAVE_CFLAGS="$CFLAGS"
4876   CFLAGS="$CFLAGS -belf"
4877   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4878 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4879 if test "${lt_cv_cc_needs_belf+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887
4888      cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894
4895 int
4896 main ()
4897 {
4898
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (ac_try="$ac_link"
4905 case "(($ac_try" in
4906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907   *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910   (eval "$ac_link") 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4918   { (case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923   (eval "$ac_try") 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; } &&
4927          { ac_try='test -s conftest$ac_exeext'
4928   { (case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933   (eval "$ac_try") 2>&5
4934   ac_status=$?
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); }; }; then
4937   lt_cv_cc_needs_belf=yes
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942         lt_cv_cc_needs_belf=no
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext \
4946       conftest$ac_exeext conftest.$ac_ext
4947      ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952
4953 fi
4954 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4955 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4956   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4957     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4958     CFLAGS="$SAVE_CFLAGS"
4959   fi
4960   ;;
4961 sparc*-*solaris*)
4962   # Find out which ABI we are using.
4963   echo 'int i;' > conftest.$ac_ext
4964   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965   (eval $ac_compile) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; then
4969     case `/usr/bin/file conftest.o` in
4970     *64-bit*)
4971       case $lt_cv_prog_gnu_ld in
4972       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4973       *)    LD="${LD-ld} -64" ;;
4974       esac
4975       ;;
4976     esac
4977   fi
4978   rm -rf conftest*
4979   ;;
4980
4981
4982 esac
4983
4984 need_locks="$enable_libtool_lock"
4985
4986
4987
4988 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4990 if test "${ac_cv_header_stdc+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #include <stdlib.h>
5000 #include <stdarg.h>
5001 #include <string.h>
5002 #include <float.h>
5003
5004 int
5005 main ()
5006 {
5007
5008   ;
5009   return 0;
5010 }
5011 _ACEOF
5012 rm -f conftest.$ac_objext
5013 if { (ac_try="$ac_compile"
5014 case "(($ac_try" in
5015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016   *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019   (eval "$ac_compile") 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5027   { (case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032   (eval "$ac_try") 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; } &&
5036          { ac_try='test -s conftest.$ac_objext'
5037   { (case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042   (eval "$ac_try") 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_cv_header_stdc=yes
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051         ac_cv_header_stdc=no
5052 fi
5053
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055
5056 if test $ac_cv_header_stdc = yes; then
5057   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5058   cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 #include <string.h>
5065
5066 _ACEOF
5067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068   $EGREP "memchr" >/dev/null 2>&1; then
5069   :
5070 else
5071   ac_cv_header_stdc=no
5072 fi
5073 rm -f conftest*
5074
5075 fi
5076
5077 if test $ac_cv_header_stdc = yes; then
5078   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #include <stdlib.h>
5086
5087 _ACEOF
5088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5089   $EGREP "free" >/dev/null 2>&1; then
5090   :
5091 else
5092   ac_cv_header_stdc=no
5093 fi
5094 rm -f conftest*
5095
5096 fi
5097
5098 if test $ac_cv_header_stdc = yes; then
5099   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5100   if test "$cross_compiling" = yes; then
5101   :
5102 else
5103   cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 #include <ctype.h>
5110 #include <stdlib.h>
5111 #if ((' ' & 0x0FF) == 0x020)
5112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5114 #else
5115 # define ISLOWER(c) \
5116                    (('a' <= (c) && (c) <= 'i') \
5117                      || ('j' <= (c) && (c) <= 'r') \
5118                      || ('s' <= (c) && (c) <= 'z'))
5119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5120 #endif
5121
5122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5123 int
5124 main ()
5125 {
5126   int i;
5127   for (i = 0; i < 256; i++)
5128     if (XOR (islower (i), ISLOWER (i))
5129         || toupper (i) != TOUPPER (i))
5130       return 2;
5131   return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest$ac_exeext
5135 if { (ac_try="$ac_link"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_link") 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5145   { (case "(($ac_try" in
5146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147   *) ac_try_echo=$ac_try;;
5148 esac
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150   (eval "$ac_try") 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   :
5155 else
5156   echo "$as_me: program exited with status $ac_status" >&5
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ( exit $ac_status )
5161 ac_cv_header_stdc=no
5162 fi
5163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5164 fi
5165
5166
5167 fi
5168 fi
5169 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5170 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5171 if test $ac_cv_header_stdc = yes; then
5172
5173 cat >>confdefs.h <<\_ACEOF
5174 #define STDC_HEADERS 1
5175 _ACEOF
5176
5177 fi
5178
5179 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5190                   inttypes.h stdint.h unistd.h
5191 do
5192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204 $ac_includes_default
5205
5206 #include <$ac_header>
5207 _ACEOF
5208 rm -f conftest.$ac_objext
5209 if { (ac_try="$ac_compile"
5210 case "(($ac_try" in
5211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212   *) ac_try_echo=$ac_try;;
5213 esac
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215   (eval "$ac_compile") 2>conftest.er1
5216   ac_status=$?
5217   grep -v '^ *+' conftest.er1 >conftest.err
5218   rm -f conftest.er1
5219   cat conftest.err >&5
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); } &&
5222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5223   { (case "(($ac_try" in
5224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225   *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228   (eval "$ac_try") 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; } &&
5232          { ac_try='test -s conftest.$ac_objext'
5233   { (case "(($ac_try" in
5234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235   *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238   (eval "$ac_try") 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   eval "$as_ac_Header=yes"
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247         eval "$as_ac_Header=no"
5248 fi
5249
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252 ac_res=`eval echo '${'$as_ac_Header'}'`
5253                { echo "$as_me:$LINENO: result: $ac_res" >&5
5254 echo "${ECHO_T}$ac_res" >&6; }
5255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5256   cat >>confdefs.h <<_ACEOF
5257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5258 _ACEOF
5259
5260 fi
5261
5262 done
5263
5264
5265
5266 for ac_header in dlfcn.h
5267 do
5268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5270   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 fi
5275 ac_res=`eval echo '${'$as_ac_Header'}'`
5276                { echo "$as_me:$LINENO: result: $ac_res" >&5
5277 echo "${ECHO_T}$ac_res" >&6; }
5278 else
5279   # Is the header compilable?
5280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288 $ac_includes_default
5289 #include <$ac_header>
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (ac_try="$ac_compile"
5293 case "(($ac_try" in
5294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295   *) ac_try_echo=$ac_try;;
5296 esac
5297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298   (eval "$ac_compile") 2>conftest.er1
5299   ac_status=$?
5300   grep -v '^ *+' conftest.er1 >conftest.err
5301   rm -f conftest.er1
5302   cat conftest.err >&5
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } &&
5305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306   { (case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_try") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (case "(($ac_try" in
5317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318   *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321   (eval "$ac_try") 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_header_compiler=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330         ac_header_compiler=no
5331 fi
5332
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5335 echo "${ECHO_T}$ac_header_compiler" >&6; }
5336
5337 # Is the header present?
5338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 #include <$ac_header>
5347 _ACEOF
5348 if { (ac_try="$ac_cpp conftest.$ac_ext"
5349 case "(($ac_try" in
5350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351   *) ac_try_echo=$ac_try;;
5352 esac
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5355   ac_status=$?
5356   grep -v '^ *+' conftest.er1 >conftest.err
5357   rm -f conftest.er1
5358   cat conftest.err >&5
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } >/dev/null; then
5361   if test -s conftest.err; then
5362     ac_cpp_err=$ac_c_preproc_warn_flag
5363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5364   else
5365     ac_cpp_err=
5366   fi
5367 else
5368   ac_cpp_err=yes
5369 fi
5370 if test -z "$ac_cpp_err"; then
5371   ac_header_preproc=yes
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376   ac_header_preproc=no
5377 fi
5378
5379 rm -f conftest.err conftest.$ac_ext
5380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5381 echo "${ECHO_T}$ac_header_preproc" >&6; }
5382
5383 # So?  What about this header?
5384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5385   yes:no: )
5386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5390     ac_header_preproc=yes
5391     ;;
5392   no:yes:* )
5393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5405     ( cat <<\_ASBOX
5406 ## -------------------------------- ##
5407 ## Report this to adam@indexdata.dk ##
5408 ## -------------------------------- ##
5409 _ASBOX
5410      ) | sed "s/^/$as_me: WARNING:     /" >&2
5411     ;;
5412 esac
5413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   eval "$as_ac_Header=\$ac_header_preproc"
5419 fi
5420 ac_res=`eval echo '${'$as_ac_Header'}'`
5421                { echo "$as_me:$LINENO: result: $ac_res" >&5
5422 echo "${ECHO_T}$ac_res" >&6; }
5423
5424 fi
5425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5426   cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5428 _ACEOF
5429
5430 fi
5431
5432 done
5433
5434 ac_ext=cpp
5435 ac_cpp='$CXXCPP $CPPFLAGS'
5436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5439 if test -z "$CXX"; then
5440   if test -n "$CCC"; then
5441     CXX=$CCC
5442   else
5443     if test -n "$ac_tool_prefix"; then
5444   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5445   do
5446     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5450 if test "${ac_cv_prog_CXX+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   if test -n "$CXX"; then
5454   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461   for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 CXX=$ac_cv_prog_CXX
5474 if test -n "$CXX"; then
5475   { echo "$as_me:$LINENO: result: $CXX" >&5
5476 echo "${ECHO_T}$CXX" >&6; }
5477 else
5478   { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5480 fi
5481
5482
5483     test -n "$CXX" && break
5484   done
5485 fi
5486 if test -z "$CXX"; then
5487   ac_ct_CXX=$CXX
5488   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5489 do
5490   # Extract the first word of "$ac_prog", so it can be a program name with args.
5491 set dummy $ac_prog; ac_word=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   if test -n "$ac_ct_CXX"; then
5498   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505   for ac_exec_ext in '' $ac_executable_extensions; do
5506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5507     ac_cv_prog_ac_ct_CXX="$ac_prog"
5508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5518 if test -n "$ac_ct_CXX"; then
5519   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5520 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5521 else
5522   { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5524 fi
5525
5526
5527   test -n "$ac_ct_CXX" && break
5528 done
5529
5530   if test "x$ac_ct_CXX" = x; then
5531     CXX="g++"
5532   else
5533     case $cross_compiling:$ac_tool_warned in
5534 yes:)
5535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5536 whose name does not start with the host triplet.  If you think this
5537 configuration is useful to you, please write to autoconf@gnu.org." >&5
5538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5539 whose name does not start with the host triplet.  If you think this
5540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5541 ac_tool_warned=yes ;;
5542 esac
5543     CXX=$ac_ct_CXX
5544   fi
5545 fi
5546
5547   fi
5548 fi
5549 # Provide some information about the compiler.
5550 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5551 ac_compiler=`set X $ac_compile; echo $2`
5552 { (ac_try="$ac_compiler --version >&5"
5553 case "(($ac_try" in
5554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555   *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558   (eval "$ac_compiler --version >&5") 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }
5562 { (ac_try="$ac_compiler -v >&5"
5563 case "(($ac_try" in
5564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565   *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568   (eval "$ac_compiler -v >&5") 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }
5572 { (ac_try="$ac_compiler -V >&5"
5573 case "(($ac_try" in
5574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575   *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578   (eval "$ac_compiler -V >&5") 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); }
5582
5583 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594
5595 int
5596 main ()
5597 {
5598 #ifndef __GNUC__
5599        choke me
5600 #endif
5601
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613   (eval "$ac_compile") 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5621   { (case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_try") 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; } &&
5630          { ac_try='test -s conftest.$ac_objext'
5631   { (case "(($ac_try" in
5632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633   *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636   (eval "$ac_try") 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_compiler_gnu=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         ac_compiler_gnu=no
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5650
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5654 GXX=`test $ac_compiler_gnu = yes && echo yes`
5655 ac_test_CXXFLAGS=${CXXFLAGS+set}
5656 ac_save_CXXFLAGS=$CXXFLAGS
5657 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5658 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5659 if test "${ac_cv_prog_cxx_g+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5663    ac_cxx_werror_flag=yes
5664    ac_cv_prog_cxx_g=no
5665    CXXFLAGS="-g"
5666    cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_compile") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } &&
5695          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5696   { (case "(($ac_try" in
5697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698   *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701   (eval "$ac_try") 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; } &&
5705          { ac_try='test -s conftest.$ac_objext'
5706   { (case "(($ac_try" in
5707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708   *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711   (eval "$ac_try") 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_cv_prog_cxx_g=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720         CXXFLAGS=""
5721       cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727
5728 int
5729 main ()
5730 {
5731
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740   *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743   (eval "$ac_compile") 2>conftest.er1
5744   ac_status=$?
5745   grep -v '^ *+' conftest.er1 >conftest.err
5746   rm -f conftest.er1
5747   cat conftest.err >&5
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } &&
5750          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5751   { (case "(($ac_try" in
5752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753   *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756   (eval "$ac_try") 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; } &&
5760          { ac_try='test -s conftest.$ac_objext'
5761   { (case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_try") 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   :
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5776          CXXFLAGS="-g"
5777          cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783
5784 int
5785 main ()
5786 {
5787
5788   ;
5789   return 0;
5790 }
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796   *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799   (eval "$ac_compile") 2>conftest.er1
5800   ac_status=$?
5801   grep -v '^ *+' conftest.er1 >conftest.err
5802   rm -f conftest.er1
5803   cat conftest.err >&5
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); } &&
5806          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5807   { (case "(($ac_try" in
5808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809   *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812   (eval "$ac_try") 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest.$ac_objext'
5817   { (case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822   (eval "$ac_try") 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_cv_prog_cxx_g=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831
5832 fi
5833
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 fi
5836
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 fi
5839
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5842 fi
5843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5844 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5845 if test "$ac_test_CXXFLAGS" = set; then
5846   CXXFLAGS=$ac_save_CXXFLAGS
5847 elif test $ac_cv_prog_cxx_g = yes; then
5848   if test "$GXX" = yes; then
5849     CXXFLAGS="-g -O2"
5850   else
5851     CXXFLAGS="-g"
5852   fi
5853 else
5854   if test "$GXX" = yes; then
5855     CXXFLAGS="-O2"
5856   else
5857     CXXFLAGS=
5858   fi
5859 fi
5860 ac_ext=cpp
5861 ac_cpp='$CXXCPP $CPPFLAGS'
5862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5865
5866 depcc="$CXX"  am_compiler_list=
5867
5868 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5869 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5870 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5874   # We make a subdir and do the tests there.  Otherwise we can end up
5875   # making bogus files that we don't know about and never remove.  For
5876   # instance it was reported that on HP-UX the gcc test will end up
5877   # making a dummy file named `D' -- because `-MD' means `put the output
5878   # in D'.
5879   mkdir conftest.dir
5880   # Copy depcomp to subdir because otherwise we won't find it if we're
5881   # using a relative directory.
5882   cp "$am_depcomp" conftest.dir
5883   cd conftest.dir
5884   # We will build objects and dependencies in a subdirectory because
5885   # it helps to detect inapplicable dependency modes.  For instance
5886   # both Tru64's cc and ICC support -MD to output dependencies as a
5887   # side effect of compilation, but ICC will put the dependencies in
5888   # the current directory while Tru64 will put them in the object
5889   # directory.
5890   mkdir sub
5891
5892   am_cv_CXX_dependencies_compiler_type=none
5893   if test "$am_compiler_list" = ""; then
5894      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5895   fi
5896   for depmode in $am_compiler_list; do
5897     # Setup a source with many dependencies, because some compilers
5898     # like to wrap large dependency lists on column 80 (with \), and
5899     # we should not choose a depcomp mode which is confused by this.
5900     #
5901     # We need to recreate these files for each test, as the compiler may
5902     # overwrite some of them when testing with obscure command lines.
5903     # This happens at least with the AIX C compiler.
5904     : > sub/conftest.c
5905     for i in 1 2 3 4 5 6; do
5906       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5907       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5908       # Solaris 8's {/usr,}/bin/sh.
5909       touch sub/conftst$i.h
5910     done
5911     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5912
5913     case $depmode in
5914     nosideeffect)
5915       # after this tag, mechanisms are not by side-effect, so they'll
5916       # only be used when explicitly requested
5917       if test "x$enable_dependency_tracking" = xyes; then
5918         continue
5919       else
5920         break
5921       fi
5922       ;;
5923     none) break ;;
5924     esac
5925     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5926     # mode.  It turns out that the SunPro C++ compiler does not properly
5927     # handle `-M -o', and we need to detect this.
5928     if depmode=$depmode \
5929        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5930        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5931        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5932          >/dev/null 2>conftest.err &&
5933        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5934        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5936       # icc doesn't choke on unknown options, it will just issue warnings
5937       # or remarks (even with -Werror).  So we grep stderr for any message
5938       # that says an option was ignored or not supported.
5939       # When given -MP, icc 7.0 and 7.1 complain thusly:
5940       #   icc: Command line warning: ignoring option '-M'; no argument required
5941       # The diagnosis changed in icc 8.0:
5942       #   icc: Command line remark: option '-MP' not supported
5943       if (grep 'ignoring option' conftest.err ||
5944           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5945         am_cv_CXX_dependencies_compiler_type=$depmode
5946         break
5947       fi
5948     fi
5949   done
5950
5951   cd ..
5952   rm -rf conftest.dir
5953 else
5954   am_cv_CXX_dependencies_compiler_type=none
5955 fi
5956
5957 fi
5958 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5959 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5960 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5961
5962
5963
5964 if
5965   test "x$enable_dependency_tracking" != xno \
5966   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5967   am__fastdepCXX_TRUE=
5968   am__fastdepCXX_FALSE='#'
5969 else
5970   am__fastdepCXX_TRUE='#'
5971   am__fastdepCXX_FALSE=
5972 fi
5973
5974
5975
5976
5977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5978     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5979     (test "X$CXX" != "Xg++"))) ; then
5980   ac_ext=cpp
5981 ac_cpp='$CXXCPP $CPPFLAGS'
5982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5985 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5987 if test -z "$CXXCPP"; then
5988   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991       # Double quotes because CXXCPP needs to be expanded
5992     for CXXCPP in "$CXX -E" "/lib/cpp"
5993     do
5994       ac_preproc_ok=false
5995 for ac_cxx_preproc_warn_flag in '' yes
5996 do
5997   # Use a header file that comes with gcc, so configuring glibc
5998   # with a fresh cross-compiler works.
5999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000   # <limits.h> exists even on freestanding compilers.
6001   # On the NeXT, cc -E runs the code through the compiler's parser,
6002   # not just through cpp. "Syntax error" is here to catch this case.
6003   cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 #ifdef __STDC__
6010 # include <limits.h>
6011 #else
6012 # include <assert.h>
6013 #endif
6014                      Syntax error
6015 _ACEOF
6016 if { (ac_try="$ac_cpp conftest.$ac_ext"
6017 case "(($ac_try" in
6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019   *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } >/dev/null; then
6029   if test -s conftest.err; then
6030     ac_cpp_err=$ac_cxx_preproc_warn_flag
6031     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6032   else
6033     ac_cpp_err=
6034   fi
6035 else
6036   ac_cpp_err=yes
6037 fi
6038 if test -z "$ac_cpp_err"; then
6039   :
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044   # Broken: fails on valid input.
6045 continue
6046 fi
6047
6048 rm -f conftest.err conftest.$ac_ext
6049
6050   # OK, works on sane cases.  Now check whether nonexistent headers
6051   # can be detected and how.
6052   cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 #include <ac_nonexistent.h>
6059 _ACEOF
6060 if { (ac_try="$ac_cpp conftest.$ac_ext"
6061 case "(($ac_try" in
6062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063   *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6067   ac_status=$?
6068   grep -v '^ *+' conftest.er1 >conftest.err
6069   rm -f conftest.er1
6070   cat conftest.err >&5
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } >/dev/null; then
6073   if test -s conftest.err; then
6074     ac_cpp_err=$ac_cxx_preproc_warn_flag
6075     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6076   else
6077     ac_cpp_err=
6078   fi
6079 else
6080   ac_cpp_err=yes
6081 fi
6082 if test -z "$ac_cpp_err"; then
6083   # Broken: success on invalid input.
6084 continue
6085 else
6086   echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089   # Passes both tests.
6090 ac_preproc_ok=:
6091 break
6092 fi
6093
6094 rm -f conftest.err conftest.$ac_ext
6095
6096 done
6097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6098 rm -f conftest.err conftest.$ac_ext
6099 if $ac_preproc_ok; then
6100   break
6101 fi
6102
6103     done
6104     ac_cv_prog_CXXCPP=$CXXCPP
6105
6106 fi
6107   CXXCPP=$ac_cv_prog_CXXCPP
6108 else
6109   ac_cv_prog_CXXCPP=$CXXCPP
6110 fi
6111 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6112 echo "${ECHO_T}$CXXCPP" >&6; }
6113 ac_preproc_ok=false
6114 for ac_cxx_preproc_warn_flag in '' yes
6115 do
6116   # Use a header file that comes with gcc, so configuring glibc
6117   # with a fresh cross-compiler works.
6118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119   # <limits.h> exists even on freestanding compilers.
6120   # On the NeXT, cc -E runs the code through the compiler's parser,
6121   # not just through cpp. "Syntax error" is here to catch this case.
6122   cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 #ifdef __STDC__
6129 # include <limits.h>
6130 #else
6131 # include <assert.h>
6132 #endif
6133                      Syntax error
6134 _ACEOF
6135 if { (ac_try="$ac_cpp conftest.$ac_ext"
6136 case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6142   ac_status=$?
6143   grep -v '^ *+' conftest.er1 >conftest.err
6144   rm -f conftest.er1
6145   cat conftest.err >&5
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } >/dev/null; then
6148   if test -s conftest.err; then
6149     ac_cpp_err=$ac_cxx_preproc_warn_flag
6150     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6151   else
6152     ac_cpp_err=
6153   fi
6154 else
6155   ac_cpp_err=yes
6156 fi
6157 if test -z "$ac_cpp_err"; then
6158   :
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163   # Broken: fails on valid input.
6164 continue
6165 fi
6166
6167 rm -f conftest.err conftest.$ac_ext
6168
6169   # OK, works on sane cases.  Now check whether nonexistent headers
6170   # can be detected and how.
6171   cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 #include <ac_nonexistent.h>
6178 _ACEOF
6179 if { (ac_try="$ac_cpp conftest.$ac_ext"
6180 case "(($ac_try" in
6181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182   *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } >/dev/null; then
6192   if test -s conftest.err; then
6193     ac_cpp_err=$ac_cxx_preproc_warn_flag
6194     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6195   else
6196     ac_cpp_err=
6197   fi
6198 else
6199   ac_cpp_err=yes
6200 fi
6201 if test -z "$ac_cpp_err"; then
6202   # Broken: success on invalid input.
6203 continue
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208   # Passes both tests.
6209 ac_preproc_ok=:
6210 break
6211 fi
6212
6213 rm -f conftest.err conftest.$ac_ext
6214
6215 done
6216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6217 rm -f conftest.err conftest.$ac_ext
6218 if $ac_preproc_ok; then
6219   :
6220 else
6221   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6222 See \`config.log' for more details." >&5
6223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6224 See \`config.log' for more details." >&2;}
6225    { (exit 1); exit 1; }; }
6226 fi
6227
6228 ac_ext=cpp
6229 ac_cpp='$CXXCPP $CPPFLAGS'
6230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6233
6234 fi
6235
6236
6237 ac_ext=f
6238 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6239 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6241 if test -n "$ac_tool_prefix"; then
6242   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6243   do
6244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_F77+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   if test -n "$F77"; then
6252   ac_cv_prog_F77="$F77" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 F77=$ac_cv_prog_F77
6272 if test -n "$F77"; then
6273   { echo "$as_me:$LINENO: result: $F77" >&5
6274 echo "${ECHO_T}$F77" >&6; }
6275 else
6276   { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6278 fi
6279
6280
6281     test -n "$F77" && break
6282   done
6283 fi
6284 if test -z "$F77"; then
6285   ac_ct_F77=$F77
6286   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6287 do
6288   # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy $ac_prog; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   if test -n "$ac_ct_F77"; then
6296   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_F77="$ac_prog"
6306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6316 if test -n "$ac_ct_F77"; then
6317   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6318 echo "${ECHO_T}$ac_ct_F77" >&6; }
6319 else
6320   { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6322 fi
6323
6324
6325   test -n "$ac_ct_F77" && break
6326 done
6327
6328   if test "x$ac_ct_F77" = x; then
6329     F77=""
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet.  If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341     F77=$ac_ct_F77
6342   fi
6343 fi
6344
6345
6346 # Provide some information about the compiler.
6347 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6348 ac_compiler=`set X $ac_compile; echo $2`
6349 { (ac_try="$ac_compiler --version >&5"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_compiler --version >&5") 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }
6359 { (ac_try="$ac_compiler -v >&5"
6360 case "(($ac_try" in
6361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362   *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365   (eval "$ac_compiler -v >&5") 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }
6369 { (ac_try="$ac_compiler -V >&5"
6370 case "(($ac_try" in
6371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372   *) ac_try_echo=$ac_try;;
6373 esac
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375   (eval "$ac_compiler -V >&5") 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }
6379 rm -f a.out
6380
6381 # If we don't use `.F' as extension, the preprocessor is not run on the
6382 # input file.  (Note that this only needs to work for GNU compilers.)
6383 ac_save_ext=$ac_ext
6384 ac_ext=F
6385 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6386 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6387 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   cat >conftest.$ac_ext <<_ACEOF
6391       program main
6392 #ifndef __GNUC__
6393        choke me
6394 #endif
6395
6396       end
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6400 case "(($ac_try" in
6401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402   *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405   (eval "$ac_compile") 2>conftest.er1
6406   ac_status=$?
6407   grep -v '^ *+' conftest.er1 >conftest.err
6408   rm -f conftest.er1
6409   cat conftest.err >&5
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } &&
6412          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6413   { (case "(($ac_try" in
6414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415   *) ac_try_echo=$ac_try;;
6416 esac
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418   (eval "$ac_try") 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; } &&
6422          { ac_try='test -s conftest.$ac_objext'
6423   { (case "(($ac_try" in
6424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425   *) ac_try_echo=$ac_try;;
6426 esac
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428   (eval "$ac_try") 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; }; then
6432   ac_compiler_gnu=yes
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437         ac_compiler_gnu=no
6438 fi
6439
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6442
6443 fi
6444 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6445 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6446 ac_ext=$ac_save_ext
6447 ac_test_FFLAGS=${FFLAGS+set}
6448 ac_save_FFLAGS=$FFLAGS
6449 FFLAGS=
6450 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6451 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_f77_g+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   FFLAGS=-g
6456 cat >conftest.$ac_ext <<_ACEOF
6457       program main
6458
6459       end
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6463 case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_compile") 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } &&
6475          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6476   { (case "(($ac_try" in
6477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478   *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481   (eval "$ac_try") 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; } &&
6485          { ac_try='test -s conftest.$ac_objext'
6486   { (case "(($ac_try" in
6487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488   *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491   (eval "$ac_try") 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; }; then
6495   ac_cv_prog_f77_g=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500         ac_cv_prog_f77_g=no
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504
6505 fi
6506 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6508 if test "$ac_test_FFLAGS" = set; then
6509   FFLAGS=$ac_save_FFLAGS
6510 elif test $ac_cv_prog_f77_g = yes; then
6511   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6512     FFLAGS="-g -O2"
6513   else
6514     FFLAGS="-g"
6515   fi
6516 else
6517   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6518     FFLAGS="-O2"
6519   else
6520     FFLAGS=
6521   fi
6522 fi
6523
6524 G77=`test $ac_compiler_gnu = yes && echo yes`
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530
6531
6532
6533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6534
6535 # find the maximum length of command line arguments
6536 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541     i=0
6542   teststring="ABCD"
6543
6544   case $build_os in
6545   msdosdjgpp*)
6546     # On DJGPP, this test can blow up pretty badly due to problems in libc
6547     # (any single argument exceeding 2000 bytes causes a buffer overrun
6548     # during glob expansion).  Even if it were fixed, the result of this
6549     # check would be larger than it should be.
6550     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6551     ;;
6552
6553   gnu*)
6554     # Under GNU Hurd, this test is not required because there is
6555     # no limit to the length of command line arguments.
6556     # Libtool will interpret -1 as no limit whatsoever
6557     lt_cv_sys_max_cmd_len=-1;
6558     ;;
6559
6560   cygwin* | mingw*)
6561     # On Win9x/ME, this test blows up -- it succeeds, but takes
6562     # about 5 minutes as the teststring grows exponentially.
6563     # Worse, since 9x/ME are not pre-emptively multitasking,
6564     # you end up with a "frozen" computer, even though with patience
6565     # the test eventually succeeds (with a max line length of 256k).
6566     # Instead, let's just punt: use the minimum linelength reported by
6567     # all of the supported platforms: 8192 (on NT/2K/XP).
6568     lt_cv_sys_max_cmd_len=8192;
6569     ;;
6570
6571   amigaos*)
6572     # On AmigaOS with pdksh, this test takes hours, literally.
6573     # So we just punt and use a minimum line length of 8192.
6574     lt_cv_sys_max_cmd_len=8192;
6575     ;;
6576
6577   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6578     # This has been around since 386BSD, at least.  Likely further.
6579     if test -x /sbin/sysctl; then
6580       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6581     elif test -x /usr/sbin/sysctl; then
6582       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6583     else
6584       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6585     fi
6586     # And add a safety zone
6587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6589     ;;
6590
6591   interix*)
6592     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6593     lt_cv_sys_max_cmd_len=196608
6594     ;;
6595
6596   osf*)
6597     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6598     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6599     # nice to cause kernel panics so lets avoid the loop below.
6600     # First set a reasonable default.
6601     lt_cv_sys_max_cmd_len=16384
6602     #
6603     if test -x /sbin/sysconfig; then
6604       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6605         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6606       esac
6607     fi
6608     ;;
6609   sco3.2v5*)
6610     lt_cv_sys_max_cmd_len=102400
6611     ;;
6612   sysv5* | sco5v6* | sysv4.2uw2*)
6613     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6614     if test -n "$kargmax"; then
6615       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6616     else
6617       lt_cv_sys_max_cmd_len=32768
6618     fi
6619     ;;
6620   *)
6621     # If test is not a shell built-in, we'll probably end up computing a
6622     # maximum length that is only half of the actual maximum length, but
6623     # we can't tell.
6624     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6625     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6626                = "XX$teststring") >/dev/null 2>&1 &&
6627             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6628             lt_cv_sys_max_cmd_len=$new_result &&
6629             test $i != 17 # 1/2 MB should be enough
6630     do
6631       i=`expr $i + 1`
6632       teststring=$teststring$teststring
6633     done
6634     teststring=
6635     # Add a significant safety factor because C++ compilers can tack on massive
6636     # amounts of additional arguments before passing them to the linker.
6637     # It appears as though 1/2 is a usable value.
6638     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6639     ;;
6640   esac
6641
6642 fi
6643
6644 if test -n $lt_cv_sys_max_cmd_len ; then
6645   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6646 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: none" >&5
6649 echo "${ECHO_T}none" >&6; }
6650 fi
6651
6652
6653
6654
6655 # Check for command to grab the raw symbol name followed by C symbol from nm.
6656 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6657 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6658 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661
6662 # These are sane defaults that work on at least a few old systems.
6663 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6664
6665 # Character class describing NM global symbol codes.
6666 symcode='[BCDEGRST]'
6667
6668 # Regexp to match symbols that can be accessed directly from C.
6669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6670
6671 # Transform an extracted symbol line into a proper C declaration
6672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6673
6674 # Transform an extracted symbol line into symbol name and symbol address
6675 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'"
6676
6677 # Define system-specific variables.
6678 case $host_os in
6679 aix*)
6680   symcode='[BCDT]'
6681   ;;
6682 cygwin* | mingw* | pw32*)
6683   symcode='[ABCDGISTW]'
6684   ;;
6685 hpux*) # Its linker distinguishes data from code symbols
6686   if test "$host_cpu" = ia64; then
6687     symcode='[ABCDEGRST]'
6688   fi
6689   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6690   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'"
6691   ;;
6692 linux* | k*bsd*-gnu)
6693   if test "$host_cpu" = ia64; then
6694     symcode='[ABCDGIRSTW]'
6695     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6696     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'"
6697   fi
6698   ;;
6699 irix* | nonstopux*)
6700   symcode='[BCDEGRST]'
6701   ;;
6702 osf*)
6703   symcode='[BCDEGQRST]'
6704   ;;
6705 solaris*)
6706   symcode='[BDRT]'
6707   ;;
6708 sco3.2v5*)
6709   symcode='[DT]'
6710   ;;
6711 sysv4.2uw2*)
6712   symcode='[DT]'
6713   ;;
6714 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6715   symcode='[ABDT]'
6716   ;;
6717 sysv4)
6718   symcode='[DFNSTU]'
6719   ;;
6720 esac
6721
6722 # Handle CRLF in mingw tool chain
6723 opt_cr=
6724 case $build_os in
6725 mingw*)
6726   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6727   ;;
6728 esac
6729
6730 # If we're using GNU nm, then use its standard symbol codes.
6731 case `$NM -V 2>&1` in
6732 *GNU* | *'with BFD'*)
6733   symcode='[ABCDGIRSTW]' ;;
6734 esac
6735
6736 # Try without a prefix undercore, then with it.
6737 for ac_symprfx in "" "_"; do
6738
6739   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6740   symxfrm="\\1 $ac_symprfx\\2 \\2"
6741
6742   # Write the raw and C identifiers.
6743   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6744
6745   # Check to see that the pipe works correctly.
6746   pipe_works=no
6747
6748   rm -f conftest*
6749   cat > conftest.$ac_ext <<EOF
6750 #ifdef __cplusplus
6751 extern "C" {
6752 #endif
6753 char nm_test_var;
6754 void nm_test_func(){}
6755 #ifdef __cplusplus
6756 }
6757 #endif
6758 int main(){nm_test_var='a';nm_test_func();return(0);}
6759 EOF
6760
6761   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762   (eval $ac_compile) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; then
6766     # Now try to grab the symbols.
6767     nlist=conftest.nm
6768     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6769   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } && test -s "$nlist"; then
6773       # Try sorting and uniquifying the output.
6774       if sort "$nlist" | uniq > "$nlist"T; then
6775         mv -f "$nlist"T "$nlist"
6776       else
6777         rm -f "$nlist"T
6778       fi
6779
6780       # Make sure that we snagged all the symbols we need.
6781       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6782         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6783           cat <<EOF > conftest.$ac_ext
6784 #ifdef __cplusplus
6785 extern "C" {
6786 #endif
6787
6788 EOF
6789           # Now generate the symbol file.
6790           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6791
6792           cat <<EOF >> conftest.$ac_ext
6793 #if defined (__STDC__) && __STDC__
6794 # define lt_ptr_t void *
6795 #else
6796 # define lt_ptr_t char *
6797 # define const
6798 #endif
6799
6800 /* The mapping between symbol names and symbols. */
6801 const struct {
6802   const char *name;
6803   lt_ptr_t address;
6804 }
6805 lt_preloaded_symbols[] =
6806 {
6807 EOF
6808           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6809           cat <<\EOF >> conftest.$ac_ext
6810   {0, (lt_ptr_t) 0}
6811 };
6812
6813 #ifdef __cplusplus
6814 }
6815 #endif
6816 EOF
6817           # Now try linking the two files.
6818           mv conftest.$ac_objext conftstm.$ac_objext
6819           lt_save_LIBS="$LIBS"
6820           lt_save_CFLAGS="$CFLAGS"
6821           LIBS="conftstm.$ac_objext"
6822           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6823           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824   (eval $ac_link) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6828             pipe_works=yes
6829           fi
6830           LIBS="$lt_save_LIBS"
6831           CFLAGS="$lt_save_CFLAGS"
6832         else
6833           echo "cannot find nm_test_func in $nlist" >&5
6834         fi
6835       else
6836         echo "cannot find nm_test_var in $nlist" >&5
6837       fi
6838     else
6839       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6840     fi
6841   else
6842     echo "$progname: failed program was:" >&5
6843     cat conftest.$ac_ext >&5
6844   fi
6845   rm -f conftest* conftst*
6846
6847   # Do not use the global_symbol_pipe unless it works.
6848   if test "$pipe_works" = yes; then
6849     break
6850   else
6851     lt_cv_sys_global_symbol_pipe=
6852   fi
6853 done
6854
6855 fi
6856
6857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6858   lt_cv_sys_global_symbol_to_cdecl=
6859 fi
6860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6861   { echo "$as_me:$LINENO: result: failed" >&5
6862 echo "${ECHO_T}failed" >&6; }
6863 else
6864   { echo "$as_me:$LINENO: result: ok" >&5
6865 echo "${ECHO_T}ok" >&6; }
6866 fi
6867
6868 { echo "$as_me:$LINENO: checking for objdir" >&5
6869 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6870 if test "${lt_cv_objdir+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   rm -f .libs 2>/dev/null
6874 mkdir .libs 2>/dev/null
6875 if test -d .libs; then
6876   lt_cv_objdir=.libs
6877 else
6878   # MS-DOS does not allow filenames that begin with a dot.
6879   lt_cv_objdir=_libs
6880 fi
6881 rmdir .libs 2>/dev/null
6882 fi
6883 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6884 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6885 objdir=$lt_cv_objdir
6886
6887
6888
6889
6890
6891 case $host_os in
6892 aix3*)
6893   # AIX sometimes has problems with the GCC collect2 program.  For some
6894   # reason, if we set the COLLECT_NAMES environment variable, the problems
6895   # vanish in a puff of smoke.
6896   if test "X${COLLECT_NAMES+set}" != Xset; then
6897     COLLECT_NAMES=
6898     export COLLECT_NAMES
6899   fi
6900   ;;
6901 esac
6902
6903 # Sed substitution that helps us do robust quoting.  It backslashifies
6904 # metacharacters that are still active within double-quoted strings.
6905 Xsed='sed -e 1s/^X//'
6906 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6907
6908 # Same as above, but do not quote variable references.
6909 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6910
6911 # Sed substitution to delay expansion of an escaped shell variable in a
6912 # double_quote_subst'ed string.
6913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6914
6915 # Sed substitution to avoid accidental globbing in evaled expressions
6916 no_glob_subst='s/\*/\\\*/g'
6917
6918 # Constants:
6919 rm="rm -f"
6920
6921 # Global variables:
6922 default_ofile=libtool
6923 can_build_shared=yes
6924
6925 # All known linkers require a `.a' archive for static linking (except MSVC,
6926 # which needs '.lib').
6927 libext=a
6928 ltmain="$ac_aux_dir/ltmain.sh"
6929 ofile="$default_ofile"
6930 with_gnu_ld="$lt_cv_prog_gnu_ld"
6931
6932 if test -n "$ac_tool_prefix"; then
6933   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}ar; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_prog_AR+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   if test -n "$AR"; then
6941   ac_cv_prog_AR="$AR" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948   for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_prog_AR="${ac_tool_prefix}ar"
6951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 AR=$ac_cv_prog_AR
6961 if test -n "$AR"; then
6962   { echo "$as_me:$LINENO: result: $AR" >&5
6963 echo "${ECHO_T}$AR" >&6; }
6964 else
6965   { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6967 fi
6968
6969
6970 fi
6971 if test -z "$ac_cv_prog_AR"; then
6972   ac_ct_AR=$AR
6973   # Extract the first word of "ar", so it can be a program name with args.
6974 set dummy ar; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   if test -n "$ac_ct_AR"; then
6981   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_prog_ac_ct_AR="ar"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7001 if test -n "$ac_ct_AR"; then
7002   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7003 echo "${ECHO_T}$ac_ct_AR" >&6; }
7004 else
7005   { echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6; }
7007 fi
7008
7009   if test "x$ac_ct_AR" = x; then
7010     AR="false"
7011   else
7012     case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7015 whose name does not start with the host triplet.  If you think this
7016 configuration is useful to you, please write to autoconf@gnu.org." >&5
7017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7018 whose name does not start with the host triplet.  If you think this
7019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7020 ac_tool_warned=yes ;;
7021 esac
7022     AR=$ac_ct_AR
7023   fi
7024 else
7025   AR="$ac_cv_prog_AR"
7026 fi
7027
7028 if test -n "$ac_tool_prefix"; then
7029   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_RANLIB+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   if test -n "$RANLIB"; then
7037   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 RANLIB=$ac_cv_prog_RANLIB
7057 if test -n "$RANLIB"; then
7058   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7059 echo "${ECHO_T}$RANLIB" >&6; }
7060 else
7061   { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065
7066 fi
7067 if test -z "$ac_cv_prog_RANLIB"; then
7068   ac_ct_RANLIB=$RANLIB
7069   # Extract the first word of "ranlib", so it can be a program name with args.
7070 set dummy ranlib; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   if test -n "$ac_ct_RANLIB"; then
7077   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084   for ac_exec_ext in '' $ac_executable_extensions; do
7085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086     ac_cv_prog_ac_ct_RANLIB="ranlib"
7087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7097 if test -n "$ac_ct_RANLIB"; then
7098   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105   if test "x$ac_ct_RANLIB" = x; then
7106     RANLIB=":"
7107   else
7108     case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet.  If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet.  If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118     RANLIB=$ac_ct_RANLIB
7119   fi
7120 else
7121   RANLIB="$ac_cv_prog_RANLIB"
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}strip; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_STRIP+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$STRIP"; then
7133   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 STRIP=$ac_cv_prog_STRIP
7153 if test -n "$STRIP"; then
7154   { echo "$as_me:$LINENO: result: $STRIP" >&5
7155 echo "${ECHO_T}$STRIP" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_STRIP"; then
7164   ac_ct_STRIP=$STRIP
7165   # Extract the first word of "strip", so it can be a program name with args.
7166 set dummy strip; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   if test -n "$ac_ct_STRIP"; then
7173   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_prog_ac_ct_STRIP="strip"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7193 if test -n "$ac_ct_STRIP"; then
7194   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7195 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_STRIP" = x; then
7202     STRIP=":"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet.  If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet.  If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214     STRIP=$ac_ct_STRIP
7215   fi
7216 else
7217   STRIP="$ac_cv_prog_STRIP"
7218 fi
7219
7220
7221 old_CC="$CC"
7222 old_CFLAGS="$CFLAGS"
7223
7224 # Set sane defaults for various variables
7225 test -z "$AR" && AR=ar
7226 test -z "$AR_FLAGS" && AR_FLAGS=cru
7227 test -z "$AS" && AS=as
7228 test -z "$CC" && CC=cc
7229 test -z "$LTCC" && LTCC=$CC
7230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7231 test -z "$DLLTOOL" && DLLTOOL=dlltool
7232 test -z "$LD" && LD=ld
7233 test -z "$LN_S" && LN_S="ln -s"
7234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7235 test -z "$NM" && NM=nm
7236 test -z "$SED" && SED=sed
7237 test -z "$OBJDUMP" && OBJDUMP=objdump
7238 test -z "$RANLIB" && RANLIB=:
7239 test -z "$STRIP" && STRIP=:
7240 test -z "$ac_objext" && ac_objext=o
7241
7242 # Determine commands to create old-style static archives.
7243 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7244 old_postinstall_cmds='chmod 644 $oldlib'
7245 old_postuninstall_cmds=
7246
7247 if test -n "$RANLIB"; then
7248   case $host_os in
7249   openbsd*)
7250     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7251     ;;
7252   *)
7253     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7254     ;;
7255   esac
7256   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7257 fi
7258
7259 for cc_temp in $compiler""; do
7260   case $cc_temp in
7261     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7262     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7263     \-*) ;;
7264     *) break;;
7265   esac
7266 done
7267 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7268
7269
7270 # Only perform the check for file, if the check method requires it
7271 case $deplibs_check_method in
7272 file_magic*)
7273   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7274     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7275 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   case $MAGIC_CMD in
7280 [\\/*] |  ?:[\\/]*)
7281   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7282   ;;
7283 *)
7284   lt_save_MAGIC_CMD="$MAGIC_CMD"
7285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7286   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7287   for ac_dir in $ac_dummy; do
7288     IFS="$lt_save_ifs"
7289     test -z "$ac_dir" && ac_dir=.
7290     if test -f $ac_dir/${ac_tool_prefix}file; then
7291       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7292       if test -n "$file_magic_test_file"; then
7293         case $deplibs_check_method in
7294         "file_magic "*)
7295           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7298             $EGREP "$file_magic_regex" > /dev/null; then
7299             :
7300           else
7301             cat <<EOF 1>&2
7302
7303 *** Warning: the command libtool uses to detect shared libraries,
7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
7305 *** The result is that libtool may fail to recognize shared libraries
7306 *** as such.  This will affect the creation of libtool libraries that
7307 *** depend on shared libraries, but programs linked with such libtool
7308 *** libraries will work regardless of this problem.  Nevertheless, you
7309 *** may want to report the problem to your system manager and/or to
7310 *** bug-libtool@gnu.org
7311
7312 EOF
7313           fi ;;
7314         esac
7315       fi
7316       break
7317     fi
7318   done
7319   IFS="$lt_save_ifs"
7320   MAGIC_CMD="$lt_save_MAGIC_CMD"
7321   ;;
7322 esac
7323 fi
7324
7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326 if test -n "$MAGIC_CMD"; then
7327   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7328 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7329 else
7330   { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7332 fi
7333
7334 if test -z "$lt_cv_path_MAGIC_CMD"; then
7335   if test -n "$ac_tool_prefix"; then
7336     { echo "$as_me:$LINENO: checking for file" >&5
7337 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   case $MAGIC_CMD in
7342 [\\/*] |  ?:[\\/]*)
7343   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7344   ;;
7345 *)
7346   lt_save_MAGIC_CMD="$MAGIC_CMD"
7347   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7349   for ac_dir in $ac_dummy; do
7350     IFS="$lt_save_ifs"
7351     test -z "$ac_dir" && ac_dir=.
7352     if test -f $ac_dir/file; then
7353       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7354       if test -n "$file_magic_test_file"; then
7355         case $deplibs_check_method in
7356         "file_magic "*)
7357           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7358           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7360             $EGREP "$file_magic_regex" > /dev/null; then
7361             :
7362           else
7363             cat <<EOF 1>&2
7364
7365 *** Warning: the command libtool uses to detect shared libraries,
7366 *** $file_magic_cmd, produces output that libtool cannot recognize.
7367 *** The result is that libtool may fail to recognize shared libraries
7368 *** as such.  This will affect the creation of libtool libraries that
7369 *** depend on shared libraries, but programs linked with such libtool
7370 *** libraries will work regardless of this problem.  Nevertheless, you
7371 *** may want to report the problem to your system manager and/or to
7372 *** bug-libtool@gnu.org
7373
7374 EOF
7375           fi ;;
7376         esac
7377       fi
7378       break
7379     fi
7380   done
7381   IFS="$lt_save_ifs"
7382   MAGIC_CMD="$lt_save_MAGIC_CMD"
7383   ;;
7384 esac
7385 fi
7386
7387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388 if test -n "$MAGIC_CMD"; then
7389   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7390 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7391 else
7392   { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7394 fi
7395
7396   else
7397     MAGIC_CMD=:
7398   fi
7399 fi
7400
7401   fi
7402   ;;
7403 esac
7404
7405 enable_dlopen=no
7406 enable_win32_dll=no
7407
7408 # Check whether --enable-libtool-lock was given.
7409 if test "${enable_libtool_lock+set}" = set; then
7410   enableval=$enable_libtool_lock;
7411 fi
7412
7413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7414
7415
7416 # Check whether --with-pic was given.
7417 if test "${with_pic+set}" = set; then
7418   withval=$with_pic; pic_mode="$withval"
7419 else
7420   pic_mode=default
7421 fi
7422
7423 test -z "$pic_mode" && pic_mode=default
7424
7425 # Use C for the default configuration in the libtool script
7426 tagname=
7427 lt_save_CC="$CC"
7428 ac_ext=c
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434
7435 # Source file extension for C test sources.
7436 ac_ext=c
7437
7438 # Object file extension for compiled C test sources.
7439 objext=o
7440 objext=$objext
7441
7442 # Code to be used in simple compile tests
7443 lt_simple_compile_test_code="int some_variable = 0;\n"
7444
7445 # Code to be used in simple link tests
7446 lt_simple_link_test_code='int main(){return(0);}\n'
7447
7448
7449 # If no C compiler was specified, use CC.
7450 LTCC=${LTCC-"$CC"}
7451
7452 # If no C compiler flags were specified, use CFLAGS.
7453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7454
7455 # Allow CC to be a program name with arguments.
7456 compiler=$CC
7457
7458
7459 # save warnings/boilerplate of simple test code
7460 ac_outfile=conftest.$ac_objext
7461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7463 _lt_compiler_boilerplate=`cat conftest.err`
7464 $rm conftest*
7465
7466 ac_outfile=conftest.$ac_objext
7467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7469 _lt_linker_boilerplate=`cat conftest.err`
7470 $rm conftest*
7471
7472
7473
7474 lt_prog_compiler_no_builtin_flag=
7475
7476 if test "$GCC" = yes; then
7477   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7478
7479
7480 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7481 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7482 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   lt_cv_prog_compiler_rtti_exceptions=no
7486   ac_outfile=conftest.$ac_objext
7487    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7488    lt_compiler_flag="-fno-rtti -fno-exceptions"
7489    # Insert the option either (1) after the last *FLAGS variable, or
7490    # (2) before a word containing "conftest.", or (3) at the end.
7491    # Note that $ac_compile itself does not contain backslashes and begins
7492    # with a dollar sign (not a hyphen), so the echo should work correctly.
7493    # The option is referenced via a variable to avoid confusing sed.
7494    lt_compile=`echo "$ac_compile" | $SED \
7495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7497    -e 's:$: $lt_compiler_flag:'`
7498    (eval echo "\"\$as_me:7498: $lt_compile\"" >&5)
7499    (eval "$lt_compile" 2>conftest.err)
7500    ac_status=$?
7501    cat conftest.err >&5
7502    echo "$as_me:7502: \$? = $ac_status" >&5
7503    if (exit $ac_status) && test -s "$ac_outfile"; then
7504      # The compiler can only warn and ignore the option if not recognized
7505      # So say no if there are warnings other than the usual output.
7506      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7507      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7508      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7509        lt_cv_prog_compiler_rtti_exceptions=yes
7510      fi
7511    fi
7512    $rm conftest*
7513
7514 fi
7515 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7516 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7517
7518 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7519     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7520 else
7521     :
7522 fi
7523
7524 fi
7525
7526 lt_prog_compiler_wl=
7527 lt_prog_compiler_pic=
7528 lt_prog_compiler_static=
7529
7530 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7531 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7532
7533   if test "$GCC" = yes; then
7534     lt_prog_compiler_wl='-Wl,'
7535     lt_prog_compiler_static='-static'
7536
7537     case $host_os in
7538       aix*)
7539       # All AIX code is PIC.
7540       if test "$host_cpu" = ia64; then
7541         # AIX 5 now supports IA64 processor
7542         lt_prog_compiler_static='-Bstatic'
7543       fi
7544       ;;
7545
7546     amigaos*)
7547       # FIXME: we need at least 68020 code to build shared libraries, but
7548       # adding the `-m68020' flag to GCC prevents building anything better,
7549       # like `-m68040'.
7550       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7551       ;;
7552
7553     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7554       # PIC is the default for these OSes.
7555       ;;
7556
7557     mingw* | pw32* | os2*)
7558       # This hack is so that the source file can tell whether it is being
7559       # built for inclusion in a dll (and should export symbols for example).
7560       lt_prog_compiler_pic='-DDLL_EXPORT'
7561       ;;
7562
7563     darwin* | rhapsody*)
7564       # PIC is the default on this platform
7565       # Common symbols not allowed in MH_DYLIB files
7566       lt_prog_compiler_pic='-fno-common'
7567       ;;
7568
7569     interix3*)
7570       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7571       # Instead, we relocate shared libraries at runtime.
7572       ;;
7573
7574     msdosdjgpp*)
7575       # Just because we use GCC doesn't mean we suddenly get shared libraries
7576       # on systems that don't support them.
7577       lt_prog_compiler_can_build_shared=no
7578       enable_shared=no
7579       ;;
7580
7581     sysv4*MP*)
7582       if test -d /usr/nec; then
7583         lt_prog_compiler_pic=-Kconform_pic
7584       fi
7585       ;;
7586
7587     hpux*)
7588       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7589       # not for PA HP-UX.
7590       case $host_cpu in
7591       hppa*64*|ia64*)
7592         # +Z the default
7593         ;;
7594       *)
7595         lt_prog_compiler_pic='-fPIC'
7596         ;;
7597       esac
7598       ;;
7599
7600     *)
7601       lt_prog_compiler_pic='-fPIC'
7602       ;;
7603     esac
7604   else
7605     # PORTME Check for flag to pass linker flags through the system compiler.
7606     case $host_os in
7607     aix*)
7608       lt_prog_compiler_wl='-Wl,'
7609       if test "$host_cpu" = ia64; then
7610         # AIX 5 now supports IA64 processor
7611         lt_prog_compiler_static='-Bstatic'
7612       else
7613         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7614       fi
7615       ;;
7616       darwin*)
7617         # PIC is the default on this platform
7618         # Common symbols not allowed in MH_DYLIB files
7619        case $cc_basename in
7620          xlc*)
7621          lt_prog_compiler_pic='-qnocommon'
7622          lt_prog_compiler_wl='-Wl,'
7623          ;;
7624        esac
7625        ;;
7626
7627     mingw* | pw32* | os2*)
7628       # This hack is so that the source file can tell whether it is being
7629       # built for inclusion in a dll (and should export symbols for example).
7630       lt_prog_compiler_pic='-DDLL_EXPORT'
7631       ;;
7632
7633     hpux9* | hpux10* | hpux11*)
7634       lt_prog_compiler_wl='-Wl,'
7635       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7636       # not for PA HP-UX.
7637       case $host_cpu in
7638       hppa*64*|ia64*)
7639         # +Z the default
7640         ;;
7641       *)
7642         lt_prog_compiler_pic='+Z'
7643         ;;
7644       esac
7645       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7646       lt_prog_compiler_static='${wl}-a ${wl}archive'
7647       ;;
7648
7649     irix5* | irix6* | nonstopux*)
7650       lt_prog_compiler_wl='-Wl,'
7651       # PIC (with -KPIC) is the default.
7652       lt_prog_compiler_static='-non_shared'
7653       ;;
7654
7655     newsos6)
7656       lt_prog_compiler_pic='-KPIC'
7657       lt_prog_compiler_static='-Bstatic'
7658       ;;
7659
7660     linux* | k*bsd*-gnu)
7661       case $cc_basename in
7662       icc* | ecc*)
7663         lt_prog_compiler_wl='-Wl,'
7664         lt_prog_compiler_pic='-KPIC'
7665         lt_prog_compiler_static='-static'
7666         ;;
7667       pgcc* | pgf77* | pgf90* | pgf95*)
7668         # Portland Group compilers (*not* the Pentium gcc compiler,
7669         # which looks to be a dead project)
7670         lt_prog_compiler_wl='-Wl,'
7671         lt_prog_compiler_pic='-fpic'
7672         lt_prog_compiler_static='-Bstatic'
7673         ;;
7674       ccc*)
7675         lt_prog_compiler_wl='-Wl,'
7676         # All Alpha code is PIC.
7677         lt_prog_compiler_static='-non_shared'
7678         ;;
7679       esac
7680       ;;
7681
7682     osf3* | osf4* | osf5*)
7683       lt_prog_compiler_wl='-Wl,'
7684       # All OSF/1 code is PIC.
7685       lt_prog_compiler_static='-non_shared'
7686       ;;
7687
7688     solaris*)
7689       lt_prog_compiler_pic='-KPIC'
7690       lt_prog_compiler_static='-Bstatic'
7691       case $cc_basename in
7692       f77* | f90* | f95*)
7693         lt_prog_compiler_wl='-Qoption ld ';;
7694       *)
7695         lt_prog_compiler_wl='-Wl,';;
7696       esac
7697       ;;
7698
7699     sunos4*)
7700       lt_prog_compiler_wl='-Qoption ld '
7701       lt_prog_compiler_pic='-PIC'
7702       lt_prog_compiler_static='-Bstatic'
7703       ;;
7704
7705     sysv4 | sysv4.2uw2* | sysv4.3*)
7706       lt_prog_compiler_wl='-Wl,'
7707       lt_prog_compiler_pic='-KPIC'
7708       lt_prog_compiler_static='-Bstatic'
7709       ;;
7710
7711     sysv4*MP*)
7712       if test -d /usr/nec ;then
7713         lt_prog_compiler_pic='-Kconform_pic'
7714         lt_prog_compiler_static='-Bstatic'
7715       fi
7716       ;;
7717
7718     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7719       lt_prog_compiler_wl='-Wl,'
7720       lt_prog_compiler_pic='-KPIC'
7721       lt_prog_compiler_static='-Bstatic'
7722       ;;
7723
7724     unicos*)
7725       lt_prog_compiler_wl='-Wl,'
7726       lt_prog_compiler_can_build_shared=no
7727       ;;
7728
7729     uts4*)
7730       lt_prog_compiler_pic='-pic'
7731       lt_prog_compiler_static='-Bstatic'
7732       ;;
7733
7734     *)
7735       lt_prog_compiler_can_build_shared=no
7736       ;;
7737     esac
7738   fi
7739
7740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7742
7743 #
7744 # Check to make sure the PIC flag actually works.
7745 #
7746 if test -n "$lt_prog_compiler_pic"; then
7747
7748 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7750 if test "${lt_prog_compiler_pic_works+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   lt_prog_compiler_pic_works=no
7754   ac_outfile=conftest.$ac_objext
7755    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7756    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7757    # Insert the option either (1) after the last *FLAGS variable, or
7758    # (2) before a word containing "conftest.", or (3) at the end.
7759    # Note that $ac_compile itself does not contain backslashes and begins
7760    # with a dollar sign (not a hyphen), so the echo should work correctly.
7761    # The option is referenced via a variable to avoid confusing sed.
7762    lt_compile=`echo "$ac_compile" | $SED \
7763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765    -e 's:$: $lt_compiler_flag:'`
7766    (eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
7767    (eval "$lt_compile" 2>conftest.err)
7768    ac_status=$?
7769    cat conftest.err >&5
7770    echo "$as_me:7770: \$? = $ac_status" >&5
7771    if (exit $ac_status) && test -s "$ac_outfile"; then
7772      # The compiler can only warn and ignore the option if not recognized
7773      # So say no if there are warnings other than the usual output.
7774      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7775      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7776      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7777        lt_prog_compiler_pic_works=yes
7778      fi
7779    fi
7780    $rm conftest*
7781
7782 fi
7783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7784 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7785
7786 if test x"$lt_prog_compiler_pic_works" = xyes; then
7787     case $lt_prog_compiler_pic in
7788      "" | " "*) ;;
7789      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7790      esac
7791 else
7792     lt_prog_compiler_pic=
7793      lt_prog_compiler_can_build_shared=no
7794 fi
7795
7796 fi
7797 case $host_os in
7798   # For platforms which do not support PIC, -DPIC is meaningless:
7799   *djgpp*)
7800     lt_prog_compiler_pic=
7801     ;;
7802   *)
7803     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7804     ;;
7805 esac
7806
7807 #
7808 # Check to make sure the static flag actually works.
7809 #
7810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7813 if test "${lt_prog_compiler_static_works+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   lt_prog_compiler_static_works=no
7817    save_LDFLAGS="$LDFLAGS"
7818    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7819    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7820    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7821      # The linker can only warn and ignore the option if not recognized
7822      # So say no if there are warnings
7823      if test -s conftest.err; then
7824        # Append any errors to the config.log.
7825        cat conftest.err 1>&5
7826        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7827        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7828        if diff conftest.exp conftest.er2 >/dev/null; then
7829          lt_prog_compiler_static_works=yes
7830        fi
7831      else
7832        lt_prog_compiler_static_works=yes
7833      fi
7834    fi
7835    $rm conftest*
7836    LDFLAGS="$save_LDFLAGS"
7837
7838 fi
7839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7841
7842 if test x"$lt_prog_compiler_static_works" = xyes; then
7843     :
7844 else
7845     lt_prog_compiler_static=
7846 fi
7847
7848
7849 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7850 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7851 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   lt_cv_prog_compiler_c_o=no
7855    $rm -r conftest 2>/dev/null
7856    mkdir conftest
7857    cd conftest
7858    mkdir out
7859    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7860
7861    lt_compiler_flag="-o out/conftest2.$ac_objext"
7862    # Insert the option either (1) after the last *FLAGS variable, or
7863    # (2) before a word containing "conftest.", or (3) at the end.
7864    # Note that $ac_compile itself does not contain backslashes and begins
7865    # with a dollar sign (not a hyphen), so the echo should work correctly.
7866    lt_compile=`echo "$ac_compile" | $SED \
7867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7869    -e 's:$: $lt_compiler_flag:'`
7870    (eval echo "\"\$as_me:7870: $lt_compile\"" >&5)
7871    (eval "$lt_compile" 2>out/conftest.err)
7872    ac_status=$?
7873    cat out/conftest.err >&5
7874    echo "$as_me:7874: \$? = $ac_status" >&5
7875    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7876    then
7877      # The compiler can only warn and ignore the option if not recognized
7878      # So say no if there are warnings
7879      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7880      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7881      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7882        lt_cv_prog_compiler_c_o=yes
7883      fi
7884    fi
7885    chmod u+w . 2>&5
7886    $rm conftest*
7887    # SGI C++ compiler will create directory out/ii_files/ for
7888    # template instantiation
7889    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7890    $rm out/* && rmdir out
7891    cd ..
7892    rmdir conftest
7893    $rm conftest*
7894
7895 fi
7896 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7897 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7898
7899
7900 hard_links="nottested"
7901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7902   # do not overwrite the value of need_locks provided by the user
7903   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7904 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7905   hard_links=yes
7906   $rm conftest*
7907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7908   touch conftest.a
7909   ln conftest.a conftest.b 2>&5 || hard_links=no
7910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7911   { echo "$as_me:$LINENO: result: $hard_links" >&5
7912 echo "${ECHO_T}$hard_links" >&6; }
7913   if test "$hard_links" = no; then
7914     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7915 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7916     need_locks=warn
7917   fi
7918 else
7919   need_locks=no
7920 fi
7921
7922 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7923 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7924
7925   runpath_var=
7926   allow_undefined_flag=
7927   enable_shared_with_static_runtimes=no
7928   archive_cmds=
7929   archive_expsym_cmds=
7930   old_archive_From_new_cmds=
7931   old_archive_from_expsyms_cmds=
7932   export_dynamic_flag_spec=
7933   whole_archive_flag_spec=
7934   thread_safe_flag_spec=
7935   hardcode_libdir_flag_spec=
7936   hardcode_libdir_flag_spec_ld=
7937   hardcode_libdir_separator=
7938   hardcode_direct=no
7939   hardcode_minus_L=no
7940   hardcode_shlibpath_var=unsupported
7941   link_all_deplibs=unknown
7942   hardcode_automatic=no
7943   module_cmds=
7944   module_expsym_cmds=
7945   always_export_symbols=no
7946   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7947   # include_expsyms should be a list of space-separated symbols to be *always*
7948   # included in the symbol list
7949   include_expsyms=
7950   # exclude_expsyms can be an extended regexp of symbols to exclude
7951   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7952   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7953   # as well as any symbol that contains `d'.
7954   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7955   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7956   # platforms (ab)use it in PIC code, but their linkers get confused if
7957   # the symbol is explicitly referenced.  Since portable code cannot
7958   # rely on this symbol name, it's probably fine to never include it in
7959   # preloaded symbol tables.
7960   extract_expsyms_cmds=
7961   # Just being paranoid about ensuring that cc_basename is set.
7962   for cc_temp in $compiler""; do
7963   case $cc_temp in
7964     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7965     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7966     \-*) ;;
7967     *) break;;
7968   esac
7969 done
7970 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7971
7972   case $host_os in
7973   cygwin* | mingw* | pw32*)
7974     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7975     # When not using gcc, we currently assume that we are using
7976     # Microsoft Visual C++.
7977     if test "$GCC" != yes; then
7978       with_gnu_ld=no
7979     fi
7980     ;;
7981   interix*)
7982     # we just hope/assume this is gcc and not c89 (= MSVC++)
7983     with_gnu_ld=yes
7984     ;;
7985   openbsd*)
7986     with_gnu_ld=no
7987     ;;
7988   esac
7989
7990   ld_shlibs=yes
7991   if test "$with_gnu_ld" = yes; then
7992     # If archive_cmds runs LD, not CC, wlarc should be empty
7993     wlarc='${wl}'
7994
7995     # Set some defaults for GNU ld with shared library support. These
7996     # are reset later if shared libraries are not supported. Putting them
7997     # here allows them to be overridden if necessary.
7998     runpath_var=LD_RUN_PATH
7999     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8000     export_dynamic_flag_spec='${wl}--export-dynamic'
8001     # ancient GNU ld didn't support --whole-archive et. al.
8002     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8003         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8004       else
8005         whole_archive_flag_spec=
8006     fi
8007     supports_anon_versioning=no
8008     case `$LD -v 2>/dev/null` in
8009       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8010       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8011       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8012       *\ 2.11.*) ;; # other 2.11 versions
8013       *) supports_anon_versioning=yes ;;
8014     esac
8015
8016     # See if GNU ld supports shared libraries.
8017     case $host_os in
8018     aix3* | aix4* | aix5*)
8019       # On AIX/PPC, the GNU linker is very broken
8020       if test "$host_cpu" != ia64; then
8021         ld_shlibs=no
8022         cat <<EOF 1>&2
8023
8024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8025 *** to be unable to reliably create shared libraries on AIX.
8026 *** Therefore, libtool is disabling shared libraries support.  If you
8027 *** really care for shared libraries, you may want to modify your PATH
8028 *** so that a non-GNU linker is found, and then restart.
8029
8030 EOF
8031       fi
8032       ;;
8033
8034     amigaos*)
8035       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)'
8036       hardcode_libdir_flag_spec='-L$libdir'
8037       hardcode_minus_L=yes
8038
8039       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8040       # that the semantics of dynamic libraries on AmigaOS, at least up
8041       # to version 4, is to share data among multiple programs linked
8042       # with the same dynamic library.  Since this doesn't match the
8043       # behavior of shared libraries on other platforms, we can't use
8044       # them.
8045       ld_shlibs=no
8046       ;;
8047
8048     beos*)
8049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050         allow_undefined_flag=unsupported
8051         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8052         # support --undefined.  This deserves some investigation.  FIXME
8053         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054       else
8055         ld_shlibs=no
8056       fi
8057       ;;
8058
8059     cygwin* | mingw* | pw32*)
8060       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8061       # as there is no search path for DLLs.
8062       hardcode_libdir_flag_spec='-L$libdir'
8063       allow_undefined_flag=unsupported
8064       always_export_symbols=no
8065       enable_shared_with_static_runtimes=yes
8066       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8067
8068       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8069         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8070         # If the export-symbols file already is a .def file (1st line
8071         # is EXPORTS), use it as is; otherwise, prepend...
8072         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8073           cp $export_symbols $output_objdir/$soname.def;
8074         else
8075           echo EXPORTS > $output_objdir/$soname.def;
8076           cat $export_symbols >> $output_objdir/$soname.def;
8077         fi~
8078         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8079       else
8080         ld_shlibs=no
8081       fi
8082       ;;
8083
8084     interix3*)
8085       hardcode_direct=no
8086       hardcode_shlibpath_var=no
8087       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8088       export_dynamic_flag_spec='${wl}-E'
8089       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8090       # Instead, shared libraries are loaded at an image base (0x10000000 by
8091       # default) and relocated if they conflict, which is a slow very memory
8092       # consuming and fragmenting process.  To avoid this, we pick a random,
8093       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8094       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8095       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8096       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'
8097       ;;
8098
8099     linux* | k*bsd*-gnu)
8100       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8101         tmp_addflag=
8102         case $cc_basename,$host_cpu in
8103         pgcc*)                          # Portland Group C compiler
8104           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'
8105           tmp_addflag=' $pic_flag'
8106           ;;
8107         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8108           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'
8109           tmp_addflag=' $pic_flag -Mnomain' ;;
8110         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8111           tmp_addflag=' -i_dynamic' ;;
8112         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8113           tmp_addflag=' -i_dynamic -nofor_main' ;;
8114         ifc* | ifort*)                  # Intel Fortran compiler
8115           tmp_addflag=' -nofor_main' ;;
8116         esac
8117         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118
8119         if test $supports_anon_versioning = yes; then
8120           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8121   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8122   $echo "local: *; };" >> $output_objdir/$libname.ver~
8123           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8124         fi
8125         link_all_deplibs=no
8126       else
8127         ld_shlibs=no
8128       fi
8129       ;;
8130
8131     netbsd* | netbsdelf*-gnu)
8132       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8133         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8134         wlarc=
8135       else
8136         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138       fi
8139       ;;
8140
8141     solaris*)
8142       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8143         ld_shlibs=no
8144         cat <<EOF 1>&2
8145
8146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8147 *** create shared libraries on Solaris systems.  Therefore, libtool
8148 *** is disabling shared libraries support.  We urge you to upgrade GNU
8149 *** binutils to release 2.9.1 or newer.  Another option is to modify
8150 *** your PATH or compiler configuration so that the native linker is
8151 *** used, and then restart.
8152
8153 EOF
8154       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8157       else
8158         ld_shlibs=no
8159       fi
8160       ;;
8161
8162     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8163       case `$LD -v 2>&1` in
8164         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8165         ld_shlibs=no
8166         cat <<_LT_EOF 1>&2
8167
8168 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8169 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8170 *** is disabling shared libraries support.  We urge you to upgrade GNU
8171 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8172 *** your PATH or compiler configuration so that the native linker is
8173 *** used, and then restart.
8174
8175 _LT_EOF
8176         ;;
8177         *)
8178           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8179             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8180             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8181             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8182           else
8183             ld_shlibs=no
8184           fi
8185         ;;
8186       esac
8187       ;;
8188
8189     sunos4*)
8190       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8191       wlarc=
8192       hardcode_direct=yes
8193       hardcode_shlibpath_var=no
8194       ;;
8195
8196     *)
8197       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8198         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8200       else
8201         ld_shlibs=no
8202       fi
8203       ;;
8204     esac
8205
8206     if test "$ld_shlibs" = no; then
8207       runpath_var=
8208       hardcode_libdir_flag_spec=
8209       export_dynamic_flag_spec=
8210       whole_archive_flag_spec=
8211     fi
8212   else
8213     # PORTME fill in a description of your system's linker (not GNU ld)
8214     case $host_os in
8215     aix3*)
8216       allow_undefined_flag=unsupported
8217       always_export_symbols=yes
8218       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'
8219       # Note: this linker hardcodes the directories in LIBPATH if there
8220       # are no directories specified by -L.
8221       hardcode_minus_L=yes
8222       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8223         # Neither direct hardcoding nor static linking is supported with a
8224         # broken collect2.
8225         hardcode_direct=unsupported
8226       fi
8227       ;;
8228
8229     aix4* | aix5*)
8230       if test "$host_cpu" = ia64; then
8231         # On IA64, the linker does run time linking by default, so we don't
8232         # have to do anything special.
8233         aix_use_runtimelinking=no
8234         exp_sym_flag='-Bexport'
8235         no_entry_flag=""
8236       else
8237         # If we're using GNU nm, then we don't want the "-C" option.
8238         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8239         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8240           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'
8241         else
8242           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'
8243         fi
8244         aix_use_runtimelinking=no
8245
8246         # Test if we are trying to use run time linking or normal
8247         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8248         # need to do runtime linking.
8249         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8250           for ld_flag in $LDFLAGS; do
8251           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8252             aix_use_runtimelinking=yes
8253             break
8254           fi
8255           done
8256           ;;
8257         esac
8258
8259         exp_sym_flag='-bexport'
8260         no_entry_flag='-bnoentry'
8261       fi
8262
8263       # When large executables or shared objects are built, AIX ld can
8264       # have problems creating the table of contents.  If linking a library
8265       # or program results in "error TOC overflow" add -mminimal-toc to
8266       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8267       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8268
8269       archive_cmds=''
8270       hardcode_direct=yes
8271       hardcode_libdir_separator=':'
8272       link_all_deplibs=yes
8273
8274       if test "$GCC" = yes; then
8275         case $host_os in aix4.[012]|aix4.[012].*)
8276         # We only want to do this on AIX 4.2 and lower, the check
8277         # below for broken collect2 doesn't work under 4.3+
8278           collect2name=`${CC} -print-prog-name=collect2`
8279           if test -f "$collect2name" && \
8280            strings "$collect2name" | grep resolve_lib_name >/dev/null
8281           then
8282           # We have reworked collect2
8283           hardcode_direct=yes
8284           else
8285           # We have old collect2
8286           hardcode_direct=unsupported
8287           # It fails to find uninstalled libraries when the uninstalled
8288           # path is not listed in the libpath.  Setting hardcode_minus_L
8289           # to unsupported forces relinking
8290           hardcode_minus_L=yes
8291           hardcode_libdir_flag_spec='-L$libdir'
8292           hardcode_libdir_separator=
8293           fi
8294           ;;
8295         esac
8296         shared_flag='-shared'
8297         if test "$aix_use_runtimelinking" = yes; then
8298           shared_flag="$shared_flag "'${wl}-G'
8299         fi
8300       else
8301         # not using gcc
8302         if test "$host_cpu" = ia64; then
8303         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8304         # chokes on -Wl,-G. The following line is correct:
8305           shared_flag='-G'
8306         else
8307           if test "$aix_use_runtimelinking" = yes; then
8308             shared_flag='${wl}-G'
8309           else
8310             shared_flag='${wl}-bM:SRE'
8311           fi
8312         fi
8313       fi
8314
8315       # It seems that -bexpall does not export symbols beginning with
8316       # underscore (_), so it is better to generate a list of symbols to export.
8317       always_export_symbols=yes
8318       if test "$aix_use_runtimelinking" = yes; then
8319         # Warning - without using the other runtime loading flags (-brtl),
8320         # -berok will link without error, but may produce a broken library.
8321         allow_undefined_flag='-berok'
8322        # Determine the default libpath from the value encoded in an empty executable.
8323        cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329
8330 int
8331 main ()
8332 {
8333
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (ac_try="$ac_link"
8340 case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_link") 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353   { (case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_try") 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; } &&
8362          { ac_try='test -s conftest$ac_exeext'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372
8373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8374 }'`
8375 # Check for a 64-bit object if we didn't find anything.
8376 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; }
8377 }'`; fi
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext \
8386       conftest$ac_exeext conftest.$ac_ext
8387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8388
8389        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8390         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"
8391        else
8392         if test "$host_cpu" = ia64; then
8393           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8394           allow_undefined_flag="-z nodefs"
8395           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"
8396         else
8397          # Determine the default libpath from the value encoded in an empty executable.
8398          cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404
8405 int
8406 main ()
8407 {
8408
8409   ;
8410   return 0;
8411 }
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (ac_try="$ac_link"
8415 case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420   (eval "$ac_link") 2>conftest.er1
8421   ac_status=$?
8422   grep -v '^ *+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } &&
8427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8428   { (case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433   (eval "$ac_try") 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (case "(($ac_try" in
8439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440   *) ac_try_echo=$ac_try;;
8441 esac
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443   (eval "$ac_try") 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; }; then
8447
8448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8449 }'`
8450 # Check for a 64-bit object if we didn't find anything.
8451 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; }
8452 }'`; fi
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457
8458 fi
8459
8460 rm -f core conftest.err conftest.$ac_objext \
8461       conftest$ac_exeext conftest.$ac_ext
8462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8463
8464          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8465           # Warning - without using the other run time loading flags,
8466           # -berok will link without error, but may produce a broken library.
8467           no_undefined_flag=' ${wl}-bernotok'
8468           allow_undefined_flag=' ${wl}-berok'
8469           # Exported symbols can be pulled into shared objects from archives
8470           whole_archive_flag_spec='$convenience'
8471           archive_cmds_need_lc=yes
8472           # This is similar to how AIX traditionally builds its shared libraries.
8473           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'
8474         fi
8475       fi
8476       ;;
8477
8478     amigaos*)
8479       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)'
8480       hardcode_libdir_flag_spec='-L$libdir'
8481       hardcode_minus_L=yes
8482       # see comment about different semantics on the GNU ld section
8483       ld_shlibs=no
8484       ;;
8485
8486     bsdi[45]*)
8487       export_dynamic_flag_spec=-rdynamic
8488       ;;
8489
8490     cygwin* | mingw* | pw32*)
8491       # When not using gcc, we currently assume that we are using
8492       # Microsoft Visual C++.
8493       # hardcode_libdir_flag_spec is actually meaningless, as there is
8494       # no search path for DLLs.
8495       hardcode_libdir_flag_spec=' '
8496       allow_undefined_flag=unsupported
8497       # Tell ltmain to make .lib files, not .a files.
8498       libext=lib
8499       # Tell ltmain to make .dll files, not .so files.
8500       shrext_cmds=".dll"
8501       # FIXME: Setting linknames here is a bad hack.
8502       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8503       # The linker will automatically build a .lib file if we build a DLL.
8504       old_archive_From_new_cmds='true'
8505       # FIXME: Should let the user specify the lib program.
8506       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8507       fix_srcfile_path='`cygpath -w "$srcfile"`'
8508       enable_shared_with_static_runtimes=yes
8509       ;;
8510
8511     darwin* | rhapsody*)
8512       case $host_os in
8513         rhapsody* | darwin1.[012])
8514          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8515          ;;
8516        *) # Darwin 1.3 on
8517          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8518            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8519          else
8520            case ${MACOSX_DEPLOYMENT_TARGET} in
8521              10.[012])
8522                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8523                ;;
8524              10.*)
8525                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8526                ;;
8527            esac
8528          fi
8529          ;;
8530       esac
8531       archive_cmds_need_lc=no
8532       hardcode_direct=no
8533       hardcode_automatic=yes
8534       hardcode_shlibpath_var=unsupported
8535       whole_archive_flag_spec=''
8536       link_all_deplibs=yes
8537     if test "$GCC" = yes ; then
8538         output_verbose_link_cmd='echo'
8539         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8540       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8541       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8542       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}'
8543       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}'
8544     else
8545       case $cc_basename in
8546         xlc*)
8547          output_verbose_link_cmd='echo'
8548          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8549          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8550           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8551          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}'
8552           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}'
8553           ;;
8554        *)
8555          ld_shlibs=no
8556           ;;
8557       esac
8558     fi
8559       ;;
8560
8561     dgux*)
8562       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8563       hardcode_libdir_flag_spec='-L$libdir'
8564       hardcode_shlibpath_var=no
8565       ;;
8566
8567     freebsd1*)
8568       ld_shlibs=no
8569       ;;
8570
8571     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8572     # support.  Future versions do this automatically, but an explicit c++rt0.o
8573     # does not break anything, and helps significantly (at the cost of a little
8574     # extra space).
8575     freebsd2.2*)
8576       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8577       hardcode_libdir_flag_spec='-R$libdir'
8578       hardcode_direct=yes
8579       hardcode_shlibpath_var=no
8580       ;;
8581
8582     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8583     freebsd2*)
8584       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8585       hardcode_direct=yes
8586       hardcode_minus_L=yes
8587       hardcode_shlibpath_var=no
8588       ;;
8589
8590     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8591     freebsd* | dragonfly*)
8592       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8593       hardcode_libdir_flag_spec='-R$libdir'
8594       hardcode_direct=yes
8595       hardcode_shlibpath_var=no
8596       ;;
8597
8598     hpux9*)
8599       if test "$GCC" = yes; then
8600         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'
8601       else
8602         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'
8603       fi
8604       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8605       hardcode_libdir_separator=:
8606       hardcode_direct=yes
8607
8608       # hardcode_minus_L: Not really in the search PATH,
8609       # but as the default location of the library.
8610       hardcode_minus_L=yes
8611       export_dynamic_flag_spec='${wl}-E'
8612       ;;
8613
8614     hpux10*)
8615       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8616         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8617       else
8618         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8619       fi
8620       if test "$with_gnu_ld" = no; then
8621         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8622         hardcode_libdir_separator=:
8623
8624         hardcode_direct=yes
8625         export_dynamic_flag_spec='${wl}-E'
8626
8627         # hardcode_minus_L: Not really in the search PATH,
8628         # but as the default location of the library.
8629         hardcode_minus_L=yes
8630       fi
8631       ;;
8632
8633     hpux11*)
8634       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8635         case $host_cpu in
8636         hppa*64*)
8637           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8638           ;;
8639         ia64*)
8640           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8641           ;;
8642         *)
8643           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8644           ;;
8645         esac
8646       else
8647         case $host_cpu in
8648         hppa*64*)
8649           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8650           ;;
8651         ia64*)
8652           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8653           ;;
8654         *)
8655           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8656           ;;
8657         esac
8658       fi
8659       if test "$with_gnu_ld" = no; then
8660         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8661         hardcode_libdir_separator=:
8662
8663         case $host_cpu in
8664         hppa*64*|ia64*)
8665           hardcode_libdir_flag_spec_ld='+b $libdir'
8666           hardcode_direct=no
8667           hardcode_shlibpath_var=no
8668           ;;
8669         *)
8670           hardcode_direct=yes
8671           export_dynamic_flag_spec='${wl}-E'
8672
8673           # hardcode_minus_L: Not really in the search PATH,
8674           # but as the default location of the library.
8675           hardcode_minus_L=yes
8676           ;;
8677         esac
8678       fi
8679       ;;
8680
8681     irix5* | irix6* | nonstopux*)
8682       if test "$GCC" = yes; then
8683         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'
8684       else
8685         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'
8686         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8687       fi
8688       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689       hardcode_libdir_separator=:
8690       link_all_deplibs=yes
8691       ;;
8692
8693     netbsd* | netbsdelf*-gnu)
8694       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8695         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8696       else
8697         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8698       fi
8699       hardcode_libdir_flag_spec='-R$libdir'
8700       hardcode_direct=yes
8701       hardcode_shlibpath_var=no
8702       ;;
8703
8704     newsos6)
8705       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8706       hardcode_direct=yes
8707       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708       hardcode_libdir_separator=:
8709       hardcode_shlibpath_var=no
8710       ;;
8711
8712     openbsd*)
8713       hardcode_direct=yes
8714       hardcode_shlibpath_var=no
8715       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8716         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8717         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8718         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8719         export_dynamic_flag_spec='${wl}-E'
8720       else
8721        case $host_os in
8722          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8723            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8724            hardcode_libdir_flag_spec='-R$libdir'
8725            ;;
8726          *)
8727            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8728            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8729            ;;
8730        esac
8731       fi
8732       ;;
8733
8734     os2*)
8735       hardcode_libdir_flag_spec='-L$libdir'
8736       hardcode_minus_L=yes
8737       allow_undefined_flag=unsupported
8738       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'
8739       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8740       ;;
8741
8742     osf3*)
8743       if test "$GCC" = yes; then
8744         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8745         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'
8746       else
8747         allow_undefined_flag=' -expect_unresolved \*'
8748         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'
8749       fi
8750       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751       hardcode_libdir_separator=:
8752       ;;
8753
8754     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8755       if test "$GCC" = yes; then
8756         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8757         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'
8758         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8759       else
8760         allow_undefined_flag=' -expect_unresolved \*'
8761         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'
8762         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8763         $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'
8764
8765         # Both c and cxx compiler support -rpath directly
8766         hardcode_libdir_flag_spec='-rpath $libdir'
8767       fi
8768       hardcode_libdir_separator=:
8769       ;;
8770
8771     solaris*)
8772       no_undefined_flag=' -z text'
8773       if test "$GCC" = yes; then
8774         wlarc='${wl}'
8775         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8777           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8778       else
8779         wlarc=''
8780         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8782         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8783       fi
8784       hardcode_libdir_flag_spec='-R$libdir'
8785       hardcode_shlibpath_var=no
8786       case $host_os in
8787       solaris2.[0-5] | solaris2.[0-5].*) ;;
8788       *)
8789         # The compiler driver will combine linker options so we
8790         # cannot just pass the convience library names through
8791         # without $wl, iff we do not link with $LD.
8792         # Luckily, gcc supports the same syntax we need for Sun Studio.
8793         # Supported since Solaris 2.6 (maybe 2.5.1?)
8794         case $wlarc in
8795         '')
8796           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8797         *)
8798           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' ;;
8799         esac ;;
8800       esac
8801       link_all_deplibs=yes
8802       ;;
8803
8804     sunos4*)
8805       if test "x$host_vendor" = xsequent; then
8806         # Use $CC to link under sequent, because it throws in some extra .o
8807         # files that make .init and .fini sections work.
8808         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8809       else
8810         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8811       fi
8812       hardcode_libdir_flag_spec='-L$libdir'
8813       hardcode_direct=yes
8814       hardcode_minus_L=yes
8815       hardcode_shlibpath_var=no
8816       ;;
8817
8818     sysv4)
8819       case $host_vendor in
8820         sni)
8821           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822           hardcode_direct=yes # is this really true???
8823         ;;
8824         siemens)
8825           ## LD is ld it makes a PLAMLIB
8826           ## CC just makes a GrossModule.
8827           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8828           reload_cmds='$CC -r -o $output$reload_objs'
8829           hardcode_direct=no
8830         ;;
8831         motorola)
8832           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8834         ;;
8835       esac
8836       runpath_var='LD_RUN_PATH'
8837       hardcode_shlibpath_var=no
8838       ;;
8839
8840     sysv4.3*)
8841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842       hardcode_shlibpath_var=no
8843       export_dynamic_flag_spec='-Bexport'
8844       ;;
8845
8846     sysv4*MP*)
8847       if test -d /usr/nec; then
8848         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849         hardcode_shlibpath_var=no
8850         runpath_var=LD_RUN_PATH
8851         hardcode_runpath_var=yes
8852         ld_shlibs=yes
8853       fi
8854       ;;
8855
8856     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8857       no_undefined_flag='${wl}-z,text'
8858       archive_cmds_need_lc=no
8859       hardcode_shlibpath_var=no
8860       runpath_var='LD_RUN_PATH'
8861
8862       if test "$GCC" = yes; then
8863         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8865       else
8866         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8868       fi
8869       ;;
8870
8871     sysv5* | sco3.2v5* | sco5v6*)
8872       # Note: We can NOT use -z defs as we might desire, because we do not
8873       # link with -lc, and that would cause any symbols used from libc to
8874       # always be unresolved, which means just about no library would
8875       # ever link correctly.  If we're not using GNU ld we use -z text
8876       # though, which does catch some bad symbols but isn't as heavy-handed
8877       # as -z defs.
8878       no_undefined_flag='${wl}-z,text'
8879       allow_undefined_flag='${wl}-z,nodefs'
8880       archive_cmds_need_lc=no
8881       hardcode_shlibpath_var=no
8882       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8883       hardcode_libdir_separator=':'
8884       link_all_deplibs=yes
8885       export_dynamic_flag_spec='${wl}-Bexport'
8886       runpath_var='LD_RUN_PATH'
8887
8888       if test "$GCC" = yes; then
8889         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8890         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891       else
8892         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894       fi
8895       ;;
8896
8897     uts4*)
8898       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_libdir_flag_spec='-L$libdir'
8900       hardcode_shlibpath_var=no
8901       ;;
8902
8903     *)
8904       ld_shlibs=no
8905       ;;
8906     esac
8907   fi
8908
8909 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8910 echo "${ECHO_T}$ld_shlibs" >&6; }
8911 test "$ld_shlibs" = no && can_build_shared=no
8912
8913 #
8914 # Do we need to explicitly link libc?
8915 #
8916 case "x$archive_cmds_need_lc" in
8917 x|xyes)
8918   # Assume -lc should be added
8919   archive_cmds_need_lc=yes
8920
8921   if test "$enable_shared" = yes && test "$GCC" = yes; then
8922     case $archive_cmds in
8923     *'~'*)
8924       # FIXME: we may have to deal with multi-command sequences.
8925       ;;
8926     '$CC '*)
8927       # Test whether the compiler implicitly links with -lc since on some
8928       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8929       # to ld, don't add -lc before -lgcc.
8930       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8932       $rm conftest*
8933       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8934
8935       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8936   (eval $ac_compile) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } 2>conftest.err; then
8940         soname=conftest
8941         lib=conftest
8942         libobjs=conftest.$ac_objext
8943         deplibs=
8944         wl=$lt_prog_compiler_wl
8945         pic_flag=$lt_prog_compiler_pic
8946         compiler_flags=-v
8947         linker_flags=-v
8948         verstring=
8949         output_objdir=.
8950         libname=conftest
8951         lt_save_allow_undefined_flag=$allow_undefined_flag
8952         allow_undefined_flag=
8953         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8954   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }
8958         then
8959           archive_cmds_need_lc=no
8960         else
8961           archive_cmds_need_lc=yes
8962         fi
8963         allow_undefined_flag=$lt_save_allow_undefined_flag
8964       else
8965         cat conftest.err 1>&5
8966       fi
8967       $rm conftest*
8968       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8969 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8970       ;;
8971     esac
8972   fi
8973   ;;
8974 esac
8975
8976 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8977 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8978 library_names_spec=
8979 libname_spec='lib$name'
8980 soname_spec=
8981 shrext_cmds=".so"
8982 postinstall_cmds=
8983 postuninstall_cmds=
8984 finish_cmds=
8985 finish_eval=
8986 shlibpath_var=
8987 shlibpath_overrides_runpath=unknown
8988 version_type=none
8989 dynamic_linker="$host_os ld.so"
8990 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8991 if test "$GCC" = yes; then
8992   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8993   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8994     # if the path contains ";" then we assume it to be the separator
8995     # otherwise default to the standard path separator (i.e. ":") - it is
8996     # assumed that no part of a normal pathname contains ";" but that should
8997     # okay in the real world where ";" in dirpaths is itself problematic.
8998     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8999   else
9000     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9001   fi
9002 else
9003   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9004 fi
9005 need_lib_prefix=unknown
9006 hardcode_into_libs=no
9007
9008 # when you set need_version to no, make sure it does not cause -set_version
9009 # flags to be left without arguments
9010 need_version=unknown
9011
9012 case $host_os in
9013 aix3*)
9014   version_type=linux
9015   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9016   shlibpath_var=LIBPATH
9017
9018   # AIX 3 has no versioning support, so we append a major version to the name.
9019   soname_spec='${libname}${release}${shared_ext}$major'
9020   ;;
9021
9022 aix4* | aix5*)
9023   version_type=linux
9024   need_lib_prefix=no
9025   need_version=no
9026   hardcode_into_libs=yes
9027   if test "$host_cpu" = ia64; then
9028     # AIX 5 supports IA64
9029     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9030     shlibpath_var=LD_LIBRARY_PATH
9031   else
9032     # With GCC up to 2.95.x, collect2 would create an import file
9033     # for dependence libraries.  The import file would start with
9034     # the line `#! .'.  This would cause the generated library to
9035     # depend on `.', always an invalid library.  This was fixed in
9036     # development snapshots of GCC prior to 3.0.
9037     case $host_os in
9038       aix4 | aix4.[01] | aix4.[01].*)
9039       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9040            echo ' yes '
9041            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9042         :
9043       else
9044         can_build_shared=no
9045       fi
9046       ;;
9047     esac
9048     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9049     # soname into executable. Probably we can add versioning support to
9050     # collect2, so additional links can be useful in future.
9051     if test "$aix_use_runtimelinking" = yes; then
9052       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9053       # instead of lib<name>.a to let people know that these are not
9054       # typical AIX shared libraries.
9055       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056     else
9057       # We preserve .a as extension for shared libraries through AIX4.2
9058       # and later when we are not doing run time linking.
9059       library_names_spec='${libname}${release}.a $libname.a'
9060       soname_spec='${libname}${release}${shared_ext}$major'
9061     fi
9062     shlibpath_var=LIBPATH
9063   fi
9064   ;;
9065
9066 amigaos*)
9067   library_names_spec='$libname.ixlibrary $libname.a'
9068   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9069   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'
9070   ;;
9071
9072 beos*)
9073   library_names_spec='${libname}${shared_ext}'
9074   dynamic_linker="$host_os ld.so"
9075   shlibpath_var=LIBRARY_PATH
9076   ;;
9077
9078 bsdi[45]*)
9079   version_type=linux
9080   need_version=no
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9084   shlibpath_var=LD_LIBRARY_PATH
9085   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9086   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9087   # the default ld.so.conf also contains /usr/contrib/lib and
9088   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9089   # libtool to hard-code these into programs
9090   ;;
9091
9092 cygwin* | mingw* | pw32*)
9093   version_type=windows
9094   shrext_cmds=".dll"
9095   need_version=no
9096   need_lib_prefix=no
9097
9098   case $GCC,$host_os in
9099   yes,cygwin* | yes,mingw* | yes,pw32*)
9100     library_names_spec='$libname.dll.a'
9101     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9102     postinstall_cmds='base_file=`basename \${file}`~
9103       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9104       dldir=$destdir/`dirname \$dlpath`~
9105       test -d \$dldir || mkdir -p \$dldir~
9106       $install_prog $dir/$dlname \$dldir/$dlname~
9107       chmod a+x \$dldir/$dlname'
9108     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9109       dlpath=$dir/\$dldll~
9110        $rm \$dlpath'
9111     shlibpath_overrides_runpath=yes
9112
9113     case $host_os in
9114     cygwin*)
9115       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9116       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9118       ;;
9119     mingw*)
9120       # MinGW DLLs use traditional 'lib' prefix
9121       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9124         # It is most probably a Windows format PATH printed by
9125         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9126         # path with ; separators, and with drive letters. We can handle the
9127         # drive letters (cygwin fileutils understands them), so leave them,
9128         # especially as we might pass files found there to a mingw objdump,
9129         # which wouldn't understand a cygwinified path. Ahh.
9130         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9131       else
9132         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9133       fi
9134       ;;
9135     pw32*)
9136       # pw32 DLLs use 'pw' prefix rather than 'lib'
9137       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9138       ;;
9139     esac
9140     ;;
9141
9142   *)
9143     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9144     ;;
9145   esac
9146   dynamic_linker='Win32 ld.exe'
9147   # FIXME: first we should search . and the directory the executable is in
9148   shlibpath_var=PATH
9149   ;;
9150
9151 darwin* | rhapsody*)
9152   dynamic_linker="$host_os dyld"
9153   version_type=darwin
9154   need_lib_prefix=no
9155   need_version=no
9156   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9157   soname_spec='${libname}${release}${major}$shared_ext'
9158   shlibpath_overrides_runpath=yes
9159   shlibpath_var=DYLD_LIBRARY_PATH
9160   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9161   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9162   if test "$GCC" = yes; then
9163     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"`
9164   else
9165     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9166   fi
9167   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9168   ;;
9169
9170 dgux*)
9171   version_type=linux
9172   need_lib_prefix=no
9173   need_version=no
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9175   soname_spec='${libname}${release}${shared_ext}$major'
9176   shlibpath_var=LD_LIBRARY_PATH
9177   ;;
9178
9179 freebsd1*)
9180   dynamic_linker=no
9181   ;;
9182
9183 freebsd* | dragonfly*)
9184   # DragonFly does not have aout.  When/if they implement a new
9185   # versioning mechanism, adjust this.
9186   if test -x /usr/bin/objformat; then
9187     objformat=`/usr/bin/objformat`
9188   else
9189     case $host_os in
9190     freebsd[123]*) objformat=aout ;;
9191     *) objformat=elf ;;
9192     esac
9193   fi
9194   version_type=freebsd-$objformat
9195   case $version_type in
9196     freebsd-elf*)
9197       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198       need_version=no
9199       need_lib_prefix=no
9200       ;;
9201     freebsd-*)
9202       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9203       need_version=yes
9204       ;;
9205   esac
9206   shlibpath_var=LD_LIBRARY_PATH
9207   case $host_os in
9208   freebsd2*)
9209     shlibpath_overrides_runpath=yes
9210     ;;
9211   freebsd3.[01]* | freebsdelf3.[01]*)
9212     shlibpath_overrides_runpath=yes
9213     hardcode_into_libs=yes
9214     ;;
9215   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9216   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9217     shlibpath_overrides_runpath=no
9218     hardcode_into_libs=yes
9219     ;;
9220   freebsd*) # from 4.6 on
9221     shlibpath_overrides_runpath=yes
9222     hardcode_into_libs=yes
9223     ;;
9224   esac
9225   ;;
9226
9227 gnu*)
9228   version_type=linux
9229   need_lib_prefix=no
9230   need_version=no
9231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9232   soname_spec='${libname}${release}${shared_ext}$major'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   hardcode_into_libs=yes
9235   ;;
9236
9237 hpux9* | hpux10* | hpux11*)
9238   # Give a soname corresponding to the major version so that dld.sl refuses to
9239   # link against other versions.
9240   version_type=sunos
9241   need_lib_prefix=no
9242   need_version=no
9243   case $host_cpu in
9244   ia64*)
9245     shrext_cmds='.so'
9246     hardcode_into_libs=yes
9247     dynamic_linker="$host_os dld.so"
9248     shlibpath_var=LD_LIBRARY_PATH
9249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251     soname_spec='${libname}${release}${shared_ext}$major'
9252     if test "X$HPUX_IA64_MODE" = X32; then
9253       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9254     else
9255       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9256     fi
9257     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9258     ;;
9259    hppa*64*)
9260      shrext_cmds='.sl'
9261      hardcode_into_libs=yes
9262      dynamic_linker="$host_os dld.sl"
9263      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9264      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9265      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266      soname_spec='${libname}${release}${shared_ext}$major'
9267      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9268      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9269      ;;
9270    *)
9271     shrext_cmds='.sl'
9272     dynamic_linker="$host_os dld.sl"
9273     shlibpath_var=SHLIB_PATH
9274     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276     soname_spec='${libname}${release}${shared_ext}$major'
9277     ;;
9278   esac
9279   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9280   postinstall_cmds='chmod 555 $lib'
9281   ;;
9282
9283 interix3*)
9284   version_type=linux
9285   need_lib_prefix=no
9286   need_version=no
9287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9288   soname_spec='${libname}${release}${shared_ext}$major'
9289   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   shlibpath_overrides_runpath=no
9292   hardcode_into_libs=yes
9293   ;;
9294
9295 irix5* | irix6* | nonstopux*)
9296   case $host_os in
9297     nonstopux*) version_type=nonstopux ;;
9298     *)
9299         if test "$lt_cv_prog_gnu_ld" = yes; then
9300                 version_type=linux
9301         else
9302                 version_type=irix
9303         fi ;;
9304   esac
9305   need_lib_prefix=no
9306   need_version=no
9307   soname_spec='${libname}${release}${shared_ext}$major'
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9309   case $host_os in
9310   irix5* | nonstopux*)
9311     libsuff= shlibsuff=
9312     ;;
9313   *)
9314     case $LD in # libtool.m4 will add one of these switches to LD
9315     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9316       libsuff= shlibsuff= libmagic=32-bit;;
9317     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9318       libsuff=32 shlibsuff=N32 libmagic=N32;;
9319     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9320       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9321     *) libsuff= shlibsuff= libmagic=never-match;;
9322     esac
9323     ;;
9324   esac
9325   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9326   shlibpath_overrides_runpath=no
9327   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9328   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9329   hardcode_into_libs=yes
9330   ;;
9331
9332 # No shared lib support for Linux oldld, aout, or coff.
9333 linux*oldld* | linux*aout* | linux*coff*)
9334   dynamic_linker=no
9335   ;;
9336
9337 # This must be Linux ELF.
9338 linux* | k*bsd*-gnu)
9339   version_type=linux
9340   need_lib_prefix=no
9341   need_version=no
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343   soname_spec='${libname}${release}${shared_ext}$major'
9344   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9345   shlibpath_var=LD_LIBRARY_PATH
9346   shlibpath_overrides_runpath=no
9347   # This implies no fast_install, which is unacceptable.
9348   # Some rework will be needed to allow for fast_install
9349   # before this can be enabled.
9350   hardcode_into_libs=yes
9351
9352   # Append ld.so.conf contents to the search path
9353   if test -f /etc/ld.so.conf; then
9354     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' ' '`
9355     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9356   fi
9357
9358   # We used to test for /lib/ld.so.1 and disable shared libraries on
9359   # powerpc, because MkLinux only supported shared libraries with the
9360   # GNU dynamic linker.  Since this was broken with cross compilers,
9361   # most powerpc-linux boxes support dynamic linking these days and
9362   # people can always --disable-shared, the test was removed, and we
9363   # assume the GNU/Linux dynamic linker is in use.
9364   dynamic_linker='GNU/Linux ld.so'
9365   ;;
9366
9367 netbsdelf*-gnu)
9368   version_type=linux
9369   need_lib_prefix=no
9370   need_version=no
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9372   soname_spec='${libname}${release}${shared_ext}$major'
9373   shlibpath_var=LD_LIBRARY_PATH
9374   shlibpath_overrides_runpath=no
9375   hardcode_into_libs=yes
9376   dynamic_linker='NetBSD ld.elf_so'
9377   ;;
9378
9379 netbsd*)
9380   version_type=sunos
9381   need_lib_prefix=no
9382   need_version=no
9383   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9386     dynamic_linker='NetBSD (a.out) ld.so'
9387   else
9388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9389     soname_spec='${libname}${release}${shared_ext}$major'
9390     dynamic_linker='NetBSD ld.elf_so'
9391   fi
9392   shlibpath_var=LD_LIBRARY_PATH
9393   shlibpath_overrides_runpath=yes
9394   hardcode_into_libs=yes
9395   ;;
9396
9397 newsos6)
9398   version_type=linux
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400   shlibpath_var=LD_LIBRARY_PATH
9401   shlibpath_overrides_runpath=yes
9402   ;;
9403
9404 nto-qnx*)
9405   version_type=linux
9406   need_lib_prefix=no
9407   need_version=no
9408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409   soname_spec='${libname}${release}${shared_ext}$major'
9410   shlibpath_var=LD_LIBRARY_PATH
9411   shlibpath_overrides_runpath=yes
9412   ;;
9413
9414 openbsd*)
9415   version_type=sunos
9416   sys_lib_dlsearch_path_spec="/usr/lib"
9417   need_lib_prefix=no
9418   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9419   case $host_os in
9420     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9421     *)                         need_version=no  ;;
9422   esac
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9424   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9425   shlibpath_var=LD_LIBRARY_PATH
9426   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9427     case $host_os in
9428       openbsd2.[89] | openbsd2.[89].*)
9429         shlibpath_overrides_runpath=no
9430         ;;
9431       *)
9432         shlibpath_overrides_runpath=yes
9433         ;;
9434       esac
9435   else
9436     shlibpath_overrides_runpath=yes
9437   fi
9438   ;;
9439
9440 os2*)
9441   libname_spec='$name'
9442   shrext_cmds=".dll"
9443   need_lib_prefix=no
9444   library_names_spec='$libname${shared_ext} $libname.a'
9445   dynamic_linker='OS/2 ld.exe'
9446   shlibpath_var=LIBPATH
9447   ;;
9448
9449 osf3* | osf4* | osf5*)
9450   version_type=osf
9451   need_lib_prefix=no
9452   need_version=no
9453   soname_spec='${libname}${release}${shared_ext}$major'
9454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455   shlibpath_var=LD_LIBRARY_PATH
9456   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9457   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9458   ;;
9459
9460 solaris*)
9461   version_type=linux
9462   need_lib_prefix=no
9463   need_version=no
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   shlibpath_overrides_runpath=yes
9468   hardcode_into_libs=yes
9469   # ldd complains unless libraries are executable
9470   postinstall_cmds='chmod +x $lib'
9471   ;;
9472
9473 sunos4*)
9474   version_type=sunos
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   shlibpath_overrides_runpath=yes
9479   if test "$with_gnu_ld" = yes; then
9480     need_lib_prefix=no
9481   fi
9482   need_version=yes
9483   ;;
9484
9485 sysv4 | sysv4.3*)
9486   version_type=linux
9487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   case $host_vendor in
9491     sni)
9492       shlibpath_overrides_runpath=no
9493       need_lib_prefix=no
9494       export_dynamic_flag_spec='${wl}-Blargedynsym'
9495       runpath_var=LD_RUN_PATH
9496       ;;
9497     siemens)
9498       need_lib_prefix=no
9499       ;;
9500     motorola)
9501       need_lib_prefix=no
9502       need_version=no
9503       shlibpath_overrides_runpath=no
9504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9505       ;;
9506   esac
9507   ;;
9508
9509 sysv4*MP*)
9510   if test -d /usr/nec ;then
9511     version_type=linux
9512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9513     soname_spec='$libname${shared_ext}.$major'
9514     shlibpath_var=LD_LIBRARY_PATH
9515   fi
9516   ;;
9517
9518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9519   version_type=freebsd-elf
9520   need_lib_prefix=no
9521   need_version=no
9522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9523   soname_spec='${libname}${release}${shared_ext}$major'
9524   shlibpath_var=LD_LIBRARY_PATH
9525   hardcode_into_libs=yes
9526   if test "$with_gnu_ld" = yes; then
9527     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9528     shlibpath_overrides_runpath=no
9529   else
9530     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9531     shlibpath_overrides_runpath=yes
9532     case $host_os in
9533       sco3.2v5*)
9534         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9535         ;;
9536     esac
9537   fi
9538   sys_lib_dlsearch_path_spec='/usr/lib'
9539   ;;
9540
9541 uts4*)
9542   version_type=linux
9543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544   soname_spec='${libname}${release}${shared_ext}$major'
9545   shlibpath_var=LD_LIBRARY_PATH
9546   ;;
9547
9548 *)
9549   dynamic_linker=no
9550   ;;
9551 esac
9552 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9553 echo "${ECHO_T}$dynamic_linker" >&6; }
9554 test "$dynamic_linker" = no && can_build_shared=no
9555
9556 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9557 if test "$GCC" = yes; then
9558   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9559 fi
9560
9561 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9562 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9563 hardcode_action=
9564 if test -n "$hardcode_libdir_flag_spec" || \
9565    test -n "$runpath_var" || \
9566    test "X$hardcode_automatic" = "Xyes" ; then
9567
9568   # We can hardcode non-existant directories.
9569   if test "$hardcode_direct" != no &&
9570      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9571      # have to relink, otherwise we might link with an installed library
9572      # when we should be linking with a yet-to-be-installed one
9573      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9574      test "$hardcode_minus_L" != no; then
9575     # Linking always hardcodes the temporary library directory.
9576     hardcode_action=relink
9577   else
9578     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9579     hardcode_action=immediate
9580   fi
9581 else
9582   # We cannot hardcode anything, or else we can only hardcode existing
9583   # directories.
9584   hardcode_action=unsupported
9585 fi
9586 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9587 echo "${ECHO_T}$hardcode_action" >&6; }
9588
9589 if test "$hardcode_action" = relink; then
9590   # Fast installation is not supported
9591   enable_fast_install=no
9592 elif test "$shlibpath_overrides_runpath" = yes ||
9593      test "$enable_shared" = no; then
9594   # Fast installation is not necessary
9595   enable_fast_install=needless
9596 fi
9597
9598 striplib=
9599 old_striplib=
9600 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9601 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9602 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9603   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9604   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9605   { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9607 else
9608 # FIXME - insert some real tests, host_os isn't really good enough
9609   case $host_os in
9610    darwin*)
9611        if test -n "$STRIP" ; then
9612          striplib="$STRIP -x"
9613          { echo "$as_me:$LINENO: result: yes" >&5
9614 echo "${ECHO_T}yes" >&6; }
9615        else
9616   { echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6; }
9618 fi
9619        ;;
9620    *)
9621   { echo "$as_me:$LINENO: result: no" >&5
9622 echo "${ECHO_T}no" >&6; }
9623     ;;
9624   esac
9625 fi
9626
9627 if test "x$enable_dlopen" != xyes; then
9628   enable_dlopen=unknown
9629   enable_dlopen_self=unknown
9630   enable_dlopen_self_static=unknown
9631 else
9632   lt_cv_dlopen=no
9633   lt_cv_dlopen_libs=
9634
9635   case $host_os in
9636   beos*)
9637     lt_cv_dlopen="load_add_on"
9638     lt_cv_dlopen_libs=
9639     lt_cv_dlopen_self=yes
9640     ;;
9641
9642   mingw* | pw32*)
9643     lt_cv_dlopen="LoadLibrary"
9644     lt_cv_dlopen_libs=
9645    ;;
9646
9647   cygwin*)
9648     lt_cv_dlopen="dlopen"
9649     lt_cv_dlopen_libs=
9650    ;;
9651
9652   darwin*)
9653   # if libdl is installed we need to link against it
9654     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   ac_check_lib_save_LIBS=$LIBS
9660 LIBS="-ldl  $LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669    Use char because int might match the return type of a GCC
9670    builtin and then its argument prototype would still apply.  */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char dlopen ();
9675 int
9676 main ()
9677 {
9678 return dlopen ();
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687   *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690   (eval "$ac_link") 2>conftest.er1
9691   ac_status=$?
9692   grep -v '^ *+' conftest.er1 >conftest.err
9693   rm -f conftest.er1
9694   cat conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698   { (case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_try") 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; } &&
9707          { ac_try='test -s conftest$ac_exeext'
9708   { (case "(($ac_try" in
9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710   *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713   (eval "$ac_try") 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   ac_cv_lib_dl_dlopen=yes
9718 else
9719   echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722         ac_cv_lib_dl_dlopen=no
9723 fi
9724
9725 rm -f core conftest.err conftest.$ac_objext \
9726       conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9730 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9731 if test $ac_cv_lib_dl_dlopen = yes; then
9732   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9733 else
9734
9735     lt_cv_dlopen="dyld"
9736     lt_cv_dlopen_libs=
9737     lt_cv_dlopen_self=yes
9738
9739 fi
9740
9741    ;;
9742
9743   *)
9744     { echo "$as_me:$LINENO: checking for shl_load" >&5
9745 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9746 if test "${ac_cv_func_shl_load+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9757 #define shl_load innocuous_shl_load
9758
9759 /* System header to define __stub macros and hopefully few prototypes,
9760     which can conflict with char shl_load (); below.
9761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9762     <limits.h> exists even on freestanding compilers.  */
9763
9764 #ifdef __STDC__
9765 # include <limits.h>
9766 #else
9767 # include <assert.h>
9768 #endif
9769
9770 #undef shl_load
9771
9772 /* Override any GCC internal prototype to avoid an error.
9773    Use char because int might match the return type of a GCC
9774    builtin and then its argument prototype would still apply.  */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 char shl_load ();
9779 /* The GNU C library defines this for functions which it implements
9780     to always fail with ENOSYS.  Some functions are actually named
9781     something starting with __ and the normal name is an alias.  */
9782 #if defined __stub_shl_load || defined __stub___shl_load
9783 choke me
9784 #endif
9785
9786 int
9787 main ()
9788 {
9789 return shl_load ();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } &&
9808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809   { (case "(($ac_try" in
9810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811   *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814   (eval "$ac_try") 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; } &&
9818          { ac_try='test -s conftest$ac_exeext'
9819   { (case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_try") 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; }; then
9828   ac_cv_func_shl_load=yes
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         ac_cv_func_shl_load=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext \
9837       conftest$ac_exeext conftest.$ac_ext
9838 fi
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9840 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9841 if test $ac_cv_func_shl_load = yes; then
9842   lt_cv_dlopen="shl_load"
9843 else
9844   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9845 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   ac_check_lib_save_LIBS=$LIBS
9850 LIBS="-ldld  $LIBS"
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 /* Override any GCC internal prototype to avoid an error.
9859    Use char because int might match the return type of a GCC
9860    builtin and then its argument prototype would still apply.  */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char shl_load ();
9865 int
9866 main ()
9867 {
9868 return shl_load ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_link") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; } &&
9897          { ac_try='test -s conftest$ac_exeext'
9898   { (case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_try") 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_cv_lib_dld_shl_load=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912         ac_cv_lib_dld_shl_load=no
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext \
9916       conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9918 fi
9919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9921 if test $ac_cv_lib_dld_shl_load = yes; then
9922   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9923 else
9924   { echo "$as_me:$LINENO: checking for dlopen" >&5
9925 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9926 if test "${ac_cv_func_dlopen+set}" = set; then
9927   echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929   cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9937 #define dlopen innocuous_dlopen
9938
9939 /* System header to define __stub macros and hopefully few prototypes,
9940     which can conflict with char dlopen (); below.
9941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942     <limits.h> exists even on freestanding compilers.  */
9943
9944 #ifdef __STDC__
9945 # include <limits.h>
9946 #else
9947 # include <assert.h>
9948 #endif
9949
9950 #undef dlopen
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953    Use char because int might match the return type of a GCC
9954    builtin and then its argument prototype would still apply.  */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char dlopen ();
9959 /* The GNU C library defines this for functions which it implements
9960     to always fail with ENOSYS.  Some functions are actually named
9961     something starting with __ and the normal name is an alias.  */
9962 #if defined __stub_dlopen || defined __stub___dlopen
9963 choke me
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 return dlopen ();
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_link") 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989   { (case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_try") 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; } &&
9998          { ac_try='test -s conftest$ac_exeext'
9999   { (case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_try") 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008   ac_cv_func_dlopen=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013         ac_cv_func_dlopen=no
10014 fi
10015
10016 rm -f core conftest.err conftest.$ac_objext \
10017       conftest$ac_exeext conftest.$ac_ext
10018 fi
10019 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10020 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10021 if test $ac_cv_func_dlopen = yes; then
10022   lt_cv_dlopen="dlopen"
10023 else
10024   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-ldl  $LIBS"
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037
10038 /* Override any GCC internal prototype to avoid an error.
10039    Use char because int might match the return type of a GCC
10040    builtin and then its argument prototype would still apply.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 char dlopen ();
10045 int
10046 main ()
10047 {
10048 return dlopen ();
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_link") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068   { (case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_try") 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_try") 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_lib_dl_dlopen=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092         ac_cv_lib_dl_dlopen=no
10093 fi
10094
10095 rm -f core conftest.err conftest.$ac_objext \
10096       conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10098 fi
10099 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10100 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10101 if test $ac_cv_lib_dl_dlopen = yes; then
10102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 else
10104   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10105 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-lsvld  $LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117
10118 /* Override any GCC internal prototype to avoid an error.
10119    Use char because int might match the return type of a GCC
10120    builtin and then its argument prototype would still apply.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char dlopen ();
10125 int
10126 main ()
10127 {
10128 return dlopen ();
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_link") 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; } &&
10157          { ac_try='test -s conftest$ac_exeext'
10158   { (case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_try") 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_lib_svld_dlopen=yes
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172         ac_cv_lib_svld_dlopen=no
10173 fi
10174
10175 rm -f core conftest.err conftest.$ac_objext \
10176       conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10181 if test $ac_cv_lib_svld_dlopen = yes; then
10182   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10183 else
10184   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10185 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10186 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-ldld  $LIBS"
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h.  */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h.  */
10197
10198 /* Override any GCC internal prototype to avoid an error.
10199    Use char because int might match the return type of a GCC
10200    builtin and then its argument prototype would still apply.  */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 char dld_link ();
10205 int
10206 main ()
10207 {
10208 return dld_link ();
10209   ;
10210   return 0;
10211 }
10212 _ACEOF
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_link") 2>conftest.er1
10221   ac_status=$?
10222   grep -v '^ *+' conftest.er1 >conftest.err
10223   rm -f conftest.er1
10224   cat conftest.err >&5
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); } &&
10227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10228   { (case "(($ac_try" in
10229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230   *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233   (eval "$ac_try") 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; } &&
10237          { ac_try='test -s conftest$ac_exeext'
10238   { (case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_try") 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   ac_cv_lib_dld_dld_link=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252         ac_cv_lib_dld_dld_link=no
10253 fi
10254
10255 rm -f core conftest.err conftest.$ac_objext \
10256       conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10260 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10261 if test $ac_cv_lib_dld_dld_link = yes; then
10262   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10263 fi
10264
10265
10266 fi
10267
10268
10269 fi
10270
10271
10272 fi
10273
10274
10275 fi
10276
10277
10278 fi
10279
10280     ;;
10281   esac
10282
10283   if test "x$lt_cv_dlopen" != xno; then
10284     enable_dlopen=yes
10285   else
10286     enable_dlopen=no
10287   fi
10288
10289   case $lt_cv_dlopen in
10290   dlopen)
10291     save_CPPFLAGS="$CPPFLAGS"
10292     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10293
10294     save_LDFLAGS="$LDFLAGS"
10295     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10296
10297     save_LIBS="$LIBS"
10298     LIBS="$lt_cv_dlopen_libs $LIBS"
10299
10300     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10301 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10302 if test "${lt_cv_dlopen_self+set}" = set; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305           if test "$cross_compiling" = yes; then :
10306   lt_cv_dlopen_self=cross
10307 else
10308   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10309   lt_status=$lt_dlunknown
10310   cat > conftest.$ac_ext <<EOF
10311 #line 10311 "configure"
10312 #include "confdefs.h"
10313
10314 #if HAVE_DLFCN_H
10315 #include <dlfcn.h>
10316 #endif
10317
10318 #include <stdio.h>
10319
10320 #ifdef RTLD_GLOBAL
10321 #  define LT_DLGLOBAL           RTLD_GLOBAL
10322 #else
10323 #  ifdef DL_GLOBAL
10324 #    define LT_DLGLOBAL         DL_GLOBAL
10325 #  else
10326 #    define LT_DLGLOBAL         0
10327 #  endif
10328 #endif
10329
10330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10331    find out it does not work in some platform. */
10332 #ifndef LT_DLLAZY_OR_NOW
10333 #  ifdef RTLD_LAZY
10334 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10335 #  else
10336 #    ifdef DL_LAZY
10337 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10338 #    else
10339 #      ifdef RTLD_NOW
10340 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10341 #      else
10342 #        ifdef DL_NOW
10343 #          define LT_DLLAZY_OR_NOW      DL_NOW
10344 #        else
10345 #          define LT_DLLAZY_OR_NOW      0
10346 #        endif
10347 #      endif
10348 #    endif
10349 #  endif
10350 #endif
10351
10352 #ifdef __cplusplus
10353 extern "C" void exit (int);
10354 #endif
10355
10356 void fnord() { int i=42;}
10357 int main ()
10358 {
10359   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10360   int status = $lt_dlunknown;
10361
10362   if (self)
10363     {
10364       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10365       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10366       /* dlclose (self); */
10367     }
10368   else
10369     puts (dlerror ());
10370
10371     exit (status);
10372 }
10373 EOF
10374   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375   (eval $ac_link) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10379     (./conftest; exit; ) >&5 2>/dev/null
10380     lt_status=$?
10381     case x$lt_status in
10382       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10383       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10384       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10385     esac
10386   else :
10387     # compilation failed
10388     lt_cv_dlopen_self=no
10389   fi
10390 fi
10391 rm -fr conftest*
10392
10393
10394 fi
10395 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10396 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10397
10398     if test "x$lt_cv_dlopen_self" = xyes; then
10399       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10400       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10401 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10402 if test "${lt_cv_dlopen_self_static+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405           if test "$cross_compiling" = yes; then :
10406   lt_cv_dlopen_self_static=cross
10407 else
10408   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10409   lt_status=$lt_dlunknown
10410   cat > conftest.$ac_ext <<EOF
10411 #line 10411 "configure"
10412 #include "confdefs.h"
10413
10414 #if HAVE_DLFCN_H
10415 #include <dlfcn.h>
10416 #endif
10417
10418 #include <stdio.h>
10419
10420 #ifdef RTLD_GLOBAL
10421 #  define LT_DLGLOBAL           RTLD_GLOBAL
10422 #else
10423 #  ifdef DL_GLOBAL
10424 #    define LT_DLGLOBAL         DL_GLOBAL
10425 #  else
10426 #    define LT_DLGLOBAL         0
10427 #  endif
10428 #endif
10429
10430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10431    find out it does not work in some platform. */
10432 #ifndef LT_DLLAZY_OR_NOW
10433 #  ifdef RTLD_LAZY
10434 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10435 #  else
10436 #    ifdef DL_LAZY
10437 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10438 #    else
10439 #      ifdef RTLD_NOW
10440 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10441 #      else
10442 #        ifdef DL_NOW
10443 #          define LT_DLLAZY_OR_NOW      DL_NOW
10444 #        else
10445 #          define LT_DLLAZY_OR_NOW      0
10446 #        endif
10447 #      endif
10448 #    endif
10449 #  endif
10450 #endif
10451
10452 #ifdef __cplusplus
10453 extern "C" void exit (int);
10454 #endif
10455
10456 void fnord() { int i=42;}
10457 int main ()
10458 {
10459   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460   int status = $lt_dlunknown;
10461
10462   if (self)
10463     {
10464       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10465       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10466       /* dlclose (self); */
10467     }
10468   else
10469     puts (dlerror ());
10470
10471     exit (status);
10472 }
10473 EOF
10474   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475   (eval $ac_link) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10479     (./conftest; exit; ) >&5 2>/dev/null
10480     lt_status=$?
10481     case x$lt_status in
10482       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10483       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10484       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10485     esac
10486   else :
10487     # compilation failed
10488     lt_cv_dlopen_self_static=no
10489   fi
10490 fi
10491 rm -fr conftest*
10492
10493
10494 fi
10495 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10496 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10497     fi
10498
10499     CPPFLAGS="$save_CPPFLAGS"
10500     LDFLAGS="$save_LDFLAGS"
10501     LIBS="$save_LIBS"
10502     ;;
10503   esac
10504
10505   case $lt_cv_dlopen_self in
10506   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10507   *) enable_dlopen_self=unknown ;;
10508   esac
10509
10510   case $lt_cv_dlopen_self_static in
10511   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10512   *) enable_dlopen_self_static=unknown ;;
10513   esac
10514 fi
10515
10516
10517 # Report which library types will actually be built
10518 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10519 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10520 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10521 echo "${ECHO_T}$can_build_shared" >&6; }
10522
10523 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10524 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10525 test "$can_build_shared" = "no" && enable_shared=no
10526
10527 # On AIX, shared libraries and static libraries use the same namespace, and
10528 # are all built from PIC.
10529 case $host_os in
10530 aix3*)
10531   test "$enable_shared" = yes && enable_static=no
10532   if test -n "$RANLIB"; then
10533     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10534     postinstall_cmds='$RANLIB $lib'
10535   fi
10536   ;;
10537
10538 aix4* | aix5*)
10539   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10540     test "$enable_shared" = yes && enable_static=no
10541   fi
10542     ;;
10543 esac
10544 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10545 echo "${ECHO_T}$enable_shared" >&6; }
10546
10547 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10548 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10549 # Make sure either enable_shared or enable_static is yes.
10550 test "$enable_shared" = yes || enable_static=yes
10551 { echo "$as_me:$LINENO: result: $enable_static" >&5
10552 echo "${ECHO_T}$enable_static" >&6; }
10553
10554 # The else clause should only fire when bootstrapping the
10555 # libtool distribution, otherwise you forgot to ship ltmain.sh
10556 # with your package, and you will get complaints that there are
10557 # no rules to generate ltmain.sh.
10558 if test -f "$ltmain"; then
10559   # See if we are running on zsh, and set the options which allow our commands through
10560   # without removal of \ escapes.
10561   if test -n "${ZSH_VERSION+set}" ; then
10562     setopt NO_GLOB_SUBST
10563   fi
10564   # Now quote all the things that may contain metacharacters while being
10565   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10566   # variables and quote the copies for generation of the libtool script.
10567   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10568     SED SHELL STRIP \
10569     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10570     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10571     deplibs_check_method reload_flag reload_cmds need_locks \
10572     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10573     lt_cv_sys_global_symbol_to_c_name_address \
10574     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10575     old_postinstall_cmds old_postuninstall_cmds \
10576     compiler \
10577     CC \
10578     LD \
10579     lt_prog_compiler_wl \
10580     lt_prog_compiler_pic \
10581     lt_prog_compiler_static \
10582     lt_prog_compiler_no_builtin_flag \
10583     export_dynamic_flag_spec \
10584     thread_safe_flag_spec \
10585     whole_archive_flag_spec \
10586     enable_shared_with_static_runtimes \
10587     old_archive_cmds \
10588     old_archive_from_new_cmds \
10589     predep_objects \
10590     postdep_objects \
10591     predeps \
10592     postdeps \
10593     compiler_lib_search_path \
10594     archive_cmds \
10595     archive_expsym_cmds \
10596     postinstall_cmds \
10597     postuninstall_cmds \
10598     old_archive_from_expsyms_cmds \
10599     allow_undefined_flag \
10600     no_undefined_flag \
10601     export_symbols_cmds \
10602     hardcode_libdir_flag_spec \
10603     hardcode_libdir_flag_spec_ld \
10604     hardcode_libdir_separator \
10605     hardcode_automatic \
10606     module_cmds \
10607     module_expsym_cmds \
10608     lt_cv_prog_compiler_c_o \
10609     exclude_expsyms \
10610     include_expsyms; do
10611
10612     case $var in
10613     old_archive_cmds | \
10614     old_archive_from_new_cmds | \
10615     archive_cmds | \
10616     archive_expsym_cmds | \
10617     module_cmds | \
10618     module_expsym_cmds | \
10619     old_archive_from_expsyms_cmds | \
10620     export_symbols_cmds | \
10621     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10622     postinstall_cmds | postuninstall_cmds | \
10623     old_postinstall_cmds | old_postuninstall_cmds | \
10624     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10625       # Double-quote double-evaled strings.
10626       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10627       ;;
10628     *)
10629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10630       ;;
10631     esac
10632   done
10633
10634   case $lt_echo in
10635   *'\$0 --fallback-echo"')
10636     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10637     ;;
10638   esac
10639
10640 cfgfile="${ofile}T"
10641   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10642   $rm -f "$cfgfile"
10643   { echo "$as_me:$LINENO: creating $ofile" >&5
10644 echo "$as_me: creating $ofile" >&6;}
10645
10646   cat <<__EOF__ >> "$cfgfile"
10647 #! $SHELL
10648
10649 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10650 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10651 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10652 #
10653 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10654 # Free Software Foundation, Inc.
10655 #
10656 # This file is part of GNU Libtool:
10657 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10658 #
10659 # This program is free software; you can redistribute it and/or modify
10660 # it under the terms of the GNU General Public License as published by
10661 # the Free Software Foundation; either version 2 of the License, or
10662 # (at your option) any later version.
10663 #
10664 # This program is distributed in the hope that it will be useful, but
10665 # WITHOUT ANY WARRANTY; without even the implied warranty of
10666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10667 # General Public License for more details.
10668 #
10669 # You should have received a copy of the GNU General Public License
10670 # along with this program; if not, write to the Free Software
10671 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10672 #
10673 # As a special exception to the GNU General Public License, if you
10674 # distribute this file as part of a program that contains a
10675 # configuration script generated by Autoconf, you may include it under
10676 # the same distribution terms that you use for the rest of that program.
10677
10678 # A sed program that does not truncate output.
10679 SED=$lt_SED
10680
10681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10682 Xsed="$SED -e 1s/^X//"
10683
10684 # The HP-UX ksh and POSIX shell print the target directory to stdout
10685 # if CDPATH is set.
10686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10687
10688 # The names of the tagged configurations supported by this script.
10689 available_tags=
10690
10691 # ### BEGIN LIBTOOL CONFIG
10692
10693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10694
10695 # Shell to use when invoking shell scripts.
10696 SHELL=$lt_SHELL
10697
10698 # Whether or not to build shared libraries.
10699 build_libtool_libs=$enable_shared
10700
10701 # Whether or not to build static libraries.
10702 build_old_libs=$enable_static
10703
10704 # Whether or not to add -lc for building shared libraries.
10705 build_libtool_need_lc=$archive_cmds_need_lc
10706
10707 # Whether or not to disallow shared libs when runtime libs are static
10708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10709
10710 # Whether or not to optimize for fast installation.
10711 fast_install=$enable_fast_install
10712
10713 # The host system.
10714 host_alias=$host_alias
10715 host=$host
10716 host_os=$host_os
10717
10718 # The build system.
10719 build_alias=$build_alias
10720 build=$build
10721 build_os=$build_os
10722
10723 # An echo program that does not interpret backslashes.
10724 echo=$lt_echo
10725
10726 # The archiver.
10727 AR=$lt_AR
10728 AR_FLAGS=$lt_AR_FLAGS
10729
10730 # A C compiler.
10731 LTCC=$lt_LTCC
10732
10733 # LTCC compiler flags.
10734 LTCFLAGS=$lt_LTCFLAGS
10735
10736 # A language-specific compiler.
10737 CC=$lt_compiler
10738
10739 # Is the compiler the GNU C compiler?
10740 with_gcc=$GCC
10741
10742 # An ERE matcher.
10743 EGREP=$lt_EGREP
10744
10745 # The linker used to build libraries.
10746 LD=$lt_LD
10747
10748 # Whether we need hard or soft links.
10749 LN_S=$lt_LN_S
10750
10751 # A BSD-compatible nm program.
10752 NM=$lt_NM
10753
10754 # A symbol stripping program
10755 STRIP=$lt_STRIP
10756
10757 # Used to examine libraries when file_magic_cmd begins "file"
10758 MAGIC_CMD=$MAGIC_CMD
10759
10760 # Used on cygwin: DLL creation program.
10761 DLLTOOL="$DLLTOOL"
10762
10763 # Used on cygwin: object dumper.
10764 OBJDUMP="$OBJDUMP"
10765
10766 # Used on cygwin: assembler.
10767 AS="$AS"
10768
10769 # The name of the directory that contains temporary libtool files.
10770 objdir=$objdir
10771
10772 # How to create reloadable object files.
10773 reload_flag=$lt_reload_flag
10774 reload_cmds=$lt_reload_cmds
10775
10776 # How to pass a linker flag through the compiler.
10777 wl=$lt_lt_prog_compiler_wl
10778
10779 # Object file suffix (normally "o").
10780 objext="$ac_objext"
10781
10782 # Old archive suffix (normally "a").
10783 libext="$libext"
10784
10785 # Shared library suffix (normally ".so").
10786 shrext_cmds='$shrext_cmds'
10787
10788 # Executable file suffix (normally "").
10789 exeext="$exeext"
10790
10791 # Additional compiler flags for building library objects.
10792 pic_flag=$lt_lt_prog_compiler_pic
10793 pic_mode=$pic_mode
10794
10795 # What is the maximum length of a command?
10796 max_cmd_len=$lt_cv_sys_max_cmd_len
10797
10798 # Does compiler simultaneously support -c and -o options?
10799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10800
10801 # Must we lock files when doing compilation?
10802 need_locks=$lt_need_locks
10803
10804 # Do we need the lib prefix for modules?
10805 need_lib_prefix=$need_lib_prefix
10806
10807 # Do we need a version for libraries?
10808 need_version=$need_version
10809
10810 # Whether dlopen is supported.
10811 dlopen_support=$enable_dlopen
10812
10813 # Whether dlopen of programs is supported.
10814 dlopen_self=$enable_dlopen_self
10815
10816 # Whether dlopen of statically linked programs is supported.
10817 dlopen_self_static=$enable_dlopen_self_static
10818
10819 # Compiler flag to prevent dynamic linking.
10820 link_static_flag=$lt_lt_prog_compiler_static
10821
10822 # Compiler flag to turn off builtin functions.
10823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10824
10825 # Compiler flag to allow reflexive dlopens.
10826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10827
10828 # Compiler flag to generate shared objects directly from archives.
10829 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10830
10831 # Compiler flag to generate thread-safe objects.
10832 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10833
10834 # Library versioning type.
10835 version_type=$version_type
10836
10837 # Format of library name prefix.
10838 libname_spec=$lt_libname_spec
10839
10840 # List of archive names.  First name is the real one, the rest are links.
10841 # The last name is the one that the linker finds with -lNAME.
10842 library_names_spec=$lt_library_names_spec
10843
10844 # The coded name of the library, if different from the real name.
10845 soname_spec=$lt_soname_spec
10846
10847 # Commands used to build and install an old-style archive.
10848 RANLIB=$lt_RANLIB
10849 old_archive_cmds=$lt_old_archive_cmds
10850 old_postinstall_cmds=$lt_old_postinstall_cmds
10851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10852
10853 # Create an old-style archive from a shared archive.
10854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10855
10856 # Create a temporary old-style archive to link instead of a shared archive.
10857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10858
10859 # Commands used to build and install a shared archive.
10860 archive_cmds=$lt_archive_cmds
10861 archive_expsym_cmds=$lt_archive_expsym_cmds
10862 postinstall_cmds=$lt_postinstall_cmds
10863 postuninstall_cmds=$lt_postuninstall_cmds
10864
10865 # Commands used to build a loadable module (assumed same as above if empty)
10866 module_cmds=$lt_module_cmds
10867 module_expsym_cmds=$lt_module_expsym_cmds
10868
10869 # Commands to strip libraries.
10870 old_striplib=$lt_old_striplib
10871 striplib=$lt_striplib
10872
10873 # Dependencies to place before the objects being linked to create a
10874 # shared library.
10875 predep_objects=$lt_predep_objects
10876
10877 # Dependencies to place after the objects being linked to create a
10878 # shared library.
10879 postdep_objects=$lt_postdep_objects
10880
10881 # Dependencies to place before the objects being linked to create a
10882 # shared library.
10883 predeps=$lt_predeps
10884
10885 # Dependencies to place after the objects being linked to create a
10886 # shared library.
10887 postdeps=$lt_postdeps
10888
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10892
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10895
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10898
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10901
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10904
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10907
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10910
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10913
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10916
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10919
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10922
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10925
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10928
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10931
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10934
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10938
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10941 # not exist.
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10943
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10946
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10950
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10954
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10958
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10962
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10966
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10969
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10972
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10975
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path="$fix_srcfile_path"
10978
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10981
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10984
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10987
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10990
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10993
10994 # ### END LIBTOOL CONFIG
10995
10996 __EOF__
10997
10998
10999   case $host_os in
11000   aix3*)
11001     cat <<\EOF >> "$cfgfile"
11002
11003 # AIX sometimes has problems with the GCC collect2 program.  For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11007   COLLECT_NAMES=
11008   export COLLECT_NAMES
11009 fi
11010 EOF
11011     ;;
11012   esac
11013
11014   # We use sed instead of cat because bash on DJGPP gets confused if
11015   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11016   # text mode, it properly converts lines to CR/LF.  This bash problem
11017   # is reportedly fixed, but why not run on old versions too?
11018   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11019
11020   mv -f "$cfgfile" "$ofile" || \
11021     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11022   chmod +x "$ofile"
11023
11024 else
11025   # If there is no Makefile yet, we rely on a make rule to execute
11026   # `config.status --recheck' to rerun these tests and create the
11027   # libtool script then.
11028   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11029   if test -f "$ltmain_in"; then
11030     test -f Makefile && make "$ltmain"
11031   fi
11032 fi
11033
11034
11035 ac_ext=c
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11040
11041 CC="$lt_save_CC"
11042
11043
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046   withval=$with_tags; tagnames="$withval"
11047 fi
11048
11049
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051   if test ! -f "${ofile}"; then
11052     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11053 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11054   fi
11055
11056   if test -z "$LTCC"; then
11057     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11058     if test -z "$LTCC"; then
11059       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11061     else
11062       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11064     fi
11065   fi
11066   if test -z "$LTCFLAGS"; then
11067     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11068   fi
11069
11070   # Extract list of available tagged configurations in $ofile.
11071   # Note that this assumes the entire list is on one line.
11072   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11073
11074   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075   for tagname in $tagnames; do
11076     IFS="$lt_save_ifs"
11077     # Check whether tagname contains only valid characters
11078     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11079     "") ;;
11080     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082    { (exit 1); exit 1; }; }
11083         ;;
11084     esac
11085
11086     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11087     then
11088       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090    { (exit 1); exit 1; }; }
11091     fi
11092
11093     # Update the list of available tags.
11094     if test -n "$tagname"; then
11095       echo appending configuration tag \"$tagname\" to $ofile
11096
11097       case $tagname in
11098       CXX)
11099         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11101             (test "X$CXX" != "Xg++"))) ; then
11102           ac_ext=cpp
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11107
11108
11109
11110
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11123 module_cmds_CXX=
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11130
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11134 predeps_CXX=
11135 postdeps_CXX=
11136 compiler_lib_search_path_CXX=
11137
11138 # Source file extension for C++ test sources.
11139 ac_ext=cpp
11140
11141 # Object file extension for compiled C++ test sources.
11142 objext=o
11143 objext_CXX=$objext
11144
11145 # Code to be used in simple compile tests
11146 lt_simple_compile_test_code="int some_variable = 0;\n"
11147
11148 # Code to be used in simple link tests
11149 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11150
11151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11152
11153 # If no C compiler was specified, use CC.
11154 LTCC=${LTCC-"$CC"}
11155
11156 # If no C compiler flags were specified, use CFLAGS.
11157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11158
11159 # Allow CC to be a program name with arguments.
11160 compiler=$CC
11161
11162
11163 # save warnings/boilerplate of simple test code
11164 ac_outfile=conftest.$ac_objext
11165 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11167 _lt_compiler_boilerplate=`cat conftest.err`
11168 $rm conftest*
11169
11170 ac_outfile=conftest.$ac_objext
11171 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_linker_boilerplate=`cat conftest.err`
11174 $rm conftest*
11175
11176
11177 # Allow CC to be a program name with arguments.
11178 lt_save_CC=$CC
11179 lt_save_LD=$LD
11180 lt_save_GCC=$GCC
11181 GCC=$GXX
11182 lt_save_with_gnu_ld=$with_gnu_ld
11183 lt_save_path_LD=$lt_cv_path_LD
11184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11185   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11186 else
11187   $as_unset lt_cv_prog_gnu_ld
11188 fi
11189 if test -n "${lt_cv_path_LDCXX+set}"; then
11190   lt_cv_path_LD=$lt_cv_path_LDCXX
11191 else
11192   $as_unset lt_cv_path_LD
11193 fi
11194 test -z "${LDCXX+set}" || LD=$LDCXX
11195 CC=${CXX-"c++"}
11196 compiler=$CC
11197 compiler_CXX=$CC
11198 for cc_temp in $compiler""; do
11199   case $cc_temp in
11200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11202     \-*) ;;
11203     *) break;;
11204   esac
11205 done
11206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11207
11208
11209 # We don't want -fno-exception wen compiling C++ code, so set the
11210 # no_builtin_flag separately
11211 if test "$GXX" = yes; then
11212   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11213 else
11214   lt_prog_compiler_no_builtin_flag_CXX=
11215 fi
11216
11217 if test "$GXX" = yes; then
11218   # Set up default GNU C++ configuration
11219
11220
11221 # Check whether --with-gnu-ld was given.
11222 if test "${with_gnu_ld+set}" = set; then
11223   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11224 else
11225   with_gnu_ld=no
11226 fi
11227
11228 ac_prog=ld
11229 if test "$GCC" = yes; then
11230   # Check if gcc -print-prog-name=ld gives a path.
11231   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11233   case $host in
11234   *-*-mingw*)
11235     # gcc leaves a trailing carriage return which upsets mingw
11236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11237   *)
11238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11239   esac
11240   case $ac_prog in
11241     # Accept absolute paths.
11242     [\\/]* | ?:[\\/]*)
11243       re_direlt='/[^/][^/]*/\.\./'
11244       # Canonicalize the pathname of ld
11245       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11247         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11248       done
11249       test -z "$LD" && LD="$ac_prog"
11250       ;;
11251   "")
11252     # If it fails, then pretend we aren't using GCC.
11253     ac_prog=ld
11254     ;;
11255   *)
11256     # If it is relative, then search for the first ld in PATH.
11257     with_gnu_ld=unknown
11258     ;;
11259   esac
11260 elif test "$with_gnu_ld" = yes; then
11261   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11263 else
11264   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11266 fi
11267 if test "${lt_cv_path_LD+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   if test -z "$LD"; then
11271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11272   for ac_dir in $PATH; do
11273     IFS="$lt_save_ifs"
11274     test -z "$ac_dir" && ac_dir=.
11275     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11276       lt_cv_path_LD="$ac_dir/$ac_prog"
11277       # Check to see if the program is GNU ld.  I'd rather use --version,
11278       # but apparently some variants of GNU ld only accept -v.
11279       # Break only if it was the GNU/non-GNU ld that we prefer.
11280       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11281       *GNU* | *'with BFD'*)
11282         test "$with_gnu_ld" != no && break
11283         ;;
11284       *)
11285         test "$with_gnu_ld" != yes && break
11286         ;;
11287       esac
11288     fi
11289   done
11290   IFS="$lt_save_ifs"
11291 else
11292   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11293 fi
11294 fi
11295
11296 LD="$lt_cv_path_LD"
11297 if test -n "$LD"; then
11298   { echo "$as_me:$LINENO: result: $LD" >&5
11299 echo "${ECHO_T}$LD" >&6; }
11300 else
11301   { echo "$as_me:$LINENO: result: no" >&5
11302 echo "${ECHO_T}no" >&6; }
11303 fi
11304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11306    { (exit 1); exit 1; }; }
11307 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11313 case `$LD -v 2>&1 </dev/null` in
11314 *GNU* | *'with BFD'*)
11315   lt_cv_prog_gnu_ld=yes
11316   ;;
11317 *)
11318   lt_cv_prog_gnu_ld=no
11319   ;;
11320 esac
11321 fi
11322 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11324 with_gnu_ld=$lt_cv_prog_gnu_ld
11325
11326
11327
11328   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11329   # archiving commands below assume that GNU ld is being used.
11330   if test "$with_gnu_ld" = yes; then
11331     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332     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'
11333
11334     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11335     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11336
11337     # If archive_cmds runs LD, not CC, wlarc should be empty
11338     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11339     #     investigate it a little bit more. (MM)
11340     wlarc='${wl}'
11341
11342     # ancient GNU ld didn't support --whole-archive et. al.
11343     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11344         grep 'no-whole-archive' > /dev/null; then
11345       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11346     else
11347       whole_archive_flag_spec_CXX=
11348     fi
11349   else
11350     with_gnu_ld=no
11351     wlarc=
11352
11353     # A generic and very simple default shared library creation
11354     # command for GNU C++ for the case where it uses the native
11355     # linker, instead of GNU ld.  If possible, this setting should
11356     # overridden to take advantage of the native linker features on
11357     # the platform it is being used on.
11358     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11359   fi
11360
11361   # Commands to make compiler produce verbose output that lists
11362   # what "hidden" libraries, object files and flags are used when
11363   # linking a shared library.
11364   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11365
11366 else
11367   GXX=no
11368   with_gnu_ld=no
11369   wlarc=
11370 fi
11371
11372 # PORTME: fill in a description of your system's C++ link characteristics
11373 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11375 ld_shlibs_CXX=yes
11376 case $host_os in
11377   aix3*)
11378     # FIXME: insert proper C++ library support
11379     ld_shlibs_CXX=no
11380     ;;
11381   aix4* | aix5*)
11382     if test "$host_cpu" = ia64; then
11383       # On IA64, the linker does run time linking by default, so we don't
11384       # have to do anything special.
11385       aix_use_runtimelinking=no
11386       exp_sym_flag='-Bexport'
11387       no_entry_flag=""
11388     else
11389       aix_use_runtimelinking=no
11390
11391       # Test if we are trying to use run time linking or normal
11392       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11393       # need to do runtime linking.
11394       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11395         for ld_flag in $LDFLAGS; do
11396           case $ld_flag in
11397           *-brtl*)
11398             aix_use_runtimelinking=yes
11399             break
11400             ;;
11401           esac
11402         done
11403         ;;
11404       esac
11405
11406       exp_sym_flag='-bexport'
11407       no_entry_flag='-bnoentry'
11408     fi
11409
11410     # When large executables or shared objects are built, AIX ld can
11411     # have problems creating the table of contents.  If linking a library
11412     # or program results in "error TOC overflow" add -mminimal-toc to
11413     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11414     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11415
11416     archive_cmds_CXX=''
11417     hardcode_direct_CXX=yes
11418     hardcode_libdir_separator_CXX=':'
11419     link_all_deplibs_CXX=yes
11420
11421     if test "$GXX" = yes; then
11422       case $host_os in aix4.[012]|aix4.[012].*)
11423       # We only want to do this on AIX 4.2 and lower, the check
11424       # below for broken collect2 doesn't work under 4.3+
11425         collect2name=`${CC} -print-prog-name=collect2`
11426         if test -f "$collect2name" && \
11427            strings "$collect2name" | grep resolve_lib_name >/dev/null
11428         then
11429           # We have reworked collect2
11430           hardcode_direct_CXX=yes
11431         else
11432           # We have old collect2
11433           hardcode_direct_CXX=unsupported
11434           # It fails to find uninstalled libraries when the uninstalled
11435           # path is not listed in the libpath.  Setting hardcode_minus_L
11436           # to unsupported forces relinking
11437           hardcode_minus_L_CXX=yes
11438           hardcode_libdir_flag_spec_CXX='-L$libdir'
11439           hardcode_libdir_separator_CXX=
11440         fi
11441         ;;
11442       esac
11443       shared_flag='-shared'
11444       if test "$aix_use_runtimelinking" = yes; then
11445         shared_flag="$shared_flag "'${wl}-G'
11446       fi
11447     else
11448       # not using gcc
11449       if test "$host_cpu" = ia64; then
11450         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11451         # chokes on -Wl,-G. The following line is correct:
11452         shared_flag='-G'
11453       else
11454         if test "$aix_use_runtimelinking" = yes; then
11455           shared_flag='${wl}-G'
11456         else
11457           shared_flag='${wl}-bM:SRE'
11458         fi
11459       fi
11460     fi
11461
11462     # It seems that -bexpall does not export symbols beginning with
11463     # underscore (_), so it is better to generate a list of symbols to export.
11464     always_export_symbols_CXX=yes
11465     if test "$aix_use_runtimelinking" = yes; then
11466       # Warning - without using the other runtime loading flags (-brtl),
11467       # -berok will link without error, but may produce a broken library.
11468       allow_undefined_flag_CXX='-berok'
11469       # Determine the default libpath from the value encoded in an empty executable.
11470       cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476
11477 int
11478 main ()
11479 {
11480
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (ac_try="$ac_link"
11487 case "(($ac_try" in
11488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489   *) ac_try_echo=$ac_try;;
11490 esac
11491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492   (eval "$ac_link") 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } &&
11499          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11500   { (case "(($ac_try" in
11501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502   *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505   (eval "$ac_try") 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; } &&
11509          { ac_try='test -s conftest$ac_exeext'
11510   { (case "(($ac_try" in
11511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512   *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515   (eval "$ac_try") 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); }; }; then
11519
11520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11521 }'`
11522 # Check for a 64-bit object if we didn't find anything.
11523 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; }
11524 }'`; fi
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529
11530 fi
11531
11532 rm -f core conftest.err conftest.$ac_objext \
11533       conftest$ac_exeext conftest.$ac_ext
11534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11535
11536       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11537
11538       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"
11539      else
11540       if test "$host_cpu" = ia64; then
11541         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11542         allow_undefined_flag_CXX="-z nodefs"
11543         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"
11544       else
11545         # Determine the default libpath from the value encoded in an empty executable.
11546         cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552
11553 int
11554 main ()
11555 {
11556
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565   *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568   (eval "$ac_link") 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } &&
11575          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11576   { (case "(($ac_try" in
11577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578   *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581   (eval "$ac_try") 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; } &&
11585          { ac_try='test -s conftest$ac_exeext'
11586   { (case "(($ac_try" in
11587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588   *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591   (eval "$ac_try") 2>&5
11592   ac_status=$?
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   (exit $ac_status); }; }; then
11595
11596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11597 }'`
11598 # Check for a 64-bit object if we didn't find anything.
11599 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; }
11600 }'`; fi
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605
11606 fi
11607
11608 rm -f core conftest.err conftest.$ac_objext \
11609       conftest$ac_exeext conftest.$ac_ext
11610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11611
11612         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11613         # Warning - without using the other run time loading flags,
11614         # -berok will link without error, but may produce a broken library.
11615         no_undefined_flag_CXX=' ${wl}-bernotok'
11616         allow_undefined_flag_CXX=' ${wl}-berok'
11617         # Exported symbols can be pulled into shared objects from archives
11618         whole_archive_flag_spec_CXX='$convenience'
11619         archive_cmds_need_lc_CXX=yes
11620         # This is similar to how AIX traditionally builds its shared libraries.
11621         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'
11622       fi
11623     fi
11624     ;;
11625
11626   beos*)
11627     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11628       allow_undefined_flag_CXX=unsupported
11629       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11630       # support --undefined.  This deserves some investigation.  FIXME
11631       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632     else
11633       ld_shlibs_CXX=no
11634     fi
11635     ;;
11636
11637   chorus*)
11638     case $cc_basename in
11639       *)
11640         # FIXME: insert proper C++ library support
11641         ld_shlibs_CXX=no
11642         ;;
11643     esac
11644     ;;
11645
11646   cygwin* | mingw* | pw32*)
11647     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11648     # as there is no search path for DLLs.
11649     hardcode_libdir_flag_spec_CXX='-L$libdir'
11650     allow_undefined_flag_CXX=unsupported
11651     always_export_symbols_CXX=no
11652     enable_shared_with_static_runtimes_CXX=yes
11653
11654     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11655       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'
11656       # If the export-symbols file already is a .def file (1st line
11657       # is EXPORTS), use it as is; otherwise, prepend...
11658       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11659         cp $export_symbols $output_objdir/$soname.def;
11660       else
11661         echo EXPORTS > $output_objdir/$soname.def;
11662         cat $export_symbols >> $output_objdir/$soname.def;
11663       fi~
11664       $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'
11665     else
11666       ld_shlibs_CXX=no
11667     fi
11668   ;;
11669       darwin* | rhapsody*)
11670         case $host_os in
11671         rhapsody* | darwin1.[012])
11672          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11673          ;;
11674        *) # Darwin 1.3 on
11675          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11676            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11677          else
11678            case ${MACOSX_DEPLOYMENT_TARGET} in
11679              10.[012])
11680                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11681                ;;
11682              10.*)
11683                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11684                ;;
11685            esac
11686          fi
11687          ;;
11688         esac
11689       archive_cmds_need_lc_CXX=no
11690       hardcode_direct_CXX=no
11691       hardcode_automatic_CXX=yes
11692       hardcode_shlibpath_var_CXX=unsupported
11693       whole_archive_flag_spec_CXX=''
11694       link_all_deplibs_CXX=yes
11695
11696     if test "$GXX" = yes ; then
11697       lt_int_apple_cc_single_mod=no
11698       output_verbose_link_cmd='echo'
11699       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11700        lt_int_apple_cc_single_mod=yes
11701       fi
11702       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11703        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11704       else
11705           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'
11706         fi
11707         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11708         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11709           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11710             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}'
11711           else
11712             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}'
11713           fi
11714             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}'
11715       else
11716       case $cc_basename in
11717         xlc*)
11718          output_verbose_link_cmd='echo'
11719           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'
11720           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11721           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11722           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}'
11723           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}'
11724           ;;
11725        *)
11726          ld_shlibs_CXX=no
11727           ;;
11728       esac
11729       fi
11730         ;;
11731
11732   dgux*)
11733     case $cc_basename in
11734       ec++*)
11735         # FIXME: insert proper C++ library support
11736         ld_shlibs_CXX=no
11737         ;;
11738       ghcx*)
11739         # Green Hills C++ Compiler
11740         # FIXME: insert proper C++ library support
11741         ld_shlibs_CXX=no
11742         ;;
11743       *)
11744         # FIXME: insert proper C++ library support
11745         ld_shlibs_CXX=no
11746         ;;
11747     esac
11748     ;;
11749   freebsd[12]*)
11750     # C++ shared libraries reported to be fairly broken before switch to ELF
11751     ld_shlibs_CXX=no
11752     ;;
11753   freebsd-elf*)
11754     archive_cmds_need_lc_CXX=no
11755     ;;
11756   freebsd* | dragonfly*)
11757     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11758     # conventions
11759     ld_shlibs_CXX=yes
11760     ;;
11761   gnu*)
11762     ;;
11763   hpux9*)
11764     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11765     hardcode_libdir_separator_CXX=:
11766     export_dynamic_flag_spec_CXX='${wl}-E'
11767     hardcode_direct_CXX=yes
11768     hardcode_minus_L_CXX=yes # Not in the search PATH,
11769                                 # but as the default
11770                                 # location of the library.
11771
11772     case $cc_basename in
11773     CC*)
11774       # FIXME: insert proper C++ library support
11775       ld_shlibs_CXX=no
11776       ;;
11777     aCC*)
11778       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'
11779       # Commands to make compiler produce verbose output that lists
11780       # what "hidden" libraries, object files and flags are used when
11781       # linking a shared library.
11782       #
11783       # There doesn't appear to be a way to prevent this compiler from
11784       # explicitly linking system object files so we need to strip them
11785       # from the output so that they don't get included in the library
11786       # dependencies.
11787       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'
11788       ;;
11789     *)
11790       if test "$GXX" = yes; then
11791         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'
11792       else
11793         # FIXME: insert proper C++ library support
11794         ld_shlibs_CXX=no
11795       fi
11796       ;;
11797     esac
11798     ;;
11799   hpux10*|hpux11*)
11800     if test $with_gnu_ld = no; then
11801       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11802       hardcode_libdir_separator_CXX=:
11803
11804       case $host_cpu in
11805       hppa*64*|ia64*)
11806         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11807         ;;
11808       *)
11809         export_dynamic_flag_spec_CXX='${wl}-E'
11810         ;;
11811       esac
11812     fi
11813     case $host_cpu in
11814     hppa*64*|ia64*)
11815       hardcode_direct_CXX=no
11816       hardcode_shlibpath_var_CXX=no
11817       ;;
11818     *)
11819       hardcode_direct_CXX=yes
11820       hardcode_minus_L_CXX=yes # Not in the search PATH,
11821                                               # but as the default
11822                                               # location of the library.
11823       ;;
11824     esac
11825
11826     case $cc_basename in
11827       CC*)
11828         # FIXME: insert proper C++ library support
11829         ld_shlibs_CXX=no
11830         ;;
11831       aCC*)
11832         case $host_cpu in
11833         hppa*64*)
11834           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11835           ;;
11836         ia64*)
11837           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11838           ;;
11839         *)
11840           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11841           ;;
11842         esac
11843         # Commands to make compiler produce verbose output that lists
11844         # what "hidden" libraries, object files and flags are used when
11845         # linking a shared library.
11846         #
11847         # There doesn't appear to be a way to prevent this compiler from
11848         # explicitly linking system object files so we need to strip them
11849         # from the output so that they don't get included in the library
11850         # dependencies.
11851         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'
11852         ;;
11853       *)
11854         if test "$GXX" = yes; then
11855           if test $with_gnu_ld = no; then
11856             case $host_cpu in
11857             hppa*64*)
11858               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11859               ;;
11860             ia64*)
11861               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11862               ;;
11863             *)
11864               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'
11865               ;;
11866             esac
11867           fi
11868         else
11869           # FIXME: insert proper C++ library support
11870           ld_shlibs_CXX=no
11871         fi
11872         ;;
11873     esac
11874     ;;
11875   interix3*)
11876     hardcode_direct_CXX=no
11877     hardcode_shlibpath_var_CXX=no
11878     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879     export_dynamic_flag_spec_CXX='${wl}-E'
11880     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11881     # Instead, shared libraries are loaded at an image base (0x10000000 by
11882     # default) and relocated if they conflict, which is a slow very memory
11883     # consuming and fragmenting process.  To avoid this, we pick a random,
11884     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11885     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11886     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'
11887     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'
11888     ;;
11889   irix5* | irix6*)
11890     case $cc_basename in
11891       CC*)
11892         # SGI C++
11893         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'
11894
11895         # Archives containing C++ object files must be created using
11896         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11897         # necessary to make sure instantiated templates are included
11898         # in the archive.
11899         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11900         ;;
11901       *)
11902         if test "$GXX" = yes; then
11903           if test "$with_gnu_ld" = no; then
11904             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'
11905           else
11906             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'
11907           fi
11908         fi
11909         link_all_deplibs_CXX=yes
11910         ;;
11911     esac
11912     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11913     hardcode_libdir_separator_CXX=:
11914     ;;
11915   linux* | k*bsd*-gnu)
11916     case $cc_basename in
11917       KCC*)
11918         # Kuck and Associates, Inc. (KAI) C++ Compiler
11919
11920         # KCC will only create a shared library if the output file
11921         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11922         # to its proper name (with version) after linking.
11923         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'
11924         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'
11925         # Commands to make compiler produce verbose output that lists
11926         # what "hidden" libraries, object files and flags are used when
11927         # linking a shared library.
11928         #
11929         # There doesn't appear to be a way to prevent this compiler from
11930         # explicitly linking system object files so we need to strip them
11931         # from the output so that they don't get included in the library
11932         # dependencies.
11933         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'
11934
11935         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11936         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11937
11938         # Archives containing C++ object files must be created using
11939         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11940         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11941         ;;
11942       icpc*)
11943         # Intel C++
11944         with_gnu_ld=yes
11945         # version 8.0 and above of icpc choke on multiply defined symbols
11946         # if we add $predep_objects and $postdep_objects, however 7.1 and
11947         # earlier do not add the objects themselves.
11948         case `$CC -V 2>&1` in
11949         *"Version 7."*)
11950           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11951           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'
11952           ;;
11953         *)  # Version 8.0 or newer
11954           tmp_idyn=
11955           case $host_cpu in
11956             ia64*) tmp_idyn=' -i_dynamic';;
11957           esac
11958           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959           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'
11960           ;;
11961         esac
11962         archive_cmds_need_lc_CXX=no
11963         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11965         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11966         ;;
11967       pgCC*)
11968         # Portland Group C++ compiler
11969         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11970         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'
11971
11972         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11973         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11974         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'
11975         ;;
11976       cxx*)
11977         # Compaq C++
11978         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11979         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'
11980
11981         runpath_var=LD_RUN_PATH
11982         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11983         hardcode_libdir_separator_CXX=:
11984
11985         # Commands to make compiler produce verbose output that lists
11986         # what "hidden" libraries, object files and flags are used when
11987         # linking a shared library.
11988         #
11989         # There doesn't appear to be a way to prevent this compiler from
11990         # explicitly linking system object files so we need to strip them
11991         # from the output so that they don't get included in the library
11992         # dependencies.
11993         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'
11994         ;;
11995     esac
11996     ;;
11997   lynxos*)
11998     # FIXME: insert proper C++ library support
11999     ld_shlibs_CXX=no
12000     ;;
12001   m88k*)
12002     # FIXME: insert proper C++ library support
12003     ld_shlibs_CXX=no
12004     ;;
12005   mvs*)
12006     case $cc_basename in
12007       cxx*)
12008         # FIXME: insert proper C++ library support
12009         ld_shlibs_CXX=no
12010         ;;
12011       *)
12012         # FIXME: insert proper C++ library support
12013         ld_shlibs_CXX=no
12014         ;;
12015     esac
12016     ;;
12017   netbsd* | netbsdelf*-gnu)
12018     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12019       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12020       wlarc=
12021       hardcode_libdir_flag_spec_CXX='-R$libdir'
12022       hardcode_direct_CXX=yes
12023       hardcode_shlibpath_var_CXX=no
12024     fi
12025     # Workaround some broken pre-1.5 toolchains
12026     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12027     ;;
12028   openbsd2*)
12029     # C++ shared libraries are fairly broken
12030     ld_shlibs_CXX=no
12031     ;;
12032   openbsd*)
12033     hardcode_direct_CXX=yes
12034     hardcode_shlibpath_var_CXX=no
12035     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12036     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12037     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12038       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12039       export_dynamic_flag_spec_CXX='${wl}-E'
12040       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12041     fi
12042     output_verbose_link_cmd='echo'
12043     ;;
12044   osf3*)
12045     case $cc_basename in
12046       KCC*)
12047         # Kuck and Associates, Inc. (KAI) C++ Compiler
12048
12049         # KCC will only create a shared library if the output file
12050         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12051         # to its proper name (with version) after linking.
12052         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'
12053
12054         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12055         hardcode_libdir_separator_CXX=:
12056
12057         # Archives containing C++ object files must be created using
12058         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12059         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12060
12061         ;;
12062       RCC*)
12063         # Rational C++ 2.4.1
12064         # FIXME: insert proper C++ library support
12065         ld_shlibs_CXX=no
12066         ;;
12067       cxx*)
12068         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12069         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'
12070
12071         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12072         hardcode_libdir_separator_CXX=:
12073
12074         # Commands to make compiler produce verbose output that lists
12075         # what "hidden" libraries, object files and flags are used when
12076         # linking a shared library.
12077         #
12078         # There doesn't appear to be a way to prevent this compiler from
12079         # explicitly linking system object files so we need to strip them
12080         # from the output so that they don't get included in the library
12081         # dependencies.
12082         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'
12083         ;;
12084       *)
12085         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12086           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12087           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'
12088
12089           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12090           hardcode_libdir_separator_CXX=:
12091
12092           # Commands to make compiler produce verbose output that lists
12093           # what "hidden" libraries, object files and flags are used when
12094           # linking a shared library.
12095           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12096
12097         else
12098           # FIXME: insert proper C++ library support
12099           ld_shlibs_CXX=no
12100         fi
12101         ;;
12102     esac
12103     ;;
12104   osf4* | osf5*)
12105     case $cc_basename in
12106       KCC*)
12107         # Kuck and Associates, Inc. (KAI) C++ Compiler
12108
12109         # KCC will only create a shared library if the output file
12110         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12111         # to its proper name (with version) after linking.
12112         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'
12113
12114         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12115         hardcode_libdir_separator_CXX=:
12116
12117         # Archives containing C++ object files must be created using
12118         # the KAI C++ compiler.
12119         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12120         ;;
12121       RCC*)
12122         # Rational C++ 2.4.1
12123         # FIXME: insert proper C++ library support
12124         ld_shlibs_CXX=no
12125         ;;
12126       cxx*)
12127         allow_undefined_flag_CXX=' -expect_unresolved \*'
12128         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'
12129         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12130           echo "-hidden">> $lib.exp~
12131           $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~
12132           $rm $lib.exp'
12133
12134         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12135         hardcode_libdir_separator_CXX=:
12136
12137         # Commands to make compiler produce verbose output that lists
12138         # what "hidden" libraries, object files and flags are used when
12139         # linking a shared library.
12140         #
12141         # There doesn't appear to be a way to prevent this compiler from
12142         # explicitly linking system object files so we need to strip them
12143         # from the output so that they don't get included in the library
12144         # dependencies.
12145         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'
12146         ;;
12147       *)
12148         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12149           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12150          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'
12151
12152           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12153           hardcode_libdir_separator_CXX=:
12154
12155           # Commands to make compiler produce verbose output that lists
12156           # what "hidden" libraries, object files and flags are used when
12157           # linking a shared library.
12158           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12159
12160         else
12161           # FIXME: insert proper C++ library support
12162           ld_shlibs_CXX=no
12163         fi
12164         ;;
12165     esac
12166     ;;
12167   psos*)
12168     # FIXME: insert proper C++ library support
12169     ld_shlibs_CXX=no
12170     ;;
12171   sunos4*)
12172     case $cc_basename in
12173       CC*)
12174         # Sun C++ 4.x
12175         # FIXME: insert proper C++ library support
12176         ld_shlibs_CXX=no
12177         ;;
12178       lcc*)
12179         # Lucid
12180         # FIXME: insert proper C++ library support
12181         ld_shlibs_CXX=no
12182         ;;
12183       *)
12184         # FIXME: insert proper C++ library support
12185         ld_shlibs_CXX=no
12186         ;;
12187     esac
12188     ;;
12189   solaris*)
12190     case $cc_basename in
12191       CC*)
12192         # Sun C++ 4.2, 5.x and Centerline C++
12193         archive_cmds_need_lc_CXX=yes
12194         no_undefined_flag_CXX=' -zdefs'
12195         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12196         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12197         $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'
12198
12199         hardcode_libdir_flag_spec_CXX='-R$libdir'
12200         hardcode_shlibpath_var_CXX=no
12201         case $host_os in
12202           solaris2.[0-5] | solaris2.[0-5].*) ;;
12203           *)
12204             # The C++ compiler is used as linker so we must use $wl
12205             # flag to pass the commands to the underlying system
12206             # linker. We must also pass each convience library through
12207             # to the system linker between allextract/defaultextract.
12208             # The C++ compiler will combine linker options so we
12209             # cannot just pass the convience library names through
12210             # without $wl.
12211             # Supported since Solaris 2.6 (maybe 2.5.1?)
12212             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'
12213             ;;
12214         esac
12215         link_all_deplibs_CXX=yes
12216
12217         output_verbose_link_cmd='echo'
12218
12219         # Archives containing C++ object files must be created using
12220         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12221         # necessary to make sure instantiated templates are included
12222         # in the archive.
12223         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12224         ;;
12225       gcx*)
12226         # Green Hills C++ Compiler
12227         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12228
12229         # The C++ compiler must be used to create the archive.
12230         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12231         ;;
12232       *)
12233         # GNU C++ compiler with Solaris linker
12234         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12235           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12236           if $CC --version | grep -v '^2\.7' > /dev/null; then
12237             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12238             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12239                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12240
12241             # Commands to make compiler produce verbose output that lists
12242             # what "hidden" libraries, object files and flags are used when
12243             # linking a shared library.
12244             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12245           else
12246             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12247             # platform.
12248             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12249             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12250                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12251
12252             # Commands to make compiler produce verbose output that lists
12253             # what "hidden" libraries, object files and flags are used when
12254             # linking a shared library.
12255             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12256           fi
12257
12258           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12259         fi
12260         ;;
12261     esac
12262     ;;
12263   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12264     no_undefined_flag_CXX='${wl}-z,text'
12265     archive_cmds_need_lc_CXX=no
12266     hardcode_shlibpath_var_CXX=no
12267     runpath_var='LD_RUN_PATH'
12268
12269     case $cc_basename in
12270       CC*)
12271         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12272         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12273         ;;
12274       *)
12275         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12276         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12277         ;;
12278     esac
12279     ;;
12280   sysv5* | sco3.2v5* | sco5v6*)
12281     # Note: We can NOT use -z defs as we might desire, because we do not
12282     # link with -lc, and that would cause any symbols used from libc to
12283     # always be unresolved, which means just about no library would
12284     # ever link correctly.  If we're not using GNU ld we use -z text
12285     # though, which does catch some bad symbols but isn't as heavy-handed
12286     # as -z defs.
12287     # For security reasons, it is highly recommended that you always
12288     # use absolute paths for naming shared libraries, and exclude the
12289     # DT_RUNPATH tag from executables and libraries.  But doing so
12290     # requires that you compile everything twice, which is a pain.
12291     # So that behaviour is only enabled if SCOABSPATH is set to a
12292     # non-empty value in the environment.  Most likely only useful for
12293     # creating official distributions of packages.
12294     # This is a hack until libtool officially supports absolute path
12295     # names for shared libraries.
12296     no_undefined_flag_CXX='${wl}-z,text'
12297     allow_undefined_flag_CXX='${wl}-z,nodefs'
12298     archive_cmds_need_lc_CXX=no
12299     hardcode_shlibpath_var_CXX=no
12300     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12301     hardcode_libdir_separator_CXX=':'
12302     link_all_deplibs_CXX=yes
12303     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12304     runpath_var='LD_RUN_PATH'
12305
12306     case $cc_basename in
12307       CC*)
12308         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12309         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12310         ;;
12311       *)
12312         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12313         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12314         ;;
12315     esac
12316     ;;
12317   tandem*)
12318     case $cc_basename in
12319       NCC*)
12320         # NonStop-UX NCC 3.20
12321         # FIXME: insert proper C++ library support
12322         ld_shlibs_CXX=no
12323         ;;
12324       *)
12325         # FIXME: insert proper C++ library support
12326         ld_shlibs_CXX=no
12327         ;;
12328     esac
12329     ;;
12330   vxworks*)
12331     # FIXME: insert proper C++ library support
12332     ld_shlibs_CXX=no
12333     ;;
12334   *)
12335     # FIXME: insert proper C++ library support
12336     ld_shlibs_CXX=no
12337     ;;
12338 esac
12339 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12340 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12341 test "$ld_shlibs_CXX" = no && can_build_shared=no
12342
12343 GCC_CXX="$GXX"
12344 LD_CXX="$LD"
12345
12346
12347 cat > conftest.$ac_ext <<EOF
12348 class Foo
12349 {
12350 public:
12351   Foo (void) { a = 0; }
12352 private:
12353   int a;
12354 };
12355 EOF
12356
12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358   (eval $ac_compile) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; then
12362   # Parse the compiler output and extract the necessary
12363   # objects, libraries and library flags.
12364
12365   # Sentinel used to keep track of whether or not we are before
12366   # the conftest object file.
12367   pre_test_object_deps_done=no
12368
12369   # The `*' in the case matches for architectures that use `case' in
12370   # $output_verbose_cmd can trigger glob expansion during the loop
12371   # eval without this substitution.
12372   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12373
12374   for p in `eval $output_verbose_link_cmd`; do
12375     case $p in
12376
12377     -L* | -R* | -l*)
12378        # Some compilers place space between "-{L,R}" and the path.
12379        # Remove the space.
12380        if test $p = "-L" \
12381           || test $p = "-R"; then
12382          prev=$p
12383          continue
12384        else
12385          prev=
12386        fi
12387
12388        if test "$pre_test_object_deps_done" = no; then
12389          case $p in
12390          -L* | -R*)
12391            # Internal compiler library paths should come after those
12392            # provided the user.  The postdeps already come after the
12393            # user supplied libs so there is no need to process them.
12394            if test -z "$compiler_lib_search_path_CXX"; then
12395              compiler_lib_search_path_CXX="${prev}${p}"
12396            else
12397              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12398            fi
12399            ;;
12400          # The "-l" case would never come before the object being
12401          # linked, so don't bother handling this case.
12402          esac
12403        else
12404          if test -z "$postdeps_CXX"; then
12405            postdeps_CXX="${prev}${p}"
12406          else
12407            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12408          fi
12409        fi
12410        ;;
12411
12412     *.$objext)
12413        # This assumes that the test object file only shows up
12414        # once in the compiler output.
12415        if test "$p" = "conftest.$objext"; then
12416          pre_test_object_deps_done=yes
12417          continue
12418        fi
12419
12420        if test "$pre_test_object_deps_done" = no; then
12421          if test -z "$predep_objects_CXX"; then
12422            predep_objects_CXX="$p"
12423          else
12424            predep_objects_CXX="$predep_objects_CXX $p"
12425          fi
12426        else
12427          if test -z "$postdep_objects_CXX"; then
12428            postdep_objects_CXX="$p"
12429          else
12430            postdep_objects_CXX="$postdep_objects_CXX $p"
12431          fi
12432        fi
12433        ;;
12434
12435     *) ;; # Ignore the rest.
12436
12437     esac
12438   done
12439
12440   # Clean up.
12441   rm -f a.out a.exe
12442 else
12443   echo "libtool.m4: error: problem compiling CXX test program"
12444 fi
12445
12446 $rm -f confest.$objext
12447
12448 # PORTME: override above test on systems where it is broken
12449 case $host_os in
12450 interix3*)
12451   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12452   # hack all around it, let's just trust "g++" to DTRT.
12453   predep_objects_CXX=
12454   postdep_objects_CXX=
12455   postdeps_CXX=
12456   ;;
12457
12458 solaris*)
12459   case $cc_basename in
12460   CC*)
12461     # Adding this requires a known-good setup of shared libraries for
12462     # Sun compiler versions before 5.6, else PIC objects from an old
12463     # archive will be linked into the output, leading to subtle bugs.
12464     postdeps_CXX='-lCstd -lCrun'
12465     ;;
12466   esac
12467   ;;
12468 esac
12469
12470
12471 case " $postdeps_CXX " in
12472 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12473 esac
12474
12475 lt_prog_compiler_wl_CXX=
12476 lt_prog_compiler_pic_CXX=
12477 lt_prog_compiler_static_CXX=
12478
12479 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12481
12482   # C++ specific cases for pic, static, wl, etc.
12483   if test "$GXX" = yes; then
12484     lt_prog_compiler_wl_CXX='-Wl,'
12485     lt_prog_compiler_static_CXX='-static'
12486
12487     case $host_os in
12488     aix*)
12489       # All AIX code is PIC.
12490       if test "$host_cpu" = ia64; then
12491         # AIX 5 now supports IA64 processor
12492         lt_prog_compiler_static_CXX='-Bstatic'
12493       fi
12494       ;;
12495     amigaos*)
12496       # FIXME: we need at least 68020 code to build shared libraries, but
12497       # adding the `-m68020' flag to GCC prevents building anything better,
12498       # like `-m68040'.
12499       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12500       ;;
12501     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12502       # PIC is the default for these OSes.
12503       ;;
12504     mingw* | os2* | pw32*)
12505       # This hack is so that the source file can tell whether it is being
12506       # built for inclusion in a dll (and should export symbols for example).
12507       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12508       ;;
12509     darwin* | rhapsody*)
12510       # PIC is the default on this platform
12511       # Common symbols not allowed in MH_DYLIB files
12512       lt_prog_compiler_pic_CXX='-fno-common'
12513       ;;
12514     *djgpp*)
12515       # DJGPP does not support shared libraries at all
12516       lt_prog_compiler_pic_CXX=
12517       ;;
12518     interix3*)
12519       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12520       # Instead, we relocate shared libraries at runtime.
12521       ;;
12522     sysv4*MP*)
12523       if test -d /usr/nec; then
12524         lt_prog_compiler_pic_CXX=-Kconform_pic
12525       fi
12526       ;;
12527     hpux*)
12528       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12529       # not for PA HP-UX.
12530       case $host_cpu in
12531       hppa*64*|ia64*)
12532         ;;
12533       *)
12534         lt_prog_compiler_pic_CXX='-fPIC'
12535         ;;
12536       esac
12537       ;;
12538     *)
12539       lt_prog_compiler_pic_CXX='-fPIC'
12540       ;;
12541     esac
12542   else
12543     case $host_os in
12544       aix4* | aix5*)
12545         # All AIX code is PIC.
12546         if test "$host_cpu" = ia64; then
12547           # AIX 5 now supports IA64 processor
12548           lt_prog_compiler_static_CXX='-Bstatic'
12549         else
12550           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12551         fi
12552         ;;
12553       chorus*)
12554         case $cc_basename in
12555         cxch68*)
12556           # Green Hills C++ Compiler
12557           # _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"
12558           ;;
12559         esac
12560         ;;
12561        darwin*)
12562          # PIC is the default on this platform
12563          # Common symbols not allowed in MH_DYLIB files
12564          case $cc_basename in
12565            xlc*)
12566            lt_prog_compiler_pic_CXX='-qnocommon'
12567            lt_prog_compiler_wl_CXX='-Wl,'
12568            ;;
12569          esac
12570        ;;
12571       dgux*)
12572         case $cc_basename in
12573           ec++*)
12574             lt_prog_compiler_pic_CXX='-KPIC'
12575             ;;
12576           ghcx*)
12577             # Green Hills C++ Compiler
12578             lt_prog_compiler_pic_CXX='-pic'
12579             ;;
12580           *)
12581             ;;
12582         esac
12583         ;;
12584       freebsd* | dragonfly*)
12585         # FreeBSD uses GNU C++
12586         ;;
12587       hpux9* | hpux10* | hpux11*)
12588         case $cc_basename in
12589           CC*)
12590             lt_prog_compiler_wl_CXX='-Wl,'
12591             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12592             if test "$host_cpu" != ia64; then
12593               lt_prog_compiler_pic_CXX='+Z'
12594             fi
12595             ;;
12596           aCC*)
12597             lt_prog_compiler_wl_CXX='-Wl,'
12598             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12599             case $host_cpu in
12600             hppa*64*|ia64*)
12601               # +Z the default
12602               ;;
12603             *)
12604               lt_prog_compiler_pic_CXX='+Z'
12605               ;;
12606             esac
12607             ;;
12608           *)
12609             ;;
12610         esac
12611         ;;
12612       interix*)
12613         # This is c89, which is MS Visual C++ (no shared libs)
12614         # Anyone wants to do a port?
12615         ;;
12616       irix5* | irix6* | nonstopux*)
12617         case $cc_basename in
12618           CC*)
12619             lt_prog_compiler_wl_CXX='-Wl,'
12620             lt_prog_compiler_static_CXX='-non_shared'
12621             # CC pic flag -KPIC is the default.
12622             ;;
12623           *)
12624             ;;
12625         esac
12626         ;;
12627       linux* | k*bsd*-gnu)
12628         case $cc_basename in
12629           KCC*)
12630             # KAI C++ Compiler
12631             lt_prog_compiler_wl_CXX='--backend -Wl,'
12632             lt_prog_compiler_pic_CXX='-fPIC'
12633             ;;
12634           icpc* | ecpc*)
12635             # Intel C++
12636             lt_prog_compiler_wl_CXX='-Wl,'
12637             lt_prog_compiler_pic_CXX='-KPIC'
12638             lt_prog_compiler_static_CXX='-static'
12639             ;;
12640           pgCC*)
12641             # Portland Group C++ compiler.
12642             lt_prog_compiler_wl_CXX='-Wl,'
12643             lt_prog_compiler_pic_CXX='-fpic'
12644             lt_prog_compiler_static_CXX='-Bstatic'
12645             ;;
12646           cxx*)
12647             # Compaq C++
12648             # Make sure the PIC flag is empty.  It appears that all Alpha
12649             # Linux and Compaq Tru64 Unix objects are PIC.
12650             lt_prog_compiler_pic_CXX=
12651             lt_prog_compiler_static_CXX='-non_shared'
12652             ;;
12653           *)
12654             ;;
12655         esac
12656         ;;
12657       lynxos*)
12658         ;;
12659       m88k*)
12660         ;;
12661       mvs*)
12662         case $cc_basename in
12663           cxx*)
12664             lt_prog_compiler_pic_CXX='-W c,exportall'
12665             ;;
12666           *)
12667             ;;
12668         esac
12669         ;;
12670       netbsd* | netbsdelf*-gnu)
12671         ;;
12672       osf3* | osf4* | osf5*)
12673         case $cc_basename in
12674           KCC*)
12675             lt_prog_compiler_wl_CXX='--backend -Wl,'
12676             ;;
12677           RCC*)
12678             # Rational C++ 2.4.1
12679             lt_prog_compiler_pic_CXX='-pic'
12680             ;;
12681           cxx*)
12682             # Digital/Compaq C++
12683             lt_prog_compiler_wl_CXX='-Wl,'
12684             # Make sure the PIC flag is empty.  It appears that all Alpha
12685             # Linux and Compaq Tru64 Unix objects are PIC.
12686             lt_prog_compiler_pic_CXX=
12687             lt_prog_compiler_static_CXX='-non_shared'
12688             ;;
12689           *)
12690             ;;
12691         esac
12692         ;;
12693       psos*)
12694         ;;
12695       solaris*)
12696         case $cc_basename in
12697           CC*)
12698             # Sun C++ 4.2, 5.x and Centerline C++
12699             lt_prog_compiler_pic_CXX='-KPIC'
12700             lt_prog_compiler_static_CXX='-Bstatic'
12701             lt_prog_compiler_wl_CXX='-Qoption ld '
12702             ;;
12703           gcx*)
12704             # Green Hills C++ Compiler
12705             lt_prog_compiler_pic_CXX='-PIC'
12706             ;;
12707           *)
12708             ;;
12709         esac
12710         ;;
12711       sunos4*)
12712         case $cc_basename in
12713           CC*)
12714             # Sun C++ 4.x
12715             lt_prog_compiler_pic_CXX='-pic'
12716             lt_prog_compiler_static_CXX='-Bstatic'
12717             ;;
12718           lcc*)
12719             # Lucid
12720             lt_prog_compiler_pic_CXX='-pic'
12721             ;;
12722           *)
12723             ;;
12724         esac
12725         ;;
12726       tandem*)
12727         case $cc_basename in
12728           NCC*)
12729             # NonStop-UX NCC 3.20
12730             lt_prog_compiler_pic_CXX='-KPIC'
12731             ;;
12732           *)
12733             ;;
12734         esac
12735         ;;
12736       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12737         case $cc_basename in
12738           CC*)
12739             lt_prog_compiler_wl_CXX='-Wl,'
12740             lt_prog_compiler_pic_CXX='-KPIC'
12741             lt_prog_compiler_static_CXX='-Bstatic'
12742             ;;
12743         esac
12744         ;;
12745       vxworks*)
12746         ;;
12747       *)
12748         lt_prog_compiler_can_build_shared_CXX=no
12749         ;;
12750     esac
12751   fi
12752
12753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12754 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12755
12756 #
12757 # Check to make sure the PIC flag actually works.
12758 #
12759 if test -n "$lt_prog_compiler_pic_CXX"; then
12760
12761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12763 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766   lt_prog_compiler_pic_works_CXX=no
12767   ac_outfile=conftest.$ac_objext
12768    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12769    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12770    # Insert the option either (1) after the last *FLAGS variable, or
12771    # (2) before a word containing "conftest.", or (3) at the end.
12772    # Note that $ac_compile itself does not contain backslashes and begins
12773    # with a dollar sign (not a hyphen), so the echo should work correctly.
12774    # The option is referenced via a variable to avoid confusing sed.
12775    lt_compile=`echo "$ac_compile" | $SED \
12776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778    -e 's:$: $lt_compiler_flag:'`
12779    (eval echo "\"\$as_me:12779: $lt_compile\"" >&5)
12780    (eval "$lt_compile" 2>conftest.err)
12781    ac_status=$?
12782    cat conftest.err >&5
12783    echo "$as_me:12783: \$? = $ac_status" >&5
12784    if (exit $ac_status) && test -s "$ac_outfile"; then
12785      # The compiler can only warn and ignore the option if not recognized
12786      # So say no if there are warnings other than the usual output.
12787      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12790        lt_prog_compiler_pic_works_CXX=yes
12791      fi
12792    fi
12793    $rm conftest*
12794
12795 fi
12796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12797 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12798
12799 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12800     case $lt_prog_compiler_pic_CXX in
12801      "" | " "*) ;;
12802      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12803      esac
12804 else
12805     lt_prog_compiler_pic_CXX=
12806      lt_prog_compiler_can_build_shared_CXX=no
12807 fi
12808
12809 fi
12810 case $host_os in
12811   # For platforms which do not support PIC, -DPIC is meaningless:
12812   *djgpp*)
12813     lt_prog_compiler_pic_CXX=
12814     ;;
12815   *)
12816     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12817     ;;
12818 esac
12819
12820 #
12821 # Check to make sure the static flag actually works.
12822 #
12823 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12824 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12825 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12826 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12827   echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829   lt_prog_compiler_static_works_CXX=no
12830    save_LDFLAGS="$LDFLAGS"
12831    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12832    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12833    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12834      # The linker can only warn and ignore the option if not recognized
12835      # So say no if there are warnings
12836      if test -s conftest.err; then
12837        # Append any errors to the config.log.
12838        cat conftest.err 1>&5
12839        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12840        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12841        if diff conftest.exp conftest.er2 >/dev/null; then
12842          lt_prog_compiler_static_works_CXX=yes
12843        fi
12844      else
12845        lt_prog_compiler_static_works_CXX=yes
12846      fi
12847    fi
12848    $rm conftest*
12849    LDFLAGS="$save_LDFLAGS"
12850
12851 fi
12852 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12853 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12854
12855 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12856     :
12857 else
12858     lt_prog_compiler_static_CXX=
12859 fi
12860
12861
12862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12864 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   lt_cv_prog_compiler_c_o_CXX=no
12868    $rm -r conftest 2>/dev/null
12869    mkdir conftest
12870    cd conftest
12871    mkdir out
12872    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12873
12874    lt_compiler_flag="-o out/conftest2.$ac_objext"
12875    # Insert the option either (1) after the last *FLAGS variable, or
12876    # (2) before a word containing "conftest.", or (3) at the end.
12877    # Note that $ac_compile itself does not contain backslashes and begins
12878    # with a dollar sign (not a hyphen), so the echo should work correctly.
12879    lt_compile=`echo "$ac_compile" | $SED \
12880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12882    -e 's:$: $lt_compiler_flag:'`
12883    (eval echo "\"\$as_me:12883: $lt_compile\"" >&5)
12884    (eval "$lt_compile" 2>out/conftest.err)
12885    ac_status=$?
12886    cat out/conftest.err >&5
12887    echo "$as_me:12887: \$? = $ac_status" >&5
12888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12889    then
12890      # The compiler can only warn and ignore the option if not recognized
12891      # So say no if there are warnings
12892      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12893      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12894      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12895        lt_cv_prog_compiler_c_o_CXX=yes
12896      fi
12897    fi
12898    chmod u+w . 2>&5
12899    $rm conftest*
12900    # SGI C++ compiler will create directory out/ii_files/ for
12901    # template instantiation
12902    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12903    $rm out/* && rmdir out
12904    cd ..
12905    rmdir conftest
12906    $rm conftest*
12907
12908 fi
12909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12911
12912
12913 hard_links="nottested"
12914 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12915   # do not overwrite the value of need_locks provided by the user
12916   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12918   hard_links=yes
12919   $rm conftest*
12920   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12921   touch conftest.a
12922   ln conftest.a conftest.b 2>&5 || hard_links=no
12923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12924   { echo "$as_me:$LINENO: result: $hard_links" >&5
12925 echo "${ECHO_T}$hard_links" >&6; }
12926   if test "$hard_links" = no; then
12927     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12929     need_locks=warn
12930   fi
12931 else
12932   need_locks=no
12933 fi
12934
12935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12937
12938   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12939   case $host_os in
12940   aix4* | aix5*)
12941     # If we're using GNU nm, then we don't want the "-C" option.
12942     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12943     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12944       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'
12945     else
12946       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'
12947     fi
12948     ;;
12949   pw32*)
12950     export_symbols_cmds_CXX="$ltdll_cmds"
12951   ;;
12952   cygwin* | mingw*)
12953     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'
12954   ;;
12955   linux* | k*bsd*-gnu)
12956     link_all_deplibs_CXX=no
12957   ;;
12958   *)
12959     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12960   ;;
12961   esac
12962
12963 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12964 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12965 test "$ld_shlibs_CXX" = no && can_build_shared=no
12966
12967 #
12968 # Do we need to explicitly link libc?
12969 #
12970 case "x$archive_cmds_need_lc_CXX" in
12971 x|xyes)
12972   # Assume -lc should be added
12973   archive_cmds_need_lc_CXX=yes
12974
12975   if test "$enable_shared" = yes && test "$GCC" = yes; then
12976     case $archive_cmds_CXX in
12977     *'~'*)
12978       # FIXME: we may have to deal with multi-command sequences.
12979       ;;
12980     '$CC '*)
12981       # Test whether the compiler implicitly links with -lc since on some
12982       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12983       # to ld, don't add -lc before -lgcc.
12984       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12986       $rm conftest*
12987       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12988
12989       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990   (eval $ac_compile) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } 2>conftest.err; then
12994         soname=conftest
12995         lib=conftest
12996         libobjs=conftest.$ac_objext
12997         deplibs=
12998         wl=$lt_prog_compiler_wl_CXX
12999         pic_flag=$lt_prog_compiler_pic_CXX
13000         compiler_flags=-v
13001         linker_flags=-v
13002         verstring=
13003         output_objdir=.
13004         libname=conftest
13005         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13006         allow_undefined_flag_CXX=
13007         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13008   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); }
13012         then
13013           archive_cmds_need_lc_CXX=no
13014         else
13015           archive_cmds_need_lc_CXX=yes
13016         fi
13017         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13018       else
13019         cat conftest.err 1>&5
13020       fi
13021       $rm conftest*
13022       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13023 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13024       ;;
13025     esac
13026   fi
13027   ;;
13028 esac
13029
13030 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13032 library_names_spec=
13033 libname_spec='lib$name'
13034 soname_spec=
13035 shrext_cmds=".so"
13036 postinstall_cmds=
13037 postuninstall_cmds=
13038 finish_cmds=
13039 finish_eval=
13040 shlibpath_var=
13041 shlibpath_overrides_runpath=unknown
13042 version_type=none
13043 dynamic_linker="$host_os ld.so"
13044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13045 if test "$GCC" = yes; then
13046   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13047   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13048     # if the path contains ";" then we assume it to be the separator
13049     # otherwise default to the standard path separator (i.e. ":") - it is
13050     # assumed that no part of a normal pathname contains ";" but that should
13051     # okay in the real world where ";" in dirpaths is itself problematic.
13052     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13053   else
13054     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13055   fi
13056 else
13057   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13058 fi
13059 need_lib_prefix=unknown
13060 hardcode_into_libs=no
13061
13062 # when you set need_version to no, make sure it does not cause -set_version
13063 # flags to be left without arguments
13064 need_version=unknown
13065
13066 case $host_os in
13067 aix3*)
13068   version_type=linux
13069   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13070   shlibpath_var=LIBPATH
13071
13072   # AIX 3 has no versioning support, so we append a major version to the name.
13073   soname_spec='${libname}${release}${shared_ext}$major'
13074   ;;
13075
13076 aix4* | aix5*)
13077   version_type=linux
13078   need_lib_prefix=no
13079   need_version=no
13080   hardcode_into_libs=yes
13081   if test "$host_cpu" = ia64; then
13082     # AIX 5 supports IA64
13083     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13084     shlibpath_var=LD_LIBRARY_PATH
13085   else
13086     # With GCC up to 2.95.x, collect2 would create an import file
13087     # for dependence libraries.  The import file would start with
13088     # the line `#! .'.  This would cause the generated library to
13089     # depend on `.', always an invalid library.  This was fixed in
13090     # development snapshots of GCC prior to 3.0.
13091     case $host_os in
13092       aix4 | aix4.[01] | aix4.[01].*)
13093       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13094            echo ' yes '
13095            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13096         :
13097       else
13098         can_build_shared=no
13099       fi
13100       ;;
13101     esac
13102     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13103     # soname into executable. Probably we can add versioning support to
13104     # collect2, so additional links can be useful in future.
13105     if test "$aix_use_runtimelinking" = yes; then
13106       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13107       # instead of lib<name>.a to let people know that these are not
13108       # typical AIX shared libraries.
13109       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13110     else
13111       # We preserve .a as extension for shared libraries through AIX4.2
13112       # and later when we are not doing run time linking.
13113       library_names_spec='${libname}${release}.a $libname.a'
13114       soname_spec='${libname}${release}${shared_ext}$major'
13115     fi
13116     shlibpath_var=LIBPATH
13117   fi
13118   ;;
13119
13120 amigaos*)
13121   library_names_spec='$libname.ixlibrary $libname.a'
13122   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13123   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'
13124   ;;
13125
13126 beos*)
13127   library_names_spec='${libname}${shared_ext}'
13128   dynamic_linker="$host_os ld.so"
13129   shlibpath_var=LIBRARY_PATH
13130   ;;
13131
13132 bsdi[45]*)
13133   version_type=linux
13134   need_version=no
13135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13136   soname_spec='${libname}${release}${shared_ext}$major'
13137   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13138   shlibpath_var=LD_LIBRARY_PATH
13139   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13140   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13141   # the default ld.so.conf also contains /usr/contrib/lib and
13142   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13143   # libtool to hard-code these into programs
13144   ;;
13145
13146 cygwin* | mingw* | pw32*)
13147   version_type=windows
13148   shrext_cmds=".dll"
13149   need_version=no
13150   need_lib_prefix=no
13151
13152   case $GCC,$host_os in
13153   yes,cygwin* | yes,mingw* | yes,pw32*)
13154     library_names_spec='$libname.dll.a'
13155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13156     postinstall_cmds='base_file=`basename \${file}`~
13157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13158       dldir=$destdir/`dirname \$dlpath`~
13159       test -d \$dldir || mkdir -p \$dldir~
13160       $install_prog $dir/$dlname \$dldir/$dlname~
13161       chmod a+x \$dldir/$dlname'
13162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13163       dlpath=$dir/\$dldll~
13164        $rm \$dlpath'
13165     shlibpath_overrides_runpath=yes
13166
13167     case $host_os in
13168     cygwin*)
13169       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13170       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13171       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13172       ;;
13173     mingw*)
13174       # MinGW DLLs use traditional 'lib' prefix
13175       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13176       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13177       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13178         # It is most probably a Windows format PATH printed by
13179         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13180         # path with ; separators, and with drive letters. We can handle the
13181         # drive letters (cygwin fileutils understands them), so leave them,
13182         # especially as we might pass files found there to a mingw objdump,
13183         # which wouldn't understand a cygwinified path. Ahh.
13184         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13185       else
13186         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13187       fi
13188       ;;
13189     pw32*)
13190       # pw32 DLLs use 'pw' prefix rather than 'lib'
13191       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13192       ;;
13193     esac
13194     ;;
13195
13196   *)
13197     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13198     ;;
13199   esac
13200   dynamic_linker='Win32 ld.exe'
13201   # FIXME: first we should search . and the directory the executable is in
13202   shlibpath_var=PATH
13203   ;;
13204
13205 darwin* | rhapsody*)
13206   dynamic_linker="$host_os dyld"
13207   version_type=darwin
13208   need_lib_prefix=no
13209   need_version=no
13210   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13211   soname_spec='${libname}${release}${major}$shared_ext'
13212   shlibpath_overrides_runpath=yes
13213   shlibpath_var=DYLD_LIBRARY_PATH
13214   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13215   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13216   if test "$GCC" = yes; then
13217     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"`
13218   else
13219     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13220   fi
13221   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13222   ;;
13223
13224 dgux*)
13225   version_type=linux
13226   need_lib_prefix=no
13227   need_version=no
13228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13229   soname_spec='${libname}${release}${shared_ext}$major'
13230   shlibpath_var=LD_LIBRARY_PATH
13231   ;;
13232
13233 freebsd1*)
13234   dynamic_linker=no
13235   ;;
13236
13237 freebsd* | dragonfly*)
13238   # DragonFly does not have aout.  When/if they implement a new
13239   # versioning mechanism, adjust this.
13240   if test -x /usr/bin/objformat; then
13241     objformat=`/usr/bin/objformat`
13242   else
13243     case $host_os in
13244     freebsd[123]*) objformat=aout ;;
13245     *) objformat=elf ;;
13246     esac
13247   fi
13248   version_type=freebsd-$objformat
13249   case $version_type in
13250     freebsd-elf*)
13251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13252       need_version=no
13253       need_lib_prefix=no
13254       ;;
13255     freebsd-*)
13256       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13257       need_version=yes
13258       ;;
13259   esac
13260   shlibpath_var=LD_LIBRARY_PATH
13261   case $host_os in
13262   freebsd2*)
13263     shlibpath_overrides_runpath=yes
13264     ;;
13265   freebsd3.[01]* | freebsdelf3.[01]*)
13266     shlibpath_overrides_runpath=yes
13267     hardcode_into_libs=yes
13268     ;;
13269   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13270   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13271     shlibpath_overrides_runpath=no
13272     hardcode_into_libs=yes
13273     ;;
13274   freebsd*) # from 4.6 on
13275     shlibpath_overrides_runpath=yes
13276     hardcode_into_libs=yes
13277     ;;
13278   esac
13279   ;;
13280
13281 gnu*)
13282   version_type=linux
13283   need_lib_prefix=no
13284   need_version=no
13285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13286   soname_spec='${libname}${release}${shared_ext}$major'
13287   shlibpath_var=LD_LIBRARY_PATH
13288   hardcode_into_libs=yes
13289   ;;
13290
13291 hpux9* | hpux10* | hpux11*)
13292   # Give a soname corresponding to the major version so that dld.sl refuses to
13293   # link against other versions.
13294   version_type=sunos
13295   need_lib_prefix=no
13296   need_version=no
13297   case $host_cpu in
13298   ia64*)
13299     shrext_cmds='.so'
13300     hardcode_into_libs=yes
13301     dynamic_linker="$host_os dld.so"
13302     shlibpath_var=LD_LIBRARY_PATH
13303     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305     soname_spec='${libname}${release}${shared_ext}$major'
13306     if test "X$HPUX_IA64_MODE" = X32; then
13307       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13308     else
13309       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13310     fi
13311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13312     ;;
13313    hppa*64*)
13314      shrext_cmds='.sl'
13315      hardcode_into_libs=yes
13316      dynamic_linker="$host_os dld.sl"
13317      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13318      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13319      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320      soname_spec='${libname}${release}${shared_ext}$major'
13321      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13322      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13323      ;;
13324    *)
13325     shrext_cmds='.sl'
13326     dynamic_linker="$host_os dld.sl"
13327     shlibpath_var=SHLIB_PATH
13328     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13330     soname_spec='${libname}${release}${shared_ext}$major'
13331     ;;
13332   esac
13333   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13334   postinstall_cmds='chmod 555 $lib'
13335   ;;
13336
13337 interix3*)
13338   version_type=linux
13339   need_lib_prefix=no
13340   need_version=no
13341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13342   soname_spec='${libname}${release}${shared_ext}$major'
13343   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13344   shlibpath_var=LD_LIBRARY_PATH
13345   shlibpath_overrides_runpath=no
13346   hardcode_into_libs=yes
13347   ;;
13348
13349 irix5* | irix6* | nonstopux*)
13350   case $host_os in
13351     nonstopux*) version_type=nonstopux ;;
13352     *)
13353         if test "$lt_cv_prog_gnu_ld" = yes; then
13354                 version_type=linux
13355         else
13356                 version_type=irix
13357         fi ;;
13358   esac
13359   need_lib_prefix=no
13360   need_version=no
13361   soname_spec='${libname}${release}${shared_ext}$major'
13362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13363   case $host_os in
13364   irix5* | nonstopux*)
13365     libsuff= shlibsuff=
13366     ;;
13367   *)
13368     case $LD in # libtool.m4 will add one of these switches to LD
13369     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13370       libsuff= shlibsuff= libmagic=32-bit;;
13371     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13372       libsuff=32 shlibsuff=N32 libmagic=N32;;
13373     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13374       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13375     *) libsuff= shlibsuff= libmagic=never-match;;
13376     esac
13377     ;;
13378   esac
13379   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13380   shlibpath_overrides_runpath=no
13381   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13382   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13383   hardcode_into_libs=yes
13384   ;;
13385
13386 # No shared lib support for Linux oldld, aout, or coff.
13387 linux*oldld* | linux*aout* | linux*coff*)
13388   dynamic_linker=no
13389   ;;
13390
13391 # This must be Linux ELF.
13392 linux* | k*bsd*-gnu)
13393   version_type=linux
13394   need_lib_prefix=no
13395   need_version=no
13396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397   soname_spec='${libname}${release}${shared_ext}$major'
13398   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13399   shlibpath_var=LD_LIBRARY_PATH
13400   shlibpath_overrides_runpath=no
13401   # This implies no fast_install, which is unacceptable.
13402   # Some rework will be needed to allow for fast_install
13403   # before this can be enabled.
13404   hardcode_into_libs=yes
13405
13406   # Append ld.so.conf contents to the search path
13407   if test -f /etc/ld.so.conf; then
13408     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' ' '`
13409     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13410   fi
13411
13412   # We used to test for /lib/ld.so.1 and disable shared libraries on
13413   # powerpc, because MkLinux only supported shared libraries with the
13414   # GNU dynamic linker.  Since this was broken with cross compilers,
13415   # most powerpc-linux boxes support dynamic linking these days and
13416   # people can always --disable-shared, the test was removed, and we
13417   # assume the GNU/Linux dynamic linker is in use.
13418   dynamic_linker='GNU/Linux ld.so'
13419   ;;
13420
13421 netbsdelf*-gnu)
13422   version_type=linux
13423   need_lib_prefix=no
13424   need_version=no
13425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426   soname_spec='${libname}${release}${shared_ext}$major'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   shlibpath_overrides_runpath=no
13429   hardcode_into_libs=yes
13430   dynamic_linker='NetBSD ld.elf_so'
13431   ;;
13432
13433 netbsd*)
13434   version_type=sunos
13435   need_lib_prefix=no
13436   need_version=no
13437   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13440     dynamic_linker='NetBSD (a.out) ld.so'
13441   else
13442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13443     soname_spec='${libname}${release}${shared_ext}$major'
13444     dynamic_linker='NetBSD ld.elf_so'
13445   fi
13446   shlibpath_var=LD_LIBRARY_PATH
13447   shlibpath_overrides_runpath=yes
13448   hardcode_into_libs=yes
13449   ;;
13450
13451 newsos6)
13452   version_type=linux
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454   shlibpath_var=LD_LIBRARY_PATH
13455   shlibpath_overrides_runpath=yes
13456   ;;
13457
13458 nto-qnx*)
13459   version_type=linux
13460   need_lib_prefix=no
13461   need_version=no
13462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463   soname_spec='${libname}${release}${shared_ext}$major'
13464   shlibpath_var=LD_LIBRARY_PATH
13465   shlibpath_overrides_runpath=yes
13466   ;;
13467
13468 openbsd*)
13469   version_type=sunos
13470   sys_lib_dlsearch_path_spec="/usr/lib"
13471   need_lib_prefix=no
13472   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13473   case $host_os in
13474     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13475     *)                         need_version=no  ;;
13476   esac
13477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13478   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13479   shlibpath_var=LD_LIBRARY_PATH
13480   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13481     case $host_os in
13482       openbsd2.[89] | openbsd2.[89].*)
13483         shlibpath_overrides_runpath=no
13484         ;;
13485       *)
13486         shlibpath_overrides_runpath=yes
13487         ;;
13488       esac
13489   else
13490     shlibpath_overrides_runpath=yes
13491   fi
13492   ;;
13493
13494 os2*)
13495   libname_spec='$name'
13496   shrext_cmds=".dll"
13497   need_lib_prefix=no
13498   library_names_spec='$libname${shared_ext} $libname.a'
13499   dynamic_linker='OS/2 ld.exe'
13500   shlibpath_var=LIBPATH
13501   ;;
13502
13503 osf3* | osf4* | osf5*)
13504   version_type=osf
13505   need_lib_prefix=no
13506   need_version=no
13507   soname_spec='${libname}${release}${shared_ext}$major'
13508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509   shlibpath_var=LD_LIBRARY_PATH
13510   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13511   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13512   ;;
13513
13514 solaris*)
13515   version_type=linux
13516   need_lib_prefix=no
13517   need_version=no
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519   soname_spec='${libname}${release}${shared_ext}$major'
13520   shlibpath_var=LD_LIBRARY_PATH
13521   shlibpath_overrides_runpath=yes
13522   hardcode_into_libs=yes
13523   # ldd complains unless libraries are executable
13524   postinstall_cmds='chmod +x $lib'
13525   ;;
13526
13527 sunos4*)
13528   version_type=sunos
13529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13530   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13531   shlibpath_var=LD_LIBRARY_PATH
13532   shlibpath_overrides_runpath=yes
13533   if test "$with_gnu_ld" = yes; then
13534     need_lib_prefix=no
13535   fi
13536   need_version=yes
13537   ;;
13538
13539 sysv4 | sysv4.3*)
13540   version_type=linux
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542   soname_spec='${libname}${release}${shared_ext}$major'
13543   shlibpath_var=LD_LIBRARY_PATH
13544   case $host_vendor in
13545     sni)
13546       shlibpath_overrides_runpath=no
13547       need_lib_prefix=no
13548       export_dynamic_flag_spec='${wl}-Blargedynsym'
13549       runpath_var=LD_RUN_PATH
13550       ;;
13551     siemens)
13552       need_lib_prefix=no
13553       ;;
13554     motorola)
13555       need_lib_prefix=no
13556       need_version=no
13557       shlibpath_overrides_runpath=no
13558       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13559       ;;
13560   esac
13561   ;;
13562
13563 sysv4*MP*)
13564   if test -d /usr/nec ;then
13565     version_type=linux
13566     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13567     soname_spec='$libname${shared_ext}.$major'
13568     shlibpath_var=LD_LIBRARY_PATH
13569   fi
13570   ;;
13571
13572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13573   version_type=freebsd-elf
13574   need_lib_prefix=no
13575   need_version=no
13576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13577   soname_spec='${libname}${release}${shared_ext}$major'
13578   shlibpath_var=LD_LIBRARY_PATH
13579   hardcode_into_libs=yes
13580   if test "$with_gnu_ld" = yes; then
13581     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13582     shlibpath_overrides_runpath=no
13583   else
13584     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13585     shlibpath_overrides_runpath=yes
13586     case $host_os in
13587       sco3.2v5*)
13588         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13589         ;;
13590     esac
13591   fi
13592   sys_lib_dlsearch_path_spec='/usr/lib'
13593   ;;
13594
13595 uts4*)
13596   version_type=linux
13597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598   soname_spec='${libname}${release}${shared_ext}$major'
13599   shlibpath_var=LD_LIBRARY_PATH
13600   ;;
13601
13602 *)
13603   dynamic_linker=no
13604   ;;
13605 esac
13606 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13607 echo "${ECHO_T}$dynamic_linker" >&6; }
13608 test "$dynamic_linker" = no && can_build_shared=no
13609
13610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13611 if test "$GCC" = yes; then
13612   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13613 fi
13614
13615 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13617 hardcode_action_CXX=
13618 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13619    test -n "$runpath_var_CXX" || \
13620    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13621
13622   # We can hardcode non-existant directories.
13623   if test "$hardcode_direct_CXX" != no &&
13624      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13625      # have to relink, otherwise we might link with an installed library
13626      # when we should be linking with a yet-to-be-installed one
13627      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13628      test "$hardcode_minus_L_CXX" != no; then
13629     # Linking always hardcodes the temporary library directory.
13630     hardcode_action_CXX=relink
13631   else
13632     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13633     hardcode_action_CXX=immediate
13634   fi
13635 else
13636   # We cannot hardcode anything, or else we can only hardcode existing
13637   # directories.
13638   hardcode_action_CXX=unsupported
13639 fi
13640 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13641 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13642
13643 if test "$hardcode_action_CXX" = relink; then
13644   # Fast installation is not supported
13645   enable_fast_install=no
13646 elif test "$shlibpath_overrides_runpath" = yes ||
13647      test "$enable_shared" = no; then
13648   # Fast installation is not necessary
13649   enable_fast_install=needless
13650 fi
13651
13652
13653 # The else clause should only fire when bootstrapping the
13654 # libtool distribution, otherwise you forgot to ship ltmain.sh
13655 # with your package, and you will get complaints that there are
13656 # no rules to generate ltmain.sh.
13657 if test -f "$ltmain"; then
13658   # See if we are running on zsh, and set the options which allow our commands through
13659   # without removal of \ escapes.
13660   if test -n "${ZSH_VERSION+set}" ; then
13661     setopt NO_GLOB_SUBST
13662   fi
13663   # Now quote all the things that may contain metacharacters while being
13664   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13665   # variables and quote the copies for generation of the libtool script.
13666   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13667     SED SHELL STRIP \
13668     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13669     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13670     deplibs_check_method reload_flag reload_cmds need_locks \
13671     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13672     lt_cv_sys_global_symbol_to_c_name_address \
13673     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13674     old_postinstall_cmds old_postuninstall_cmds \
13675     compiler_CXX \
13676     CC_CXX \
13677     LD_CXX \
13678     lt_prog_compiler_wl_CXX \
13679     lt_prog_compiler_pic_CXX \
13680     lt_prog_compiler_static_CXX \
13681     lt_prog_compiler_no_builtin_flag_CXX \
13682     export_dynamic_flag_spec_CXX \
13683     thread_safe_flag_spec_CXX \
13684     whole_archive_flag_spec_CXX \
13685     enable_shared_with_static_runtimes_CXX \
13686     old_archive_cmds_CXX \
13687     old_archive_from_new_cmds_CXX \
13688     predep_objects_CXX \
13689     postdep_objects_CXX \
13690     predeps_CXX \
13691     postdeps_CXX \
13692     compiler_lib_search_path_CXX \
13693     archive_cmds_CXX \
13694     archive_expsym_cmds_CXX \
13695     postinstall_cmds_CXX \
13696     postuninstall_cmds_CXX \
13697     old_archive_from_expsyms_cmds_CXX \
13698     allow_undefined_flag_CXX \
13699     no_undefined_flag_CXX \
13700     export_symbols_cmds_CXX \
13701     hardcode_libdir_flag_spec_CXX \
13702     hardcode_libdir_flag_spec_ld_CXX \
13703     hardcode_libdir_separator_CXX \
13704     hardcode_automatic_CXX \
13705     module_cmds_CXX \
13706     module_expsym_cmds_CXX \
13707     lt_cv_prog_compiler_c_o_CXX \
13708     exclude_expsyms_CXX \
13709     include_expsyms_CXX; do
13710
13711     case $var in
13712     old_archive_cmds_CXX | \
13713     old_archive_from_new_cmds_CXX | \
13714     archive_cmds_CXX | \
13715     archive_expsym_cmds_CXX | \
13716     module_cmds_CXX | \
13717     module_expsym_cmds_CXX | \
13718     old_archive_from_expsyms_cmds_CXX | \
13719     export_symbols_cmds_CXX | \
13720     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13721     postinstall_cmds | postuninstall_cmds | \
13722     old_postinstall_cmds | old_postuninstall_cmds | \
13723     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13724       # Double-quote double-evaled strings.
13725       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13726       ;;
13727     *)
13728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13729       ;;
13730     esac
13731   done
13732
13733   case $lt_echo in
13734   *'\$0 --fallback-echo"')
13735     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13736     ;;
13737   esac
13738
13739 cfgfile="$ofile"
13740
13741   cat <<__EOF__ >> "$cfgfile"
13742 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13743
13744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13745
13746 # Shell to use when invoking shell scripts.
13747 SHELL=$lt_SHELL
13748
13749 # Whether or not to build shared libraries.
13750 build_libtool_libs=$enable_shared
13751
13752 # Whether or not to build static libraries.
13753 build_old_libs=$enable_static
13754
13755 # Whether or not to add -lc for building shared libraries.
13756 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13757
13758 # Whether or not to disallow shared libs when runtime libs are static
13759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13760
13761 # Whether or not to optimize for fast installation.
13762 fast_install=$enable_fast_install
13763
13764 # The host system.
13765 host_alias=$host_alias
13766 host=$host
13767 host_os=$host_os
13768
13769 # The build system.
13770 build_alias=$build_alias
13771 build=$build
13772 build_os=$build_os
13773
13774 # An echo program that does not interpret backslashes.
13775 echo=$lt_echo
13776
13777 # The archiver.
13778 AR=$lt_AR
13779 AR_FLAGS=$lt_AR_FLAGS
13780
13781 # A C compiler.
13782 LTCC=$lt_LTCC
13783
13784 # LTCC compiler flags.
13785 LTCFLAGS=$lt_LTCFLAGS
13786
13787 # A language-specific compiler.
13788 CC=$lt_compiler_CXX
13789
13790 # Is the compiler the GNU C compiler?
13791 with_gcc=$GCC_CXX
13792
13793 # An ERE matcher.
13794 EGREP=$lt_EGREP
13795
13796 # The linker used to build libraries.
13797 LD=$lt_LD_CXX
13798
13799 # Whether we need hard or soft links.
13800 LN_S=$lt_LN_S
13801
13802 # A BSD-compatible nm program.
13803 NM=$lt_NM
13804
13805 # A symbol stripping program
13806 STRIP=$lt_STRIP
13807
13808 # Used to examine libraries when file_magic_cmd begins "file"
13809 MAGIC_CMD=$MAGIC_CMD
13810
13811 # Used on cygwin: DLL creation program.
13812 DLLTOOL="$DLLTOOL"
13813
13814 # Used on cygwin: object dumper.
13815 OBJDUMP="$OBJDUMP"
13816
13817 # Used on cygwin: assembler.
13818 AS="$AS"
13819
13820 # The name of the directory that contains temporary libtool files.
13821 objdir=$objdir
13822
13823 # How to create reloadable object files.
13824 reload_flag=$lt_reload_flag
13825 reload_cmds=$lt_reload_cmds
13826
13827 # How to pass a linker flag through the compiler.
13828 wl=$lt_lt_prog_compiler_wl_CXX
13829
13830 # Object file suffix (normally "o").
13831 objext="$ac_objext"
13832
13833 # Old archive suffix (normally "a").
13834 libext="$libext"
13835
13836 # Shared library suffix (normally ".so").
13837 shrext_cmds='$shrext_cmds'
13838
13839 # Executable file suffix (normally "").
13840 exeext="$exeext"
13841
13842 # Additional compiler flags for building library objects.
13843 pic_flag=$lt_lt_prog_compiler_pic_CXX
13844 pic_mode=$pic_mode
13845
13846 # What is the maximum length of a command?
13847 max_cmd_len=$lt_cv_sys_max_cmd_len
13848
13849 # Does compiler simultaneously support -c and -o options?
13850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13851
13852 # Must we lock files when doing compilation?
13853 need_locks=$lt_need_locks
13854
13855 # Do we need the lib prefix for modules?
13856 need_lib_prefix=$need_lib_prefix
13857
13858 # Do we need a version for libraries?
13859 need_version=$need_version
13860
13861 # Whether dlopen is supported.
13862 dlopen_support=$enable_dlopen
13863
13864 # Whether dlopen of programs is supported.
13865 dlopen_self=$enable_dlopen_self
13866
13867 # Whether dlopen of statically linked programs is supported.
13868 dlopen_self_static=$enable_dlopen_self_static
13869
13870 # Compiler flag to prevent dynamic linking.
13871 link_static_flag=$lt_lt_prog_compiler_static_CXX
13872
13873 # Compiler flag to turn off builtin functions.
13874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13875
13876 # Compiler flag to allow reflexive dlopens.
13877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13878
13879 # Compiler flag to generate shared objects directly from archives.
13880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13881
13882 # Compiler flag to generate thread-safe objects.
13883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13884
13885 # Library versioning type.
13886 version_type=$version_type
13887
13888 # Format of library name prefix.
13889 libname_spec=$lt_libname_spec
13890
13891 # List of archive names.  First name is the real one, the rest are links.
13892 # The last name is the one that the linker finds with -lNAME.
13893 library_names_spec=$lt_library_names_spec
13894
13895 # The coded name of the library, if different from the real name.
13896 soname_spec=$lt_soname_spec
13897
13898 # Commands used to build and install an old-style archive.
13899 RANLIB=$lt_RANLIB
13900 old_archive_cmds=$lt_old_archive_cmds_CXX
13901 old_postinstall_cmds=$lt_old_postinstall_cmds
13902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13903
13904 # Create an old-style archive from a shared archive.
13905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13906
13907 # Create a temporary old-style archive to link instead of a shared archive.
13908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13909
13910 # Commands used to build and install a shared archive.
13911 archive_cmds=$lt_archive_cmds_CXX
13912 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13913 postinstall_cmds=$lt_postinstall_cmds
13914 postuninstall_cmds=$lt_postuninstall_cmds
13915
13916 # Commands used to build a loadable module (assumed same as above if empty)
13917 module_cmds=$lt_module_cmds_CXX
13918 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13919
13920 # Commands to strip libraries.
13921 old_striplib=$lt_old_striplib
13922 striplib=$lt_striplib
13923
13924 # Dependencies to place before the objects being linked to create a
13925 # shared library.
13926 predep_objects=$lt_predep_objects_CXX
13927
13928 # Dependencies to place after the objects being linked to create a
13929 # shared library.
13930 postdep_objects=$lt_postdep_objects_CXX
13931
13932 # Dependencies to place before the objects being linked to create a
13933 # shared library.
13934 predeps=$lt_predeps_CXX
13935
13936 # Dependencies to place after the objects being linked to create a
13937 # shared library.
13938 postdeps=$lt_postdeps_CXX
13939
13940 # The library search path used internally by the compiler when linking
13941 # a shared library.
13942 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13943
13944 # Method to check whether dependent libraries are shared objects.
13945 deplibs_check_method=$lt_deplibs_check_method
13946
13947 # Command to use when deplibs_check_method == file_magic.
13948 file_magic_cmd=$lt_file_magic_cmd
13949
13950 # Flag that allows shared libraries with undefined symbols to be built.
13951 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13952
13953 # Flag that forces no undefined symbols.
13954 no_undefined_flag=$lt_no_undefined_flag_CXX
13955
13956 # Commands used to finish a libtool library installation in a directory.
13957 finish_cmds=$lt_finish_cmds
13958
13959 # Same as above, but a single script fragment to be evaled but not shown.
13960 finish_eval=$lt_finish_eval
13961
13962 # Take the output of nm and produce a listing of raw symbols and C names.
13963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13964
13965 # Transform the output of nm in a proper C declaration
13966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13967
13968 # Transform the output of nm in a C name address pair
13969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13970
13971 # This is the shared library runtime path variable.
13972 runpath_var=$runpath_var
13973
13974 # This is the shared library path variable.
13975 shlibpath_var=$shlibpath_var
13976
13977 # Is shlibpath searched before the hard-coded library search path?
13978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13979
13980 # How to hardcode a shared library path into an executable.
13981 hardcode_action=$hardcode_action_CXX
13982
13983 # Whether we should hardcode library paths into libraries.
13984 hardcode_into_libs=$hardcode_into_libs
13985
13986 # Flag to hardcode \$libdir into a binary during linking.
13987 # This must work even if \$libdir does not exist.
13988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13989
13990 # If ld is used when linking, flag to hardcode \$libdir into
13991 # a binary during linking. This must work even if \$libdir does
13992 # not exist.
13993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13994
13995 # Whether we need a single -rpath flag with a separated argument.
13996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13997
13998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13999 # resulting binary.
14000 hardcode_direct=$hardcode_direct_CXX
14001
14002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14003 # resulting binary.
14004 hardcode_minus_L=$hardcode_minus_L_CXX
14005
14006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14007 # the resulting binary.
14008 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14009
14010 # Set to yes if building a shared library automatically hardcodes DIR into the library
14011 # and all subsequent libraries and executables linked against it.
14012 hardcode_automatic=$hardcode_automatic_CXX
14013
14014 # Variables whose values should be saved in libtool wrapper scripts and
14015 # restored at relink time.
14016 variables_saved_for_relink="$variables_saved_for_relink"
14017
14018 # Whether libtool must link a program against all its dependency libraries.
14019 link_all_deplibs=$link_all_deplibs_CXX
14020
14021 # Compile-time system search path for libraries
14022 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14023
14024 # Run-time system search path for libraries
14025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14026
14027 # Fix the shell variable \$srcfile for the compiler.
14028 fix_srcfile_path="$fix_srcfile_path_CXX"
14029
14030 # Set to yes if exported symbols are required.
14031 always_export_symbols=$always_export_symbols_CXX
14032
14033 # The commands to list exported symbols.
14034 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14035
14036 # The commands to extract the exported symbol list from a shared archive.
14037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14038
14039 # Symbols that should not be listed in the preloaded symbols.
14040 exclude_expsyms=$lt_exclude_expsyms_CXX
14041
14042 # Symbols that must always be exported.
14043 include_expsyms=$lt_include_expsyms_CXX
14044
14045 # ### END LIBTOOL TAG CONFIG: $tagname
14046
14047 __EOF__
14048
14049
14050 else
14051   # If there is no Makefile yet, we rely on a make rule to execute
14052   # `config.status --recheck' to rerun these tests and create the
14053   # libtool script then.
14054   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14055   if test -f "$ltmain_in"; then
14056     test -f Makefile && make "$ltmain"
14057   fi
14058 fi
14059
14060
14061 ac_ext=c
14062 ac_cpp='$CPP $CPPFLAGS'
14063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14066
14067 CC=$lt_save_CC
14068 LDCXX=$LD
14069 LD=$lt_save_LD
14070 GCC=$lt_save_GCC
14071 with_gnu_ldcxx=$with_gnu_ld
14072 with_gnu_ld=$lt_save_with_gnu_ld
14073 lt_cv_path_LDCXX=$lt_cv_path_LD
14074 lt_cv_path_LD=$lt_save_path_LD
14075 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14076 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14077
14078         else
14079           tagname=""
14080         fi
14081         ;;
14082
14083       F77)
14084         if test -n "$F77" && test "X$F77" != "Xno"; then
14085
14086 ac_ext=f
14087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14090
14091
14092 archive_cmds_need_lc_F77=no
14093 allow_undefined_flag_F77=
14094 always_export_symbols_F77=no
14095 archive_expsym_cmds_F77=
14096 export_dynamic_flag_spec_F77=
14097 hardcode_direct_F77=no
14098 hardcode_libdir_flag_spec_F77=
14099 hardcode_libdir_flag_spec_ld_F77=
14100 hardcode_libdir_separator_F77=
14101 hardcode_minus_L_F77=no
14102 hardcode_automatic_F77=no
14103 module_cmds_F77=
14104 module_expsym_cmds_F77=
14105 link_all_deplibs_F77=unknown
14106 old_archive_cmds_F77=$old_archive_cmds
14107 no_undefined_flag_F77=
14108 whole_archive_flag_spec_F77=
14109 enable_shared_with_static_runtimes_F77=no
14110
14111 # Source file extension for f77 test sources.
14112 ac_ext=f
14113
14114 # Object file extension for compiled f77 test sources.
14115 objext=o
14116 objext_F77=$objext
14117
14118 # Code to be used in simple compile tests
14119 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14120
14121 # Code to be used in simple link tests
14122 lt_simple_link_test_code="      program t\n      end\n"
14123
14124 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14125
14126 # If no C compiler was specified, use CC.
14127 LTCC=${LTCC-"$CC"}
14128
14129 # If no C compiler flags were specified, use CFLAGS.
14130 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14131
14132 # Allow CC to be a program name with arguments.
14133 compiler=$CC
14134
14135
14136 # save warnings/boilerplate of simple test code
14137 ac_outfile=conftest.$ac_objext
14138 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14140 _lt_compiler_boilerplate=`cat conftest.err`
14141 $rm conftest*
14142
14143 ac_outfile=conftest.$ac_objext
14144 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14146 _lt_linker_boilerplate=`cat conftest.err`
14147 $rm conftest*
14148
14149
14150 # Allow CC to be a program name with arguments.
14151 lt_save_CC="$CC"
14152 CC=${F77-"f77"}
14153 compiler=$CC
14154 compiler_F77=$CC
14155 for cc_temp in $compiler""; do
14156   case $cc_temp in
14157     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14158     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14159     \-*) ;;
14160     *) break;;
14161   esac
14162 done
14163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14164
14165
14166 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14167 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14168 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14169 echo "${ECHO_T}$can_build_shared" >&6; }
14170
14171 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14172 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14173 test "$can_build_shared" = "no" && enable_shared=no
14174
14175 # On AIX, shared libraries and static libraries use the same namespace, and
14176 # are all built from PIC.
14177 case $host_os in
14178 aix3*)
14179   test "$enable_shared" = yes && enable_static=no
14180   if test -n "$RANLIB"; then
14181     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14182     postinstall_cmds='$RANLIB $lib'
14183   fi
14184   ;;
14185 aix4* | aix5*)
14186   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14187     test "$enable_shared" = yes && enable_static=no
14188   fi
14189   ;;
14190 esac
14191 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14192 echo "${ECHO_T}$enable_shared" >&6; }
14193
14194 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14195 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14196 # Make sure either enable_shared or enable_static is yes.
14197 test "$enable_shared" = yes || enable_static=yes
14198 { echo "$as_me:$LINENO: result: $enable_static" >&5
14199 echo "${ECHO_T}$enable_static" >&6; }
14200
14201 GCC_F77="$G77"
14202 LD_F77="$LD"
14203
14204 lt_prog_compiler_wl_F77=
14205 lt_prog_compiler_pic_F77=
14206 lt_prog_compiler_static_F77=
14207
14208 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14209 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14210
14211   if test "$GCC" = yes; then
14212     lt_prog_compiler_wl_F77='-Wl,'
14213     lt_prog_compiler_static_F77='-static'
14214
14215     case $host_os in
14216       aix*)
14217       # All AIX code is PIC.
14218       if test "$host_cpu" = ia64; then
14219         # AIX 5 now supports IA64 processor
14220         lt_prog_compiler_static_F77='-Bstatic'
14221       fi
14222       ;;
14223
14224     amigaos*)
14225       # FIXME: we need at least 68020 code to build shared libraries, but
14226       # adding the `-m68020' flag to GCC prevents building anything better,
14227       # like `-m68040'.
14228       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14229       ;;
14230
14231     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14232       # PIC is the default for these OSes.
14233       ;;
14234
14235     mingw* | pw32* | os2*)
14236       # This hack is so that the source file can tell whether it is being
14237       # built for inclusion in a dll (and should export symbols for example).
14238       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14239       ;;
14240
14241     darwin* | rhapsody*)
14242       # PIC is the default on this platform
14243       # Common symbols not allowed in MH_DYLIB files
14244       lt_prog_compiler_pic_F77='-fno-common'
14245       ;;
14246
14247     interix3*)
14248       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14249       # Instead, we relocate shared libraries at runtime.
14250       ;;
14251
14252     msdosdjgpp*)
14253       # Just because we use GCC doesn't mean we suddenly get shared libraries
14254       # on systems that don't support them.
14255       lt_prog_compiler_can_build_shared_F77=no
14256       enable_shared=no
14257       ;;
14258
14259     sysv4*MP*)
14260       if test -d /usr/nec; then
14261         lt_prog_compiler_pic_F77=-Kconform_pic
14262       fi
14263       ;;
14264
14265     hpux*)
14266       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14267       # not for PA HP-UX.
14268       case $host_cpu in
14269       hppa*64*|ia64*)
14270         # +Z the default
14271         ;;
14272       *)
14273         lt_prog_compiler_pic_F77='-fPIC'
14274         ;;
14275       esac
14276       ;;
14277
14278     *)
14279       lt_prog_compiler_pic_F77='-fPIC'
14280       ;;
14281     esac
14282   else
14283     # PORTME Check for flag to pass linker flags through the system compiler.
14284     case $host_os in
14285     aix*)
14286       lt_prog_compiler_wl_F77='-Wl,'
14287       if test "$host_cpu" = ia64; then
14288         # AIX 5 now supports IA64 processor
14289         lt_prog_compiler_static_F77='-Bstatic'
14290       else
14291         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14292       fi
14293       ;;
14294       darwin*)
14295         # PIC is the default on this platform
14296         # Common symbols not allowed in MH_DYLIB files
14297        case $cc_basename in
14298          xlc*)
14299          lt_prog_compiler_pic_F77='-qnocommon'
14300          lt_prog_compiler_wl_F77='-Wl,'
14301          ;;
14302        esac
14303        ;;
14304
14305     mingw* | pw32* | os2*)
14306       # This hack is so that the source file can tell whether it is being
14307       # built for inclusion in a dll (and should export symbols for example).
14308       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14309       ;;
14310
14311     hpux9* | hpux10* | hpux11*)
14312       lt_prog_compiler_wl_F77='-Wl,'
14313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14314       # not for PA HP-UX.
14315       case $host_cpu in
14316       hppa*64*|ia64*)
14317         # +Z the default
14318         ;;
14319       *)
14320         lt_prog_compiler_pic_F77='+Z'
14321         ;;
14322       esac
14323       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14324       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14325       ;;
14326
14327     irix5* | irix6* | nonstopux*)
14328       lt_prog_compiler_wl_F77='-Wl,'
14329       # PIC (with -KPIC) is the default.
14330       lt_prog_compiler_static_F77='-non_shared'
14331       ;;
14332
14333     newsos6)
14334       lt_prog_compiler_pic_F77='-KPIC'
14335       lt_prog_compiler_static_F77='-Bstatic'
14336       ;;
14337
14338     linux* | k*bsd*-gnu)
14339       case $cc_basename in
14340       icc* | ecc*)
14341         lt_prog_compiler_wl_F77='-Wl,'
14342         lt_prog_compiler_pic_F77='-KPIC'
14343         lt_prog_compiler_static_F77='-static'
14344         ;;
14345       pgcc* | pgf77* | pgf90* | pgf95*)
14346         # Portland Group compilers (*not* the Pentium gcc compiler,
14347         # which looks to be a dead project)
14348         lt_prog_compiler_wl_F77='-Wl,'
14349         lt_prog_compiler_pic_F77='-fpic'
14350         lt_prog_compiler_static_F77='-Bstatic'
14351         ;;
14352       ccc*)
14353         lt_prog_compiler_wl_F77='-Wl,'
14354         # All Alpha code is PIC.
14355         lt_prog_compiler_static_F77='-non_shared'
14356         ;;
14357       esac
14358       ;;
14359
14360     osf3* | osf4* | osf5*)
14361       lt_prog_compiler_wl_F77='-Wl,'
14362       # All OSF/1 code is PIC.
14363       lt_prog_compiler_static_F77='-non_shared'
14364       ;;
14365
14366     solaris*)
14367       lt_prog_compiler_pic_F77='-KPIC'
14368       lt_prog_compiler_static_F77='-Bstatic'
14369       case $cc_basename in
14370       f77* | f90* | f95*)
14371         lt_prog_compiler_wl_F77='-Qoption ld ';;
14372       *)
14373         lt_prog_compiler_wl_F77='-Wl,';;
14374       esac
14375       ;;
14376
14377     sunos4*)
14378       lt_prog_compiler_wl_F77='-Qoption ld '
14379       lt_prog_compiler_pic_F77='-PIC'
14380       lt_prog_compiler_static_F77='-Bstatic'
14381       ;;
14382
14383     sysv4 | sysv4.2uw2* | sysv4.3*)
14384       lt_prog_compiler_wl_F77='-Wl,'
14385       lt_prog_compiler_pic_F77='-KPIC'
14386       lt_prog_compiler_static_F77='-Bstatic'
14387       ;;
14388
14389     sysv4*MP*)
14390       if test -d /usr/nec ;then
14391         lt_prog_compiler_pic_F77='-Kconform_pic'
14392         lt_prog_compiler_static_F77='-Bstatic'
14393       fi
14394       ;;
14395
14396     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397       lt_prog_compiler_wl_F77='-Wl,'
14398       lt_prog_compiler_pic_F77='-KPIC'
14399       lt_prog_compiler_static_F77='-Bstatic'
14400       ;;
14401
14402     unicos*)
14403       lt_prog_compiler_wl_F77='-Wl,'
14404       lt_prog_compiler_can_build_shared_F77=no
14405       ;;
14406
14407     uts4*)
14408       lt_prog_compiler_pic_F77='-pic'
14409       lt_prog_compiler_static_F77='-Bstatic'
14410       ;;
14411
14412     *)
14413       lt_prog_compiler_can_build_shared_F77=no
14414       ;;
14415     esac
14416   fi
14417
14418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14419 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14420
14421 #
14422 # Check to make sure the PIC flag actually works.
14423 #
14424 if test -n "$lt_prog_compiler_pic_F77"; then
14425
14426 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14427 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14428 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14429   echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431   lt_prog_compiler_pic_works_F77=no
14432   ac_outfile=conftest.$ac_objext
14433    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14434    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14435    # Insert the option either (1) after the last *FLAGS variable, or
14436    # (2) before a word containing "conftest.", or (3) at the end.
14437    # Note that $ac_compile itself does not contain backslashes and begins
14438    # with a dollar sign (not a hyphen), so the echo should work correctly.
14439    # The option is referenced via a variable to avoid confusing sed.
14440    lt_compile=`echo "$ac_compile" | $SED \
14441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443    -e 's:$: $lt_compiler_flag:'`
14444    (eval echo "\"\$as_me:14444: $lt_compile\"" >&5)
14445    (eval "$lt_compile" 2>conftest.err)
14446    ac_status=$?
14447    cat conftest.err >&5
14448    echo "$as_me:14448: \$? = $ac_status" >&5
14449    if (exit $ac_status) && test -s "$ac_outfile"; then
14450      # The compiler can only warn and ignore the option if not recognized
14451      # So say no if there are warnings other than the usual output.
14452      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14453      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14454      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14455        lt_prog_compiler_pic_works_F77=yes
14456      fi
14457    fi
14458    $rm conftest*
14459
14460 fi
14461 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14462 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14463
14464 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14465     case $lt_prog_compiler_pic_F77 in
14466      "" | " "*) ;;
14467      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14468      esac
14469 else
14470     lt_prog_compiler_pic_F77=
14471      lt_prog_compiler_can_build_shared_F77=no
14472 fi
14473
14474 fi
14475 case $host_os in
14476   # For platforms which do not support PIC, -DPIC is meaningless:
14477   *djgpp*)
14478     lt_prog_compiler_pic_F77=
14479     ;;
14480   *)
14481     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14482     ;;
14483 esac
14484
14485 #
14486 # Check to make sure the static flag actually works.
14487 #
14488 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14489 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14490 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14491 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   lt_prog_compiler_static_works_F77=no
14495    save_LDFLAGS="$LDFLAGS"
14496    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14497    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14498    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14499      # The linker can only warn and ignore the option if not recognized
14500      # So say no if there are warnings
14501      if test -s conftest.err; then
14502        # Append any errors to the config.log.
14503        cat conftest.err 1>&5
14504        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14505        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506        if diff conftest.exp conftest.er2 >/dev/null; then
14507          lt_prog_compiler_static_works_F77=yes
14508        fi
14509      else
14510        lt_prog_compiler_static_works_F77=yes
14511      fi
14512    fi
14513    $rm conftest*
14514    LDFLAGS="$save_LDFLAGS"
14515
14516 fi
14517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14518 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14519
14520 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14521     :
14522 else
14523     lt_prog_compiler_static_F77=
14524 fi
14525
14526
14527 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14529 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   lt_cv_prog_compiler_c_o_F77=no
14533    $rm -r conftest 2>/dev/null
14534    mkdir conftest
14535    cd conftest
14536    mkdir out
14537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14538
14539    lt_compiler_flag="-o out/conftest2.$ac_objext"
14540    # Insert the option either (1) after the last *FLAGS variable, or
14541    # (2) before a word containing "conftest.", or (3) at the end.
14542    # Note that $ac_compile itself does not contain backslashes and begins
14543    # with a dollar sign (not a hyphen), so the echo should work correctly.
14544    lt_compile=`echo "$ac_compile" | $SED \
14545    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14546    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14547    -e 's:$: $lt_compiler_flag:'`
14548    (eval echo "\"\$as_me:14548: $lt_compile\"" >&5)
14549    (eval "$lt_compile" 2>out/conftest.err)
14550    ac_status=$?
14551    cat out/conftest.err >&5
14552    echo "$as_me:14552: \$? = $ac_status" >&5
14553    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14554    then
14555      # The compiler can only warn and ignore the option if not recognized
14556      # So say no if there are warnings
14557      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14558      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14559      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14560        lt_cv_prog_compiler_c_o_F77=yes
14561      fi
14562    fi
14563    chmod u+w . 2>&5
14564    $rm conftest*
14565    # SGI C++ compiler will create directory out/ii_files/ for
14566    # template instantiation
14567    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14568    $rm out/* && rmdir out
14569    cd ..
14570    rmdir conftest
14571    $rm conftest*
14572
14573 fi
14574 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14576
14577
14578 hard_links="nottested"
14579 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14580   # do not overwrite the value of need_locks provided by the user
14581   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14583   hard_links=yes
14584   $rm conftest*
14585   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14586   touch conftest.a
14587   ln conftest.a conftest.b 2>&5 || hard_links=no
14588   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14589   { echo "$as_me:$LINENO: result: $hard_links" >&5
14590 echo "${ECHO_T}$hard_links" >&6; }
14591   if test "$hard_links" = no; then
14592     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14594     need_locks=warn
14595   fi
14596 else
14597   need_locks=no
14598 fi
14599
14600 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14602
14603   runpath_var=
14604   allow_undefined_flag_F77=
14605   enable_shared_with_static_runtimes_F77=no
14606   archive_cmds_F77=
14607   archive_expsym_cmds_F77=
14608   old_archive_From_new_cmds_F77=
14609   old_archive_from_expsyms_cmds_F77=
14610   export_dynamic_flag_spec_F77=
14611   whole_archive_flag_spec_F77=
14612   thread_safe_flag_spec_F77=
14613   hardcode_libdir_flag_spec_F77=
14614   hardcode_libdir_flag_spec_ld_F77=
14615   hardcode_libdir_separator_F77=
14616   hardcode_direct_F77=no
14617   hardcode_minus_L_F77=no
14618   hardcode_shlibpath_var_F77=unsupported
14619   link_all_deplibs_F77=unknown
14620   hardcode_automatic_F77=no
14621   module_cmds_F77=
14622   module_expsym_cmds_F77=
14623   always_export_symbols_F77=no
14624   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14625   # include_expsyms should be a list of space-separated symbols to be *always*
14626   # included in the symbol list
14627   include_expsyms_F77=
14628   # exclude_expsyms can be an extended regexp of symbols to exclude
14629   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14630   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14631   # as well as any symbol that contains `d'.
14632   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14633   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14634   # platforms (ab)use it in PIC code, but their linkers get confused if
14635   # the symbol is explicitly referenced.  Since portable code cannot
14636   # rely on this symbol name, it's probably fine to never include it in
14637   # preloaded symbol tables.
14638   extract_expsyms_cmds=
14639   # Just being paranoid about ensuring that cc_basename is set.
14640   for cc_temp in $compiler""; do
14641   case $cc_temp in
14642     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14643     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14644     \-*) ;;
14645     *) break;;
14646   esac
14647 done
14648 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14649
14650   case $host_os in
14651   cygwin* | mingw* | pw32*)
14652     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14653     # When not using gcc, we currently assume that we are using
14654     # Microsoft Visual C++.
14655     if test "$GCC" != yes; then
14656       with_gnu_ld=no
14657     fi
14658     ;;
14659   interix*)
14660     # we just hope/assume this is gcc and not c89 (= MSVC++)
14661     with_gnu_ld=yes
14662     ;;
14663   openbsd*)
14664     with_gnu_ld=no
14665     ;;
14666   esac
14667
14668   ld_shlibs_F77=yes
14669   if test "$with_gnu_ld" = yes; then
14670     # If archive_cmds runs LD, not CC, wlarc should be empty
14671     wlarc='${wl}'
14672
14673     # Set some defaults for GNU ld with shared library support. These
14674     # are reset later if shared libraries are not supported. Putting them
14675     # here allows them to be overridden if necessary.
14676     runpath_var=LD_RUN_PATH
14677     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14678     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14679     # ancient GNU ld didn't support --whole-archive et. al.
14680     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14681         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14682       else
14683         whole_archive_flag_spec_F77=
14684     fi
14685     supports_anon_versioning=no
14686     case `$LD -v 2>/dev/null` in
14687       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14688       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14689       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14690       *\ 2.11.*) ;; # other 2.11 versions
14691       *) supports_anon_versioning=yes ;;
14692     esac
14693
14694     # See if GNU ld supports shared libraries.
14695     case $host_os in
14696     aix3* | aix4* | aix5*)
14697       # On AIX/PPC, the GNU linker is very broken
14698       if test "$host_cpu" != ia64; then
14699         ld_shlibs_F77=no
14700         cat <<EOF 1>&2
14701
14702 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14703 *** to be unable to reliably create shared libraries on AIX.
14704 *** Therefore, libtool is disabling shared libraries support.  If you
14705 *** really care for shared libraries, you may want to modify your PATH
14706 *** so that a non-GNU linker is found, and then restart.
14707
14708 EOF
14709       fi
14710       ;;
14711
14712     amigaos*)
14713       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)'
14714       hardcode_libdir_flag_spec_F77='-L$libdir'
14715       hardcode_minus_L_F77=yes
14716
14717       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14718       # that the semantics of dynamic libraries on AmigaOS, at least up
14719       # to version 4, is to share data among multiple programs linked
14720       # with the same dynamic library.  Since this doesn't match the
14721       # behavior of shared libraries on other platforms, we can't use
14722       # them.
14723       ld_shlibs_F77=no
14724       ;;
14725
14726     beos*)
14727       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14728         allow_undefined_flag_F77=unsupported
14729         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14730         # support --undefined.  This deserves some investigation.  FIXME
14731         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732       else
14733         ld_shlibs_F77=no
14734       fi
14735       ;;
14736
14737     cygwin* | mingw* | pw32*)
14738       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14739       # as there is no search path for DLLs.
14740       hardcode_libdir_flag_spec_F77='-L$libdir'
14741       allow_undefined_flag_F77=unsupported
14742       always_export_symbols_F77=no
14743       enable_shared_with_static_runtimes_F77=yes
14744       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14745
14746       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14747         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14748         # If the export-symbols file already is a .def file (1st line
14749         # is EXPORTS), use it as is; otherwise, prepend...
14750         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14751           cp $export_symbols $output_objdir/$soname.def;
14752         else
14753           echo EXPORTS > $output_objdir/$soname.def;
14754           cat $export_symbols >> $output_objdir/$soname.def;
14755         fi~
14756         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14757       else
14758         ld_shlibs_F77=no
14759       fi
14760       ;;
14761
14762     interix3*)
14763       hardcode_direct_F77=no
14764       hardcode_shlibpath_var_F77=no
14765       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14766       export_dynamic_flag_spec_F77='${wl}-E'
14767       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14768       # Instead, shared libraries are loaded at an image base (0x10000000 by
14769       # default) and relocated if they conflict, which is a slow very memory
14770       # consuming and fragmenting process.  To avoid this, we pick a random,
14771       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14772       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14773       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'
14774       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'
14775       ;;
14776
14777     linux* | k*bsd*-gnu)
14778       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14779         tmp_addflag=
14780         case $cc_basename,$host_cpu in
14781         pgcc*)                          # Portland Group C compiler
14782           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'
14783           tmp_addflag=' $pic_flag'
14784           ;;
14785         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14786           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'
14787           tmp_addflag=' $pic_flag -Mnomain' ;;
14788         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14789           tmp_addflag=' -i_dynamic' ;;
14790         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14791           tmp_addflag=' -i_dynamic -nofor_main' ;;
14792         ifc* | ifort*)                  # Intel Fortran compiler
14793           tmp_addflag=' -nofor_main' ;;
14794         esac
14795         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796
14797         if test $supports_anon_versioning = yes; then
14798           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14799   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14800   $echo "local: *; };" >> $output_objdir/$libname.ver~
14801           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14802         fi
14803         link_all_deplibs_F77=no
14804       else
14805         ld_shlibs_F77=no
14806       fi
14807       ;;
14808
14809     netbsd* | netbsdelf*-gnu)
14810       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14811         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14812         wlarc=
14813       else
14814         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14816       fi
14817       ;;
14818
14819     solaris*)
14820       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14821         ld_shlibs_F77=no
14822         cat <<EOF 1>&2
14823
14824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14825 *** create shared libraries on Solaris systems.  Therefore, libtool
14826 *** is disabling shared libraries support.  We urge you to upgrade GNU
14827 *** binutils to release 2.9.1 or newer.  Another option is to modify
14828 *** your PATH or compiler configuration so that the native linker is
14829 *** used, and then restart.
14830
14831 EOF
14832       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14835       else
14836         ld_shlibs_F77=no
14837       fi
14838       ;;
14839
14840     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14841       case `$LD -v 2>&1` in
14842         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14843         ld_shlibs_F77=no
14844         cat <<_LT_EOF 1>&2
14845
14846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14847 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14848 *** is disabling shared libraries support.  We urge you to upgrade GNU
14849 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14850 *** your PATH or compiler configuration so that the native linker is
14851 *** used, and then restart.
14852
14853 _LT_EOF
14854         ;;
14855         *)
14856           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14857             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14858             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14859             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14860           else
14861             ld_shlibs_F77=no
14862           fi
14863         ;;
14864       esac
14865       ;;
14866
14867     sunos4*)
14868       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14869       wlarc=
14870       hardcode_direct_F77=yes
14871       hardcode_shlibpath_var_F77=no
14872       ;;
14873
14874     *)
14875       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14876         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14878       else
14879         ld_shlibs_F77=no
14880       fi
14881       ;;
14882     esac
14883
14884     if test "$ld_shlibs_F77" = no; then
14885       runpath_var=
14886       hardcode_libdir_flag_spec_F77=
14887       export_dynamic_flag_spec_F77=
14888       whole_archive_flag_spec_F77=
14889     fi
14890   else
14891     # PORTME fill in a description of your system's linker (not GNU ld)
14892     case $host_os in
14893     aix3*)
14894       allow_undefined_flag_F77=unsupported
14895       always_export_symbols_F77=yes
14896       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'
14897       # Note: this linker hardcodes the directories in LIBPATH if there
14898       # are no directories specified by -L.
14899       hardcode_minus_L_F77=yes
14900       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14901         # Neither direct hardcoding nor static linking is supported with a
14902         # broken collect2.
14903         hardcode_direct_F77=unsupported
14904       fi
14905       ;;
14906
14907     aix4* | aix5*)
14908       if test "$host_cpu" = ia64; then
14909         # On IA64, the linker does run time linking by default, so we don't
14910         # have to do anything special.
14911         aix_use_runtimelinking=no
14912         exp_sym_flag='-Bexport'
14913         no_entry_flag=""
14914       else
14915         # If we're using GNU nm, then we don't want the "-C" option.
14916         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14917         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14918           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'
14919         else
14920           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'
14921         fi
14922         aix_use_runtimelinking=no
14923
14924         # Test if we are trying to use run time linking or normal
14925         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14926         # need to do runtime linking.
14927         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14928           for ld_flag in $LDFLAGS; do
14929           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14930             aix_use_runtimelinking=yes
14931             break
14932           fi
14933           done
14934           ;;
14935         esac
14936
14937         exp_sym_flag='-bexport'
14938         no_entry_flag='-bnoentry'
14939       fi
14940
14941       # When large executables or shared objects are built, AIX ld can
14942       # have problems creating the table of contents.  If linking a library
14943       # or program results in "error TOC overflow" add -mminimal-toc to
14944       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14945       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14946
14947       archive_cmds_F77=''
14948       hardcode_direct_F77=yes
14949       hardcode_libdir_separator_F77=':'
14950       link_all_deplibs_F77=yes
14951
14952       if test "$GCC" = yes; then
14953         case $host_os in aix4.[012]|aix4.[012].*)
14954         # We only want to do this on AIX 4.2 and lower, the check
14955         # below for broken collect2 doesn't work under 4.3+
14956           collect2name=`${CC} -print-prog-name=collect2`
14957           if test -f "$collect2name" && \
14958            strings "$collect2name" | grep resolve_lib_name >/dev/null
14959           then
14960           # We have reworked collect2
14961           hardcode_direct_F77=yes
14962           else
14963           # We have old collect2
14964           hardcode_direct_F77=unsupported
14965           # It fails to find uninstalled libraries when the uninstalled
14966           # path is not listed in the libpath.  Setting hardcode_minus_L
14967           # to unsupported forces relinking
14968           hardcode_minus_L_F77=yes
14969           hardcode_libdir_flag_spec_F77='-L$libdir'
14970           hardcode_libdir_separator_F77=
14971           fi
14972           ;;
14973         esac
14974         shared_flag='-shared'
14975         if test "$aix_use_runtimelinking" = yes; then
14976           shared_flag="$shared_flag "'${wl}-G'
14977         fi
14978       else
14979         # not using gcc
14980         if test "$host_cpu" = ia64; then
14981         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14982         # chokes on -Wl,-G. The following line is correct:
14983           shared_flag='-G'
14984         else
14985           if test "$aix_use_runtimelinking" = yes; then
14986             shared_flag='${wl}-G'
14987           else
14988             shared_flag='${wl}-bM:SRE'
14989           fi
14990         fi
14991       fi
14992
14993       # It seems that -bexpall does not export symbols beginning with
14994       # underscore (_), so it is better to generate a list of symbols to export.
14995       always_export_symbols_F77=yes
14996       if test "$aix_use_runtimelinking" = yes; then
14997         # Warning - without using the other runtime loading flags (-brtl),
14998         # -berok will link without error, but may produce a broken library.
14999         allow_undefined_flag_F77='-berok'
15000        # Determine the default libpath from the value encoded in an empty executable.
15001        cat >conftest.$ac_ext <<_ACEOF
15002       program main
15003
15004       end
15005 _ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_link") 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15021   { (case "(($ac_try" in
15022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023   *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026   (eval "$ac_try") 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; } &&
15030          { ac_try='test -s conftest$ac_exeext'
15031   { (case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_try") 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; }; then
15040
15041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15042 }'`
15043 # Check for a 64-bit object if we didn't find anything.
15044 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; }
15045 }'`; fi
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050
15051 fi
15052
15053 rm -f core conftest.err conftest.$ac_objext \
15054       conftest$ac_exeext conftest.$ac_ext
15055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15056
15057        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15058         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"
15059        else
15060         if test "$host_cpu" = ia64; then
15061           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15062           allow_undefined_flag_F77="-z nodefs"
15063           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"
15064         else
15065          # Determine the default libpath from the value encoded in an empty executable.
15066          cat >conftest.$ac_ext <<_ACEOF
15067       program main
15068
15069       end
15070 _ACEOF
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (ac_try="$ac_link"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_link") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15086   { (case "(($ac_try" in
15087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088   *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091   (eval "$ac_try") 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; } &&
15095          { ac_try='test -s conftest$ac_exeext'
15096   { (case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101   (eval "$ac_try") 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105
15106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15107 }'`
15108 # Check for a 64-bit object if we didn't find anything.
15109 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; }
15110 }'`; fi
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext \
15119       conftest$ac_exeext conftest.$ac_ext
15120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15121
15122          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15123           # Warning - without using the other run time loading flags,
15124           # -berok will link without error, but may produce a broken library.
15125           no_undefined_flag_F77=' ${wl}-bernotok'
15126           allow_undefined_flag_F77=' ${wl}-berok'
15127           # Exported symbols can be pulled into shared objects from archives
15128           whole_archive_flag_spec_F77='$convenience'
15129           archive_cmds_need_lc_F77=yes
15130           # This is similar to how AIX traditionally builds its shared libraries.
15131           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'
15132         fi
15133       fi
15134       ;;
15135
15136     amigaos*)
15137       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)'
15138       hardcode_libdir_flag_spec_F77='-L$libdir'
15139       hardcode_minus_L_F77=yes
15140       # see comment about different semantics on the GNU ld section
15141       ld_shlibs_F77=no
15142       ;;
15143
15144     bsdi[45]*)
15145       export_dynamic_flag_spec_F77=-rdynamic
15146       ;;
15147
15148     cygwin* | mingw* | pw32*)
15149       # When not using gcc, we currently assume that we are using
15150       # Microsoft Visual C++.
15151       # hardcode_libdir_flag_spec is actually meaningless, as there is
15152       # no search path for DLLs.
15153       hardcode_libdir_flag_spec_F77=' '
15154       allow_undefined_flag_F77=unsupported
15155       # Tell ltmain to make .lib files, not .a files.
15156       libext=lib
15157       # Tell ltmain to make .dll files, not .so files.
15158       shrext_cmds=".dll"
15159       # FIXME: Setting linknames here is a bad hack.
15160       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15161       # The linker will automatically build a .lib file if we build a DLL.
15162       old_archive_From_new_cmds_F77='true'
15163       # FIXME: Should let the user specify the lib program.
15164       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15165       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15166       enable_shared_with_static_runtimes_F77=yes
15167       ;;
15168
15169     darwin* | rhapsody*)
15170       case $host_os in
15171         rhapsody* | darwin1.[012])
15172          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15173          ;;
15174        *) # Darwin 1.3 on
15175          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15176            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15177          else
15178            case ${MACOSX_DEPLOYMENT_TARGET} in
15179              10.[012])
15180                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15181                ;;
15182              10.*)
15183                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15184                ;;
15185            esac
15186          fi
15187          ;;
15188       esac
15189       archive_cmds_need_lc_F77=no
15190       hardcode_direct_F77=no
15191       hardcode_automatic_F77=yes
15192       hardcode_shlibpath_var_F77=unsupported
15193       whole_archive_flag_spec_F77=''
15194       link_all_deplibs_F77=yes
15195     if test "$GCC" = yes ; then
15196         output_verbose_link_cmd='echo'
15197         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15198       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15199       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15200       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}'
15201       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}'
15202     else
15203       case $cc_basename in
15204         xlc*)
15205          output_verbose_link_cmd='echo'
15206          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15207          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15208           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15209          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}'
15210           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}'
15211           ;;
15212        *)
15213          ld_shlibs_F77=no
15214           ;;
15215       esac
15216     fi
15217       ;;
15218
15219     dgux*)
15220       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15221       hardcode_libdir_flag_spec_F77='-L$libdir'
15222       hardcode_shlibpath_var_F77=no
15223       ;;
15224
15225     freebsd1*)
15226       ld_shlibs_F77=no
15227       ;;
15228
15229     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15230     # support.  Future versions do this automatically, but an explicit c++rt0.o
15231     # does not break anything, and helps significantly (at the cost of a little
15232     # extra space).
15233     freebsd2.2*)
15234       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15235       hardcode_libdir_flag_spec_F77='-R$libdir'
15236       hardcode_direct_F77=yes
15237       hardcode_shlibpath_var_F77=no
15238       ;;
15239
15240     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15241     freebsd2*)
15242       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15243       hardcode_direct_F77=yes
15244       hardcode_minus_L_F77=yes
15245       hardcode_shlibpath_var_F77=no
15246       ;;
15247
15248     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15249     freebsd* | dragonfly*)
15250       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15251       hardcode_libdir_flag_spec_F77='-R$libdir'
15252       hardcode_direct_F77=yes
15253       hardcode_shlibpath_var_F77=no
15254       ;;
15255
15256     hpux9*)
15257       if test "$GCC" = yes; then
15258         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'
15259       else
15260         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'
15261       fi
15262       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15263       hardcode_libdir_separator_F77=:
15264       hardcode_direct_F77=yes
15265
15266       # hardcode_minus_L: Not really in the search PATH,
15267       # but as the default location of the library.
15268       hardcode_minus_L_F77=yes
15269       export_dynamic_flag_spec_F77='${wl}-E'
15270       ;;
15271
15272     hpux10*)
15273       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15274         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15275       else
15276         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15277       fi
15278       if test "$with_gnu_ld" = no; then
15279         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15280         hardcode_libdir_separator_F77=:
15281
15282         hardcode_direct_F77=yes
15283         export_dynamic_flag_spec_F77='${wl}-E'
15284
15285         # hardcode_minus_L: Not really in the search PATH,
15286         # but as the default location of the library.
15287         hardcode_minus_L_F77=yes
15288       fi
15289       ;;
15290
15291     hpux11*)
15292       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15293         case $host_cpu in
15294         hppa*64*)
15295           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15296           ;;
15297         ia64*)
15298           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15299           ;;
15300         *)
15301           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15302           ;;
15303         esac
15304       else
15305         case $host_cpu in
15306         hppa*64*)
15307           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15308           ;;
15309         ia64*)
15310           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15311           ;;
15312         *)
15313           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15314           ;;
15315         esac
15316       fi
15317       if test "$with_gnu_ld" = no; then
15318         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15319         hardcode_libdir_separator_F77=:
15320
15321         case $host_cpu in
15322         hppa*64*|ia64*)
15323           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15324           hardcode_direct_F77=no
15325           hardcode_shlibpath_var_F77=no
15326           ;;
15327         *)
15328           hardcode_direct_F77=yes
15329           export_dynamic_flag_spec_F77='${wl}-E'
15330
15331           # hardcode_minus_L: Not really in the search PATH,
15332           # but as the default location of the library.
15333           hardcode_minus_L_F77=yes
15334           ;;
15335         esac
15336       fi
15337       ;;
15338
15339     irix5* | irix6* | nonstopux*)
15340       if test "$GCC" = yes; then
15341         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'
15342       else
15343         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'
15344         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15345       fi
15346       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15347       hardcode_libdir_separator_F77=:
15348       link_all_deplibs_F77=yes
15349       ;;
15350
15351     netbsd* | netbsdelf*-gnu)
15352       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15353         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15354       else
15355         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15356       fi
15357       hardcode_libdir_flag_spec_F77='-R$libdir'
15358       hardcode_direct_F77=yes
15359       hardcode_shlibpath_var_F77=no
15360       ;;
15361
15362     newsos6)
15363       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15364       hardcode_direct_F77=yes
15365       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366       hardcode_libdir_separator_F77=:
15367       hardcode_shlibpath_var_F77=no
15368       ;;
15369
15370     openbsd*)
15371       hardcode_direct_F77=yes
15372       hardcode_shlibpath_var_F77=no
15373       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15374         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15375         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15376         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15377         export_dynamic_flag_spec_F77='${wl}-E'
15378       else
15379        case $host_os in
15380          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15381            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15382            hardcode_libdir_flag_spec_F77='-R$libdir'
15383            ;;
15384          *)
15385            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15386            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15387            ;;
15388        esac
15389       fi
15390       ;;
15391
15392     os2*)
15393       hardcode_libdir_flag_spec_F77='-L$libdir'
15394       hardcode_minus_L_F77=yes
15395       allow_undefined_flag_F77=unsupported
15396       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'
15397       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15398       ;;
15399
15400     osf3*)
15401       if test "$GCC" = yes; then
15402         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15403         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'
15404       else
15405         allow_undefined_flag_F77=' -expect_unresolved \*'
15406         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'
15407       fi
15408       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409       hardcode_libdir_separator_F77=:
15410       ;;
15411
15412     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15413       if test "$GCC" = yes; then
15414         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15415         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'
15416         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15417       else
15418         allow_undefined_flag_F77=' -expect_unresolved \*'
15419         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'
15420         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~
15421         $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'
15422
15423         # Both c and cxx compiler support -rpath directly
15424         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15425       fi
15426       hardcode_libdir_separator_F77=:
15427       ;;
15428
15429     solaris*)
15430       no_undefined_flag_F77=' -z text'
15431       if test "$GCC" = yes; then
15432         wlarc='${wl}'
15433         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15435           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15436       else
15437         wlarc=''
15438         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15440         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15441       fi
15442       hardcode_libdir_flag_spec_F77='-R$libdir'
15443       hardcode_shlibpath_var_F77=no
15444       case $host_os in
15445       solaris2.[0-5] | solaris2.[0-5].*) ;;
15446       *)
15447         # The compiler driver will combine linker options so we
15448         # cannot just pass the convience library names through
15449         # without $wl, iff we do not link with $LD.
15450         # Luckily, gcc supports the same syntax we need for Sun Studio.
15451         # Supported since Solaris 2.6 (maybe 2.5.1?)
15452         case $wlarc in
15453         '')
15454           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15455         *)
15456           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' ;;
15457         esac ;;
15458       esac
15459       link_all_deplibs_F77=yes
15460       ;;
15461
15462     sunos4*)
15463       if test "x$host_vendor" = xsequent; then
15464         # Use $CC to link under sequent, because it throws in some extra .o
15465         # files that make .init and .fini sections work.
15466         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15467       else
15468         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15469       fi
15470       hardcode_libdir_flag_spec_F77='-L$libdir'
15471       hardcode_direct_F77=yes
15472       hardcode_minus_L_F77=yes
15473       hardcode_shlibpath_var_F77=no
15474       ;;
15475
15476     sysv4)
15477       case $host_vendor in
15478         sni)
15479           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480           hardcode_direct_F77=yes # is this really true???
15481         ;;
15482         siemens)
15483           ## LD is ld it makes a PLAMLIB
15484           ## CC just makes a GrossModule.
15485           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15486           reload_cmds_F77='$CC -r -o $output$reload_objs'
15487           hardcode_direct_F77=no
15488         ;;
15489         motorola)
15490           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15492         ;;
15493       esac
15494       runpath_var='LD_RUN_PATH'
15495       hardcode_shlibpath_var_F77=no
15496       ;;
15497
15498     sysv4.3*)
15499       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500       hardcode_shlibpath_var_F77=no
15501       export_dynamic_flag_spec_F77='-Bexport'
15502       ;;
15503
15504     sysv4*MP*)
15505       if test -d /usr/nec; then
15506         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507         hardcode_shlibpath_var_F77=no
15508         runpath_var=LD_RUN_PATH
15509         hardcode_runpath_var=yes
15510         ld_shlibs_F77=yes
15511       fi
15512       ;;
15513
15514     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15515       no_undefined_flag_F77='${wl}-z,text'
15516       archive_cmds_need_lc_F77=no
15517       hardcode_shlibpath_var_F77=no
15518       runpath_var='LD_RUN_PATH'
15519
15520       if test "$GCC" = yes; then
15521         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15522         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15523       else
15524         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15525         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15526       fi
15527       ;;
15528
15529     sysv5* | sco3.2v5* | sco5v6*)
15530       # Note: We can NOT use -z defs as we might desire, because we do not
15531       # link with -lc, and that would cause any symbols used from libc to
15532       # always be unresolved, which means just about no library would
15533       # ever link correctly.  If we're not using GNU ld we use -z text
15534       # though, which does catch some bad symbols but isn't as heavy-handed
15535       # as -z defs.
15536       no_undefined_flag_F77='${wl}-z,text'
15537       allow_undefined_flag_F77='${wl}-z,nodefs'
15538       archive_cmds_need_lc_F77=no
15539       hardcode_shlibpath_var_F77=no
15540       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15541       hardcode_libdir_separator_F77=':'
15542       link_all_deplibs_F77=yes
15543       export_dynamic_flag_spec_F77='${wl}-Bexport'
15544       runpath_var='LD_RUN_PATH'
15545
15546       if test "$GCC" = yes; then
15547         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549       else
15550         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15551         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15552       fi
15553       ;;
15554
15555     uts4*)
15556       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557       hardcode_libdir_flag_spec_F77='-L$libdir'
15558       hardcode_shlibpath_var_F77=no
15559       ;;
15560
15561     *)
15562       ld_shlibs_F77=no
15563       ;;
15564     esac
15565   fi
15566
15567 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15568 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15569 test "$ld_shlibs_F77" = no && can_build_shared=no
15570
15571 #
15572 # Do we need to explicitly link libc?
15573 #
15574 case "x$archive_cmds_need_lc_F77" in
15575 x|xyes)
15576   # Assume -lc should be added
15577   archive_cmds_need_lc_F77=yes
15578
15579   if test "$enable_shared" = yes && test "$GCC" = yes; then
15580     case $archive_cmds_F77 in
15581     *'~'*)
15582       # FIXME: we may have to deal with multi-command sequences.
15583       ;;
15584     '$CC '*)
15585       # Test whether the compiler implicitly links with -lc since on some
15586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15587       # to ld, don't add -lc before -lgcc.
15588       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15590       $rm conftest*
15591       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15592
15593       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594   (eval $ac_compile) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } 2>conftest.err; then
15598         soname=conftest
15599         lib=conftest
15600         libobjs=conftest.$ac_objext
15601         deplibs=
15602         wl=$lt_prog_compiler_wl_F77
15603         pic_flag=$lt_prog_compiler_pic_F77
15604         compiler_flags=-v
15605         linker_flags=-v
15606         verstring=
15607         output_objdir=.
15608         libname=conftest
15609         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15610         allow_undefined_flag_F77=
15611         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15612   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }
15616         then
15617           archive_cmds_need_lc_F77=no
15618         else
15619           archive_cmds_need_lc_F77=yes
15620         fi
15621         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15622       else
15623         cat conftest.err 1>&5
15624       fi
15625       $rm conftest*
15626       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15627 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15628       ;;
15629     esac
15630   fi
15631   ;;
15632 esac
15633
15634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15636 library_names_spec=
15637 libname_spec='lib$name'
15638 soname_spec=
15639 shrext_cmds=".so"
15640 postinstall_cmds=
15641 postuninstall_cmds=
15642 finish_cmds=
15643 finish_eval=
15644 shlibpath_var=
15645 shlibpath_overrides_runpath=unknown
15646 version_type=none
15647 dynamic_linker="$host_os ld.so"
15648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15649 if test "$GCC" = yes; then
15650   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15651   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15652     # if the path contains ";" then we assume it to be the separator
15653     # otherwise default to the standard path separator (i.e. ":") - it is
15654     # assumed that no part of a normal pathname contains ";" but that should
15655     # okay in the real world where ";" in dirpaths is itself problematic.
15656     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15657   else
15658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15659   fi
15660 else
15661   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15662 fi
15663 need_lib_prefix=unknown
15664 hardcode_into_libs=no
15665
15666 # when you set need_version to no, make sure it does not cause -set_version
15667 # flags to be left without arguments
15668 need_version=unknown
15669
15670 case $host_os in
15671 aix3*)
15672   version_type=linux
15673   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15674   shlibpath_var=LIBPATH
15675
15676   # AIX 3 has no versioning support, so we append a major version to the name.
15677   soname_spec='${libname}${release}${shared_ext}$major'
15678   ;;
15679
15680 aix4* | aix5*)
15681   version_type=linux
15682   need_lib_prefix=no
15683   need_version=no
15684   hardcode_into_libs=yes
15685   if test "$host_cpu" = ia64; then
15686     # AIX 5 supports IA64
15687     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15688     shlibpath_var=LD_LIBRARY_PATH
15689   else
15690     # With GCC up to 2.95.x, collect2 would create an import file
15691     # for dependence libraries.  The import file would start with
15692     # the line `#! .'.  This would cause the generated library to
15693     # depend on `.', always an invalid library.  This was fixed in
15694     # development snapshots of GCC prior to 3.0.
15695     case $host_os in
15696       aix4 | aix4.[01] | aix4.[01].*)
15697       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15698            echo ' yes '
15699            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15700         :
15701       else
15702         can_build_shared=no
15703       fi
15704       ;;
15705     esac
15706     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15707     # soname into executable. Probably we can add versioning support to
15708     # collect2, so additional links can be useful in future.
15709     if test "$aix_use_runtimelinking" = yes; then
15710       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15711       # instead of lib<name>.a to let people know that these are not
15712       # typical AIX shared libraries.
15713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714     else
15715       # We preserve .a as extension for shared libraries through AIX4.2
15716       # and later when we are not doing run time linking.
15717       library_names_spec='${libname}${release}.a $libname.a'
15718       soname_spec='${libname}${release}${shared_ext}$major'
15719     fi
15720     shlibpath_var=LIBPATH
15721   fi
15722   ;;
15723
15724 amigaos*)
15725   library_names_spec='$libname.ixlibrary $libname.a'
15726   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15727   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'
15728   ;;
15729
15730 beos*)
15731   library_names_spec='${libname}${shared_ext}'
15732   dynamic_linker="$host_os ld.so"
15733   shlibpath_var=LIBRARY_PATH
15734   ;;
15735
15736 bsdi[45]*)
15737   version_type=linux
15738   need_version=no
15739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15740   soname_spec='${libname}${release}${shared_ext}$major'
15741   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15742   shlibpath_var=LD_LIBRARY_PATH
15743   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15744   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15745   # the default ld.so.conf also contains /usr/contrib/lib and
15746   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15747   # libtool to hard-code these into programs
15748   ;;
15749
15750 cygwin* | mingw* | pw32*)
15751   version_type=windows
15752   shrext_cmds=".dll"
15753   need_version=no
15754   need_lib_prefix=no
15755
15756   case $GCC,$host_os in
15757   yes,cygwin* | yes,mingw* | yes,pw32*)
15758     library_names_spec='$libname.dll.a'
15759     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15760     postinstall_cmds='base_file=`basename \${file}`~
15761       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15762       dldir=$destdir/`dirname \$dlpath`~
15763       test -d \$dldir || mkdir -p \$dldir~
15764       $install_prog $dir/$dlname \$dldir/$dlname~
15765       chmod a+x \$dldir/$dlname'
15766     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15767       dlpath=$dir/\$dldll~
15768        $rm \$dlpath'
15769     shlibpath_overrides_runpath=yes
15770
15771     case $host_os in
15772     cygwin*)
15773       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15774       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15775       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15776       ;;
15777     mingw*)
15778       # MinGW DLLs use traditional 'lib' prefix
15779       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15780       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15781       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15782         # It is most probably a Windows format PATH printed by
15783         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15784         # path with ; separators, and with drive letters. We can handle the
15785         # drive letters (cygwin fileutils understands them), so leave them,
15786         # especially as we might pass files found there to a mingw objdump,
15787         # which wouldn't understand a cygwinified path. Ahh.
15788         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15789       else
15790         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15791       fi
15792       ;;
15793     pw32*)
15794       # pw32 DLLs use 'pw' prefix rather than 'lib'
15795       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15796       ;;
15797     esac
15798     ;;
15799
15800   *)
15801     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15802     ;;
15803   esac
15804   dynamic_linker='Win32 ld.exe'
15805   # FIXME: first we should search . and the directory the executable is in
15806   shlibpath_var=PATH
15807   ;;
15808
15809 darwin* | rhapsody*)
15810   dynamic_linker="$host_os dyld"
15811   version_type=darwin
15812   need_lib_prefix=no
15813   need_version=no
15814   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15815   soname_spec='${libname}${release}${major}$shared_ext'
15816   shlibpath_overrides_runpath=yes
15817   shlibpath_var=DYLD_LIBRARY_PATH
15818   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15819   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15820   if test "$GCC" = yes; then
15821     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"`
15822   else
15823     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15824   fi
15825   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15826   ;;
15827
15828 dgux*)
15829   version_type=linux
15830   need_lib_prefix=no
15831   need_version=no
15832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15833   soname_spec='${libname}${release}${shared_ext}$major'
15834   shlibpath_var=LD_LIBRARY_PATH
15835   ;;
15836
15837 freebsd1*)
15838   dynamic_linker=no
15839   ;;
15840
15841 freebsd* | dragonfly*)
15842   # DragonFly does not have aout.  When/if they implement a new
15843   # versioning mechanism, adjust this.
15844   if test -x /usr/bin/objformat; then
15845     objformat=`/usr/bin/objformat`
15846   else
15847     case $host_os in
15848     freebsd[123]*) objformat=aout ;;
15849     *) objformat=elf ;;
15850     esac
15851   fi
15852   version_type=freebsd-$objformat
15853   case $version_type in
15854     freebsd-elf*)
15855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15856       need_version=no
15857       need_lib_prefix=no
15858       ;;
15859     freebsd-*)
15860       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15861       need_version=yes
15862       ;;
15863   esac
15864   shlibpath_var=LD_LIBRARY_PATH
15865   case $host_os in
15866   freebsd2*)
15867     shlibpath_overrides_runpath=yes
15868     ;;
15869   freebsd3.[01]* | freebsdelf3.[01]*)
15870     shlibpath_overrides_runpath=yes
15871     hardcode_into_libs=yes
15872     ;;
15873   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15874   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15875     shlibpath_overrides_runpath=no
15876     hardcode_into_libs=yes
15877     ;;
15878   freebsd*) # from 4.6 on
15879     shlibpath_overrides_runpath=yes
15880     hardcode_into_libs=yes
15881     ;;
15882   esac
15883   ;;
15884
15885 gnu*)
15886   version_type=linux
15887   need_lib_prefix=no
15888   need_version=no
15889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15890   soname_spec='${libname}${release}${shared_ext}$major'
15891   shlibpath_var=LD_LIBRARY_PATH
15892   hardcode_into_libs=yes
15893   ;;
15894
15895 hpux9* | hpux10* | hpux11*)
15896   # Give a soname corresponding to the major version so that dld.sl refuses to
15897   # link against other versions.
15898   version_type=sunos
15899   need_lib_prefix=no
15900   need_version=no
15901   case $host_cpu in
15902   ia64*)
15903     shrext_cmds='.so'
15904     hardcode_into_libs=yes
15905     dynamic_linker="$host_os dld.so"
15906     shlibpath_var=LD_LIBRARY_PATH
15907     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909     soname_spec='${libname}${release}${shared_ext}$major'
15910     if test "X$HPUX_IA64_MODE" = X32; then
15911       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15912     else
15913       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15914     fi
15915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916     ;;
15917    hppa*64*)
15918      shrext_cmds='.sl'
15919      hardcode_into_libs=yes
15920      dynamic_linker="$host_os dld.sl"
15921      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15922      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15923      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924      soname_spec='${libname}${release}${shared_ext}$major'
15925      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15926      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15927      ;;
15928    *)
15929     shrext_cmds='.sl'
15930     dynamic_linker="$host_os dld.sl"
15931     shlibpath_var=SHLIB_PATH
15932     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934     soname_spec='${libname}${release}${shared_ext}$major'
15935     ;;
15936   esac
15937   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15938   postinstall_cmds='chmod 555 $lib'
15939   ;;
15940
15941 interix3*)
15942   version_type=linux
15943   need_lib_prefix=no
15944   need_version=no
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15946   soname_spec='${libname}${release}${shared_ext}$major'
15947   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15948   shlibpath_var=LD_LIBRARY_PATH
15949   shlibpath_overrides_runpath=no
15950   hardcode_into_libs=yes
15951   ;;
15952
15953 irix5* | irix6* | nonstopux*)
15954   case $host_os in
15955     nonstopux*) version_type=nonstopux ;;
15956     *)
15957         if test "$lt_cv_prog_gnu_ld" = yes; then
15958                 version_type=linux
15959         else
15960                 version_type=irix
15961         fi ;;
15962   esac
15963   need_lib_prefix=no
15964   need_version=no
15965   soname_spec='${libname}${release}${shared_ext}$major'
15966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15967   case $host_os in
15968   irix5* | nonstopux*)
15969     libsuff= shlibsuff=
15970     ;;
15971   *)
15972     case $LD in # libtool.m4 will add one of these switches to LD
15973     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15974       libsuff= shlibsuff= libmagic=32-bit;;
15975     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15976       libsuff=32 shlibsuff=N32 libmagic=N32;;
15977     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15978       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15979     *) libsuff= shlibsuff= libmagic=never-match;;
15980     esac
15981     ;;
15982   esac
15983   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15984   shlibpath_overrides_runpath=no
15985   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15986   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15987   hardcode_into_libs=yes
15988   ;;
15989
15990 # No shared lib support for Linux oldld, aout, or coff.
15991 linux*oldld* | linux*aout* | linux*coff*)
15992   dynamic_linker=no
15993   ;;
15994
15995 # This must be Linux ELF.
15996 linux* | k*bsd*-gnu)
15997   version_type=linux
15998   need_lib_prefix=no
15999   need_version=no
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16003   shlibpath_var=LD_LIBRARY_PATH
16004   shlibpath_overrides_runpath=no
16005   # This implies no fast_install, which is unacceptable.
16006   # Some rework will be needed to allow for fast_install
16007   # before this can be enabled.
16008   hardcode_into_libs=yes
16009
16010   # Append ld.so.conf contents to the search path
16011   if test -f /etc/ld.so.conf; then
16012     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' ' '`
16013     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16014   fi
16015
16016   # We used to test for /lib/ld.so.1 and disable shared libraries on
16017   # powerpc, because MkLinux only supported shared libraries with the
16018   # GNU dynamic linker.  Since this was broken with cross compilers,
16019   # most powerpc-linux boxes support dynamic linking these days and
16020   # people can always --disable-shared, the test was removed, and we
16021   # assume the GNU/Linux dynamic linker is in use.
16022   dynamic_linker='GNU/Linux ld.so'
16023   ;;
16024
16025 netbsdelf*-gnu)
16026   version_type=linux
16027   need_lib_prefix=no
16028   need_version=no
16029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16030   soname_spec='${libname}${release}${shared_ext}$major'
16031   shlibpath_var=LD_LIBRARY_PATH
16032   shlibpath_overrides_runpath=no
16033   hardcode_into_libs=yes
16034   dynamic_linker='NetBSD ld.elf_so'
16035   ;;
16036
16037 netbsd*)
16038   version_type=sunos
16039   need_lib_prefix=no
16040   need_version=no
16041   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16043     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16044     dynamic_linker='NetBSD (a.out) ld.so'
16045   else
16046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16047     soname_spec='${libname}${release}${shared_ext}$major'
16048     dynamic_linker='NetBSD ld.elf_so'
16049   fi
16050   shlibpath_var=LD_LIBRARY_PATH
16051   shlibpath_overrides_runpath=yes
16052   hardcode_into_libs=yes
16053   ;;
16054
16055 newsos6)
16056   version_type=linux
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058   shlibpath_var=LD_LIBRARY_PATH
16059   shlibpath_overrides_runpath=yes
16060   ;;
16061
16062 nto-qnx*)
16063   version_type=linux
16064   need_lib_prefix=no
16065   need_version=no
16066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067   soname_spec='${libname}${release}${shared_ext}$major'
16068   shlibpath_var=LD_LIBRARY_PATH
16069   shlibpath_overrides_runpath=yes
16070   ;;
16071
16072 openbsd*)
16073   version_type=sunos
16074   sys_lib_dlsearch_path_spec="/usr/lib"
16075   need_lib_prefix=no
16076   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16077   case $host_os in
16078     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16079     *)                         need_version=no  ;;
16080   esac
16081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16083   shlibpath_var=LD_LIBRARY_PATH
16084   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16085     case $host_os in
16086       openbsd2.[89] | openbsd2.[89].*)
16087         shlibpath_overrides_runpath=no
16088         ;;
16089       *)
16090         shlibpath_overrides_runpath=yes
16091         ;;
16092       esac
16093   else
16094     shlibpath_overrides_runpath=yes
16095   fi
16096   ;;
16097
16098 os2*)
16099   libname_spec='$name'
16100   shrext_cmds=".dll"
16101   need_lib_prefix=no
16102   library_names_spec='$libname${shared_ext} $libname.a'
16103   dynamic_linker='OS/2 ld.exe'
16104   shlibpath_var=LIBPATH
16105   ;;
16106
16107 osf3* | osf4* | osf5*)
16108   version_type=osf
16109   need_lib_prefix=no
16110   need_version=no
16111   soname_spec='${libname}${release}${shared_ext}$major'
16112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113   shlibpath_var=LD_LIBRARY_PATH
16114   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16115   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16116   ;;
16117
16118 solaris*)
16119   version_type=linux
16120   need_lib_prefix=no
16121   need_version=no
16122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123   soname_spec='${libname}${release}${shared_ext}$major'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   shlibpath_overrides_runpath=yes
16126   hardcode_into_libs=yes
16127   # ldd complains unless libraries are executable
16128   postinstall_cmds='chmod +x $lib'
16129   ;;
16130
16131 sunos4*)
16132   version_type=sunos
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16134   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=yes
16137   if test "$with_gnu_ld" = yes; then
16138     need_lib_prefix=no
16139   fi
16140   need_version=yes
16141   ;;
16142
16143 sysv4 | sysv4.3*)
16144   version_type=linux
16145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146   soname_spec='${libname}${release}${shared_ext}$major'
16147   shlibpath_var=LD_LIBRARY_PATH
16148   case $host_vendor in
16149     sni)
16150       shlibpath_overrides_runpath=no
16151       need_lib_prefix=no
16152       export_dynamic_flag_spec='${wl}-Blargedynsym'
16153       runpath_var=LD_RUN_PATH
16154       ;;
16155     siemens)
16156       need_lib_prefix=no
16157       ;;
16158     motorola)
16159       need_lib_prefix=no
16160       need_version=no
16161       shlibpath_overrides_runpath=no
16162       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16163       ;;
16164   esac
16165   ;;
16166
16167 sysv4*MP*)
16168   if test -d /usr/nec ;then
16169     version_type=linux
16170     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16171     soname_spec='$libname${shared_ext}.$major'
16172     shlibpath_var=LD_LIBRARY_PATH
16173   fi
16174   ;;
16175
16176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16177   version_type=freebsd-elf
16178   need_lib_prefix=no
16179   need_version=no
16180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16181   soname_spec='${libname}${release}${shared_ext}$major'
16182   shlibpath_var=LD_LIBRARY_PATH
16183   hardcode_into_libs=yes
16184   if test "$with_gnu_ld" = yes; then
16185     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16186     shlibpath_overrides_runpath=no
16187   else
16188     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16189     shlibpath_overrides_runpath=yes
16190     case $host_os in
16191       sco3.2v5*)
16192         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16193         ;;
16194     esac
16195   fi
16196   sys_lib_dlsearch_path_spec='/usr/lib'
16197   ;;
16198
16199 uts4*)
16200   version_type=linux
16201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202   soname_spec='${libname}${release}${shared_ext}$major'
16203   shlibpath_var=LD_LIBRARY_PATH
16204   ;;
16205
16206 *)
16207   dynamic_linker=no
16208   ;;
16209 esac
16210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16211 echo "${ECHO_T}$dynamic_linker" >&6; }
16212 test "$dynamic_linker" = no && can_build_shared=no
16213
16214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16215 if test "$GCC" = yes; then
16216   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16217 fi
16218
16219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16221 hardcode_action_F77=
16222 if test -n "$hardcode_libdir_flag_spec_F77" || \
16223    test -n "$runpath_var_F77" || \
16224    test "X$hardcode_automatic_F77" = "Xyes" ; then
16225
16226   # We can hardcode non-existant directories.
16227   if test "$hardcode_direct_F77" != no &&
16228      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16229      # have to relink, otherwise we might link with an installed library
16230      # when we should be linking with a yet-to-be-installed one
16231      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16232      test "$hardcode_minus_L_F77" != no; then
16233     # Linking always hardcodes the temporary library directory.
16234     hardcode_action_F77=relink
16235   else
16236     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16237     hardcode_action_F77=immediate
16238   fi
16239 else
16240   # We cannot hardcode anything, or else we can only hardcode existing
16241   # directories.
16242   hardcode_action_F77=unsupported
16243 fi
16244 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16245 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16246
16247 if test "$hardcode_action_F77" = relink; then
16248   # Fast installation is not supported
16249   enable_fast_install=no
16250 elif test "$shlibpath_overrides_runpath" = yes ||
16251      test "$enable_shared" = no; then
16252   # Fast installation is not necessary
16253   enable_fast_install=needless
16254 fi
16255
16256
16257 # The else clause should only fire when bootstrapping the
16258 # libtool distribution, otherwise you forgot to ship ltmain.sh
16259 # with your package, and you will get complaints that there are
16260 # no rules to generate ltmain.sh.
16261 if test -f "$ltmain"; then
16262   # See if we are running on zsh, and set the options which allow our commands through
16263   # without removal of \ escapes.
16264   if test -n "${ZSH_VERSION+set}" ; then
16265     setopt NO_GLOB_SUBST
16266   fi
16267   # Now quote all the things that may contain metacharacters while being
16268   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16269   # variables and quote the copies for generation of the libtool script.
16270   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16271     SED SHELL STRIP \
16272     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16273     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16274     deplibs_check_method reload_flag reload_cmds need_locks \
16275     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16276     lt_cv_sys_global_symbol_to_c_name_address \
16277     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16278     old_postinstall_cmds old_postuninstall_cmds \
16279     compiler_F77 \
16280     CC_F77 \
16281     LD_F77 \
16282     lt_prog_compiler_wl_F77 \
16283     lt_prog_compiler_pic_F77 \
16284     lt_prog_compiler_static_F77 \
16285     lt_prog_compiler_no_builtin_flag_F77 \
16286     export_dynamic_flag_spec_F77 \
16287     thread_safe_flag_spec_F77 \
16288     whole_archive_flag_spec_F77 \
16289     enable_shared_with_static_runtimes_F77 \
16290     old_archive_cmds_F77 \
16291     old_archive_from_new_cmds_F77 \
16292     predep_objects_F77 \
16293     postdep_objects_F77 \
16294     predeps_F77 \
16295     postdeps_F77 \
16296     compiler_lib_search_path_F77 \
16297     archive_cmds_F77 \
16298     archive_expsym_cmds_F77 \
16299     postinstall_cmds_F77 \
16300     postuninstall_cmds_F77 \
16301     old_archive_from_expsyms_cmds_F77 \
16302     allow_undefined_flag_F77 \
16303     no_undefined_flag_F77 \
16304     export_symbols_cmds_F77 \
16305     hardcode_libdir_flag_spec_F77 \
16306     hardcode_libdir_flag_spec_ld_F77 \
16307     hardcode_libdir_separator_F77 \
16308     hardcode_automatic_F77 \
16309     module_cmds_F77 \
16310     module_expsym_cmds_F77 \
16311     lt_cv_prog_compiler_c_o_F77 \
16312     exclude_expsyms_F77 \
16313     include_expsyms_F77; do
16314
16315     case $var in
16316     old_archive_cmds_F77 | \
16317     old_archive_from_new_cmds_F77 | \
16318     archive_cmds_F77 | \
16319     archive_expsym_cmds_F77 | \
16320     module_cmds_F77 | \
16321     module_expsym_cmds_F77 | \
16322     old_archive_from_expsyms_cmds_F77 | \
16323     export_symbols_cmds_F77 | \
16324     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16325     postinstall_cmds | postuninstall_cmds | \
16326     old_postinstall_cmds | old_postuninstall_cmds | \
16327     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16328       # Double-quote double-evaled strings.
16329       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16330       ;;
16331     *)
16332       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16333       ;;
16334     esac
16335   done
16336
16337   case $lt_echo in
16338   *'\$0 --fallback-echo"')
16339     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16340     ;;
16341   esac
16342
16343 cfgfile="$ofile"
16344
16345   cat <<__EOF__ >> "$cfgfile"
16346 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16347
16348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16349
16350 # Shell to use when invoking shell scripts.
16351 SHELL=$lt_SHELL
16352
16353 # Whether or not to build shared libraries.
16354 build_libtool_libs=$enable_shared
16355
16356 # Whether or not to build static libraries.
16357 build_old_libs=$enable_static
16358
16359 # Whether or not to add -lc for building shared libraries.
16360 build_libtool_need_lc=$archive_cmds_need_lc_F77
16361
16362 # Whether or not to disallow shared libs when runtime libs are static
16363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16364
16365 # Whether or not to optimize for fast installation.
16366 fast_install=$enable_fast_install
16367
16368 # The host system.
16369 host_alias=$host_alias
16370 host=$host
16371 host_os=$host_os
16372
16373 # The build system.
16374 build_alias=$build_alias
16375 build=$build
16376 build_os=$build_os
16377
16378 # An echo program that does not interpret backslashes.
16379 echo=$lt_echo
16380
16381 # The archiver.
16382 AR=$lt_AR
16383 AR_FLAGS=$lt_AR_FLAGS
16384
16385 # A C compiler.
16386 LTCC=$lt_LTCC
16387
16388 # LTCC compiler flags.
16389 LTCFLAGS=$lt_LTCFLAGS
16390
16391 # A language-specific compiler.
16392 CC=$lt_compiler_F77
16393
16394 # Is the compiler the GNU C compiler?
16395 with_gcc=$GCC_F77
16396
16397 # An ERE matcher.
16398 EGREP=$lt_EGREP
16399
16400 # The linker used to build libraries.
16401 LD=$lt_LD_F77
16402
16403 # Whether we need hard or soft links.
16404 LN_S=$lt_LN_S
16405
16406 # A BSD-compatible nm program.
16407 NM=$lt_NM
16408
16409 # A symbol stripping program
16410 STRIP=$lt_STRIP
16411
16412 # Used to examine libraries when file_magic_cmd begins "file"
16413 MAGIC_CMD=$MAGIC_CMD
16414
16415 # Used on cygwin: DLL creation program.
16416 DLLTOOL="$DLLTOOL"
16417
16418 # Used on cygwin: object dumper.
16419 OBJDUMP="$OBJDUMP"
16420
16421 # Used on cygwin: assembler.
16422 AS="$AS"
16423
16424 # The name of the directory that contains temporary libtool files.
16425 objdir=$objdir
16426
16427 # How to create reloadable object files.
16428 reload_flag=$lt_reload_flag
16429 reload_cmds=$lt_reload_cmds
16430
16431 # How to pass a linker flag through the compiler.
16432 wl=$lt_lt_prog_compiler_wl_F77
16433
16434 # Object file suffix (normally "o").
16435 objext="$ac_objext"
16436
16437 # Old archive suffix (normally "a").
16438 libext="$libext"
16439
16440 # Shared library suffix (normally ".so").
16441 shrext_cmds='$shrext_cmds'
16442
16443 # Executable file suffix (normally "").
16444 exeext="$exeext"
16445
16446 # Additional compiler flags for building library objects.
16447 pic_flag=$lt_lt_prog_compiler_pic_F77
16448 pic_mode=$pic_mode
16449
16450 # What is the maximum length of a command?
16451 max_cmd_len=$lt_cv_sys_max_cmd_len
16452
16453 # Does compiler simultaneously support -c and -o options?
16454 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16455
16456 # Must we lock files when doing compilation?
16457 need_locks=$lt_need_locks
16458
16459 # Do we need the lib prefix for modules?
16460 need_lib_prefix=$need_lib_prefix
16461
16462 # Do we need a version for libraries?
16463 need_version=$need_version
16464
16465 # Whether dlopen is supported.
16466 dlopen_support=$enable_dlopen
16467
16468 # Whether dlopen of programs is supported.
16469 dlopen_self=$enable_dlopen_self
16470
16471 # Whether dlopen of statically linked programs is supported.
16472 dlopen_self_static=$enable_dlopen_self_static
16473
16474 # Compiler flag to prevent dynamic linking.
16475 link_static_flag=$lt_lt_prog_compiler_static_F77
16476
16477 # Compiler flag to turn off builtin functions.
16478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16479
16480 # Compiler flag to allow reflexive dlopens.
16481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16482
16483 # Compiler flag to generate shared objects directly from archives.
16484 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16485
16486 # Compiler flag to generate thread-safe objects.
16487 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16488
16489 # Library versioning type.
16490 version_type=$version_type
16491
16492 # Format of library name prefix.
16493 libname_spec=$lt_libname_spec
16494
16495 # List of archive names.  First name is the real one, the rest are links.
16496 # The last name is the one that the linker finds with -lNAME.
16497 library_names_spec=$lt_library_names_spec
16498
16499 # The coded name of the library, if different from the real name.
16500 soname_spec=$lt_soname_spec
16501
16502 # Commands used to build and install an old-style archive.
16503 RANLIB=$lt_RANLIB
16504 old_archive_cmds=$lt_old_archive_cmds_F77
16505 old_postinstall_cmds=$lt_old_postinstall_cmds
16506 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16507
16508 # Create an old-style archive from a shared archive.
16509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16510
16511 # Create a temporary old-style archive to link instead of a shared archive.
16512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16513
16514 # Commands used to build and install a shared archive.
16515 archive_cmds=$lt_archive_cmds_F77
16516 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16517 postinstall_cmds=$lt_postinstall_cmds
16518 postuninstall_cmds=$lt_postuninstall_cmds
16519
16520 # Commands used to build a loadable module (assumed same as above if empty)
16521 module_cmds=$lt_module_cmds_F77
16522 module_expsym_cmds=$lt_module_expsym_cmds_F77
16523
16524 # Commands to strip libraries.
16525 old_striplib=$lt_old_striplib
16526 striplib=$lt_striplib
16527
16528 # Dependencies to place before the objects being linked to create a
16529 # shared library.
16530 predep_objects=$lt_predep_objects_F77
16531
16532 # Dependencies to place after the objects being linked to create a
16533 # shared library.
16534 postdep_objects=$lt_postdep_objects_F77
16535
16536 # Dependencies to place before the objects being linked to create a
16537 # shared library.
16538 predeps=$lt_predeps_F77
16539
16540 # Dependencies to place after the objects being linked to create a
16541 # shared library.
16542 postdeps=$lt_postdeps_F77
16543
16544 # The library search path used internally by the compiler when linking
16545 # a shared library.
16546 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16547
16548 # Method to check whether dependent libraries are shared objects.
16549 deplibs_check_method=$lt_deplibs_check_method
16550
16551 # Command to use when deplibs_check_method == file_magic.
16552 file_magic_cmd=$lt_file_magic_cmd
16553
16554 # Flag that allows shared libraries with undefined symbols to be built.
16555 allow_undefined_flag=$lt_allow_undefined_flag_F77
16556
16557 # Flag that forces no undefined symbols.
16558 no_undefined_flag=$lt_no_undefined_flag_F77
16559
16560 # Commands used to finish a libtool library installation in a directory.
16561 finish_cmds=$lt_finish_cmds
16562
16563 # Same as above, but a single script fragment to be evaled but not shown.
16564 finish_eval=$lt_finish_eval
16565
16566 # Take the output of nm and produce a listing of raw symbols and C names.
16567 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16568
16569 # Transform the output of nm in a proper C declaration
16570 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16571
16572 # Transform the output of nm in a C name address pair
16573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16574
16575 # This is the shared library runtime path variable.
16576 runpath_var=$runpath_var
16577
16578 # This is the shared library path variable.
16579 shlibpath_var=$shlibpath_var
16580
16581 # Is shlibpath searched before the hard-coded library search path?
16582 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16583
16584 # How to hardcode a shared library path into an executable.
16585 hardcode_action=$hardcode_action_F77
16586
16587 # Whether we should hardcode library paths into libraries.
16588 hardcode_into_libs=$hardcode_into_libs
16589
16590 # Flag to hardcode \$libdir into a binary during linking.
16591 # This must work even if \$libdir does not exist.
16592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16593
16594 # If ld is used when linking, flag to hardcode \$libdir into
16595 # a binary during linking. This must work even if \$libdir does
16596 # not exist.
16597 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16598
16599 # Whether we need a single -rpath flag with a separated argument.
16600 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16601
16602 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16603 # resulting binary.
16604 hardcode_direct=$hardcode_direct_F77
16605
16606 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16607 # resulting binary.
16608 hardcode_minus_L=$hardcode_minus_L_F77
16609
16610 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16611 # the resulting binary.
16612 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16613
16614 # Set to yes if building a shared library automatically hardcodes DIR into the library
16615 # and all subsequent libraries and executables linked against it.
16616 hardcode_automatic=$hardcode_automatic_F77
16617
16618 # Variables whose values should be saved in libtool wrapper scripts and
16619 # restored at relink time.
16620 variables_saved_for_relink="$variables_saved_for_relink"
16621
16622 # Whether libtool must link a program against all its dependency libraries.
16623 link_all_deplibs=$link_all_deplibs_F77
16624
16625 # Compile-time system search path for libraries
16626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16627
16628 # Run-time system search path for libraries
16629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16630
16631 # Fix the shell variable \$srcfile for the compiler.
16632 fix_srcfile_path="$fix_srcfile_path_F77"
16633
16634 # Set to yes if exported symbols are required.
16635 always_export_symbols=$always_export_symbols_F77
16636
16637 # The commands to list exported symbols.
16638 export_symbols_cmds=$lt_export_symbols_cmds_F77
16639
16640 # The commands to extract the exported symbol list from a shared archive.
16641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16642
16643 # Symbols that should not be listed in the preloaded symbols.
16644 exclude_expsyms=$lt_exclude_expsyms_F77
16645
16646 # Symbols that must always be exported.
16647 include_expsyms=$lt_include_expsyms_F77
16648
16649 # ### END LIBTOOL TAG CONFIG: $tagname
16650
16651 __EOF__
16652
16653
16654 else
16655   # If there is no Makefile yet, we rely on a make rule to execute
16656   # `config.status --recheck' to rerun these tests and create the
16657   # libtool script then.
16658   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16659   if test -f "$ltmain_in"; then
16660     test -f Makefile && make "$ltmain"
16661   fi
16662 fi
16663
16664
16665 ac_ext=c
16666 ac_cpp='$CPP $CPPFLAGS'
16667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16670
16671 CC="$lt_save_CC"
16672
16673         else
16674           tagname=""
16675         fi
16676         ;;
16677
16678       GCJ)
16679         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16680
16681
16682 # Source file extension for Java test sources.
16683 ac_ext=java
16684
16685 # Object file extension for compiled Java test sources.
16686 objext=o
16687 objext_GCJ=$objext
16688
16689 # Code to be used in simple compile tests
16690 lt_simple_compile_test_code="class foo {}\n"
16691
16692 # Code to be used in simple link tests
16693 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16694
16695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16696
16697 # If no C compiler was specified, use CC.
16698 LTCC=${LTCC-"$CC"}
16699
16700 # If no C compiler flags were specified, use CFLAGS.
16701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16702
16703 # Allow CC to be a program name with arguments.
16704 compiler=$CC
16705
16706
16707 # save warnings/boilerplate of simple test code
16708 ac_outfile=conftest.$ac_objext
16709 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16711 _lt_compiler_boilerplate=`cat conftest.err`
16712 $rm conftest*
16713
16714 ac_outfile=conftest.$ac_objext
16715 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16717 _lt_linker_boilerplate=`cat conftest.err`
16718 $rm conftest*
16719
16720
16721 # Allow CC to be a program name with arguments.
16722 lt_save_CC="$CC"
16723 CC=${GCJ-"gcj"}
16724 compiler=$CC
16725 compiler_GCJ=$CC
16726 for cc_temp in $compiler""; do
16727   case $cc_temp in
16728     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16729     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16730     \-*) ;;
16731     *) break;;
16732   esac
16733 done
16734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16735
16736
16737 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16738 archive_cmds_need_lc_GCJ=no
16739
16740 old_archive_cmds_GCJ=$old_archive_cmds
16741
16742
16743 lt_prog_compiler_no_builtin_flag_GCJ=
16744
16745 if test "$GCC" = yes; then
16746   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16747
16748
16749 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16750 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16751 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754   lt_cv_prog_compiler_rtti_exceptions=no
16755   ac_outfile=conftest.$ac_objext
16756    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16757    lt_compiler_flag="-fno-rtti -fno-exceptions"
16758    # Insert the option either (1) after the last *FLAGS variable, or
16759    # (2) before a word containing "conftest.", or (3) at the end.
16760    # Note that $ac_compile itself does not contain backslashes and begins
16761    # with a dollar sign (not a hyphen), so the echo should work correctly.
16762    # The option is referenced via a variable to avoid confusing sed.
16763    lt_compile=`echo "$ac_compile" | $SED \
16764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16766    -e 's:$: $lt_compiler_flag:'`
16767    (eval echo "\"\$as_me:16767: $lt_compile\"" >&5)
16768    (eval "$lt_compile" 2>conftest.err)
16769    ac_status=$?
16770    cat conftest.err >&5
16771    echo "$as_me:16771: \$? = $ac_status" >&5
16772    if (exit $ac_status) && test -s "$ac_outfile"; then
16773      # The compiler can only warn and ignore the option if not recognized
16774      # So say no if there are warnings other than the usual output.
16775      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16776      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16777      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16778        lt_cv_prog_compiler_rtti_exceptions=yes
16779      fi
16780    fi
16781    $rm conftest*
16782
16783 fi
16784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16785 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16786
16787 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16788     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16789 else
16790     :
16791 fi
16792
16793 fi
16794
16795 lt_prog_compiler_wl_GCJ=
16796 lt_prog_compiler_pic_GCJ=
16797 lt_prog_compiler_static_GCJ=
16798
16799 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16801
16802   if test "$GCC" = yes; then
16803     lt_prog_compiler_wl_GCJ='-Wl,'
16804     lt_prog_compiler_static_GCJ='-static'
16805
16806     case $host_os in
16807       aix*)
16808       # All AIX code is PIC.
16809       if test "$host_cpu" = ia64; then
16810         # AIX 5 now supports IA64 processor
16811         lt_prog_compiler_static_GCJ='-Bstatic'
16812       fi
16813       ;;
16814
16815     amigaos*)
16816       # FIXME: we need at least 68020 code to build shared libraries, but
16817       # adding the `-m68020' flag to GCC prevents building anything better,
16818       # like `-m68040'.
16819       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16820       ;;
16821
16822     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16823       # PIC is the default for these OSes.
16824       ;;
16825
16826     mingw* | pw32* | os2*)
16827       # This hack is so that the source file can tell whether it is being
16828       # built for inclusion in a dll (and should export symbols for example).
16829       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16830       ;;
16831
16832     darwin* | rhapsody*)
16833       # PIC is the default on this platform
16834       # Common symbols not allowed in MH_DYLIB files
16835       lt_prog_compiler_pic_GCJ='-fno-common'
16836       ;;
16837
16838     interix3*)
16839       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16840       # Instead, we relocate shared libraries at runtime.
16841       ;;
16842
16843     msdosdjgpp*)
16844       # Just because we use GCC doesn't mean we suddenly get shared libraries
16845       # on systems that don't support them.
16846       lt_prog_compiler_can_build_shared_GCJ=no
16847       enable_shared=no
16848       ;;
16849
16850     sysv4*MP*)
16851       if test -d /usr/nec; then
16852         lt_prog_compiler_pic_GCJ=-Kconform_pic
16853       fi
16854       ;;
16855
16856     hpux*)
16857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16858       # not for PA HP-UX.
16859       case $host_cpu in
16860       hppa*64*|ia64*)
16861         # +Z the default
16862         ;;
16863       *)
16864         lt_prog_compiler_pic_GCJ='-fPIC'
16865         ;;
16866       esac
16867       ;;
16868
16869     *)
16870       lt_prog_compiler_pic_GCJ='-fPIC'
16871       ;;
16872     esac
16873   else
16874     # PORTME Check for flag to pass linker flags through the system compiler.
16875     case $host_os in
16876     aix*)
16877       lt_prog_compiler_wl_GCJ='-Wl,'
16878       if test "$host_cpu" = ia64; then
16879         # AIX 5 now supports IA64 processor
16880         lt_prog_compiler_static_GCJ='-Bstatic'
16881       else
16882         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16883       fi
16884       ;;
16885       darwin*)
16886         # PIC is the default on this platform
16887         # Common symbols not allowed in MH_DYLIB files
16888        case $cc_basename in
16889          xlc*)
16890          lt_prog_compiler_pic_GCJ='-qnocommon'
16891          lt_prog_compiler_wl_GCJ='-Wl,'
16892          ;;
16893        esac
16894        ;;
16895
16896     mingw* | pw32* | os2*)
16897       # This hack is so that the source file can tell whether it is being
16898       # built for inclusion in a dll (and should export symbols for example).
16899       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16900       ;;
16901
16902     hpux9* | hpux10* | hpux11*)
16903       lt_prog_compiler_wl_GCJ='-Wl,'
16904       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16905       # not for PA HP-UX.
16906       case $host_cpu in
16907       hppa*64*|ia64*)
16908         # +Z the default
16909         ;;
16910       *)
16911         lt_prog_compiler_pic_GCJ='+Z'
16912         ;;
16913       esac
16914       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16915       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16916       ;;
16917
16918     irix5* | irix6* | nonstopux*)
16919       lt_prog_compiler_wl_GCJ='-Wl,'
16920       # PIC (with -KPIC) is the default.
16921       lt_prog_compiler_static_GCJ='-non_shared'
16922       ;;
16923
16924     newsos6)
16925       lt_prog_compiler_pic_GCJ='-KPIC'
16926       lt_prog_compiler_static_GCJ='-Bstatic'
16927       ;;
16928
16929     linux* | k*bsd*-gnu)
16930       case $cc_basename in
16931       icc* | ecc*)
16932         lt_prog_compiler_wl_GCJ='-Wl,'
16933         lt_prog_compiler_pic_GCJ='-KPIC'
16934         lt_prog_compiler_static_GCJ='-static'
16935         ;;
16936       pgcc* | pgf77* | pgf90* | pgf95*)
16937         # Portland Group compilers (*not* the Pentium gcc compiler,
16938         # which looks to be a dead project)
16939         lt_prog_compiler_wl_GCJ='-Wl,'
16940         lt_prog_compiler_pic_GCJ='-fpic'
16941         lt_prog_compiler_static_GCJ='-Bstatic'
16942         ;;
16943       ccc*)
16944         lt_prog_compiler_wl_GCJ='-Wl,'
16945         # All Alpha code is PIC.
16946         lt_prog_compiler_static_GCJ='-non_shared'
16947         ;;
16948       esac
16949       ;;
16950
16951     osf3* | osf4* | osf5*)
16952       lt_prog_compiler_wl_GCJ='-Wl,'
16953       # All OSF/1 code is PIC.
16954       lt_prog_compiler_static_GCJ='-non_shared'
16955       ;;
16956
16957     solaris*)
16958       lt_prog_compiler_pic_GCJ='-KPIC'
16959       lt_prog_compiler_static_GCJ='-Bstatic'
16960       case $cc_basename in
16961       f77* | f90* | f95*)
16962         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16963       *)
16964         lt_prog_compiler_wl_GCJ='-Wl,';;
16965       esac
16966       ;;
16967
16968     sunos4*)
16969       lt_prog_compiler_wl_GCJ='-Qoption ld '
16970       lt_prog_compiler_pic_GCJ='-PIC'
16971       lt_prog_compiler_static_GCJ='-Bstatic'
16972       ;;
16973
16974     sysv4 | sysv4.2uw2* | sysv4.3*)
16975       lt_prog_compiler_wl_GCJ='-Wl,'
16976       lt_prog_compiler_pic_GCJ='-KPIC'
16977       lt_prog_compiler_static_GCJ='-Bstatic'
16978       ;;
16979
16980     sysv4*MP*)
16981       if test -d /usr/nec ;then
16982         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16983         lt_prog_compiler_static_GCJ='-Bstatic'
16984       fi
16985       ;;
16986
16987     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16988       lt_prog_compiler_wl_GCJ='-Wl,'
16989       lt_prog_compiler_pic_GCJ='-KPIC'
16990       lt_prog_compiler_static_GCJ='-Bstatic'
16991       ;;
16992
16993     unicos*)
16994       lt_prog_compiler_wl_GCJ='-Wl,'
16995       lt_prog_compiler_can_build_shared_GCJ=no
16996       ;;
16997
16998     uts4*)
16999       lt_prog_compiler_pic_GCJ='-pic'
17000       lt_prog_compiler_static_GCJ='-Bstatic'
17001       ;;
17002
17003     *)
17004       lt_prog_compiler_can_build_shared_GCJ=no
17005       ;;
17006     esac
17007   fi
17008
17009 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17010 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17011
17012 #
17013 # Check to make sure the PIC flag actually works.
17014 #
17015 if test -n "$lt_prog_compiler_pic_GCJ"; then
17016
17017 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17019 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17020   echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022   lt_prog_compiler_pic_works_GCJ=no
17023   ac_outfile=conftest.$ac_objext
17024    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17025    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17026    # Insert the option either (1) after the last *FLAGS variable, or
17027    # (2) before a word containing "conftest.", or (3) at the end.
17028    # Note that $ac_compile itself does not contain backslashes and begins
17029    # with a dollar sign (not a hyphen), so the echo should work correctly.
17030    # The option is referenced via a variable to avoid confusing sed.
17031    lt_compile=`echo "$ac_compile" | $SED \
17032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17034    -e 's:$: $lt_compiler_flag:'`
17035    (eval echo "\"\$as_me:17035: $lt_compile\"" >&5)
17036    (eval "$lt_compile" 2>conftest.err)
17037    ac_status=$?
17038    cat conftest.err >&5
17039    echo "$as_me:17039: \$? = $ac_status" >&5
17040    if (exit $ac_status) && test -s "$ac_outfile"; then
17041      # The compiler can only warn and ignore the option if not recognized
17042      # So say no if there are warnings other than the usual output.
17043      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17044      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17045      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17046        lt_prog_compiler_pic_works_GCJ=yes
17047      fi
17048    fi
17049    $rm conftest*
17050
17051 fi
17052 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17053 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17054
17055 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17056     case $lt_prog_compiler_pic_GCJ in
17057      "" | " "*) ;;
17058      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17059      esac
17060 else
17061     lt_prog_compiler_pic_GCJ=
17062      lt_prog_compiler_can_build_shared_GCJ=no
17063 fi
17064
17065 fi
17066 case $host_os in
17067   # For platforms which do not support PIC, -DPIC is meaningless:
17068   *djgpp*)
17069     lt_prog_compiler_pic_GCJ=
17070     ;;
17071   *)
17072     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17073     ;;
17074 esac
17075
17076 #
17077 # Check to make sure the static flag actually works.
17078 #
17079 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17080 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17081 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17082 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17083   echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085   lt_prog_compiler_static_works_GCJ=no
17086    save_LDFLAGS="$LDFLAGS"
17087    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17088    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17089    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17090      # The linker can only warn and ignore the option if not recognized
17091      # So say no if there are warnings
17092      if test -s conftest.err; then
17093        # Append any errors to the config.log.
17094        cat conftest.err 1>&5
17095        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17096        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17097        if diff conftest.exp conftest.er2 >/dev/null; then
17098          lt_prog_compiler_static_works_GCJ=yes
17099        fi
17100      else
17101        lt_prog_compiler_static_works_GCJ=yes
17102      fi
17103    fi
17104    $rm conftest*
17105    LDFLAGS="$save_LDFLAGS"
17106
17107 fi
17108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17109 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17110
17111 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17112     :
17113 else
17114     lt_prog_compiler_static_GCJ=
17115 fi
17116
17117
17118 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17120 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123   lt_cv_prog_compiler_c_o_GCJ=no
17124    $rm -r conftest 2>/dev/null
17125    mkdir conftest
17126    cd conftest
17127    mkdir out
17128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17129
17130    lt_compiler_flag="-o out/conftest2.$ac_objext"
17131    # Insert the option either (1) after the last *FLAGS variable, or
17132    # (2) before a word containing "conftest.", or (3) at the end.
17133    # Note that $ac_compile itself does not contain backslashes and begins
17134    # with a dollar sign (not a hyphen), so the echo should work correctly.
17135    lt_compile=`echo "$ac_compile" | $SED \
17136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17138    -e 's:$: $lt_compiler_flag:'`
17139    (eval echo "\"\$as_me:17139: $lt_compile\"" >&5)
17140    (eval "$lt_compile" 2>out/conftest.err)
17141    ac_status=$?
17142    cat out/conftest.err >&5
17143    echo "$as_me:17143: \$? = $ac_status" >&5
17144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17145    then
17146      # The compiler can only warn and ignore the option if not recognized
17147      # So say no if there are warnings
17148      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17151        lt_cv_prog_compiler_c_o_GCJ=yes
17152      fi
17153    fi
17154    chmod u+w . 2>&5
17155    $rm conftest*
17156    # SGI C++ compiler will create directory out/ii_files/ for
17157    # template instantiation
17158    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17159    $rm out/* && rmdir out
17160    cd ..
17161    rmdir conftest
17162    $rm conftest*
17163
17164 fi
17165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17167
17168
17169 hard_links="nottested"
17170 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17171   # do not overwrite the value of need_locks provided by the user
17172   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17173 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17174   hard_links=yes
17175   $rm conftest*
17176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17177   touch conftest.a
17178   ln conftest.a conftest.b 2>&5 || hard_links=no
17179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17180   { echo "$as_me:$LINENO: result: $hard_links" >&5
17181 echo "${ECHO_T}$hard_links" >&6; }
17182   if test "$hard_links" = no; then
17183     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17184 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17185     need_locks=warn
17186   fi
17187 else
17188   need_locks=no
17189 fi
17190
17191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17193
17194   runpath_var=
17195   allow_undefined_flag_GCJ=
17196   enable_shared_with_static_runtimes_GCJ=no
17197   archive_cmds_GCJ=
17198   archive_expsym_cmds_GCJ=
17199   old_archive_From_new_cmds_GCJ=
17200   old_archive_from_expsyms_cmds_GCJ=
17201   export_dynamic_flag_spec_GCJ=
17202   whole_archive_flag_spec_GCJ=
17203   thread_safe_flag_spec_GCJ=
17204   hardcode_libdir_flag_spec_GCJ=
17205   hardcode_libdir_flag_spec_ld_GCJ=
17206   hardcode_libdir_separator_GCJ=
17207   hardcode_direct_GCJ=no
17208   hardcode_minus_L_GCJ=no
17209   hardcode_shlibpath_var_GCJ=unsupported
17210   link_all_deplibs_GCJ=unknown
17211   hardcode_automatic_GCJ=no
17212   module_cmds_GCJ=
17213   module_expsym_cmds_GCJ=
17214   always_export_symbols_GCJ=no
17215   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17216   # include_expsyms should be a list of space-separated symbols to be *always*
17217   # included in the symbol list
17218   include_expsyms_GCJ=
17219   # exclude_expsyms can be an extended regexp of symbols to exclude
17220   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17221   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17222   # as well as any symbol that contains `d'.
17223   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17224   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17225   # platforms (ab)use it in PIC code, but their linkers get confused if
17226   # the symbol is explicitly referenced.  Since portable code cannot
17227   # rely on this symbol name, it's probably fine to never include it in
17228   # preloaded symbol tables.
17229   extract_expsyms_cmds=
17230   # Just being paranoid about ensuring that cc_basename is set.
17231   for cc_temp in $compiler""; do
17232   case $cc_temp in
17233     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17234     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17235     \-*) ;;
17236     *) break;;
17237   esac
17238 done
17239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17240
17241   case $host_os in
17242   cygwin* | mingw* | pw32*)
17243     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17244     # When not using gcc, we currently assume that we are using
17245     # Microsoft Visual C++.
17246     if test "$GCC" != yes; then
17247       with_gnu_ld=no
17248     fi
17249     ;;
17250   interix*)
17251     # we just hope/assume this is gcc and not c89 (= MSVC++)
17252     with_gnu_ld=yes
17253     ;;
17254   openbsd*)
17255     with_gnu_ld=no
17256     ;;
17257   esac
17258
17259   ld_shlibs_GCJ=yes
17260   if test "$with_gnu_ld" = yes; then
17261     # If archive_cmds runs LD, not CC, wlarc should be empty
17262     wlarc='${wl}'
17263
17264     # Set some defaults for GNU ld with shared library support. These
17265     # are reset later if shared libraries are not supported. Putting them
17266     # here allows them to be overridden if necessary.
17267     runpath_var=LD_RUN_PATH
17268     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17269     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17270     # ancient GNU ld didn't support --whole-archive et. al.
17271     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17272         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17273       else
17274         whole_archive_flag_spec_GCJ=
17275     fi
17276     supports_anon_versioning=no
17277     case `$LD -v 2>/dev/null` in
17278       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17279       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17280       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17281       *\ 2.11.*) ;; # other 2.11 versions
17282       *) supports_anon_versioning=yes ;;
17283     esac
17284
17285     # See if GNU ld supports shared libraries.
17286     case $host_os in
17287     aix3* | aix4* | aix5*)
17288       # On AIX/PPC, the GNU linker is very broken
17289       if test "$host_cpu" != ia64; then
17290         ld_shlibs_GCJ=no
17291         cat <<EOF 1>&2
17292
17293 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17294 *** to be unable to reliably create shared libraries on AIX.
17295 *** Therefore, libtool is disabling shared libraries support.  If you
17296 *** really care for shared libraries, you may want to modify your PATH
17297 *** so that a non-GNU linker is found, and then restart.
17298
17299 EOF
17300       fi
17301       ;;
17302
17303     amigaos*)
17304       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)'
17305       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17306       hardcode_minus_L_GCJ=yes
17307
17308       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17309       # that the semantics of dynamic libraries on AmigaOS, at least up
17310       # to version 4, is to share data among multiple programs linked
17311       # with the same dynamic library.  Since this doesn't match the
17312       # behavior of shared libraries on other platforms, we can't use
17313       # them.
17314       ld_shlibs_GCJ=no
17315       ;;
17316
17317     beos*)
17318       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17319         allow_undefined_flag_GCJ=unsupported
17320         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17321         # support --undefined.  This deserves some investigation.  FIXME
17322         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17323       else
17324         ld_shlibs_GCJ=no
17325       fi
17326       ;;
17327
17328     cygwin* | mingw* | pw32*)
17329       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17330       # as there is no search path for DLLs.
17331       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17332       allow_undefined_flag_GCJ=unsupported
17333       always_export_symbols_GCJ=no
17334       enable_shared_with_static_runtimes_GCJ=yes
17335       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17336
17337       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17338         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17339         # If the export-symbols file already is a .def file (1st line
17340         # is EXPORTS), use it as is; otherwise, prepend...
17341         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17342           cp $export_symbols $output_objdir/$soname.def;
17343         else
17344           echo EXPORTS > $output_objdir/$soname.def;
17345           cat $export_symbols >> $output_objdir/$soname.def;
17346         fi~
17347         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17348       else
17349         ld_shlibs_GCJ=no
17350       fi
17351       ;;
17352
17353     interix3*)
17354       hardcode_direct_GCJ=no
17355       hardcode_shlibpath_var_GCJ=no
17356       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17357       export_dynamic_flag_spec_GCJ='${wl}-E'
17358       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17359       # Instead, shared libraries are loaded at an image base (0x10000000 by
17360       # default) and relocated if they conflict, which is a slow very memory
17361       # consuming and fragmenting process.  To avoid this, we pick a random,
17362       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17363       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17364       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'
17365       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'
17366       ;;
17367
17368     linux* | k*bsd*-gnu)
17369       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17370         tmp_addflag=
17371         case $cc_basename,$host_cpu in
17372         pgcc*)                          # Portland Group C compiler
17373           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'
17374           tmp_addflag=' $pic_flag'
17375           ;;
17376         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17377           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'
17378           tmp_addflag=' $pic_flag -Mnomain' ;;
17379         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17380           tmp_addflag=' -i_dynamic' ;;
17381         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17382           tmp_addflag=' -i_dynamic -nofor_main' ;;
17383         ifc* | ifort*)                  # Intel Fortran compiler
17384           tmp_addflag=' -nofor_main' ;;
17385         esac
17386         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17387
17388         if test $supports_anon_versioning = yes; then
17389           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17390   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17391   $echo "local: *; };" >> $output_objdir/$libname.ver~
17392           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17393         fi
17394         link_all_deplibs_GCJ=no
17395       else
17396         ld_shlibs_GCJ=no
17397       fi
17398       ;;
17399
17400     netbsd* | netbsdelf*-gnu)
17401       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17402         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17403         wlarc=
17404       else
17405         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17406         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17407       fi
17408       ;;
17409
17410     solaris*)
17411       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17412         ld_shlibs_GCJ=no
17413         cat <<EOF 1>&2
17414
17415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17416 *** create shared libraries on Solaris systems.  Therefore, libtool
17417 *** is disabling shared libraries support.  We urge you to upgrade GNU
17418 *** binutils to release 2.9.1 or newer.  Another option is to modify
17419 *** your PATH or compiler configuration so that the native linker is
17420 *** used, and then restart.
17421
17422 EOF
17423       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17424         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17425         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17426       else
17427         ld_shlibs_GCJ=no
17428       fi
17429       ;;
17430
17431     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17432       case `$LD -v 2>&1` in
17433         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17434         ld_shlibs_GCJ=no
17435         cat <<_LT_EOF 1>&2
17436
17437 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17438 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17439 *** is disabling shared libraries support.  We urge you to upgrade GNU
17440 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17441 *** your PATH or compiler configuration so that the native linker is
17442 *** used, and then restart.
17443
17444 _LT_EOF
17445         ;;
17446         *)
17447           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17448             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17449             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17450             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17451           else
17452             ld_shlibs_GCJ=no
17453           fi
17454         ;;
17455       esac
17456       ;;
17457
17458     sunos4*)
17459       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17460       wlarc=
17461       hardcode_direct_GCJ=yes
17462       hardcode_shlibpath_var_GCJ=no
17463       ;;
17464
17465     *)
17466       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17467         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17468         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17469       else
17470         ld_shlibs_GCJ=no
17471       fi
17472       ;;
17473     esac
17474
17475     if test "$ld_shlibs_GCJ" = no; then
17476       runpath_var=
17477       hardcode_libdir_flag_spec_GCJ=
17478       export_dynamic_flag_spec_GCJ=
17479       whole_archive_flag_spec_GCJ=
17480     fi
17481   else
17482     # PORTME fill in a description of your system's linker (not GNU ld)
17483     case $host_os in
17484     aix3*)
17485       allow_undefined_flag_GCJ=unsupported
17486       always_export_symbols_GCJ=yes
17487       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'
17488       # Note: this linker hardcodes the directories in LIBPATH if there
17489       # are no directories specified by -L.
17490       hardcode_minus_L_GCJ=yes
17491       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17492         # Neither direct hardcoding nor static linking is supported with a
17493         # broken collect2.
17494         hardcode_direct_GCJ=unsupported
17495       fi
17496       ;;
17497
17498     aix4* | aix5*)
17499       if test "$host_cpu" = ia64; then
17500         # On IA64, the linker does run time linking by default, so we don't
17501         # have to do anything special.
17502         aix_use_runtimelinking=no
17503         exp_sym_flag='-Bexport'
17504         no_entry_flag=""
17505       else
17506         # If we're using GNU nm, then we don't want the "-C" option.
17507         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17508         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17509           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'
17510         else
17511           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'
17512         fi
17513         aix_use_runtimelinking=no
17514
17515         # Test if we are trying to use run time linking or normal
17516         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17517         # need to do runtime linking.
17518         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17519           for ld_flag in $LDFLAGS; do
17520           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17521             aix_use_runtimelinking=yes
17522             break
17523           fi
17524           done
17525           ;;
17526         esac
17527
17528         exp_sym_flag='-bexport'
17529         no_entry_flag='-bnoentry'
17530       fi
17531
17532       # When large executables or shared objects are built, AIX ld can
17533       # have problems creating the table of contents.  If linking a library
17534       # or program results in "error TOC overflow" add -mminimal-toc to
17535       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17536       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17537
17538       archive_cmds_GCJ=''
17539       hardcode_direct_GCJ=yes
17540       hardcode_libdir_separator_GCJ=':'
17541       link_all_deplibs_GCJ=yes
17542
17543       if test "$GCC" = yes; then
17544         case $host_os in aix4.[012]|aix4.[012].*)
17545         # We only want to do this on AIX 4.2 and lower, the check
17546         # below for broken collect2 doesn't work under 4.3+
17547           collect2name=`${CC} -print-prog-name=collect2`
17548           if test -f "$collect2name" && \
17549            strings "$collect2name" | grep resolve_lib_name >/dev/null
17550           then
17551           # We have reworked collect2
17552           hardcode_direct_GCJ=yes
17553           else
17554           # We have old collect2
17555           hardcode_direct_GCJ=unsupported
17556           # It fails to find uninstalled libraries when the uninstalled
17557           # path is not listed in the libpath.  Setting hardcode_minus_L
17558           # to unsupported forces relinking
17559           hardcode_minus_L_GCJ=yes
17560           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561           hardcode_libdir_separator_GCJ=
17562           fi
17563           ;;
17564         esac
17565         shared_flag='-shared'
17566         if test "$aix_use_runtimelinking" = yes; then
17567           shared_flag="$shared_flag "'${wl}-G'
17568         fi
17569       else
17570         # not using gcc
17571         if test "$host_cpu" = ia64; then
17572         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17573         # chokes on -Wl,-G. The following line is correct:
17574           shared_flag='-G'
17575         else
17576           if test "$aix_use_runtimelinking" = yes; then
17577             shared_flag='${wl}-G'
17578           else
17579             shared_flag='${wl}-bM:SRE'
17580           fi
17581         fi
17582       fi
17583
17584       # It seems that -bexpall does not export symbols beginning with
17585       # underscore (_), so it is better to generate a list of symbols to export.
17586       always_export_symbols_GCJ=yes
17587       if test "$aix_use_runtimelinking" = yes; then
17588         # Warning - without using the other runtime loading flags (-brtl),
17589         # -berok will link without error, but may produce a broken library.
17590         allow_undefined_flag_GCJ='-berok'
17591        # Determine the default libpath from the value encoded in an empty executable.
17592        cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598
17599 int
17600 main ()
17601 {
17602
17603   ;
17604   return 0;
17605 }
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_link") 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } &&
17621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17622   { (case "(($ac_try" in
17623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624   *) ac_try_echo=$ac_try;;
17625 esac
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627   (eval "$ac_try") 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; } &&
17631          { ac_try='test -s conftest$ac_exeext'
17632   { (case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_try") 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); }; }; then
17641
17642 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17643 }'`
17644 # Check for a 64-bit object if we didn't find anything.
17645 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; }
17646 }'`; fi
17647 else
17648   echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext \
17655       conftest$ac_exeext conftest.$ac_ext
17656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17657
17658        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17659         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"
17660        else
17661         if test "$host_cpu" = ia64; then
17662           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17663           allow_undefined_flag_GCJ="-z nodefs"
17664           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"
17665         else
17666          # Determine the default libpath from the value encoded in an empty executable.
17667          cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h.  */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h.  */
17673
17674 int
17675 main ()
17676 {
17677
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (ac_try="$ac_link"
17684 case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_link") 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } &&
17696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17697   { (case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_try") 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; } &&
17706          { ac_try='test -s conftest$ac_exeext'
17707   { (case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712   (eval "$ac_try") 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; }; then
17716
17717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17718 }'`
17719 # Check for a 64-bit object if we didn't find anything.
17720 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; }
17721 }'`; fi
17722 else
17723   echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17725
17726
17727 fi
17728
17729 rm -f core conftest.err conftest.$ac_objext \
17730       conftest$ac_exeext conftest.$ac_ext
17731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17732
17733          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17734           # Warning - without using the other run time loading flags,
17735           # -berok will link without error, but may produce a broken library.
17736           no_undefined_flag_GCJ=' ${wl}-bernotok'
17737           allow_undefined_flag_GCJ=' ${wl}-berok'
17738           # Exported symbols can be pulled into shared objects from archives
17739           whole_archive_flag_spec_GCJ='$convenience'
17740           archive_cmds_need_lc_GCJ=yes
17741           # This is similar to how AIX traditionally builds its shared libraries.
17742           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'
17743         fi
17744       fi
17745       ;;
17746
17747     amigaos*)
17748       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)'
17749       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17750       hardcode_minus_L_GCJ=yes
17751       # see comment about different semantics on the GNU ld section
17752       ld_shlibs_GCJ=no
17753       ;;
17754
17755     bsdi[45]*)
17756       export_dynamic_flag_spec_GCJ=-rdynamic
17757       ;;
17758
17759     cygwin* | mingw* | pw32*)
17760       # When not using gcc, we currently assume that we are using
17761       # Microsoft Visual C++.
17762       # hardcode_libdir_flag_spec is actually meaningless, as there is
17763       # no search path for DLLs.
17764       hardcode_libdir_flag_spec_GCJ=' '
17765       allow_undefined_flag_GCJ=unsupported
17766       # Tell ltmain to make .lib files, not .a files.
17767       libext=lib
17768       # Tell ltmain to make .dll files, not .so files.
17769       shrext_cmds=".dll"
17770       # FIXME: Setting linknames here is a bad hack.
17771       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17772       # The linker will automatically build a .lib file if we build a DLL.
17773       old_archive_From_new_cmds_GCJ='true'
17774       # FIXME: Should let the user specify the lib program.
17775       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17776       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17777       enable_shared_with_static_runtimes_GCJ=yes
17778       ;;
17779
17780     darwin* | rhapsody*)
17781       case $host_os in
17782         rhapsody* | darwin1.[012])
17783          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17784          ;;
17785        *) # Darwin 1.3 on
17786          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17787            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17788          else
17789            case ${MACOSX_DEPLOYMENT_TARGET} in
17790              10.[012])
17791                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17792                ;;
17793              10.*)
17794                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17795                ;;
17796            esac
17797          fi
17798          ;;
17799       esac
17800       archive_cmds_need_lc_GCJ=no
17801       hardcode_direct_GCJ=no
17802       hardcode_automatic_GCJ=yes
17803       hardcode_shlibpath_var_GCJ=unsupported
17804       whole_archive_flag_spec_GCJ=''
17805       link_all_deplibs_GCJ=yes
17806     if test "$GCC" = yes ; then
17807         output_verbose_link_cmd='echo'
17808         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17809       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17810       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17811       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}'
17812       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}'
17813     else
17814       case $cc_basename in
17815         xlc*)
17816          output_verbose_link_cmd='echo'
17817          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17818          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17819           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17820          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}'
17821           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}'
17822           ;;
17823        *)
17824          ld_shlibs_GCJ=no
17825           ;;
17826       esac
17827     fi
17828       ;;
17829
17830     dgux*)
17831       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17832       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17833       hardcode_shlibpath_var_GCJ=no
17834       ;;
17835
17836     freebsd1*)
17837       ld_shlibs_GCJ=no
17838       ;;
17839
17840     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17841     # support.  Future versions do this automatically, but an explicit c++rt0.o
17842     # does not break anything, and helps significantly (at the cost of a little
17843     # extra space).
17844     freebsd2.2*)
17845       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17846       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17847       hardcode_direct_GCJ=yes
17848       hardcode_shlibpath_var_GCJ=no
17849       ;;
17850
17851     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17852     freebsd2*)
17853       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17854       hardcode_direct_GCJ=yes
17855       hardcode_minus_L_GCJ=yes
17856       hardcode_shlibpath_var_GCJ=no
17857       ;;
17858
17859     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17860     freebsd* | dragonfly*)
17861       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17862       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17863       hardcode_direct_GCJ=yes
17864       hardcode_shlibpath_var_GCJ=no
17865       ;;
17866
17867     hpux9*)
17868       if test "$GCC" = yes; then
17869         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'
17870       else
17871         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'
17872       fi
17873       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17874       hardcode_libdir_separator_GCJ=:
17875       hardcode_direct_GCJ=yes
17876
17877       # hardcode_minus_L: Not really in the search PATH,
17878       # but as the default location of the library.
17879       hardcode_minus_L_GCJ=yes
17880       export_dynamic_flag_spec_GCJ='${wl}-E'
17881       ;;
17882
17883     hpux10*)
17884       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17885         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17886       else
17887         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17888       fi
17889       if test "$with_gnu_ld" = no; then
17890         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17891         hardcode_libdir_separator_GCJ=:
17892
17893         hardcode_direct_GCJ=yes
17894         export_dynamic_flag_spec_GCJ='${wl}-E'
17895
17896         # hardcode_minus_L: Not really in the search PATH,
17897         # but as the default location of the library.
17898         hardcode_minus_L_GCJ=yes
17899       fi
17900       ;;
17901
17902     hpux11*)
17903       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17904         case $host_cpu in
17905         hppa*64*)
17906           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17907           ;;
17908         ia64*)
17909           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17910           ;;
17911         *)
17912           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17913           ;;
17914         esac
17915       else
17916         case $host_cpu in
17917         hppa*64*)
17918           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17919           ;;
17920         ia64*)
17921           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17922           ;;
17923         *)
17924           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17925           ;;
17926         esac
17927       fi
17928       if test "$with_gnu_ld" = no; then
17929         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17930         hardcode_libdir_separator_GCJ=:
17931
17932         case $host_cpu in
17933         hppa*64*|ia64*)
17934           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17935           hardcode_direct_GCJ=no
17936           hardcode_shlibpath_var_GCJ=no
17937           ;;
17938         *)
17939           hardcode_direct_GCJ=yes
17940           export_dynamic_flag_spec_GCJ='${wl}-E'
17941
17942           # hardcode_minus_L: Not really in the search PATH,
17943           # but as the default location of the library.
17944           hardcode_minus_L_GCJ=yes
17945           ;;
17946         esac
17947       fi
17948       ;;
17949
17950     irix5* | irix6* | nonstopux*)
17951       if test "$GCC" = yes; then
17952         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'
17953       else
17954         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'
17955         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17956       fi
17957       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17958       hardcode_libdir_separator_GCJ=:
17959       link_all_deplibs_GCJ=yes
17960       ;;
17961
17962     netbsd* | netbsdelf*-gnu)
17963       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17964         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17965       else
17966         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17967       fi
17968       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17969       hardcode_direct_GCJ=yes
17970       hardcode_shlibpath_var_GCJ=no
17971       ;;
17972
17973     newsos6)
17974       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17975       hardcode_direct_GCJ=yes
17976       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17977       hardcode_libdir_separator_GCJ=:
17978       hardcode_shlibpath_var_GCJ=no
17979       ;;
17980
17981     openbsd*)
17982       hardcode_direct_GCJ=yes
17983       hardcode_shlibpath_var_GCJ=no
17984       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17985         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17986         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17987         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17988         export_dynamic_flag_spec_GCJ='${wl}-E'
17989       else
17990        case $host_os in
17991          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17992            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17993            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17994            ;;
17995          *)
17996            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17997            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17998            ;;
17999        esac
18000       fi
18001       ;;
18002
18003     os2*)
18004       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18005       hardcode_minus_L_GCJ=yes
18006       allow_undefined_flag_GCJ=unsupported
18007       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'
18008       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18009       ;;
18010
18011     osf3*)
18012       if test "$GCC" = yes; then
18013         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18014         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'
18015       else
18016         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18017         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'
18018       fi
18019       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18020       hardcode_libdir_separator_GCJ=:
18021       ;;
18022
18023     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18024       if test "$GCC" = yes; then
18025         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18026         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'
18027         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18028       else
18029         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18030         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'
18031         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~
18032         $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'
18033
18034         # Both c and cxx compiler support -rpath directly
18035         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18036       fi
18037       hardcode_libdir_separator_GCJ=:
18038       ;;
18039
18040     solaris*)
18041       no_undefined_flag_GCJ=' -z text'
18042       if test "$GCC" = yes; then
18043         wlarc='${wl}'
18044         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18046           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18047       else
18048         wlarc=''
18049         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18050         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18051         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18052       fi
18053       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18054       hardcode_shlibpath_var_GCJ=no
18055       case $host_os in
18056       solaris2.[0-5] | solaris2.[0-5].*) ;;
18057       *)
18058         # The compiler driver will combine linker options so we
18059         # cannot just pass the convience library names through
18060         # without $wl, iff we do not link with $LD.
18061         # Luckily, gcc supports the same syntax we need for Sun Studio.
18062         # Supported since Solaris 2.6 (maybe 2.5.1?)
18063         case $wlarc in
18064         '')
18065           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18066         *)
18067           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' ;;
18068         esac ;;
18069       esac
18070       link_all_deplibs_GCJ=yes
18071       ;;
18072
18073     sunos4*)
18074       if test "x$host_vendor" = xsequent; then
18075         # Use $CC to link under sequent, because it throws in some extra .o
18076         # files that make .init and .fini sections work.
18077         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18078       else
18079         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18080       fi
18081       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18082       hardcode_direct_GCJ=yes
18083       hardcode_minus_L_GCJ=yes
18084       hardcode_shlibpath_var_GCJ=no
18085       ;;
18086
18087     sysv4)
18088       case $host_vendor in
18089         sni)
18090           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091           hardcode_direct_GCJ=yes # is this really true???
18092         ;;
18093         siemens)
18094           ## LD is ld it makes a PLAMLIB
18095           ## CC just makes a GrossModule.
18096           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18097           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18098           hardcode_direct_GCJ=no
18099         ;;
18100         motorola)
18101           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18102           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18103         ;;
18104       esac
18105       runpath_var='LD_RUN_PATH'
18106       hardcode_shlibpath_var_GCJ=no
18107       ;;
18108
18109     sysv4.3*)
18110       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111       hardcode_shlibpath_var_GCJ=no
18112       export_dynamic_flag_spec_GCJ='-Bexport'
18113       ;;
18114
18115     sysv4*MP*)
18116       if test -d /usr/nec; then
18117         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18118         hardcode_shlibpath_var_GCJ=no
18119         runpath_var=LD_RUN_PATH
18120         hardcode_runpath_var=yes
18121         ld_shlibs_GCJ=yes
18122       fi
18123       ;;
18124
18125     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18126       no_undefined_flag_GCJ='${wl}-z,text'
18127       archive_cmds_need_lc_GCJ=no
18128       hardcode_shlibpath_var_GCJ=no
18129       runpath_var='LD_RUN_PATH'
18130
18131       if test "$GCC" = yes; then
18132         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18133         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18134       else
18135         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18136         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18137       fi
18138       ;;
18139
18140     sysv5* | sco3.2v5* | sco5v6*)
18141       # Note: We can NOT use -z defs as we might desire, because we do not
18142       # link with -lc, and that would cause any symbols used from libc to
18143       # always be unresolved, which means just about no library would
18144       # ever link correctly.  If we're not using GNU ld we use -z text
18145       # though, which does catch some bad symbols but isn't as heavy-handed
18146       # as -z defs.
18147       no_undefined_flag_GCJ='${wl}-z,text'
18148       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18149       archive_cmds_need_lc_GCJ=no
18150       hardcode_shlibpath_var_GCJ=no
18151       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18152       hardcode_libdir_separator_GCJ=':'
18153       link_all_deplibs_GCJ=yes
18154       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18155       runpath_var='LD_RUN_PATH'
18156
18157       if test "$GCC" = yes; then
18158         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18159         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18160       else
18161         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18162         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18163       fi
18164       ;;
18165
18166     uts4*)
18167       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18168       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18169       hardcode_shlibpath_var_GCJ=no
18170       ;;
18171
18172     *)
18173       ld_shlibs_GCJ=no
18174       ;;
18175     esac
18176   fi
18177
18178 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18179 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18180 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18181
18182 #
18183 # Do we need to explicitly link libc?
18184 #
18185 case "x$archive_cmds_need_lc_GCJ" in
18186 x|xyes)
18187   # Assume -lc should be added
18188   archive_cmds_need_lc_GCJ=yes
18189
18190   if test "$enable_shared" = yes && test "$GCC" = yes; then
18191     case $archive_cmds_GCJ in
18192     *'~'*)
18193       # FIXME: we may have to deal with multi-command sequences.
18194       ;;
18195     '$CC '*)
18196       # Test whether the compiler implicitly links with -lc since on some
18197       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18198       # to ld, don't add -lc before -lgcc.
18199       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18201       $rm conftest*
18202       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18203
18204       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205   (eval $ac_compile) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } 2>conftest.err; then
18209         soname=conftest
18210         lib=conftest
18211         libobjs=conftest.$ac_objext
18212         deplibs=
18213         wl=$lt_prog_compiler_wl_GCJ
18214         pic_flag=$lt_prog_compiler_pic_GCJ
18215         compiler_flags=-v
18216         linker_flags=-v
18217         verstring=
18218         output_objdir=.
18219         libname=conftest
18220         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18221         allow_undefined_flag_GCJ=
18222         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18223   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }
18227         then
18228           archive_cmds_need_lc_GCJ=no
18229         else
18230           archive_cmds_need_lc_GCJ=yes
18231         fi
18232         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18233       else
18234         cat conftest.err 1>&5
18235       fi
18236       $rm conftest*
18237       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18238 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18239       ;;
18240     esac
18241   fi
18242   ;;
18243 esac
18244
18245 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18247 library_names_spec=
18248 libname_spec='lib$name'
18249 soname_spec=
18250 shrext_cmds=".so"
18251 postinstall_cmds=
18252 postuninstall_cmds=
18253 finish_cmds=
18254 finish_eval=
18255 shlibpath_var=
18256 shlibpath_overrides_runpath=unknown
18257 version_type=none
18258 dynamic_linker="$host_os ld.so"
18259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18260 if test "$GCC" = yes; then
18261   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18262   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18263     # if the path contains ";" then we assume it to be the separator
18264     # otherwise default to the standard path separator (i.e. ":") - it is
18265     # assumed that no part of a normal pathname contains ";" but that should
18266     # okay in the real world where ";" in dirpaths is itself problematic.
18267     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18268   else
18269     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18270   fi
18271 else
18272   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18273 fi
18274 need_lib_prefix=unknown
18275 hardcode_into_libs=no
18276
18277 # when you set need_version to no, make sure it does not cause -set_version
18278 # flags to be left without arguments
18279 need_version=unknown
18280
18281 case $host_os in
18282 aix3*)
18283   version_type=linux
18284   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18285   shlibpath_var=LIBPATH
18286
18287   # AIX 3 has no versioning support, so we append a major version to the name.
18288   soname_spec='${libname}${release}${shared_ext}$major'
18289   ;;
18290
18291 aix4* | aix5*)
18292   version_type=linux
18293   need_lib_prefix=no
18294   need_version=no
18295   hardcode_into_libs=yes
18296   if test "$host_cpu" = ia64; then
18297     # AIX 5 supports IA64
18298     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18299     shlibpath_var=LD_LIBRARY_PATH
18300   else
18301     # With GCC up to 2.95.x, collect2 would create an import file
18302     # for dependence libraries.  The import file would start with
18303     # the line `#! .'.  This would cause the generated library to
18304     # depend on `.', always an invalid library.  This was fixed in
18305     # development snapshots of GCC prior to 3.0.
18306     case $host_os in
18307       aix4 | aix4.[01] | aix4.[01].*)
18308       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18309            echo ' yes '
18310            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18311         :
18312       else
18313         can_build_shared=no
18314       fi
18315       ;;
18316     esac
18317     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18318     # soname into executable. Probably we can add versioning support to
18319     # collect2, so additional links can be useful in future.
18320     if test "$aix_use_runtimelinking" = yes; then
18321       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18322       # instead of lib<name>.a to let people know that these are not
18323       # typical AIX shared libraries.
18324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325     else
18326       # We preserve .a as extension for shared libraries through AIX4.2
18327       # and later when we are not doing run time linking.
18328       library_names_spec='${libname}${release}.a $libname.a'
18329       soname_spec='${libname}${release}${shared_ext}$major'
18330     fi
18331     shlibpath_var=LIBPATH
18332   fi
18333   ;;
18334
18335 amigaos*)
18336   library_names_spec='$libname.ixlibrary $libname.a'
18337   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18338   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'
18339   ;;
18340
18341 beos*)
18342   library_names_spec='${libname}${shared_ext}'
18343   dynamic_linker="$host_os ld.so"
18344   shlibpath_var=LIBRARY_PATH
18345   ;;
18346
18347 bsdi[45]*)
18348   version_type=linux
18349   need_version=no
18350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18351   soname_spec='${libname}${release}${shared_ext}$major'
18352   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18353   shlibpath_var=LD_LIBRARY_PATH
18354   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18355   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18356   # the default ld.so.conf also contains /usr/contrib/lib and
18357   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18358   # libtool to hard-code these into programs
18359   ;;
18360
18361 cygwin* | mingw* | pw32*)
18362   version_type=windows
18363   shrext_cmds=".dll"
18364   need_version=no
18365   need_lib_prefix=no
18366
18367   case $GCC,$host_os in
18368   yes,cygwin* | yes,mingw* | yes,pw32*)
18369     library_names_spec='$libname.dll.a'
18370     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18371     postinstall_cmds='base_file=`basename \${file}`~
18372       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18373       dldir=$destdir/`dirname \$dlpath`~
18374       test -d \$dldir || mkdir -p \$dldir~
18375       $install_prog $dir/$dlname \$dldir/$dlname~
18376       chmod a+x \$dldir/$dlname'
18377     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18378       dlpath=$dir/\$dldll~
18379        $rm \$dlpath'
18380     shlibpath_overrides_runpath=yes
18381
18382     case $host_os in
18383     cygwin*)
18384       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18385       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18386       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18387       ;;
18388     mingw*)
18389       # MinGW DLLs use traditional 'lib' prefix
18390       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18391       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18392       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18393         # It is most probably a Windows format PATH printed by
18394         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18395         # path with ; separators, and with drive letters. We can handle the
18396         # drive letters (cygwin fileutils understands them), so leave them,
18397         # especially as we might pass files found there to a mingw objdump,
18398         # which wouldn't understand a cygwinified path. Ahh.
18399         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18400       else
18401         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18402       fi
18403       ;;
18404     pw32*)
18405       # pw32 DLLs use 'pw' prefix rather than 'lib'
18406       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18407       ;;
18408     esac
18409     ;;
18410
18411   *)
18412     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18413     ;;
18414   esac
18415   dynamic_linker='Win32 ld.exe'
18416   # FIXME: first we should search . and the directory the executable is in
18417   shlibpath_var=PATH
18418   ;;
18419
18420 darwin* | rhapsody*)
18421   dynamic_linker="$host_os dyld"
18422   version_type=darwin
18423   need_lib_prefix=no
18424   need_version=no
18425   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18426   soname_spec='${libname}${release}${major}$shared_ext'
18427   shlibpath_overrides_runpath=yes
18428   shlibpath_var=DYLD_LIBRARY_PATH
18429   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18430   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18431   if test "$GCC" = yes; then
18432     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"`
18433   else
18434     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18435   fi
18436   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18437   ;;
18438
18439 dgux*)
18440   version_type=linux
18441   need_lib_prefix=no
18442   need_version=no
18443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18444   soname_spec='${libname}${release}${shared_ext}$major'
18445   shlibpath_var=LD_LIBRARY_PATH
18446   ;;
18447
18448 freebsd1*)
18449   dynamic_linker=no
18450   ;;
18451
18452 freebsd* | dragonfly*)
18453   # DragonFly does not have aout.  When/if they implement a new
18454   # versioning mechanism, adjust this.
18455   if test -x /usr/bin/objformat; then
18456     objformat=`/usr/bin/objformat`
18457   else
18458     case $host_os in
18459     freebsd[123]*) objformat=aout ;;
18460     *) objformat=elf ;;
18461     esac
18462   fi
18463   version_type=freebsd-$objformat
18464   case $version_type in
18465     freebsd-elf*)
18466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18467       need_version=no
18468       need_lib_prefix=no
18469       ;;
18470     freebsd-*)
18471       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18472       need_version=yes
18473       ;;
18474   esac
18475   shlibpath_var=LD_LIBRARY_PATH
18476   case $host_os in
18477   freebsd2*)
18478     shlibpath_overrides_runpath=yes
18479     ;;
18480   freebsd3.[01]* | freebsdelf3.[01]*)
18481     shlibpath_overrides_runpath=yes
18482     hardcode_into_libs=yes
18483     ;;
18484   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18485   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18486     shlibpath_overrides_runpath=no
18487     hardcode_into_libs=yes
18488     ;;
18489   freebsd*) # from 4.6 on
18490     shlibpath_overrides_runpath=yes
18491     hardcode_into_libs=yes
18492     ;;
18493   esac
18494   ;;
18495
18496 gnu*)
18497   version_type=linux
18498   need_lib_prefix=no
18499   need_version=no
18500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18501   soname_spec='${libname}${release}${shared_ext}$major'
18502   shlibpath_var=LD_LIBRARY_PATH
18503   hardcode_into_libs=yes
18504   ;;
18505
18506 hpux9* | hpux10* | hpux11*)
18507   # Give a soname corresponding to the major version so that dld.sl refuses to
18508   # link against other versions.
18509   version_type=sunos
18510   need_lib_prefix=no
18511   need_version=no
18512   case $host_cpu in
18513   ia64*)
18514     shrext_cmds='.so'
18515     hardcode_into_libs=yes
18516     dynamic_linker="$host_os dld.so"
18517     shlibpath_var=LD_LIBRARY_PATH
18518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520     soname_spec='${libname}${release}${shared_ext}$major'
18521     if test "X$HPUX_IA64_MODE" = X32; then
18522       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18523     else
18524       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18525     fi
18526     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18527     ;;
18528    hppa*64*)
18529      shrext_cmds='.sl'
18530      hardcode_into_libs=yes
18531      dynamic_linker="$host_os dld.sl"
18532      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18533      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535      soname_spec='${libname}${release}${shared_ext}$major'
18536      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18537      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18538      ;;
18539    *)
18540     shrext_cmds='.sl'
18541     dynamic_linker="$host_os dld.sl"
18542     shlibpath_var=SHLIB_PATH
18543     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545     soname_spec='${libname}${release}${shared_ext}$major'
18546     ;;
18547   esac
18548   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18549   postinstall_cmds='chmod 555 $lib'
18550   ;;
18551
18552 interix3*)
18553   version_type=linux
18554   need_lib_prefix=no
18555   need_version=no
18556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18557   soname_spec='${libname}${release}${shared_ext}$major'
18558   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18559   shlibpath_var=LD_LIBRARY_PATH
18560   shlibpath_overrides_runpath=no
18561   hardcode_into_libs=yes
18562   ;;
18563
18564 irix5* | irix6* | nonstopux*)
18565   case $host_os in
18566     nonstopux*) version_type=nonstopux ;;
18567     *)
18568         if test "$lt_cv_prog_gnu_ld" = yes; then
18569                 version_type=linux
18570         else
18571                 version_type=irix
18572         fi ;;
18573   esac
18574   need_lib_prefix=no
18575   need_version=no
18576   soname_spec='${libname}${release}${shared_ext}$major'
18577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18578   case $host_os in
18579   irix5* | nonstopux*)
18580     libsuff= shlibsuff=
18581     ;;
18582   *)
18583     case $LD in # libtool.m4 will add one of these switches to LD
18584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18585       libsuff= shlibsuff= libmagic=32-bit;;
18586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18587       libsuff=32 shlibsuff=N32 libmagic=N32;;
18588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18590     *) libsuff= shlibsuff= libmagic=never-match;;
18591     esac
18592     ;;
18593   esac
18594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18595   shlibpath_overrides_runpath=no
18596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18598   hardcode_into_libs=yes
18599   ;;
18600
18601 # No shared lib support for Linux oldld, aout, or coff.
18602 linux*oldld* | linux*aout* | linux*coff*)
18603   dynamic_linker=no
18604   ;;
18605
18606 # This must be Linux ELF.
18607 linux* | k*bsd*-gnu)
18608   version_type=linux
18609   need_lib_prefix=no
18610   need_version=no
18611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612   soname_spec='${libname}${release}${shared_ext}$major'
18613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18614   shlibpath_var=LD_LIBRARY_PATH
18615   shlibpath_overrides_runpath=no
18616   # This implies no fast_install, which is unacceptable.
18617   # Some rework will be needed to allow for fast_install
18618   # before this can be enabled.
18619   hardcode_into_libs=yes
18620
18621   # Append ld.so.conf contents to the search path
18622   if test -f /etc/ld.so.conf; then
18623     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' ' '`
18624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18625   fi
18626
18627   # We used to test for /lib/ld.so.1 and disable shared libraries on
18628   # powerpc, because MkLinux only supported shared libraries with the
18629   # GNU dynamic linker.  Since this was broken with cross compilers,
18630   # most powerpc-linux boxes support dynamic linking these days and
18631   # people can always --disable-shared, the test was removed, and we
18632   # assume the GNU/Linux dynamic linker is in use.
18633   dynamic_linker='GNU/Linux ld.so'
18634   ;;
18635
18636 netbsdelf*-gnu)
18637   version_type=linux
18638   need_lib_prefix=no
18639   need_version=no
18640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18641   soname_spec='${libname}${release}${shared_ext}$major'
18642   shlibpath_var=LD_LIBRARY_PATH
18643   shlibpath_overrides_runpath=no
18644   hardcode_into_libs=yes
18645   dynamic_linker='NetBSD ld.elf_so'
18646   ;;
18647
18648 netbsd*)
18649   version_type=sunos
18650   need_lib_prefix=no
18651   need_version=no
18652   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655     dynamic_linker='NetBSD (a.out) ld.so'
18656   else
18657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18658     soname_spec='${libname}${release}${shared_ext}$major'
18659     dynamic_linker='NetBSD ld.elf_so'
18660   fi
18661   shlibpath_var=LD_LIBRARY_PATH
18662   shlibpath_overrides_runpath=yes
18663   hardcode_into_libs=yes
18664   ;;
18665
18666 newsos6)
18667   version_type=linux
18668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669   shlibpath_var=LD_LIBRARY_PATH
18670   shlibpath_overrides_runpath=yes
18671   ;;
18672
18673 nto-qnx*)
18674   version_type=linux
18675   need_lib_prefix=no
18676   need_version=no
18677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18678   soname_spec='${libname}${release}${shared_ext}$major'
18679   shlibpath_var=LD_LIBRARY_PATH
18680   shlibpath_overrides_runpath=yes
18681   ;;
18682
18683 openbsd*)
18684   version_type=sunos
18685   sys_lib_dlsearch_path_spec="/usr/lib"
18686   need_lib_prefix=no
18687   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18688   case $host_os in
18689     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18690     *)                         need_version=no  ;;
18691   esac
18692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18693   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18694   shlibpath_var=LD_LIBRARY_PATH
18695   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18696     case $host_os in
18697       openbsd2.[89] | openbsd2.[89].*)
18698         shlibpath_overrides_runpath=no
18699         ;;
18700       *)
18701         shlibpath_overrides_runpath=yes
18702         ;;
18703       esac
18704   else
18705     shlibpath_overrides_runpath=yes
18706   fi
18707   ;;
18708
18709 os2*)
18710   libname_spec='$name'
18711   shrext_cmds=".dll"
18712   need_lib_prefix=no
18713   library_names_spec='$libname${shared_ext} $libname.a'
18714   dynamic_linker='OS/2 ld.exe'
18715   shlibpath_var=LIBPATH
18716   ;;
18717
18718 osf3* | osf4* | osf5*)
18719   version_type=osf
18720   need_lib_prefix=no
18721   need_version=no
18722   soname_spec='${libname}${release}${shared_ext}$major'
18723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724   shlibpath_var=LD_LIBRARY_PATH
18725   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18726   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18727   ;;
18728
18729 solaris*)
18730   version_type=linux
18731   need_lib_prefix=no
18732   need_version=no
18733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734   soname_spec='${libname}${release}${shared_ext}$major'
18735   shlibpath_var=LD_LIBRARY_PATH
18736   shlibpath_overrides_runpath=yes
18737   hardcode_into_libs=yes
18738   # ldd complains unless libraries are executable
18739   postinstall_cmds='chmod +x $lib'
18740   ;;
18741
18742 sunos4*)
18743   version_type=sunos
18744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18745   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18746   shlibpath_var=LD_LIBRARY_PATH
18747   shlibpath_overrides_runpath=yes
18748   if test "$with_gnu_ld" = yes; then
18749     need_lib_prefix=no
18750   fi
18751   need_version=yes
18752   ;;
18753
18754 sysv4 | sysv4.3*)
18755   version_type=linux
18756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757   soname_spec='${libname}${release}${shared_ext}$major'
18758   shlibpath_var=LD_LIBRARY_PATH
18759   case $host_vendor in
18760     sni)
18761       shlibpath_overrides_runpath=no
18762       need_lib_prefix=no
18763       export_dynamic_flag_spec='${wl}-Blargedynsym'
18764       runpath_var=LD_RUN_PATH
18765       ;;
18766     siemens)
18767       need_lib_prefix=no
18768       ;;
18769     motorola)
18770       need_lib_prefix=no
18771       need_version=no
18772       shlibpath_overrides_runpath=no
18773       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18774       ;;
18775   esac
18776   ;;
18777
18778 sysv4*MP*)
18779   if test -d /usr/nec ;then
18780     version_type=linux
18781     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18782     soname_spec='$libname${shared_ext}.$major'
18783     shlibpath_var=LD_LIBRARY_PATH
18784   fi
18785   ;;
18786
18787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18788   version_type=freebsd-elf
18789   need_lib_prefix=no
18790   need_version=no
18791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18792   soname_spec='${libname}${release}${shared_ext}$major'
18793   shlibpath_var=LD_LIBRARY_PATH
18794   hardcode_into_libs=yes
18795   if test "$with_gnu_ld" = yes; then
18796     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18797     shlibpath_overrides_runpath=no
18798   else
18799     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18800     shlibpath_overrides_runpath=yes
18801     case $host_os in
18802       sco3.2v5*)
18803         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18804         ;;
18805     esac
18806   fi
18807   sys_lib_dlsearch_path_spec='/usr/lib'
18808   ;;
18809
18810 uts4*)
18811   version_type=linux
18812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813   soname_spec='${libname}${release}${shared_ext}$major'
18814   shlibpath_var=LD_LIBRARY_PATH
18815   ;;
18816
18817 *)
18818   dynamic_linker=no
18819   ;;
18820 esac
18821 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18822 echo "${ECHO_T}$dynamic_linker" >&6; }
18823 test "$dynamic_linker" = no && can_build_shared=no
18824
18825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18826 if test "$GCC" = yes; then
18827   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18828 fi
18829
18830 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18832 hardcode_action_GCJ=
18833 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18834    test -n "$runpath_var_GCJ" || \
18835    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18836
18837   # We can hardcode non-existant directories.
18838   if test "$hardcode_direct_GCJ" != no &&
18839      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18840      # have to relink, otherwise we might link with an installed library
18841      # when we should be linking with a yet-to-be-installed one
18842      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18843      test "$hardcode_minus_L_GCJ" != no; then
18844     # Linking always hardcodes the temporary library directory.
18845     hardcode_action_GCJ=relink
18846   else
18847     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18848     hardcode_action_GCJ=immediate
18849   fi
18850 else
18851   # We cannot hardcode anything, or else we can only hardcode existing
18852   # directories.
18853   hardcode_action_GCJ=unsupported
18854 fi
18855 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18856 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18857
18858 if test "$hardcode_action_GCJ" = relink; then
18859   # Fast installation is not supported
18860   enable_fast_install=no
18861 elif test "$shlibpath_overrides_runpath" = yes ||
18862      test "$enable_shared" = no; then
18863   # Fast installation is not necessary
18864   enable_fast_install=needless
18865 fi
18866
18867
18868 # The else clause should only fire when bootstrapping the
18869 # libtool distribution, otherwise you forgot to ship ltmain.sh
18870 # with your package, and you will get complaints that there are
18871 # no rules to generate ltmain.sh.
18872 if test -f "$ltmain"; then
18873   # See if we are running on zsh, and set the options which allow our commands through
18874   # without removal of \ escapes.
18875   if test -n "${ZSH_VERSION+set}" ; then
18876     setopt NO_GLOB_SUBST
18877   fi
18878   # Now quote all the things that may contain metacharacters while being
18879   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18880   # variables and quote the copies for generation of the libtool script.
18881   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18882     SED SHELL STRIP \
18883     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18884     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18885     deplibs_check_method reload_flag reload_cmds need_locks \
18886     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18887     lt_cv_sys_global_symbol_to_c_name_address \
18888     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18889     old_postinstall_cmds old_postuninstall_cmds \
18890     compiler_GCJ \
18891     CC_GCJ \
18892     LD_GCJ \
18893     lt_prog_compiler_wl_GCJ \
18894     lt_prog_compiler_pic_GCJ \
18895     lt_prog_compiler_static_GCJ \
18896     lt_prog_compiler_no_builtin_flag_GCJ \
18897     export_dynamic_flag_spec_GCJ \
18898     thread_safe_flag_spec_GCJ \
18899     whole_archive_flag_spec_GCJ \
18900     enable_shared_with_static_runtimes_GCJ \
18901     old_archive_cmds_GCJ \
18902     old_archive_from_new_cmds_GCJ \
18903     predep_objects_GCJ \
18904     postdep_objects_GCJ \
18905     predeps_GCJ \
18906     postdeps_GCJ \
18907     compiler_lib_search_path_GCJ \
18908     archive_cmds_GCJ \
18909     archive_expsym_cmds_GCJ \
18910     postinstall_cmds_GCJ \
18911     postuninstall_cmds_GCJ \
18912     old_archive_from_expsyms_cmds_GCJ \
18913     allow_undefined_flag_GCJ \
18914     no_undefined_flag_GCJ \
18915     export_symbols_cmds_GCJ \
18916     hardcode_libdir_flag_spec_GCJ \
18917     hardcode_libdir_flag_spec_ld_GCJ \
18918     hardcode_libdir_separator_GCJ \
18919     hardcode_automatic_GCJ \
18920     module_cmds_GCJ \
18921     module_expsym_cmds_GCJ \
18922     lt_cv_prog_compiler_c_o_GCJ \
18923     exclude_expsyms_GCJ \
18924     include_expsyms_GCJ; do
18925
18926     case $var in
18927     old_archive_cmds_GCJ | \
18928     old_archive_from_new_cmds_GCJ | \
18929     archive_cmds_GCJ | \
18930     archive_expsym_cmds_GCJ | \
18931     module_cmds_GCJ | \
18932     module_expsym_cmds_GCJ | \
18933     old_archive_from_expsyms_cmds_GCJ | \
18934     export_symbols_cmds_GCJ | \
18935     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18936     postinstall_cmds | postuninstall_cmds | \
18937     old_postinstall_cmds | old_postuninstall_cmds | \
18938     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18939       # Double-quote double-evaled strings.
18940       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18941       ;;
18942     *)
18943       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18944       ;;
18945     esac
18946   done
18947
18948   case $lt_echo in
18949   *'\$0 --fallback-echo"')
18950     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18951     ;;
18952   esac
18953
18954 cfgfile="$ofile"
18955
18956   cat <<__EOF__ >> "$cfgfile"
18957 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18958
18959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18960
18961 # Shell to use when invoking shell scripts.
18962 SHELL=$lt_SHELL
18963
18964 # Whether or not to build shared libraries.
18965 build_libtool_libs=$enable_shared
18966
18967 # Whether or not to build static libraries.
18968 build_old_libs=$enable_static
18969
18970 # Whether or not to add -lc for building shared libraries.
18971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18972
18973 # Whether or not to disallow shared libs when runtime libs are static
18974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18975
18976 # Whether or not to optimize for fast installation.
18977 fast_install=$enable_fast_install
18978
18979 # The host system.
18980 host_alias=$host_alias
18981 host=$host
18982 host_os=$host_os
18983
18984 # The build system.
18985 build_alias=$build_alias
18986 build=$build
18987 build_os=$build_os
18988
18989 # An echo program that does not interpret backslashes.
18990 echo=$lt_echo
18991
18992 # The archiver.
18993 AR=$lt_AR
18994 AR_FLAGS=$lt_AR_FLAGS
18995
18996 # A C compiler.
18997 LTCC=$lt_LTCC
18998
18999 # LTCC compiler flags.
19000 LTCFLAGS=$lt_LTCFLAGS
19001
19002 # A language-specific compiler.
19003 CC=$lt_compiler_GCJ
19004
19005 # Is the compiler the GNU C compiler?
19006 with_gcc=$GCC_GCJ
19007
19008 # An ERE matcher.
19009 EGREP=$lt_EGREP
19010
19011 # The linker used to build libraries.
19012 LD=$lt_LD_GCJ
19013
19014 # Whether we need hard or soft links.
19015 LN_S=$lt_LN_S
19016
19017 # A BSD-compatible nm program.
19018 NM=$lt_NM
19019
19020 # A symbol stripping program
19021 STRIP=$lt_STRIP
19022
19023 # Used to examine libraries when file_magic_cmd begins "file"
19024 MAGIC_CMD=$MAGIC_CMD
19025
19026 # Used on cygwin: DLL creation program.
19027 DLLTOOL="$DLLTOOL"
19028
19029 # Used on cygwin: object dumper.
19030 OBJDUMP="$OBJDUMP"
19031
19032 # Used on cygwin: assembler.
19033 AS="$AS"
19034
19035 # The name of the directory that contains temporary libtool files.
19036 objdir=$objdir
19037
19038 # How to create reloadable object files.
19039 reload_flag=$lt_reload_flag
19040 reload_cmds=$lt_reload_cmds
19041
19042 # How to pass a linker flag through the compiler.
19043 wl=$lt_lt_prog_compiler_wl_GCJ
19044
19045 # Object file suffix (normally "o").
19046 objext="$ac_objext"
19047
19048 # Old archive suffix (normally "a").
19049 libext="$libext"
19050
19051 # Shared library suffix (normally ".so").
19052 shrext_cmds='$shrext_cmds'
19053
19054 # Executable file suffix (normally "").
19055 exeext="$exeext"
19056
19057 # Additional compiler flags for building library objects.
19058 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19059 pic_mode=$pic_mode
19060
19061 # What is the maximum length of a command?
19062 max_cmd_len=$lt_cv_sys_max_cmd_len
19063
19064 # Does compiler simultaneously support -c and -o options?
19065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19066
19067 # Must we lock files when doing compilation?
19068 need_locks=$lt_need_locks
19069
19070 # Do we need the lib prefix for modules?
19071 need_lib_prefix=$need_lib_prefix
19072
19073 # Do we need a version for libraries?
19074 need_version=$need_version
19075
19076 # Whether dlopen is supported.
19077 dlopen_support=$enable_dlopen
19078
19079 # Whether dlopen of programs is supported.
19080 dlopen_self=$enable_dlopen_self
19081
19082 # Whether dlopen of statically linked programs is supported.
19083 dlopen_self_static=$enable_dlopen_self_static
19084
19085 # Compiler flag to prevent dynamic linking.
19086 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19087
19088 # Compiler flag to turn off builtin functions.
19089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19090
19091 # Compiler flag to allow reflexive dlopens.
19092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19093
19094 # Compiler flag to generate shared objects directly from archives.
19095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19096
19097 # Compiler flag to generate thread-safe objects.
19098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19099
19100 # Library versioning type.
19101 version_type=$version_type
19102
19103 # Format of library name prefix.
19104 libname_spec=$lt_libname_spec
19105
19106 # List of archive names.  First name is the real one, the rest are links.
19107 # The last name is the one that the linker finds with -lNAME.
19108 library_names_spec=$lt_library_names_spec
19109
19110 # The coded name of the library, if different from the real name.
19111 soname_spec=$lt_soname_spec
19112
19113 # Commands used to build and install an old-style archive.
19114 RANLIB=$lt_RANLIB
19115 old_archive_cmds=$lt_old_archive_cmds_GCJ
19116 old_postinstall_cmds=$lt_old_postinstall_cmds
19117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19118
19119 # Create an old-style archive from a shared archive.
19120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19121
19122 # Create a temporary old-style archive to link instead of a shared archive.
19123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19124
19125 # Commands used to build and install a shared archive.
19126 archive_cmds=$lt_archive_cmds_GCJ
19127 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19128 postinstall_cmds=$lt_postinstall_cmds
19129 postuninstall_cmds=$lt_postuninstall_cmds
19130
19131 # Commands used to build a loadable module (assumed same as above if empty)
19132 module_cmds=$lt_module_cmds_GCJ
19133 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19134
19135 # Commands to strip libraries.
19136 old_striplib=$lt_old_striplib
19137 striplib=$lt_striplib
19138
19139 # Dependencies to place before the objects being linked to create a
19140 # shared library.
19141 predep_objects=$lt_predep_objects_GCJ
19142
19143 # Dependencies to place after the objects being linked to create a
19144 # shared library.
19145 postdep_objects=$lt_postdep_objects_GCJ
19146
19147 # Dependencies to place before the objects being linked to create a
19148 # shared library.
19149 predeps=$lt_predeps_GCJ
19150
19151 # Dependencies to place after the objects being linked to create a
19152 # shared library.
19153 postdeps=$lt_postdeps_GCJ
19154
19155 # The library search path used internally by the compiler when linking
19156 # a shared library.
19157 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19158
19159 # Method to check whether dependent libraries are shared objects.
19160 deplibs_check_method=$lt_deplibs_check_method
19161
19162 # Command to use when deplibs_check_method == file_magic.
19163 file_magic_cmd=$lt_file_magic_cmd
19164
19165 # Flag that allows shared libraries with undefined symbols to be built.
19166 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19167
19168 # Flag that forces no undefined symbols.
19169 no_undefined_flag=$lt_no_undefined_flag_GCJ
19170
19171 # Commands used to finish a libtool library installation in a directory.
19172 finish_cmds=$lt_finish_cmds
19173
19174 # Same as above, but a single script fragment to be evaled but not shown.
19175 finish_eval=$lt_finish_eval
19176
19177 # Take the output of nm and produce a listing of raw symbols and C names.
19178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19179
19180 # Transform the output of nm in a proper C declaration
19181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19182
19183 # Transform the output of nm in a C name address pair
19184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19185
19186 # This is the shared library runtime path variable.
19187 runpath_var=$runpath_var
19188
19189 # This is the shared library path variable.
19190 shlibpath_var=$shlibpath_var
19191
19192 # Is shlibpath searched before the hard-coded library search path?
19193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19194
19195 # How to hardcode a shared library path into an executable.
19196 hardcode_action=$hardcode_action_GCJ
19197
19198 # Whether we should hardcode library paths into libraries.
19199 hardcode_into_libs=$hardcode_into_libs
19200
19201 # Flag to hardcode \$libdir into a binary during linking.
19202 # This must work even if \$libdir does not exist.
19203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19204
19205 # If ld is used when linking, flag to hardcode \$libdir into
19206 # a binary during linking. This must work even if \$libdir does
19207 # not exist.
19208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19209
19210 # Whether we need a single -rpath flag with a separated argument.
19211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19212
19213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19214 # resulting binary.
19215 hardcode_direct=$hardcode_direct_GCJ
19216
19217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19218 # resulting binary.
19219 hardcode_minus_L=$hardcode_minus_L_GCJ
19220
19221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19222 # the resulting binary.
19223 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19224
19225 # Set to yes if building a shared library automatically hardcodes DIR into the library
19226 # and all subsequent libraries and executables linked against it.
19227 hardcode_automatic=$hardcode_automatic_GCJ
19228
19229 # Variables whose values should be saved in libtool wrapper scripts and
19230 # restored at relink time.
19231 variables_saved_for_relink="$variables_saved_for_relink"
19232
19233 # Whether libtool must link a program against all its dependency libraries.
19234 link_all_deplibs=$link_all_deplibs_GCJ
19235
19236 # Compile-time system search path for libraries
19237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19238
19239 # Run-time system search path for libraries
19240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19241
19242 # Fix the shell variable \$srcfile for the compiler.
19243 fix_srcfile_path="$fix_srcfile_path_GCJ"
19244
19245 # Set to yes if exported symbols are required.
19246 always_export_symbols=$always_export_symbols_GCJ
19247
19248 # The commands to list exported symbols.
19249 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19250
19251 # The commands to extract the exported symbol list from a shared archive.
19252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19253
19254 # Symbols that should not be listed in the preloaded symbols.
19255 exclude_expsyms=$lt_exclude_expsyms_GCJ
19256
19257 # Symbols that must always be exported.
19258 include_expsyms=$lt_include_expsyms_GCJ
19259
19260 # ### END LIBTOOL TAG CONFIG: $tagname
19261
19262 __EOF__
19263
19264
19265 else
19266   # If there is no Makefile yet, we rely on a make rule to execute
19267   # `config.status --recheck' to rerun these tests and create the
19268   # libtool script then.
19269   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19270   if test -f "$ltmain_in"; then
19271     test -f Makefile && make "$ltmain"
19272   fi
19273 fi
19274
19275
19276 ac_ext=c
19277 ac_cpp='$CPP $CPPFLAGS'
19278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
19282 CC="$lt_save_CC"
19283
19284         else
19285           tagname=""
19286         fi
19287         ;;
19288
19289       RC)
19290
19291
19292 # Source file extension for RC test sources.
19293 ac_ext=rc
19294
19295 # Object file extension for compiled RC test sources.
19296 objext=o
19297 objext_RC=$objext
19298
19299 # Code to be used in simple compile tests
19300 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19301
19302 # Code to be used in simple link tests
19303 lt_simple_link_test_code="$lt_simple_compile_test_code"
19304
19305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19306
19307 # If no C compiler was specified, use CC.
19308 LTCC=${LTCC-"$CC"}
19309
19310 # If no C compiler flags were specified, use CFLAGS.
19311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19312
19313 # Allow CC to be a program name with arguments.
19314 compiler=$CC
19315
19316
19317 # save warnings/boilerplate of simple test code
19318 ac_outfile=conftest.$ac_objext
19319 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19321 _lt_compiler_boilerplate=`cat conftest.err`
19322 $rm conftest*
19323
19324 ac_outfile=conftest.$ac_objext
19325 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19327 _lt_linker_boilerplate=`cat conftest.err`
19328 $rm conftest*
19329
19330
19331 # Allow CC to be a program name with arguments.
19332 lt_save_CC="$CC"
19333 CC=${RC-"windres"}
19334 compiler=$CC
19335 compiler_RC=$CC
19336 for cc_temp in $compiler""; do
19337   case $cc_temp in
19338     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19339     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19340     \-*) ;;
19341     *) break;;
19342   esac
19343 done
19344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19345
19346 lt_cv_prog_compiler_c_o_RC=yes
19347
19348 # The else clause should only fire when bootstrapping the
19349 # libtool distribution, otherwise you forgot to ship ltmain.sh
19350 # with your package, and you will get complaints that there are
19351 # no rules to generate ltmain.sh.
19352 if test -f "$ltmain"; then
19353   # See if we are running on zsh, and set the options which allow our commands through
19354   # without removal of \ escapes.
19355   if test -n "${ZSH_VERSION+set}" ; then
19356     setopt NO_GLOB_SUBST
19357   fi
19358   # Now quote all the things that may contain metacharacters while being
19359   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19360   # variables and quote the copies for generation of the libtool script.
19361   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19362     SED SHELL STRIP \
19363     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19364     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19365     deplibs_check_method reload_flag reload_cmds need_locks \
19366     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19367     lt_cv_sys_global_symbol_to_c_name_address \
19368     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19369     old_postinstall_cmds old_postuninstall_cmds \
19370     compiler_RC \
19371     CC_RC \
19372     LD_RC \
19373     lt_prog_compiler_wl_RC \
19374     lt_prog_compiler_pic_RC \
19375     lt_prog_compiler_static_RC \
19376     lt_prog_compiler_no_builtin_flag_RC \
19377     export_dynamic_flag_spec_RC \
19378     thread_safe_flag_spec_RC \
19379     whole_archive_flag_spec_RC \
19380     enable_shared_with_static_runtimes_RC \
19381     old_archive_cmds_RC \
19382     old_archive_from_new_cmds_RC \
19383     predep_objects_RC \
19384     postdep_objects_RC \
19385     predeps_RC \
19386     postdeps_RC \
19387     compiler_lib_search_path_RC \
19388     archive_cmds_RC \
19389     archive_expsym_cmds_RC \
19390     postinstall_cmds_RC \
19391     postuninstall_cmds_RC \
19392     old_archive_from_expsyms_cmds_RC \
19393     allow_undefined_flag_RC \
19394     no_undefined_flag_RC \
19395     export_symbols_cmds_RC \
19396     hardcode_libdir_flag_spec_RC \
19397     hardcode_libdir_flag_spec_ld_RC \
19398     hardcode_libdir_separator_RC \
19399     hardcode_automatic_RC \
19400     module_cmds_RC \
19401     module_expsym_cmds_RC \
19402     lt_cv_prog_compiler_c_o_RC \
19403     exclude_expsyms_RC \
19404     include_expsyms_RC; do
19405
19406     case $var in
19407     old_archive_cmds_RC | \
19408     old_archive_from_new_cmds_RC | \
19409     archive_cmds_RC | \
19410     archive_expsym_cmds_RC | \
19411     module_cmds_RC | \
19412     module_expsym_cmds_RC | \
19413     old_archive_from_expsyms_cmds_RC | \
19414     export_symbols_cmds_RC | \
19415     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19416     postinstall_cmds | postuninstall_cmds | \
19417     old_postinstall_cmds | old_postuninstall_cmds | \
19418     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19419       # Double-quote double-evaled strings.
19420       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19421       ;;
19422     *)
19423       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19424       ;;
19425     esac
19426   done
19427
19428   case $lt_echo in
19429   *'\$0 --fallback-echo"')
19430     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19431     ;;
19432   esac
19433
19434 cfgfile="$ofile"
19435
19436   cat <<__EOF__ >> "$cfgfile"
19437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19438
19439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19440
19441 # Shell to use when invoking shell scripts.
19442 SHELL=$lt_SHELL
19443
19444 # Whether or not to build shared libraries.
19445 build_libtool_libs=$enable_shared
19446
19447 # Whether or not to build static libraries.
19448 build_old_libs=$enable_static
19449
19450 # Whether or not to add -lc for building shared libraries.
19451 build_libtool_need_lc=$archive_cmds_need_lc_RC
19452
19453 # Whether or not to disallow shared libs when runtime libs are static
19454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19455
19456 # Whether or not to optimize for fast installation.
19457 fast_install=$enable_fast_install
19458
19459 # The host system.
19460 host_alias=$host_alias
19461 host=$host
19462 host_os=$host_os
19463
19464 # The build system.
19465 build_alias=$build_alias
19466 build=$build
19467 build_os=$build_os
19468
19469 # An echo program that does not interpret backslashes.
19470 echo=$lt_echo
19471
19472 # The archiver.
19473 AR=$lt_AR
19474 AR_FLAGS=$lt_AR_FLAGS
19475
19476 # A C compiler.
19477 LTCC=$lt_LTCC
19478
19479 # LTCC compiler flags.
19480 LTCFLAGS=$lt_LTCFLAGS
19481
19482 # A language-specific compiler.
19483 CC=$lt_compiler_RC
19484
19485 # Is the compiler the GNU C compiler?
19486 with_gcc=$GCC_RC
19487
19488 # An ERE matcher.
19489 EGREP=$lt_EGREP
19490
19491 # The linker used to build libraries.
19492 LD=$lt_LD_RC
19493
19494 # Whether we need hard or soft links.
19495 LN_S=$lt_LN_S
19496
19497 # A BSD-compatible nm program.
19498 NM=$lt_NM
19499
19500 # A symbol stripping program
19501 STRIP=$lt_STRIP
19502
19503 # Used to examine libraries when file_magic_cmd begins "file"
19504 MAGIC_CMD=$MAGIC_CMD
19505
19506 # Used on cygwin: DLL creation program.
19507 DLLTOOL="$DLLTOOL"
19508
19509 # Used on cygwin: object dumper.
19510 OBJDUMP="$OBJDUMP"
19511
19512 # Used on cygwin: assembler.
19513 AS="$AS"
19514
19515 # The name of the directory that contains temporary libtool files.
19516 objdir=$objdir
19517
19518 # How to create reloadable object files.
19519 reload_flag=$lt_reload_flag
19520 reload_cmds=$lt_reload_cmds
19521
19522 # How to pass a linker flag through the compiler.
19523 wl=$lt_lt_prog_compiler_wl_RC
19524
19525 # Object file suffix (normally "o").
19526 objext="$ac_objext"
19527
19528 # Old archive suffix (normally "a").
19529 libext="$libext"
19530
19531 # Shared library suffix (normally ".so").
19532 shrext_cmds='$shrext_cmds'
19533
19534 # Executable file suffix (normally "").
19535 exeext="$exeext"
19536
19537 # Additional compiler flags for building library objects.
19538 pic_flag=$lt_lt_prog_compiler_pic_RC
19539 pic_mode=$pic_mode
19540
19541 # What is the maximum length of a command?
19542 max_cmd_len=$lt_cv_sys_max_cmd_len
19543
19544 # Does compiler simultaneously support -c and -o options?
19545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19546
19547 # Must we lock files when doing compilation?
19548 need_locks=$lt_need_locks
19549
19550 # Do we need the lib prefix for modules?
19551 need_lib_prefix=$need_lib_prefix
19552
19553 # Do we need a version for libraries?
19554 need_version=$need_version
19555
19556 # Whether dlopen is supported.
19557 dlopen_support=$enable_dlopen
19558
19559 # Whether dlopen of programs is supported.
19560 dlopen_self=$enable_dlopen_self
19561
19562 # Whether dlopen of statically linked programs is supported.
19563 dlopen_self_static=$enable_dlopen_self_static
19564
19565 # Compiler flag to prevent dynamic linking.
19566 link_static_flag=$lt_lt_prog_compiler_static_RC
19567
19568 # Compiler flag to turn off builtin functions.
19569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19570
19571 # Compiler flag to allow reflexive dlopens.
19572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19573
19574 # Compiler flag to generate shared objects directly from archives.
19575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19576
19577 # Compiler flag to generate thread-safe objects.
19578 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19579
19580 # Library versioning type.
19581 version_type=$version_type
19582
19583 # Format of library name prefix.
19584 libname_spec=$lt_libname_spec
19585
19586 # List of archive names.  First name is the real one, the rest are links.
19587 # The last name is the one that the linker finds with -lNAME.
19588 library_names_spec=$lt_library_names_spec
19589
19590 # The coded name of the library, if different from the real name.
19591 soname_spec=$lt_soname_spec
19592
19593 # Commands used to build and install an old-style archive.
19594 RANLIB=$lt_RANLIB
19595 old_archive_cmds=$lt_old_archive_cmds_RC
19596 old_postinstall_cmds=$lt_old_postinstall_cmds
19597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19598
19599 # Create an old-style archive from a shared archive.
19600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19601
19602 # Create a temporary old-style archive to link instead of a shared archive.
19603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19604
19605 # Commands used to build and install a shared archive.
19606 archive_cmds=$lt_archive_cmds_RC
19607 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19608 postinstall_cmds=$lt_postinstall_cmds
19609 postuninstall_cmds=$lt_postuninstall_cmds
19610
19611 # Commands used to build a loadable module (assumed same as above if empty)
19612 module_cmds=$lt_module_cmds_RC
19613 module_expsym_cmds=$lt_module_expsym_cmds_RC
19614
19615 # Commands to strip libraries.
19616 old_striplib=$lt_old_striplib
19617 striplib=$lt_striplib
19618
19619 # Dependencies to place before the objects being linked to create a
19620 # shared library.
19621 predep_objects=$lt_predep_objects_RC
19622
19623 # Dependencies to place after the objects being linked to create a
19624 # shared library.
19625 postdep_objects=$lt_postdep_objects_RC
19626
19627 # Dependencies to place before the objects being linked to create a
19628 # shared library.
19629 predeps=$lt_predeps_RC
19630
19631 # Dependencies to place after the objects being linked to create a
19632 # shared library.
19633 postdeps=$lt_postdeps_RC
19634
19635 # The library search path used internally by the compiler when linking
19636 # a shared library.
19637 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19638
19639 # Method to check whether dependent libraries are shared objects.
19640 deplibs_check_method=$lt_deplibs_check_method
19641
19642 # Command to use when deplibs_check_method == file_magic.
19643 file_magic_cmd=$lt_file_magic_cmd
19644
19645 # Flag that allows shared libraries with undefined symbols to be built.
19646 allow_undefined_flag=$lt_allow_undefined_flag_RC
19647
19648 # Flag that forces no undefined symbols.
19649 no_undefined_flag=$lt_no_undefined_flag_RC
19650
19651 # Commands used to finish a libtool library installation in a directory.
19652 finish_cmds=$lt_finish_cmds
19653
19654 # Same as above, but a single script fragment to be evaled but not shown.
19655 finish_eval=$lt_finish_eval
19656
19657 # Take the output of nm and produce a listing of raw symbols and C names.
19658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19659
19660 # Transform the output of nm in a proper C declaration
19661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19662
19663 # Transform the output of nm in a C name address pair
19664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19665
19666 # This is the shared library runtime path variable.
19667 runpath_var=$runpath_var
19668
19669 # This is the shared library path variable.
19670 shlibpath_var=$shlibpath_var
19671
19672 # Is shlibpath searched before the hard-coded library search path?
19673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19674
19675 # How to hardcode a shared library path into an executable.
19676 hardcode_action=$hardcode_action_RC
19677
19678 # Whether we should hardcode library paths into libraries.
19679 hardcode_into_libs=$hardcode_into_libs
19680
19681 # Flag to hardcode \$libdir into a binary during linking.
19682 # This must work even if \$libdir does not exist.
19683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19684
19685 # If ld is used when linking, flag to hardcode \$libdir into
19686 # a binary during linking. This must work even if \$libdir does
19687 # not exist.
19688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19689
19690 # Whether we need a single -rpath flag with a separated argument.
19691 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19692
19693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19694 # resulting binary.
19695 hardcode_direct=$hardcode_direct_RC
19696
19697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19698 # resulting binary.
19699 hardcode_minus_L=$hardcode_minus_L_RC
19700
19701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19702 # the resulting binary.
19703 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19704
19705 # Set to yes if building a shared library automatically hardcodes DIR into the library
19706 # and all subsequent libraries and executables linked against it.
19707 hardcode_automatic=$hardcode_automatic_RC
19708
19709 # Variables whose values should be saved in libtool wrapper scripts and
19710 # restored at relink time.
19711 variables_saved_for_relink="$variables_saved_for_relink"
19712
19713 # Whether libtool must link a program against all its dependency libraries.
19714 link_all_deplibs=$link_all_deplibs_RC
19715
19716 # Compile-time system search path for libraries
19717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19718
19719 # Run-time system search path for libraries
19720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19721
19722 # Fix the shell variable \$srcfile for the compiler.
19723 fix_srcfile_path="$fix_srcfile_path_RC"
19724
19725 # Set to yes if exported symbols are required.
19726 always_export_symbols=$always_export_symbols_RC
19727
19728 # The commands to list exported symbols.
19729 export_symbols_cmds=$lt_export_symbols_cmds_RC
19730
19731 # The commands to extract the exported symbol list from a shared archive.
19732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19733
19734 # Symbols that should not be listed in the preloaded symbols.
19735 exclude_expsyms=$lt_exclude_expsyms_RC
19736
19737 # Symbols that must always be exported.
19738 include_expsyms=$lt_include_expsyms_RC
19739
19740 # ### END LIBTOOL TAG CONFIG: $tagname
19741
19742 __EOF__
19743
19744
19745 else
19746   # If there is no Makefile yet, we rely on a make rule to execute
19747   # `config.status --recheck' to rerun these tests and create the
19748   # libtool script then.
19749   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19750   if test -f "$ltmain_in"; then
19751     test -f Makefile && make "$ltmain"
19752   fi
19753 fi
19754
19755
19756 ac_ext=c
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762 CC="$lt_save_CC"
19763
19764         ;;
19765
19766       *)
19767         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19768 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19769    { (exit 1); exit 1; }; }
19770         ;;
19771       esac
19772
19773       # Append the new tag name to the list of available tags.
19774       if test -n "$tagname" ; then
19775       available_tags="$available_tags $tagname"
19776     fi
19777     fi
19778   done
19779   IFS="$lt_save_ifs"
19780
19781   # Now substitute the updated list of available tags.
19782   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19783     mv "${ofile}T" "$ofile"
19784     chmod +x "$ofile"
19785   else
19786     rm -f "${ofile}T"
19787     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19788 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19789    { (exit 1); exit 1; }; }
19790   fi
19791 fi
19792
19793
19794
19795 # This can be used to rebuild libtool when needed
19796 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19797
19798 # Always use our own libtool.
19799 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19800
19801 # Prevent multiple expansion
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822 # Extract the first word of "pkg-config", so it can be a program name with args.
19823 set dummy pkg-config; ac_word=$2
19824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19826 if test "${ac_cv_path_pkgconfigpath+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   case $pkgconfigpath in
19830   [\\/]* | ?:[\\/]*)
19831   ac_cv_path_pkgconfigpath="$pkgconfigpath" # Let the user override the test with a path.
19832   ;;
19833   *)
19834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19836 do
19837   IFS=$as_save_IFS
19838   test -z "$as_dir" && as_dir=.
19839   for ac_exec_ext in '' $ac_executable_extensions; do
19840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19841     ac_cv_path_pkgconfigpath="$as_dir/$ac_word$ac_exec_ext"
19842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19843     break 2
19844   fi
19845 done
19846 done
19847 IFS=$as_save_IFS
19848
19849   test -z "$ac_cv_path_pkgconfigpath" && ac_cv_path_pkgconfigpath="NONE"
19850   ;;
19851 esac
19852 fi
19853 pkgconfigpath=$ac_cv_path_pkgconfigpath
19854 if test -n "$pkgconfigpath"; then
19855   { echo "$as_me:$LINENO: result: $pkgconfigpath" >&5
19856 echo "${ECHO_T}$pkgconfigpath" >&6; }
19857 else
19858   { echo "$as_me:$LINENO: result: no" >&5
19859 echo "${ECHO_T}no" >&6; }
19860 fi
19861
19862
19863
19864
19865 XSLTPROC_COMPILE='xsltproc -path ".:$(srcdir)"'
19866
19867 MAN_COMPILE='$(XSLTPROC_COMPILE) common/id.man.xsl'
19868
19869 HTML_COMPILE='$(XSLTPROC_COMPILE) common/id.htmlhelp.xsl'
19870
19871 TKL_COMPILE='$(XSLTPROC_COMPILE) common/id.tkl.xsl'
19872
19873
19874
19875 # Check whether --with-docbook-dtd was given.
19876 if test "${with_docbook_dtd+set}" = set; then
19877   withval=$with_docbook_dtd;
19878         if test -f "$withval/docbookx.dtd"; then
19879                 DTD_DIR=$withval
19880         fi
19881
19882 else
19883
19884         { echo "$as_me:$LINENO: checking for docbookx.dtd" >&5
19885 echo $ECHO_N "checking for docbookx.dtd... $ECHO_C" >&6; }
19886         DTD_DIR=""
19887         for d in /usr/lib/sgml/dtd/docbook-xml \
19888                  /usr/share/sgml/docbook/dtd/4.2 \
19889                  /usr/share/sgml/docbook/dtd/xml/4.* \
19890                  /usr/share/sgml/docbook/xml-dtd-4.* \
19891                 /usr/local/share/xml/docbook/4.*
19892         do
19893                 if test -f $d/docbookx.dtd; then
19894                         DTD_DIR=$d
19895                 fi
19896         done
19897         if test -z "$DTD_DIR"; then
19898                 { echo "$as_me:$LINENO: result: Not found" >&5
19899 echo "${ECHO_T}Not found" >&6; }
19900         else
19901                 { echo "$as_me:$LINENO: result: $d" >&5
19902 echo "${ECHO_T}$d" >&6; }
19903         fi
19904
19905 fi
19906
19907
19908
19909 # Check whether --with-docbook-dsssl was given.
19910 if test "${with_docbook_dsssl+set}" = set; then
19911   withval=$with_docbook_dsssl;
19912         if test -f "$withval/html/docbook.dsl"; then
19913                 DSSSL_DIR=$withval
19914         fi
19915
19916 else
19917
19918         { echo "$as_me:$LINENO: checking for docbook.dsl" >&5
19919 echo $ECHO_N "checking for docbook.dsl... $ECHO_C" >&6; }
19920         DSSSL_DIR=""
19921         for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
19922                 /usr/share/sgml/docbook/dsssl-stylesheets-1.* \
19923                 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh \
19924                 /usr/local/share/sgml/docbook/dsssl/modular
19925         do
19926                 if test -f $d/html/docbook.dsl; then
19927                         { echo "$as_me:$LINENO: result: $d" >&5
19928 echo "${ECHO_T}$d" >&6; }
19929                         DSSSL_DIR=$d
19930                         break
19931                 fi
19932         done
19933         if test -z "$DSSSL_DIR"; then
19934                 { echo "$as_me:$LINENO: result: Not found" >&5
19935 echo "${ECHO_T}Not found" >&6; }
19936         fi
19937
19938 fi
19939
19940
19941
19942 # Check whether --with-docbook-xsl was given.
19943 if test "${with_docbook_xsl+set}" = set; then
19944   withval=$with_docbook_xsl;
19945         if test -f "$withval/htmlhelp/htmlhelp.xsl"; then
19946                 XSL_DIR=$withval
19947         fi
19948
19949 else
19950
19951         { echo "$as_me:$LINENO: checking for htmlhelp.xsl" >&5
19952 echo $ECHO_N "checking for htmlhelp.xsl... $ECHO_C" >&6; }
19953         for d in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh \
19954                 /usr/local/share/xsl/docbook \
19955                 /usr/share/sgml/docbook/xsl-stylesheets-1.*
19956         do
19957                 if test -f $d/htmlhelp/htmlhelp.xsl; then
19958                         { echo "$as_me:$LINENO: result: $d" >&5
19959 echo "${ECHO_T}$d" >&6; }
19960                         XSL_DIR=$d
19961                         break
19962                 fi
19963         done
19964         if test -z "$XSL_DIR"; then
19965                 { echo "$as_me:$LINENO: result: Not found" >&5
19966 echo "${ECHO_T}Not found" >&6; }
19967         fi
19968
19969 fi
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986 for ac_header in dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/un.h sys/wait.h unistd.h
19987 do
19988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19990   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 fi
19995 ac_res=`eval echo '${'$as_ac_Header'}'`
19996                { echo "$as_me:$LINENO: result: $ac_res" >&5
19997 echo "${ECHO_T}$ac_res" >&6; }
19998 else
19999   # Is the header compilable?
20000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 $ac_includes_default
20009 #include <$ac_header>
20010 _ACEOF
20011 rm -f conftest.$ac_objext
20012 if { (ac_try="$ac_compile"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_compile") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } &&
20025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20026   { (case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_try") 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; } &&
20035          { ac_try='test -s conftest.$ac_objext'
20036   { (case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_try") 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; }; then
20045   ac_header_compiler=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050         ac_header_compiler=no
20051 fi
20052
20053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20055 echo "${ECHO_T}$ac_header_compiler" >&6; }
20056
20057 # Is the header present?
20058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 #include <$ac_header>
20067 _ACEOF
20068 if { (ac_try="$ac_cpp conftest.$ac_ext"
20069 case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } >/dev/null; then
20081   if test -s conftest.err; then
20082     ac_cpp_err=$ac_c_preproc_warn_flag
20083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20084   else
20085     ac_cpp_err=
20086   fi
20087 else
20088   ac_cpp_err=yes
20089 fi
20090 if test -z "$ac_cpp_err"; then
20091   ac_header_preproc=yes
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096   ac_header_preproc=no
20097 fi
20098
20099 rm -f conftest.err conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20101 echo "${ECHO_T}$ac_header_preproc" >&6; }
20102
20103 # So?  What about this header?
20104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20105   yes:no: )
20106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20110     ac_header_preproc=yes
20111     ;;
20112   no:yes:* )
20113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20115     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20116 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20117     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20119     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20120 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20123     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20125     ( cat <<\_ASBOX
20126 ## -------------------------------- ##
20127 ## Report this to adam@indexdata.dk ##
20128 ## -------------------------------- ##
20129 _ASBOX
20130      ) | sed "s/^/$as_me: WARNING:     /" >&2
20131     ;;
20132 esac
20133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   eval "$as_ac_Header=\$ac_header_preproc"
20139 fi
20140 ac_res=`eval echo '${'$as_ac_Header'}'`
20141                { echo "$as_me:$LINENO: result: $ac_res" >&5
20142 echo "${ECHO_T}$ac_res" >&6; }
20143
20144 fi
20145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20146   cat >>confdefs.h <<_ACEOF
20147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20148 _ACEOF
20149
20150 fi
20151
20152 done
20153
20154 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20156 if test "${ac_cv_header_stdc+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 #include <stdlib.h>
20166 #include <stdarg.h>
20167 #include <string.h>
20168 #include <float.h>
20169
20170 int
20171 main ()
20172 {
20173
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185   (eval "$ac_compile") 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest.$ac_objext'
20203   { (case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208   (eval "$ac_try") 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   ac_cv_header_stdc=yes
20213 else
20214   echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217         ac_cv_header_stdc=no
20218 fi
20219
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221
20222 if test $ac_cv_header_stdc = yes; then
20223   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20224   cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h.  */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h.  */
20230 #include <string.h>
20231
20232 _ACEOF
20233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20234   $EGREP "memchr" >/dev/null 2>&1; then
20235   :
20236 else
20237   ac_cv_header_stdc=no
20238 fi
20239 rm -f conftest*
20240
20241 fi
20242
20243 if test $ac_cv_header_stdc = yes; then
20244   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20245   cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 #include <stdlib.h>
20252
20253 _ACEOF
20254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20255   $EGREP "free" >/dev/null 2>&1; then
20256   :
20257 else
20258   ac_cv_header_stdc=no
20259 fi
20260 rm -f conftest*
20261
20262 fi
20263
20264 if test $ac_cv_header_stdc = yes; then
20265   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20266   if test "$cross_compiling" = yes; then
20267   :
20268 else
20269   cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 #include <ctype.h>
20276 #include <stdlib.h>
20277 #if ((' ' & 0x0FF) == 0x020)
20278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20280 #else
20281 # define ISLOWER(c) \
20282                    (('a' <= (c) && (c) <= 'i') \
20283                      || ('j' <= (c) && (c) <= 'r') \
20284                      || ('s' <= (c) && (c) <= 'z'))
20285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20286 #endif
20287
20288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20289 int
20290 main ()
20291 {
20292   int i;
20293   for (i = 0; i < 256; i++)
20294     if (XOR (islower (i), ISLOWER (i))
20295         || toupper (i) != TOUPPER (i))
20296       return 2;
20297   return 0;
20298 }
20299 _ACEOF
20300 rm -f conftest$ac_exeext
20301 if { (ac_try="$ac_link"
20302 case "(($ac_try" in
20303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304   *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307   (eval "$ac_link") 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311   { (case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_try") 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; }; then
20320   :
20321 else
20322   echo "$as_me: program exited with status $ac_status" >&5
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 ( exit $ac_status )
20327 ac_cv_header_stdc=no
20328 fi
20329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20330 fi
20331
20332
20333 fi
20334 fi
20335 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20336 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20337 if test $ac_cv_header_stdc = yes; then
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define STDC_HEADERS 1
20341 _ACEOF
20342
20343 fi
20344
20345 if test "$ac_cv_header_stdc" = "no"; then
20346     { echo "$as_me:$LINENO: WARNING: Your system doesn not seem to support ANSI C" >&5
20347 echo "$as_me: WARNING: Your system doesn not seem to support ANSI C" >&2;}
20348 fi
20349 { echo "$as_me:$LINENO: checking for long long" >&5
20350 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20351 if test "${ac_cv_type_long_long+set}" = set; then
20352   echo $ECHO_N "(cached) $ECHO_C" >&6
20353 else
20354   cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 $ac_includes_default
20361 typedef long long ac__type_new_;
20362 int
20363 main ()
20364 {
20365 if ((ac__type_new_ *) 0)
20366   return 0;
20367 if (sizeof (ac__type_new_))
20368   return 0;
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (ac_try="$ac_compile"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_compile") 2>conftest.er1
20381   ac_status=$?
20382   grep -v '^ *+' conftest.er1 >conftest.err
20383   rm -f conftest.er1
20384   cat conftest.err >&5
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); } &&
20387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20388   { (case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393   (eval "$ac_try") 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; } &&
20397          { ac_try='test -s conftest.$ac_objext'
20398   { (case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_try") 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; }; then
20407   ac_cv_type_long_long=yes
20408 else
20409   echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412         ac_cv_type_long_long=no
20413 fi
20414
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20418 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20419 if test $ac_cv_type_long_long = yes; then
20420
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_LONG_LONG 1
20423 _ACEOF
20424
20425
20426 fi
20427
20428 checkBoth=0
20429 { echo "$as_me:$LINENO: checking for connect" >&5
20430 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20431 if test "${ac_cv_func_connect+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434   cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h.  */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h.  */
20440 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20442 #define connect innocuous_connect
20443
20444 /* System header to define __stub macros and hopefully few prototypes,
20445     which can conflict with char connect (); below.
20446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20447     <limits.h> exists even on freestanding compilers.  */
20448
20449 #ifdef __STDC__
20450 # include <limits.h>
20451 #else
20452 # include <assert.h>
20453 #endif
20454
20455 #undef connect
20456
20457 /* Override any GCC internal prototype to avoid an error.
20458    Use char because int might match the return type of a GCC
20459    builtin and then its argument prototype would still apply.  */
20460 #ifdef __cplusplus
20461 extern "C"
20462 #endif
20463 char connect ();
20464 /* The GNU C library defines this for functions which it implements
20465     to always fail with ENOSYS.  Some functions are actually named
20466     something starting with __ and the normal name is an alias.  */
20467 #if defined __stub_connect || defined __stub___connect
20468 choke me
20469 #endif
20470
20471 int
20472 main ()
20473 {
20474 return connect ();
20475   ;
20476   return 0;
20477 }
20478 _ACEOF
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486   (eval "$ac_link") 2>conftest.er1
20487   ac_status=$?
20488   grep -v '^ *+' conftest.er1 >conftest.err
20489   rm -f conftest.er1
20490   cat conftest.err >&5
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); } &&
20493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494   { (case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_try") 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; } &&
20503          { ac_try='test -s conftest$ac_exeext'
20504   { (case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509   (eval "$ac_try") 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; }; then
20513   ac_cv_func_connect=yes
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518         ac_cv_func_connect=no
20519 fi
20520
20521 rm -f core conftest.err conftest.$ac_objext \
20522       conftest$ac_exeext conftest.$ac_ext
20523 fi
20524 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20525 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20526
20527 if test "$ac_cv_func_connect" = "no"; then
20528     { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20529 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
20530 if test "${ac_cv_lib_socket_main+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   ac_check_lib_save_LIBS=$LIBS
20534 LIBS="-lsocket  $LIBS"
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541
20542
20543 int
20544 main ()
20545 {
20546 return main ();
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (ac_try="$ac_link"
20553 case "(($ac_try" in
20554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555   *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558   (eval "$ac_link") 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } &&
20565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20566   { (case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_try") 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; } &&
20575          { ac_try='test -s conftest$ac_exeext'
20576   { (case "(($ac_try" in
20577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578   *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581   (eval "$ac_try") 2>&5
20582   ac_status=$?
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); }; }; then
20585   ac_cv_lib_socket_main=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590         ac_cv_lib_socket_main=no
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext \
20594       conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20596 fi
20597 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20598 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
20599 if test $ac_cv_lib_socket_main = yes; then
20600   LIBS="$LIBS -lsocket"
20601 else
20602   checkBoth=1
20603 fi
20604
20605 fi
20606 if test "$checkBoth" = "1"; then
20607     oldLibs=$LIBS
20608     LIBS="$LIBS -lsocket -lnsl"
20609     { echo "$as_me:$LINENO: checking for accept" >&5
20610 echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
20611 if test "${ac_cv_func_accept+set}" = set; then
20612   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614   cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
20621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20622 #define accept innocuous_accept
20623
20624 /* System header to define __stub macros and hopefully few prototypes,
20625     which can conflict with char accept (); below.
20626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20627     <limits.h> exists even on freestanding compilers.  */
20628
20629 #ifdef __STDC__
20630 # include <limits.h>
20631 #else
20632 # include <assert.h>
20633 #endif
20634
20635 #undef accept
20636
20637 /* Override any GCC internal prototype to avoid an error.
20638    Use char because int might match the return type of a GCC
20639    builtin and then its argument prototype would still apply.  */
20640 #ifdef __cplusplus
20641 extern "C"
20642 #endif
20643 char accept ();
20644 /* The GNU C library defines this for functions which it implements
20645     to always fail with ENOSYS.  Some functions are actually named
20646     something starting with __ and the normal name is an alias.  */
20647 #if defined __stub_accept || defined __stub___accept
20648 choke me
20649 #endif
20650
20651 int
20652 main ()
20653 {
20654 return accept ();
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (ac_try="$ac_link"
20661 case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_link") 2>conftest.er1
20667   ac_status=$?
20668   grep -v '^ *+' conftest.er1 >conftest.err
20669   rm -f conftest.er1
20670   cat conftest.err >&5
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } &&
20673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20674   { (case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679   (eval "$ac_try") 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; } &&
20683          { ac_try='test -s conftest$ac_exeext'
20684   { (case "(($ac_try" in
20685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686   *) ac_try_echo=$ac_try;;
20687 esac
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689   (eval "$ac_try") 2>&5
20690   ac_status=$?
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); }; }; then
20693   ac_cv_func_accept=yes
20694 else
20695   echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698         ac_cv_func_accept=no
20699 fi
20700
20701 rm -f core conftest.err conftest.$ac_objext \
20702       conftest$ac_exeext conftest.$ac_ext
20703 fi
20704 { echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
20705 echo "${ECHO_T}$ac_cv_func_accept" >&6; }
20706 if test $ac_cv_func_accept = yes; then
20707   :
20708 else
20709   LIBS=$oldLibs
20710 fi
20711
20712 fi
20713 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20714 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20715 if test "${ac_cv_func_gethostbyname+set}" = set; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20726 #define gethostbyname innocuous_gethostbyname
20727
20728 /* System header to define __stub macros and hopefully few prototypes,
20729     which can conflict with char gethostbyname (); below.
20730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20731     <limits.h> exists even on freestanding compilers.  */
20732
20733 #ifdef __STDC__
20734 # include <limits.h>
20735 #else
20736 # include <assert.h>
20737 #endif
20738
20739 #undef gethostbyname
20740
20741 /* Override any GCC internal prototype to avoid an error.
20742    Use char because int might match the return type of a GCC
20743    builtin and then its argument prototype would still apply.  */
20744 #ifdef __cplusplus
20745 extern "C"
20746 #endif
20747 char gethostbyname ();
20748 /* The GNU C library defines this for functions which it implements
20749     to always fail with ENOSYS.  Some functions are actually named
20750     something starting with __ and the normal name is an alias.  */
20751 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20752 choke me
20753 #endif
20754
20755 int
20756 main ()
20757 {
20758 return gethostbyname ();
20759   ;
20760   return 0;
20761 }
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767   *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770   (eval "$ac_link") 2>conftest.er1
20771   ac_status=$?
20772   grep -v '^ *+' conftest.er1 >conftest.err
20773   rm -f conftest.er1
20774   cat conftest.err >&5
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } &&
20777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20778   { (case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_try") 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); }; } &&
20787          { ac_try='test -s conftest$ac_exeext'
20788   { (case "(($ac_try" in
20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790   *) ac_try_echo=$ac_try;;
20791 esac
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793   (eval "$ac_try") 2>&5
20794   ac_status=$?
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); }; }; then
20797   ac_cv_func_gethostbyname=yes
20798 else
20799   echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20801
20802         ac_cv_func_gethostbyname=no
20803 fi
20804
20805 rm -f core conftest.err conftest.$ac_objext \
20806       conftest$ac_exeext conftest.$ac_ext
20807 fi
20808 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20809 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20810 if test $ac_cv_func_gethostbyname = yes; then
20811   :
20812 else
20813   { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20814 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
20815 if test "${ac_cv_lib_nsl_main+set}" = set; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lnsl  $LIBS"
20820 cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826
20827
20828 int
20829 main ()
20830 {
20831 return main ();
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext conftest$ac_exeext
20837 if { (ac_try="$ac_link"
20838 case "(($ac_try" in
20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840   *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843   (eval "$ac_link") 2>conftest.er1
20844   ac_status=$?
20845   grep -v '^ *+' conftest.er1 >conftest.err
20846   rm -f conftest.er1
20847   cat conftest.err >&5
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } &&
20850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20851   { (case "(($ac_try" in
20852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853   *) ac_try_echo=$ac_try;;
20854 esac
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856   (eval "$ac_try") 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; } &&
20860          { ac_try='test -s conftest$ac_exeext'
20861   { (case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_try") 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_cv_lib_nsl_main=yes
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875         ac_cv_lib_nsl_main=no
20876 fi
20877
20878 rm -f core conftest.err conftest.$ac_objext \
20879       conftest$ac_exeext conftest.$ac_ext
20880 LIBS=$ac_check_lib_save_LIBS
20881 fi
20882 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20883 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
20884 if test $ac_cv_lib_nsl_main = yes; then
20885   LIBS="$LIBS -lnsl"
20886 fi
20887
20888 fi
20889
20890
20891 openssl=default
20892
20893 # Check whether --with-openssl was given.
20894 if test "${with_openssl+set}" = set; then
20895   withval=$with_openssl; openssl=$withval
20896 fi
20897
20898 SSL_CFLAGS=""
20899 SSL_LIBPATH=""
20900 if test "$openssl" != "no"; then
20901     sslver=no
20902     if test "$openssl" != "yes" -a "$openssl" != "default"; then
20903         if test -x $openssl/bin/pkg-config; then
20904             if $openssl/bin/pkg-config --exists openssl; then
20905                 SSL_CFLAGS=`$openssl/bin/pkg-config --cflags openssl`
20906                 LIBS="$LIBS `$openssl/bin/pkg-config --libs openssl`"
20907                 sslver=`$openssl/bin/pkg-config --modversion openssl`
20908             fi
20909         fi
20910         if test "$sslver" = "no"; then
20911             SSL_CFLAGS="-I$openssl/include -I$openssl/include/openssl"
20912             SSL_LIBPATH="-L$openssl/lib"
20913         fi
20914     else
20915         if test "$pkgconfigpath" != "NONE"; then
20916             if $pkgconfigpath --exists openssl; then
20917                 SSL_CFLAGS=`$pkgconfigpath --cflags openssl`
20918                 LIBS="$LIBS `$pkgconfigpath --libs openssl`"
20919                 sslver=`$pkgconfigpath --modversion openssl`
20920             fi
20921         fi
20922         if test "$sslver" = "no"; then
20923             SSL_CFLAGS="-I/usr/include/openssl"
20924         fi
20925     fi
20926     if test "$sslver" = "no"; then
20927         xLIBS="$LIBS";
20928         xCPPFLAGS="$CPPFLAGS";
20929         CPPFLAGS="$CPPFLAGS $SSL_CFLAGS $SSL_LIBPATH"
20930
20931 { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
20932 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
20933 if test "${ac_cv_lib_crypto_main+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936   ac_check_lib_save_LIBS=$LIBS
20937 LIBS="-lcrypto  $LIBS"
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944
20945
20946 int
20947 main ()
20948 {
20949 return main ();
20950   ;
20951   return 0;
20952 }
20953 _ACEOF
20954 rm -f conftest.$ac_objext conftest$ac_exeext
20955 if { (ac_try="$ac_link"
20956 case "(($ac_try" in
20957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958   *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961   (eval "$ac_link") 2>conftest.er1
20962   ac_status=$?
20963   grep -v '^ *+' conftest.er1 >conftest.err
20964   rm -f conftest.er1
20965   cat conftest.err >&5
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } &&
20968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20969   { (case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_try") 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); }; } &&
20978          { ac_try='test -s conftest$ac_exeext'
20979   { (case "(($ac_try" in
20980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981   *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984   (eval "$ac_try") 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); }; }; then
20988   ac_cv_lib_crypto_main=yes
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993         ac_cv_lib_crypto_main=no
20994 fi
20995
20996 rm -f core conftest.err conftest.$ac_objext \
20997       conftest$ac_exeext conftest.$ac_ext
20998 LIBS=$ac_check_lib_save_LIBS
20999 fi
21000 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
21001 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
21002 if test $ac_cv_lib_crypto_main = yes; then
21003   cat >>confdefs.h <<_ACEOF
21004 #define HAVE_LIBCRYPTO 1
21005 _ACEOF
21006
21007   LIBS="-lcrypto $LIBS"
21008
21009 fi
21010
21011
21012 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21013 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21014 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   ac_check_lib_save_LIBS=$LIBS
21018 LIBS="-lssl  $LIBS"
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025
21026 /* Override any GCC internal prototype to avoid an error.
21027    Use char because int might match the return type of a GCC
21028    builtin and then its argument prototype would still apply.  */
21029 #ifdef __cplusplus
21030 extern "C"
21031 #endif
21032 char SSL_new ();
21033 int
21034 main ()
21035 {
21036 return SSL_new ();
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 rm -f conftest.$ac_objext conftest$ac_exeext
21042 if { (ac_try="$ac_link"
21043 case "(($ac_try" in
21044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045   *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048   (eval "$ac_link") 2>conftest.er1
21049   ac_status=$?
21050   grep -v '^ *+' conftest.er1 >conftest.err
21051   rm -f conftest.er1
21052   cat conftest.err >&5
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); } &&
21055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21056   { (case "(($ac_try" in
21057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058   *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061   (eval "$ac_try") 2>&5
21062   ac_status=$?
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); }; } &&
21065          { ac_try='test -s conftest$ac_exeext'
21066   { (case "(($ac_try" in
21067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068   *) ac_try_echo=$ac_try;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071   (eval "$ac_try") 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; }; then
21075   ac_cv_lib_ssl_SSL_new=yes
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080         ac_cv_lib_ssl_SSL_new=no
21081 fi
21082
21083 rm -f core conftest.err conftest.$ac_objext \
21084       conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21086 fi
21087 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21088 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21089 if test $ac_cv_lib_ssl_SSL_new = yes; then
21090   cat >>confdefs.h <<_ACEOF
21091 #define HAVE_LIBSSL 1
21092 _ACEOF
21093
21094   LIBS="-lssl $LIBS"
21095
21096 fi
21097
21098         if test "$ac_cv_lib_ssl_SSL_new" = "yes"; then
21099             if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21100   { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21101 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
21102 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21103   echo $ECHO_N "(cached) $ECHO_C" >&6
21104 fi
21105 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21106 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
21107 else
21108   # Is the header compilable?
21109 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
21110 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117 $ac_includes_default
21118 #include <openssl/ssl.h>
21119 _ACEOF
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124   *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127   (eval "$ac_compile") 2>conftest.er1
21128   ac_status=$?
21129   grep -v '^ *+' conftest.er1 >conftest.err
21130   rm -f conftest.er1
21131   cat conftest.err >&5
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); } &&
21134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21135   { (case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_try") 2>&5
21141   ac_status=$?
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); }; } &&
21144          { ac_try='test -s conftest.$ac_objext'
21145   { (case "(($ac_try" in
21146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147   *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150   (eval "$ac_try") 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; }; then
21154   ac_header_compiler=yes
21155 else
21156   echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159         ac_header_compiler=no
21160 fi
21161
21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21164 echo "${ECHO_T}$ac_header_compiler" >&6; }
21165
21166 # Is the header present?
21167 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
21168 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175 #include <openssl/ssl.h>
21176 _ACEOF
21177 if { (ac_try="$ac_cpp conftest.$ac_ext"
21178 case "(($ac_try" in
21179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180   *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21184   ac_status=$?
21185   grep -v '^ *+' conftest.er1 >conftest.err
21186   rm -f conftest.er1
21187   cat conftest.err >&5
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); } >/dev/null; then
21190   if test -s conftest.err; then
21191     ac_cpp_err=$ac_c_preproc_warn_flag
21192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21193   else
21194     ac_cpp_err=
21195   fi
21196 else
21197   ac_cpp_err=yes
21198 fi
21199 if test -z "$ac_cpp_err"; then
21200   ac_header_preproc=yes
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205   ac_header_preproc=no
21206 fi
21207
21208 rm -f conftest.err conftest.$ac_ext
21209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21210 echo "${ECHO_T}$ac_header_preproc" >&6; }
21211
21212 # So?  What about this header?
21213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21214   yes:no: )
21215     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21216 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21217     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
21218 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
21219     ac_header_preproc=yes
21220     ;;
21221   no:yes:* )
21222     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
21223 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
21224     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
21225 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
21226     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
21227 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
21228     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
21229 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21230     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
21231 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
21232     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
21233 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
21234     ( cat <<\_ASBOX
21235 ## -------------------------------- ##
21236 ## Report this to adam@indexdata.dk ##
21237 ## -------------------------------- ##
21238 _ASBOX
21239      ) | sed "s/^/$as_me: WARNING:     /" >&2
21240     ;;
21241 esac
21242 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21243 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
21244 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   ac_cv_header_openssl_ssl_h=$ac_header_preproc
21248 fi
21249 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
21250 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
21251
21252 fi
21253 if test $ac_cv_header_openssl_ssl_h = yes; then
21254   sslver=yes
21255 fi
21256
21257
21258             LIBS="$SSL_LIBPATH $LIBS"
21259         fi
21260         if test "$sslver" != "yes"; then
21261             LIBS="$xLIBS"
21262         fi
21263         CPPFLAGS="$xCPPFLAGS"
21264     fi
21265     { echo "$as_me:$LINENO: checking for SSL" >&5
21266 echo $ECHO_N "checking for SSL... $ECHO_C" >&6; }
21267     if test "$sslver" != "no"; then
21268         SSL_CFLAGS="-DHAVE_OPENSSL_SSL_H=1 $SSL_CFLAGS"
21269         { echo "$as_me:$LINENO: result: $sslver" >&5
21270 echo "${ECHO_T}$sslver" >&6; }
21271     else
21272         SSL_CFLAGS=""
21273         { echo "$as_me:$LINENO: result: None" >&5
21274 echo "${ECHO_T}None" >&6; }
21275         if test "$openssl" != "default"; then
21276             { { echo "$as_me:$LINENO: error: OpenSSL development libraries missing" >&5
21277 echo "$as_me: error: OpenSSL development libraries missing" >&2;}
21278    { (exit 1); exit 1; }; }
21279         fi
21280     fi
21281 fi
21282 READLINE_SHARED_LIBADD=""
21283 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
21284 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
21285 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   ac_check_lib_save_LIBS=$LIBS
21289 LIBS="-lncurses  $LIBS"
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296
21297 /* Override any GCC internal prototype to avoid an error.
21298    Use char because int might match the return type of a GCC
21299    builtin and then its argument prototype would still apply.  */
21300 #ifdef __cplusplus
21301 extern "C"
21302 #endif
21303 char tgetent ();
21304 int
21305 main ()
21306 {
21307 return tgetent ();
21308   ;
21309   return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (ac_try="$ac_link"
21314 case "(($ac_try" in
21315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316   *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319   (eval "$ac_link") 2>conftest.er1
21320   ac_status=$?
21321   grep -v '^ *+' conftest.er1 >conftest.err
21322   rm -f conftest.er1
21323   cat conftest.err >&5
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); } &&
21326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21327   { (case "(($ac_try" in
21328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329   *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332   (eval "$ac_try") 2>&5
21333   ac_status=$?
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); }; } &&
21336          { ac_try='test -s conftest$ac_exeext'
21337   { (case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_try") 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; }; then
21346   ac_cv_lib_ncurses_tgetent=yes
21347 else
21348   echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21350
21351         ac_cv_lib_ncurses_tgetent=no
21352 fi
21353
21354 rm -f core conftest.err conftest.$ac_objext \
21355       conftest$ac_exeext conftest.$ac_ext
21356 LIBS=$ac_check_lib_save_LIBS
21357 fi
21358 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
21359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
21360 if test $ac_cv_lib_ncurses_tgetent = yes; then
21361   READLINE_SHARED_LIBADD="-lncurses"
21362 else
21363   { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
21364 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
21365 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
21366   echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368   ac_check_lib_save_LIBS=$LIBS
21369 LIBS="-ltermcap  $LIBS"
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376
21377 /* Override any GCC internal prototype to avoid an error.
21378    Use char because int might match the return type of a GCC
21379    builtin and then its argument prototype would still apply.  */
21380 #ifdef __cplusplus
21381 extern "C"
21382 #endif
21383 char tgetent ();
21384 int
21385 main ()
21386 {
21387 return tgetent ();
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_link") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } &&
21406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407   { (case "(($ac_try" in
21408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409   *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412   (eval "$ac_try") 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; } &&
21416          { ac_try='test -s conftest$ac_exeext'
21417   { (case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_try") 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   ac_cv_lib_termcap_tgetent=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         ac_cv_lib_termcap_tgetent=no
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext \
21435       conftest$ac_exeext conftest.$ac_ext
21436 LIBS=$ac_check_lib_save_LIBS
21437 fi
21438 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
21439 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
21440 if test $ac_cv_lib_termcap_tgetent = yes; then
21441   READLINE_SHARED_LIBADD="-ltermcap"
21442 fi
21443
21444
21445 fi
21446
21447 READLINE_LIBS=""
21448 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21449 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
21450 if test "${ac_cv_lib_readline_readline+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453   ac_check_lib_save_LIBS=$LIBS
21454 LIBS="-lreadline $READLINE_SHARED_LIBADD $LIBS"
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461
21462 /* Override any GCC internal prototype to avoid an error.
21463    Use char because int might match the return type of a GCC
21464    builtin and then its argument prototype would still apply.  */
21465 #ifdef __cplusplus
21466 extern "C"
21467 #endif
21468 char readline ();
21469 int
21470 main ()
21471 {
21472 return readline ();
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (ac_try="$ac_link"
21479 case "(($ac_try" in
21480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481   *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484   (eval "$ac_link") 2>conftest.er1
21485   ac_status=$?
21486   grep -v '^ *+' conftest.er1 >conftest.err
21487   rm -f conftest.er1
21488   cat conftest.err >&5
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); } &&
21491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21492   { (case "(($ac_try" in
21493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494   *) ac_try_echo=$ac_try;;
21495 esac
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497   (eval "$ac_try") 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; } &&
21501          { ac_try='test -s conftest$ac_exeext'
21502   { (case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_try") 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; }; then
21511   ac_cv_lib_readline_readline=yes
21512 else
21513   echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516         ac_cv_lib_readline_readline=no
21517 fi
21518
21519 rm -f core conftest.err conftest.$ac_objext \
21520       conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_lib_save_LIBS
21522 fi
21523 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21524 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21525 if test $ac_cv_lib_readline_readline = yes; then
21526   READLINE_LIBS="$READLINE_LIBS -lreadline $READLINE_SHARED_LIBADD"
21527 fi
21528
21529 { echo "$as_me:$LINENO: checking for add_history in -lhistory" >&5
21530 echo $ECHO_N "checking for add_history in -lhistory... $ECHO_C" >&6; }
21531 if test "${ac_cv_lib_history_add_history+set}" = set; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-lhistory  $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542
21543 /* Override any GCC internal prototype to avoid an error.
21544    Use char because int might match the return type of a GCC
21545    builtin and then its argument prototype would still apply.  */
21546 #ifdef __cplusplus
21547 extern "C"
21548 #endif
21549 char add_history ();
21550 int
21551 main ()
21552 {
21553 return add_history ();
21554   ;
21555   return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (ac_try="$ac_link"
21560 case "(($ac_try" in
21561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562   *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565   (eval "$ac_link") 2>conftest.er1
21566   ac_status=$?
21567   grep -v '^ *+' conftest.er1 >conftest.err
21568   rm -f conftest.er1
21569   cat conftest.err >&5
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); } &&
21572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21573   { (case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578   (eval "$ac_try") 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; } &&
21582          { ac_try='test -s conftest$ac_exeext'
21583   { (case "(($ac_try" in
21584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585   *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588   (eval "$ac_try") 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_cv_lib_history_add_history=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597         ac_cv_lib_history_add_history=no
21598 fi
21599
21600 rm -f core conftest.err conftest.$ac_objext \
21601       conftest$ac_exeext conftest.$ac_ext
21602 LIBS=$ac_check_lib_save_LIBS
21603 fi
21604 { echo "$as_me:$LINENO: result: $ac_cv_lib_history_add_history" >&5
21605 echo "${ECHO_T}$ac_cv_lib_history_add_history" >&6; }
21606 if test $ac_cv_lib_history_add_history = yes; then
21607   READLINE_LIBS="$READLINE_LIBS -lhistory"
21608 fi
21609
21610 if test "$ac_cv_lib_readline_readline" = "yes"; then
21611
21612
21613 for ac_header in readline/readline.h readline/history.h
21614 do
21615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21617   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21620   echo $ECHO_N "(cached) $ECHO_C" >&6
21621 fi
21622 ac_res=`eval echo '${'$as_ac_Header'}'`
21623                { echo "$as_me:$LINENO: result: $ac_res" >&5
21624 echo "${ECHO_T}$ac_res" >&6; }
21625 else
21626   # Is the header compilable?
21627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635 $ac_includes_default
21636 #include <$ac_header>
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642   *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645   (eval "$ac_compile") 2>conftest.er1
21646   ac_status=$?
21647   grep -v '^ *+' conftest.er1 >conftest.err
21648   rm -f conftest.er1
21649   cat conftest.err >&5
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } &&
21652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21653   { (case "(($ac_try" in
21654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655   *) ac_try_echo=$ac_try;;
21656 esac
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658   (eval "$ac_try") 2>&5
21659   ac_status=$?
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); }; } &&
21662          { ac_try='test -s conftest.$ac_objext'
21663   { (case "(($ac_try" in
21664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665   *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668   (eval "$ac_try") 2>&5
21669   ac_status=$?
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); }; }; then
21672   ac_header_compiler=yes
21673 else
21674   echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677         ac_header_compiler=no
21678 fi
21679
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21682 echo "${ECHO_T}$ac_header_compiler" >&6; }
21683
21684 # Is the header present?
21685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21687 cat >conftest.$ac_ext <<_ACEOF
21688 /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693 #include <$ac_header>
21694 _ACEOF
21695 if { (ac_try="$ac_cpp conftest.$ac_ext"
21696 case "(($ac_try" in
21697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698   *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21702   ac_status=$?
21703   grep -v '^ *+' conftest.er1 >conftest.err
21704   rm -f conftest.er1
21705   cat conftest.err >&5
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); } >/dev/null; then
21708   if test -s conftest.err; then
21709     ac_cpp_err=$ac_c_preproc_warn_flag
21710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21711   else
21712     ac_cpp_err=
21713   fi
21714 else
21715   ac_cpp_err=yes
21716 fi
21717 if test -z "$ac_cpp_err"; then
21718   ac_header_preproc=yes
21719 else
21720   echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723   ac_header_preproc=no
21724 fi
21725
21726 rm -f conftest.err conftest.$ac_ext
21727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21728 echo "${ECHO_T}$ac_header_preproc" >&6; }
21729
21730 # So?  What about this header?
21731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21732   yes:no: )
21733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21737     ac_header_preproc=yes
21738     ;;
21739   no:yes:* )
21740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21752     ( cat <<\_ASBOX
21753 ## -------------------------------- ##
21754 ## Report this to adam@indexdata.dk ##
21755 ## -------------------------------- ##
21756 _ASBOX
21757      ) | sed "s/^/$as_me: WARNING:     /" >&2
21758     ;;
21759 esac
21760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763   echo $ECHO_N "(cached) $ECHO_C" >&6
21764 else
21765   eval "$as_ac_Header=\$ac_header_preproc"
21766 fi
21767 ac_res=`eval echo '${'$as_ac_Header'}'`
21768                { echo "$as_me:$LINENO: result: $ac_res" >&5
21769 echo "${ECHO_T}$ac_res" >&6; }
21770
21771 fi
21772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21773   cat >>confdefs.h <<_ACEOF
21774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21775 _ACEOF
21776
21777 fi
21778
21779 done
21780
21781     xLIBS=$LIBS
21782     LIBS="$LIBS $READLINE_LIBS"
21783     cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789
21790         #include <stdio.h>
21791         #include <readline/readline.h>
21792
21793 int
21794 main ()
21795 {
21796
21797             rl_attempted_completion_over = 0;
21798
21799   ;
21800   return 0;
21801 }
21802 _ACEOF
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_link") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } &&
21817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21818   { (case "(($ac_try" in
21819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820   *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823   (eval "$ac_try") 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; } &&
21827          { ac_try='test -s conftest$ac_exeext'
21828   { (case "(($ac_try" in
21829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830   *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833   (eval "$ac_try") 2>&5
21834   ac_status=$?
21835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836   (exit $ac_status); }; }; then
21837   cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_READLINE_COMPLETION_OVER 1
21839 _ACEOF
21840
21841 else
21842   echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845
21846 fi
21847
21848 rm -f core conftest.err conftest.$ac_objext \
21849       conftest$ac_exeext conftest.$ac_ext
21850     cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h.  */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h.  */
21856
21857         #include <stdio.h>
21858         #include <readline/readline.h>
21859
21860 int
21861 main ()
21862 {
21863
21864             rl_completion_matches (0, 0);
21865
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (ac_try="$ac_link"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_link") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } &&
21884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885   { (case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890   (eval "$ac_try") 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; } &&
21894          { ac_try='test -s conftest$ac_exeext'
21895   { (case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900   (eval "$ac_try") 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); }; }; then
21904   cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_READLINE_RL_COMPLETION_MATCHES 1
21906 _ACEOF
21907
21908 else
21909   echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21911
21912
21913 fi
21914
21915 rm -f core conftest.err conftest.$ac_objext \
21916       conftest$ac_exeext conftest.$ac_ext
21917     LIBS=$xLIBS
21918 fi
21919
21920 # Check whether --with-iconv was given.
21921 if test "${with_iconv+set}" = set; then
21922   withval=$with_iconv;
21923 fi
21924
21925 if test "$with_iconv" != "no"; then
21926     { echo "$as_me:$LINENO: checking for iconv" >&5
21927 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21928     oldLIBS="$LIBS"
21929     oldCPPFLAGS="${CPPFLAGS}"
21930     if test "$with_iconv" != "yes" -a "$with_iconv" != ""; then
21931         LIBS="$LIBS -L${with_iconv}/lib"
21932         CPPFLAGS="${CPPFLAGS} -I${with_iconv}/include"
21933     fi
21934     cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940
21941                 #include <iconv.h>
21942
21943 int
21944 main ()
21945 {
21946
21947             iconv_t t = iconv_open("", "");
21948
21949   ;
21950   return 0;
21951 }
21952 _ACEOF
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (ac_try="$ac_link"
21955 case "(($ac_try" in
21956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957   *) ac_try_echo=$ac_try;;
21958 esac
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960   (eval "$ac_link") 2>conftest.er1
21961   ac_status=$?
21962   grep -v '^ *+' conftest.er1 >conftest.err
21963   rm -f conftest.er1
21964   cat conftest.err >&5
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); } &&
21967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21968   { (case "(($ac_try" in
21969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970   *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973   (eval "$ac_try") 2>&5
21974   ac_status=$?
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); }; } &&
21977          { ac_try='test -s conftest$ac_exeext'
21978   { (case "(($ac_try" in
21979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980   *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983   (eval "$ac_try") 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); }; }; then
21987
21988             cat >>confdefs.h <<\_ACEOF
21989 #define HAVE_ICONV_H 1
21990 _ACEOF
21991
21992             { echo "$as_me:$LINENO: result: yes" >&5
21993 echo "${ECHO_T}yes" >&6; }
21994
21995 else
21996   echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999
22000             LIBS="$LIBS -liconv"
22001             cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007
22008                         #include <iconv.h>
22009
22010 int
22011 main ()
22012 {
22013
22014             iconv_t t = iconv_open("", "");
22015
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_link") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } &&
22034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22035   { (case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_try") 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); }; } &&
22044          { ac_try='test -s conftest$ac_exeext'
22045   { (case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_try") 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; }; then
22054
22055             cat >>confdefs.h <<\_ACEOF
22056 #define HAVE_ICONV_H 1
22057 _ACEOF
22058
22059             { echo "$as_me:$LINENO: result: yes" >&5
22060 echo "${ECHO_T}yes" >&6; }
22061
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066
22067             LIBS="$oldLIBS"
22068             CPPFLAGS="$oldCPPFLAGS"
22069             { echo "$as_me:$LINENO: result: no" >&5
22070 echo "${ECHO_T}no" >&6; }
22071
22072 fi
22073
22074 rm -f core conftest.err conftest.$ac_objext \
22075       conftest$ac_exeext conftest.$ac_ext
22076
22077 fi
22078
22079 rm -f core conftest.err conftest.$ac_objext \
22080       conftest$ac_exeext conftest.$ac_ext
22081 fi
22082
22083
22084
22085
22086
22087
22088
22089
22090 for ac_func in getaddrinfo vsnprintf gettimeofday poll strerror_r localtime_r usleep fopen64
22091 do
22092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22096   echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22098   cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22106 #define $ac_func innocuous_$ac_func
22107
22108 /* System header to define __stub macros and hopefully few prototypes,
22109     which can conflict with char $ac_func (); below.
22110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22111     <limits.h> exists even on freestanding compilers.  */
22112
22113 #ifdef __STDC__
22114 # include <limits.h>
22115 #else
22116 # include <assert.h>
22117 #endif
22118
22119 #undef $ac_func
22120
22121 /* Override any GCC internal prototype to avoid an error.
22122    Use char because int might match the return type of a GCC
22123    builtin and then its argument prototype would still apply.  */
22124 #ifdef __cplusplus
22125 extern "C"
22126 #endif
22127 char $ac_func ();
22128 /* The GNU C library defines this for functions which it implements
22129     to always fail with ENOSYS.  Some functions are actually named
22130     something starting with __ and the normal name is an alias.  */
22131 #if defined __stub_$ac_func || defined __stub___$ac_func
22132 choke me
22133 #endif
22134
22135 int
22136 main ()
22137 {
22138 return $ac_func ();
22139   ;
22140   return 0;
22141 }
22142 _ACEOF
22143 rm -f conftest.$ac_objext conftest$ac_exeext
22144 if { (ac_try="$ac_link"
22145 case "(($ac_try" in
22146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147   *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150   (eval "$ac_link") 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } &&
22157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22158   { (case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163   (eval "$ac_try") 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; } &&
22167          { ac_try='test -s conftest$ac_exeext'
22168   { (case "(($ac_try" in
22169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170   *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173   (eval "$ac_try") 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; }; then
22177   eval "$as_ac_var=yes"
22178 else
22179   echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182         eval "$as_ac_var=no"
22183 fi
22184
22185 rm -f core conftest.err conftest.$ac_objext \
22186       conftest$ac_exeext conftest.$ac_ext
22187 fi
22188 ac_res=`eval echo '${'$as_ac_var'}'`
22189                { echo "$as_me:$LINENO: result: $ac_res" >&5
22190 echo "${ECHO_T}$ac_res" >&6; }
22191 if test `eval echo '${'$as_ac_var'}'` = yes; then
22192   cat >>confdefs.h <<_ACEOF
22193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22194 _ACEOF
22195
22196 fi
22197 done
22198
22199 case $host in
22200     *-*-darwin*)
22201         trypoll="no";
22202         ;;
22203     *)
22204         trypoll="yes";
22205         ;;
22206 esac
22207
22208 if test "$ac_cv_func_poll" = "yes" -a "$trypoll" = "yes"; then
22209
22210 for ac_header in sys/poll.h
22211 do
22212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 fi
22219 ac_res=`eval echo '${'$as_ac_Header'}'`
22220                { echo "$as_me:$LINENO: result: $ac_res" >&5
22221 echo "${ECHO_T}$ac_res" >&6; }
22222 else
22223   # Is the header compilable?
22224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22226 cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 $ac_includes_default
22233 #include <$ac_header>
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_compile") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } &&
22249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22250   { (case "(($ac_try" in
22251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252   *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255   (eval "$ac_try") 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest.$ac_objext'
22260   { (case "(($ac_try" in
22261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262   *) ac_try_echo=$ac_try;;
22263 esac
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265   (eval "$ac_try") 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; }; then
22269   ac_header_compiler=yes
22270 else
22271   echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274         ac_header_compiler=no
22275 fi
22276
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22279 echo "${ECHO_T}$ac_header_compiler" >&6; }
22280
22281 # Is the header present?
22282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22284 cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h.  */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h.  */
22290 #include <$ac_header>
22291 _ACEOF
22292 if { (ac_try="$ac_cpp conftest.$ac_ext"
22293 case "(($ac_try" in
22294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295   *) ac_try_echo=$ac_try;;
22296 esac
22297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } >/dev/null; then
22305   if test -s conftest.err; then
22306     ac_cpp_err=$ac_c_preproc_warn_flag
22307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22308   else
22309     ac_cpp_err=
22310   fi
22311 else
22312   ac_cpp_err=yes
22313 fi
22314 if test -z "$ac_cpp_err"; then
22315   ac_header_preproc=yes
22316 else
22317   echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320   ac_header_preproc=no
22321 fi
22322
22323 rm -f conftest.err conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22325 echo "${ECHO_T}$ac_header_preproc" >&6; }
22326
22327 # So?  What about this header?
22328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22329   yes:no: )
22330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22334     ac_header_preproc=yes
22335     ;;
22336   no:yes:* )
22337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22349     ( cat <<\_ASBOX
22350 ## -------------------------------- ##
22351 ## Report this to adam@indexdata.dk ##
22352 ## -------------------------------- ##
22353 _ASBOX
22354      ) | sed "s/^/$as_me: WARNING:     /" >&2
22355     ;;
22356 esac
22357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22360   echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362   eval "$as_ac_Header=\$ac_header_preproc"
22363 fi
22364 ac_res=`eval echo '${'$as_ac_Header'}'`
22365                { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367
22368 fi
22369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22370   cat >>confdefs.h <<_ACEOF
22371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22372 _ACEOF
22373
22374 fi
22375
22376 done
22377
22378 fi
22379 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22380 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22381 if test "${ac_cv_check_socklen_t+set}" = set; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384   ac_cv_check_socklen_t=''
22385         cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h.  */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h.  */
22391
22392 #include <sys/types.h>
22393 #include <sys/socket.h>
22394 #ifdef __cplusplus
22395 extern "C" {
22396 #endif
22397 #define try 1
22398 #ifdef AIX
22399 #if AIX >= 51
22400 #define try 0
22401 #endif
22402 #endif
22403 #if try
22404 extern int accept(int, struct sockaddr *, socklen_t *);
22405 #endif
22406 #ifdef __cplusplus
22407 }
22408 #endif
22409
22410 int
22411 main ()
22412 {
22413
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422   *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425   (eval "$ac_compile") 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } &&
22432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22433   { (case "(($ac_try" in
22434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435   *) ac_try_echo=$ac_try;;
22436 esac
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438   (eval "$ac_try") 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); }; } &&
22442          { ac_try='test -s conftest.$ac_objext'
22443   { (case "(($ac_try" in
22444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445   *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448   (eval "$ac_try") 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; }; then
22452   ac_cv_check_socklen_t=socklen_t
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457
22458                 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h.  */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h.  */
22464
22465 #include <sys/types.h>
22466 #include <sys/socket.h>
22467 #ifdef __cplusplus
22468 extern "C" {
22469 #endif
22470 #define try 1
22471 #ifdef AIX
22472 #if AIX >= 42
22473 #define try 0
22474 #endif
22475 #endif
22476 #if try
22477 extern int accept(int, struct sockaddr *, size_t t *);
22478 #endif
22479 #ifdef __cplusplus
22480 }
22481 #endif
22482
22483 int
22484 main ()
22485 {
22486
22487   ;
22488   return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext
22492 if { (ac_try="$ac_compile"
22493 case "(($ac_try" in
22494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495   *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498   (eval "$ac_compile") 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } &&
22505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22506   { (case "(($ac_try" in
22507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508   *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511   (eval "$ac_try") 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); }; } &&
22515          { ac_try='test -s conftest.$ac_objext'
22516   { (case "(($ac_try" in
22517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518   *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521   (eval "$ac_try") 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   ac_cv_check_socklen_t=size_t
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530         ac_cv_check_socklen_t=int
22531 fi
22532
22533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534
22535 fi
22536
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22538
22539 fi
22540
22541 { echo "$as_me:$LINENO: result: $ac_cv_check_socklen_t" >&5
22542 echo "${ECHO_T}$ac_cv_check_socklen_t" >&6; }
22543 cat >>confdefs.h <<_ACEOF
22544 #define YAZ_SOCKLEN_T $ac_cv_check_socklen_t
22545 _ACEOF
22546
22547 cat >>confdefs.h <<\_ACEOF
22548 #define YAZ_USE_NEW_LOG 1
22549 _ACEOF
22550
22551 # Check whether --enable-tcpd was given.
22552 if test "${enable_tcpd+set}" = set; then
22553   enableval=$enable_tcpd;
22554 fi
22555
22556 if test "$enable_tcpd" -a "$enable_tcpd" != "no"; then
22557     oldLibs=$LIBS
22558     oldCPPFLAGS=$CPPFLAGS
22559     if test "$enable_tcpd" != "yes"; then
22560         LIBS="$LIBS -L$enable_tcpd/lib"
22561         CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
22562     fi
22563     { echo "$as_me:$LINENO: checking for working tcpd.h" >&5
22564 echo $ECHO_N "checking for working tcpd.h... $ECHO_C" >&6; }
22565     LIBS="$LIBS -lwrap -lnsl"
22566     cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572 #include <syslog.h>
22573 #include <tcpd.h>
22574             int allow_severity = LOG_INFO;
22575             int deny_severity = LOG_WARNING;
22576 int
22577 main ()
22578 {
22579 struct request_info request_info; int i;
22580             i = hosts_access(&request_info);
22581   ;
22582   return 0;
22583 }
22584 _ACEOF
22585 rm -f conftest.$ac_objext conftest$ac_exeext
22586 if { (ac_try="$ac_link"
22587 case "(($ac_try" in
22588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589   *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592   (eval "$ac_link") 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } &&
22599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22600   { (case "(($ac_try" in
22601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602   *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605   (eval "$ac_try") 2>&5
22606   ac_status=$?
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); }; } &&
22609          { ac_try='test -s conftest$ac_exeext'
22610   { (case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_try") 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; }; then
22619   tcpd_ok=1
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624         tcpd_ok=0
22625 fi
22626
22627 rm -f core conftest.err conftest.$ac_objext \
22628       conftest$ac_exeext conftest.$ac_ext
22629     if test "$tcpd_ok" = "0"; then
22630         { echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6; }
22632         { { echo "$as_me:$LINENO: error: tcpd development libraries missing" >&5
22633 echo "$as_me: error: tcpd development libraries missing" >&2;}
22634    { (exit 1); exit 1; }; }
22635                 LIBS=$oldLibs
22636                 CPPFLAGS=$oldCPPFLAGS
22637     else
22638         { echo "$as_me:$LINENO: result: yes" >&5
22639 echo "${ECHO_T}yes" >&6; }
22640         cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_TCPD_H 1
22642 _ACEOF
22643
22644     fi
22645 fi
22646
22647 HAVETHREADS=0
22648 THREAD_CFLAGS=""
22649 LIBTHREAD=""
22650 # Check whether --enable-pth was given.
22651 if test "${enable_pth+set}" = set; then
22652   enableval=$enable_pth; enable_pth=$enableval
22653 else
22654   enable_pth=no
22655 fi
22656
22657
22658 if test "$enable_pth" = "yes"; then
22659     OLIBS=$LIBS
22660
22661 { echo "$as_me:$LINENO: checking for main in -lpth" >&5
22662 echo $ECHO_N "checking for main in -lpth... $ECHO_C" >&6; }
22663 if test "${ac_cv_lib_pth_main+set}" = set; then
22664   echo $ECHO_N "(cached) $ECHO_C" >&6
22665 else
22666   ac_check_lib_save_LIBS=$LIBS
22667 LIBS="-lpth  $LIBS"
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674
22675
22676 int
22677 main ()
22678 {
22679 return main ();
22680   ;
22681   return 0;
22682 }
22683 _ACEOF
22684 rm -f conftest.$ac_objext conftest$ac_exeext
22685 if { (ac_try="$ac_link"
22686 case "(($ac_try" in
22687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688   *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691   (eval "$ac_link") 2>conftest.er1
22692   ac_status=$?
22693   grep -v '^ *+' conftest.er1 >conftest.err
22694   rm -f conftest.er1
22695   cat conftest.err >&5
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } &&
22698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22699   { (case "(($ac_try" in
22700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701   *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704   (eval "$ac_try") 2>&5
22705   ac_status=$?
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); }; } &&
22708          { ac_try='test -s conftest$ac_exeext'
22709   { (case "(($ac_try" in
22710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711   *) ac_try_echo=$ac_try;;
22712 esac
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714   (eval "$ac_try") 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; }; then
22718   ac_cv_lib_pth_main=yes
22719 else
22720   echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723         ac_cv_lib_pth_main=no
22724 fi
22725
22726 rm -f core conftest.err conftest.$ac_objext \
22727       conftest$ac_exeext conftest.$ac_ext
22728 LIBS=$ac_check_lib_save_LIBS
22729 fi
22730 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_main" >&5
22731 echo "${ECHO_T}$ac_cv_lib_pth_main" >&6; }
22732 if test $ac_cv_lib_pth_main = yes; then
22733   cat >>confdefs.h <<_ACEOF
22734 #define HAVE_LIBPTH 1
22735 _ACEOF
22736
22737   LIBS="-lpth $LIBS"
22738
22739 fi
22740
22741     if test "$ac_cv_lib_pth_main" = "yes"; then
22742
22743 for ac_header in pth.h
22744 do
22745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22747   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22750   echo $ECHO_N "(cached) $ECHO_C" >&6
22751 fi
22752 ac_res=`eval echo '${'$as_ac_Header'}'`
22753                { echo "$as_me:$LINENO: result: $ac_res" >&5
22754 echo "${ECHO_T}$ac_res" >&6; }
22755 else
22756   # Is the header compilable?
22757 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22759 cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765 $ac_includes_default
22766 #include <$ac_header>
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772   *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775   (eval "$ac_compile") 2>conftest.er1
22776   ac_status=$?
22777   grep -v '^ *+' conftest.er1 >conftest.err
22778   rm -f conftest.er1
22779   cat conftest.err >&5
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); } &&
22782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22783   { (case "(($ac_try" in
22784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785   *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788   (eval "$ac_try") 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; } &&
22792          { ac_try='test -s conftest.$ac_objext'
22793   { (case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798   (eval "$ac_try") 2>&5
22799   ac_status=$?
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); }; }; then
22802   ac_header_compiler=yes
22803 else
22804   echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807         ac_header_compiler=no
22808 fi
22809
22810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22812 echo "${ECHO_T}$ac_header_compiler" >&6; }
22813
22814 # Is the header present?
22815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22817 cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h.  */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h.  */
22823 #include <$ac_header>
22824 _ACEOF
22825 if { (ac_try="$ac_cpp conftest.$ac_ext"
22826 case "(($ac_try" in
22827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828   *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } >/dev/null; then
22838   if test -s conftest.err; then
22839     ac_cpp_err=$ac_c_preproc_warn_flag
22840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22841   else
22842     ac_cpp_err=
22843   fi
22844 else
22845   ac_cpp_err=yes
22846 fi
22847 if test -z "$ac_cpp_err"; then
22848   ac_header_preproc=yes
22849 else
22850   echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22852
22853   ac_header_preproc=no
22854 fi
22855
22856 rm -f conftest.err conftest.$ac_ext
22857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22858 echo "${ECHO_T}$ac_header_preproc" >&6; }
22859
22860 # So?  What about this header?
22861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22862   yes:no: )
22863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22867     ac_header_preproc=yes
22868     ;;
22869   no:yes:* )
22870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22882     ( cat <<\_ASBOX
22883 ## -------------------------------- ##
22884 ## Report this to adam@indexdata.dk ##
22885 ## -------------------------------- ##
22886 _ASBOX
22887      ) | sed "s/^/$as_me: WARNING:     /" >&2
22888     ;;
22889 esac
22890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22893   echo $ECHO_N "(cached) $ECHO_C" >&6
22894 else
22895   eval "$as_ac_Header=\$ac_header_preproc"
22896 fi
22897 ac_res=`eval echo '${'$as_ac_Header'}'`
22898                { echo "$as_me:$LINENO: result: $ac_res" >&5
22899 echo "${ECHO_T}$ac_res" >&6; }
22900
22901 fi
22902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22903   cat >>confdefs.h <<_ACEOF
22904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22905 _ACEOF
22906
22907 fi
22908
22909 done
22910
22911         if test "$ac_cv_header_pth_h" = "yes"; then
22912             LIBTHREAD="-lpth"
22913             THREAD_CFLAGS="-DYAZ_GNU_THREADS=1"
22914             HAVETHREADS=1
22915         fi
22916     fi
22917     LIBS="$OLIBS $LIBTHREAD"
22918 fi
22919 # Check whether --enable-threads was given.
22920 if test "${enable_threads+set}" = set; then
22921   enableval=$enable_threads; enable_threads=$enableval
22922 else
22923   enable_threads=yes
22924 fi
22925
22926 if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then
22927     OLIBS=$LIBS
22928     OCC=$CC
22929
22930 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
22931 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
22932 if test "${ac_cv_lib_pthread_main+set}" = set; then
22933   echo $ECHO_N "(cached) $ECHO_C" >&6
22934 else
22935   ac_check_lib_save_LIBS=$LIBS
22936 LIBS="-lpthread  $LIBS"
22937 cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943
22944
22945 int
22946 main ()
22947 {
22948 return main ();
22949   ;
22950   return 0;
22951 }
22952 _ACEOF
22953 rm -f conftest.$ac_objext conftest$ac_exeext
22954 if { (ac_try="$ac_link"
22955 case "(($ac_try" in
22956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957   *) ac_try_echo=$ac_try;;
22958 esac
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960   (eval "$ac_link") 2>conftest.er1
22961   ac_status=$?
22962   grep -v '^ *+' conftest.er1 >conftest.err
22963   rm -f conftest.er1
22964   cat conftest.err >&5
22965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966   (exit $ac_status); } &&
22967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22968   { (case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_try") 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; } &&
22977          { ac_try='test -s conftest$ac_exeext'
22978   { (case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_try") 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; }; then
22987   ac_cv_lib_pthread_main=yes
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992         ac_cv_lib_pthread_main=no
22993 fi
22994
22995 rm -f core conftest.err conftest.$ac_objext \
22996       conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22998 fi
22999 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
23000 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
23001 if test $ac_cv_lib_pthread_main = yes; then
23002   cat >>confdefs.h <<_ACEOF
23003 #define HAVE_LIBPTHREAD 1
23004 _ACEOF
23005
23006   LIBS="-lpthread $LIBS"
23007
23008 fi
23009
23010     { echo "$as_me:$LINENO: checking for working POSIX Threads" >&5
23011 echo $ECHO_N "checking for working POSIX Threads... $ECHO_C" >&6; }
23012     cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018 #include <pthread.h>
23019             void *func(void *p) { return 0; }
23020
23021 int
23022 main ()
23023 {
23024
23025             pthread_t pthread_id;
23026             pthread_create (&pthread_id, 0, func, 0);
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (ac_try="$ac_link"
23033 case "(($ac_try" in
23034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035   *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038   (eval "$ac_link") 2>conftest.er1
23039   ac_status=$?
23040   grep -v '^ *+' conftest.er1 >conftest.err
23041   rm -f conftest.er1
23042   cat conftest.err >&5
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } &&
23045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23046   { (case "(($ac_try" in
23047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048   *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051   (eval "$ac_try") 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; } &&
23055          { ac_try='test -s conftest$ac_exeext'
23056   { (case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_try") 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; }; then
23065   thread_ok=yes
23066 else
23067   echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070         thread_ok=no
23071 fi
23072
23073 rm -f core conftest.err conftest.$ac_objext \
23074       conftest$ac_exeext conftest.$ac_ext
23075     if test "$thread_ok" = "yes"; then
23076         { echo "$as_me:$LINENO: result: yes" >&5
23077 echo "${ECHO_T}yes" >&6; }
23078         LIBTHREAD="-lpthread"
23079         THREAD_CFLAGS="-DYAZ_POSIX_THREADS=1 -D_REENTRANT"
23080         HAVETHREADS=1
23081     else
23082         CC="$CC -pthread"
23083         cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089 #include <pthread.h>
23090                 void *func(void *p) { return 0; }
23091
23092 int
23093 main ()
23094 {
23095
23096                 pthread_t pthread_id;
23097                 pthread_create (&pthread_id, 0, func, 0);
23098   ;
23099   return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext conftest$ac_exeext
23103 if { (ac_try="$ac_link"
23104 case "(($ac_try" in
23105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106   *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109   (eval "$ac_link") 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } &&
23116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23117   { (case "(($ac_try" in
23118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119   *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122   (eval "$ac_try") 2>&5
23123   ac_status=$?
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); }; } &&
23126          { ac_try='test -s conftest$ac_exeext'
23127   { (case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132   (eval "$ac_try") 2>&5
23133   ac_status=$?
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); }; }; then
23136   thread_ok=yes
23137 else
23138   echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23140
23141         thread_ok=no
23142 fi
23143
23144 rm -f core conftest.err conftest.$ac_objext \
23145       conftest$ac_exeext conftest.$ac_ext
23146         if test "$thread_ok" = "yes"; then
23147             { echo "$as_me:$LINENO: result: yes,BSD" >&5
23148 echo "${ECHO_T}yes,BSD" >&6; }
23149             THREAD_CFLAGS="-pthread -DYAZ_POSIX_THREADS=1 -D_REENTRANT"
23150             LIBTHREAD="-pthread"
23151             HAVETHREADS=1
23152         fi
23153     fi
23154     if test "$thread_ok" = "no"; then
23155         { echo "$as_me:$LINENO: result: no" >&5
23156 echo "${ECHO_T}no" >&6; }
23157     fi
23158     CC=$OCC
23159     LIBS="$OLIBS $LIBTHREAD"
23160 fi
23161
23162
23163
23164 YAZ_CONFIG_CFLAGS=""
23165
23166
23167 # Extract the first word of "pkg-config", so it can be a program name with args.
23168 set dummy pkg-config; ac_word=$2
23169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23171 if test "${ac_cv_path_pkgconfigpath+set}" = set; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   case $pkgconfigpath in
23175   [\\/]* | ?:[\\/]*)
23176   ac_cv_path_pkgconfigpath="$pkgconfigpath" # Let the user override the test with a path.
23177   ;;
23178   *)
23179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in $PATH
23181 do
23182   IFS=$as_save_IFS
23183   test -z "$as_dir" && as_dir=.
23184   for ac_exec_ext in '' $ac_executable_extensions; do
23185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23186     ac_cv_path_pkgconfigpath="$as_dir/$ac_word$ac_exec_ext"
23187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23188     break 2
23189   fi
23190 done
23191 done
23192 IFS=$as_save_IFS
23193
23194   test -z "$ac_cv_path_pkgconfigpath" && ac_cv_path_pkgconfigpath="NONE"
23195   ;;
23196 esac
23197 fi
23198 pkgconfigpath=$ac_cv_path_pkgconfigpath
23199 if test -n "$pkgconfigpath"; then
23200   { echo "$as_me:$LINENO: result: $pkgconfigpath" >&5
23201 echo "${ECHO_T}$pkgconfigpath" >&6; }
23202 else
23203   { echo "$as_me:$LINENO: result: no" >&5
23204 echo "${ECHO_T}no" >&6; }
23205 fi
23206
23207
23208 xml2dir=default
23209 XML2_VER=""
23210
23211 # Check whether --with-xml2 was given.
23212 if test "${with_xml2+set}" = set; then
23213   withval=$with_xml2; xml2dir=$withval
23214 fi
23215
23216 if test "$xml2dir" = "yes" -o "$xml2dir" = "default"; then
23217     if test "$pkgconfigpath" != "NONE"; then
23218         if $pkgconfigpath --exists libxml-2.0; then
23219             pkgmodule="libxml-2.0"
23220         fi
23221     fi
23222     if test -z "$pkgmodule"; then
23223         for d in /usr /usr/local; do
23224             if test -x $d/bin/xml2-config; then
23225                 xml2dir=$d
23226             fi
23227         done
23228     fi
23229 fi
23230 if test "$xml2dir" != "no"; then
23231     { echo "$as_me:$LINENO: checking for libXML2" >&5
23232 echo $ECHO_N "checking for libXML2... $ECHO_C" >&6; }
23233     if test "$pkgmodule"; then
23234         XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
23235         XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
23236         XML2_VER=`$pkgconfigpath --modversion $pkgmodule`
23237         { echo "$as_me:$LINENO: result: $XML2_VER" >&5
23238 echo "${ECHO_T}$XML2_VER" >&6; }
23239
23240         cat >>confdefs.h <<\_ACEOF
23241 #define YAZ_HAVE_XML2 1
23242 _ACEOF
23243
23244         YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XML2=1"
23245
23246
23247     elif test -x $xml2dir/bin/xml2-config; then
23248         XML2_LIBS=`$xml2dir/bin/xml2-config --libs`
23249         XML2_CFLAGS=`$xml2dir/bin/xml2-config --cflags`
23250         XML2_VER=`$xml2dir/bin/xml2-config --version`
23251         { echo "$as_me:$LINENO: result: $XML2_VER" >&5
23252 echo "${ECHO_T}$XML2_VER" >&6; }
23253
23254         cat >>confdefs.h <<\_ACEOF
23255 #define YAZ_HAVE_XML2 1
23256 _ACEOF
23257
23258         YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XML2=1"
23259
23260
23261     else
23262         { echo "$as_me:$LINENO: result: Not found" >&5
23263 echo "${ECHO_T}Not found" >&6; }
23264         if test "$xml2dir" = "default"; then
23265             { echo "$as_me:$LINENO: WARNING: libxml2 development libraries not found." >&5
23266 echo "$as_me: WARNING: libxml2 development libraries not found." >&2;}
23267             { echo "$as_me:$LINENO: WARNING: There will be no support for SRU." >&5
23268 echo "$as_me: WARNING: There will be no support for SRU." >&2;}
23269         else
23270             { { echo "$as_me:$LINENO: error: libxml2 development libraries not found." >&5
23271 echo "$as_me: error: libxml2 development libraries not found." >&2;}
23272    { (exit 1); exit 1; }; }
23273         fi
23274     fi
23275 fi
23276
23277
23278
23279         xsltdir=default
23280 pkgmodule=""
23281 XSLT_VER=""
23282
23283 # Check whether --with-xslt was given.
23284 if test "${with_xslt+set}" = set; then
23285   withval=$with_xslt; xsltdir=$withval
23286 fi
23287
23288
23289 if test "$xsltdir" = "yes" -o "$xsltdir" = "default"; then
23290     if test "$pkgconfigpath" != "NONE"; then
23291                 # pkg-config on woody reports bad CFLAGS which does
23292                 # not include libxml2 CFLAGS, so avoid it..
23293         if $pkgconfigpath --atleast-version 1.1.0 libxslt; then
23294             pkgmodule="libxslt"
23295         fi
23296     fi
23297     if test -z "$pkgmodule"; then
23298         for d in /usr /usr/local; do
23299             if test -x $d/bin/xslt-config; then
23300                 xsltdir=$d
23301             fi
23302         done
23303     fi
23304 fi
23305 if test "$xsltdir" != "no"; then
23306     { echo "$as_me:$LINENO: checking for libXSLT" >&5
23307 echo $ECHO_N "checking for libXSLT... $ECHO_C" >&6; }
23308     if test "$pkgmodule"; then
23309         XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
23310         XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
23311         XSLT_VER=`$pkgconfigpath --modversion $pkgmodule`
23312         { echo "$as_me:$LINENO: result: $XSLT_VER" >&5
23313 echo "${ECHO_T}$XSLT_VER" >&6; }
23314
23315         cat >>confdefs.h <<\_ACEOF
23316 #define YAZ_HAVE_XSLT 1
23317 _ACEOF
23318
23319         YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1"
23320
23321
23322     elif test -x $xsltdir/bin/xslt-config; then
23323         XML2_LIBS=`$xsltdir/bin/xslt-config --libs`
23324         XML2_CFLAGS=`$xsltdir/bin/xslt-config --cflags`
23325         XSLT_VER=`$xsltdir/bin/xslt-config --version`
23326         { echo "$as_me:$LINENO: result: $XSLT_VER" >&5
23327 echo "${ECHO_T}$XSLT_VER" >&6; }
23328
23329         cat >>confdefs.h <<\_ACEOF
23330 #define YAZ_HAVE_XSLT 1
23331 _ACEOF
23332
23333         YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1"
23334
23335
23336     else
23337         { echo "$as_me:$LINENO: result: Not found" >&5
23338 echo "${ECHO_T}Not found" >&6; }
23339
23340         if test "$xsltdir" = "default"; then
23341             { echo "$as_me:$LINENO: WARNING: libXSLT development libraries not found." >&5
23342 echo "$as_me: WARNING: libXSLT development libraries not found." >&2;}
23343         else
23344             { { echo "$as_me:$LINENO: error: libXSLT development libraries not found." >&5
23345 echo "$as_me: error: libXSLT development libraries not found." >&2;}
23346    { (exit 1); exit 1; }; }
23347         fi
23348     fi
23349 fi
23350
23351
23352 exsltdir=default
23353 pkgmodule=""
23354 EXSLT_VER=""
23355
23356 # Check whether --with-exslt was given.
23357 if test "${with_exslt+set}" = set; then
23358   withval=$with_exslt; exsltdir=$withval
23359 fi
23360
23361 if test "$exsltdir" = "yes" -o "$exsltdir" = "default"; then
23362     if test "$pkgconfigpath" != "NONE"; then
23363         if $pkgconfigpath --exists libexslt; then
23364             pkgmodule="libexslt"
23365         fi
23366     fi
23367 fi
23368 if test "$exsltdir" != "no"; then
23369     { echo "$as_me:$LINENO: checking for libEXSLT" >&5
23370 echo $ECHO_N "checking for libEXSLT... $ECHO_C" >&6; }
23371     if test "$pkgmodule"; then
23372         XML2_LIBS=`$pkgconfigpath --libs $pkgmodule`
23373         XML2_CFLAGS=`$pkgconfigpath --cflags $pkgmodule`
23374         EXSLT_VER=`$pkgconfigpath --modversion $pkgmodule`
23375         { echo "$as_me:$LINENO: result: $EXSLT_VER" >&5
23376 echo "${ECHO_T}$EXSLT_VER" >&6; }
23377
23378         cat >>confdefs.h <<\_ACEOF
23379 #define YAZ_HAVE_EXSLT 1
23380 _ACEOF
23381
23382         YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_EXSLT=1"
23383
23384
23385     else
23386         { echo "$as_me:$LINENO: result: Not found" >&5
23387 echo "${ECHO_T}Not found" >&6; }
23388
23389         if test "$pkgconfigpath" = "NONE"; then
23390             extra="libEXSLT not enabled. pkg-config not found."
23391         else
23392             extra="libEXSLT development libraries not found."
23393         fi
23394
23395         if test "$exsltdir" = "default"; then
23396             { echo "$as_me:$LINENO: WARNING: $extra" >&5
23397 echo "$as_me: WARNING: $extra" >&2;}
23398         else
23399             { { echo "$as_me:$LINENO: error: $extra" >&5
23400 echo "$as_me: error: $extra" >&2;}
23401    { (exit 1); exit 1; }; }
23402         fi
23403     fi
23404 fi
23405 OLIBS=$LIBS
23406 LIBS="$LIBS $XML2_LIBS"
23407
23408 for ac_func in xsltSaveResultToString
23409 do
23410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23414   echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416   cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23424 #define $ac_func innocuous_$ac_func
23425
23426 /* System header to define __stub macros and hopefully few prototypes,
23427     which can conflict with char $ac_func (); below.
23428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23429     <limits.h> exists even on freestanding compilers.  */
23430
23431 #ifdef __STDC__
23432 # include <limits.h>
23433 #else
23434 # include <assert.h>
23435 #endif
23436
23437 #undef $ac_func
23438
23439 /* Override any GCC internal prototype to avoid an error.
23440    Use char because int might match the return type of a GCC
23441    builtin and then its argument prototype would still apply.  */
23442 #ifdef __cplusplus
23443 extern "C"
23444 #endif
23445 char $ac_func ();
23446 /* The GNU C library defines this for functions which it implements
23447     to always fail with ENOSYS.  Some functions are actually named
23448     something starting with __ and the normal name is an alias.  */
23449 #if defined __stub_$ac_func || defined __stub___$ac_func
23450 choke me
23451 #endif
23452
23453 int
23454 main ()
23455 {
23456 return $ac_func ();
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (ac_try="$ac_link"
23463 case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_link") 2>conftest.er1
23469   ac_status=$?
23470   grep -v '^ *+' conftest.er1 >conftest.err
23471   rm -f conftest.er1
23472   cat conftest.err >&5
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } &&
23475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23476   { (case "(($ac_try" in
23477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478   *) ac_try_echo=$ac_try;;
23479 esac
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481   (eval "$ac_try") 2>&5
23482   ac_status=$?
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); }; } &&
23485          { ac_try='test -s conftest$ac_exeext'
23486   { (case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491   (eval "$ac_try") 2>&5
23492   ac_status=$?
23493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494   (exit $ac_status); }; }; then
23495   eval "$as_ac_var=yes"
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500         eval "$as_ac_var=no"
23501 fi
23502
23503 rm -f core conftest.err conftest.$ac_objext \
23504       conftest$ac_exeext conftest.$ac_ext
23505 fi
23506 ac_res=`eval echo '${'$as_ac_var'}'`
23507                { echo "$as_me:$LINENO: result: $ac_res" >&5
23508 echo "${ECHO_T}$ac_res" >&6; }
23509 if test `eval echo '${'$as_ac_var'}'` = yes; then
23510   cat >>confdefs.h <<_ACEOF
23511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23512 _ACEOF
23513
23514 fi
23515 done
23516
23517 LIBS=$OLIBS
23518
23519
23520 YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS $XML2_CFLAGS"
23521
23522 if test "$XML2_LIBS"; then
23523     LIBS="$XML2_LIBS $LIBS"
23524 fi
23525
23526 # Check whether --enable-memdebug was given.
23527 if test "${enable_memdebug+set}" = set; then
23528   enableval=$enable_memdebug; enable_memdebug=$enableval
23529 else
23530   enable_memdebug=none
23531 fi
23532
23533 if test "$enable_memdebug" = "yes"; then
23534     cat >>confdefs.h <<\_ACEOF
23535 #define TRACE_XMALLOC 2
23536 _ACEOF
23537
23538 elif test "$enable_memdebug" = "no"; then
23539     cat >>confdefs.h <<\_ACEOF
23540 #define TRACE_XMALLOC 0
23541 _ACEOF
23542
23543 fi
23544
23545
23546 YAZ_SRC_ROOT=`cd ${srcdir}; pwd`
23547 YAZ_BUILD_ROOT=`pwd`
23548 ac_config_files="$ac_config_files Makefile yaz.spec src/Makefile test/Makefile util/Makefile include/Makefile include/yaz/Makefile client/Makefile ztest/Makefile zoom/Makefile doc/Makefile doc/local.ent doc/common/Makefile doc/common/print.dsl etc/Makefile yaz-config Doxyfile"
23549
23550 ac_config_commands="$ac_config_commands default"
23551
23552 cat >confcache <<\_ACEOF
23553 # This file is a shell script that caches the results of configure
23554 # tests run on this system so they can be shared between configure
23555 # scripts and configure runs, see configure's option --config-cache.
23556 # It is not useful on other systems.  If it contains results you don't
23557 # want to keep, you may remove or edit it.
23558 #
23559 # config.status only pays attention to the cache file if you give it
23560 # the --recheck option to rerun configure.
23561 #
23562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23564 # following values.
23565
23566 _ACEOF
23567
23568 # The following way of writing the cache mishandles newlines in values,
23569 # but we know of no workaround that is simple, portable, and efficient.
23570 # So, we kill variables containing newlines.
23571 # Ultrix sh set writes to stderr and can't be redirected directly,
23572 # and sets the high bit in the cache file unless we assign to the vars.
23573 (
23574   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23575     eval ac_val=\$$ac_var
23576     case $ac_val in #(
23577     *${as_nl}*)
23578       case $ac_var in #(
23579       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23581       esac
23582       case $ac_var in #(
23583       _ | IFS | as_nl) ;; #(
23584       *) $as_unset $ac_var ;;
23585       esac ;;
23586     esac
23587   done
23588
23589   (set) 2>&1 |
23590     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23591     *${as_nl}ac_space=\ *)
23592       # `set' does not quote correctly, so add quotes (double-quote
23593       # substitution turns \\\\ into \\, and sed turns \\ into \).
23594       sed -n \
23595         "s/'/'\\\\''/g;
23596           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23597       ;; #(
23598     *)
23599       # `set' quotes correctly as required by POSIX, so do not add quotes.
23600       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23601       ;;
23602     esac |
23603     sort
23604 ) |
23605   sed '
23606      /^ac_cv_env_/b end
23607      t clear
23608      :clear
23609      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23610      t end
23611      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23612      :end' >>confcache
23613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23614   if test -w "$cache_file"; then
23615     test "x$cache_file" != "x/dev/null" &&
23616       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23617 echo "$as_me: updating cache $cache_file" >&6;}
23618     cat confcache >$cache_file
23619   else
23620     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23621 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23622   fi
23623 fi
23624 rm -f confcache
23625
23626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23627 # Let make expand exec_prefix.
23628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23629
23630 # Transform confdefs.h into DEFS.
23631 # Protect against shell expansion while executing Makefile rules.
23632 # Protect against Makefile macro expansion.
23633 #
23634 # If the first sed substitution is executed (which looks for macros that
23635 # take arguments), then branch to the quote section.  Otherwise,
23636 # look for a macro that doesn't take arguments.
23637 ac_script='
23638 t clear
23639 :clear
23640 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
23641 t quote
23642 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
23643 t quote
23644 b any
23645 :quote
23646 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
23647 s/\[/\\&/g
23648 s/\]/\\&/g
23649 s/\$/$$/g
23650 H
23651 :any
23652 ${
23653         g
23654         s/^\n//
23655         s/\n/ /g
23656         p
23657 }
23658 '
23659 DEFS=`sed -n "$ac_script" confdefs.h`
23660
23661
23662 ac_libobjs=
23663 ac_ltlibobjs=
23664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23665   # 1. Remove the extension, and $U if already installed.
23666   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23667   ac_i=`echo "$ac_i" | sed "$ac_script"`
23668   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23669   #    will be set to the directory where LIBOBJS objects are built.
23670   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23671   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23672 done
23673 LIBOBJS=$ac_libobjs
23674
23675 LTLIBOBJS=$ac_ltlibobjs
23676
23677
23678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23679   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23680 Usually this means the macro was only invoked conditionally." >&5
23681 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23682 Usually this means the macro was only invoked conditionally." >&2;}
23683    { (exit 1); exit 1; }; }
23684 fi
23685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23686   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23687 Usually this means the macro was only invoked conditionally." >&5
23688 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&2;}
23690    { (exit 1); exit 1; }; }
23691 fi
23692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23693   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23694 Usually this means the macro was only invoked conditionally." >&5
23695 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23696 Usually this means the macro was only invoked conditionally." >&2;}
23697    { (exit 1); exit 1; }; }
23698 fi
23699
23700 : ${CONFIG_STATUS=./config.status}
23701 ac_clean_files_save=$ac_clean_files
23702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23705 cat >$CONFIG_STATUS <<_ACEOF
23706 #! $SHELL
23707 # Generated by $as_me.
23708 # Run this file to recreate the current configuration.
23709 # Compiler output produced by configure, useful for debugging
23710 # configure, is in config.log if it exists.
23711
23712 debug=false
23713 ac_cs_recheck=false
23714 ac_cs_silent=false
23715 SHELL=\${CONFIG_SHELL-$SHELL}
23716 _ACEOF
23717
23718 cat >>$CONFIG_STATUS <<\_ACEOF
23719 ## --------------------- ##
23720 ## M4sh Initialization.  ##
23721 ## --------------------- ##
23722
23723 # Be Bourne compatible
23724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23725   emulate sh
23726   NULLCMD=:
23727   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23728   # is contrary to our usage.  Disable this feature.
23729   alias -g '${1+"$@"}'='"$@"'
23730   setopt NO_GLOB_SUBST
23731 else
23732   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23733 fi
23734 BIN_SH=xpg4; export BIN_SH # for Tru64
23735 DUALCASE=1; export DUALCASE # for MKS sh
23736
23737
23738 # PATH needs CR
23739 # Avoid depending upon Character Ranges.
23740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23743 as_cr_digits='0123456789'
23744 as_cr_alnum=$as_cr_Letters$as_cr_digits
23745
23746 # The user is always right.
23747 if test "${PATH_SEPARATOR+set}" != set; then
23748   echo "#! /bin/sh" >conf$$.sh
23749   echo  "exit 0"   >>conf$$.sh
23750   chmod +x conf$$.sh
23751   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23752     PATH_SEPARATOR=';'
23753   else
23754     PATH_SEPARATOR=:
23755   fi
23756   rm -f conf$$.sh
23757 fi
23758
23759 # Support unset when possible.
23760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23761   as_unset=unset
23762 else
23763   as_unset=false
23764 fi
23765
23766
23767 # IFS
23768 # We need space, tab and new line, in precisely that order.  Quoting is
23769 # there to prevent editors from complaining about space-tab.
23770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23771 # splitting by setting IFS to empty value.)
23772 as_nl='
23773 '
23774 IFS=" ""        $as_nl"
23775
23776 # Find who we are.  Look in the path if we contain no directory separator.
23777 case $0 in
23778   *[\\/]* ) as_myself=$0 ;;
23779   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23780 for as_dir in $PATH
23781 do
23782   IFS=$as_save_IFS
23783   test -z "$as_dir" && as_dir=.
23784   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23785 done
23786 IFS=$as_save_IFS
23787
23788      ;;
23789 esac
23790 # We did not find ourselves, most probably we were run as `sh COMMAND'
23791 # in which case we are not to be found in the path.
23792 if test "x$as_myself" = x; then
23793   as_myself=$0
23794 fi
23795 if test ! -f "$as_myself"; then
23796   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23797   { (exit 1); exit 1; }
23798 fi
23799
23800 # Work around bugs in pre-3.0 UWIN ksh.
23801 for as_var in ENV MAIL MAILPATH
23802 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23803 done
23804 PS1='$ '
23805 PS2='> '
23806 PS4='+ '
23807
23808 # NLS nuisances.
23809 for as_var in \
23810   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23811   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23812   LC_TELEPHONE LC_TIME
23813 do
23814   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23815     eval $as_var=C; export $as_var
23816   else
23817     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23818   fi
23819 done
23820
23821 # Required to use basename.
23822 if expr a : '\(a\)' >/dev/null 2>&1 &&
23823    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23824   as_expr=expr
23825 else
23826   as_expr=false
23827 fi
23828
23829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23830   as_basename=basename
23831 else
23832   as_basename=false
23833 fi
23834
23835
23836 # Name of the executable.
23837 as_me=`$as_basename -- "$0" ||
23838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23839          X"$0" : 'X\(//\)$' \| \
23840          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23841 echo X/"$0" |
23842     sed '/^.*\/\([^/][^/]*\)\/*$/{
23843             s//\1/
23844             q
23845           }
23846           /^X\/\(\/\/\)$/{
23847             s//\1/
23848             q
23849           }
23850           /^X\/\(\/\).*/{
23851             s//\1/
23852             q
23853           }
23854           s/.*/./; q'`
23855
23856 # CDPATH.
23857 $as_unset CDPATH
23858
23859
23860
23861   as_lineno_1=$LINENO
23862   as_lineno_2=$LINENO
23863   test "x$as_lineno_1" != "x$as_lineno_2" &&
23864   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23865
23866   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23867   # uniformly replaced by the line number.  The first 'sed' inserts a
23868   # line-number line after each line using $LINENO; the second 'sed'
23869   # does the real work.  The second script uses 'N' to pair each
23870   # line-number line with the line containing $LINENO, and appends
23871   # trailing '-' during substitution so that $LINENO is not a special
23872   # case at line end.
23873   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23874   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23875   # E. McMahon (1931-1989) for sed's syntax.  :-)
23876   sed -n '
23877     p
23878     /[$]LINENO/=
23879   ' <$as_myself |
23880     sed '
23881       s/[$]LINENO.*/&-/
23882       t lineno
23883       b
23884       :lineno
23885       N
23886       :loop
23887       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23888       t loop
23889       s/-\n.*//
23890     ' >$as_me.lineno &&
23891   chmod +x "$as_me.lineno" ||
23892     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23893    { (exit 1); exit 1; }; }
23894
23895   # Don't try to exec as it changes $[0], causing all sort of problems
23896   # (the dirname of $[0] is not the place where we might find the
23897   # original and so on.  Autoconf is especially sensitive to this).
23898   . "./$as_me.lineno"
23899   # Exit status is that of the last command.
23900   exit
23901 }
23902
23903
23904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23905   as_dirname=dirname
23906 else
23907   as_dirname=false
23908 fi
23909
23910 ECHO_C= ECHO_N= ECHO_T=
23911 case `echo -n x` in
23912 -n*)
23913   case `echo 'x\c'` in
23914   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23915   *)   ECHO_C='\c';;
23916   esac;;
23917 *)
23918   ECHO_N='-n';;
23919 esac
23920
23921 if expr a : '\(a\)' >/dev/null 2>&1 &&
23922    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23923   as_expr=expr
23924 else
23925   as_expr=false
23926 fi
23927
23928 rm -f conf$$ conf$$.exe conf$$.file
23929 if test -d conf$$.dir; then
23930   rm -f conf$$.dir/conf$$.file
23931 else
23932   rm -f conf$$.dir
23933   mkdir conf$$.dir
23934 fi
23935 echo >conf$$.file
23936 if ln -s conf$$.file conf$$ 2>/dev/null; then
23937   as_ln_s='ln -s'
23938   # ... but there are two gotchas:
23939   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23940   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23941   # In both cases, we have to default to `cp -p'.
23942   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23943     as_ln_s='cp -p'
23944 elif ln conf$$.file conf$$ 2>/dev/null; then
23945   as_ln_s=ln
23946 else
23947   as_ln_s='cp -p'
23948 fi
23949 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23950 rmdir conf$$.dir 2>/dev/null
23951
23952 if mkdir -p . 2>/dev/null; then
23953   as_mkdir_p=:
23954 else
23955   test -d ./-p && rmdir ./-p
23956   as_mkdir_p=false
23957 fi
23958
23959 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23960 # systems may use methods other than mode bits to determine executability.
23961 cat >conf$$.file <<_ASEOF
23962 #! /bin/sh
23963 exit 0
23964 _ASEOF
23965 chmod +x conf$$.file
23966 if test -x conf$$.file >/dev/null 2>&1; then
23967   as_executable_p="test -x"
23968 else
23969   as_executable_p=:
23970 fi
23971 rm -f conf$$.file
23972
23973 # Sed expression to map a string onto a valid CPP name.
23974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23975
23976 # Sed expression to map a string onto a valid variable name.
23977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23978
23979
23980 exec 6>&1
23981
23982 # Save the log message, to keep $[0] and so on meaningful, and to
23983 # report actual input values of CONFIG_FILES etc. instead of their
23984 # values after options handling.
23985 ac_log="
23986 This file was extended by yaz $as_me 2.1.28, which was
23987 generated by GNU Autoconf 2.60.  Invocation command line was
23988
23989   CONFIG_FILES    = $CONFIG_FILES
23990   CONFIG_HEADERS  = $CONFIG_HEADERS
23991   CONFIG_LINKS    = $CONFIG_LINKS
23992   CONFIG_COMMANDS = $CONFIG_COMMANDS
23993   $ $0 $@
23994
23995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23996 "
23997
23998 _ACEOF
23999
24000 cat >>$CONFIG_STATUS <<_ACEOF
24001 # Files that config.status was made for.
24002 config_files="$ac_config_files"
24003 config_commands="$ac_config_commands"
24004
24005 _ACEOF
24006
24007 cat >>$CONFIG_STATUS <<\_ACEOF
24008 ac_cs_usage="\
24009 \`$as_me' instantiates files from templates according to the
24010 current configuration.
24011
24012 Usage: $0 [OPTIONS] [FILE]...
24013
24014   -h, --help       print this help, then exit
24015   -V, --version    print version number, then exit
24016   -q, --quiet      do not print progress messages
24017   -d, --debug      don't remove temporary files
24018       --recheck    update $as_me by reconfiguring in the same conditions
24019   --file=FILE[:TEMPLATE]
24020                    instantiate the configuration file FILE
24021
24022 Configuration files:
24023 $config_files
24024
24025 Configuration commands:
24026 $config_commands
24027
24028 Report bugs to <bug-autoconf@gnu.org>."
24029
24030 _ACEOF
24031 cat >>$CONFIG_STATUS <<_ACEOF
24032 ac_cs_version="\\
24033 yaz config.status 2.1.28
24034 configured by $0, generated by GNU Autoconf 2.60,
24035   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24036
24037 Copyright (C) 2006 Free Software Foundation, Inc.
24038 This config.status script is free software; the Free Software Foundation
24039 gives unlimited permission to copy, distribute and modify it."
24040
24041 ac_pwd='$ac_pwd'
24042 srcdir='$srcdir'
24043 INSTALL='$INSTALL'
24044 _ACEOF
24045
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 # If no file are specified by the user, then we need to provide default
24048 # value.  By we need to know if files were specified by the user.
24049 ac_need_defaults=:
24050 while test $# != 0
24051 do
24052   case $1 in
24053   --*=*)
24054     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24055     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24056     ac_shift=:
24057     ;;
24058   *)
24059     ac_option=$1
24060     ac_optarg=$2
24061     ac_shift=shift
24062     ;;
24063   esac
24064
24065   case $ac_option in
24066   # Handling of the options.
24067   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24068     ac_cs_recheck=: ;;
24069   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24070     echo "$ac_cs_version"; exit ;;
24071   --debug | --debu | --deb | --de | --d | -d )
24072     debug=: ;;
24073   --file | --fil | --fi | --f )
24074     $ac_shift
24075     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24076     ac_need_defaults=false;;
24077   --he | --h |  --help | --hel | -h )
24078     echo "$ac_cs_usage"; exit ;;
24079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24080   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24081     ac_cs_silent=: ;;
24082
24083   # This is an error.
24084   -*) { echo "$as_me: error: unrecognized option: $1
24085 Try \`$0 --help' for more information." >&2
24086    { (exit 1); exit 1; }; } ;;
24087
24088   *) ac_config_targets="$ac_config_targets $1"
24089      ac_need_defaults=false ;;
24090
24091   esac
24092   shift
24093 done
24094
24095 ac_configure_extra_args=
24096
24097 if $ac_cs_silent; then
24098   exec 6>/dev/null
24099   ac_configure_extra_args="$ac_configure_extra_args --silent"
24100 fi
24101
24102 _ACEOF
24103 cat >>$CONFIG_STATUS <<_ACEOF
24104 if \$ac_cs_recheck; then
24105   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24106   CONFIG_SHELL=$SHELL
24107   export CONFIG_SHELL
24108   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24109 fi
24110
24111 _ACEOF
24112 cat >>$CONFIG_STATUS <<\_ACEOF
24113 exec 5>>config.log
24114 {
24115   echo
24116   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24117 ## Running $as_me. ##
24118 _ASBOX
24119   echo "$ac_log"
24120 } >&5
24121
24122 _ACEOF
24123 cat >>$CONFIG_STATUS <<_ACEOF
24124 #
24125 # INIT-COMMANDS
24126 #
24127 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24128
24129 _ACEOF
24130
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24132
24133 # Handling of arguments.
24134 for ac_config_target in $ac_config_targets
24135 do
24136   case $ac_config_target in
24137     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24138     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24139     "yaz.spec") CONFIG_FILES="$CONFIG_FILES yaz.spec" ;;
24140     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24141     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24142     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
24143     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24144     "include/yaz/Makefile") CONFIG_FILES="$CONFIG_FILES include/yaz/Makefile" ;;
24145     "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
24146     "ztest/Makefile") CONFIG_FILES="$CONFIG_FILES ztest/Makefile" ;;
24147     "zoom/Makefile") CONFIG_FILES="$CONFIG_FILES zoom/Makefile" ;;
24148     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24149     "doc/local.ent") CONFIG_FILES="$CONFIG_FILES doc/local.ent" ;;
24150     "doc/common/Makefile") CONFIG_FILES="$CONFIG_FILES doc/common/Makefile" ;;
24151     "doc/common/print.dsl") CONFIG_FILES="$CONFIG_FILES doc/common/print.dsl" ;;
24152     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24153     "yaz-config") CONFIG_FILES="$CONFIG_FILES yaz-config" ;;
24154     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
24155     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24156
24157   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24158 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24159    { (exit 1); exit 1; }; };;
24160   esac
24161 done
24162
24163
24164 # If the user did not use the arguments to specify the items to instantiate,
24165 # then the envvar interface is used.  Set only those that are not.
24166 # We use the long form for the default assignment because of an extremely
24167 # bizarre bug on SunOS 4.1.3.
24168 if $ac_need_defaults; then
24169   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24170   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24171 fi
24172
24173 # Have a temporary directory for convenience.  Make it in the build tree
24174 # simply because there is no reason against having it here, and in addition,
24175 # creating and moving files from /tmp can sometimes cause problems.
24176 # Hook for its removal unless debugging.
24177 # Note that there is a small window in which the directory will not be cleaned:
24178 # after its creation but before its name has been assigned to `$tmp'.
24179 $debug ||
24180 {
24181   tmp=
24182   trap 'exit_status=$?
24183   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24184 ' 0
24185   trap '{ (exit 1); exit 1; }' 1 2 13 15
24186 }
24187 # Create a (secure) tmp directory for tmp files.
24188
24189 {
24190   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24191   test -n "$tmp" && test -d "$tmp"
24192 }  ||
24193 {
24194   tmp=./conf$$-$RANDOM
24195   (umask 077 && mkdir "$tmp")
24196 } ||
24197 {
24198    echo "$me: cannot create a temporary directory in ." >&2
24199    { (exit 1); exit 1; }
24200 }
24201
24202 #
24203 # Set up the sed scripts for CONFIG_FILES section.
24204 #
24205
24206 # No need to generate the scripts if there are no CONFIG_FILES.
24207 # This happens for instance when ./config.status config.h
24208 if test -n "$CONFIG_FILES"; then
24209
24210 _ACEOF
24211
24212
24213
24214 ac_delim='%!_!# '
24215 for ac_last_try in false false false false false :; do
24216   cat >conf$$subs.sed <<_ACEOF
24217 SHELL!$SHELL$ac_delim
24218 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24219 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24220 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24221 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24222 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24223 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24224 exec_prefix!$exec_prefix$ac_delim
24225 prefix!$prefix$ac_delim
24226 program_transform_name!$program_transform_name$ac_delim
24227 bindir!$bindir$ac_delim
24228 sbindir!$sbindir$ac_delim
24229 libexecdir!$libexecdir$ac_delim
24230 datarootdir!$datarootdir$ac_delim
24231 datadir!$datadir$ac_delim
24232 sysconfdir!$sysconfdir$ac_delim
24233 sharedstatedir!$sharedstatedir$ac_delim
24234 localstatedir!$localstatedir$ac_delim
24235 includedir!$includedir$ac_delim
24236 oldincludedir!$oldincludedir$ac_delim
24237 docdir!$docdir$ac_delim
24238 infodir!$infodir$ac_delim
24239 htmldir!$htmldir$ac_delim
24240 dvidir!$dvidir$ac_delim
24241 pdfdir!$pdfdir$ac_delim
24242 psdir!$psdir$ac_delim
24243 libdir!$libdir$ac_delim
24244 localedir!$localedir$ac_delim
24245 mandir!$mandir$ac_delim
24246 DEFS!$DEFS$ac_delim
24247 ECHO_C!$ECHO_C$ac_delim
24248 ECHO_N!$ECHO_N$ac_delim
24249 ECHO_T!$ECHO_T$ac_delim
24250 LIBS!$LIBS$ac_delim
24251 build_alias!$build_alias$ac_delim
24252 host_alias!$host_alias$ac_delim
24253 target_alias!$target_alias$ac_delim
24254 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24255 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24256 INSTALL_DATA!$INSTALL_DATA$ac_delim
24257 CYGPATH_W!$CYGPATH_W$ac_delim
24258 PACKAGE!$PACKAGE$ac_delim
24259 VERSION!$VERSION$ac_delim
24260 ACLOCAL!$ACLOCAL$ac_delim
24261 AUTOCONF!$AUTOCONF$ac_delim
24262 AUTOMAKE!$AUTOMAKE$ac_delim
24263 AUTOHEADER!$AUTOHEADER$ac_delim
24264 MAKEINFO!$MAKEINFO$ac_delim
24265 AMTAR!$AMTAR$ac_delim
24266 install_sh!$install_sh$ac_delim
24267 STRIP!$STRIP$ac_delim
24268 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24269 mkdir_p!$mkdir_p$ac_delim
24270 AWK!$AWK$ac_delim
24271 SET_MAKE!$SET_MAKE$ac_delim
24272 am__leading_dot!$am__leading_dot$ac_delim
24273 READLINE_LIBS!$READLINE_LIBS$ac_delim
24274 YAZ_CONF_CFLAGS!$YAZ_CONF_CFLAGS$ac_delim
24275 CC!$CC$ac_delim
24276 CFLAGS!$CFLAGS$ac_delim
24277 LDFLAGS!$LDFLAGS$ac_delim
24278 CPPFLAGS!$CPPFLAGS$ac_delim
24279 ac_ct_CC!$ac_ct_CC$ac_delim
24280 EXEEXT!$EXEEXT$ac_delim
24281 OBJEXT!$OBJEXT$ac_delim
24282 DEPDIR!$DEPDIR$ac_delim
24283 am__include!$am__include$ac_delim
24284 am__quote!$am__quote$ac_delim
24285 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24286 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24287 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24288 CCDEPMODE!$CCDEPMODE$ac_delim
24289 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24290 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24291 CPP!$CPP$ac_delim
24292 YACC!$YACC$ac_delim
24293 TCLSH!$TCLSH$ac_delim
24294 build!$build$ac_delim
24295 build_cpu!$build_cpu$ac_delim
24296 build_vendor!$build_vendor$ac_delim
24297 build_os!$build_os$ac_delim
24298 host!$host$ac_delim
24299 host_cpu!$host_cpu$ac_delim
24300 host_vendor!$host_vendor$ac_delim
24301 host_os!$host_os$ac_delim
24302 GREP!$GREP$ac_delim
24303 EGREP!$EGREP$ac_delim
24304 LN_S!$LN_S$ac_delim
24305 ECHO!$ECHO$ac_delim
24306 AR!$AR$ac_delim
24307 RANLIB!$RANLIB$ac_delim
24308 CXX!$CXX$ac_delim
24309 CXXFLAGS!$CXXFLAGS$ac_delim
24310 ac_ct_CXX!$ac_ct_CXX$ac_delim
24311 CXXDEPMODE!$CXXDEPMODE$ac_delim
24312 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24313 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24314 _ACEOF
24315
24316   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24317     break
24318   elif $ac_last_try; then
24319     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24321    { (exit 1); exit 1; }; }
24322   else
24323     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24324   fi
24325 done
24326
24327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24328 if test -n "$ac_eof"; then
24329   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24330   ac_eof=`expr $ac_eof + 1`
24331 fi
24332
24333 cat >>$CONFIG_STATUS <<_ACEOF
24334 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24336 _ACEOF
24337 sed '
24338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24339 s/^/s,@/; s/!/@,|#_!!_#|/
24340 :n
24341 t n
24342 s/'"$ac_delim"'$/,g/; t
24343 s/$/\\/; p
24344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24345 ' >>$CONFIG_STATUS <conf$$subs.sed
24346 rm -f conf$$subs.sed
24347 cat >>$CONFIG_STATUS <<_ACEOF
24348 CEOF$ac_eof
24349 _ACEOF
24350
24351
24352 ac_delim='%!_!# '
24353 for ac_last_try in false false false false false :; do
24354   cat >conf$$subs.sed <<_ACEOF
24355 CXXCPP!$CXXCPP$ac_delim
24356 F77!$F77$ac_delim
24357 FFLAGS!$FFLAGS$ac_delim
24358 ac_ct_F77!$ac_ct_F77$ac_delim
24359 LIBTOOL!$LIBTOOL$ac_delim
24360 pkgconfigpath!$pkgconfigpath$ac_delim
24361 XSLTPROC_COMPILE!$XSLTPROC_COMPILE$ac_delim
24362 MAN_COMPILE!$MAN_COMPILE$ac_delim
24363 HTML_COMPILE!$HTML_COMPILE$ac_delim
24364 TKL_COMPILE!$TKL_COMPILE$ac_delim
24365 DTD_DIR!$DTD_DIR$ac_delim
24366 DSSSL_DIR!$DSSSL_DIR$ac_delim
24367 XSL_DIR!$XSL_DIR$ac_delim
24368 SSL_CFLAGS!$SSL_CFLAGS$ac_delim
24369 THREAD_CFLAGS!$THREAD_CFLAGS$ac_delim
24370 LIBPTH!$LIBPTH$ac_delim
24371 XML2_CFLAGS!$XML2_CFLAGS$ac_delim
24372 YAZ_CONFIG_CFLAGS!$YAZ_CONFIG_CFLAGS$ac_delim
24373 YAZ_SRC_ROOT!$YAZ_SRC_ROOT$ac_delim
24374 YAZ_BUILD_ROOT!$YAZ_BUILD_ROOT$ac_delim
24375 LIBOBJS!$LIBOBJS$ac_delim
24376 LTLIBOBJS!$LTLIBOBJS$ac_delim
24377 _ACEOF
24378
24379   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24380     break
24381   elif $ac_last_try; then
24382     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24383 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24384    { (exit 1); exit 1; }; }
24385   else
24386     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24387   fi
24388 done
24389
24390 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24391 if test -n "$ac_eof"; then
24392   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24393   ac_eof=`expr $ac_eof + 1`
24394 fi
24395
24396 cat >>$CONFIG_STATUS <<_ACEOF
24397 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24399 _ACEOF
24400 sed '
24401 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24402 s/^/s,@/; s/!/@,|#_!!_#|/
24403 :n
24404 t n
24405 s/'"$ac_delim"'$/,g/; t
24406 s/$/\\/; p
24407 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24408 ' >>$CONFIG_STATUS <conf$$subs.sed
24409 rm -f conf$$subs.sed
24410 cat >>$CONFIG_STATUS <<_ACEOF
24411 :end
24412 s/|#_!!_#|//g
24413 CEOF$ac_eof
24414 _ACEOF
24415
24416
24417 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24418 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24419 # trailing colons and then remove the whole line if VPATH becomes empty
24420 # (actually we leave an empty line to preserve line numbers).
24421 if test "x$srcdir" = x.; then
24422   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24423 s/:*\$(srcdir):*/:/
24424 s/:*\${srcdir}:*/:/
24425 s/:*@srcdir@:*/:/
24426 s/^\([^=]*=[     ]*\):*/\1/
24427 s/:*$//
24428 s/^[^=]*=[       ]*$//
24429 }'
24430 fi
24431
24432 cat >>$CONFIG_STATUS <<\_ACEOF
24433 fi # test -n "$CONFIG_FILES"
24434
24435
24436 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
24437 do
24438   case $ac_tag in
24439   :[FHLC]) ac_mode=$ac_tag; continue;;
24440   esac
24441   case $ac_mode$ac_tag in
24442   :[FHL]*:*);;
24443   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24444 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24445    { (exit 1); exit 1; }; };;
24446   :[FH]-) ac_tag=-:-;;
24447   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24448   esac
24449   ac_save_IFS=$IFS
24450   IFS=:
24451   set x $ac_tag
24452   IFS=$ac_save_IFS
24453   shift
24454   ac_file=$1
24455   shift
24456
24457   case $ac_mode in
24458   :L) ac_source=$1;;
24459   :[FH])
24460     ac_file_inputs=
24461     for ac_f
24462     do
24463       case $ac_f in
24464       -) ac_f="$tmp/stdin";;
24465       *) # Look for the file first in the build tree, then in the source tree
24466          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24467          # because $ac_f cannot contain `:'.
24468          test -f "$ac_f" ||
24469            case $ac_f in
24470            [\\/$]*) false;;
24471            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24472            esac ||
24473            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24474 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24475    { (exit 1); exit 1; }; };;
24476       esac
24477       ac_file_inputs="$ac_file_inputs $ac_f"
24478     done
24479
24480     # Let's still pretend it is `configure' which instantiates (i.e., don't
24481     # use $as_me), people would be surprised to read:
24482     #    /* config.h.  Generated by config.status.  */
24483     configure_input="Generated from "`IFS=:
24484           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24485     if test x"$ac_file" != x-; then
24486       configure_input="$ac_file.  $configure_input"
24487       { echo "$as_me:$LINENO: creating $ac_file" >&5
24488 echo "$as_me: creating $ac_file" >&6;}
24489     fi
24490
24491     case $ac_tag in
24492     *:-:* | *:-) cat >"$tmp/stdin";;
24493     esac
24494     ;;
24495   esac
24496
24497   ac_dir=`$as_dirname -- "$ac_file" ||
24498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24499          X"$ac_file" : 'X\(//\)[^/]' \| \
24500          X"$ac_file" : 'X\(//\)$' \| \
24501          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24502 echo X"$ac_file" |
24503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24504             s//\1/
24505             q
24506           }
24507           /^X\(\/\/\)[^/].*/{
24508             s//\1/
24509             q
24510           }
24511           /^X\(\/\/\)$/{
24512             s//\1/
24513             q
24514           }
24515           /^X\(\/\).*/{
24516             s//\1/
24517             q
24518           }
24519           s/.*/./; q'`
24520   { as_dir="$ac_dir"
24521   case $as_dir in #(
24522   -*) as_dir=./$as_dir;;
24523   esac
24524   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24525     as_dirs=
24526     while :; do
24527       case $as_dir in #(
24528       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24529       *) as_qdir=$as_dir;;
24530       esac
24531       as_dirs="'$as_qdir' $as_dirs"
24532       as_dir=`$as_dirname -- "$as_dir" ||
24533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24534          X"$as_dir" : 'X\(//\)[^/]' \| \
24535          X"$as_dir" : 'X\(//\)$' \| \
24536          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24537 echo X"$as_dir" |
24538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24539             s//\1/
24540             q
24541           }
24542           /^X\(\/\/\)[^/].*/{
24543             s//\1/
24544             q
24545           }
24546           /^X\(\/\/\)$/{
24547             s//\1/
24548             q
24549           }
24550           /^X\(\/\).*/{
24551             s//\1/
24552             q
24553           }
24554           s/.*/./; q'`
24555       test -d "$as_dir" && break
24556     done
24557     test -z "$as_dirs" || eval "mkdir $as_dirs"
24558   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24560    { (exit 1); exit 1; }; }; }
24561   ac_builddir=.
24562
24563 case "$ac_dir" in
24564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24565 *)
24566   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24567   # A ".." for each directory in $ac_dir_suffix.
24568   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24569   case $ac_top_builddir_sub in
24570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24572   esac ;;
24573 esac
24574 ac_abs_top_builddir=$ac_pwd
24575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24576 # for backward compatibility:
24577 ac_top_builddir=$ac_top_build_prefix
24578
24579 case $srcdir in
24580   .)  # We are building in place.
24581     ac_srcdir=.
24582     ac_top_srcdir=$ac_top_builddir_sub
24583     ac_abs_top_srcdir=$ac_pwd ;;
24584   [\\/]* | ?:[\\/]* )  # Absolute name.
24585     ac_srcdir=$srcdir$ac_dir_suffix;
24586     ac_top_srcdir=$srcdir
24587     ac_abs_top_srcdir=$srcdir ;;
24588   *) # Relative name.
24589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24590     ac_top_srcdir=$ac_top_build_prefix$srcdir
24591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24592 esac
24593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24594
24595
24596   case $ac_mode in
24597   :F)
24598   #
24599   # CONFIG_FILE
24600   #
24601
24602   case $INSTALL in
24603   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24604   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24605   esac
24606 _ACEOF
24607
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24609 # If the template does not know about datarootdir, expand it.
24610 # FIXME: This hack should be removed a few years after 2.60.
24611 ac_datarootdir_hack=; ac_datarootdir_seen=
24612
24613 case `sed -n '/datarootdir/ {
24614   p
24615   q
24616 }
24617 /@datadir@/p
24618 /@docdir@/p
24619 /@infodir@/p
24620 /@localedir@/p
24621 /@mandir@/p
24622 ' $ac_file_inputs` in
24623 *datarootdir*) ac_datarootdir_seen=yes;;
24624 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24625   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24626 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24627 _ACEOF
24628 cat >>$CONFIG_STATUS <<_ACEOF
24629   ac_datarootdir_hack='
24630   s&@datadir@&$datadir&g
24631   s&@docdir@&$docdir&g
24632   s&@infodir@&$infodir&g
24633   s&@localedir@&$localedir&g
24634   s&@mandir@&$mandir&g
24635     s&\\\${datarootdir}&$datarootdir&g' ;;
24636 esac
24637 _ACEOF
24638
24639 # Neutralize VPATH when `$srcdir' = `.'.
24640 # Shell code in configure.ac might set extrasub.
24641 # FIXME: do we really want to maintain this feature?
24642 cat >>$CONFIG_STATUS <<_ACEOF
24643   sed "$ac_vpsub
24644 $extrasub
24645 _ACEOF
24646 cat >>$CONFIG_STATUS <<\_ACEOF
24647 :t
24648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24649 s&@configure_input@&$configure_input&;t t
24650 s&@top_builddir@&$ac_top_builddir_sub&;t t
24651 s&@srcdir@&$ac_srcdir&;t t
24652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24653 s&@top_srcdir@&$ac_top_srcdir&;t t
24654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24655 s&@builddir@&$ac_builddir&;t t
24656 s&@abs_builddir@&$ac_abs_builddir&;t t
24657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24658 s&@INSTALL@&$ac_INSTALL&;t t
24659 $ac_datarootdir_hack
24660 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24661
24662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24663   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24664   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24665   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24666 which seems to be undefined.  Please make sure it is defined." >&5
24667 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24668 which seems to be undefined.  Please make sure it is defined." >&2;}
24669
24670   rm -f "$tmp/stdin"
24671   case $ac_file in
24672   -) cat "$tmp/out"; rm -f "$tmp/out";;
24673   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24674   esac
24675  ;;
24676
24677
24678   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24679 echo "$as_me: executing $ac_file commands" >&6;}
24680  ;;
24681   esac
24682
24683
24684   case $ac_file$ac_mode in
24685     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24686   # Strip MF so we end up with the name of the file.
24687   mf=`echo "$mf" | sed -e 's/:.*$//'`
24688   # Check whether this is an Automake generated Makefile or not.
24689   # We used to match only the files named `Makefile.in', but
24690   # some people rename them; so instead we look at the file content.
24691   # Grep'ing the first line is not enough: some people post-process
24692   # each Makefile.in and add a new line on top of each file to say so.
24693   # So let's grep whole file.
24694   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24695     dirpart=`$as_dirname -- "$mf" ||
24696 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24697          X"$mf" : 'X\(//\)[^/]' \| \
24698          X"$mf" : 'X\(//\)$' \| \
24699          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24700 echo X"$mf" |
24701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24702             s//\1/
24703             q
24704           }
24705           /^X\(\/\/\)[^/].*/{
24706             s//\1/
24707             q
24708           }
24709           /^X\(\/\/\)$/{
24710             s//\1/
24711             q
24712           }
24713           /^X\(\/\).*/{
24714             s//\1/
24715             q
24716           }
24717           s/.*/./; q'`
24718   else
24719     continue
24720   fi
24721   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24722   # Extract the definition of DEP_FILES from the Makefile without
24723   # running `make'.
24724   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24725   test -z "$DEPDIR" && continue
24726   # When using ansi2knr, U may be empty or an underscore; expand it
24727   U=`sed -n 's/^U = //p' < "$mf"`
24728   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24729   # We invoke sed twice because it is the simplest approach to
24730   # changing $(DEPDIR) to its actual value in the expansion.
24731   for file in `sed -n '
24732     /^DEP_FILES = .*\\\\$/ {
24733       s/^DEP_FILES = //
24734       :loop
24735         s/\\\\$//
24736         p
24737         n
24738         /\\\\$/ b loop
24739       p
24740     }
24741     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24742        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24743     # Make sure the directory exists.
24744     test -f "$dirpart/$file" && continue
24745     fdir=`$as_dirname -- "$file" ||
24746 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24747          X"$file" : 'X\(//\)[^/]' \| \
24748          X"$file" : 'X\(//\)$' \| \
24749          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24750 echo X"$file" |
24751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24752             s//\1/
24753             q
24754           }
24755           /^X\(\/\/\)[^/].*/{
24756             s//\1/
24757             q
24758           }
24759           /^X\(\/\/\)$/{
24760             s//\1/
24761             q
24762           }
24763           /^X\(\/\).*/{
24764             s//\1/
24765             q
24766           }
24767           s/.*/./; q'`
24768     { as_dir=$dirpart/$fdir
24769   case $as_dir in #(
24770   -*) as_dir=./$as_dir;;
24771   esac
24772   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24773     as_dirs=
24774     while :; do
24775       case $as_dir in #(
24776       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24777       *) as_qdir=$as_dir;;
24778       esac
24779       as_dirs="'$as_qdir' $as_dirs"
24780       as_dir=`$as_dirname -- "$as_dir" ||
24781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24782          X"$as_dir" : 'X\(//\)[^/]' \| \
24783          X"$as_dir" : 'X\(//\)$' \| \
24784          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24785 echo X"$as_dir" |
24786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24787             s//\1/
24788             q
24789           }
24790           /^X\(\/\/\)[^/].*/{
24791             s//\1/
24792             q
24793           }
24794           /^X\(\/\/\)$/{
24795             s//\1/
24796             q
24797           }
24798           /^X\(\/\).*/{
24799             s//\1/
24800             q
24801           }
24802           s/.*/./; q'`
24803       test -d "$as_dir" && break
24804     done
24805     test -z "$as_dirs" || eval "mkdir $as_dirs"
24806   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24807 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24808    { (exit 1); exit 1; }; }; }
24809     # echo "creating $dirpart/$file"
24810     echo '# dummy' > "$dirpart/$file"
24811   done
24812 done
24813  ;;
24814     "default":C) sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz-config > util/yaz-config && chmod +x yaz-config util/yaz-config ;;
24815
24816   esac
24817 done # for ac_tag
24818
24819
24820 { (exit 0); exit 0; }
24821 _ACEOF
24822 chmod +x $CONFIG_STATUS
24823 ac_clean_files=$ac_clean_files_save
24824
24825
24826 # configure is writing to config.log, and then calls config.status.
24827 # config.status does its own redirection, appending to config.log.
24828 # Unfortunately, on DOS this fails, as config.log is still kept open
24829 # by configure, so config.status won't be able to write to it; its
24830 # output is simply discarded.  So we exec the FD to /dev/null,
24831 # effectively closing config.log, so it can be properly (re)opened and
24832 # appended to by config.status.  When coming back to configure, we
24833 # need to make the FD available again.
24834 if test "$no_create" != yes; then
24835   ac_cs_success=:
24836   ac_config_status_args=
24837   test "$silent" = yes &&
24838     ac_config_status_args="$ac_config_status_args --quiet"
24839   exec 5>/dev/null
24840   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24841   exec 5>>config.log
24842   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24843   # would make configure fail if this is the last instruction.
24844   $ac_cs_success || { (exit 1); exit 1; }
24845 fi
24846
24847
24848
24849 echo \
24850 "------------------------------------------------------------------------
24851 Configuration:
24852
24853   YAZ Package:                ${PACKAGE}
24854   YAZ Version:                ${VERSION}
24855   Bugreport:                  ${PACKAGE_BUGREPORT}
24856   Source code location:       ${srcdir}
24857   C Preprocessor:             ${CPP}
24858   C Preprocessor flags:       ${CPPFLAGS}
24859   C Compiler:                 ${CC}
24860   C Compiler flags:           ${CFLAGS}
24861   Linker flags:               ${LDFLAGS}
24862   Linked libs:                ${LIBS}
24863   Host System Type:           ${host}
24864   Install path:               ${prefix}
24865   Automake:                   ${AUTOMAKE}
24866   Archiver:                   ${AR}
24867   Ranlib:                     ${RANLIB}
24868
24869 ------------------------------------------------------------------------"