Tizen 2.1 base
[external/libgpg-error.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libgpg-error 1.7.
4 #
5 # Report bugs to <bug-gnupg@gnupg.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 tagnames=${tagnames+${tagnames},}RC
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
601        echo_test_string="`eval $cmd`" &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 tagnames=${tagnames+${tagnames},}CXX
707
708 tagnames=${tagnames+${tagnames},}F77
709
710 exec 7<&0 </dev/null 6>&1
711
712 # Name of the host.
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717 #
718 # Initializations.
719 #
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728 SHELL=${CONFIG_SHELL-/bin/sh}
729
730 # Identity of this package.
731 PACKAGE_NAME='libgpg-error'
732 PACKAGE_TARNAME='libgpg-error'
733 PACKAGE_VERSION='1.7'
734 PACKAGE_STRING='libgpg-error 1.7'
735 PACKAGE_BUGREPORT='bug-gnupg@gnupg.org'
736
737 ac_unique_file="src/err-sources.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 LIBGPG_ERROR_LT_CURRENT
812 LIBGPG_ERROR_LT_AGE
813 LIBGPG_ERROR_LT_REVISION
814 INSTALL_PROGRAM
815 INSTALL_SCRIPT
816 INSTALL_DATA
817 am__isrc
818 CYGPATH_W
819 PACKAGE
820 VERSION
821 ACLOCAL
822 AUTOCONF
823 AUTOMAKE
824 AUTOHEADER
825 MAKEINFO
826 install_sh
827 STRIP
828 INSTALL_STRIP_PROGRAM
829 mkdir_p
830 AWK
831 SET_MAKE
832 am__leading_dot
833 AMTAR
834 am__tar
835 am__untar
836 MAINTAINER_MODE_TRUE
837 MAINTAINER_MODE_FALSE
838 MAINT
839 build
840 build_cpu
841 build_vendor
842 build_os
843 host
844 host_cpu
845 host_vendor
846 host_os
847 CC
848 CFLAGS
849 LDFLAGS
850 CPPFLAGS
851 ac_ct_CC
852 EXEEXT
853 OBJEXT
854 DEPDIR
855 am__include
856 am__quote
857 AMDEP_TRUE
858 AMDEP_FALSE
859 AMDEPBACKSLASH
860 CCDEPMODE
861 am__fastdepCC_TRUE
862 am__fastdepCC_FALSE
863 CPP
864 AR
865 RC
866 GREP
867 EGREP
868 LN_S
869 ECHO
870 RANLIB
871 DLLTOOL
872 AS
873 OBJDUMP
874 CXX
875 CXXFLAGS
876 ac_ct_CXX
877 CXXDEPMODE
878 am__fastdepCXX_TRUE
879 am__fastdepCXX_FALSE
880 CXXCPP
881 F77
882 FFLAGS
883 ac_ct_F77
884 LIBTOOL
885 CC_FOR_BUILD
886 USE_NLS
887 MSGFMT
888 GMSGFMT
889 MSGFMT_015
890 GMSGFMT_015
891 XGETTEXT
892 XGETTEXT_015
893 MSGMERGE
894 INTL_MACOSX_LIBS
895 LIBICONV
896 LTLIBICONV
897 INTLLIBS
898 LIBINTL
899 LTLIBINTL
900 POSUB
901 GPG_ERROR_CONFIG_LIBS
902 GPG_ERROR_CONFIG_CFLAGS
903 BUILD_TIMESTAMP
904 BUILD_FILEVERSION
905 HAVE_W32_SYSTEM_TRUE
906 HAVE_W32_SYSTEM_FALSE
907 LANGUAGES_SOME_TRUE
908 LANGUAGES_SOME_FALSE
909 LIBOBJS
910 LTLIBOBJS'
911 ac_subst_files=''
912       ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CPP
921 CXX
922 CXXFLAGS
923 CCC
924 CXXCPP
925 F77
926 FFLAGS
927 CC_FOR_BUILD'
928
929
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
949
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980   # If the previous option needs an argument, assign it.
981   if test -n "$ac_prev"; then
982     eval $ac_prev=\$ac_option
983     ac_prev=
984     continue
985   fi
986
987   case $ac_option in
988   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989   *)    ac_optarg=yes ;;
990   esac
991
992   # Accept the important Cygnus configure options, so we can diagnose typos.
993
994   case $ac_dashdash$ac_option in
995   --)
996     ac_dashdash=yes ;;
997
998   -bindir | --bindir | --bindi | --bind | --bin | --bi)
999     ac_prev=bindir ;;
1000   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001     bindir=$ac_optarg ;;
1002
1003   -build | --build | --buil | --bui | --bu)
1004     ac_prev=build_alias ;;
1005   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006     build_alias=$ac_optarg ;;
1007
1008   -cache-file | --cache-file | --cache-fil | --cache-fi \
1009   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010     ac_prev=cache_file ;;
1011   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013     cache_file=$ac_optarg ;;
1014
1015   --config-cache | -C)
1016     cache_file=config.cache ;;
1017
1018   -datadir | --datadir | --datadi | --datad)
1019     ac_prev=datadir ;;
1020   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021     datadir=$ac_optarg ;;
1022
1023   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024   | --dataroo | --dataro | --datar)
1025     ac_prev=datarootdir ;;
1026   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028     datarootdir=$ac_optarg ;;
1029
1030   -disable-* | --disable-*)
1031     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032     # Reject names that are not valid shell variable names.
1033     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035    { (exit 1); exit 1; }; }
1036     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037     eval enable_$ac_feature=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054    { (exit 1); exit 1; }; }
1055     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056     eval enable_$ac_feature=\$ac_optarg ;;
1057
1058   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060   | --exec | --exe | --ex)
1061     ac_prev=exec_prefix ;;
1062   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064   | --exec=* | --exe=* | --ex=*)
1065     exec_prefix=$ac_optarg ;;
1066
1067   -gas | --gas | --ga | --g)
1068     # Obsolete; use --with-gas.
1069     with_gas=yes ;;
1070
1071   -help | --help | --hel | --he | -h)
1072     ac_init_help=long ;;
1073   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074     ac_init_help=recursive ;;
1075   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076     ac_init_help=short ;;
1077
1078   -host | --host | --hos | --ho)
1079     ac_prev=host_alias ;;
1080   -host=* | --host=* | --hos=* | --ho=*)
1081     host_alias=$ac_optarg ;;
1082
1083   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084     ac_prev=htmldir ;;
1085   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086   | --ht=*)
1087     htmldir=$ac_optarg ;;
1088
1089   -includedir | --includedir | --includedi | --included | --include \
1090   | --includ | --inclu | --incl | --inc)
1091     ac_prev=includedir ;;
1092   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093   | --includ=* | --inclu=* | --incl=* | --inc=*)
1094     includedir=$ac_optarg ;;
1095
1096   -infodir | --infodir | --infodi | --infod | --info | --inf)
1097     ac_prev=infodir ;;
1098   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099     infodir=$ac_optarg ;;
1100
1101   -libdir | --libdir | --libdi | --libd)
1102     ac_prev=libdir ;;
1103   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104     libdir=$ac_optarg ;;
1105
1106   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107   | --libexe | --libex | --libe)
1108     ac_prev=libexecdir ;;
1109   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110   | --libexe=* | --libex=* | --libe=*)
1111     libexecdir=$ac_optarg ;;
1112
1113   -localedir | --localedir | --localedi | --localed | --locale)
1114     ac_prev=localedir ;;
1115   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116     localedir=$ac_optarg ;;
1117
1118   -localstatedir | --localstatedir | --localstatedi | --localstated \
1119   | --localstate | --localstat | --localsta | --localst | --locals)
1120     ac_prev=localstatedir ;;
1121   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123     localstatedir=$ac_optarg ;;
1124
1125   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126     ac_prev=mandir ;;
1127   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128     mandir=$ac_optarg ;;
1129
1130   -nfp | --nfp | --nf)
1131     # Obsolete; use --without-fp.
1132     with_fp=no ;;
1133
1134   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135   | --no-cr | --no-c | -n)
1136     no_create=yes ;;
1137
1138   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140     no_recursion=yes ;;
1141
1142   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144   | --oldin | --oldi | --old | --ol | --o)
1145     ac_prev=oldincludedir ;;
1146   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149     oldincludedir=$ac_optarg ;;
1150
1151   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152     ac_prev=prefix ;;
1153   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154     prefix=$ac_optarg ;;
1155
1156   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157   | --program-pre | --program-pr | --program-p)
1158     ac_prev=program_prefix ;;
1159   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161     program_prefix=$ac_optarg ;;
1162
1163   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164   | --program-suf | --program-su | --program-s)
1165     ac_prev=program_suffix ;;
1166   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168     program_suffix=$ac_optarg ;;
1169
1170   -program-transform-name | --program-transform-name \
1171   | --program-transform-nam | --program-transform-na \
1172   | --program-transform-n | --program-transform- \
1173   | --program-transform | --program-transfor \
1174   | --program-transfo | --program-transf \
1175   | --program-trans | --program-tran \
1176   | --progr-tra | --program-tr | --program-t)
1177     ac_prev=program_transform_name ;;
1178   -program-transform-name=* | --program-transform-name=* \
1179   | --program-transform-nam=* | --program-transform-na=* \
1180   | --program-transform-n=* | --program-transform-=* \
1181   | --program-transform=* | --program-transfor=* \
1182   | --program-transfo=* | --program-transf=* \
1183   | --program-trans=* | --program-tran=* \
1184   | --progr-tra=* | --program-tr=* | --program-t=*)
1185     program_transform_name=$ac_optarg ;;
1186
1187   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188     ac_prev=pdfdir ;;
1189   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190     pdfdir=$ac_optarg ;;
1191
1192   -psdir | --psdir | --psdi | --psd | --ps)
1193     ac_prev=psdir ;;
1194   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195     psdir=$ac_optarg ;;
1196
1197   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198   | -silent | --silent | --silen | --sile | --sil)
1199     silent=yes ;;
1200
1201   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1202     ac_prev=sbindir ;;
1203   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1204   | --sbi=* | --sb=*)
1205     sbindir=$ac_optarg ;;
1206
1207   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209   | --sharedst | --shareds | --shared | --share | --shar \
1210   | --sha | --sh)
1211     ac_prev=sharedstatedir ;;
1212   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1215   | --sha=* | --sh=*)
1216     sharedstatedir=$ac_optarg ;;
1217
1218   -site | --site | --sit)
1219     ac_prev=site ;;
1220   -site=* | --site=* | --sit=*)
1221     site=$ac_optarg ;;
1222
1223   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1224     ac_prev=srcdir ;;
1225   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226     srcdir=$ac_optarg ;;
1227
1228   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229   | --syscon | --sysco | --sysc | --sys | --sy)
1230     ac_prev=sysconfdir ;;
1231   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233     sysconfdir=$ac_optarg ;;
1234
1235   -target | --target | --targe | --targ | --tar | --ta | --t)
1236     ac_prev=target_alias ;;
1237   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238     target_alias=$ac_optarg ;;
1239
1240   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1241     verbose=yes ;;
1242
1243   -version | --version | --versio | --versi | --vers | -V)
1244     ac_init_version=: ;;
1245
1246   -with-* | --with-*)
1247     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       { echo "$as_me: error: invalid package name: $ac_package" >&2
1251    { (exit 1); exit 1; }; }
1252     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253     eval with_$ac_package=\$ac_optarg ;;
1254
1255   -without-* | --without-*)
1256     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259       { echo "$as_me: error: invalid package name: $ac_package" >&2
1260    { (exit 1); exit 1; }; }
1261     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262     eval with_$ac_package=no ;;
1263
1264   --x)
1265     # Obsolete; use --with-x.
1266     with_x=yes ;;
1267
1268   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269   | --x-incl | --x-inc | --x-in | --x-i)
1270     ac_prev=x_includes ;;
1271   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273     x_includes=$ac_optarg ;;
1274
1275   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277     ac_prev=x_libraries ;;
1278   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280     x_libraries=$ac_optarg ;;
1281
1282   -*) { echo "$as_me: error: unrecognized option: $ac_option
1283 Try \`$0 --help' for more information." >&2
1284    { (exit 1); exit 1; }; }
1285     ;;
1286
1287   *=*)
1288     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292    { (exit 1); exit 1; }; }
1293     eval $ac_envvar=\$ac_optarg
1294     export $ac_envvar ;;
1295
1296   *)
1297     # FIXME: should be removed in autoconf 3.0.
1298     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302     ;;
1303
1304   esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309   { echo "$as_me: error: missing argument to $ac_option" >&2
1310    { (exit 1); exit 1; }; }
1311 fi
1312
1313 # Be sure to have absolute directory names.
1314 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315                 datadir sysconfdir sharedstatedir localstatedir includedir \
1316                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317                 libdir localedir mandir
1318 do
1319   eval ac_val=\$$ac_var
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325    { (exit 1); exit 1; }; }
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337   if test "x$build_alias" = x; then
1338     cross_compiling=maybe
1339     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340     If a cross compiler is detected then cross compile mode will be used." >&2
1341   elif test "x$build_alias" != "x$host_alias"; then
1342     cross_compiling=yes
1343   fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355   { echo "$as_me: error: Working directory cannot be determined" >&2
1356    { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358   { echo "$as_me: error: pwd does not report name of working directory" >&2
1359    { (exit 1); exit 1; }; }
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364   ac_srcdir_defaulted=yes
1365   # Try the directory containing this script, then the parent directory.
1366   ac_confdir=`$as_dirname -- "$0" ||
1367 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368          X"$0" : 'X\(//\)[^/]' \| \
1369          X"$0" : 'X\(//\)$' \| \
1370          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1371 echo X"$0" |
1372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)[^/].*/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\).*/{
1385             s//\1/
1386             q
1387           }
1388           s/.*/./; q'`
1389   srcdir=$ac_confdir
1390   if test ! -r "$srcdir/$ac_unique_file"; then
1391     srcdir=..
1392   fi
1393 else
1394   ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399    { (exit 1); exit 1; }; }
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404    { (exit 1); exit 1; }; }
1405         pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408   srcdir=.
1409 fi
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_env_${ac_var}_value=\$${ac_var}
1419   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1422
1423 #
1424 # Report the --help message.
1425 #
1426 if test "$ac_init_help" = "long"; then
1427   # Omit some internal or obsolete options to make the list less imposing.
1428   # This message is too long to be a string in the A/UX 3.1 sh.
1429   cat <<_ACEOF
1430 \`configure' configures libgpg-error 1.7 to adapt to many kinds of systems.
1431
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437 Defaults for the options are specified in brackets.
1438
1439 Configuration:
1440   -h, --help              display this help and exit
1441       --help=short        display options specific to this package
1442       --help=recursive    display the short help of all the included packages
1443   -V, --version           display version information and exit
1444   -q, --quiet, --silent   do not print \`checking...' messages
1445       --cache-file=FILE   cache test results in FILE [disabled]
1446   -C, --config-cache      alias for \`--cache-file=config.cache'
1447   -n, --no-create         do not create output files
1448       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450 Installation directories:
1451   --prefix=PREFIX         install architecture-independent files in PREFIX
1452                           [$ac_default_prefix]
1453   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454                           [PREFIX]
1455
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1460
1461 For better control, use the options below.
1462
1463 Fine tuning of the installation directories:
1464   --bindir=DIR           user executables [EPREFIX/bin]
1465   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1466   --libexecdir=DIR       program executables [EPREFIX/libexec]
1467   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1468   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1469   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1470   --libdir=DIR           object code libraries [EPREFIX/lib]
1471   --includedir=DIR       C header files [PREFIX/include]
1472   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1473   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1474   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1475   --infodir=DIR          info documentation [DATAROOTDIR/info]
1476   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1477   --mandir=DIR           man documentation [DATAROOTDIR/man]
1478   --docdir=DIR           documentation root [DATAROOTDIR/doc/libgpg-error]
1479   --htmldir=DIR          html documentation [DOCDIR]
1480   --dvidir=DIR           dvi documentation [DOCDIR]
1481   --pdfdir=DIR           pdf documentation [DOCDIR]
1482   --psdir=DIR            ps documentation [DOCDIR]
1483 _ACEOF
1484
1485   cat <<\_ACEOF
1486
1487 Program names:
1488   --program-prefix=PREFIX            prepend PREFIX to installed program names
1489   --program-suffix=SUFFIX            append SUFFIX to installed program names
1490   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1491
1492 System types:
1493   --build=BUILD     configure for building on BUILD [guessed]
1494   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1496 fi
1497
1498 if test -n "$ac_init_help"; then
1499   case $ac_init_help in
1500      short | recursive ) echo "Configuration of libgpg-error 1.7:";;
1501    esac
1502   cat <<\_ACEOF
1503
1504 Optional Features:
1505   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507   --enable-maintainer-mode  enable make rules and dependencies not useful
1508                           (and sometimes confusing) to the casual installer
1509   --disable-dependency-tracking  speeds up one-time build
1510   --enable-dependency-tracking   do not reject slow dependency extractors
1511   --enable-shared[=PKGS]  build shared libraries [default=yes]
1512   --enable-static[=PKGS]  build static libraries [default=yes]
1513   --enable-fast-install[=PKGS]
1514                           optimize for fast installation [default=yes]
1515   --disable-libtool-lock  avoid locking (might break parallel builds)
1516   --disable-nls           do not use Native Language Support
1517   --disable-rpath         do not hardcode runtime library paths
1518   --disable-languages     do not build support for other languages than C
1519
1520 Optional Packages:
1521   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524   --with-pic              try to use only PIC/non-PIC objects [default=use
1525                           both]
1526   --with-tags[=TAGS]      include additional configurations [automatic]
1527   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1528   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1529   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1530   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1531   --without-libintl-prefix     don't search for libintl in includedir and libdir
1532
1533 Some influential environment variables:
1534   CC          C compiler command
1535   CFLAGS      C compiler flags
1536   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537               nonstandard directory <lib dir>
1538   LIBS        libraries to pass to the linker, e.g. -l<library>
1539   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540               you have headers in a nonstandard directory <include dir>
1541   CPP         C preprocessor
1542   CXX         C++ compiler command
1543   CXXFLAGS    C++ compiler flags
1544   CXXCPP      C++ preprocessor
1545   F77         Fortran 77 compiler command
1546   FFLAGS      Fortran 77 compiler flags
1547   CC_FOR_BUILD
1548               build system C compiler
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to <bug-gnupg@gnupg.org>.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559   # If there are subdirs, report their specific --help.
1560   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561     test -d "$ac_dir" || continue
1562     ac_builddir=.
1563
1564 case "$ac_dir" in
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *)
1567   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1568   # A ".." for each directory in $ac_dir_suffix.
1569   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1570   case $ac_top_builddir_sub in
1571   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573   esac ;;
1574 esac
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1579
1580 case $srcdir in
1581   .)  # We are building in place.
1582     ac_srcdir=.
1583     ac_top_srcdir=$ac_top_builddir_sub
1584     ac_abs_top_srcdir=$ac_pwd ;;
1585   [\\/]* | ?:[\\/]* )  # Absolute name.
1586     ac_srcdir=$srcdir$ac_dir_suffix;
1587     ac_top_srcdir=$srcdir
1588     ac_abs_top_srcdir=$srcdir ;;
1589   *) # Relative name.
1590     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591     ac_top_srcdir=$ac_top_build_prefix$srcdir
1592     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 esac
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595
1596     cd "$ac_dir" || { ac_status=$?; continue; }
1597     # Check for guested configure.
1598     if test -f "$ac_srcdir/configure.gnu"; then
1599       echo &&
1600       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601     elif test -f "$ac_srcdir/configure"; then
1602       echo &&
1603       $SHELL "$ac_srcdir/configure" --help=recursive
1604     else
1605       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606     fi || ac_status=$?
1607     cd "$ac_pwd" || { ac_status=$?; break; }
1608   done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613   cat <<\_ACEOF
1614 libgpg-error configure 1.7
1615 generated by GNU Autoconf 2.61
1616
1617 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1618 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622   exit
1623 fi
1624 cat >config.log <<_ACEOF
1625 This file contains any messages produced by compilers while
1626 running configure, to aid debugging if configure makes a mistake.
1627
1628 It was created by libgpg-error $as_me 1.7, which was
1629 generated by GNU Autoconf 2.61.  Invocation command line was
1630
1631   $ $0 $@
1632
1633 _ACEOF
1634 exec 5>>config.log
1635 {
1636 cat <<_ASUNAME
1637 ## --------- ##
1638 ## Platform. ##
1639 ## --------- ##
1640
1641 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1642 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1643 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1644 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1645 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1646
1647 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1648 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1649
1650 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1651 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1652 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1653 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1654 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1655 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1656 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1657
1658 _ASUNAME
1659
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663   IFS=$as_save_IFS
1664   test -z "$as_dir" && as_dir=.
1665   echo "PATH: $as_dir"
1666 done
1667 IFS=$as_save_IFS
1668
1669 } >&5
1670
1671 cat >&5 <<_ACEOF
1672
1673
1674 ## ----------- ##
1675 ## Core tests. ##
1676 ## ----------- ##
1677
1678 _ACEOF
1679
1680
1681 # Keep a trace of the command line.
1682 # Strip out --no-create and --no-recursion so they do not pile up.
1683 # Strip out --silent because we don't want to record it for future runs.
1684 # Also quote any args containing shell meta-characters.
1685 # Make two passes to allow for proper duplicate-argument suppression.
1686 ac_configure_args=
1687 ac_configure_args0=
1688 ac_configure_args1=
1689 ac_must_keep_next=false
1690 for ac_pass in 1 2
1691 do
1692   for ac_arg
1693   do
1694     case $ac_arg in
1695     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1696     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1697     | -silent | --silent | --silen | --sile | --sil)
1698       continue ;;
1699     *\'*)
1700       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1701     esac
1702     case $ac_pass in
1703     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1704     2)
1705       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1706       if test $ac_must_keep_next = true; then
1707         ac_must_keep_next=false # Got value, back to normal.
1708       else
1709         case $ac_arg in
1710           *=* | --config-cache | -C | -disable-* | --disable-* \
1711           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1712           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1713           | -with-* | --with-* | -without-* | --without-* | --x)
1714             case "$ac_configure_args0 " in
1715               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1716             esac
1717             ;;
1718           -* ) ac_must_keep_next=true ;;
1719         esac
1720       fi
1721       ac_configure_args="$ac_configure_args '$ac_arg'"
1722       ;;
1723     esac
1724   done
1725 done
1726 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1727 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1728
1729 # When interrupted or exit'd, cleanup temporary files, and complete
1730 # config.log.  We remove comments because anyway the quotes in there
1731 # would cause problems or look ugly.
1732 # WARNING: Use '\'' to represent an apostrophe within the trap.
1733 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1734 trap 'exit_status=$?
1735   # Save into config.log some information that might help in debugging.
1736   {
1737     echo
1738
1739     cat <<\_ASBOX
1740 ## ---------------- ##
1741 ## Cache variables. ##
1742 ## ---------------- ##
1743 _ASBOX
1744     echo
1745     # The following way of writing the cache mishandles newlines in values,
1746 (
1747   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1748     eval ac_val=\$$ac_var
1749     case $ac_val in #(
1750     *${as_nl}*)
1751       case $ac_var in #(
1752       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1753 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1754       esac
1755       case $ac_var in #(
1756       _ | IFS | as_nl) ;; #(
1757       *) $as_unset $ac_var ;;
1758       esac ;;
1759     esac
1760   done
1761   (set) 2>&1 |
1762     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1763     *${as_nl}ac_space=\ *)
1764       sed -n \
1765         "s/'\''/'\''\\\\'\'''\''/g;
1766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1767       ;; #(
1768     *)
1769       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1770       ;;
1771     esac |
1772     sort
1773 )
1774     echo
1775
1776     cat <<\_ASBOX
1777 ## ----------------- ##
1778 ## Output variables. ##
1779 ## ----------------- ##
1780 _ASBOX
1781     echo
1782     for ac_var in $ac_subst_vars
1783     do
1784       eval ac_val=\$$ac_var
1785       case $ac_val in
1786       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787       esac
1788       echo "$ac_var='\''$ac_val'\''"
1789     done | sort
1790     echo
1791
1792     if test -n "$ac_subst_files"; then
1793       cat <<\_ASBOX
1794 ## ------------------- ##
1795 ## File substitutions. ##
1796 ## ------------------- ##
1797 _ASBOX
1798       echo
1799       for ac_var in $ac_subst_files
1800       do
1801         eval ac_val=\$$ac_var
1802         case $ac_val in
1803         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804         esac
1805         echo "$ac_var='\''$ac_val'\''"
1806       done | sort
1807       echo
1808     fi
1809
1810     if test -s confdefs.h; then
1811       cat <<\_ASBOX
1812 ## ----------- ##
1813 ## confdefs.h. ##
1814 ## ----------- ##
1815 _ASBOX
1816       echo
1817       cat confdefs.h
1818       echo
1819     fi
1820     test "$ac_signal" != 0 &&
1821       echo "$as_me: caught signal $ac_signal"
1822     echo "$as_me: exit $exit_status"
1823   } >&5
1824   rm -f core *.core core.conftest.* &&
1825     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1826     exit $exit_status
1827 ' 0
1828 for ac_signal in 1 2 13 15; do
1829   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1830 done
1831 ac_signal=0
1832
1833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1834 rm -f -r conftest* confdefs.h
1835
1836 # Predefined preprocessor variables.
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_NAME "$PACKAGE_NAME"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_STRING "$PACKAGE_STRING"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1860 _ACEOF
1861
1862
1863 # Let the site file select an alternate cache file if it wants to.
1864 # Prefer explicitly selected file to automatically selected ones.
1865 if test -n "$CONFIG_SITE"; then
1866   set x "$CONFIG_SITE"
1867 elif test "x$prefix" != xNONE; then
1868   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1869 else
1870   set x "$ac_default_prefix/share/config.site" \
1871         "$ac_default_prefix/etc/config.site"
1872 fi
1873 shift
1874 for ac_site_file
1875 do
1876   if test -r "$ac_site_file"; then
1877     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1878 echo "$as_me: loading site script $ac_site_file" >&6;}
1879     sed 's/^/| /' "$ac_site_file" >&5
1880     . "$ac_site_file"
1881   fi
1882 done
1883
1884 if test -r "$cache_file"; then
1885   # Some versions of bash will fail to source /dev/null (special
1886   # files actually), so we avoid doing that.
1887   if test -f "$cache_file"; then
1888     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1889 echo "$as_me: loading cache $cache_file" >&6;}
1890     case $cache_file in
1891       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1892       *)                      . "./$cache_file";;
1893     esac
1894   fi
1895 else
1896   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1897 echo "$as_me: creating cache $cache_file" >&6;}
1898   >$cache_file
1899 fi
1900
1901 # Check that the precious variables saved in the cache have kept the same
1902 # value.
1903 ac_cache_corrupted=false
1904 for ac_var in $ac_precious_vars; do
1905   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1906   eval ac_new_set=\$ac_env_${ac_var}_set
1907   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1908   eval ac_new_val=\$ac_env_${ac_var}_value
1909   case $ac_old_set,$ac_new_set in
1910     set,)
1911       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1913       ac_cache_corrupted=: ;;
1914     ,set)
1915       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1917       ac_cache_corrupted=: ;;
1918     ,);;
1919     *)
1920       if test "x$ac_old_val" != "x$ac_new_val"; then
1921         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1923         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1924 echo "$as_me:   former value:  $ac_old_val" >&2;}
1925         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1926 echo "$as_me:   current value: $ac_new_val" >&2;}
1927         ac_cache_corrupted=:
1928       fi;;
1929   esac
1930   # Pass precious variables to config.status.
1931   if test "$ac_new_set" = set; then
1932     case $ac_new_val in
1933     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1934     *) ac_arg=$ac_var=$ac_new_val ;;
1935     esac
1936     case " $ac_configure_args " in
1937       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1938       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1939     esac
1940   fi
1941 done
1942 if $ac_cache_corrupted; then
1943   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947    { (exit 1); exit 1; }; }
1948 fi
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979
1980
1981 # LT Version numbers, remember to change them just *before* a release.
1982 #   (Code changed:                      REVISION++)
1983 #   (Interfaces added/removed/changed:  CURRENT++, REVISION=0)
1984 #   (Interfaces added:                  AGE++)
1985 #   (Interfaces removed:                AGE=0)
1986 # Note that added error codes don't constitute an interface change.
1987 LIBGPG_ERROR_LT_CURRENT=5
1988 LIBGPG_ERROR_LT_AGE=5
1989 LIBGPG_ERROR_LT_REVISION=0
1990
1991
1992
1993
1994 am__api_version='1.10'
1995
1996 ac_aux_dir=
1997 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998   if test -f "$ac_dir/install-sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install-sh -c"
2001     break
2002   elif test -f "$ac_dir/install.sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install.sh -c"
2005     break
2006   elif test -f "$ac_dir/shtool"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/shtool install -c"
2009     break
2010   fi
2011 done
2012 if test -z "$ac_aux_dir"; then
2013   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2025
2026
2027 # Find a good install program.  We prefer a C program (faster),
2028 # so one script is as good as another.  But avoid the broken or
2029 # incompatible versions:
2030 # SysV /etc/install, /usr/sbin/install
2031 # SunOS /usr/etc/install
2032 # IRIX /sbin/install
2033 # AIX /bin/install
2034 # AmigaOS /C/install, which installs bootblocks on floppy discs
2035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038 # OS/2's system install, which has a completely different semantic
2039 # ./install, which can be erroneously created by make from ./install.sh.
2040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   # Account for people who put trailing slashes in PATH elements.
2052 case $as_dir/ in
2053   ./ | .// | /cC/* | \
2054   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056   /usr/ucb/* ) ;;
2057   *)
2058     # OSF1 and SCO ODT 3.0 have their own names for install.
2059     # Don't use installbsd from OSF since it installs stuff as root
2060     # by default.
2061     for ac_prog in ginstall scoinst install; do
2062       for ac_exec_ext in '' $ac_executable_extensions; do
2063         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064           if test $ac_prog = install &&
2065             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066             # AIX install.  It has an incompatible calling convention.
2067             :
2068           elif test $ac_prog = install &&
2069             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070             # program-specific install script used by HP pwplus--don't use.
2071             :
2072           else
2073             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074             break 3
2075           fi
2076         fi
2077       done
2078     done
2079     ;;
2080 esac
2081 done
2082 IFS=$as_save_IFS
2083
2084
2085 fi
2086   if test "${ac_cv_path_install+set}" = set; then
2087     INSTALL=$ac_cv_path_install
2088   else
2089     # As a last resort, use the slow shell script.  Don't cache a
2090     # value for INSTALL within a source directory, because that will
2091     # break other packages using the cache if that directory is
2092     # removed, or if the value is a relative name.
2093     INSTALL=$ac_install_sh
2094   fi
2095 fi
2096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6; }
2098
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2102
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2104
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2106
2107 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2109 # Just in case
2110 sleep 1
2111 echo timestamp > conftest.file
2112 # Do `set' in a subshell so we don't clobber the current shell's
2113 # arguments.  Must try -L first in case configure is actually a
2114 # symlink; some systems play weird games with the mod time of symlinks
2115 # (eg FreeBSD returns the mod time of the symlink's containing
2116 # directory).
2117 if (
2118    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2119    if test "$*" = "X"; then
2120       # -L didn't work.
2121       set X `ls -t $srcdir/configure conftest.file`
2122    fi
2123    rm -f conftest.file
2124    if test "$*" != "X $srcdir/configure conftest.file" \
2125       && test "$*" != "X conftest.file $srcdir/configure"; then
2126
2127       # If neither matched, then we have a broken ls.  This can happen
2128       # if, for instance, CONFIG_SHELL is bash and it inherits a
2129       # broken ls alias from the environment.  This has actually
2130       # happened.  Such a system could not be considered "sane".
2131       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2132 alias in your environment" >&5
2133 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2134 alias in your environment" >&2;}
2135    { (exit 1); exit 1; }; }
2136    fi
2137
2138    test "$2" = conftest.file
2139    )
2140 then
2141    # Ok.
2142    :
2143 else
2144    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145 Check your system clock" >&5
2146 echo "$as_me: error: newly created file is older than distributed files!
2147 Check your system clock" >&2;}
2148    { (exit 1); exit 1; }; }
2149 fi
2150 { echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6; }
2152 test "$program_prefix" != NONE &&
2153   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154 # Use a double $ so make ignores it.
2155 test "$program_suffix" != NONE &&
2156   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157 # Double any \ or $.  echo might interpret backslashes.
2158 # By default was `s,x,x', remove it if useless.
2159 cat <<\_ACEOF >conftest.sed
2160 s/[\\$]/&&/g;s/;s,x,x,$//
2161 _ACEOF
2162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2163 rm -f conftest.sed
2164
2165 # expand $ac_aux_dir to an absolute path
2166 am_aux_dir=`cd $ac_aux_dir && pwd`
2167
2168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2169 # Use eval to expand $SHELL
2170 if eval "$MISSING --run true"; then
2171   am_missing_run="$MISSING --run "
2172 else
2173   am_missing_run=
2174   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2176 fi
2177
2178 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2179 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2180 if test -z "$MKDIR_P"; then
2181   if test "${ac_cv_path_mkdir+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_prog in mkdir gmkdir; do
2190          for ac_exec_ext in '' $ac_executable_extensions; do
2191            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2192            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2193              'mkdir (GNU coreutils) '* | \
2194              'mkdir (coreutils) '* | \
2195              'mkdir (fileutils) '4.1*)
2196                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2197                break 3;;
2198            esac
2199          done
2200        done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205
2206   if test "${ac_cv_path_mkdir+set}" = set; then
2207     MKDIR_P="$ac_cv_path_mkdir -p"
2208   else
2209     # As a last resort, use the slow shell script.  Don't cache a
2210     # value for MKDIR_P within a source directory, because that will
2211     # break other packages using the cache if that directory is
2212     # removed, or if the value is a relative name.
2213     test -d ./--version && rmdir ./--version
2214     MKDIR_P="$ac_install_sh -d"
2215   fi
2216 fi
2217 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2218 echo "${ECHO_T}$MKDIR_P" >&6; }
2219
2220 mkdir_p="$MKDIR_P"
2221 case $mkdir_p in
2222   [\\/$]* | ?:[\\/]*) ;;
2223   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2224 esac
2225
2226 for ac_prog in gawk mawk nawk awk
2227 do
2228   # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_AWK+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   if test -n "$AWK"; then
2236   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241   IFS=$as_save_IFS
2242   test -z "$as_dir" && as_dir=.
2243   for ac_exec_ext in '' $ac_executable_extensions; do
2244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245     ac_cv_prog_AWK="$ac_prog"
2246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247     break 2
2248   fi
2249 done
2250 done
2251 IFS=$as_save_IFS
2252
2253 fi
2254 fi
2255 AWK=$ac_cv_prog_AWK
2256 if test -n "$AWK"; then
2257   { echo "$as_me:$LINENO: result: $AWK" >&5
2258 echo "${ECHO_T}$AWK" >&6; }
2259 else
2260   { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2262 fi
2263
2264
2265   test -n "$AWK" && break
2266 done
2267
2268 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2269 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2270 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2271 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   cat >conftest.make <<\_ACEOF
2275 SHELL = /bin/sh
2276 all:
2277         @echo '@@@%%%=$(MAKE)=@@@%%%'
2278 _ACEOF
2279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2281   *@@@%%%=?*=@@@%%%*)
2282     eval ac_cv_prog_make_${ac_make}_set=yes;;
2283   *)
2284     eval ac_cv_prog_make_${ac_make}_set=no;;
2285 esac
2286 rm -f conftest.make
2287 fi
2288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2289   { echo "$as_me:$LINENO: result: yes" >&5
2290 echo "${ECHO_T}yes" >&6; }
2291   SET_MAKE=
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295   SET_MAKE="MAKE=${MAKE-make}"
2296 fi
2297
2298 rm -rf .tst 2>/dev/null
2299 mkdir .tst 2>/dev/null
2300 if test -d .tst; then
2301   am__leading_dot=.
2302 else
2303   am__leading_dot=_
2304 fi
2305 rmdir .tst 2>/dev/null
2306
2307 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2308   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2309   # is not polluted with repeated "-I."
2310   am__isrc=' -I$(srcdir)'
2311   # test to see if srcdir already configured
2312   if test -f $srcdir/config.status; then
2313     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2314 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2315    { (exit 1); exit 1; }; }
2316   fi
2317 fi
2318
2319 # test whether we have cygpath
2320 if test -z "$CYGPATH_W"; then
2321   if (cygpath --version) >/dev/null 2>/dev/null; then
2322     CYGPATH_W='cygpath -w'
2323   else
2324     CYGPATH_W=echo
2325   fi
2326 fi
2327
2328
2329 # Define the identity of the package.
2330  PACKAGE='libgpg-error'
2331  VERSION='1.7'
2332
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE "$PACKAGE"
2336 _ACEOF
2337
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define VERSION "$VERSION"
2341 _ACEOF
2342
2343 # Some tools Automake needs.
2344
2345 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2346
2347
2348 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2349
2350
2351 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2352
2353
2354 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2355
2356
2357 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2358
2359 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2360
2361 # Installed binaries are usually stripped using `strip' when the user
2362 # run `make install-strip'.  However `strip' might not be the right
2363 # tool to use in cross-compilation environments, therefore Automake
2364 # will honor the `STRIP' environment variable to overrule this program.
2365 if test "$cross_compiling" != no; then
2366   if test -n "$ac_tool_prefix"; then
2367   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_STRIP+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   if test -n "$STRIP"; then
2375   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 STRIP=$ac_cv_prog_STRIP
2395 if test -n "$STRIP"; then
2396   { echo "$as_me:$LINENO: result: $STRIP" >&5
2397 echo "${ECHO_T}$STRIP" >&6; }
2398 else
2399   { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2401 fi
2402
2403
2404 fi
2405 if test -z "$ac_cv_prog_STRIP"; then
2406   ac_ct_STRIP=$STRIP
2407   # Extract the first word of "strip", so it can be a program name with args.
2408 set dummy strip; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   if test -n "$ac_ct_STRIP"; then
2415   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_exec_ext in '' $ac_executable_extensions; do
2423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424     ac_cv_prog_ac_ct_STRIP="strip"
2425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433 fi
2434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2435 if test -n "$ac_ct_STRIP"; then
2436   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2437 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2438 else
2439   { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2441 fi
2442
2443   if test "x$ac_ct_STRIP" = x; then
2444     STRIP=":"
2445   else
2446     case $cross_compiling:$ac_tool_warned in
2447 yes:)
2448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet.  If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet.  If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2455 esac
2456     STRIP=$ac_ct_STRIP
2457   fi
2458 else
2459   STRIP="$ac_cv_prog_STRIP"
2460 fi
2461
2462 fi
2463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2464
2465 # We need awk for the "check" target.  The system "awk" is bad on
2466 # some platforms.
2467 # Always define AMTAR for backward compatibility.
2468
2469 AMTAR=${AMTAR-"${am_missing_run}tar"}
2470
2471 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2472
2473
2474
2475
2476
2477 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2478 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2479     # Check whether --enable-maintainer-mode was given.
2480 if test "${enable_maintainer_mode+set}" = set; then
2481   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2482 else
2483   USE_MAINTAINER_MODE=no
2484 fi
2485
2486   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2487 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2488    if test $USE_MAINTAINER_MODE = yes; then
2489   MAINTAINER_MODE_TRUE=
2490   MAINTAINER_MODE_FALSE='#'
2491 else
2492   MAINTAINER_MODE_TRUE='#'
2493   MAINTAINER_MODE_FALSE=
2494 fi
2495
2496   MAINT=$MAINTAINER_MODE_TRUE
2497
2498
2499
2500 ac_config_headers="$ac_config_headers config.h"
2501
2502
2503 # We need to know about the host architecture to avoid spurious
2504 # warnings.
2505 # Make sure we can run config.sub.
2506 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2507   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2508 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2509    { (exit 1); exit 1; }; }
2510
2511 { echo "$as_me:$LINENO: checking build system type" >&5
2512 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2513 if test "${ac_cv_build+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   ac_build_alias=$build_alias
2517 test "x$ac_build_alias" = x &&
2518   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2519 test "x$ac_build_alias" = x &&
2520   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2522    { (exit 1); exit 1; }; }
2523 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2524   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2525 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2526    { (exit 1); exit 1; }; }
2527
2528 fi
2529 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2530 echo "${ECHO_T}$ac_cv_build" >&6; }
2531 case $ac_cv_build in
2532 *-*-*) ;;
2533 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2534 echo "$as_me: error: invalid value of canonical build" >&2;}
2535    { (exit 1); exit 1; }; };;
2536 esac
2537 build=$ac_cv_build
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_build
2540 shift
2541 build_cpu=$1
2542 build_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 build_os=$*
2547 IFS=$ac_save_IFS
2548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549
2550
2551 { echo "$as_me:$LINENO: checking host system type" >&5
2552 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2553 if test "${ac_cv_host+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test "x$host_alias" = x; then
2557   ac_cv_host=$ac_cv_build
2558 else
2559   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2560     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2561 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2562    { (exit 1); exit 1; }; }
2563 fi
2564
2565 fi
2566 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2567 echo "${ECHO_T}$ac_cv_host" >&6; }
2568 case $ac_cv_host in
2569 *-*-*) ;;
2570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2571 echo "$as_me: error: invalid value of canonical host" >&2;}
2572    { (exit 1); exit 1; }; };;
2573 esac
2574 host=$ac_cv_host
2575 ac_save_IFS=$IFS; IFS='-'
2576 set x $ac_cv_host
2577 shift
2578 host_cpu=$1
2579 host_vendor=$2
2580 shift; shift
2581 # Remember, the first character of IFS is used to create $*,
2582 # except with old shells:
2583 host_os=$*
2584 IFS=$ac_save_IFS
2585 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586
2587
2588
2589
2590
2591
2592         { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2593 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2594         { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2595 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2596         hostname=`hostname`
2597         if test "$hostname"; then
2598            { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2599 echo "$as_me: autobuild hostname... $hostname" >&6;}
2600         fi
2601
2602         date=`date +%Y%m%d-%H%M%S`
2603         if test "$?" != 0; then
2604            date=`date`
2605         fi
2606         if test "$date"; then
2607            { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2608 echo "$as_me: autobuild timestamp... $date" >&6;}
2609         fi
2610
2611
2612 # Checks for programs.
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651   { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658   ac_ct_CC=$CC
2659   # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   if test -n "$ac_ct_CC"; then
2667   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_ac_ct_CC="gcc"
2677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689 echo "${ECHO_T}$ac_ct_CC" >&6; }
2690 else
2691   { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695   if test "x$ac_ct_CC" = x; then
2696     CC=""
2697   else
2698     case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet.  If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&5
2703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704 whose name does not start with the host triplet.  If you think this
2705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708     CC=$ac_ct_CC
2709   fi
2710 else
2711   CC="$ac_cv_prog_CC"
2712 fi
2713
2714 if test -z "$CC"; then
2715           if test -n "$ac_tool_prefix"; then
2716     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   if test -n "$CC"; then
2724   ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731   for ac_exec_ext in '' $ac_executable_extensions; do
2732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733     ac_cv_prog_CC="${ac_tool_prefix}cc"
2734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745   { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2747 else
2748   { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2750 fi
2751
2752
2753   fi
2754 fi
2755 if test -z "$CC"; then
2756   # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766   ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772   for ac_exec_ext in '' $ac_executable_extensions; do
2773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775        ac_prog_rejected=yes
2776        continue
2777      fi
2778     ac_cv_prog_CC="cc"
2779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 if test $ac_prog_rejected = yes; then
2787   # We found a bogon in the path, so make sure we never use it.
2788   set dummy $ac_cv_prog_CC
2789   shift
2790   if test $# != 0; then
2791     # We chose a different compiler from the bogus one.
2792     # However, it has the same basename, so the bogon will be chosen
2793     # first if we set CC to just the basename; use the full file name.
2794     shift
2795     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796   fi
2797 fi
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802   { echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6; }
2804 else
2805   { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$CC"; then
2812   if test -n "$ac_tool_prefix"; then
2813   for ac_prog in cl.exe
2814   do
2815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   if test -n "$CC"; then
2823   ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844   { echo "$as_me:$LINENO: result: $CC" >&5
2845 echo "${ECHO_T}$CC" >&6; }
2846 else
2847   { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2849 fi
2850
2851
2852     test -n "$CC" && break
2853   done
2854 fi
2855 if test -z "$CC"; then
2856   ac_ct_CC=$CC
2857   for ac_prog in cl.exe
2858 do
2859   # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864   echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866   if test -n "$ac_ct_CC"; then
2867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874   for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_ac_ct_CC="$ac_prog"
2877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2889 echo "${ECHO_T}$ac_ct_CC" >&6; }
2890 else
2891   { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2893 fi
2894
2895
2896   test -n "$ac_ct_CC" && break
2897 done
2898
2899   if test "x$ac_ct_CC" = x; then
2900     CC=""
2901   else
2902     case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet.  If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet.  If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912     CC=$ac_ct_CC
2913   fi
2914 fi
2915
2916 fi
2917
2918
2919 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: no acceptable C compiler found in \$PATH
2922 See \`config.log' for more details." >&2;}
2923    { (exit 1); exit 1; }; }
2924
2925 # Provide some information about the compiler.
2926 echo "$as_me:$LINENO: checking for C compiler version" >&5
2927 ac_compiler=`set X $ac_compile; echo $2`
2928 { (ac_try="$ac_compiler --version >&5"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compiler --version >&5") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }
2938 { (ac_try="$ac_compiler -v >&5"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944   (eval "$ac_compiler -v >&5") 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }
2948 { (ac_try="$ac_compiler -V >&5"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compiler -V >&5") 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }
2958
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965
2966 int
2967 main ()
2968 {
2969
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 ac_clean_files_save=$ac_clean_files
2975 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2978 # of exeext.
2979 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2980 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982 #
2983 # List of possible output files, starting from the most likely.
2984 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2985 # only as a last resort.  b.out is created by i960 compilers.
2986 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2987 #
2988 # The IRIX 6 linker writes into existing files which may not be
2989 # executable, retaining their permissions.  Remove them first so a
2990 # subsequent execution test works.
2991 ac_rmfiles=
2992 for ac_file in $ac_files
2993 do
2994   case $ac_file in
2995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2996     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997   esac
2998 done
2999 rm -f $ac_rmfiles
3000
3001 if { (ac_try="$ac_link_default"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_link_default") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; then
3011   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3015 # Autoconf.
3016 for ac_file in $ac_files ''
3017 do
3018   test -f "$ac_file" || continue
3019   case $ac_file in
3020     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3021         ;;
3022     [ab].out )
3023         # We found the default executable, but exeext='' is most
3024         # certainly right.
3025         break;;
3026     *.* )
3027         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028         then :; else
3029            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030         fi
3031         # We set ac_cv_exeext here because the later test for it is not
3032         # safe: cross compilers may not add the suffix if given an `-o'
3033         # argument, so we may need to know it at that point already.
3034         # Even if this section looks crufty: it has the advantage of
3035         # actually working.
3036         break;;
3037     * )
3038         break;;
3039   esac
3040 done
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043 else
3044   ac_file=''
3045 fi
3046
3047 { echo "$as_me:$LINENO: result: $ac_file" >&5
3048 echo "${ECHO_T}$ac_file" >&6; }
3049 if test -z "$ac_file"; then
3050   echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&2;}
3057    { (exit 77); exit 77; }; }
3058 fi
3059
3060 ac_exeext=$ac_cv_exeext
3061
3062 # Check that the compiler produces executables we can run.  If not, either
3063 # the compiler is broken, or we cross compile.
3064 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3065 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3066 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3067 # If not cross compiling, check that we can run a simple program.
3068 if test "$cross_compiling" != yes; then
3069   if { ac_try='./$ac_file'
3070   { (case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_try") 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079     cross_compiling=no
3080   else
3081     if test "$cross_compiling" = maybe; then
3082         cross_compiling=yes
3083     else
3084         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090    { (exit 1); exit 1; }; }
3091     fi
3092   fi
3093 fi
3094 { echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6; }
3096
3097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check that the compiler produces executables we can run.  If not, either
3100 # the compiler is broken, or we cross compile.
3101 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3103 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6; }
3105
3106 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3108 if { (ac_try="$ac_link"
3109 case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114   (eval "$ac_link") 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; then
3118   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3121 # `rm'.
3122 for ac_file in conftest.exe conftest conftest.*; do
3123   test -f "$ac_file" || continue
3124   case $ac_file in
3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3126     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127           break;;
3128     * ) break;;
3129   esac
3130 done
3131 else
3132   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details." >&2;}
3136    { (exit 1); exit 1; }; }
3137 fi
3138
3139 rm -f conftest$ac_cv_exeext
3140 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3141 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3142
3143 rm -f conftest.$ac_ext
3144 EXEEXT=$ac_cv_exeext
3145 ac_exeext=$EXEEXT
3146 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3147 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3148 if test "${ac_cv_objext+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.o conftest.obj
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_compile") 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; then
3177   for ac_file in conftest.o conftest.obj conftest.*; do
3178   test -f "$ac_file" || continue;
3179   case $ac_file in
3180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3181     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182        break;;
3183   esac
3184 done
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." >&2;}
3193    { (exit 1); exit 1; }; }
3194 fi
3195
3196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3199 echo "${ECHO_T}$ac_cv_objext" >&6; }
3200 OBJEXT=$ac_cv_objext
3201 ac_objext=$OBJEXT
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213
3214 int
3215 main ()
3216 {
3217 #ifndef __GNUC__
3218        choke me
3219 #endif
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_compile") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } && {
3239          test -z "$ac_c_werror_flag" ||
3240          test ! -s conftest.err
3241        } && test -s conftest.$ac_objext; then
3242   ac_compiler_gnu=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247         ac_compiler_gnu=no
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3252
3253 fi
3254 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3256 GCC=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CFLAGS=${CFLAGS+set}
3258 ac_save_CFLAGS=$CFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_g+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_save_c_werror_flag=$ac_c_werror_flag
3265    ac_c_werror_flag=yes
3266    ac_cv_prog_cc_g=no
3267    CFLAGS="-g"
3268    cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } && {
3297          test -z "$ac_c_werror_flag" ||
3298          test ! -s conftest.err
3299        } && test -s conftest.$ac_objext; then
3300   ac_cv_prog_cc_g=yes
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305         CFLAGS=""
3306       cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312
3313 int
3314 main ()
3315 {
3316
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } && {
3335          test -z "$ac_c_werror_flag" ||
3336          test ! -s conftest.err
3337        } && test -s conftest.$ac_objext; then
3338   :
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343         ac_c_werror_flag=$ac_save_c_werror_flag
3344          CFLAGS="-g"
3345          cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351
3352 int
3353 main ()
3354 {
3355
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_compile") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } && {
3374          test -z "$ac_c_werror_flag" ||
3375          test ! -s conftest.err
3376        } && test -s conftest.$ac_objext; then
3377   ac_cv_prog_cc_g=yes
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
3383 fi
3384
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392    ac_c_werror_flag=$ac_save_c_werror_flag
3393 fi
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397   CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399   if test "$GCC" = yes; then
3400     CFLAGS="-g -O2"
3401   else
3402     CFLAGS="-g"
3403   fi
3404 else
3405   if test "$GCC" = yes; then
3406     CFLAGS="-O2"
3407   else
3408     CFLAGS=
3409   fi
3410 fi
3411 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3412 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_cc_c89+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   ac_cv_prog_cc_c89=no
3417 ac_save_CC=$CC
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424 #include <stdarg.h>
3425 #include <stdio.h>
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3432      char **p;
3433      int i;
3434 {
3435   return p[i];
3436 }
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3438 {
3439   char *s;
3440   va_list v;
3441   va_start (v,p);
3442   s = g (p, va_arg (v,int));
3443   va_end (v);
3444   return s;
3445 }
3446
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3448    function prototypes and stuff, but not '\xHH' hex character constants.
3449    These don't provoke an error unfortunately, instead are silently treated
3450    as 'x'.  The following induces an error, until -std is added to get
3451    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3452    array size at least.  It's necessary to write '\x00'==0 to get something
3453    that's true only with -std.  */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457    inside strings and character constants.  */
3458 #define FOO(x) 'x'
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465 int argc;
3466 char **argv;
3467 int
3468 main ()
3469 {
3470 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3471   ;
3472   return 0;
3473 }
3474 _ACEOF
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477 do
3478   CC="$ac_save_CC $ac_arg"
3479   rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486   (eval "$ac_compile") 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } && {
3493          test -z "$ac_c_werror_flag" ||
3494          test ! -s conftest.err
3495        } && test -s conftest.$ac_objext; then
3496   ac_cv_prog_cc_c89=$ac_arg
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501
3502 fi
3503
3504 rm -f core conftest.err conftest.$ac_objext
3505   test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3509
3510 fi
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3513   x)
3514     { echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6; } ;;
3516   xno)
3517     { echo "$as_me:$LINENO: result: unsupported" >&5
3518 echo "${ECHO_T}unsupported" >&6; } ;;
3519   *)
3520     CC="$CC $ac_cv_prog_cc_c89"
3521     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3522 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524
3525
3526 ac_ext=c
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 DEPDIR="${am__leading_dot}deps"
3532
3533 ac_config_commands="$ac_config_commands depfiles"
3534
3535
3536 am_make=${MAKE-make}
3537 cat > confinc << 'END'
3538 am__doit:
3539         @echo done
3540 .PHONY: am__doit
3541 END
3542 # If we don't find an include directive, just comment out the code.
3543 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3544 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3545 am__include="#"
3546 am__quote=
3547 _am_result=none
3548 # First try GNU make style include.
3549 echo "include confinc" > confmf
3550 # We grep out `Entering directory' and `Leaving directory'
3551 # messages which can occur if `w' ends up in MAKEFLAGS.
3552 # In particular we don't look at `^make:' because GNU make might
3553 # be invoked under some other name (usually "gmake"), in which
3554 # case it prints its new name instead of `make'.
3555 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3556    am__include=include
3557    am__quote=
3558    _am_result=GNU
3559 fi
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562    echo '.include "confinc"' > confmf
3563    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3564       am__include=.include
3565       am__quote="\""
3566       _am_result=BSD
3567    fi
3568 fi
3569
3570
3571 { echo "$as_me:$LINENO: result: $_am_result" >&5
3572 echo "${ECHO_T}$_am_result" >&6; }
3573 rm -f confinc confmf
3574
3575 # Check whether --enable-dependency-tracking was given.
3576 if test "${enable_dependency_tracking+set}" = set; then
3577   enableval=$enable_dependency_tracking;
3578 fi
3579
3580 if test "x$enable_dependency_tracking" != xno; then
3581   am_depcomp="$ac_aux_dir/depcomp"
3582   AMDEPBACKSLASH='\'
3583 fi
3584  if test "x$enable_dependency_tracking" != xno; then
3585   AMDEP_TRUE=
3586   AMDEP_FALSE='#'
3587 else
3588   AMDEP_TRUE='#'
3589   AMDEP_FALSE=
3590 fi
3591
3592
3593
3594 depcc="$CC"   am_compiler_list=
3595
3596 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3597 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3598 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3602   # We make a subdir and do the tests there.  Otherwise we can end up
3603   # making bogus files that we don't know about and never remove.  For
3604   # instance it was reported that on HP-UX the gcc test will end up
3605   # making a dummy file named `D' -- because `-MD' means `put the output
3606   # in D'.
3607   mkdir conftest.dir
3608   # Copy depcomp to subdir because otherwise we won't find it if we're
3609   # using a relative directory.
3610   cp "$am_depcomp" conftest.dir
3611   cd conftest.dir
3612   # We will build objects and dependencies in a subdirectory because
3613   # it helps to detect inapplicable dependency modes.  For instance
3614   # both Tru64's cc and ICC support -MD to output dependencies as a
3615   # side effect of compilation, but ICC will put the dependencies in
3616   # the current directory while Tru64 will put them in the object
3617   # directory.
3618   mkdir sub
3619
3620   am_cv_CC_dependencies_compiler_type=none
3621   if test "$am_compiler_list" = ""; then
3622      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3623   fi
3624   for depmode in $am_compiler_list; do
3625     # Setup a source with many dependencies, because some compilers
3626     # like to wrap large dependency lists on column 80 (with \), and
3627     # we should not choose a depcomp mode which is confused by this.
3628     #
3629     # We need to recreate these files for each test, as the compiler may
3630     # overwrite some of them when testing with obscure command lines.
3631     # This happens at least with the AIX C compiler.
3632     : > sub/conftest.c
3633     for i in 1 2 3 4 5 6; do
3634       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3635       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3636       # Solaris 8's {/usr,}/bin/sh.
3637       touch sub/conftst$i.h
3638     done
3639     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3640
3641     case $depmode in
3642     nosideeffect)
3643       # after this tag, mechanisms are not by side-effect, so they'll
3644       # only be used when explicitly requested
3645       if test "x$enable_dependency_tracking" = xyes; then
3646         continue
3647       else
3648         break
3649       fi
3650       ;;
3651     none) break ;;
3652     esac
3653     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3654     # mode.  It turns out that the SunPro C++ compiler does not properly
3655     # handle `-M -o', and we need to detect this.
3656     if depmode=$depmode \
3657        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3658        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3659        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3660          >/dev/null 2>conftest.err &&
3661        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3662        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3663        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3664        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3665       # icc doesn't choke on unknown options, it will just issue warnings
3666       # or remarks (even with -Werror).  So we grep stderr for any message
3667       # that says an option was ignored or not supported.
3668       # When given -MP, icc 7.0 and 7.1 complain thusly:
3669       #   icc: Command line warning: ignoring option '-M'; no argument required
3670       # The diagnosis changed in icc 8.0:
3671       #   icc: Command line remark: option '-MP' not supported
3672       if (grep 'ignoring option' conftest.err ||
3673           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3674         am_cv_CC_dependencies_compiler_type=$depmode
3675         break
3676       fi
3677     fi
3678   done
3679
3680   cd ..
3681   rm -rf conftest.dir
3682 else
3683   am_cv_CC_dependencies_compiler_type=none
3684 fi
3685
3686 fi
3687 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3688 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3689 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3690
3691  if
3692   test "x$enable_dependency_tracking" != xno \
3693   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3694   am__fastdepCC_TRUE=
3695   am__fastdepCC_FALSE='#'
3696 else
3697   am__fastdepCC_TRUE='#'
3698   am__fastdepCC_FALSE=
3699 fi
3700
3701
3702 if test "x$CC" != xcc; then
3703   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3704 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3705 else
3706   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3707 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3708 fi
3709 set dummy $CC; ac_cc=`echo $2 |
3710                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3711 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720
3721 int
3722 main ()
3723 {
3724
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 # Make sure it works both with $CC and with simple cc.
3730 # We do the test twice because some compilers refuse to overwrite an
3731 # existing .o file with -o, though they will create one.
3732 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3733 rm -f conftest2.*
3734 if { (case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_try") 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748   (eval "$ac_try") 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); };
3752 then
3753   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3754   if test "x$CC" != xcc; then
3755     # Test first that cc exists at all.
3756     if { ac_try='cc -c conftest.$ac_ext >&5'
3757   { (case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762   (eval "$ac_try") 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3767       rm -f conftest2.*
3768       if { (case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773   (eval "$ac_try") 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779   *) ac_try_echo=$ac_try;;
3780 esac
3781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3782   (eval "$ac_try") 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); };
3786       then
3787         # cc works too.
3788         :
3789       else
3790         # cc exists but doesn't like -o.
3791         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3792       fi
3793     fi
3794   fi
3795 else
3796   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3797 fi
3798 rm -f core conftest*
3799
3800 fi
3801 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3802   { echo "$as_me:$LINENO: result: yes" >&5
3803 echo "${ECHO_T}yes" >&6; }
3804 else
3805   { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3807
3808 cat >>confdefs.h <<\_ACEOF
3809 #define NO_MINUS_C_MINUS_O 1
3810 _ACEOF
3811
3812 fi
3813
3814 # FIXME: we rely on the cache variable name because
3815 # there is no other way.
3816 set dummy $CC
3817 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3819    # Losing compiler, so override with the script.
3820    # FIXME: It is wrong to rewrite CC.
3821    # But if we don't then we get into trouble of one sort or another.
3822    # A longer-term fix would be to have automake use am__CC in this case,
3823    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3824    CC="$am_aux_dir/compile $CC"
3825 fi
3826
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3834 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3835 # On Suns, sometimes $CPP names a directory.
3836 if test -n "$CPP" && test -d "$CPP"; then
3837   CPP=
3838 fi
3839 if test -z "$CPP"; then
3840   if test "${ac_cv_prog_CPP+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843       # Double quotes because CPP needs to be expanded
3844     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3845     do
3846       ac_preproc_ok=false
3847 for ac_c_preproc_warn_flag in '' yes
3848 do
3849   # Use a header file that comes with gcc, so configuring glibc
3850   # with a fresh cross-compiler works.
3851   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852   # <limits.h> exists even on freestanding compilers.
3853   # On the NeXT, cc -E runs the code through the compiler's parser,
3854   # not just through cpp. "Syntax error" is here to catch this case.
3855   cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861 #ifdef __STDC__
3862 # include <limits.h>
3863 #else
3864 # include <assert.h>
3865 #endif
3866                      Syntax error
3867 _ACEOF
3868 if { (ac_try="$ac_cpp conftest.$ac_ext"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3875   ac_status=$?
3876   grep -v '^ *+' conftest.er1 >conftest.err
3877   rm -f conftest.er1
3878   cat conftest.err >&5
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); } >/dev/null && {
3881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3882          test ! -s conftest.err
3883        }; then
3884   :
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889   # Broken: fails on valid input.
3890 continue
3891 fi
3892
3893 rm -f conftest.err conftest.$ac_ext
3894
3895   # OK, works on sane cases.  Now check whether nonexistent headers
3896   # can be detected and how.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if { (ac_try="$ac_cpp conftest.$ac_ext"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } >/dev/null && {
3918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        }; then
3921   # Broken: success on invalid input.
3922 continue
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927   # Passes both tests.
3928 ac_preproc_ok=:
3929 break
3930 fi
3931
3932 rm -f conftest.err conftest.$ac_ext
3933
3934 done
3935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936 rm -f conftest.err conftest.$ac_ext
3937 if $ac_preproc_ok; then
3938   break
3939 fi
3940
3941     done
3942     ac_cv_prog_CPP=$CPP
3943
3944 fi
3945   CPP=$ac_cv_prog_CPP
3946 else
3947   ac_cv_prog_CPP=$CPP
3948 fi
3949 { echo "$as_me:$LINENO: result: $CPP" >&5
3950 echo "${ECHO_T}$CPP" >&6; }
3951 ac_preproc_ok=false
3952 for ac_c_preproc_warn_flag in '' yes
3953 do
3954   # Use a header file that comes with gcc, so configuring glibc
3955   # with a fresh cross-compiler works.
3956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957   # <limits.h> exists even on freestanding compilers.
3958   # On the NeXT, cc -E runs the code through the compiler's parser,
3959   # not just through cpp. "Syntax error" is here to catch this case.
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 #ifdef __STDC__
3967 # include <limits.h>
3968 #else
3969 # include <assert.h>
3970 #endif
3971                      Syntax error
3972 _ACEOF
3973 if { (ac_try="$ac_cpp conftest.$ac_ext"
3974 case "(($ac_try" in
3975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976   *) ac_try_echo=$ac_try;;
3977 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } >/dev/null && {
3986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987          test ! -s conftest.err
3988        }; then
3989   :
3990 else
3991   echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994   # Broken: fails on valid input.
3995 continue
3996 fi
3997
3998 rm -f conftest.err conftest.$ac_ext
3999
4000   # OK, works on sane cases.  Now check whether nonexistent headers
4001   # can be detected and how.
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #include <ac_nonexistent.h>
4009 _ACEOF
4010 if { (ac_try="$ac_cpp conftest.$ac_ext"
4011 case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } >/dev/null && {
4023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4024          test ! -s conftest.err
4025        }; then
4026   # Broken: success on invalid input.
4027 continue
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032   # Passes both tests.
4033 ac_preproc_ok=:
4034 break
4035 fi
4036
4037 rm -f conftest.err conftest.$ac_ext
4038
4039 done
4040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041 rm -f conftest.err conftest.$ac_ext
4042 if $ac_preproc_ok; then
4043   :
4044 else
4045   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&5
4047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details." >&2;}
4049    { (exit 1); exit 1; }; }
4050 fi
4051
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058 for ac_prog in gawk mawk nawk awk
4059 do
4060   # Extract the first word of "$ac_prog", so it can be a program name with args.
4061 set dummy $ac_prog; ac_word=$2
4062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_AWK+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test -n "$AWK"; then
4068   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073   IFS=$as_save_IFS
4074   test -z "$as_dir" && as_dir=.
4075   for ac_exec_ext in '' $ac_executable_extensions; do
4076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077     ac_cv_prog_AWK="$ac_prog"
4078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079     break 2
4080   fi
4081 done
4082 done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 AWK=$ac_cv_prog_AWK
4088 if test -n "$AWK"; then
4089   { echo "$as_me:$LINENO: result: $AWK" >&5
4090 echo "${ECHO_T}$AWK" >&6; }
4091 else
4092   { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4094 fi
4095
4096
4097   test -n "$AWK" && break
4098 done
4099
4100 if test -n "$ac_tool_prefix"; then
4101   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}ar; ac_word=$2
4103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4105 if test "${ac_cv_prog_AR+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   if test -n "$AR"; then
4109   ac_cv_prog_AR="$AR" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116   for ac_exec_ext in '' $ac_executable_extensions; do
4117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118     ac_cv_prog_AR="${ac_tool_prefix}ar"
4119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi
4127 fi
4128 AR=$ac_cv_prog_AR
4129 if test -n "$AR"; then
4130   { echo "$as_me:$LINENO: result: $AR" >&5
4131 echo "${ECHO_T}$AR" >&6; }
4132 else
4133   { echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6; }
4135 fi
4136
4137
4138 fi
4139 if test -z "$ac_cv_prog_AR"; then
4140   ac_ct_AR=$AR
4141   # Extract the first word of "ar", so it can be a program name with args.
4142 set dummy ar; ac_word=$2
4143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4145 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   if test -n "$ac_ct_AR"; then
4149   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156   for ac_exec_ext in '' $ac_executable_extensions; do
4157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158     ac_cv_prog_ac_ct_AR="ar"
4159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4169 if test -n "$ac_ct_AR"; then
4170   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4171 echo "${ECHO_T}$ac_ct_AR" >&6; }
4172 else
4173   { echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6; }
4175 fi
4176
4177   if test "x$ac_ct_AR" = x; then
4178     AR=":"
4179   else
4180     case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4183 whose name does not start with the host triplet.  If you think this
4184 configuration is useful to you, please write to autoconf@gnu.org." >&5
4185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet.  If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190     AR=$ac_ct_AR
4191   fi
4192 else
4193   AR="$ac_cv_prog_AR"
4194 fi
4195
4196
4197
4198 if test -n "$ac_tool_prefix"; then
4199   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}windres; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_RC+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   if test -n "$RC"; then
4207   ac_cv_prog_RC="$RC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_prog_RC="${ac_tool_prefix}windres"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 RC=$ac_cv_prog_RC
4227 if test -n "$RC"; then
4228   { echo "$as_me:$LINENO: result: $RC" >&5
4229 echo "${ECHO_T}$RC" >&6; }
4230 else
4231   { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233 fi
4234
4235
4236 fi
4237 if test -z "$ac_cv_prog_RC"; then
4238   ac_ct_RC=$RC
4239   # Extract the first word of "windres", so it can be a program name with args.
4240 set dummy windres; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$ac_ct_RC"; then
4247   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256     ac_cv_prog_ac_ct_RC="windres"
4257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 fi
4265 fi
4266 ac_ct_RC=$ac_cv_prog_ac_ct_RC
4267 if test -n "$ac_ct_RC"; then
4268   { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
4269 echo "${ECHO_T}$ac_ct_RC" >&6; }
4270 else
4271   { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273 fi
4274
4275   if test "x$ac_ct_RC" = x; then
4276     RC="no"
4277   else
4278     case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet.  If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&5
4283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet.  If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4286 ac_tool_warned=yes ;;
4287 esac
4288     RC=$ac_ct_RC
4289   fi
4290 else
4291   RC="$ac_cv_prog_RC"
4292 fi
4293
4294
4295
4296
4297
4298
4299
4300 cat >>confdefs.h <<\_ACEOF
4301 #define _GNU_SOURCE 1
4302 _ACEOF
4303
4304
4305
4306 # Check whether --enable-shared was given.
4307 if test "${enable_shared+set}" = set; then
4308   enableval=$enable_shared; p=${PACKAGE-default}
4309     case $enableval in
4310     yes) enable_shared=yes ;;
4311     no) enable_shared=no ;;
4312     *)
4313       enable_shared=no
4314       # Look at the argument we got.  We use all the common list separators.
4315       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316       for pkg in $enableval; do
4317         IFS="$lt_save_ifs"
4318         if test "X$pkg" = "X$p"; then
4319           enable_shared=yes
4320         fi
4321       done
4322       IFS="$lt_save_ifs"
4323       ;;
4324     esac
4325 else
4326   enable_shared=yes
4327 fi
4328
4329
4330 # Check whether --enable-static was given.
4331 if test "${enable_static+set}" = set; then
4332   enableval=$enable_static; p=${PACKAGE-default}
4333     case $enableval in
4334     yes) enable_static=yes ;;
4335     no) enable_static=no ;;
4336     *)
4337      enable_static=no
4338       # Look at the argument we got.  We use all the common list separators.
4339       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4340       for pkg in $enableval; do
4341         IFS="$lt_save_ifs"
4342         if test "X$pkg" = "X$p"; then
4343           enable_static=yes
4344         fi
4345       done
4346       IFS="$lt_save_ifs"
4347       ;;
4348     esac
4349 else
4350   enable_static=yes
4351 fi
4352
4353
4354 # Check whether --enable-fast-install was given.
4355 if test "${enable_fast_install+set}" = set; then
4356   enableval=$enable_fast_install; p=${PACKAGE-default}
4357     case $enableval in
4358     yes) enable_fast_install=yes ;;
4359     no) enable_fast_install=no ;;
4360     *)
4361       enable_fast_install=no
4362       # Look at the argument we got.  We use all the common list separators.
4363       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4364       for pkg in $enableval; do
4365         IFS="$lt_save_ifs"
4366         if test "X$pkg" = "X$p"; then
4367           enable_fast_install=yes
4368         fi
4369       done
4370       IFS="$lt_save_ifs"
4371       ;;
4372     esac
4373 else
4374   enable_fast_install=yes
4375 fi
4376
4377
4378 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4379 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4380 if test "${lt_cv_path_SED+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   # Loop through the user's path and test for sed and gsed.
4384 # Then use that list of sed's as ones to test for truncation.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390   for lt_ac_prog in sed gsed; do
4391     for ac_exec_ext in '' $ac_executable_extensions; do
4392       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4393         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4394       fi
4395     done
4396   done
4397 done
4398 lt_ac_max=0
4399 lt_ac_count=0
4400 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4401 # along with /bin/sed that truncates output.
4402 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4403   test ! -f $lt_ac_sed && break
4404   cat /dev/null > conftest.in
4405   lt_ac_count=0
4406   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4407   # Check for GNU sed and select it if it is found.
4408   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4409     lt_cv_path_SED=$lt_ac_sed
4410     break
4411   fi
4412   while true; do
4413     cat conftest.in conftest.in >conftest.tmp
4414     mv conftest.tmp conftest.in
4415     cp conftest.in conftest.nl
4416     echo >>conftest.nl
4417     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4418     cmp -s conftest.out conftest.nl || break
4419     # 10000 chars as input seems more than enough
4420     test $lt_ac_count -gt 10 && break
4421     lt_ac_count=`expr $lt_ac_count + 1`
4422     if test $lt_ac_count -gt $lt_ac_max; then
4423       lt_ac_max=$lt_ac_count
4424       lt_cv_path_SED=$lt_ac_sed
4425     fi
4426   done
4427 done
4428 SED=$lt_cv_path_SED
4429
4430 fi
4431
4432 { echo "$as_me:$LINENO: result: $SED" >&5
4433 echo "${ECHO_T}$SED" >&6; }
4434
4435 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4436 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   # Extract the first word of "grep ggrep" to use in msg output
4441 if test -z "$GREP"; then
4442 set dummy grep ggrep; ac_prog_name=$2
4443 if test "${ac_cv_path_GREP+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   ac_path_GREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_prog in grep ggrep; do
4454   for ac_exec_ext in '' $ac_executable_extensions; do
4455     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4456     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4457     # Check for GNU ac_path_GREP and select it if it is found.
4458   # Check for GNU $ac_path_GREP
4459 case `"$ac_path_GREP" --version 2>&1` in
4460 *GNU*)
4461   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4462 *)
4463   ac_count=0
4464   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4465   while :
4466   do
4467     cat "conftest.in" "conftest.in" >"conftest.tmp"
4468     mv "conftest.tmp" "conftest.in"
4469     cp "conftest.in" "conftest.nl"
4470     echo 'GREP' >> "conftest.nl"
4471     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473     ac_count=`expr $ac_count + 1`
4474     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4475       # Best one so far, save it but keep looking for a better one
4476       ac_cv_path_GREP="$ac_path_GREP"
4477       ac_path_GREP_max=$ac_count
4478     fi
4479     # 10*(2^10) chars as input seems more than enough
4480     test $ac_count -gt 10 && break
4481   done
4482   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 esac
4484
4485
4486     $ac_path_GREP_found && break 3
4487   done
4488 done
4489
4490 done
4491 IFS=$as_save_IFS
4492
4493
4494 fi
4495
4496 GREP="$ac_cv_path_GREP"
4497 if test -z "$GREP"; then
4498   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500    { (exit 1); exit 1; }; }
4501 fi
4502
4503 else
4504   ac_cv_path_GREP=$GREP
4505 fi
4506
4507
4508 fi
4509 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4510 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4511  GREP="$ac_cv_path_GREP"
4512
4513
4514 { echo "$as_me:$LINENO: checking for egrep" >&5
4515 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_EGREP+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520    then ac_cv_path_EGREP="$GREP -E"
4521    else
4522      # Extract the first word of "egrep" to use in msg output
4523 if test -z "$EGREP"; then
4524 set dummy egrep; ac_prog_name=$2
4525 if test "${ac_cv_path_EGREP+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   ac_path_EGREP_found=false
4529 # Loop through the user's path and test for each of PROGNAME-LIST
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535   for ac_prog in egrep; do
4536   for ac_exec_ext in '' $ac_executable_extensions; do
4537     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4538     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4539     # Check for GNU ac_path_EGREP and select it if it is found.
4540   # Check for GNU $ac_path_EGREP
4541 case `"$ac_path_EGREP" --version 2>&1` in
4542 *GNU*)
4543   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4544 *)
4545   ac_count=0
4546   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4547   while :
4548   do
4549     cat "conftest.in" "conftest.in" >"conftest.tmp"
4550     mv "conftest.tmp" "conftest.in"
4551     cp "conftest.in" "conftest.nl"
4552     echo 'EGREP' >> "conftest.nl"
4553     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555     ac_count=`expr $ac_count + 1`
4556     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4557       # Best one so far, save it but keep looking for a better one
4558       ac_cv_path_EGREP="$ac_path_EGREP"
4559       ac_path_EGREP_max=$ac_count
4560     fi
4561     # 10*(2^10) chars as input seems more than enough
4562     test $ac_count -gt 10 && break
4563   done
4564   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565 esac
4566
4567
4568     $ac_path_EGREP_found && break 3
4569   done
4570 done
4571
4572 done
4573 IFS=$as_save_IFS
4574
4575
4576 fi
4577
4578 EGREP="$ac_cv_path_EGREP"
4579 if test -z "$EGREP"; then
4580   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4581 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4582    { (exit 1); exit 1; }; }
4583 fi
4584
4585 else
4586   ac_cv_path_EGREP=$EGREP
4587 fi
4588
4589
4590    fi
4591 fi
4592 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4593 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4594  EGREP="$ac_cv_path_EGREP"
4595
4596
4597
4598 # Check whether --with-gnu-ld was given.
4599 if test "${with_gnu_ld+set}" = set; then
4600   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4601 else
4602   with_gnu_ld=no
4603 fi
4604
4605 ac_prog=ld
4606 if test "$GCC" = yes; then
4607   # Check if gcc -print-prog-name=ld gives a path.
4608   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4609 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4610   case $host in
4611   *-*-mingw*)
4612     # gcc leaves a trailing carriage return which upsets mingw
4613     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4614   *)
4615     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4616   esac
4617   case $ac_prog in
4618     # Accept absolute paths.
4619     [\\/]* | ?:[\\/]*)
4620       re_direlt='/[^/][^/]*/\.\./'
4621       # Canonicalize the pathname of ld
4622       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4623       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4624         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4625       done
4626       test -z "$LD" && LD="$ac_prog"
4627       ;;
4628   "")
4629     # If it fails, then pretend we aren't using GCC.
4630     ac_prog=ld
4631     ;;
4632   *)
4633     # If it is relative, then search for the first ld in PATH.
4634     with_gnu_ld=unknown
4635     ;;
4636   esac
4637 elif test "$with_gnu_ld" = yes; then
4638   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4639 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4640 else
4641   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4642 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4643 fi
4644 if test "${lt_cv_path_LD+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   if test -z "$LD"; then
4648   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649   for ac_dir in $PATH; do
4650     IFS="$lt_save_ifs"
4651     test -z "$ac_dir" && ac_dir=.
4652     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4653       lt_cv_path_LD="$ac_dir/$ac_prog"
4654       # Check to see if the program is GNU ld.  I'd rather use --version,
4655       # but apparently some GNU ld's only accept -v.
4656       # Break only if it was the GNU/non-GNU ld that we prefer.
4657       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4658       *GNU* | *'with BFD'*)
4659         test "$with_gnu_ld" != no && break
4660         ;;
4661       *)
4662         test "$with_gnu_ld" != yes && break
4663         ;;
4664       esac
4665     fi
4666   done
4667   IFS="$lt_save_ifs"
4668 else
4669   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4670 fi
4671 fi
4672
4673 LD="$lt_cv_path_LD"
4674 if test -n "$LD"; then
4675   { echo "$as_me:$LINENO: result: $LD" >&5
4676 echo "${ECHO_T}$LD" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 fi
4681 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4682 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4683    { (exit 1); exit 1; }; }
4684 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4685 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4686 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4690 case `$LD -v 2>&1 </dev/null` in
4691 *GNU* | *'with BFD'*)
4692   lt_cv_prog_gnu_ld=yes
4693   ;;
4694 *)
4695   lt_cv_prog_gnu_ld=no
4696   ;;
4697 esac
4698 fi
4699 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4700 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4701 with_gnu_ld=$lt_cv_prog_gnu_ld
4702
4703
4704 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4705 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4706 if test "${lt_cv_ld_reload_flag+set}" = set; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   lt_cv_ld_reload_flag='-r'
4710 fi
4711 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4712 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4713 reload_flag=$lt_cv_ld_reload_flag
4714 case $reload_flag in
4715 "" | " "*) ;;
4716 *) reload_flag=" $reload_flag" ;;
4717 esac
4718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4719
4720 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4721 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4722 if test "${lt_cv_path_NM+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   if test -n "$NM"; then
4726   # Let the user override the test.
4727   lt_cv_path_NM="$NM"
4728 else
4729   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4730   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4731     IFS="$lt_save_ifs"
4732     test -z "$ac_dir" && ac_dir=.
4733     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4734     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4735       # Check to see if the nm accepts a BSD-compat flag.
4736       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4737       #   nm: unknown option "B" ignored
4738       # Tru64's nm complains that /dev/null is an invalid object file
4739       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4740       */dev/null* | *'Invalid file or object type'*)
4741         lt_cv_path_NM="$tmp_nm -B"
4742         break
4743         ;;
4744       *)
4745         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4746         */dev/null*)
4747           lt_cv_path_NM="$tmp_nm -p"
4748           break
4749           ;;
4750         *)
4751           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4752           continue # so that we can try to find one that supports BSD flags
4753           ;;
4754         esac
4755       esac
4756     fi
4757   done
4758   IFS="$lt_save_ifs"
4759   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4760 fi
4761 fi
4762 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4763 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4764 NM="$lt_cv_path_NM"
4765
4766 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4767 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4768 LN_S=$as_ln_s
4769 if test "$LN_S" = "ln -s"; then
4770   { echo "$as_me:$LINENO: result: yes" >&5
4771 echo "${ECHO_T}yes" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4774 echo "${ECHO_T}no, using $LN_S" >&6; }
4775 fi
4776
4777 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4778 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4779 if test "${lt_cv_deplibs_check_method+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   lt_cv_file_magic_cmd='$MAGIC_CMD'
4783 lt_cv_file_magic_test_file=
4784 lt_cv_deplibs_check_method='unknown'
4785 # Need to set the preceding variable on all platforms that support
4786 # interlibrary dependencies.
4787 # 'none' -- dependencies not supported.
4788 # `unknown' -- same as none, but documents that we really don't know.
4789 # 'pass_all' -- all dependencies passed with no checks.
4790 # 'test_compile' -- check by making test program.
4791 # 'file_magic [[regex]]' -- check by looking for files in library path
4792 # which responds to the $file_magic_cmd with a given extended regex.
4793 # If you have `file' or equivalent on your system and you're not sure
4794 # whether `pass_all' will *always* work, you probably want this one.
4795
4796 case $host_os in
4797 aix4* | aix5*)
4798   lt_cv_deplibs_check_method=pass_all
4799   ;;
4800
4801 beos*)
4802   lt_cv_deplibs_check_method=pass_all
4803   ;;
4804
4805 bsdi4*)
4806   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4807   lt_cv_file_magic_cmd='/usr/bin/file -L'
4808   lt_cv_file_magic_test_file=/shlib/libc.so
4809   ;;
4810
4811 cygwin*)
4812   # func_win32_libid is a shell function defined in ltmain.sh
4813   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4814   lt_cv_file_magic_cmd='func_win32_libid'
4815   ;;
4816
4817 mingw* | pw32*)
4818   # Base MSYS/MinGW do not provide the 'file' command needed by
4819   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4820   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4821   lt_cv_file_magic_cmd='$OBJDUMP -f'
4822   ;;
4823
4824 darwin* | rhapsody*)
4825   lt_cv_deplibs_check_method=pass_all
4826   ;;
4827
4828 freebsd* | kfreebsd*-gnu)
4829   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4830     case $host_cpu in
4831     i*86 )
4832       # Not sure whether the presence of OpenBSD here was a mistake.
4833       # Let's accept both of them until this is cleared up.
4834       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4835       lt_cv_file_magic_cmd=/usr/bin/file
4836       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4837       ;;
4838     esac
4839   else
4840     lt_cv_deplibs_check_method=pass_all
4841   fi
4842   ;;
4843
4844 gnu*)
4845   lt_cv_deplibs_check_method=pass_all
4846   ;;
4847
4848 hpux10.20* | hpux11*)
4849   lt_cv_file_magic_cmd=/usr/bin/file
4850   case "$host_cpu" in
4851   ia64*)
4852     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4853     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4854     ;;
4855   hppa*64*)
4856     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]'
4857     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4858     ;;
4859   *)
4860     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4861     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4862     ;;
4863   esac
4864   ;;
4865
4866 irix5* | irix6* | nonstopux*)
4867   case $LD in
4868   *-32|*"-32 ") libmagic=32-bit;;
4869   *-n32|*"-n32 ") libmagic=N32;;
4870   *-64|*"-64 ") libmagic=64-bit;;
4871   *) libmagic=never-match;;
4872   esac
4873   lt_cv_deplibs_check_method=pass_all
4874   ;;
4875
4876 # This must be Linux ELF.
4877 linux*)
4878   lt_cv_deplibs_check_method=pass_all
4879   ;;
4880
4881 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4882   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4883     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4884   else
4885     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4886   fi
4887   ;;
4888
4889 newos6*)
4890   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4891   lt_cv_file_magic_cmd=/usr/bin/file
4892   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4893   ;;
4894
4895 nto-qnx*)
4896   lt_cv_deplibs_check_method=unknown
4897   ;;
4898
4899 openbsd*)
4900   lt_cv_file_magic_cmd=/usr/bin/file
4901   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4902   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4903     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4904   else
4905     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4906   fi
4907   ;;
4908
4909 osf3* | osf4* | osf5*)
4910   lt_cv_deplibs_check_method=pass_all
4911   ;;
4912
4913 sco3.2v5*)
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 solaris*)
4918   lt_cv_deplibs_check_method=pass_all
4919   ;;
4920
4921 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4922   case $host_vendor in
4923   motorola)
4924     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]'
4925     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4926     ;;
4927   ncr)
4928     lt_cv_deplibs_check_method=pass_all
4929     ;;
4930   sequent)
4931     lt_cv_file_magic_cmd='/bin/file'
4932     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4933     ;;
4934   sni)
4935     lt_cv_file_magic_cmd='/bin/file'
4936     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4937     lt_cv_file_magic_test_file=/lib/libc.so
4938     ;;
4939   siemens)
4940     lt_cv_deplibs_check_method=pass_all
4941     ;;
4942   esac
4943   ;;
4944
4945 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4946   lt_cv_deplibs_check_method=pass_all
4947   ;;
4948 esac
4949
4950 fi
4951 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4952 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4953 file_magic_cmd=$lt_cv_file_magic_cmd
4954 deplibs_check_method=$lt_cv_deplibs_check_method
4955 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4956
4957
4958
4959
4960 # If no C compiler was specified, use CC.
4961 LTCC=${LTCC-"$CC"}
4962
4963 # Allow CC to be a program name with arguments.
4964 compiler=$CC
4965
4966
4967 # Check whether --enable-libtool-lock was given.
4968 if test "${enable_libtool_lock+set}" = set; then
4969   enableval=$enable_libtool_lock;
4970 fi
4971
4972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4973
4974 # Some flags need to be propagated to the compiler or linker for good
4975 # libtool support.
4976 case $host in
4977 ia64-*-hpux*)
4978   # Find out which ABI we are using.
4979   echo 'int i;' > conftest.$ac_ext
4980   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981   (eval $ac_compile) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; then
4985     case `/usr/bin/file conftest.$ac_objext` in
4986     *ELF-32*)
4987       HPUX_IA64_MODE="32"
4988       ;;
4989     *ELF-64*)
4990       HPUX_IA64_MODE="64"
4991       ;;
4992     esac
4993   fi
4994   rm -rf conftest*
4995   ;;
4996 *-*-irix6*)
4997   # Find out which ABI we are using.
4998   echo '#line 4998 "configure"' > conftest.$ac_ext
4999   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000   (eval $ac_compile) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; then
5004    if test "$lt_cv_prog_gnu_ld" = yes; then
5005     case `/usr/bin/file conftest.$ac_objext` in
5006     *32-bit*)
5007       LD="${LD-ld} -melf32bsmip"
5008       ;;
5009     *N32*)
5010       LD="${LD-ld} -melf32bmipn32"
5011       ;;
5012     *64-bit*)
5013       LD="${LD-ld} -melf64bmip"
5014       ;;
5015     esac
5016    else
5017     case `/usr/bin/file conftest.$ac_objext` in
5018     *32-bit*)
5019       LD="${LD-ld} -32"
5020       ;;
5021     *N32*)
5022       LD="${LD-ld} -n32"
5023       ;;
5024     *64-bit*)
5025       LD="${LD-ld} -64"
5026       ;;
5027     esac
5028    fi
5029   fi
5030   rm -rf conftest*
5031   ;;
5032
5033 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5034   # Find out which ABI we are using.
5035   echo 'int i;' > conftest.$ac_ext
5036   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037   (eval $ac_compile) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; then
5041     case "`/usr/bin/file conftest.o`" in
5042     *32-bit*)
5043       case $host in
5044         x86_64-*linux*)
5045           LD="${LD-ld} -m elf_i386"
5046           ;;
5047         ppc64-*linux*|powerpc64-*linux*)
5048           LD="${LD-ld} -m elf32ppclinux"
5049           ;;
5050         s390x-*linux*)
5051           LD="${LD-ld} -m elf_s390"
5052           ;;
5053         sparc64-*linux*)
5054           LD="${LD-ld} -m elf32_sparc"
5055           ;;
5056       esac
5057       ;;
5058     *64-bit*)
5059       case $host in
5060         x86_64-*linux*)
5061           LD="${LD-ld} -m elf_x86_64"
5062           ;;
5063         ppc*-*linux*|powerpc*-*linux*)
5064           LD="${LD-ld} -m elf64ppc"
5065           ;;
5066         s390*-*linux*)
5067           LD="${LD-ld} -m elf64_s390"
5068           ;;
5069         sparc*-*linux*)
5070           LD="${LD-ld} -m elf64_sparc"
5071           ;;
5072       esac
5073       ;;
5074     esac
5075   fi
5076   rm -rf conftest*
5077   ;;
5078
5079 *-*-sco3.2v5*)
5080   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5081   SAVE_CFLAGS="$CFLAGS"
5082   CFLAGS="$CFLAGS -belf"
5083   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5084 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5085 if test "${lt_cv_cc_needs_belf+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094      cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100
5101 int
5102 main ()
5103 {
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5111 case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116   (eval "$ac_link") 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } && {
5123          test -z "$ac_c_werror_flag" ||
5124          test ! -s conftest.err
5125        } && test -s conftest$ac_exeext &&
5126        $as_test_x conftest$ac_exeext; then
5127   lt_cv_cc_needs_belf=yes
5128 else
5129   echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132         lt_cv_cc_needs_belf=no
5133 fi
5134
5135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5136       conftest$ac_exeext conftest.$ac_ext
5137      ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143 fi
5144 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5146   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148     CFLAGS="$SAVE_CFLAGS"
5149   fi
5150   ;;
5151 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5152   if test -n "$ac_tool_prefix"; then
5153   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   if test -n "$DLLTOOL"; then
5161   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 DLLTOOL=$ac_cv_prog_DLLTOOL
5181 if test -n "$DLLTOOL"; then
5182   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5183 echo "${ECHO_T}$DLLTOOL" >&6; }
5184 else
5185   { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5187 fi
5188
5189
5190 fi
5191 if test -z "$ac_cv_prog_DLLTOOL"; then
5192   ac_ct_DLLTOOL=$DLLTOOL
5193   # Extract the first word of "dlltool", so it can be a program name with args.
5194 set dummy dlltool; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   if test -n "$ac_ct_DLLTOOL"; then
5201   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208   for ac_exec_ext in '' $ac_executable_extensions; do
5209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5221 if test -n "$ac_ct_DLLTOOL"; then
5222   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5223 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5224 else
5225   { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5227 fi
5228
5229   if test "x$ac_ct_DLLTOOL" = x; then
5230     DLLTOOL="false"
5231   else
5232     case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235 whose name does not start with the host triplet.  If you think this
5236 configuration is useful to you, please write to autoconf@gnu.org." >&5
5237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet.  If you think this
5239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242     DLLTOOL=$ac_ct_DLLTOOL
5243   fi
5244 else
5245   DLLTOOL="$ac_cv_prog_DLLTOOL"
5246 fi
5247
5248   if test -n "$ac_tool_prefix"; then
5249   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}as; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_prog_AS+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test -n "$AS"; then
5257   ac_cv_prog_AS="$AS" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for ac_exec_ext in '' $ac_executable_extensions; do
5265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266     ac_cv_prog_AS="${ac_tool_prefix}as"
5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 AS=$ac_cv_prog_AS
5277 if test -n "$AS"; then
5278   { echo "$as_me:$LINENO: result: $AS" >&5
5279 echo "${ECHO_T}$AS" >&6; }
5280 else
5281   { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5283 fi
5284
5285
5286 fi
5287 if test -z "$ac_cv_prog_AS"; then
5288   ac_ct_AS=$AS
5289   # Extract the first word of "as", so it can be a program name with args.
5290 set dummy as; ac_word=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   if test -n "$ac_ct_AS"; then
5297   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302   IFS=$as_save_IFS
5303   test -z "$as_dir" && as_dir=.
5304   for ac_exec_ext in '' $ac_executable_extensions; do
5305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306     ac_cv_prog_ac_ct_AS="as"
5307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308     break 2
5309   fi
5310 done
5311 done
5312 IFS=$as_save_IFS
5313
5314 fi
5315 fi
5316 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5317 if test -n "$ac_ct_AS"; then
5318   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5319 echo "${ECHO_T}$ac_ct_AS" >&6; }
5320 else
5321   { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5323 fi
5324
5325   if test "x$ac_ct_AS" = x; then
5326     AS="false"
5327   else
5328     case $cross_compiling:$ac_tool_warned in
5329 yes:)
5330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5331 whose name does not start with the host triplet.  If you think this
5332 configuration is useful to you, please write to autoconf@gnu.org." >&5
5333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5334 whose name does not start with the host triplet.  If you think this
5335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5336 ac_tool_warned=yes ;;
5337 esac
5338     AS=$ac_ct_AS
5339   fi
5340 else
5341   AS="$ac_cv_prog_AS"
5342 fi
5343
5344   if test -n "$ac_tool_prefix"; then
5345   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   if test -n "$OBJDUMP"; then
5353   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360   for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 OBJDUMP=$ac_cv_prog_OBJDUMP
5373 if test -n "$OBJDUMP"; then
5374   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5375 echo "${ECHO_T}$OBJDUMP" >&6; }
5376 else
5377   { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_OBJDUMP"; then
5384   ac_ct_OBJDUMP=$OBJDUMP
5385   # Extract the first word of "objdump", so it can be a program name with args.
5386 set dummy objdump; ac_word=$2
5387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   if test -n "$ac_ct_OBJDUMP"; then
5393   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400   for ac_exec_ext in '' $ac_executable_extensions; do
5401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413 if test -n "$ac_ct_OBJDUMP"; then
5414   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5415 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5416 else
5417   { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5419 fi
5420
5421   if test "x$ac_ct_OBJDUMP" = x; then
5422     OBJDUMP="false"
5423   else
5424     case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet.  If you think this
5428 configuration is useful to you, please write to autoconf@gnu.org." >&5
5429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430 whose name does not start with the host triplet.  If you think this
5431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434     OBJDUMP=$ac_ct_OBJDUMP
5435   fi
5436 else
5437   OBJDUMP="$ac_cv_prog_OBJDUMP"
5438 fi
5439
5440   ;;
5441
5442 esac
5443
5444 need_locks="$enable_libtool_lock"
5445
5446
5447
5448 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5449 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5450 if test "${ac_cv_header_stdc+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 #include <stdlib.h>
5460 #include <stdarg.h>
5461 #include <string.h>
5462 #include <float.h>
5463
5464 int
5465 main ()
5466 {
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5474 case "(($ac_try" in
5475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476   *) ac_try_echo=$ac_try;;
5477 esac
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479   (eval "$ac_compile") 2>conftest.er1
5480   ac_status=$?
5481   grep -v '^ *+' conftest.er1 >conftest.err
5482   rm -f conftest.er1
5483   cat conftest.err >&5
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } && {
5486          test -z "$ac_c_werror_flag" ||
5487          test ! -s conftest.err
5488        } && test -s conftest.$ac_objext; then
5489   ac_cv_header_stdc=yes
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494         ac_cv_header_stdc=no
5495 fi
5496
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498
5499 if test $ac_cv_header_stdc = yes; then
5500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5501   cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h.  */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h.  */
5507 #include <string.h>
5508
5509 _ACEOF
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511   $EGREP "memchr" >/dev/null 2>&1; then
5512   :
5513 else
5514   ac_cv_header_stdc=no
5515 fi
5516 rm -f conftest*
5517
5518 fi
5519
5520 if test $ac_cv_header_stdc = yes; then
5521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528 #include <stdlib.h>
5529
5530 _ACEOF
5531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532   $EGREP "free" >/dev/null 2>&1; then
5533   :
5534 else
5535   ac_cv_header_stdc=no
5536 fi
5537 rm -f conftest*
5538
5539 fi
5540
5541 if test $ac_cv_header_stdc = yes; then
5542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5543   if test "$cross_compiling" = yes; then
5544   :
5545 else
5546   cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 #include <ctype.h>
5553 #include <stdlib.h>
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 #else
5558 # define ISLOWER(c) \
5559                    (('a' <= (c) && (c) <= 'i') \
5560                      || ('j' <= (c) && (c) <= 'r') \
5561                      || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563 #endif
5564
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5566 int
5567 main ()
5568 {
5569   int i;
5570   for (i = 0; i < 256; i++)
5571     if (XOR (islower (i), ISLOWER (i))
5572         || toupper (i) != TOUPPER (i))
5573       return 2;
5574   return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest$ac_exeext
5578 if { (ac_try="$ac_link"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584   (eval "$ac_link") 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5588   { (case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593   (eval "$ac_try") 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; }; then
5597   :
5598 else
5599   echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 ( exit $ac_status )
5604 ac_cv_header_stdc=no
5605 fi
5606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5607 fi
5608
5609
5610 fi
5611 fi
5612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5614 if test $ac_cv_header_stdc = yes; then
5615
5616 cat >>confdefs.h <<\_ACEOF
5617 #define STDC_HEADERS 1
5618 _ACEOF
5619
5620 fi
5621
5622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5633                   inttypes.h stdint.h unistd.h
5634 do
5635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 $ac_includes_default
5648
5649 #include <$ac_header>
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5653 case "(($ac_try" in
5654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655   *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658   (eval "$ac_compile") 2>conftest.er1
5659   ac_status=$?
5660   grep -v '^ *+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } && {
5665          test -z "$ac_c_werror_flag" ||
5666          test ! -s conftest.err
5667        } && test -s conftest.$ac_objext; then
5668   eval "$as_ac_Header=yes"
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673         eval "$as_ac_Header=no"
5674 fi
5675
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 fi
5678 ac_res=`eval echo '${'$as_ac_Header'}'`
5679                { echo "$as_me:$LINENO: result: $ac_res" >&5
5680 echo "${ECHO_T}$ac_res" >&6; }
5681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5682   cat >>confdefs.h <<_ACEOF
5683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5684 _ACEOF
5685
5686 fi
5687
5688 done
5689
5690
5691
5692 for ac_header in dlfcn.h
5693 do
5694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 fi
5701 ac_res=`eval echo '${'$as_ac_Header'}'`
5702                { echo "$as_me:$LINENO: result: $ac_res" >&5
5703 echo "${ECHO_T}$ac_res" >&6; }
5704 else
5705   # Is the header compilable?
5706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h.  */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h.  */
5714 $ac_includes_default
5715 #include <$ac_header>
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } && {
5731          test -z "$ac_c_werror_flag" ||
5732          test ! -s conftest.err
5733        } && test -s conftest.$ac_objext; then
5734   ac_header_compiler=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739         ac_header_compiler=no
5740 fi
5741
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5744 echo "${ECHO_T}$ac_header_compiler" >&6; }
5745
5746 # Is the header present?
5747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h.  */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h.  */
5755 #include <$ac_header>
5756 _ACEOF
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5758 case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } >/dev/null && {
5770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5771          test ! -s conftest.err
5772        }; then
5773   ac_header_preproc=yes
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778   ac_header_preproc=no
5779 fi
5780
5781 rm -f conftest.err conftest.$ac_ext
5782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5783 echo "${ECHO_T}$ac_header_preproc" >&6; }
5784
5785 # So?  What about this header?
5786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5787   yes:no: )
5788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5792     ac_header_preproc=yes
5793     ;;
5794   no:yes:* )
5795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5807     ( cat <<\_ASBOX
5808 ## ---------------------------------- ##
5809 ## Report this to bug-gnupg@gnupg.org ##
5810 ## ---------------------------------- ##
5811 _ASBOX
5812      ) | sed "s/^/$as_me: WARNING:     /" >&2
5813     ;;
5814 esac
5815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   eval "$as_ac_Header=\$ac_header_preproc"
5821 fi
5822 ac_res=`eval echo '${'$as_ac_Header'}'`
5823                { echo "$as_me:$LINENO: result: $ac_res" >&5
5824 echo "${ECHO_T}$ac_res" >&6; }
5825
5826 fi
5827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828   cat >>confdefs.h <<_ACEOF
5829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830 _ACEOF
5831
5832 fi
5833
5834 done
5835
5836 ac_ext=cpp
5837 ac_cpp='$CXXCPP $CPPFLAGS'
5838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841 if test -z "$CXX"; then
5842   if test -n "$CCC"; then
5843     CXX=$CCC
5844   else
5845     if test -n "$ac_tool_prefix"; then
5846   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5847   do
5848     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_CXX+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$CXX"; then
5856   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 CXX=$ac_cv_prog_CXX
5876 if test -n "$CXX"; then
5877   { echo "$as_me:$LINENO: result: $CXX" >&5
5878 echo "${ECHO_T}$CXX" >&6; }
5879 else
5880   { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5882 fi
5883
5884
5885     test -n "$CXX" && break
5886   done
5887 fi
5888 if test -z "$CXX"; then
5889   ac_ct_CXX=$CXX
5890   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5891 do
5892   # Extract the first word of "$ac_prog", so it can be a program name with args.
5893 set dummy $ac_prog; ac_word=$2
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   if test -n "$ac_ct_CXX"; then
5900   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_prog_ac_ct_CXX="$ac_prog"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5920 if test -n "$ac_ct_CXX"; then
5921   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5922 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5923 else
5924   { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5926 fi
5927
5928
5929   test -n "$ac_ct_CXX" && break
5930 done
5931
5932   if test "x$ac_ct_CXX" = x; then
5933     CXX="g++"
5934   else
5935     case $cross_compiling:$ac_tool_warned in
5936 yes:)
5937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938 whose name does not start with the host triplet.  If you think this
5939 configuration is useful to you, please write to autoconf@gnu.org." >&5
5940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941 whose name does not start with the host triplet.  If you think this
5942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945     CXX=$ac_ct_CXX
5946   fi
5947 fi
5948
5949   fi
5950 fi
5951 # Provide some information about the compiler.
5952 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5953 ac_compiler=`set X $ac_compile; echo $2`
5954 { (ac_try="$ac_compiler --version >&5"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_compiler --version >&5") 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }
5964 { (ac_try="$ac_compiler -v >&5"
5965 case "(($ac_try" in
5966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967   *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970   (eval "$ac_compiler -v >&5") 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }
5974 { (ac_try="$ac_compiler -V >&5"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_compiler -V >&5") 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }
5984
5985 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5986 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5987 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996
5997 int
5998 main ()
5999 {
6000 #ifndef __GNUC__
6001        choke me
6002 #endif
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_compile") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } && {
6022          test -z "$ac_cxx_werror_flag" ||
6023          test ! -s conftest.err
6024        } && test -s conftest.$ac_objext; then
6025   ac_compiler_gnu=yes
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030         ac_compiler_gnu=no
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6035
6036 fi
6037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6039 GXX=`test $ac_compiler_gnu = yes && echo yes`
6040 ac_test_CXXFLAGS=${CXXFLAGS+set}
6041 ac_save_CXXFLAGS=$CXXFLAGS
6042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_cxx_g+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6048    ac_cxx_werror_flag=yes
6049    ac_cv_prog_cxx_g=no
6050    CXXFLAGS="-g"
6051    cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057
6058 int
6059 main ()
6060 {
6061
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (ac_try="$ac_compile"
6068 case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073   (eval "$ac_compile") 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } && {
6080          test -z "$ac_cxx_werror_flag" ||
6081          test ! -s conftest.err
6082        } && test -s conftest.$ac_objext; then
6083   ac_cv_prog_cxx_g=yes
6084 else
6085   echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088         CXXFLAGS=""
6089       cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h.  */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h.  */
6095
6096 int
6097 main ()
6098 {
6099
6100   ;
6101   return 0;
6102 }
6103 _ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6106 case "(($ac_try" in
6107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108   *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111   (eval "$ac_compile") 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } && {
6118          test -z "$ac_cxx_werror_flag" ||
6119          test ! -s conftest.err
6120        } && test -s conftest.$ac_objext; then
6121   :
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6127          CXXFLAGS="-g"
6128          cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134
6135 int
6136 main ()
6137 {
6138
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (ac_try="$ac_compile"
6145 case "(($ac_try" in
6146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147   *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150   (eval "$ac_compile") 2>conftest.er1
6151   ac_status=$?
6152   grep -v '^ *+' conftest.er1 >conftest.err
6153   rm -f conftest.er1
6154   cat conftest.err >&5
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } && {
6157          test -z "$ac_cxx_werror_flag" ||
6158          test ! -s conftest.err
6159        } && test -s conftest.$ac_objext; then
6160   ac_cv_prog_cxx_g=yes
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165
6166 fi
6167
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6176 fi
6177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6178 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6179 if test "$ac_test_CXXFLAGS" = set; then
6180   CXXFLAGS=$ac_save_CXXFLAGS
6181 elif test $ac_cv_prog_cxx_g = yes; then
6182   if test "$GXX" = yes; then
6183     CXXFLAGS="-g -O2"
6184   else
6185     CXXFLAGS="-g"
6186   fi
6187 else
6188   if test "$GXX" = yes; then
6189     CXXFLAGS="-O2"
6190   else
6191     CXXFLAGS=
6192   fi
6193 fi
6194 ac_ext=cpp
6195 ac_cpp='$CXXCPP $CPPFLAGS'
6196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6199
6200 depcc="$CXX"  am_compiler_list=
6201
6202 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6203 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6204 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6208   # We make a subdir and do the tests there.  Otherwise we can end up
6209   # making bogus files that we don't know about and never remove.  For
6210   # instance it was reported that on HP-UX the gcc test will end up
6211   # making a dummy file named `D' -- because `-MD' means `put the output
6212   # in D'.
6213   mkdir conftest.dir
6214   # Copy depcomp to subdir because otherwise we won't find it if we're
6215   # using a relative directory.
6216   cp "$am_depcomp" conftest.dir
6217   cd conftest.dir
6218   # We will build objects and dependencies in a subdirectory because
6219   # it helps to detect inapplicable dependency modes.  For instance
6220   # both Tru64's cc and ICC support -MD to output dependencies as a
6221   # side effect of compilation, but ICC will put the dependencies in
6222   # the current directory while Tru64 will put them in the object
6223   # directory.
6224   mkdir sub
6225
6226   am_cv_CXX_dependencies_compiler_type=none
6227   if test "$am_compiler_list" = ""; then
6228      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6229   fi
6230   for depmode in $am_compiler_list; do
6231     # Setup a source with many dependencies, because some compilers
6232     # like to wrap large dependency lists on column 80 (with \), and
6233     # we should not choose a depcomp mode which is confused by this.
6234     #
6235     # We need to recreate these files for each test, as the compiler may
6236     # overwrite some of them when testing with obscure command lines.
6237     # This happens at least with the AIX C compiler.
6238     : > sub/conftest.c
6239     for i in 1 2 3 4 5 6; do
6240       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6242       # Solaris 8's {/usr,}/bin/sh.
6243       touch sub/conftst$i.h
6244     done
6245     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6246
6247     case $depmode in
6248     nosideeffect)
6249       # after this tag, mechanisms are not by side-effect, so they'll
6250       # only be used when explicitly requested
6251       if test "x$enable_dependency_tracking" = xyes; then
6252         continue
6253       else
6254         break
6255       fi
6256       ;;
6257     none) break ;;
6258     esac
6259     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6260     # mode.  It turns out that the SunPro C++ compiler does not properly
6261     # handle `-M -o', and we need to detect this.
6262     if depmode=$depmode \
6263        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6264        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6265        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6266          >/dev/null 2>conftest.err &&
6267        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6269        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6271       # icc doesn't choke on unknown options, it will just issue warnings
6272       # or remarks (even with -Werror).  So we grep stderr for any message
6273       # that says an option was ignored or not supported.
6274       # When given -MP, icc 7.0 and 7.1 complain thusly:
6275       #   icc: Command line warning: ignoring option '-M'; no argument required
6276       # The diagnosis changed in icc 8.0:
6277       #   icc: Command line remark: option '-MP' not supported
6278       if (grep 'ignoring option' conftest.err ||
6279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6280         am_cv_CXX_dependencies_compiler_type=$depmode
6281         break
6282       fi
6283     fi
6284   done
6285
6286   cd ..
6287   rm -rf conftest.dir
6288 else
6289   am_cv_CXX_dependencies_compiler_type=none
6290 fi
6291
6292 fi
6293 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6294 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6295 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6296
6297  if
6298   test "x$enable_dependency_tracking" != xno \
6299   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6300   am__fastdepCXX_TRUE=
6301   am__fastdepCXX_FALSE='#'
6302 else
6303   am__fastdepCXX_TRUE='#'
6304   am__fastdepCXX_FALSE=
6305 fi
6306
6307
6308 ac_ext=cpp
6309 ac_cpp='$CXXCPP $CPPFLAGS'
6310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6313 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6314 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6315 if test -z "$CXXCPP"; then
6316   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319       # Double quotes because CXXCPP needs to be expanded
6320     for CXXCPP in "$CXX -E" "/lib/cpp"
6321     do
6322       ac_preproc_ok=false
6323 for ac_cxx_preproc_warn_flag in '' yes
6324 do
6325   # Use a header file that comes with gcc, so configuring glibc
6326   # with a fresh cross-compiler works.
6327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6328   # <limits.h> exists even on freestanding compilers.
6329   # On the NeXT, cc -E runs the code through the compiler's parser,
6330   # not just through cpp. "Syntax error" is here to catch this case.
6331   cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #ifdef __STDC__
6338 # include <limits.h>
6339 #else
6340 # include <assert.h>
6341 #endif
6342                      Syntax error
6343 _ACEOF
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 case "(($ac_try" in
6346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347   *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351   ac_status=$?
6352   grep -v '^ *+' conftest.er1 >conftest.err
6353   rm -f conftest.er1
6354   cat conftest.err >&5
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } >/dev/null && {
6357          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6358          test ! -s conftest.err
6359        }; then
6360   :
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365   # Broken: fails on valid input.
6366 continue
6367 fi
6368
6369 rm -f conftest.err conftest.$ac_ext
6370
6371   # OK, works on sane cases.  Now check whether nonexistent headers
6372   # can be detected and how.
6373   cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379 #include <ac_nonexistent.h>
6380 _ACEOF
6381 if { (ac_try="$ac_cpp conftest.$ac_ext"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } >/dev/null && {
6394          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6395          test ! -s conftest.err
6396        }; then
6397   # Broken: success on invalid input.
6398 continue
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403   # Passes both tests.
6404 ac_preproc_ok=:
6405 break
6406 fi
6407
6408 rm -f conftest.err conftest.$ac_ext
6409
6410 done
6411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412 rm -f conftest.err conftest.$ac_ext
6413 if $ac_preproc_ok; then
6414   break
6415 fi
6416
6417     done
6418     ac_cv_prog_CXXCPP=$CXXCPP
6419
6420 fi
6421   CXXCPP=$ac_cv_prog_CXXCPP
6422 else
6423   ac_cv_prog_CXXCPP=$CXXCPP
6424 fi
6425 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6426 echo "${ECHO_T}$CXXCPP" >&6; }
6427 ac_preproc_ok=false
6428 for ac_cxx_preproc_warn_flag in '' yes
6429 do
6430   # Use a header file that comes with gcc, so configuring glibc
6431   # with a fresh cross-compiler works.
6432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6433   # <limits.h> exists even on freestanding compilers.
6434   # On the NeXT, cc -E runs the code through the compiler's parser,
6435   # not just through cpp. "Syntax error" is here to catch this case.
6436   cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h.  */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h.  */
6442 #ifdef __STDC__
6443 # include <limits.h>
6444 #else
6445 # include <assert.h>
6446 #endif
6447                      Syntax error
6448 _ACEOF
6449 if { (ac_try="$ac_cpp conftest.$ac_ext"
6450 case "(($ac_try" in
6451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452   *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6456   ac_status=$?
6457   grep -v '^ *+' conftest.er1 >conftest.err
6458   rm -f conftest.er1
6459   cat conftest.err >&5
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } >/dev/null && {
6462          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6463          test ! -s conftest.err
6464        }; then
6465   :
6466 else
6467   echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470   # Broken: fails on valid input.
6471 continue
6472 fi
6473
6474 rm -f conftest.err conftest.$ac_ext
6475
6476   # OK, works on sane cases.  Now check whether nonexistent headers
6477   # can be detected and how.
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 #include <ac_nonexistent.h>
6485 _ACEOF
6486 if { (ac_try="$ac_cpp conftest.$ac_ext"
6487 case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6493   ac_status=$?
6494   grep -v '^ *+' conftest.er1 >conftest.err
6495   rm -f conftest.er1
6496   cat conftest.err >&5
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); } >/dev/null && {
6499          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6500          test ! -s conftest.err
6501        }; then
6502   # Broken: success on invalid input.
6503 continue
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508   # Passes both tests.
6509 ac_preproc_ok=:
6510 break
6511 fi
6512
6513 rm -f conftest.err conftest.$ac_ext
6514
6515 done
6516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6517 rm -f conftest.err conftest.$ac_ext
6518 if $ac_preproc_ok; then
6519   :
6520 else
6521   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6522 See \`config.log' for more details." >&5
6523 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6524 See \`config.log' for more details." >&2;}
6525    { (exit 1); exit 1; }; }
6526 fi
6527
6528 ac_ext=cpp
6529 ac_cpp='$CXXCPP $CPPFLAGS'
6530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6533
6534
6535 ac_ext=f
6536 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6537 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6539 if test -n "$ac_tool_prefix"; then
6540   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6541   do
6542     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_prog_F77+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   if test -n "$F77"; then
6550   ac_cv_prog_F77="$F77" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 F77=$ac_cv_prog_F77
6570 if test -n "$F77"; then
6571   { echo "$as_me:$LINENO: result: $F77" >&5
6572 echo "${ECHO_T}$F77" >&6; }
6573 else
6574   { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6576 fi
6577
6578
6579     test -n "$F77" && break
6580   done
6581 fi
6582 if test -z "$F77"; then
6583   ac_ct_F77=$F77
6584   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6585 do
6586   # Extract the first word of "$ac_prog", so it can be a program name with args.
6587 set dummy $ac_prog; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   if test -n "$ac_ct_F77"; then
6594   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601   for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_prog_ac_ct_F77="$ac_prog"
6604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6614 if test -n "$ac_ct_F77"; then
6615   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6616 echo "${ECHO_T}$ac_ct_F77" >&6; }
6617 else
6618   { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621
6622
6623   test -n "$ac_ct_F77" && break
6624 done
6625
6626   if test "x$ac_ct_F77" = x; then
6627     F77=""
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet.  If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet.  If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639     F77=$ac_ct_F77
6640   fi
6641 fi
6642
6643
6644 # Provide some information about the compiler.
6645 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6646 ac_compiler=`set X $ac_compile; echo $2`
6647 { (ac_try="$ac_compiler --version >&5"
6648 case "(($ac_try" in
6649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650   *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653   (eval "$ac_compiler --version >&5") 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }
6657 { (ac_try="$ac_compiler -v >&5"
6658 case "(($ac_try" in
6659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660   *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663   (eval "$ac_compiler -v >&5") 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }
6667 { (ac_try="$ac_compiler -V >&5"
6668 case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673   (eval "$ac_compiler -V >&5") 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }
6677 rm -f a.out
6678
6679 # If we don't use `.F' as extension, the preprocessor is not run on the
6680 # input file.  (Note that this only needs to work for GNU compilers.)
6681 ac_save_ext=$ac_ext
6682 ac_ext=F
6683 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6684 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6685 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   cat >conftest.$ac_ext <<_ACEOF
6689       program main
6690 #ifndef __GNUC__
6691        choke me
6692 #endif
6693
6694       end
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6698 case "(($ac_try" in
6699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700   *) ac_try_echo=$ac_try;;
6701 esac
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703   (eval "$ac_compile") 2>conftest.er1
6704   ac_status=$?
6705   grep -v '^ *+' conftest.er1 >conftest.err
6706   rm -f conftest.er1
6707   cat conftest.err >&5
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); } && {
6710          test -z "$ac_f77_werror_flag" ||
6711          test ! -s conftest.err
6712        } && test -s conftest.$ac_objext; then
6713   ac_compiler_gnu=yes
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718         ac_compiler_gnu=no
6719 fi
6720
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6723
6724 fi
6725 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6726 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6727 ac_ext=$ac_save_ext
6728 ac_test_FFLAGS=${FFLAGS+set}
6729 ac_save_FFLAGS=$FFLAGS
6730 FFLAGS=
6731 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6732 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_f77_g+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   FFLAGS=-g
6737 cat >conftest.$ac_ext <<_ACEOF
6738       program main
6739
6740       end
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6744 case "(($ac_try" in
6745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746   *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749   (eval "$ac_compile") 2>conftest.er1
6750   ac_status=$?
6751   grep -v '^ *+' conftest.er1 >conftest.err
6752   rm -f conftest.er1
6753   cat conftest.err >&5
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); } && {
6756          test -z "$ac_f77_werror_flag" ||
6757          test ! -s conftest.err
6758        } && test -s conftest.$ac_objext; then
6759   ac_cv_prog_f77_g=yes
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764         ac_cv_prog_f77_g=no
6765 fi
6766
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768
6769 fi
6770 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6771 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6772 if test "$ac_test_FFLAGS" = set; then
6773   FFLAGS=$ac_save_FFLAGS
6774 elif test $ac_cv_prog_f77_g = yes; then
6775   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6776     FFLAGS="-g -O2"
6777   else
6778     FFLAGS="-g"
6779   fi
6780 else
6781   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6782     FFLAGS="-O2"
6783   else
6784     FFLAGS=
6785   fi
6786 fi
6787
6788 G77=`test $ac_compiler_gnu = yes && echo yes`
6789 ac_ext=c
6790 ac_cpp='$CPP $CPPFLAGS'
6791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794
6795
6796
6797 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6798
6799 # find the maximum length of command line arguments
6800 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6801 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6802 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805     i=0
6806   teststring="ABCD"
6807
6808   case $build_os in
6809   msdosdjgpp*)
6810     # On DJGPP, this test can blow up pretty badly due to problems in libc
6811     # (any single argument exceeding 2000 bytes causes a buffer overrun
6812     # during glob expansion).  Even if it were fixed, the result of this
6813     # check would be larger than it should be.
6814     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6815     ;;
6816
6817   gnu*)
6818     # Under GNU Hurd, this test is not required because there is
6819     # no limit to the length of command line arguments.
6820     # Libtool will interpret -1 as no limit whatsoever
6821     lt_cv_sys_max_cmd_len=-1;
6822     ;;
6823
6824   cygwin* | mingw*)
6825     # On Win9x/ME, this test blows up -- it succeeds, but takes
6826     # about 5 minutes as the teststring grows exponentially.
6827     # Worse, since 9x/ME are not pre-emptively multitasking,
6828     # you end up with a "frozen" computer, even though with patience
6829     # the test eventually succeeds (with a max line length of 256k).
6830     # Instead, let's just punt: use the minimum linelength reported by
6831     # all of the supported platforms: 8192 (on NT/2K/XP).
6832     lt_cv_sys_max_cmd_len=8192;
6833     ;;
6834
6835   amigaos*)
6836     # On AmigaOS with pdksh, this test takes hours, literally.
6837     # So we just punt and use a minimum line length of 8192.
6838     lt_cv_sys_max_cmd_len=8192;
6839     ;;
6840
6841  *)
6842     # If test is not a shell built-in, we'll probably end up computing a
6843     # maximum length that is only half of the actual maximum length, but
6844     # we can't tell.
6845     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846                = "XX$teststring") >/dev/null 2>&1 &&
6847             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848             lt_cv_sys_max_cmd_len=$new_result &&
6849             test $i != 17 # 1/2 MB should be enough
6850     do
6851       i=`expr $i + 1`
6852       teststring=$teststring$teststring
6853     done
6854     teststring=
6855     # Add a significant safety factor because C++ compilers can tack on massive
6856     # amounts of additional arguments before passing them to the linker.
6857     # It appears as though 1/2 is a usable value.
6858     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6859     ;;
6860   esac
6861
6862 fi
6863
6864 if test -n $lt_cv_sys_max_cmd_len ; then
6865   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6867 else
6868   { echo "$as_me:$LINENO: result: none" >&5
6869 echo "${ECHO_T}none" >&6; }
6870 fi
6871
6872
6873
6874
6875 # Check for command to grab the raw symbol name followed by C symbol from nm.
6876 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881
6882 # These are sane defaults that work on at least a few old systems.
6883 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6884
6885 # Character class describing NM global symbol codes.
6886 symcode='[BCDEGRST]'
6887
6888 # Regexp to match symbols that can be accessed directly from C.
6889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6890
6891 # Transform the above into a raw symbol and a C symbol.
6892 symxfrm='\1 \2\3 \3'
6893
6894 # Transform an extracted symbol line into a proper C declaration
6895 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6896
6897 # Transform an extracted symbol line into symbol name and symbol address
6898 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'"
6899
6900 # Define system-specific variables.
6901 case $host_os in
6902 aix*)
6903   symcode='[BCDT]'
6904   ;;
6905 cygwin* | mingw* | pw32*)
6906   symcode='[ABCDGISTW]'
6907   ;;
6908 hpux*) # Its linker distinguishes data from code symbols
6909   if test "$host_cpu" = ia64; then
6910     symcode='[ABCDEGRST]'
6911   fi
6912   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6913   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'"
6914   ;;
6915 irix* | nonstopux*)
6916   symcode='[BCDEGRST]'
6917   ;;
6918 osf*)
6919   symcode='[BCDEGQRST]'
6920   ;;
6921 solaris* | sysv5*)
6922   symcode='[BDRT]'
6923   ;;
6924 sysv4)
6925   symcode='[DFNSTU]'
6926   ;;
6927 esac
6928
6929 # Handle CRLF in mingw tool chain
6930 opt_cr=
6931 case $build_os in
6932 mingw*)
6933   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6934   ;;
6935 esac
6936
6937 # If we're using GNU nm, then use its standard symbol codes.
6938 case `$NM -V 2>&1` in
6939 *GNU* | *'with BFD'*)
6940   symcode='[ABCDGIRSTW]' ;;
6941 esac
6942
6943 # Try without a prefix undercore, then with it.
6944 for ac_symprfx in "" "_"; do
6945
6946   # Write the raw and C identifiers.
6947   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6948
6949   # Check to see that the pipe works correctly.
6950   pipe_works=no
6951
6952   rm -f conftest*
6953   cat > conftest.$ac_ext <<EOF
6954 #ifdef __cplusplus
6955 extern "C" {
6956 #endif
6957 char nm_test_var;
6958 void nm_test_func(){}
6959 #ifdef __cplusplus
6960 }
6961 #endif
6962 int main(){nm_test_var='a';nm_test_func();return(0);}
6963 EOF
6964
6965   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966   (eval $ac_compile) 2>&5
6967   ac_status=$?
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); }; then
6970     # Now try to grab the symbols.
6971     nlist=conftest.nm
6972     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6973   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } && test -s "$nlist"; then
6977       # Try sorting and uniquifying the output.
6978       if sort "$nlist" | uniq > "$nlist"T; then
6979         mv -f "$nlist"T "$nlist"
6980       else
6981         rm -f "$nlist"T
6982       fi
6983
6984       # Make sure that we snagged all the symbols we need.
6985       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6986         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6987           cat <<EOF > conftest.$ac_ext
6988 #ifdef __cplusplus
6989 extern "C" {
6990 #endif
6991
6992 EOF
6993           # Now generate the symbol file.
6994           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6995
6996           cat <<EOF >> conftest.$ac_ext
6997 #if defined (__STDC__) && __STDC__
6998 # define lt_ptr_t void *
6999 #else
7000 # define lt_ptr_t char *
7001 # define const
7002 #endif
7003
7004 /* The mapping between symbol names and symbols. */
7005 const struct {
7006   const char *name;
7007   lt_ptr_t address;
7008 }
7009 lt_preloaded_symbols[] =
7010 {
7011 EOF
7012           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7013           cat <<\EOF >> conftest.$ac_ext
7014   {0, (lt_ptr_t) 0}
7015 };
7016
7017 #ifdef __cplusplus
7018 }
7019 #endif
7020 EOF
7021           # Now try linking the two files.
7022           mv conftest.$ac_objext conftstm.$ac_objext
7023           lt_save_LIBS="$LIBS"
7024           lt_save_CFLAGS="$CFLAGS"
7025           LIBS="conftstm.$ac_objext"
7026           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7027           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7028   (eval $ac_link) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7032             pipe_works=yes
7033           fi
7034           LIBS="$lt_save_LIBS"
7035           CFLAGS="$lt_save_CFLAGS"
7036         else
7037           echo "cannot find nm_test_func in $nlist" >&5
7038         fi
7039       else
7040         echo "cannot find nm_test_var in $nlist" >&5
7041       fi
7042     else
7043       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7044     fi
7045   else
7046     echo "$progname: failed program was:" >&5
7047     cat conftest.$ac_ext >&5
7048   fi
7049   rm -f conftest* conftst*
7050
7051   # Do not use the global_symbol_pipe unless it works.
7052   if test "$pipe_works" = yes; then
7053     break
7054   else
7055     lt_cv_sys_global_symbol_pipe=
7056   fi
7057 done
7058
7059 fi
7060
7061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7062   lt_cv_sys_global_symbol_to_cdecl=
7063 fi
7064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7065   { echo "$as_me:$LINENO: result: failed" >&5
7066 echo "${ECHO_T}failed" >&6; }
7067 else
7068   { echo "$as_me:$LINENO: result: ok" >&5
7069 echo "${ECHO_T}ok" >&6; }
7070 fi
7071
7072 { echo "$as_me:$LINENO: checking for objdir" >&5
7073 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7074 if test "${lt_cv_objdir+set}" = set; then
7075   echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077   rm -f .libs 2>/dev/null
7078 mkdir .libs 2>/dev/null
7079 if test -d .libs; then
7080   lt_cv_objdir=.libs
7081 else
7082   # MS-DOS does not allow filenames that begin with a dot.
7083   lt_cv_objdir=_libs
7084 fi
7085 rmdir .libs 2>/dev/null
7086 fi
7087 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7088 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7089 objdir=$lt_cv_objdir
7090
7091
7092
7093
7094
7095 case $host_os in
7096 aix3*)
7097   # AIX sometimes has problems with the GCC collect2 program.  For some
7098   # reason, if we set the COLLECT_NAMES environment variable, the problems
7099   # vanish in a puff of smoke.
7100   if test "X${COLLECT_NAMES+set}" != Xset; then
7101     COLLECT_NAMES=
7102     export COLLECT_NAMES
7103   fi
7104   ;;
7105 esac
7106
7107 # Sed substitution that helps us do robust quoting.  It backslashifies
7108 # metacharacters that are still active within double-quoted strings.
7109 Xsed='sed -e s/^X//'
7110 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7111
7112 # Same as above, but do not quote variable references.
7113 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7114
7115 # Sed substitution to delay expansion of an escaped shell variable in a
7116 # double_quote_subst'ed string.
7117 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7118
7119 # Sed substitution to avoid accidental globbing in evaled expressions
7120 no_glob_subst='s/\*/\\\*/g'
7121
7122 # Constants:
7123 rm="rm -f"
7124
7125 # Global variables:
7126 default_ofile=libtool
7127 can_build_shared=yes
7128
7129 # All known linkers require a `.a' archive for static linking (except M$VC,
7130 # which needs '.lib').
7131 libext=a
7132 ltmain="$ac_aux_dir/ltmain.sh"
7133 ofile="$default_ofile"
7134 with_gnu_ld="$lt_cv_prog_gnu_ld"
7135
7136 if test -n "$ac_tool_prefix"; then
7137   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}ar; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_prog_AR+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   if test -n "$AR"; then
7145   ac_cv_prog_AR="$AR" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152   for ac_exec_ext in '' $ac_executable_extensions; do
7153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154     ac_cv_prog_AR="${ac_tool_prefix}ar"
7155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 AR=$ac_cv_prog_AR
7165 if test -n "$AR"; then
7166   { echo "$as_me:$LINENO: result: $AR" >&5
7167 echo "${ECHO_T}$AR" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7171 fi
7172
7173
7174 fi
7175 if test -z "$ac_cv_prog_AR"; then
7176   ac_ct_AR=$AR
7177   # Extract the first word of "ar", so it can be a program name with args.
7178 set dummy ar; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   if test -n "$ac_ct_AR"; then
7185   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192   for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_prog_ac_ct_AR="ar"
7195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7205 if test -n "$ac_ct_AR"; then
7206   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7207 echo "${ECHO_T}$ac_ct_AR" >&6; }
7208 else
7209   { echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6; }
7211 fi
7212
7213   if test "x$ac_ct_AR" = x; then
7214     AR="false"
7215   else
7216     case $cross_compiling:$ac_tool_warned in
7217 yes:)
7218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7219 whose name does not start with the host triplet.  If you think this
7220 configuration is useful to you, please write to autoconf@gnu.org." >&5
7221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7222 whose name does not start with the host triplet.  If you think this
7223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226     AR=$ac_ct_AR
7227   fi
7228 else
7229   AR="$ac_cv_prog_AR"
7230 fi
7231
7232 if test -n "$ac_tool_prefix"; then
7233   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_prog_RANLIB+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   if test -n "$RANLIB"; then
7241   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248   for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 RANLIB=$ac_cv_prog_RANLIB
7261 if test -n "$RANLIB"; then
7262   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7263 echo "${ECHO_T}$RANLIB" >&6; }
7264 else
7265   { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_RANLIB"; then
7272   ac_ct_RANLIB=$RANLIB
7273   # Extract the first word of "ranlib", so it can be a program name with args.
7274 set dummy ranlib; ac_word=$2
7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280   if test -n "$ac_ct_RANLIB"; then
7281   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_prog_ac_ct_RANLIB="ranlib"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7301 if test -n "$ac_ct_RANLIB"; then
7302   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7303 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7304 else
7305   { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7307 fi
7308
7309   if test "x$ac_ct_RANLIB" = x; then
7310     RANLIB=":"
7311   else
7312     case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7315 whose name does not start with the host triplet.  If you think this
7316 configuration is useful to you, please write to autoconf@gnu.org." >&5
7317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7318 whose name does not start with the host triplet.  If you think this
7319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7320 ac_tool_warned=yes ;;
7321 esac
7322     RANLIB=$ac_ct_RANLIB
7323   fi
7324 else
7325   RANLIB="$ac_cv_prog_RANLIB"
7326 fi
7327
7328 if test -n "$ac_tool_prefix"; then
7329   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7330 set dummy ${ac_tool_prefix}strip; ac_word=$2
7331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7333 if test "${ac_cv_prog_STRIP+set}" = set; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336   if test -n "$STRIP"; then
7337   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344   for ac_exec_ext in '' $ac_executable_extensions; do
7345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349   fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354 fi
7355 fi
7356 STRIP=$ac_cv_prog_STRIP
7357 if test -n "$STRIP"; then
7358   { echo "$as_me:$LINENO: result: $STRIP" >&5
7359 echo "${ECHO_T}$STRIP" >&6; }
7360 else
7361   { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7363 fi
7364
7365
7366 fi
7367 if test -z "$ac_cv_prog_STRIP"; then
7368   ac_ct_STRIP=$STRIP
7369   # Extract the first word of "strip", so it can be a program name with args.
7370 set dummy strip; ac_word=$2
7371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376   if test -n "$ac_ct_STRIP"; then
7377   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384   for ac_exec_ext in '' $ac_executable_extensions; do
7385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386     ac_cv_prog_ac_ct_STRIP="strip"
7387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7397 if test -n "$ac_ct_STRIP"; then
7398   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7399 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7400 else
7401   { echo "$as_me:$LINENO: result: no" >&5
7402 echo "${ECHO_T}no" >&6; }
7403 fi
7404
7405   if test "x$ac_ct_STRIP" = x; then
7406     STRIP=":"
7407   else
7408     case $cross_compiling:$ac_tool_warned in
7409 yes:)
7410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7411 whose name does not start with the host triplet.  If you think this
7412 configuration is useful to you, please write to autoconf@gnu.org." >&5
7413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7414 whose name does not start with the host triplet.  If you think this
7415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418     STRIP=$ac_ct_STRIP
7419   fi
7420 else
7421   STRIP="$ac_cv_prog_STRIP"
7422 fi
7423
7424
7425 old_CC="$CC"
7426 old_CFLAGS="$CFLAGS"
7427
7428 # Set sane defaults for various variables
7429 test -z "$AR" && AR=ar
7430 test -z "$AR_FLAGS" && AR_FLAGS=cru
7431 test -z "$AS" && AS=as
7432 test -z "$CC" && CC=cc
7433 test -z "$LTCC" && LTCC=$CC
7434 test -z "$DLLTOOL" && DLLTOOL=dlltool
7435 test -z "$LD" && LD=ld
7436 test -z "$LN_S" && LN_S="ln -s"
7437 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7438 test -z "$NM" && NM=nm
7439 test -z "$SED" && SED=sed
7440 test -z "$OBJDUMP" && OBJDUMP=objdump
7441 test -z "$RANLIB" && RANLIB=:
7442 test -z "$STRIP" && STRIP=:
7443 test -z "$ac_objext" && ac_objext=o
7444
7445 # Determine commands to create old-style static archives.
7446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7447 old_postinstall_cmds='chmod 644 $oldlib'
7448 old_postuninstall_cmds=
7449
7450 if test -n "$RANLIB"; then
7451   case $host_os in
7452   openbsd*)
7453     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7454     ;;
7455   *)
7456     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7457     ;;
7458   esac
7459   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7460 fi
7461
7462 # Only perform the check for file, if the check method requires it
7463 case $deplibs_check_method in
7464 file_magic*)
7465   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7466     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7467 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   case $MAGIC_CMD in
7472 [\\/*] |  ?:[\\/]*)
7473   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7474   ;;
7475 *)
7476   lt_save_MAGIC_CMD="$MAGIC_CMD"
7477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7478   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7479   for ac_dir in $ac_dummy; do
7480     IFS="$lt_save_ifs"
7481     test -z "$ac_dir" && ac_dir=.
7482     if test -f $ac_dir/${ac_tool_prefix}file; then
7483       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7484       if test -n "$file_magic_test_file"; then
7485         case $deplibs_check_method in
7486         "file_magic "*)
7487           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7488           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7490             $EGREP "$file_magic_regex" > /dev/null; then
7491             :
7492           else
7493             cat <<EOF 1>&2
7494
7495 *** Warning: the command libtool uses to detect shared libraries,
7496 *** $file_magic_cmd, produces output that libtool cannot recognize.
7497 *** The result is that libtool may fail to recognize shared libraries
7498 *** as such.  This will affect the creation of libtool libraries that
7499 *** depend on shared libraries, but programs linked with such libtool
7500 *** libraries will work regardless of this problem.  Nevertheless, you
7501 *** may want to report the problem to your system manager and/or to
7502 *** bug-libtool@gnu.org
7503
7504 EOF
7505           fi ;;
7506         esac
7507       fi
7508       break
7509     fi
7510   done
7511   IFS="$lt_save_ifs"
7512   MAGIC_CMD="$lt_save_MAGIC_CMD"
7513   ;;
7514 esac
7515 fi
7516
7517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7518 if test -n "$MAGIC_CMD"; then
7519   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7520 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7521 else
7522   { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526 if test -z "$lt_cv_path_MAGIC_CMD"; then
7527   if test -n "$ac_tool_prefix"; then
7528     { echo "$as_me:$LINENO: checking for file" >&5
7529 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7530 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   case $MAGIC_CMD in
7534 [\\/*] |  ?:[\\/]*)
7535   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7536   ;;
7537 *)
7538   lt_save_MAGIC_CMD="$MAGIC_CMD"
7539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7540   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7541   for ac_dir in $ac_dummy; do
7542     IFS="$lt_save_ifs"
7543     test -z "$ac_dir" && ac_dir=.
7544     if test -f $ac_dir/file; then
7545       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7546       if test -n "$file_magic_test_file"; then
7547         case $deplibs_check_method in
7548         "file_magic "*)
7549           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7550           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7552             $EGREP "$file_magic_regex" > /dev/null; then
7553             :
7554           else
7555             cat <<EOF 1>&2
7556
7557 *** Warning: the command libtool uses to detect shared libraries,
7558 *** $file_magic_cmd, produces output that libtool cannot recognize.
7559 *** The result is that libtool may fail to recognize shared libraries
7560 *** as such.  This will affect the creation of libtool libraries that
7561 *** depend on shared libraries, but programs linked with such libtool
7562 *** libraries will work regardless of this problem.  Nevertheless, you
7563 *** may want to report the problem to your system manager and/or to
7564 *** bug-libtool@gnu.org
7565
7566 EOF
7567           fi ;;
7568         esac
7569       fi
7570       break
7571     fi
7572   done
7573   IFS="$lt_save_ifs"
7574   MAGIC_CMD="$lt_save_MAGIC_CMD"
7575   ;;
7576 esac
7577 fi
7578
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if test -n "$MAGIC_CMD"; then
7581   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7582 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7583 else
7584   { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7586 fi
7587
7588   else
7589     MAGIC_CMD=:
7590   fi
7591 fi
7592
7593   fi
7594   ;;
7595 esac
7596
7597 enable_dlopen=no
7598 enable_win32_dll=yes
7599
7600 # Check whether --enable-libtool-lock was given.
7601 if test "${enable_libtool_lock+set}" = set; then
7602   enableval=$enable_libtool_lock;
7603 fi
7604
7605 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7606
7607
7608 # Check whether --with-pic was given.
7609 if test "${with_pic+set}" = set; then
7610   withval=$with_pic; pic_mode="$withval"
7611 else
7612   pic_mode=default
7613 fi
7614
7615 test -z "$pic_mode" && pic_mode=default
7616
7617 # Use C for the default configuration in the libtool script
7618 tagname=
7619 lt_save_CC="$CC"
7620 ac_ext=c
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625
7626
7627 # Source file extension for C test sources.
7628 ac_ext=c
7629
7630 # Object file extension for compiled C test sources.
7631 objext=o
7632 objext=$objext
7633
7634 # Code to be used in simple compile tests
7635 lt_simple_compile_test_code="int some_variable = 0;\n"
7636
7637 # Code to be used in simple link tests
7638 lt_simple_link_test_code='int main(){return(0);}\n'
7639
7640
7641 # If no C compiler was specified, use CC.
7642 LTCC=${LTCC-"$CC"}
7643
7644 # Allow CC to be a program name with arguments.
7645 compiler=$CC
7646
7647
7648 #
7649 # Check for any special shared library compilation flags.
7650 #
7651 lt_prog_cc_shlib=
7652 if test "$GCC" = no; then
7653   case $host_os in
7654   sco3.2v5*)
7655     lt_prog_cc_shlib='-belf'
7656     ;;
7657   esac
7658 fi
7659 if test -n "$lt_prog_cc_shlib"; then
7660   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7661 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7662   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7663   else
7664     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7665 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7666     lt_cv_prog_cc_can_build_shared=no
7667   fi
7668 fi
7669
7670
7671 #
7672 # Check to make sure the static flag actually works.
7673 #
7674 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7675 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7676 if test "${lt_prog_compiler_static_works+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   lt_prog_compiler_static_works=no
7680    save_LDFLAGS="$LDFLAGS"
7681    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7682    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7683    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7684      # The compiler can only warn and ignore the option if not recognized
7685      # So say no if there are warnings
7686      if test -s conftest.err; then
7687        # Append any errors to the config.log.
7688        cat conftest.err 1>&5
7689      else
7690        lt_prog_compiler_static_works=yes
7691      fi
7692    fi
7693    $rm conftest*
7694    LDFLAGS="$save_LDFLAGS"
7695
7696 fi
7697 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7698 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7699
7700 if test x"$lt_prog_compiler_static_works" = xyes; then
7701     :
7702 else
7703     lt_prog_compiler_static=
7704 fi
7705
7706
7707
7708 ## CAVEAT EMPTOR:
7709 ## There is no encapsulation within the following macros, do not change
7710 ## the running order or otherwise move them around unless you know exactly
7711 ## what you are doing...
7712
7713 lt_prog_compiler_no_builtin_flag=
7714
7715 if test "$GCC" = yes; then
7716   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7717
7718
7719 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7721 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722   echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724   lt_cv_prog_compiler_rtti_exceptions=no
7725   ac_outfile=conftest.$ac_objext
7726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7727    lt_compiler_flag="-fno-rtti -fno-exceptions"
7728    # Insert the option either (1) after the last *FLAGS variable, or
7729    # (2) before a word containing "conftest.", or (3) at the end.
7730    # Note that $ac_compile itself does not contain backslashes and begins
7731    # with a dollar sign (not a hyphen), so the echo should work correctly.
7732    # The option is referenced via a variable to avoid confusing sed.
7733    lt_compile=`echo "$ac_compile" | $SED \
7734    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736    -e 's:$: $lt_compiler_flag:'`
7737    (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738    (eval "$lt_compile" 2>conftest.err)
7739    ac_status=$?
7740    cat conftest.err >&5
7741    echo "$as_me:7741: \$? = $ac_status" >&5
7742    if (exit $ac_status) && test -s "$ac_outfile"; then
7743      # The compiler can only warn and ignore the option if not recognized
7744      # So say no if there are warnings
7745      if test ! -s conftest.err; then
7746        lt_cv_prog_compiler_rtti_exceptions=yes
7747      fi
7748    fi
7749    $rm conftest*
7750
7751 fi
7752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7754
7755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7756     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7757 else
7758     :
7759 fi
7760
7761 fi
7762
7763 lt_prog_compiler_wl=
7764 lt_prog_compiler_pic=
7765 lt_prog_compiler_static=
7766
7767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7769
7770   if test "$GCC" = yes; then
7771     lt_prog_compiler_wl='-Wl,'
7772     lt_prog_compiler_static='-static'
7773
7774     case $host_os in
7775       aix*)
7776       # All AIX code is PIC.
7777       if test "$host_cpu" = ia64; then
7778         # AIX 5 now supports IA64 processor
7779         lt_prog_compiler_static='-Bstatic'
7780       fi
7781       ;;
7782
7783     amigaos*)
7784       # FIXME: we need at least 68020 code to build shared libraries, but
7785       # adding the `-m68020' flag to GCC prevents building anything better,
7786       # like `-m68040'.
7787       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7788       ;;
7789
7790     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7791       # PIC is the default for these OSes.
7792       ;;
7793
7794     mingw* | pw32* | os2*)
7795       # This hack is so that the source file can tell whether it is being
7796       # built for inclusion in a dll (and should export symbols for example).
7797       lt_prog_compiler_pic='-DDLL_EXPORT'
7798       ;;
7799
7800     darwin* | rhapsody*)
7801       # PIC is the default on this platform
7802       # Common symbols not allowed in MH_DYLIB files
7803       lt_prog_compiler_pic='-fno-common'
7804       ;;
7805
7806     msdosdjgpp*)
7807       # Just because we use GCC doesn't mean we suddenly get shared libraries
7808       # on systems that don't support them.
7809       lt_prog_compiler_can_build_shared=no
7810       enable_shared=no
7811       ;;
7812
7813     sysv4*MP*)
7814       if test -d /usr/nec; then
7815         lt_prog_compiler_pic=-Kconform_pic
7816       fi
7817       ;;
7818
7819     hpux*)
7820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7821       # not for PA HP-UX.
7822       case "$host_cpu" in
7823       hppa*64*|ia64*)
7824         # +Z the default
7825         ;;
7826       *)
7827         lt_prog_compiler_pic='-fPIC'
7828         ;;
7829       esac
7830       ;;
7831
7832     *)
7833       lt_prog_compiler_pic='-fPIC'
7834       ;;
7835     esac
7836   else
7837     # PORTME Check for flag to pass linker flags through the system compiler.
7838     case $host_os in
7839     aix*)
7840       lt_prog_compiler_wl='-Wl,'
7841       if test "$host_cpu" = ia64; then
7842         # AIX 5 now supports IA64 processor
7843         lt_prog_compiler_static='-Bstatic'
7844       else
7845         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7846       fi
7847       ;;
7848
7849     mingw* | pw32* | os2*)
7850       # This hack is so that the source file can tell whether it is being
7851       # built for inclusion in a dll (and should export symbols for example).
7852       lt_prog_compiler_pic='-DDLL_EXPORT'
7853       ;;
7854
7855     hpux9* | hpux10* | hpux11*)
7856       lt_prog_compiler_wl='-Wl,'
7857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7858       # not for PA HP-UX.
7859       case "$host_cpu" in
7860       hppa*64*|ia64*)
7861         # +Z the default
7862         ;;
7863       *)
7864         lt_prog_compiler_pic='+Z'
7865         ;;
7866       esac
7867       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7868       lt_prog_compiler_static='${wl}-a ${wl}archive'
7869       ;;
7870
7871     irix5* | irix6* | nonstopux*)
7872       lt_prog_compiler_wl='-Wl,'
7873       # PIC (with -KPIC) is the default.
7874       lt_prog_compiler_static='-non_shared'
7875       ;;
7876
7877     newsos6)
7878       lt_prog_compiler_pic='-KPIC'
7879       lt_prog_compiler_static='-Bstatic'
7880       ;;
7881
7882     linux*)
7883       case $CC in
7884       icc* | ecc*)
7885         lt_prog_compiler_wl='-Wl,'
7886         lt_prog_compiler_pic='-KPIC'
7887         lt_prog_compiler_static='-static'
7888         ;;
7889       ccc*)
7890         lt_prog_compiler_wl='-Wl,'
7891         # All Alpha code is PIC.
7892         lt_prog_compiler_static='-non_shared'
7893         ;;
7894       esac
7895       ;;
7896
7897     osf3* | osf4* | osf5*)
7898       lt_prog_compiler_wl='-Wl,'
7899       # All OSF/1 code is PIC.
7900       lt_prog_compiler_static='-non_shared'
7901       ;;
7902
7903     sco3.2v5*)
7904       lt_prog_compiler_pic='-Kpic'
7905       lt_prog_compiler_static='-dn'
7906       ;;
7907
7908     solaris*)
7909       lt_prog_compiler_wl='-Wl,'
7910       lt_prog_compiler_pic='-KPIC'
7911       lt_prog_compiler_static='-Bstatic'
7912       ;;
7913
7914     sunos4*)
7915       lt_prog_compiler_wl='-Qoption ld '
7916       lt_prog_compiler_pic='-PIC'
7917       lt_prog_compiler_static='-Bstatic'
7918       ;;
7919
7920     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7921       lt_prog_compiler_wl='-Wl,'
7922       lt_prog_compiler_pic='-KPIC'
7923       lt_prog_compiler_static='-Bstatic'
7924       ;;
7925
7926     sysv4*MP*)
7927       if test -d /usr/nec ;then
7928         lt_prog_compiler_pic='-Kconform_pic'
7929         lt_prog_compiler_static='-Bstatic'
7930       fi
7931       ;;
7932
7933     uts4*)
7934       lt_prog_compiler_pic='-pic'
7935       lt_prog_compiler_static='-Bstatic'
7936       ;;
7937
7938     *)
7939       lt_prog_compiler_can_build_shared=no
7940       ;;
7941     esac
7942   fi
7943
7944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7945 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7946
7947 #
7948 # Check to make sure the PIC flag actually works.
7949 #
7950 if test -n "$lt_prog_compiler_pic"; then
7951
7952 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7953 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7954 if test "${lt_prog_compiler_pic_works+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   lt_prog_compiler_pic_works=no
7958   ac_outfile=conftest.$ac_objext
7959    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7960    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7961    # Insert the option either (1) after the last *FLAGS variable, or
7962    # (2) before a word containing "conftest.", or (3) at the end.
7963    # Note that $ac_compile itself does not contain backslashes and begins
7964    # with a dollar sign (not a hyphen), so the echo should work correctly.
7965    # The option is referenced via a variable to avoid confusing sed.
7966    lt_compile=`echo "$ac_compile" | $SED \
7967    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7968    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7969    -e 's:$: $lt_compiler_flag:'`
7970    (eval echo "\"\$as_me:7970: $lt_compile\"" >&5)
7971    (eval "$lt_compile" 2>conftest.err)
7972    ac_status=$?
7973    cat conftest.err >&5
7974    echo "$as_me:7974: \$? = $ac_status" >&5
7975    if (exit $ac_status) && test -s "$ac_outfile"; then
7976      # The compiler can only warn and ignore the option if not recognized
7977      # So say no if there are warnings
7978      if test ! -s conftest.err; then
7979        lt_prog_compiler_pic_works=yes
7980      fi
7981    fi
7982    $rm conftest*
7983
7984 fi
7985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7986 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7987
7988 if test x"$lt_prog_compiler_pic_works" = xyes; then
7989     case $lt_prog_compiler_pic in
7990      "" | " "*) ;;
7991      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7992      esac
7993 else
7994     lt_prog_compiler_pic=
7995      lt_prog_compiler_can_build_shared=no
7996 fi
7997
7998 fi
7999 case "$host_os" in
8000   # For platforms which do not support PIC, -DPIC is meaningless:
8001   *djgpp*)
8002     lt_prog_compiler_pic=
8003     ;;
8004   *)
8005     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8006     ;;
8007 esac
8008
8009 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8011 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   lt_cv_prog_compiler_c_o=no
8015    $rm -r conftest 2>/dev/null
8016    mkdir conftest
8017    cd conftest
8018    mkdir out
8019    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8020
8021    lt_compiler_flag="-o out/conftest2.$ac_objext"
8022    # Insert the option either (1) after the last *FLAGS variable, or
8023    # (2) before a word containing "conftest.", or (3) at the end.
8024    # Note that $ac_compile itself does not contain backslashes and begins
8025    # with a dollar sign (not a hyphen), so the echo should work correctly.
8026    lt_compile=`echo "$ac_compile" | $SED \
8027    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8029    -e 's:$: $lt_compiler_flag:'`
8030    (eval echo "\"\$as_me:8030: $lt_compile\"" >&5)
8031    (eval "$lt_compile" 2>out/conftest.err)
8032    ac_status=$?
8033    cat out/conftest.err >&5
8034    echo "$as_me:8034: \$? = $ac_status" >&5
8035    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8036    then
8037      # The compiler can only warn and ignore the option if not recognized
8038      # So say no if there are warnings
8039      if test ! -s out/conftest.err; then
8040        lt_cv_prog_compiler_c_o=yes
8041      fi
8042    fi
8043    chmod u+w .
8044    $rm conftest*
8045    # SGI C++ compiler will create directory out/ii_files/ for
8046    # template instantiation
8047    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8048    $rm out/* && rmdir out
8049    cd ..
8050    rmdir conftest
8051    $rm conftest*
8052
8053 fi
8054 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8056
8057
8058 hard_links="nottested"
8059 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8060   # do not overwrite the value of need_locks provided by the user
8061   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8063   hard_links=yes
8064   $rm conftest*
8065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8066   touch conftest.a
8067   ln conftest.a conftest.b 2>&5 || hard_links=no
8068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8069   { echo "$as_me:$LINENO: result: $hard_links" >&5
8070 echo "${ECHO_T}$hard_links" >&6; }
8071   if test "$hard_links" = no; then
8072     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8074     need_locks=warn
8075   fi
8076 else
8077   need_locks=no
8078 fi
8079
8080 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8082
8083   runpath_var=
8084   allow_undefined_flag=
8085   enable_shared_with_static_runtimes=no
8086   archive_cmds=
8087   archive_expsym_cmds=
8088   old_archive_From_new_cmds=
8089   old_archive_from_expsyms_cmds=
8090   export_dynamic_flag_spec=
8091   whole_archive_flag_spec=
8092   thread_safe_flag_spec=
8093   hardcode_libdir_flag_spec=
8094   hardcode_libdir_flag_spec_ld=
8095   hardcode_libdir_separator=
8096   hardcode_direct=no
8097   hardcode_minus_L=no
8098   hardcode_shlibpath_var=unsupported
8099   link_all_deplibs=unknown
8100   hardcode_automatic=no
8101   module_cmds=
8102   module_expsym_cmds=
8103   always_export_symbols=no
8104   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8105   # include_expsyms should be a list of space-separated symbols to be *always*
8106   # included in the symbol list
8107   include_expsyms=
8108   # exclude_expsyms can be an extended regexp of symbols to exclude
8109   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8110   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8111   # as well as any symbol that contains `d'.
8112   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8113   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8114   # platforms (ab)use it in PIC code, but their linkers get confused if
8115   # the symbol is explicitly referenced.  Since portable code cannot
8116   # rely on this symbol name, it's probably fine to never include it in
8117   # preloaded symbol tables.
8118   extract_expsyms_cmds=
8119
8120   case $host_os in
8121   cygwin* | mingw* | pw32*)
8122     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8123     # When not using gcc, we currently assume that we are using
8124     # Microsoft Visual C++.
8125     if test "$GCC" != yes; then
8126       with_gnu_ld=no
8127     fi
8128     ;;
8129   openbsd*)
8130     with_gnu_ld=no
8131     ;;
8132   esac
8133
8134   ld_shlibs=yes
8135   if test "$with_gnu_ld" = yes; then
8136     # If archive_cmds runs LD, not CC, wlarc should be empty
8137     wlarc='${wl}'
8138
8139     # See if GNU ld supports shared libraries.
8140     case $host_os in
8141     aix3* | aix4* | aix5*)
8142       # On AIX/PPC, the GNU linker is very broken
8143       if test "$host_cpu" != ia64; then
8144         ld_shlibs=no
8145         cat <<EOF 1>&2
8146
8147 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8148 *** to be unable to reliably create shared libraries on AIX.
8149 *** Therefore, libtool is disabling shared libraries support.  If you
8150 *** really care for shared libraries, you may want to modify your PATH
8151 *** so that a non-GNU linker is found, and then restart.
8152
8153 EOF
8154       fi
8155       ;;
8156
8157     amigaos*)
8158       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)'
8159       hardcode_libdir_flag_spec='-L$libdir'
8160       hardcode_minus_L=yes
8161
8162       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8163       # that the semantics of dynamic libraries on AmigaOS, at least up
8164       # to version 4, is to share data among multiple programs linked
8165       # with the same dynamic library.  Since this doesn't match the
8166       # behavior of shared libraries on other platforms, we can't use
8167       # them.
8168       ld_shlibs=no
8169       ;;
8170
8171     beos*)
8172       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8173         allow_undefined_flag=unsupported
8174         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8175         # support --undefined.  This deserves some investigation.  FIXME
8176         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177       else
8178         ld_shlibs=no
8179       fi
8180       ;;
8181
8182     cygwin* | mingw* | pw32*)
8183       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8184       # as there is no search path for DLLs.
8185       hardcode_libdir_flag_spec='-L$libdir'
8186       allow_undefined_flag=unsupported
8187       always_export_symbols=no
8188       enable_shared_with_static_runtimes=yes
8189       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8190
8191       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8192         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8193         # If the export-symbols file already is a .def file (1st line
8194         # is EXPORTS), use it as is; otherwise, prepend...
8195         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8196           cp $export_symbols $output_objdir/$soname.def;
8197         else
8198           echo EXPORTS > $output_objdir/$soname.def;
8199           cat $export_symbols >> $output_objdir/$soname.def;
8200         fi~
8201         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8202       else
8203         ld_shlibs=no
8204       fi
8205       ;;
8206
8207     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8208       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8209         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8210         wlarc=
8211       else
8212         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8214       fi
8215       ;;
8216
8217     solaris* | sysv5*)
8218       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8219         ld_shlibs=no
8220         cat <<EOF 1>&2
8221
8222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8223 *** create shared libraries on Solaris systems.  Therefore, libtool
8224 *** is disabling shared libraries support.  We urge you to upgrade GNU
8225 *** binutils to release 2.9.1 or newer.  Another option is to modify
8226 *** your PATH or compiler configuration so that the native linker is
8227 *** used, and then restart.
8228
8229 EOF
8230       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8233       else
8234         ld_shlibs=no
8235       fi
8236       ;;
8237
8238     sunos4*)
8239       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8240       wlarc=
8241       hardcode_direct=yes
8242       hardcode_shlibpath_var=no
8243       ;;
8244
8245   linux*)
8246     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8247         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248         archive_cmds="$tmp_archive_cmds"
8249       supports_anon_versioning=no
8250       case `$LD -v 2>/dev/null` in
8251         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8252         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8253         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8254         *\ 2.11.*) ;; # other 2.11 versions
8255         *) supports_anon_versioning=yes ;;
8256       esac
8257       if test $supports_anon_versioning = yes; then
8258         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8260 $echo "local: *; };" >> $output_objdir/$libname.ver~
8261         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8262       else
8263         archive_expsym_cmds="$tmp_archive_cmds"
8264       fi
8265       link_all_deplibs=no
8266     else
8267       ld_shlibs=no
8268     fi
8269     ;;
8270
8271     *)
8272       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275       else
8276         ld_shlibs=no
8277       fi
8278       ;;
8279     esac
8280
8281     if test "$ld_shlibs" = yes; then
8282       runpath_var=LD_RUN_PATH
8283       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8284       export_dynamic_flag_spec='${wl}--export-dynamic'
8285       # ancient GNU ld didn't support --whole-archive et. al.
8286       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8287         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8288       else
8289         whole_archive_flag_spec=
8290       fi
8291     fi
8292   else
8293     # PORTME fill in a description of your system's linker (not GNU ld)
8294     case $host_os in
8295     aix3*)
8296       allow_undefined_flag=unsupported
8297       always_export_symbols=yes
8298       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'
8299       # Note: this linker hardcodes the directories in LIBPATH if there
8300       # are no directories specified by -L.
8301       hardcode_minus_L=yes
8302       if test "$GCC" = yes && test -z "$link_static_flag"; then
8303         # Neither direct hardcoding nor static linking is supported with a
8304         # broken collect2.
8305         hardcode_direct=unsupported
8306       fi
8307       ;;
8308
8309     aix4* | aix5*)
8310       if test "$host_cpu" = ia64; then
8311         # On IA64, the linker does run time linking by default, so we don't
8312         # have to do anything special.
8313         aix_use_runtimelinking=no
8314         exp_sym_flag='-Bexport'
8315         no_entry_flag=""
8316       else
8317         # If we're using GNU nm, then we don't want the "-C" option.
8318         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8319         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8320           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'
8321         else
8322           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'
8323         fi
8324         aix_use_runtimelinking=no
8325
8326         # Test if we are trying to use run time linking or normal
8327         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8328         # need to do runtime linking.
8329         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8330           for ld_flag in $LDFLAGS; do
8331           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8332             aix_use_runtimelinking=yes
8333             break
8334           fi
8335           done
8336         esac
8337
8338         exp_sym_flag='-bexport'
8339         no_entry_flag='-bnoentry'
8340       fi
8341
8342       # When large executables or shared objects are built, AIX ld can
8343       # have problems creating the table of contents.  If linking a library
8344       # or program results in "error TOC overflow" add -mminimal-toc to
8345       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8346       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8347
8348       archive_cmds=''
8349       hardcode_direct=yes
8350       hardcode_libdir_separator=':'
8351       link_all_deplibs=yes
8352
8353       if test "$GCC" = yes; then
8354         case $host_os in aix4.012|aix4.012.*)
8355         # We only want to do this on AIX 4.2 and lower, the check
8356         # below for broken collect2 doesn't work under 4.3+
8357           collect2name=`${CC} -print-prog-name=collect2`
8358           if test -f "$collect2name" && \
8359            strings "$collect2name" | grep resolve_lib_name >/dev/null
8360           then
8361           # We have reworked collect2
8362           hardcode_direct=yes
8363           else
8364           # We have old collect2
8365           hardcode_direct=unsupported
8366           # It fails to find uninstalled libraries when the uninstalled
8367           # path is not listed in the libpath.  Setting hardcode_minus_L
8368           # to unsupported forces relinking
8369           hardcode_minus_L=yes
8370           hardcode_libdir_flag_spec='-L$libdir'
8371           hardcode_libdir_separator=
8372           fi
8373         esac
8374         shared_flag='-shared'
8375       else
8376         # not using gcc
8377         if test "$host_cpu" = ia64; then
8378         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8379         # chokes on -Wl,-G. The following line is correct:
8380           shared_flag='-G'
8381         else
8382         if test "$aix_use_runtimelinking" = yes; then
8383             shared_flag='${wl}-G'
8384           else
8385             shared_flag='${wl}-bM:SRE'
8386         fi
8387         fi
8388       fi
8389
8390       # It seems that -bexpall does not export symbols beginning with
8391       # underscore (_), so it is better to generate a list of symbols to export.
8392       always_export_symbols=yes
8393       if test "$aix_use_runtimelinking" = yes; then
8394         # Warning - without using the other runtime loading flags (-brtl),
8395         # -berok will link without error, but may produce a broken library.
8396         allow_undefined_flag='-berok'
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          test -z "$ac_c_werror_flag" ||
8428          test ! -s conftest.err
8429        } && test -s conftest$ac_exeext &&
8430        $as_test_x conftest$ac_exeext; then
8431
8432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8433 }'`
8434 # Check for a 64-bit object if we didn't find anything.
8435 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; }
8436 }'`; fi
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441
8442 fi
8443
8444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8445       conftest$ac_exeext conftest.$ac_ext
8446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8447
8448        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8449         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8450        else
8451         if test "$host_cpu" = ia64; then
8452           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8453           allow_undefined_flag="-z nodefs"
8454           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8455         else
8456          # Determine the default libpath from the value encoded in an empty executable.
8457          cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 int
8465 main ()
8466 {
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8474 case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_link") 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } && {
8486          test -z "$ac_c_werror_flag" ||
8487          test ! -s conftest.err
8488        } && test -s conftest$ac_exeext &&
8489        $as_test_x conftest$ac_exeext; then
8490
8491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8492 }'`
8493 # Check for a 64-bit object if we didn't find anything.
8494 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; }
8495 }'`; fi
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504       conftest$ac_exeext conftest.$ac_ext
8505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8506
8507          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508           # Warning - without using the other run time loading flags,
8509           # -berok will link without error, but may produce a broken library.
8510           no_undefined_flag=' ${wl}-bernotok'
8511           allow_undefined_flag=' ${wl}-berok'
8512           # -bexpall does not export symbols beginning with underscore (_)
8513           always_export_symbols=yes
8514           # Exported symbols can be pulled into shared objects from archives
8515           whole_archive_flag_spec=' '
8516           archive_cmds_need_lc=yes
8517           # This is similar to how AIX traditionally builds it's shared libraries.
8518           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8519         fi
8520       fi
8521       ;;
8522
8523     amigaos*)
8524       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)'
8525       hardcode_libdir_flag_spec='-L$libdir'
8526       hardcode_minus_L=yes
8527       # see comment about different semantics on the GNU ld section
8528       ld_shlibs=no
8529       ;;
8530
8531     bsdi4*)
8532       export_dynamic_flag_spec=-rdynamic
8533       ;;
8534
8535     cygwin* | mingw* | pw32*)
8536       # When not using gcc, we currently assume that we are using
8537       # Microsoft Visual C++.
8538       # hardcode_libdir_flag_spec is actually meaningless, as there is
8539       # no search path for DLLs.
8540       hardcode_libdir_flag_spec=' '
8541       allow_undefined_flag=unsupported
8542       # Tell ltmain to make .lib files, not .a files.
8543       libext=lib
8544       # Tell ltmain to make .dll files, not .so files.
8545       shrext_cmds=".dll"
8546       # FIXME: Setting linknames here is a bad hack.
8547       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8548       # The linker will automatically build a .lib file if we build a DLL.
8549       old_archive_From_new_cmds='true'
8550       # FIXME: Should let the user specify the lib program.
8551       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8552       fix_srcfile_path='`cygpath -w "$srcfile"`'
8553       enable_shared_with_static_runtimes=yes
8554       ;;
8555
8556     darwin* | rhapsody*)
8557     if test "$GXX" = yes ; then
8558       archive_cmds_need_lc=no
8559       case "$host_os" in
8560       rhapsody* | darwin1.[012])
8561         allow_undefined_flag='-undefined suppress'
8562         ;;
8563       *) # Darwin 1.3 on
8564       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8565         allow_undefined_flag='-flat_namespace -undefined suppress'
8566       else
8567         case ${MACOSX_DEPLOYMENT_TARGET} in
8568           10.[012])
8569             allow_undefined_flag='-flat_namespace -undefined suppress'
8570             ;;
8571           10.*)
8572             allow_undefined_flag='-undefined dynamic_lookup'
8573             ;;
8574         esac
8575       fi
8576         ;;
8577       esac
8578         lt_int_apple_cc_single_mod=no
8579         output_verbose_link_cmd='echo'
8580         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8581           lt_int_apple_cc_single_mod=yes
8582         fi
8583         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8584           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8585         else
8586         archive_cmds='$CC -r ${wl}-bind_at_load -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'
8587       fi
8588       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8590         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8591           archive_expsym_cmds='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}'
8592         else
8593           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
8594         fi
8595           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}'
8596       hardcode_direct=no
8597       hardcode_automatic=yes
8598       hardcode_shlibpath_var=unsupported
8599       whole_archive_flag_spec='-all_load $convenience'
8600       link_all_deplibs=yes
8601     else
8602       ld_shlibs=no
8603     fi
8604       ;;
8605
8606     dgux*)
8607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8608       hardcode_libdir_flag_spec='-L$libdir'
8609       hardcode_shlibpath_var=no
8610       ;;
8611
8612     freebsd1*)
8613       ld_shlibs=no
8614       ;;
8615
8616     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8617     # support.  Future versions do this automatically, but an explicit c++rt0.o
8618     # does not break anything, and helps significantly (at the cost of a little
8619     # extra space).
8620     freebsd2.2*)
8621       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8622       hardcode_libdir_flag_spec='-R$libdir'
8623       hardcode_direct=yes
8624       hardcode_shlibpath_var=no
8625       ;;
8626
8627     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8628     freebsd2*)
8629       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8630       hardcode_direct=yes
8631       hardcode_minus_L=yes
8632       hardcode_shlibpath_var=no
8633       ;;
8634
8635     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8636     freebsd* | kfreebsd*-gnu)
8637       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8638       hardcode_libdir_flag_spec='-R$libdir'
8639       hardcode_direct=yes
8640       hardcode_shlibpath_var=no
8641       ;;
8642
8643     hpux9*)
8644       if test "$GCC" = yes; then
8645         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'
8646       else
8647         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'
8648       fi
8649       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650       hardcode_libdir_separator=:
8651       hardcode_direct=yes
8652
8653       # hardcode_minus_L: Not really in the search PATH,
8654       # but as the default location of the library.
8655       hardcode_minus_L=yes
8656       export_dynamic_flag_spec='${wl}-E'
8657       ;;
8658
8659     hpux10* | hpux11*)
8660       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8661         case "$host_cpu" in
8662         hppa*64*|ia64*)
8663           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664           ;;
8665         *)
8666           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8667           ;;
8668         esac
8669       else
8670         case "$host_cpu" in
8671         hppa*64*|ia64*)
8672           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8673           ;;
8674         *)
8675           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8676           ;;
8677         esac
8678       fi
8679       if test "$with_gnu_ld" = no; then
8680         case "$host_cpu" in
8681         hppa*64*)
8682           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683           hardcode_libdir_flag_spec_ld='+b $libdir'
8684           hardcode_libdir_separator=:
8685           hardcode_direct=no
8686           hardcode_shlibpath_var=no
8687           ;;
8688         ia64*)
8689           hardcode_libdir_flag_spec='-L$libdir'
8690           hardcode_direct=no
8691           hardcode_shlibpath_var=no
8692
8693           # hardcode_minus_L: Not really in the search PATH,
8694           # but as the default location of the library.
8695           hardcode_minus_L=yes
8696           ;;
8697         *)
8698           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699           hardcode_libdir_separator=:
8700           hardcode_direct=yes
8701           export_dynamic_flag_spec='${wl}-E'
8702
8703           # hardcode_minus_L: Not really in the search PATH,
8704           # but as the default location of the library.
8705           hardcode_minus_L=yes
8706           ;;
8707         esac
8708       fi
8709       ;;
8710
8711     irix5* | irix6* | nonstopux*)
8712       if test "$GCC" = yes; then
8713         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'
8714       else
8715         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'
8716         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8717       fi
8718       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719       hardcode_libdir_separator=:
8720       link_all_deplibs=yes
8721       ;;
8722
8723     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8724       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8725         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8726       else
8727         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8728       fi
8729       hardcode_libdir_flag_spec='-R$libdir'
8730       hardcode_direct=yes
8731       hardcode_shlibpath_var=no
8732       ;;
8733
8734     newsos6)
8735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736       hardcode_direct=yes
8737       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8738       hardcode_libdir_separator=:
8739       hardcode_shlibpath_var=no
8740       ;;
8741
8742     openbsd*)
8743       hardcode_direct=yes
8744       hardcode_shlibpath_var=no
8745       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8746         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8747         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8748         export_dynamic_flag_spec='${wl}-E'
8749       else
8750        case $host_os in
8751          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8752            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753            hardcode_libdir_flag_spec='-R$libdir'
8754            ;;
8755          *)
8756            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8757            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8758            ;;
8759        esac
8760       fi
8761       ;;
8762
8763     os2*)
8764       hardcode_libdir_flag_spec='-L$libdir'
8765       hardcode_minus_L=yes
8766       allow_undefined_flag=unsupported
8767       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'
8768       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8769       ;;
8770
8771     osf3*)
8772       if test "$GCC" = yes; then
8773         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8774         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'
8775       else
8776         allow_undefined_flag=' -expect_unresolved \*'
8777         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'
8778       fi
8779       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780       hardcode_libdir_separator=:
8781       ;;
8782
8783     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8784       if test "$GCC" = yes; then
8785         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8786         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'
8787         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788       else
8789         allow_undefined_flag=' -expect_unresolved \*'
8790         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'
8791         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8792         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8793
8794         # Both c and cxx compiler support -rpath directly
8795         hardcode_libdir_flag_spec='-rpath $libdir'
8796       fi
8797       hardcode_libdir_separator=:
8798       ;;
8799
8800     sco3.2v5*)
8801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802       hardcode_shlibpath_var=no
8803       export_dynamic_flag_spec='${wl}-Bexport'
8804       runpath_var=LD_RUN_PATH
8805       hardcode_runpath_var=yes
8806       ;;
8807
8808     solaris*)
8809       no_undefined_flag=' -z text'
8810       if test "$GCC" = yes; then
8811         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8813           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8814       else
8815         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8817         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8818       fi
8819       hardcode_libdir_flag_spec='-R$libdir'
8820       hardcode_shlibpath_var=no
8821       case $host_os in
8822       solaris2.[0-5] | solaris2.[0-5].*) ;;
8823       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8824         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8825       esac
8826       link_all_deplibs=yes
8827       ;;
8828
8829     sunos4*)
8830       if test "x$host_vendor" = xsequent; then
8831         # Use $CC to link under sequent, because it throws in some extra .o
8832         # files that make .init and .fini sections work.
8833         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8834       else
8835         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8836       fi
8837       hardcode_libdir_flag_spec='-L$libdir'
8838       hardcode_direct=yes
8839       hardcode_minus_L=yes
8840       hardcode_shlibpath_var=no
8841       ;;
8842
8843     sysv4)
8844       case $host_vendor in
8845         sni)
8846           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847           hardcode_direct=yes # is this really true???
8848         ;;
8849         siemens)
8850           ## LD is ld it makes a PLAMLIB
8851           ## CC just makes a GrossModule.
8852           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8853           reload_cmds='$CC -r -o $output$reload_objs'
8854           hardcode_direct=no
8855         ;;
8856         motorola)
8857           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8859         ;;
8860       esac
8861       runpath_var='LD_RUN_PATH'
8862       hardcode_shlibpath_var=no
8863       ;;
8864
8865     sysv4.3*)
8866       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867       hardcode_shlibpath_var=no
8868       export_dynamic_flag_spec='-Bexport'
8869       ;;
8870
8871     sysv4*MP*)
8872       if test -d /usr/nec; then
8873         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874         hardcode_shlibpath_var=no
8875         runpath_var=LD_RUN_PATH
8876         hardcode_runpath_var=yes
8877         ld_shlibs=yes
8878       fi
8879       ;;
8880
8881     sysv4.2uw2*)
8882       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8883       hardcode_direct=yes
8884       hardcode_minus_L=no
8885       hardcode_shlibpath_var=no
8886       hardcode_runpath_var=yes
8887       runpath_var=LD_RUN_PATH
8888       ;;
8889
8890    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8891       no_undefined_flag='${wl}-z ${wl}text'
8892       if test "$GCC" = yes; then
8893         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894       else
8895         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8896       fi
8897       runpath_var='LD_RUN_PATH'
8898       hardcode_shlibpath_var=no
8899       ;;
8900
8901     sysv5*)
8902       no_undefined_flag=' -z text'
8903       # $CC -shared without GNU ld will not create a library from C++
8904       # object files and a static libstdc++, better avoid it by now
8905       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8907                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8908       hardcode_libdir_flag_spec=
8909       hardcode_shlibpath_var=no
8910       runpath_var='LD_RUN_PATH'
8911       ;;
8912
8913     uts4*)
8914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915       hardcode_libdir_flag_spec='-L$libdir'
8916       hardcode_shlibpath_var=no
8917       ;;
8918
8919     *)
8920       ld_shlibs=no
8921       ;;
8922     esac
8923   fi
8924
8925 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8926 echo "${ECHO_T}$ld_shlibs" >&6; }
8927 test "$ld_shlibs" = no && can_build_shared=no
8928
8929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8930 if test "$GCC" = yes; then
8931   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8932 fi
8933
8934 #
8935 # Do we need to explicitly link libc?
8936 #
8937 case "x$archive_cmds_need_lc" in
8938 x|xyes)
8939   # Assume -lc should be added
8940   archive_cmds_need_lc=yes
8941
8942   if test "$enable_shared" = yes && test "$GCC" = yes; then
8943     case $archive_cmds in
8944     *'~'*)
8945       # FIXME: we may have to deal with multi-command sequences.
8946       ;;
8947     '$CC '*)
8948       # Test whether the compiler implicitly links with -lc since on some
8949       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8950       # to ld, don't add -lc before -lgcc.
8951       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8953       $rm conftest*
8954       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8955
8956       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8957   (eval $ac_compile) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } 2>conftest.err; then
8961         soname=conftest
8962         lib=conftest
8963         libobjs=conftest.$ac_objext
8964         deplibs=
8965         wl=$lt_prog_compiler_wl
8966         compiler_flags=-v
8967         linker_flags=-v
8968         verstring=
8969         output_objdir=.
8970         libname=conftest
8971         lt_save_allow_undefined_flag=$allow_undefined_flag
8972         allow_undefined_flag=
8973         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8974   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }
8978         then
8979           archive_cmds_need_lc=no
8980         else
8981           archive_cmds_need_lc=yes
8982         fi
8983         allow_undefined_flag=$lt_save_allow_undefined_flag
8984       else
8985         cat conftest.err 1>&5
8986       fi
8987       $rm conftest*
8988       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8989 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8990       ;;
8991     esac
8992   fi
8993   ;;
8994 esac
8995
8996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8998 library_names_spec=
8999 libname_spec='lib$name'
9000 soname_spec=
9001 shrext_cmds=".so"
9002 postinstall_cmds=
9003 postuninstall_cmds=
9004 finish_cmds=
9005 finish_eval=
9006 shlibpath_var=
9007 shlibpath_overrides_runpath=unknown
9008 version_type=none
9009 dynamic_linker="$host_os ld.so"
9010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9011 if test "$GCC" = yes; then
9012   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9014     # if the path contains ";" then we assume it to be the separator
9015     # otherwise default to the standard path separator (i.e. ":") - it is
9016     # assumed that no part of a normal pathname contains ";" but that should
9017     # okay in the real world where ";" in dirpaths is itself problematic.
9018     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9019   else
9020     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9021   fi
9022 else
9023   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9024 fi
9025 need_lib_prefix=unknown
9026 hardcode_into_libs=no
9027
9028 # when you set need_version to no, make sure it does not cause -set_version
9029 # flags to be left without arguments
9030 need_version=unknown
9031
9032 case $host_os in
9033 aix3*)
9034   version_type=linux
9035   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9036   shlibpath_var=LIBPATH
9037
9038   # AIX 3 has no versioning support, so we append a major version to the name.
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   ;;
9041
9042 aix4* | aix5*)
9043   version_type=linux
9044   need_lib_prefix=no
9045   need_version=no
9046   hardcode_into_libs=yes
9047   if test "$host_cpu" = ia64; then
9048     # AIX 5 supports IA64
9049     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9050     shlibpath_var=LD_LIBRARY_PATH
9051   else
9052     # With GCC up to 2.95.x, collect2 would create an import file
9053     # for dependence libraries.  The import file would start with
9054     # the line `#! .'.  This would cause the generated library to
9055     # depend on `.', always an invalid library.  This was fixed in
9056     # development snapshots of GCC prior to 3.0.
9057     case $host_os in
9058       aix4 | aix4.[01] | aix4.[01].*)
9059       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9060            echo ' yes '
9061            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9062         :
9063       else
9064         can_build_shared=no
9065       fi
9066       ;;
9067     esac
9068     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9069     # soname into executable. Probably we can add versioning support to
9070     # collect2, so additional links can be useful in future.
9071     if test "$aix_use_runtimelinking" = yes; then
9072       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9073       # instead of lib<name>.a to let people know that these are not
9074       # typical AIX shared libraries.
9075       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076     else
9077       # We preserve .a as extension for shared libraries through AIX4.2
9078       # and later when we are not doing run time linking.
9079       library_names_spec='${libname}${release}.a $libname.a'
9080       soname_spec='${libname}${release}${shared_ext}$major'
9081     fi
9082     shlibpath_var=LIBPATH
9083   fi
9084   ;;
9085
9086 amigaos*)
9087   library_names_spec='$libname.ixlibrary $libname.a'
9088   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9089   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'
9090   ;;
9091
9092 beos*)
9093   library_names_spec='${libname}${shared_ext}'
9094   dynamic_linker="$host_os ld.so"
9095   shlibpath_var=LIBRARY_PATH
9096   ;;
9097
9098 bsdi4*)
9099   version_type=linux
9100   need_version=no
9101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102   soname_spec='${libname}${release}${shared_ext}$major'
9103   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9104   shlibpath_var=LD_LIBRARY_PATH
9105   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9106   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9107   # the default ld.so.conf also contains /usr/contrib/lib and
9108   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9109   # libtool to hard-code these into programs
9110   ;;
9111
9112 cygwin* | mingw* | pw32*)
9113   version_type=windows
9114   shrext_cmds=".dll"
9115   need_version=no
9116   need_lib_prefix=no
9117
9118   case $GCC,$host_os in
9119   yes,cygwin* | yes,mingw* | yes,pw32*)
9120     library_names_spec='$libname.dll.a'
9121     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9122     postinstall_cmds='base_file=`basename \${file}`~
9123       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9124       dldir=$destdir/`dirname \$dlpath`~
9125       test -d \$dldir || mkdir -p \$dldir~
9126       $install_prog $dir/$dlname \$dldir/$dlname'
9127     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9128       dlpath=$dir/\$dldll~
9129        $rm \$dlpath'
9130     shlibpath_overrides_runpath=yes
9131
9132     case $host_os in
9133     cygwin*)
9134       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9135       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9136       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9137       ;;
9138     mingw*)
9139       # MinGW DLLs use traditional 'lib' prefix
9140       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9141       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9142       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9143         # It is most probably a Windows format PATH printed by
9144         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9145         # path with ; separators, and with drive letters. We can handle the
9146         # drive letters (cygwin fileutils understands them), so leave them,
9147         # especially as we might pass files found there to a mingw objdump,
9148         # which wouldn't understand a cygwinified path. Ahh.
9149         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9150       else
9151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9152       fi
9153       ;;
9154     pw32*)
9155       # pw32 DLLs use 'pw' prefix rather than 'lib'
9156       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9157       ;;
9158     esac
9159     ;;
9160
9161   *)
9162     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9163     ;;
9164   esac
9165   dynamic_linker='Win32 ld.exe'
9166   # FIXME: first we should search . and the directory the executable is in
9167   shlibpath_var=PATH
9168   ;;
9169
9170 darwin* | rhapsody*)
9171   dynamic_linker="$host_os dyld"
9172   version_type=darwin
9173   need_lib_prefix=no
9174   need_version=no
9175   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9176   soname_spec='${libname}${release}${major}$shared_ext'
9177   shlibpath_overrides_runpath=yes
9178   shlibpath_var=DYLD_LIBRARY_PATH
9179   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9180   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9181   if test "$GCC" = yes; then
9182     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"`
9183   else
9184     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9185   fi
9186   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9187   ;;
9188
9189 dgux*)
9190   version_type=linux
9191   need_lib_prefix=no
9192   need_version=no
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   ;;
9197
9198 freebsd1*)
9199   dynamic_linker=no
9200   ;;
9201
9202 kfreebsd*-gnu)
9203   version_type=linux
9204   need_lib_prefix=no
9205   need_version=no
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207   soname_spec='${libname}${release}${shared_ext}$major'
9208   shlibpath_var=LD_LIBRARY_PATH
9209   shlibpath_overrides_runpath=no
9210   hardcode_into_libs=yes
9211   dynamic_linker='GNU ld.so'
9212   ;;
9213
9214 freebsd*)
9215   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9216   version_type=freebsd-$objformat
9217   case $version_type in
9218     freebsd-elf*)
9219       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9220       need_version=no
9221       need_lib_prefix=no
9222       ;;
9223     freebsd-*)
9224       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9225       need_version=yes
9226       ;;
9227   esac
9228   shlibpath_var=LD_LIBRARY_PATH
9229   case $host_os in
9230   freebsd2*)
9231     shlibpath_overrides_runpath=yes
9232     ;;
9233   freebsd3.01* | freebsdelf3.01*)
9234     shlibpath_overrides_runpath=yes
9235     hardcode_into_libs=yes
9236     ;;
9237   *) # from 3.2 on
9238     shlibpath_overrides_runpath=no
9239     hardcode_into_libs=yes
9240     ;;
9241   esac
9242   ;;
9243
9244 gnu*)
9245   version_type=linux
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9249   soname_spec='${libname}${release}${shared_ext}$major'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   hardcode_into_libs=yes
9252   ;;
9253
9254 hpux9* | hpux10* | hpux11*)
9255   # Give a soname corresponding to the major version so that dld.sl refuses to
9256   # link against other versions.
9257   version_type=sunos
9258   need_lib_prefix=no
9259   need_version=no
9260   case "$host_cpu" in
9261   ia64*)
9262     shrext_cmds='.so'
9263     hardcode_into_libs=yes
9264     dynamic_linker="$host_os dld.so"
9265     shlibpath_var=LD_LIBRARY_PATH
9266     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268     soname_spec='${libname}${release}${shared_ext}$major'
9269     if test "X$HPUX_IA64_MODE" = X32; then
9270       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9271     else
9272       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9273     fi
9274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9275     ;;
9276    hppa*64*)
9277      shrext_cmds='.sl'
9278      hardcode_into_libs=yes
9279      dynamic_linker="$host_os dld.sl"
9280      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9281      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9282      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283      soname_spec='${libname}${release}${shared_ext}$major'
9284      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9285      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9286      ;;
9287    *)
9288     shrext_cmds='.sl'
9289     dynamic_linker="$host_os dld.sl"
9290     shlibpath_var=SHLIB_PATH
9291     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293     soname_spec='${libname}${release}${shared_ext}$major'
9294     ;;
9295   esac
9296   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9297   postinstall_cmds='chmod 555 $lib'
9298   ;;
9299
9300 irix5* | irix6* | nonstopux*)
9301   case $host_os in
9302     nonstopux*) version_type=nonstopux ;;
9303     *)
9304         if test "$lt_cv_prog_gnu_ld" = yes; then
9305                 version_type=linux
9306         else
9307                 version_type=irix
9308         fi ;;
9309   esac
9310   need_lib_prefix=no
9311   need_version=no
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9314   case $host_os in
9315   irix5* | nonstopux*)
9316     libsuff= shlibsuff=
9317     ;;
9318   *)
9319     case $LD in # libtool.m4 will add one of these switches to LD
9320     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9321       libsuff= shlibsuff= libmagic=32-bit;;
9322     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9323       libsuff=32 shlibsuff=N32 libmagic=N32;;
9324     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9325       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9326     *) libsuff= shlibsuff= libmagic=never-match;;
9327     esac
9328     ;;
9329   esac
9330   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9331   shlibpath_overrides_runpath=no
9332   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9333   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9334   hardcode_into_libs=yes
9335   ;;
9336
9337 # No shared lib support for Linux oldld, aout, or coff.
9338 linux*oldld* | linux*aout* | linux*coff*)
9339   dynamic_linker=no
9340   ;;
9341
9342 # This must be Linux ELF.
9343 linux*)
9344   version_type=linux
9345   need_lib_prefix=no
9346   need_version=no
9347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348   soname_spec='${libname}${release}${shared_ext}$major'
9349   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=no
9352   # This implies no fast_install, which is unacceptable.
9353   # Some rework will be needed to allow for fast_install
9354   # before this can be enabled.
9355   hardcode_into_libs=yes
9356
9357   # Append ld.so.conf contents to the search path
9358   if test -f /etc/ld.so.conf; then
9359     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9360     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9361   fi
9362
9363   # We used to test for /lib/ld.so.1 and disable shared libraries on
9364   # powerpc, because MkLinux only supported shared libraries with the
9365   # GNU dynamic linker.  Since this was broken with cross compilers,
9366   # most powerpc-linux boxes support dynamic linking these days and
9367   # people can always --disable-shared, the test was removed, and we
9368   # assume the GNU/Linux dynamic linker is in use.
9369   dynamic_linker='GNU/Linux ld.so'
9370   ;;
9371
9372 netbsdelf*-gnu)
9373   version_type=linux
9374   need_lib_prefix=no
9375   need_version=no
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9377   soname_spec='${libname}${release}${shared_ext}$major'
9378   shlibpath_var=LD_LIBRARY_PATH
9379   shlibpath_overrides_runpath=no
9380   hardcode_into_libs=yes
9381   dynamic_linker='NetBSD ld.elf_so'
9382   ;;
9383
9384 knetbsd*-gnu)
9385   version_type=linux
9386   need_lib_prefix=no
9387   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
9391   shlibpath_overrides_runpath=no
9392   hardcode_into_libs=yes
9393   dynamic_linker='GNU ld.so'
9394   ;;
9395
9396 netbsd*)
9397   version_type=sunos
9398   need_lib_prefix=no
9399   need_version=no
9400   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403     dynamic_linker='NetBSD (a.out) ld.so'
9404   else
9405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406     soname_spec='${libname}${release}${shared_ext}$major'
9407     dynamic_linker='NetBSD ld.elf_so'
9408   fi
9409   shlibpath_var=LD_LIBRARY_PATH
9410   shlibpath_overrides_runpath=yes
9411   hardcode_into_libs=yes
9412   ;;
9413
9414 newsos6)
9415   version_type=linux
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=yes
9419   ;;
9420
9421 nto-qnx*)
9422   version_type=linux
9423   need_lib_prefix=no
9424   need_version=no
9425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426   soname_spec='${libname}${release}${shared_ext}$major'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   shlibpath_overrides_runpath=yes
9429   ;;
9430
9431 openbsd*)
9432   version_type=sunos
9433   need_lib_prefix=no
9434   need_version=yes
9435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9437   shlibpath_var=LD_LIBRARY_PATH
9438   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9439     case $host_os in
9440       openbsd2.[89] | openbsd2.[89].*)
9441         shlibpath_overrides_runpath=no
9442         ;;
9443       *)
9444         shlibpath_overrides_runpath=yes
9445         ;;
9446       esac
9447   else
9448     shlibpath_overrides_runpath=yes
9449   fi
9450   ;;
9451
9452 os2*)
9453   libname_spec='$name'
9454   shrext_cmds=".dll"
9455   need_lib_prefix=no
9456   library_names_spec='$libname${shared_ext} $libname.a'
9457   dynamic_linker='OS/2 ld.exe'
9458   shlibpath_var=LIBPATH
9459   ;;
9460
9461 osf3* | osf4* | osf5*)
9462   version_type=osf
9463   need_lib_prefix=no
9464   need_version=no
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467   shlibpath_var=LD_LIBRARY_PATH
9468   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9469   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9470   ;;
9471
9472 sco3.2v5*)
9473   version_type=osf
9474   soname_spec='${libname}${release}${shared_ext}$major'
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476   shlibpath_var=LD_LIBRARY_PATH
9477   ;;
9478
9479 solaris*)
9480   version_type=linux
9481   need_lib_prefix=no
9482   need_version=no
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   shlibpath_overrides_runpath=yes
9487   hardcode_into_libs=yes
9488   # ldd complains unless libraries are executable
9489   postinstall_cmds='chmod +x $lib'
9490   ;;
9491
9492 sunos4*)
9493   version_type=sunos
9494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9495   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9496   shlibpath_var=LD_LIBRARY_PATH
9497   shlibpath_overrides_runpath=yes
9498   if test "$with_gnu_ld" = yes; then
9499     need_lib_prefix=no
9500   fi
9501   need_version=yes
9502   ;;
9503
9504 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9505   version_type=linux
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507   soname_spec='${libname}${release}${shared_ext}$major'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   case $host_vendor in
9510     sni)
9511       shlibpath_overrides_runpath=no
9512       need_lib_prefix=no
9513       export_dynamic_flag_spec='${wl}-Blargedynsym'
9514       runpath_var=LD_RUN_PATH
9515       ;;
9516     siemens)
9517       need_lib_prefix=no
9518       ;;
9519     motorola)
9520       need_lib_prefix=no
9521       need_version=no
9522       shlibpath_overrides_runpath=no
9523       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9524       ;;
9525   esac
9526   ;;
9527
9528 sysv4*MP*)
9529   if test -d /usr/nec ;then
9530     version_type=linux
9531     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9532     soname_spec='$libname${shared_ext}.$major'
9533     shlibpath_var=LD_LIBRARY_PATH
9534   fi
9535   ;;
9536
9537 uts4*)
9538   version_type=linux
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   shlibpath_var=LD_LIBRARY_PATH
9542   ;;
9543
9544 *)
9545   dynamic_linker=no
9546   ;;
9547 esac
9548 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9549 echo "${ECHO_T}$dynamic_linker" >&6; }
9550 test "$dynamic_linker" = no && can_build_shared=no
9551
9552 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9553 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9554 hardcode_action=
9555 if test -n "$hardcode_libdir_flag_spec" || \
9556    test -n "$runpath_var " || \
9557    test "X$hardcode_automatic"="Xyes" ; then
9558
9559   # We can hardcode non-existant directories.
9560   if test "$hardcode_direct" != no &&
9561      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9562      # have to relink, otherwise we might link with an installed library
9563      # when we should be linking with a yet-to-be-installed one
9564      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9565      test "$hardcode_minus_L" != no; then
9566     # Linking always hardcodes the temporary library directory.
9567     hardcode_action=relink
9568   else
9569     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9570     hardcode_action=immediate
9571   fi
9572 else
9573   # We cannot hardcode anything, or else we can only hardcode existing
9574   # directories.
9575   hardcode_action=unsupported
9576 fi
9577 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9578 echo "${ECHO_T}$hardcode_action" >&6; }
9579
9580 if test "$hardcode_action" = relink; then
9581   # Fast installation is not supported
9582   enable_fast_install=no
9583 elif test "$shlibpath_overrides_runpath" = yes ||
9584      test "$enable_shared" = no; then
9585   # Fast installation is not necessary
9586   enable_fast_install=needless
9587 fi
9588
9589 striplib=
9590 old_striplib=
9591 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9592 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9593 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9594   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9595   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9596   { echo "$as_me:$LINENO: result: yes" >&5
9597 echo "${ECHO_T}yes" >&6; }
9598 else
9599 # FIXME - insert some real tests, host_os isn't really good enough
9600   case $host_os in
9601    darwin*)
9602        if test -n "$STRIP" ; then
9603          striplib="$STRIP -x"
9604          { echo "$as_me:$LINENO: result: yes" >&5
9605 echo "${ECHO_T}yes" >&6; }
9606        else
9607   { echo "$as_me:$LINENO: result: no" >&5
9608 echo "${ECHO_T}no" >&6; }
9609 fi
9610        ;;
9611    *)
9612   { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9614     ;;
9615   esac
9616 fi
9617
9618 if test "x$enable_dlopen" != xyes; then
9619   enable_dlopen=unknown
9620   enable_dlopen_self=unknown
9621   enable_dlopen_self_static=unknown
9622 else
9623   lt_cv_dlopen=no
9624   lt_cv_dlopen_libs=
9625
9626   case $host_os in
9627   beos*)
9628     lt_cv_dlopen="load_add_on"
9629     lt_cv_dlopen_libs=
9630     lt_cv_dlopen_self=yes
9631     ;;
9632
9633   mingw* | pw32*)
9634     lt_cv_dlopen="LoadLibrary"
9635     lt_cv_dlopen_libs=
9636    ;;
9637
9638   cygwin*)
9639     lt_cv_dlopen="dlopen"
9640     lt_cv_dlopen_libs=
9641    ;;
9642
9643   darwin*)
9644   # if libdl is installed we need to link against it
9645     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   ac_check_lib_save_LIBS=$LIBS
9651 LIBS="-ldl  $LIBS"
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658
9659 /* Override any GCC internal prototype to avoid an error.
9660    Use char because int might match the return type of a GCC
9661    builtin and then its argument prototype would still apply.  */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char dlopen ();
9666 int
9667 main ()
9668 {
9669 return dlopen ();
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9676 case "(($ac_try" in
9677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678   *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681   (eval "$ac_link") 2>conftest.er1
9682   ac_status=$?
9683   grep -v '^ *+' conftest.er1 >conftest.err
9684   rm -f conftest.er1
9685   cat conftest.err >&5
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } && {
9688          test -z "$ac_c_werror_flag" ||
9689          test ! -s conftest.err
9690        } && test -s conftest$ac_exeext &&
9691        $as_test_x conftest$ac_exeext; then
9692   ac_cv_lib_dl_dlopen=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697         ac_cv_lib_dl_dlopen=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701       conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9703 fi
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9707   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9708 else
9709
9710     lt_cv_dlopen="dyld"
9711     lt_cv_dlopen_libs=
9712     lt_cv_dlopen_self=yes
9713
9714 fi
9715
9716    ;;
9717
9718   *)
9719     { echo "$as_me:$LINENO: checking for shl_load" >&5
9720 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9721 if test "${ac_cv_func_shl_load+set}" = set; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724   cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9732 #define shl_load innocuous_shl_load
9733
9734 /* System header to define __stub macros and hopefully few prototypes,
9735     which can conflict with char shl_load (); below.
9736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737     <limits.h> exists even on freestanding compilers.  */
9738
9739 #ifdef __STDC__
9740 # include <limits.h>
9741 #else
9742 # include <assert.h>
9743 #endif
9744
9745 #undef shl_load
9746
9747 /* Override any GCC internal prototype to avoid an error.
9748    Use char because int might match the return type of a GCC
9749    builtin and then its argument prototype would still apply.  */
9750 #ifdef __cplusplus
9751 extern "C"
9752 #endif
9753 char shl_load ();
9754 /* The GNU C library defines this for functions which it implements
9755     to always fail with ENOSYS.  Some functions are actually named
9756     something starting with __ and the normal name is an alias.  */
9757 #if defined __stub_shl_load || defined __stub___shl_load
9758 choke me
9759 #endif
9760
9761 int
9762 main ()
9763 {
9764 return shl_load ();
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_link") 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } && {
9783          test -z "$ac_c_werror_flag" ||
9784          test ! -s conftest.err
9785        } && test -s conftest$ac_exeext &&
9786        $as_test_x conftest$ac_exeext; then
9787   ac_cv_func_shl_load=yes
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792         ac_cv_func_shl_load=no
9793 fi
9794
9795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796       conftest$ac_exeext conftest.$ac_ext
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9799 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9800 if test $ac_cv_func_shl_load = yes; then
9801   lt_cv_dlopen="shl_load"
9802 else
9803   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9804 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9805 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   ac_check_lib_save_LIBS=$LIBS
9809 LIBS="-ldld  $LIBS"
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816
9817 /* Override any GCC internal prototype to avoid an error.
9818    Use char because int might match the return type of a GCC
9819    builtin and then its argument prototype would still apply.  */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 char shl_load ();
9824 int
9825 main ()
9826 {
9827 return shl_load ();
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9834 case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_link") 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } && {
9846          test -z "$ac_c_werror_flag" ||
9847          test ! -s conftest.err
9848        } && test -s conftest$ac_exeext &&
9849        $as_test_x conftest$ac_exeext; then
9850   ac_cv_lib_dld_shl_load=yes
9851 else
9852   echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855         ac_cv_lib_dld_shl_load=no
9856 fi
9857
9858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859       conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9861 fi
9862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9864 if test $ac_cv_lib_dld_shl_load = yes; then
9865   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9866 else
9867   { echo "$as_me:$LINENO: checking for dlopen" >&5
9868 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9869 if test "${ac_cv_func_dlopen+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9880 #define dlopen innocuous_dlopen
9881
9882 /* System header to define __stub macros and hopefully few prototypes,
9883     which can conflict with char dlopen (); below.
9884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9885     <limits.h> exists even on freestanding compilers.  */
9886
9887 #ifdef __STDC__
9888 # include <limits.h>
9889 #else
9890 # include <assert.h>
9891 #endif
9892
9893 #undef dlopen
9894
9895 /* Override any GCC internal prototype to avoid an error.
9896    Use char because int might match the return type of a GCC
9897    builtin and then its argument prototype would still apply.  */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 char dlopen ();
9902 /* The GNU C library defines this for functions which it implements
9903     to always fail with ENOSYS.  Some functions are actually named
9904     something starting with __ and the normal name is an alias.  */
9905 #if defined __stub_dlopen || defined __stub___dlopen
9906 choke me
9907 #endif
9908
9909 int
9910 main ()
9911 {
9912 return dlopen ();
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9919 case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924   (eval "$ac_link") 2>conftest.er1
9925   ac_status=$?
9926   grep -v '^ *+' conftest.er1 >conftest.err
9927   rm -f conftest.er1
9928   cat conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } && {
9931          test -z "$ac_c_werror_flag" ||
9932          test ! -s conftest.err
9933        } && test -s conftest$ac_exeext &&
9934        $as_test_x conftest$ac_exeext; then
9935   ac_cv_func_dlopen=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940         ac_cv_func_dlopen=no
9941 fi
9942
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944       conftest$ac_exeext conftest.$ac_ext
9945 fi
9946 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9948 if test $ac_cv_func_dlopen = yes; then
9949   lt_cv_dlopen="dlopen"
9950 else
9951   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl  $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964
9965 /* Override any GCC internal prototype to avoid an error.
9966    Use char because int might match the return type of a GCC
9967    builtin and then its argument prototype would still apply.  */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char dlopen ();
9972 int
9973 main ()
9974 {
9975 return dlopen ();
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9982 case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_link") 2>conftest.er1
9988   ac_status=$?
9989   grep -v '^ *+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } && {
9994          test -z "$ac_c_werror_flag" ||
9995          test ! -s conftest.err
9996        } && test -s conftest$ac_exeext &&
9997        $as_test_x conftest$ac_exeext; then
9998   ac_cv_lib_dl_dlopen=yes
9999 else
10000   echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003         ac_cv_lib_dl_dlopen=no
10004 fi
10005
10006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007       conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10012 if test $ac_cv_lib_dl_dlopen = yes; then
10013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014 else
10015   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10016 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsvld  $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030    Use char because int might match the return type of a GCC
10031    builtin and then its argument prototype would still apply.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dlopen ();
10036 int
10037 main ()
10038 {
10039 return dlopen ();
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_link") 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } && {
10058          test -z "$ac_c_werror_flag" ||
10059          test ! -s conftest.err
10060        } && test -s conftest$ac_exeext &&
10061        $as_test_x conftest$ac_exeext; then
10062   ac_cv_lib_svld_dlopen=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067         ac_cv_lib_svld_dlopen=no
10068 fi
10069
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071       conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10073 fi
10074 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10075 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10076 if test $ac_cv_lib_svld_dlopen = yes; then
10077   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10078 else
10079   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10080 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   ac_check_lib_save_LIBS=$LIBS
10085 LIBS="-ldld  $LIBS"
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h.  */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h.  */
10092
10093 /* Override any GCC internal prototype to avoid an error.
10094    Use char because int might match the return type of a GCC
10095    builtin and then its argument prototype would still apply.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 char dld_link ();
10100 int
10101 main ()
10102 {
10103 return dld_link ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_link") 2>conftest.er1
10116   ac_status=$?
10117   grep -v '^ *+' conftest.er1 >conftest.err
10118   rm -f conftest.er1
10119   cat conftest.err >&5
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } && {
10122          test -z "$ac_c_werror_flag" ||
10123          test ! -s conftest.err
10124        } && test -s conftest$ac_exeext &&
10125        $as_test_x conftest$ac_exeext; then
10126   ac_cv_lib_dld_dld_link=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_cv_lib_dld_dld_link=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135       conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140 if test $ac_cv_lib_dld_dld_link = yes; then
10141   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10142 fi
10143
10144
10145 fi
10146
10147
10148 fi
10149
10150
10151 fi
10152
10153
10154 fi
10155
10156
10157 fi
10158
10159     ;;
10160   esac
10161
10162   if test "x$lt_cv_dlopen" != xno; then
10163     enable_dlopen=yes
10164   else
10165     enable_dlopen=no
10166   fi
10167
10168   case $lt_cv_dlopen in
10169   dlopen)
10170     save_CPPFLAGS="$CPPFLAGS"
10171     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10172
10173     save_LDFLAGS="$LDFLAGS"
10174     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10175
10176     save_LIBS="$LIBS"
10177     LIBS="$lt_cv_dlopen_libs $LIBS"
10178
10179     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10180 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10181 if test "${lt_cv_dlopen_self+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184           if test "$cross_compiling" = yes; then :
10185   lt_cv_dlopen_self=cross
10186 else
10187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10188   lt_status=$lt_dlunknown
10189   cat > conftest.$ac_ext <<EOF
10190 #line 10190 "configure"
10191 #include "confdefs.h"
10192
10193 #if HAVE_DLFCN_H
10194 #include <dlfcn.h>
10195 #endif
10196
10197 #include <stdio.h>
10198
10199 #ifdef RTLD_GLOBAL
10200 #  define LT_DLGLOBAL           RTLD_GLOBAL
10201 #else
10202 #  ifdef DL_GLOBAL
10203 #    define LT_DLGLOBAL         DL_GLOBAL
10204 #  else
10205 #    define LT_DLGLOBAL         0
10206 #  endif
10207 #endif
10208
10209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10210    find out it does not work in some platform. */
10211 #ifndef LT_DLLAZY_OR_NOW
10212 #  ifdef RTLD_LAZY
10213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10214 #  else
10215 #    ifdef DL_LAZY
10216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10217 #    else
10218 #      ifdef RTLD_NOW
10219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10220 #      else
10221 #        ifdef DL_NOW
10222 #          define LT_DLLAZY_OR_NOW      DL_NOW
10223 #        else
10224 #          define LT_DLLAZY_OR_NOW      0
10225 #        endif
10226 #      endif
10227 #    endif
10228 #  endif
10229 #endif
10230
10231 #ifdef __cplusplus
10232 extern "C" void exit (int);
10233 #endif
10234
10235 void fnord() { int i=42;}
10236 int main ()
10237 {
10238   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10239   int status = $lt_dlunknown;
10240
10241   if (self)
10242     {
10243       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10244       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10245       /* dlclose (self); */
10246     }
10247
10248     exit (status);
10249 }
10250 EOF
10251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252   (eval $ac_link) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256     (./conftest; exit; ) 2>/dev/null
10257     lt_status=$?
10258     case x$lt_status in
10259       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10260       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10261       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10262     esac
10263   else :
10264     # compilation failed
10265     lt_cv_dlopen_self=no
10266   fi
10267 fi
10268 rm -fr conftest*
10269
10270
10271 fi
10272 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10274
10275     if test "x$lt_cv_dlopen_self" = xyes; then
10276       LDFLAGS="$LDFLAGS $link_static_flag"
10277       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10279 if test "${lt_cv_dlopen_self_static+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282           if test "$cross_compiling" = yes; then :
10283   lt_cv_dlopen_self_static=cross
10284 else
10285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286   lt_status=$lt_dlunknown
10287   cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10290
10291 #if HAVE_DLFCN_H
10292 #include <dlfcn.h>
10293 #endif
10294
10295 #include <stdio.h>
10296
10297 #ifdef RTLD_GLOBAL
10298 #  define LT_DLGLOBAL           RTLD_GLOBAL
10299 #else
10300 #  ifdef DL_GLOBAL
10301 #    define LT_DLGLOBAL         DL_GLOBAL
10302 #  else
10303 #    define LT_DLGLOBAL         0
10304 #  endif
10305 #endif
10306
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308    find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10310 #  ifdef RTLD_LAZY
10311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10312 #  else
10313 #    ifdef DL_LAZY
10314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10315 #    else
10316 #      ifdef RTLD_NOW
10317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10318 #      else
10319 #        ifdef DL_NOW
10320 #          define LT_DLLAZY_OR_NOW      DL_NOW
10321 #        else
10322 #          define LT_DLLAZY_OR_NOW      0
10323 #        endif
10324 #      endif
10325 #    endif
10326 #  endif
10327 #endif
10328
10329 #ifdef __cplusplus
10330 extern "C" void exit (int);
10331 #endif
10332
10333 void fnord() { int i=42;}
10334 int main ()
10335 {
10336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337   int status = $lt_dlunknown;
10338
10339   if (self)
10340     {
10341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10342       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343       /* dlclose (self); */
10344     }
10345
10346     exit (status);
10347 }
10348 EOF
10349   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350   (eval $ac_link) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10354     (./conftest; exit; ) 2>/dev/null
10355     lt_status=$?
10356     case x$lt_status in
10357       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10358       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10359       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10360     esac
10361   else :
10362     # compilation failed
10363     lt_cv_dlopen_self_static=no
10364   fi
10365 fi
10366 rm -fr conftest*
10367
10368
10369 fi
10370 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10371 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10372     fi
10373
10374     CPPFLAGS="$save_CPPFLAGS"
10375     LDFLAGS="$save_LDFLAGS"
10376     LIBS="$save_LIBS"
10377     ;;
10378   esac
10379
10380   case $lt_cv_dlopen_self in
10381   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10382   *) enable_dlopen_self=unknown ;;
10383   esac
10384
10385   case $lt_cv_dlopen_self_static in
10386   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10387   *) enable_dlopen_self_static=unknown ;;
10388   esac
10389 fi
10390
10391
10392 # Report which librarie types wil actually be built
10393 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10395 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396 echo "${ECHO_T}$can_build_shared" >&6; }
10397
10398 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10400 test "$can_build_shared" = "no" && enable_shared=no
10401
10402 # On AIX, shared libraries and static libraries use the same namespace, and
10403 # are all built from PIC.
10404 case "$host_os" in
10405 aix3*)
10406   test "$enable_shared" = yes && enable_static=no
10407   if test -n "$RANLIB"; then
10408     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409     postinstall_cmds='$RANLIB $lib'
10410   fi
10411   ;;
10412
10413 aix4* | aix5*)
10414   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10415     test "$enable_shared" = yes && enable_static=no
10416   fi
10417   ;;
10418   darwin* | rhapsody*)
10419   if test "$GCC" = yes; then
10420     archive_cmds_need_lc=no
10421     case "$host_os" in
10422     rhapsody* | darwin1.[012])
10423       allow_undefined_flag='-undefined suppress'
10424       ;;
10425     *) # Darwin 1.3 on
10426       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10427         allow_undefined_flag='-flat_namespace -undefined suppress'
10428       else
10429         case ${MACOSX_DEPLOYMENT_TARGET} in
10430           10.[012])
10431             allow_undefined_flag='-flat_namespace -undefined suppress'
10432             ;;
10433           10.*)
10434             allow_undefined_flag='-undefined dynamic_lookup'
10435             ;;
10436         esac
10437       fi
10438       ;;
10439     esac
10440     output_verbose_link_cmd='echo'
10441     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10442     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10443     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10444     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}'
10445     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}'
10446     hardcode_direct=no
10447     hardcode_automatic=yes
10448     hardcode_shlibpath_var=unsupported
10449     whole_archive_flag_spec='-all_load $convenience'
10450     link_all_deplibs=yes
10451   else
10452     ld_shlibs=no
10453   fi
10454     ;;
10455 esac
10456 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10457 echo "${ECHO_T}$enable_shared" >&6; }
10458
10459 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10460 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10461 # Make sure either enable_shared or enable_static is yes.
10462 test "$enable_shared" = yes || enable_static=yes
10463 { echo "$as_me:$LINENO: result: $enable_static" >&5
10464 echo "${ECHO_T}$enable_static" >&6; }
10465
10466 # The else clause should only fire when bootstrapping the
10467 # libtool distribution, otherwise you forgot to ship ltmain.sh
10468 # with your package, and you will get complaints that there are
10469 # no rules to generate ltmain.sh.
10470 if test -f "$ltmain"; then
10471   # See if we are running on zsh, and set the options which allow our commands through
10472   # without removal of \ escapes.
10473   if test -n "${ZSH_VERSION+set}" ; then
10474     setopt NO_GLOB_SUBST
10475   fi
10476   # Now quote all the things that may contain metacharacters while being
10477   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10478   # variables and quote the copies for generation of the libtool script.
10479   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10480     SED SHELL STRIP \
10481     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10482     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10483     deplibs_check_method reload_flag reload_cmds need_locks \
10484     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10485     lt_cv_sys_global_symbol_to_c_name_address \
10486     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10487     old_postinstall_cmds old_postuninstall_cmds \
10488     compiler \
10489     CC \
10490     LD \
10491     lt_prog_compiler_wl \
10492     lt_prog_compiler_pic \
10493     lt_prog_compiler_static \
10494     lt_prog_compiler_no_builtin_flag \
10495     export_dynamic_flag_spec \
10496     thread_safe_flag_spec \
10497     whole_archive_flag_spec \
10498     enable_shared_with_static_runtimes \
10499     old_archive_cmds \
10500     old_archive_from_new_cmds \
10501     predep_objects \
10502     postdep_objects \
10503     predeps \
10504     postdeps \
10505     compiler_lib_search_path \
10506     archive_cmds \
10507     archive_expsym_cmds \
10508     postinstall_cmds \
10509     postuninstall_cmds \
10510     old_archive_from_expsyms_cmds \
10511     allow_undefined_flag \
10512     no_undefined_flag \
10513     export_symbols_cmds \
10514     hardcode_libdir_flag_spec \
10515     hardcode_libdir_flag_spec_ld \
10516     hardcode_libdir_separator \
10517     hardcode_automatic \
10518     module_cmds \
10519     module_expsym_cmds \
10520     lt_cv_prog_compiler_c_o \
10521     exclude_expsyms \
10522     include_expsyms; do
10523
10524     case $var in
10525     old_archive_cmds | \
10526     old_archive_from_new_cmds | \
10527     archive_cmds | \
10528     archive_expsym_cmds | \
10529     module_cmds | \
10530     module_expsym_cmds | \
10531     old_archive_from_expsyms_cmds | \
10532     export_symbols_cmds | \
10533     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10534     postinstall_cmds | postuninstall_cmds | \
10535     old_postinstall_cmds | old_postuninstall_cmds | \
10536     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10537       # Double-quote double-evaled strings.
10538       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10539       ;;
10540     *)
10541       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10542       ;;
10543     esac
10544   done
10545
10546   case $lt_echo in
10547   *'\$0 --fallback-echo"')
10548     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10549     ;;
10550   esac
10551
10552 cfgfile="${ofile}T"
10553   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10554   $rm -f "$cfgfile"
10555   { echo "$as_me:$LINENO: creating $ofile" >&5
10556 echo "$as_me: creating $ofile" >&6;}
10557
10558   cat <<__EOF__ >> "$cfgfile"
10559 #! $SHELL
10560
10561 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10562 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10564 #
10565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10566 # Free Software Foundation, Inc.
10567 #
10568 # This file is part of GNU Libtool:
10569 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10570 #
10571 # This program is free software; you can redistribute it and/or modify
10572 # it under the terms of the GNU General Public License as published by
10573 # the Free Software Foundation; either version 2 of the License, or
10574 # (at your option) any later version.
10575 #
10576 # This program is distributed in the hope that it will be useful, but
10577 # WITHOUT ANY WARRANTY; without even the implied warranty of
10578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10579 # General Public License for more details.
10580 #
10581 # You should have received a copy of the GNU General Public License
10582 # along with this program; if not, write to the Free Software
10583 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10584 #
10585 # As a special exception to the GNU General Public License, if you
10586 # distribute this file as part of a program that contains a
10587 # configuration script generated by Autoconf, you may include it under
10588 # the same distribution terms that you use for the rest of that program.
10589
10590 # A sed program that does not truncate output.
10591 SED=$lt_SED
10592
10593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10594 Xsed="$SED -e s/^X//"
10595
10596 # The HP-UX ksh and POSIX shell print the target directory to stdout
10597 # if CDPATH is set.
10598 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10599
10600 # The names of the tagged configurations supported by this script.
10601 available_tags=
10602
10603 # ### BEGIN LIBTOOL CONFIG
10604
10605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10606
10607 # Shell to use when invoking shell scripts.
10608 SHELL=$lt_SHELL
10609
10610 # Whether or not to build shared libraries.
10611 build_libtool_libs=$enable_shared
10612
10613 # Whether or not to build static libraries.
10614 build_old_libs=$enable_static
10615
10616 # Whether or not to add -lc for building shared libraries.
10617 build_libtool_need_lc=$archive_cmds_need_lc
10618
10619 # Whether or not to disallow shared libs when runtime libs are static
10620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10621
10622 # Whether or not to optimize for fast installation.
10623 fast_install=$enable_fast_install
10624
10625 # The host system.
10626 host_alias=$host_alias
10627 host=$host
10628
10629 # An echo program that does not interpret backslashes.
10630 echo=$lt_echo
10631
10632 # The archiver.
10633 AR=$lt_AR
10634 AR_FLAGS=$lt_AR_FLAGS
10635
10636 # A C compiler.
10637 LTCC=$lt_LTCC
10638
10639 # A language-specific compiler.
10640 CC=$lt_compiler
10641
10642 # Is the compiler the GNU C compiler?
10643 with_gcc=$GCC
10644
10645 # An ERE matcher.
10646 EGREP=$lt_EGREP
10647
10648 # The linker used to build libraries.
10649 LD=$lt_LD
10650
10651 # Whether we need hard or soft links.
10652 LN_S=$lt_LN_S
10653
10654 # A BSD-compatible nm program.
10655 NM=$lt_NM
10656
10657 # A symbol stripping program
10658 STRIP=$lt_STRIP
10659
10660 # Used to examine libraries when file_magic_cmd begins "file"
10661 MAGIC_CMD=$MAGIC_CMD
10662
10663 # Used on cygwin: DLL creation program.
10664 DLLTOOL="$DLLTOOL"
10665
10666 # Used on cygwin: object dumper.
10667 OBJDUMP="$OBJDUMP"
10668
10669 # Used on cygwin: assembler.
10670 AS="$AS"
10671
10672 # The name of the directory that contains temporary libtool files.
10673 objdir=$objdir
10674
10675 # How to create reloadable object files.
10676 reload_flag=$lt_reload_flag
10677 reload_cmds=$lt_reload_cmds
10678
10679 # How to pass a linker flag through the compiler.
10680 wl=$lt_lt_prog_compiler_wl
10681
10682 # Object file suffix (normally "o").
10683 objext="$ac_objext"
10684
10685 # Old archive suffix (normally "a").
10686 libext="$libext"
10687
10688 # Shared library suffix (normally ".so").
10689 shrext_cmds='$shrext_cmds'
10690
10691 # Executable file suffix (normally "").
10692 exeext="$exeext"
10693
10694 # Additional compiler flags for building library objects.
10695 pic_flag=$lt_lt_prog_compiler_pic
10696 pic_mode=$pic_mode
10697
10698 # What is the maximum length of a command?
10699 max_cmd_len=$lt_cv_sys_max_cmd_len
10700
10701 # Does compiler simultaneously support -c and -o options?
10702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10703
10704 # Must we lock files when doing compilation ?
10705 need_locks=$lt_need_locks
10706
10707 # Do we need the lib prefix for modules?
10708 need_lib_prefix=$need_lib_prefix
10709
10710 # Do we need a version for libraries?
10711 need_version=$need_version
10712
10713 # Whether dlopen is supported.
10714 dlopen_support=$enable_dlopen
10715
10716 # Whether dlopen of programs is supported.
10717 dlopen_self=$enable_dlopen_self
10718
10719 # Whether dlopen of statically linked programs is supported.
10720 dlopen_self_static=$enable_dlopen_self_static
10721
10722 # Compiler flag to prevent dynamic linking.
10723 link_static_flag=$lt_lt_prog_compiler_static
10724
10725 # Compiler flag to turn off builtin functions.
10726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10727
10728 # Compiler flag to allow reflexive dlopens.
10729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10730
10731 # Compiler flag to generate shared objects directly from archives.
10732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10733
10734 # Compiler flag to generate thread-safe objects.
10735 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10736
10737 # Library versioning type.
10738 version_type=$version_type
10739
10740 # Format of library name prefix.
10741 libname_spec=$lt_libname_spec
10742
10743 # List of archive names.  First name is the real one, the rest are links.
10744 # The last name is the one that the linker finds with -lNAME.
10745 library_names_spec=$lt_library_names_spec
10746
10747 # The coded name of the library, if different from the real name.
10748 soname_spec=$lt_soname_spec
10749
10750 # Commands used to build and install an old-style archive.
10751 RANLIB=$lt_RANLIB
10752 old_archive_cmds=$lt_old_archive_cmds
10753 old_postinstall_cmds=$lt_old_postinstall_cmds
10754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10755
10756 # Create an old-style archive from a shared archive.
10757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10758
10759 # Create a temporary old-style archive to link instead of a shared archive.
10760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10761
10762 # Commands used to build and install a shared archive.
10763 archive_cmds=$lt_archive_cmds
10764 archive_expsym_cmds=$lt_archive_expsym_cmds
10765 postinstall_cmds=$lt_postinstall_cmds
10766 postuninstall_cmds=$lt_postuninstall_cmds
10767
10768 # Commands used to build a loadable module (assumed same as above if empty)
10769 module_cmds=$lt_module_cmds
10770 module_expsym_cmds=$lt_module_expsym_cmds
10771
10772 # Commands to strip libraries.
10773 old_striplib=$lt_old_striplib
10774 striplib=$lt_striplib
10775
10776 # Dependencies to place before the objects being linked to create a
10777 # shared library.
10778 predep_objects=$lt_predep_objects
10779
10780 # Dependencies to place after the objects being linked to create a
10781 # shared library.
10782 postdep_objects=$lt_postdep_objects
10783
10784 # Dependencies to place before the objects being linked to create a
10785 # shared library.
10786 predeps=$lt_predeps
10787
10788 # Dependencies to place after the objects being linked to create a
10789 # shared library.
10790 postdeps=$lt_postdeps
10791
10792 # The library search path used internally by the compiler when linking
10793 # a shared library.
10794 compiler_lib_search_path=$lt_compiler_lib_search_path
10795
10796 # Method to check whether dependent libraries are shared objects.
10797 deplibs_check_method=$lt_deplibs_check_method
10798
10799 # Command to use when deplibs_check_method == file_magic.
10800 file_magic_cmd=$lt_file_magic_cmd
10801
10802 # Flag that allows shared libraries with undefined symbols to be built.
10803 allow_undefined_flag=$lt_allow_undefined_flag
10804
10805 # Flag that forces no undefined symbols.
10806 no_undefined_flag=$lt_no_undefined_flag
10807
10808 # Commands used to finish a libtool library installation in a directory.
10809 finish_cmds=$lt_finish_cmds
10810
10811 # Same as above, but a single script fragment to be evaled but not shown.
10812 finish_eval=$lt_finish_eval
10813
10814 # Take the output of nm and produce a listing of raw symbols and C names.
10815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10816
10817 # Transform the output of nm in a proper C declaration
10818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10819
10820 # Transform the output of nm in a C name address pair
10821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10822
10823 # This is the shared library runtime path variable.
10824 runpath_var=$runpath_var
10825
10826 # This is the shared library path variable.
10827 shlibpath_var=$shlibpath_var
10828
10829 # Is shlibpath searched before the hard-coded library search path?
10830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10831
10832 # How to hardcode a shared library path into an executable.
10833 hardcode_action=$hardcode_action
10834
10835 # Whether we should hardcode library paths into libraries.
10836 hardcode_into_libs=$hardcode_into_libs
10837
10838 # Flag to hardcode \$libdir into a binary during linking.
10839 # This must work even if \$libdir does not exist.
10840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10841
10842 # If ld is used when linking, flag to hardcode \$libdir into
10843 # a binary during linking. This must work even if \$libdir does
10844 # not exist.
10845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10846
10847 # Whether we need a single -rpath flag with a separated argument.
10848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10849
10850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10851 # resulting binary.
10852 hardcode_direct=$hardcode_direct
10853
10854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10855 # resulting binary.
10856 hardcode_minus_L=$hardcode_minus_L
10857
10858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10859 # the resulting binary.
10860 hardcode_shlibpath_var=$hardcode_shlibpath_var
10861
10862 # Set to yes if building a shared library automatically hardcodes DIR into the library
10863 # and all subsequent libraries and executables linked against it.
10864 hardcode_automatic=$hardcode_automatic
10865
10866 # Variables whose values should be saved in libtool wrapper scripts and
10867 # restored at relink time.
10868 variables_saved_for_relink="$variables_saved_for_relink"
10869
10870 # Whether libtool must link a program against all its dependency libraries.
10871 link_all_deplibs=$link_all_deplibs
10872
10873 # Compile-time system search path for libraries
10874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10875
10876 # Run-time system search path for libraries
10877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10878
10879 # Fix the shell variable \$srcfile for the compiler.
10880 fix_srcfile_path="$fix_srcfile_path"
10881
10882 # Set to yes if exported symbols are required.
10883 always_export_symbols=$always_export_symbols
10884
10885 # The commands to list exported symbols.
10886 export_symbols_cmds=$lt_export_symbols_cmds
10887
10888 # The commands to extract the exported symbol list from a shared archive.
10889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10890
10891 # Symbols that should not be listed in the preloaded symbols.
10892 exclude_expsyms=$lt_exclude_expsyms
10893
10894 # Symbols that must always be exported.
10895 include_expsyms=$lt_include_expsyms
10896
10897 # ### END LIBTOOL CONFIG
10898
10899 __EOF__
10900
10901
10902   case $host_os in
10903   aix3*)
10904     cat <<\EOF >> "$cfgfile"
10905
10906 # AIX sometimes has problems with the GCC collect2 program.  For some
10907 # reason, if we set the COLLECT_NAMES environment variable, the problems
10908 # vanish in a puff of smoke.
10909 if test "X${COLLECT_NAMES+set}" != Xset; then
10910   COLLECT_NAMES=
10911   export COLLECT_NAMES
10912 fi
10913 EOF
10914     ;;
10915   esac
10916
10917   # We use sed instead of cat because bash on DJGPP gets confused if
10918   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10919   # text mode, it properly converts lines to CR/LF.  This bash problem
10920   # is reportedly fixed, but why not run on old versions too?
10921   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10922
10923   mv -f "$cfgfile" "$ofile" || \
10924     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10925   chmod +x "$ofile"
10926
10927 else
10928   # If there is no Makefile yet, we rely on a make rule to execute
10929   # `config.status --recheck' to rerun these tests and create the
10930   # libtool script then.
10931   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10932   if test -f "$ltmain_in"; then
10933     test -f Makefile && make "$ltmain"
10934   fi
10935 fi
10936
10937
10938 ac_ext=c
10939 ac_cpp='$CPP $CPPFLAGS'
10940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943
10944 CC="$lt_save_CC"
10945
10946
10947 # Check whether --with-tags was given.
10948 if test "${with_tags+set}" = set; then
10949   withval=$with_tags; tagnames="$withval"
10950 fi
10951
10952
10953 if test -f "$ltmain" && test -n "$tagnames"; then
10954   if test ! -f "${ofile}"; then
10955     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10956 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10957   fi
10958
10959   if test -z "$LTCC"; then
10960     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10961     if test -z "$LTCC"; then
10962       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10963 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10964     else
10965       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10966 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10967     fi
10968   fi
10969
10970   # Extract list of available tagged configurations in $ofile.
10971   # Note that this assumes the entire list is on one line.
10972   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10973
10974   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10975   for tagname in $tagnames; do
10976     IFS="$lt_save_ifs"
10977     # Check whether tagname contains only valid characters
10978     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10979     "") ;;
10980     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10981 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10982    { (exit 1); exit 1; }; }
10983         ;;
10984     esac
10985
10986     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10987     then
10988       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10989 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10990    { (exit 1); exit 1; }; }
10991     fi
10992
10993     # Update the list of available tags.
10994     if test -n "$tagname"; then
10995       echo appending configuration tag \"$tagname\" to $ofile
10996
10997       case $tagname in
10998       CXX)
10999         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11000           ac_ext=cpp
11001 ac_cpp='$CXXCPP $CPPFLAGS'
11002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11005
11006
11007
11008
11009 archive_cmds_need_lc_CXX=no
11010 allow_undefined_flag_CXX=
11011 always_export_symbols_CXX=no
11012 archive_expsym_cmds_CXX=
11013 export_dynamic_flag_spec_CXX=
11014 hardcode_direct_CXX=no
11015 hardcode_libdir_flag_spec_CXX=
11016 hardcode_libdir_flag_spec_ld_CXX=
11017 hardcode_libdir_separator_CXX=
11018 hardcode_minus_L_CXX=no
11019 hardcode_automatic_CXX=no
11020 module_cmds_CXX=
11021 module_expsym_cmds_CXX=
11022 link_all_deplibs_CXX=unknown
11023 old_archive_cmds_CXX=$old_archive_cmds
11024 no_undefined_flag_CXX=
11025 whole_archive_flag_spec_CXX=
11026 enable_shared_with_static_runtimes_CXX=no
11027
11028 # Dependencies to place before and after the object being linked:
11029 predep_objects_CXX=
11030 postdep_objects_CXX=
11031 predeps_CXX=
11032 postdeps_CXX=
11033 compiler_lib_search_path_CXX=
11034
11035 # Source file extension for C++ test sources.
11036 ac_ext=cc
11037
11038 # Object file extension for compiled C++ test sources.
11039 objext=o
11040 objext_CXX=$objext
11041
11042 # Code to be used in simple compile tests
11043 lt_simple_compile_test_code="int some_variable = 0;\n"
11044
11045 # Code to be used in simple link tests
11046 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11047
11048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11049
11050 # If no C compiler was specified, use CC.
11051 LTCC=${LTCC-"$CC"}
11052
11053 # Allow CC to be a program name with arguments.
11054 compiler=$CC
11055
11056
11057 # Allow CC to be a program name with arguments.
11058 lt_save_CC=$CC
11059 lt_save_LD=$LD
11060 lt_save_GCC=$GCC
11061 GCC=$GXX
11062 lt_save_with_gnu_ld=$with_gnu_ld
11063 lt_save_path_LD=$lt_cv_path_LD
11064 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11065   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11066 else
11067   unset lt_cv_prog_gnu_ld
11068 fi
11069 if test -n "${lt_cv_path_LDCXX+set}"; then
11070   lt_cv_path_LD=$lt_cv_path_LDCXX
11071 else
11072   unset lt_cv_path_LD
11073 fi
11074 test -z "${LDCXX+set}" || LD=$LDCXX
11075 CC=${CXX-"c++"}
11076 compiler=$CC
11077 compiler_CXX=$CC
11078 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11079
11080 # We don't want -fno-exception wen compiling C++ code, so set the
11081 # no_builtin_flag separately
11082 if test "$GXX" = yes; then
11083   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11084 else
11085   lt_prog_compiler_no_builtin_flag_CXX=
11086 fi
11087
11088 if test "$GXX" = yes; then
11089   # Set up default GNU C++ configuration
11090
11091
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then
11094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095 else
11096   with_gnu_ld=no
11097 fi
11098
11099 ac_prog=ld
11100 if test "$GCC" = yes; then
11101   # Check if gcc -print-prog-name=ld gives a path.
11102   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11103 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11104   case $host in
11105   *-*-mingw*)
11106     # gcc leaves a trailing carriage return which upsets mingw
11107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11108   *)
11109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11110   esac
11111   case $ac_prog in
11112     # Accept absolute paths.
11113     [\\/]* | ?:[\\/]*)
11114       re_direlt='/[^/][^/]*/\.\./'
11115       # Canonicalize the pathname of ld
11116       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11118         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11119       done
11120       test -z "$LD" && LD="$ac_prog"
11121       ;;
11122   "")
11123     # If it fails, then pretend we aren't using GCC.
11124     ac_prog=ld
11125     ;;
11126   *)
11127     # If it is relative, then search for the first ld in PATH.
11128     with_gnu_ld=unknown
11129     ;;
11130   esac
11131 elif test "$with_gnu_ld" = yes; then
11132   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11134 else
11135   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11137 fi
11138 if test "${lt_cv_path_LD+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   if test -z "$LD"; then
11142   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143   for ac_dir in $PATH; do
11144     IFS="$lt_save_ifs"
11145     test -z "$ac_dir" && ac_dir=.
11146     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147       lt_cv_path_LD="$ac_dir/$ac_prog"
11148       # Check to see if the program is GNU ld.  I'd rather use --version,
11149       # but apparently some GNU ld's only accept -v.
11150       # Break only if it was the GNU/non-GNU ld that we prefer.
11151       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152       *GNU* | *'with BFD'*)
11153         test "$with_gnu_ld" != no && break
11154         ;;
11155       *)
11156         test "$with_gnu_ld" != yes && break
11157         ;;
11158       esac
11159     fi
11160   done
11161   IFS="$lt_save_ifs"
11162 else
11163   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11164 fi
11165 fi
11166
11167 LD="$lt_cv_path_LD"
11168 if test -n "$LD"; then
11169   { echo "$as_me:$LINENO: result: $LD" >&5
11170 echo "${ECHO_T}$LD" >&6; }
11171 else
11172   { echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6; }
11174 fi
11175 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11176 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11177    { (exit 1); exit 1; }; }
11178 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11179 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11180 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11184 case `$LD -v 2>&1 </dev/null` in
11185 *GNU* | *'with BFD'*)
11186   lt_cv_prog_gnu_ld=yes
11187   ;;
11188 *)
11189   lt_cv_prog_gnu_ld=no
11190   ;;
11191 esac
11192 fi
11193 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11194 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11195 with_gnu_ld=$lt_cv_prog_gnu_ld
11196
11197
11198
11199   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11200   # archiving commands below assume that GNU ld is being used.
11201   if test "$with_gnu_ld" = yes; then
11202     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203     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'
11204
11205     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11206     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11207
11208     # If archive_cmds runs LD, not CC, wlarc should be empty
11209     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11210     #     investigate it a little bit more. (MM)
11211     wlarc='${wl}'
11212
11213     # ancient GNU ld didn't support --whole-archive et. al.
11214     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11215         grep 'no-whole-archive' > /dev/null; then
11216       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11217     else
11218       whole_archive_flag_spec_CXX=
11219     fi
11220   else
11221     with_gnu_ld=no
11222     wlarc=
11223
11224     # A generic and very simple default shared library creation
11225     # command for GNU C++ for the case where it uses the native
11226     # linker, instead of GNU ld.  If possible, this setting should
11227     # overridden to take advantage of the native linker features on
11228     # the platform it is being used on.
11229     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11230   fi
11231
11232   # Commands to make compiler produce verbose output that lists
11233   # what "hidden" libraries, object files and flags are used when
11234   # linking a shared library.
11235   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11236
11237 else
11238   GXX=no
11239   with_gnu_ld=no
11240   wlarc=
11241 fi
11242
11243 # PORTME: fill in a description of your system's C++ link characteristics
11244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11246 ld_shlibs_CXX=yes
11247 case $host_os in
11248   aix3*)
11249     # FIXME: insert proper C++ library support
11250     ld_shlibs_CXX=no
11251     ;;
11252   aix4* | aix5*)
11253     if test "$host_cpu" = ia64; then
11254       # On IA64, the linker does run time linking by default, so we don't
11255       # have to do anything special.
11256       aix_use_runtimelinking=no
11257       exp_sym_flag='-Bexport'
11258       no_entry_flag=""
11259     else
11260       aix_use_runtimelinking=no
11261
11262       # Test if we are trying to use run time linking or normal
11263       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11264       # need to do runtime linking.
11265       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11266         for ld_flag in $LDFLAGS; do
11267           case $ld_flag in
11268           *-brtl*)
11269             aix_use_runtimelinking=yes
11270             break
11271             ;;
11272           esac
11273         done
11274       esac
11275
11276       exp_sym_flag='-bexport'
11277       no_entry_flag='-bnoentry'
11278     fi
11279
11280     # When large executables or shared objects are built, AIX ld can
11281     # have problems creating the table of contents.  If linking a library
11282     # or program results in "error TOC overflow" add -mminimal-toc to
11283     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11284     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11285
11286     archive_cmds_CXX=''
11287     hardcode_direct_CXX=yes
11288     hardcode_libdir_separator_CXX=':'
11289     link_all_deplibs_CXX=yes
11290
11291     if test "$GXX" = yes; then
11292       case $host_os in aix4.012|aix4.012.*)
11293       # We only want to do this on AIX 4.2 and lower, the check
11294       # below for broken collect2 doesn't work under 4.3+
11295         collect2name=`${CC} -print-prog-name=collect2`
11296         if test -f "$collect2name" && \
11297            strings "$collect2name" | grep resolve_lib_name >/dev/null
11298         then
11299           # We have reworked collect2
11300           hardcode_direct_CXX=yes
11301         else
11302           # We have old collect2
11303           hardcode_direct_CXX=unsupported
11304           # It fails to find uninstalled libraries when the uninstalled
11305           # path is not listed in the libpath.  Setting hardcode_minus_L
11306           # to unsupported forces relinking
11307           hardcode_minus_L_CXX=yes
11308           hardcode_libdir_flag_spec_CXX='-L$libdir'
11309           hardcode_libdir_separator_CXX=
11310         fi
11311       esac
11312       shared_flag='-shared'
11313     else
11314       # not using gcc
11315       if test "$host_cpu" = ia64; then
11316         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11317         # chokes on -Wl,-G. The following line is correct:
11318         shared_flag='-G'
11319       else
11320         if test "$aix_use_runtimelinking" = yes; then
11321           shared_flag='${wl}-G'
11322         else
11323           shared_flag='${wl}-bM:SRE'
11324         fi
11325       fi
11326     fi
11327
11328     # It seems that -bexpall does not export symbols beginning with
11329     # underscore (_), so it is better to generate a list of symbols to export.
11330     always_export_symbols_CXX=yes
11331     if test "$aix_use_runtimelinking" = yes; then
11332       # Warning - without using the other runtime loading flags (-brtl),
11333       # -berok will link without error, but may produce a broken library.
11334       allow_undefined_flag_CXX='-berok'
11335       # Determine the default libpath from the value encoded in an empty executable.
11336       cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342
11343 int
11344 main ()
11345 {
11346
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (ac_try="$ac_link"
11353 case "(($ac_try" in
11354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355   *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358   (eval "$ac_link") 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } && {
11365          test -z "$ac_cxx_werror_flag" ||
11366          test ! -s conftest.err
11367        } && test -s conftest$ac_exeext &&
11368        $as_test_x conftest$ac_exeext; then
11369
11370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11371 }'`
11372 # Check for a 64-bit object if we didn't find anything.
11373 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; }
11374 }'`; fi
11375 else
11376   echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383       conftest$ac_exeext conftest.$ac_ext
11384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11385
11386       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11387
11388       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11389      else
11390       if test "$host_cpu" = ia64; then
11391         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11392         allow_undefined_flag_CXX="-z nodefs"
11393         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11394       else
11395         # Determine the default libpath from the value encoded in an empty executable.
11396         cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402
11403 int
11404 main ()
11405 {
11406
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (ac_try="$ac_link"
11413 case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_link") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } && {
11425          test -z "$ac_cxx_werror_flag" ||
11426          test ! -s conftest.err
11427        } && test -s conftest$ac_exeext &&
11428        $as_test_x conftest$ac_exeext; then
11429
11430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11431 }'`
11432 # Check for a 64-bit object if we didn't find anything.
11433 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; }
11434 }'`; fi
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439
11440 fi
11441
11442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11443       conftest$ac_exeext conftest.$ac_ext
11444 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11445
11446         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11447         # Warning - without using the other run time loading flags,
11448         # -berok will link without error, but may produce a broken library.
11449         no_undefined_flag_CXX=' ${wl}-bernotok'
11450         allow_undefined_flag_CXX=' ${wl}-berok'
11451         # -bexpall does not export symbols beginning with underscore (_)
11452         always_export_symbols_CXX=yes
11453         # Exported symbols can be pulled into shared objects from archives
11454         whole_archive_flag_spec_CXX=' '
11455         archive_cmds_need_lc_CXX=yes
11456         # This is similar to how AIX traditionally builds it's shared libraries.
11457         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11458       fi
11459     fi
11460     ;;
11461   chorus*)
11462     case $cc_basename in
11463       *)
11464         # FIXME: insert proper C++ library support
11465         ld_shlibs_CXX=no
11466         ;;
11467     esac
11468     ;;
11469
11470   cygwin* | mingw* | pw32*)
11471     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11472     # as there is no search path for DLLs.
11473     hardcode_libdir_flag_spec_CXX='-L$libdir'
11474     allow_undefined_flag_CXX=unsupported
11475     always_export_symbols_CXX=no
11476     enable_shared_with_static_runtimes_CXX=yes
11477
11478     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11479       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11480       # If the export-symbols file already is a .def file (1st line
11481       # is EXPORTS), use it as is; otherwise, prepend...
11482       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11483         cp $export_symbols $output_objdir/$soname.def;
11484       else
11485         echo EXPORTS > $output_objdir/$soname.def;
11486         cat $export_symbols >> $output_objdir/$soname.def;
11487       fi~
11488       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11489     else
11490       ld_shlibs_CXX=no
11491     fi
11492   ;;
11493
11494   darwin* | rhapsody*)
11495   if test "$GXX" = yes; then
11496     archive_cmds_need_lc_CXX=no
11497     case "$host_os" in
11498     rhapsody* | darwin1.[012])
11499       allow_undefined_flag_CXX='-undefined suppress'
11500       ;;
11501     *) # Darwin 1.3 on
11502       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11503         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11504       else
11505         case ${MACOSX_DEPLOYMENT_TARGET} in
11506           10.[012])
11507             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11508             ;;
11509           10.*)
11510             allow_undefined_flag_CXX='-undefined dynamic_lookup'
11511             ;;
11512         esac
11513       fi
11514       ;;
11515     esac
11516     lt_int_apple_cc_single_mod=no
11517     output_verbose_link_cmd='echo'
11518     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11519       lt_int_apple_cc_single_mod=yes
11520     fi
11521     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11522       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11523     else
11524       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
11525     fi
11526     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11527
11528     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11529     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11530       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}'
11531     else
11532       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
11533     fi
11534     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}'
11535     hardcode_direct_CXX=no
11536     hardcode_automatic_CXX=yes
11537     hardcode_shlibpath_var_CXX=unsupported
11538     whole_archive_flag_spec_CXX='-all_load $convenience'
11539     link_all_deplibs_CXX=yes
11540   else
11541     ld_shlibs_CXX=no
11542   fi
11543     ;;
11544
11545   dgux*)
11546     case $cc_basename in
11547       ec++)
11548         # FIXME: insert proper C++ library support
11549         ld_shlibs_CXX=no
11550         ;;
11551       ghcx)
11552         # Green Hills C++ Compiler
11553         # FIXME: insert proper C++ library support
11554         ld_shlibs_CXX=no
11555         ;;
11556       *)
11557         # FIXME: insert proper C++ library support
11558         ld_shlibs_CXX=no
11559         ;;
11560     esac
11561     ;;
11562   freebsd12*)
11563     # C++ shared libraries reported to be fairly broken before switch to ELF
11564     ld_shlibs_CXX=no
11565     ;;
11566   freebsd-elf*)
11567     archive_cmds_need_lc_CXX=no
11568     ;;
11569   freebsd* | kfreebsd*-gnu)
11570     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11571     # conventions
11572     ld_shlibs_CXX=yes
11573     ;;
11574   gnu*)
11575     ;;
11576   hpux9*)
11577     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11578     hardcode_libdir_separator_CXX=:
11579     export_dynamic_flag_spec_CXX='${wl}-E'
11580     hardcode_direct_CXX=yes
11581     hardcode_minus_L_CXX=yes # Not in the search PATH,
11582                                 # but as the default
11583                                 # location of the library.
11584
11585     case $cc_basename in
11586     CC)
11587       # FIXME: insert proper C++ library support
11588       ld_shlibs_CXX=no
11589       ;;
11590     aCC)
11591       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'
11592       # Commands to make compiler produce verbose output that lists
11593       # what "hidden" libraries, object files and flags are used when
11594       # linking a shared library.
11595       #
11596       # There doesn't appear to be a way to prevent this compiler from
11597       # explicitly linking system object files so we need to strip them
11598       # from the output so that they don't get included in the library
11599       # dependencies.
11600       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'
11601       ;;
11602     *)
11603       if test "$GXX" = yes; then
11604         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'
11605       else
11606         # FIXME: insert proper C++ library support
11607         ld_shlibs_CXX=no
11608       fi
11609       ;;
11610     esac
11611     ;;
11612   hpux10*|hpux11*)
11613     if test $with_gnu_ld = no; then
11614       case "$host_cpu" in
11615       hppa*64*)
11616         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11617         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11618         hardcode_libdir_separator_CXX=:
11619         ;;
11620       ia64*)
11621         hardcode_libdir_flag_spec_CXX='-L$libdir'
11622         ;;
11623       *)
11624         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11625         hardcode_libdir_separator_CXX=:
11626         export_dynamic_flag_spec_CXX='${wl}-E'
11627         ;;
11628       esac
11629     fi
11630     case "$host_cpu" in
11631     hppa*64*)
11632       hardcode_direct_CXX=no
11633       hardcode_shlibpath_var_CXX=no
11634       ;;
11635     ia64*)
11636       hardcode_direct_CXX=no
11637       hardcode_shlibpath_var_CXX=no
11638       hardcode_minus_L_CXX=yes # Not in the search PATH,
11639                                               # but as the default
11640                                               # location of the library.
11641       ;;
11642     *)
11643       hardcode_direct_CXX=yes
11644       hardcode_minus_L_CXX=yes # Not in the search PATH,
11645                                               # but as the default
11646                                               # location of the library.
11647       ;;
11648     esac
11649
11650     case $cc_basename in
11651       CC)
11652         # FIXME: insert proper C++ library support
11653         ld_shlibs_CXX=no
11654         ;;
11655       aCC)
11656         case "$host_cpu" in
11657         hppa*64*|ia64*)
11658           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11659           ;;
11660         *)
11661           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11662           ;;
11663         esac
11664         # Commands to make compiler produce verbose output that lists
11665         # what "hidden" libraries, object files and flags are used when
11666         # linking a shared library.
11667         #
11668         # There doesn't appear to be a way to prevent this compiler from
11669         # explicitly linking system object files so we need to strip them
11670         # from the output so that they don't get included in the library
11671         # dependencies.
11672         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'
11673         ;;
11674       *)
11675         if test "$GXX" = yes; then
11676           if test $with_gnu_ld = no; then
11677             case "$host_cpu" in
11678             ia64*|hppa*64*)
11679               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11680               ;;
11681             *)
11682               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'
11683               ;;
11684             esac
11685           fi
11686         else
11687           # FIXME: insert proper C++ library support
11688           ld_shlibs_CXX=no
11689         fi
11690         ;;
11691     esac
11692     ;;
11693   irix5* | irix6*)
11694     case $cc_basename in
11695       CC)
11696         # SGI C++
11697         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 ${objdir}/so_locations -o $lib'
11698
11699         # Archives containing C++ object files must be created using
11700         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11701         # necessary to make sure instantiated templates are included
11702         # in the archive.
11703         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11704         ;;
11705       *)
11706         if test "$GXX" = yes; then
11707           if test "$with_gnu_ld" = no; then
11708             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}${objdir}/so_locations -o $lib'
11709           else
11710             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'
11711           fi
11712         fi
11713         link_all_deplibs_CXX=yes
11714         ;;
11715     esac
11716     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11717     hardcode_libdir_separator_CXX=:
11718     ;;
11719   linux*)
11720     case $cc_basename in
11721       KCC)
11722         # Kuck and Associates, Inc. (KAI) C++ Compiler
11723
11724         # KCC will only create a shared library if the output file
11725         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11726         # to its proper name (with version) after linking.
11727         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'
11728         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'
11729         # Commands to make compiler produce verbose output that lists
11730         # what "hidden" libraries, object files and flags are used when
11731         # linking a shared library.
11732         #
11733         # There doesn't appear to be a way to prevent this compiler from
11734         # explicitly linking system object files so we need to strip them
11735         # from the output so that they don't get included in the library
11736         # dependencies.
11737         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'
11738
11739         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11740         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11741
11742         # Archives containing C++ object files must be created using
11743         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11744         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11745         ;;
11746       icpc)
11747         # Intel C++
11748         with_gnu_ld=yes
11749         archive_cmds_need_lc_CXX=no
11750         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751         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'
11752         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11753         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11754         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11755         ;;
11756       cxx)
11757         # Compaq C++
11758         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11759         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'
11760
11761         runpath_var=LD_RUN_PATH
11762         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11763         hardcode_libdir_separator_CXX=:
11764
11765         # Commands to make compiler produce verbose output that lists
11766         # what "hidden" libraries, object files and flags are used when
11767         # linking a shared library.
11768         #
11769         # There doesn't appear to be a way to prevent this compiler from
11770         # explicitly linking system object files so we need to strip them
11771         # from the output so that they don't get included in the library
11772         # dependencies.
11773         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'
11774         ;;
11775     esac
11776     ;;
11777   lynxos*)
11778     # FIXME: insert proper C++ library support
11779     ld_shlibs_CXX=no
11780     ;;
11781   m88k*)
11782     # FIXME: insert proper C++ library support
11783     ld_shlibs_CXX=no
11784     ;;
11785   mvs*)
11786     case $cc_basename in
11787       cxx)
11788         # FIXME: insert proper C++ library support
11789         ld_shlibs_CXX=no
11790         ;;
11791       *)
11792         # FIXME: insert proper C++ library support
11793         ld_shlibs_CXX=no
11794         ;;
11795     esac
11796     ;;
11797   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11798     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11799       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11800       wlarc=
11801       hardcode_libdir_flag_spec_CXX='-R$libdir'
11802       hardcode_direct_CXX=yes
11803       hardcode_shlibpath_var_CXX=no
11804     fi
11805     # Workaround some broken pre-1.5 toolchains
11806     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11807     ;;
11808   osf3*)
11809     case $cc_basename in
11810       KCC)
11811         # Kuck and Associates, Inc. (KAI) C++ Compiler
11812
11813         # KCC will only create a shared library if the output file
11814         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11815         # to its proper name (with version) after linking.
11816         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'
11817
11818         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819         hardcode_libdir_separator_CXX=:
11820
11821         # Archives containing C++ object files must be created using
11822         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824
11825         ;;
11826       RCC)
11827         # Rational C++ 2.4.1
11828         # FIXME: insert proper C++ library support
11829         ld_shlibs_CXX=no
11830         ;;
11831       cxx)
11832         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833         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 ${objdir}/so_locations -o $lib'
11834
11835         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836         hardcode_libdir_separator_CXX=:
11837
11838         # Commands to make compiler produce verbose output that lists
11839         # what "hidden" libraries, object files and flags are used when
11840         # linking a shared library.
11841         #
11842         # There doesn't appear to be a way to prevent this compiler from
11843         # explicitly linking system object files so we need to strip them
11844         # from the output so that they don't get included in the library
11845         # dependencies.
11846         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'
11847         ;;
11848       *)
11849         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11850           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11851           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}${objdir}/so_locations -o $lib'
11852
11853           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854           hardcode_libdir_separator_CXX=:
11855
11856           # Commands to make compiler produce verbose output that lists
11857           # what "hidden" libraries, object files and flags are used when
11858           # linking a shared library.
11859           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11860
11861         else
11862           # FIXME: insert proper C++ library support
11863           ld_shlibs_CXX=no
11864         fi
11865         ;;
11866     esac
11867     ;;
11868   osf4* | osf5*)
11869     case $cc_basename in
11870       KCC)
11871         # Kuck and Associates, Inc. (KAI) C++ Compiler
11872
11873         # KCC will only create a shared library if the output file
11874         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11875         # to its proper name (with version) after linking.
11876         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'
11877
11878         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879         hardcode_libdir_separator_CXX=:
11880
11881         # Archives containing C++ object files must be created using
11882         # the KAI C++ compiler.
11883         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11884         ;;
11885       RCC)
11886         # Rational C++ 2.4.1
11887         # FIXME: insert proper C++ library support
11888         ld_shlibs_CXX=no
11889         ;;
11890       cxx)
11891         allow_undefined_flag_CXX=' -expect_unresolved \*'
11892         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 ${objdir}/so_locations -o $lib'
11893         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11894           echo "-hidden">> $lib.exp~
11895           $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 $objdir/so_locations -o $lib~
11896           $rm $lib.exp'
11897
11898         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899         hardcode_libdir_separator_CXX=:
11900
11901         # Commands to make compiler produce verbose output that lists
11902         # what "hidden" libraries, object files and flags are used when
11903         # linking a shared library.
11904         #
11905         # There doesn't appear to be a way to prevent this compiler from
11906         # explicitly linking system object files so we need to strip them
11907         # from the output so that they don't get included in the library
11908         # dependencies.
11909         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'
11910         ;;
11911       *)
11912         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11914          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}${objdir}/so_locations -o $lib'
11915
11916           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11917           hardcode_libdir_separator_CXX=:
11918
11919           # Commands to make compiler produce verbose output that lists
11920           # what "hidden" libraries, object files and flags are used when
11921           # linking a shared library.
11922           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11923
11924         else
11925           # FIXME: insert proper C++ library support
11926           ld_shlibs_CXX=no
11927         fi
11928         ;;
11929     esac
11930     ;;
11931   psos*)
11932     # FIXME: insert proper C++ library support
11933     ld_shlibs_CXX=no
11934     ;;
11935   sco*)
11936     archive_cmds_need_lc_CXX=no
11937     case $cc_basename in
11938       CC)
11939         # FIXME: insert proper C++ library support
11940         ld_shlibs_CXX=no
11941         ;;
11942       *)
11943         # FIXME: insert proper C++ library support
11944         ld_shlibs_CXX=no
11945         ;;
11946     esac
11947     ;;
11948   sunos4*)
11949     case $cc_basename in
11950       CC)
11951         # Sun C++ 4.x
11952         # FIXME: insert proper C++ library support
11953         ld_shlibs_CXX=no
11954         ;;
11955       lcc)
11956         # Lucid
11957         # FIXME: insert proper C++ library support
11958         ld_shlibs_CXX=no
11959         ;;
11960       *)
11961         # FIXME: insert proper C++ library support
11962         ld_shlibs_CXX=no
11963         ;;
11964     esac
11965     ;;
11966   solaris*)
11967     case $cc_basename in
11968       CC)
11969         # Sun C++ 4.2, 5.x and Centerline C++
11970         no_undefined_flag_CXX=' -zdefs'
11971         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11973         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11974
11975         hardcode_libdir_flag_spec_CXX='-R$libdir'
11976         hardcode_shlibpath_var_CXX=no
11977         case $host_os in
11978           solaris2.0-5 | solaris2.0-5.*) ;;
11979           *)
11980             # The C++ compiler is used as linker so we must use $wl
11981             # flag to pass the commands to the underlying system
11982             # linker.
11983             # Supported since Solaris 2.6 (maybe 2.5.1?)
11984             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11985             ;;
11986         esac
11987         link_all_deplibs_CXX=yes
11988
11989         # Commands to make compiler produce verbose output that lists
11990         # what "hidden" libraries, object files and flags are used when
11991         # linking a shared library.
11992         #
11993         # There doesn't appear to be a way to prevent this compiler from
11994         # explicitly linking system object files so we need to strip them
11995         # from the output so that they don't get included in the library
11996         # dependencies.
11997         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11998
11999         # Archives containing C++ object files must be created using
12000         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12001         # necessary to make sure instantiated templates are included
12002         # in the archive.
12003         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12004         ;;
12005       gcx)
12006         # Green Hills C++ Compiler
12007         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12008
12009         # The C++ compiler must be used to create the archive.
12010         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12011         ;;
12012       *)
12013         # GNU C++ compiler with Solaris linker
12014         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12016           if $CC --version | grep -v '^2\.7' > /dev/null; then
12017             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12018             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12020
12021             # Commands to make compiler produce verbose output that lists
12022             # what "hidden" libraries, object files and flags are used when
12023             # linking a shared library.
12024             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12025           else
12026             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12027             # platform.
12028             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12029             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12030                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12031
12032             # Commands to make compiler produce verbose output that lists
12033             # what "hidden" libraries, object files and flags are used when
12034             # linking a shared library.
12035             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12036           fi
12037
12038           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12039         fi
12040         ;;
12041     esac
12042     ;;
12043   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12044     archive_cmds_need_lc_CXX=no
12045     ;;
12046   tandem*)
12047     case $cc_basename in
12048       NCC)
12049         # NonStop-UX NCC 3.20
12050         # FIXME: insert proper C++ library support
12051         ld_shlibs_CXX=no
12052         ;;
12053       *)
12054         # FIXME: insert proper C++ library support
12055         ld_shlibs_CXX=no
12056         ;;
12057     esac
12058     ;;
12059   vxworks*)
12060     # FIXME: insert proper C++ library support
12061     ld_shlibs_CXX=no
12062     ;;
12063   *)
12064     # FIXME: insert proper C++ library support
12065     ld_shlibs_CXX=no
12066     ;;
12067 esac
12068 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12069 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12070 test "$ld_shlibs_CXX" = no && can_build_shared=no
12071
12072 GCC_CXX="$GXX"
12073 LD_CXX="$LD"
12074
12075 ## CAVEAT EMPTOR:
12076 ## There is no encapsulation within the following macros, do not change
12077 ## the running order or otherwise move them around unless you know exactly
12078 ## what you are doing...
12079
12080 cat > conftest.$ac_ext <<EOF
12081 class Foo
12082 {
12083 public:
12084   Foo (void) { a = 0; }
12085 private:
12086   int a;
12087 };
12088 EOF
12089
12090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091   (eval $ac_compile) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; then
12095   # Parse the compiler output and extract the necessary
12096   # objects, libraries and library flags.
12097
12098   # Sentinel used to keep track of whether or not we are before
12099   # the conftest object file.
12100   pre_test_object_deps_done=no
12101
12102   # The `*' in the case matches for architectures that use `case' in
12103   # $output_verbose_cmd can trigger glob expansion during the loop
12104   # eval without this substitution.
12105   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12106
12107   for p in `eval $output_verbose_link_cmd`; do
12108     case $p in
12109
12110     -L* | -R* | -l*)
12111        # Some compilers place space between "-{L,R}" and the path.
12112        # Remove the space.
12113        if test $p = "-L" \
12114           || test $p = "-R"; then
12115          prev=$p
12116          continue
12117        else
12118          prev=
12119        fi
12120
12121        if test "$pre_test_object_deps_done" = no; then
12122          case $p in
12123          -L* | -R*)
12124            # Internal compiler library paths should come after those
12125            # provided the user.  The postdeps already come after the
12126            # user supplied libs so there is no need to process them.
12127            if test -z "$compiler_lib_search_path_CXX"; then
12128              compiler_lib_search_path_CXX="${prev}${p}"
12129            else
12130              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12131            fi
12132            ;;
12133          # The "-l" case would never come before the object being
12134          # linked, so don't bother handling this case.
12135          esac
12136        else
12137          if test -z "$postdeps_CXX"; then
12138            postdeps_CXX="${prev}${p}"
12139          else
12140            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12141          fi
12142        fi
12143        ;;
12144
12145     *.$objext)
12146        # This assumes that the test object file only shows up
12147        # once in the compiler output.
12148        if test "$p" = "conftest.$objext"; then
12149          pre_test_object_deps_done=yes
12150          continue
12151        fi
12152
12153        if test "$pre_test_object_deps_done" = no; then
12154          if test -z "$predep_objects_CXX"; then
12155            predep_objects_CXX="$p"
12156          else
12157            predep_objects_CXX="$predep_objects_CXX $p"
12158          fi
12159        else
12160          if test -z "$postdep_objects_CXX"; then
12161            postdep_objects_CXX="$p"
12162          else
12163            postdep_objects_CXX="$postdep_objects_CXX $p"
12164          fi
12165        fi
12166        ;;
12167
12168     *) ;; # Ignore the rest.
12169
12170     esac
12171   done
12172
12173   # Clean up.
12174   rm -f a.out a.exe
12175 else
12176   echo "libtool.m4: error: problem compiling CXX test program"
12177 fi
12178
12179 $rm -f confest.$objext
12180
12181 case " $postdeps_CXX " in
12182 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12183 esac
12184
12185 lt_prog_compiler_wl_CXX=
12186 lt_prog_compiler_pic_CXX=
12187 lt_prog_compiler_static_CXX=
12188
12189 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12190 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12191
12192   # C++ specific cases for pic, static, wl, etc.
12193   if test "$GXX" = yes; then
12194     lt_prog_compiler_wl_CXX='-Wl,'
12195     lt_prog_compiler_static_CXX='-static'
12196
12197     case $host_os in
12198     aix*)
12199       # All AIX code is PIC.
12200       if test "$host_cpu" = ia64; then
12201         # AIX 5 now supports IA64 processor
12202         lt_prog_compiler_static_CXX='-Bstatic'
12203       fi
12204       ;;
12205     amigaos*)
12206       # FIXME: we need at least 68020 code to build shared libraries, but
12207       # adding the `-m68020' flag to GCC prevents building anything better,
12208       # like `-m68040'.
12209       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12210       ;;
12211     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12212       # PIC is the default for these OSes.
12213       ;;
12214     mingw* | os2* | pw32*)
12215       # This hack is so that the source file can tell whether it is being
12216       # built for inclusion in a dll (and should export symbols for example).
12217       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12218       ;;
12219     darwin* | rhapsody*)
12220       # PIC is the default on this platform
12221       # Common symbols not allowed in MH_DYLIB files
12222       lt_prog_compiler_pic_CXX='-fno-common'
12223       ;;
12224     *djgpp*)
12225       # DJGPP does not support shared libraries at all
12226       lt_prog_compiler_pic_CXX=
12227       ;;
12228     sysv4*MP*)
12229       if test -d /usr/nec; then
12230         lt_prog_compiler_pic_CXX=-Kconform_pic
12231       fi
12232       ;;
12233     hpux*)
12234       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12235       # not for PA HP-UX.
12236       case "$host_cpu" in
12237       hppa*64*|ia64*)
12238         ;;
12239       *)
12240         lt_prog_compiler_pic_CXX='-fPIC'
12241         ;;
12242       esac
12243       ;;
12244     *)
12245       lt_prog_compiler_pic_CXX='-fPIC'
12246       ;;
12247     esac
12248   else
12249     case $host_os in
12250       aix4* | aix5*)
12251         # All AIX code is PIC.
12252         if test "$host_cpu" = ia64; then
12253           # AIX 5 now supports IA64 processor
12254           lt_prog_compiler_static_CXX='-Bstatic'
12255         else
12256           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12257         fi
12258         ;;
12259       chorus*)
12260         case $cc_basename in
12261         cxch68)
12262           # Green Hills C++ Compiler
12263           # _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"
12264           ;;
12265         esac
12266         ;;
12267       dgux*)
12268         case $cc_basename in
12269           ec++)
12270             lt_prog_compiler_pic_CXX='-KPIC'
12271             ;;
12272           ghcx)
12273             # Green Hills C++ Compiler
12274             lt_prog_compiler_pic_CXX='-pic'
12275             ;;
12276           *)
12277             ;;
12278         esac
12279         ;;
12280       freebsd* | kfreebsd*-gnu)
12281         # FreeBSD uses GNU C++
12282         ;;
12283       hpux9* | hpux10* | hpux11*)
12284         case $cc_basename in
12285           CC)
12286             lt_prog_compiler_wl_CXX='-Wl,'
12287             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12288             if test "$host_cpu" != ia64; then
12289               lt_prog_compiler_pic_CXX='+Z'
12290             fi
12291             ;;
12292           aCC)
12293             lt_prog_compiler_wl_CXX='-Wl,'
12294             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12295             case "$host_cpu" in
12296             hppa*64*|ia64*)
12297               # +Z the default
12298               ;;
12299             *)
12300               lt_prog_compiler_pic_CXX='+Z'
12301               ;;
12302             esac
12303             ;;
12304           *)
12305             ;;
12306         esac
12307         ;;
12308       irix5* | irix6* | nonstopux*)
12309         case $cc_basename in
12310           CC)
12311             lt_prog_compiler_wl_CXX='-Wl,'
12312             lt_prog_compiler_static_CXX='-non_shared'
12313             # CC pic flag -KPIC is the default.
12314             ;;
12315           *)
12316             ;;
12317         esac
12318         ;;
12319       linux*)
12320         case $cc_basename in
12321           KCC)
12322             # KAI C++ Compiler
12323             lt_prog_compiler_wl_CXX='--backend -Wl,'
12324             lt_prog_compiler_pic_CXX='-fPIC'
12325             ;;
12326           icpc)
12327             # Intel C++
12328             lt_prog_compiler_wl_CXX='-Wl,'
12329             lt_prog_compiler_pic_CXX='-KPIC'
12330             lt_prog_compiler_static_CXX='-static'
12331             ;;
12332           cxx)
12333             # Compaq C++
12334             # Make sure the PIC flag is empty.  It appears that all Alpha
12335             # Linux and Compaq Tru64 Unix objects are PIC.
12336             lt_prog_compiler_pic_CXX=
12337             lt_prog_compiler_static_CXX='-non_shared'
12338             ;;
12339           *)
12340             ;;
12341         esac
12342         ;;
12343       lynxos*)
12344         ;;
12345       m88k*)
12346         ;;
12347       mvs*)
12348         case $cc_basename in
12349           cxx)
12350             lt_prog_compiler_pic_CXX='-W c,exportall'
12351             ;;
12352           *)
12353             ;;
12354         esac
12355         ;;
12356       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12357         ;;
12358       osf3* | osf4* | osf5*)
12359         case $cc_basename in
12360           KCC)
12361             lt_prog_compiler_wl_CXX='--backend -Wl,'
12362             ;;
12363           RCC)
12364             # Rational C++ 2.4.1
12365             lt_prog_compiler_pic_CXX='-pic'
12366             ;;
12367           cxx)
12368             # Digital/Compaq C++
12369             lt_prog_compiler_wl_CXX='-Wl,'
12370             # Make sure the PIC flag is empty.  It appears that all Alpha
12371             # Linux and Compaq Tru64 Unix objects are PIC.
12372             lt_prog_compiler_pic_CXX=
12373             lt_prog_compiler_static_CXX='-non_shared'
12374             ;;
12375           *)
12376             ;;
12377         esac
12378         ;;
12379       psos*)
12380         ;;
12381       sco*)
12382         case $cc_basename in
12383           CC)
12384             lt_prog_compiler_pic_CXX='-fPIC'
12385             ;;
12386           *)
12387             ;;
12388         esac
12389         ;;
12390       solaris*)
12391         case $cc_basename in
12392           CC)
12393             # Sun C++ 4.2, 5.x and Centerline C++
12394             lt_prog_compiler_pic_CXX='-KPIC'
12395             lt_prog_compiler_static_CXX='-Bstatic'
12396             lt_prog_compiler_wl_CXX='-Qoption ld '
12397             ;;
12398           gcx)
12399             # Green Hills C++ Compiler
12400             lt_prog_compiler_pic_CXX='-PIC'
12401             ;;
12402           *)
12403             ;;
12404         esac
12405         ;;
12406       sunos4*)
12407         case $cc_basename in
12408           CC)
12409             # Sun C++ 4.x
12410             lt_prog_compiler_pic_CXX='-pic'
12411             lt_prog_compiler_static_CXX='-Bstatic'
12412             ;;
12413           lcc)
12414             # Lucid
12415             lt_prog_compiler_pic_CXX='-pic'
12416             ;;
12417           *)
12418             ;;
12419         esac
12420         ;;
12421       tandem*)
12422         case $cc_basename in
12423           NCC)
12424             # NonStop-UX NCC 3.20
12425             lt_prog_compiler_pic_CXX='-KPIC'
12426             ;;
12427           *)
12428             ;;
12429         esac
12430         ;;
12431       unixware*)
12432         ;;
12433       vxworks*)
12434         ;;
12435       *)
12436         lt_prog_compiler_can_build_shared_CXX=no
12437         ;;
12438     esac
12439   fi
12440
12441 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12442 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12443
12444 #
12445 # Check to make sure the PIC flag actually works.
12446 #
12447 if test -n "$lt_prog_compiler_pic_CXX"; then
12448
12449 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12450 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12451 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   lt_prog_compiler_pic_works_CXX=no
12455   ac_outfile=conftest.$ac_objext
12456    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12457    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12458    # Insert the option either (1) after the last *FLAGS variable, or
12459    # (2) before a word containing "conftest.", or (3) at the end.
12460    # Note that $ac_compile itself does not contain backslashes and begins
12461    # with a dollar sign (not a hyphen), so the echo should work correctly.
12462    # The option is referenced via a variable to avoid confusing sed.
12463    lt_compile=`echo "$ac_compile" | $SED \
12464    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12466    -e 's:$: $lt_compiler_flag:'`
12467    (eval echo "\"\$as_me:12467: $lt_compile\"" >&5)
12468    (eval "$lt_compile" 2>conftest.err)
12469    ac_status=$?
12470    cat conftest.err >&5
12471    echo "$as_me:12471: \$? = $ac_status" >&5
12472    if (exit $ac_status) && test -s "$ac_outfile"; then
12473      # The compiler can only warn and ignore the option if not recognized
12474      # So say no if there are warnings
12475      if test ! -s conftest.err; then
12476        lt_prog_compiler_pic_works_CXX=yes
12477      fi
12478    fi
12479    $rm conftest*
12480
12481 fi
12482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12483 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12484
12485 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12486     case $lt_prog_compiler_pic_CXX in
12487      "" | " "*) ;;
12488      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12489      esac
12490 else
12491     lt_prog_compiler_pic_CXX=
12492      lt_prog_compiler_can_build_shared_CXX=no
12493 fi
12494
12495 fi
12496 case "$host_os" in
12497   # For platforms which do not support PIC, -DPIC is meaningless:
12498   *djgpp*)
12499     lt_prog_compiler_pic_CXX=
12500     ;;
12501   *)
12502     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12503     ;;
12504 esac
12505
12506 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12507 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12508 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   lt_cv_prog_compiler_c_o_CXX=no
12512    $rm -r conftest 2>/dev/null
12513    mkdir conftest
12514    cd conftest
12515    mkdir out
12516    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12517
12518    lt_compiler_flag="-o out/conftest2.$ac_objext"
12519    # Insert the option either (1) after the last *FLAGS variable, or
12520    # (2) before a word containing "conftest.", or (3) at the end.
12521    # Note that $ac_compile itself does not contain backslashes and begins
12522    # with a dollar sign (not a hyphen), so the echo should work correctly.
12523    lt_compile=`echo "$ac_compile" | $SED \
12524    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12525    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526    -e 's:$: $lt_compiler_flag:'`
12527    (eval echo "\"\$as_me:12527: $lt_compile\"" >&5)
12528    (eval "$lt_compile" 2>out/conftest.err)
12529    ac_status=$?
12530    cat out/conftest.err >&5
12531    echo "$as_me:12531: \$? = $ac_status" >&5
12532    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12533    then
12534      # The compiler can only warn and ignore the option if not recognized
12535      # So say no if there are warnings
12536      if test ! -s out/conftest.err; then
12537        lt_cv_prog_compiler_c_o_CXX=yes
12538      fi
12539    fi
12540    chmod u+w .
12541    $rm conftest*
12542    # SGI C++ compiler will create directory out/ii_files/ for
12543    # template instantiation
12544    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12545    $rm out/* && rmdir out
12546    cd ..
12547    rmdir conftest
12548    $rm conftest*
12549
12550 fi
12551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12552 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12553
12554
12555 hard_links="nottested"
12556 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12557   # do not overwrite the value of need_locks provided by the user
12558   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12559 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12560   hard_links=yes
12561   $rm conftest*
12562   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12563   touch conftest.a
12564   ln conftest.a conftest.b 2>&5 || hard_links=no
12565   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566   { echo "$as_me:$LINENO: result: $hard_links" >&5
12567 echo "${ECHO_T}$hard_links" >&6; }
12568   if test "$hard_links" = no; then
12569     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12570 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12571     need_locks=warn
12572   fi
12573 else
12574   need_locks=no
12575 fi
12576
12577 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12578 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12579
12580   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12581   case $host_os in
12582   aix4* | aix5*)
12583     # If we're using GNU nm, then we don't want the "-C" option.
12584     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12585     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12586       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'
12587     else
12588       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'
12589     fi
12590     ;;
12591   pw32*)
12592     export_symbols_cmds_CXX="$ltdll_cmds"
12593   ;;
12594   cygwin* | mingw*)
12595     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12596   ;;
12597   linux*)
12598     link_all_deplibs_CXX=no
12599   ;;
12600   *)
12601     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12602   ;;
12603   esac
12604
12605 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12606 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12607 test "$ld_shlibs_CXX" = no && can_build_shared=no
12608
12609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12610 if test "$GCC" = yes; then
12611   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12612 fi
12613
12614 #
12615 # Do we need to explicitly link libc?
12616 #
12617 case "x$archive_cmds_need_lc_CXX" in
12618 x|xyes)
12619   # Assume -lc should be added
12620   archive_cmds_need_lc_CXX=yes
12621
12622   if test "$enable_shared" = yes && test "$GCC" = yes; then
12623     case $archive_cmds_CXX in
12624     *'~'*)
12625       # FIXME: we may have to deal with multi-command sequences.
12626       ;;
12627     '$CC '*)
12628       # Test whether the compiler implicitly links with -lc since on some
12629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12630       # to ld, don't add -lc before -lgcc.
12631       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12633       $rm conftest*
12634       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12635
12636       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } 2>conftest.err; then
12641         soname=conftest
12642         lib=conftest
12643         libobjs=conftest.$ac_objext
12644         deplibs=
12645         wl=$lt_prog_compiler_wl_CXX
12646         compiler_flags=-v
12647         linker_flags=-v
12648         verstring=
12649         output_objdir=.
12650         libname=conftest
12651         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12652         allow_undefined_flag_CXX=
12653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12654   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }
12658         then
12659           archive_cmds_need_lc_CXX=no
12660         else
12661           archive_cmds_need_lc_CXX=yes
12662         fi
12663         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12664       else
12665         cat conftest.err 1>&5
12666       fi
12667       $rm conftest*
12668       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12669 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12670       ;;
12671     esac
12672   fi
12673   ;;
12674 esac
12675
12676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12678 library_names_spec=
12679 libname_spec='lib$name'
12680 soname_spec=
12681 shrext_cmds=".so"
12682 postinstall_cmds=
12683 postuninstall_cmds=
12684 finish_cmds=
12685 finish_eval=
12686 shlibpath_var=
12687 shlibpath_overrides_runpath=unknown
12688 version_type=none
12689 dynamic_linker="$host_os ld.so"
12690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12691 if test "$GCC" = yes; then
12692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12694     # if the path contains ";" then we assume it to be the separator
12695     # otherwise default to the standard path separator (i.e. ":") - it is
12696     # assumed that no part of a normal pathname contains ";" but that should
12697     # okay in the real world where ";" in dirpaths is itself problematic.
12698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12699   else
12700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12701   fi
12702 else
12703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12704 fi
12705 need_lib_prefix=unknown
12706 hardcode_into_libs=no
12707
12708 # when you set need_version to no, make sure it does not cause -set_version
12709 # flags to be left without arguments
12710 need_version=unknown
12711
12712 case $host_os in
12713 aix3*)
12714   version_type=linux
12715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12716   shlibpath_var=LIBPATH
12717
12718   # AIX 3 has no versioning support, so we append a major version to the name.
12719   soname_spec='${libname}${release}${shared_ext}$major'
12720   ;;
12721
12722 aix4* | aix5*)
12723   version_type=linux
12724   need_lib_prefix=no
12725   need_version=no
12726   hardcode_into_libs=yes
12727   if test "$host_cpu" = ia64; then
12728     # AIX 5 supports IA64
12729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12730     shlibpath_var=LD_LIBRARY_PATH
12731   else
12732     # With GCC up to 2.95.x, collect2 would create an import file
12733     # for dependence libraries.  The import file would start with
12734     # the line `#! .'.  This would cause the generated library to
12735     # depend on `.', always an invalid library.  This was fixed in
12736     # development snapshots of GCC prior to 3.0.
12737     case $host_os in
12738       aix4 | aix4.[01] | aix4.[01].*)
12739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12740            echo ' yes '
12741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12742         :
12743       else
12744         can_build_shared=no
12745       fi
12746       ;;
12747     esac
12748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12749     # soname into executable. Probably we can add versioning support to
12750     # collect2, so additional links can be useful in future.
12751     if test "$aix_use_runtimelinking" = yes; then
12752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12753       # instead of lib<name>.a to let people know that these are not
12754       # typical AIX shared libraries.
12755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756     else
12757       # We preserve .a as extension for shared libraries through AIX4.2
12758       # and later when we are not doing run time linking.
12759       library_names_spec='${libname}${release}.a $libname.a'
12760       soname_spec='${libname}${release}${shared_ext}$major'
12761     fi
12762     shlibpath_var=LIBPATH
12763   fi
12764   ;;
12765
12766 amigaos*)
12767   library_names_spec='$libname.ixlibrary $libname.a'
12768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12769   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'
12770   ;;
12771
12772 beos*)
12773   library_names_spec='${libname}${shared_ext}'
12774   dynamic_linker="$host_os ld.so"
12775   shlibpath_var=LIBRARY_PATH
12776   ;;
12777
12778 bsdi4*)
12779   version_type=linux
12780   need_version=no
12781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782   soname_spec='${libname}${release}${shared_ext}$major'
12783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12784   shlibpath_var=LD_LIBRARY_PATH
12785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12787   # the default ld.so.conf also contains /usr/contrib/lib and
12788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12789   # libtool to hard-code these into programs
12790   ;;
12791
12792 cygwin* | mingw* | pw32*)
12793   version_type=windows
12794   shrext_cmds=".dll"
12795   need_version=no
12796   need_lib_prefix=no
12797
12798   case $GCC,$host_os in
12799   yes,cygwin* | yes,mingw* | yes,pw32*)
12800     library_names_spec='$libname.dll.a'
12801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12802     postinstall_cmds='base_file=`basename \${file}`~
12803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12804       dldir=$destdir/`dirname \$dlpath`~
12805       test -d \$dldir || mkdir -p \$dldir~
12806       $install_prog $dir/$dlname \$dldir/$dlname'
12807     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12808       dlpath=$dir/\$dldll~
12809        $rm \$dlpath'
12810     shlibpath_overrides_runpath=yes
12811
12812     case $host_os in
12813     cygwin*)
12814       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12815       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12816       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12817       ;;
12818     mingw*)
12819       # MinGW DLLs use traditional 'lib' prefix
12820       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12822       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12823         # It is most probably a Windows format PATH printed by
12824         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12825         # path with ; separators, and with drive letters. We can handle the
12826         # drive letters (cygwin fileutils understands them), so leave them,
12827         # especially as we might pass files found there to a mingw objdump,
12828         # which wouldn't understand a cygwinified path. Ahh.
12829         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12830       else
12831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12832       fi
12833       ;;
12834     pw32*)
12835       # pw32 DLLs use 'pw' prefix rather than 'lib'
12836       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12837       ;;
12838     esac
12839     ;;
12840
12841   *)
12842     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12843     ;;
12844   esac
12845   dynamic_linker='Win32 ld.exe'
12846   # FIXME: first we should search . and the directory the executable is in
12847   shlibpath_var=PATH
12848   ;;
12849
12850 darwin* | rhapsody*)
12851   dynamic_linker="$host_os dyld"
12852   version_type=darwin
12853   need_lib_prefix=no
12854   need_version=no
12855   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12856   soname_spec='${libname}${release}${major}$shared_ext'
12857   shlibpath_overrides_runpath=yes
12858   shlibpath_var=DYLD_LIBRARY_PATH
12859   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12860   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12861   if test "$GCC" = yes; then
12862     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"`
12863   else
12864     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12865   fi
12866   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12867   ;;
12868
12869 dgux*)
12870   version_type=linux
12871   need_lib_prefix=no
12872   need_version=no
12873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12874   soname_spec='${libname}${release}${shared_ext}$major'
12875   shlibpath_var=LD_LIBRARY_PATH
12876   ;;
12877
12878 freebsd1*)
12879   dynamic_linker=no
12880   ;;
12881
12882 kfreebsd*-gnu)
12883   version_type=linux
12884   need_lib_prefix=no
12885   need_version=no
12886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12887   soname_spec='${libname}${release}${shared_ext}$major'
12888   shlibpath_var=LD_LIBRARY_PATH
12889   shlibpath_overrides_runpath=no
12890   hardcode_into_libs=yes
12891   dynamic_linker='GNU ld.so'
12892   ;;
12893
12894 freebsd*)
12895   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12896   version_type=freebsd-$objformat
12897   case $version_type in
12898     freebsd-elf*)
12899       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12900       need_version=no
12901       need_lib_prefix=no
12902       ;;
12903     freebsd-*)
12904       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12905       need_version=yes
12906       ;;
12907   esac
12908   shlibpath_var=LD_LIBRARY_PATH
12909   case $host_os in
12910   freebsd2*)
12911     shlibpath_overrides_runpath=yes
12912     ;;
12913   freebsd3.01* | freebsdelf3.01*)
12914     shlibpath_overrides_runpath=yes
12915     hardcode_into_libs=yes
12916     ;;
12917   *) # from 3.2 on
12918     shlibpath_overrides_runpath=no
12919     hardcode_into_libs=yes
12920     ;;
12921   esac
12922   ;;
12923
12924 gnu*)
12925   version_type=linux
12926   need_lib_prefix=no
12927   need_version=no
12928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12929   soname_spec='${libname}${release}${shared_ext}$major'
12930   shlibpath_var=LD_LIBRARY_PATH
12931   hardcode_into_libs=yes
12932   ;;
12933
12934 hpux9* | hpux10* | hpux11*)
12935   # Give a soname corresponding to the major version so that dld.sl refuses to
12936   # link against other versions.
12937   version_type=sunos
12938   need_lib_prefix=no
12939   need_version=no
12940   case "$host_cpu" in
12941   ia64*)
12942     shrext_cmds='.so'
12943     hardcode_into_libs=yes
12944     dynamic_linker="$host_os dld.so"
12945     shlibpath_var=LD_LIBRARY_PATH
12946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948     soname_spec='${libname}${release}${shared_ext}$major'
12949     if test "X$HPUX_IA64_MODE" = X32; then
12950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12951     else
12952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12953     fi
12954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12955     ;;
12956    hppa*64*)
12957      shrext_cmds='.sl'
12958      hardcode_into_libs=yes
12959      dynamic_linker="$host_os dld.sl"
12960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963      soname_spec='${libname}${release}${shared_ext}$major'
12964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12966      ;;
12967    *)
12968     shrext_cmds='.sl'
12969     dynamic_linker="$host_os dld.sl"
12970     shlibpath_var=SHLIB_PATH
12971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973     soname_spec='${libname}${release}${shared_ext}$major'
12974     ;;
12975   esac
12976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12977   postinstall_cmds='chmod 555 $lib'
12978   ;;
12979
12980 irix5* | irix6* | nonstopux*)
12981   case $host_os in
12982     nonstopux*) version_type=nonstopux ;;
12983     *)
12984         if test "$lt_cv_prog_gnu_ld" = yes; then
12985                 version_type=linux
12986         else
12987                 version_type=irix
12988         fi ;;
12989   esac
12990   need_lib_prefix=no
12991   need_version=no
12992   soname_spec='${libname}${release}${shared_ext}$major'
12993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12994   case $host_os in
12995   irix5* | nonstopux*)
12996     libsuff= shlibsuff=
12997     ;;
12998   *)
12999     case $LD in # libtool.m4 will add one of these switches to LD
13000     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13001       libsuff= shlibsuff= libmagic=32-bit;;
13002     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13003       libsuff=32 shlibsuff=N32 libmagic=N32;;
13004     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13005       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13006     *) libsuff= shlibsuff= libmagic=never-match;;
13007     esac
13008     ;;
13009   esac
13010   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13011   shlibpath_overrides_runpath=no
13012   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13013   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13014   hardcode_into_libs=yes
13015   ;;
13016
13017 # No shared lib support for Linux oldld, aout, or coff.
13018 linux*oldld* | linux*aout* | linux*coff*)
13019   dynamic_linker=no
13020   ;;
13021
13022 # This must be Linux ELF.
13023 linux*)
13024   version_type=linux
13025   need_lib_prefix=no
13026   need_version=no
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028   soname_spec='${libname}${release}${shared_ext}$major'
13029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13030   shlibpath_var=LD_LIBRARY_PATH
13031   shlibpath_overrides_runpath=no
13032   # This implies no fast_install, which is unacceptable.
13033   # Some rework will be needed to allow for fast_install
13034   # before this can be enabled.
13035   hardcode_into_libs=yes
13036
13037   # Append ld.so.conf contents to the search path
13038   if test -f /etc/ld.so.conf; then
13039     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13040     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13041   fi
13042
13043   # We used to test for /lib/ld.so.1 and disable shared libraries on
13044   # powerpc, because MkLinux only supported shared libraries with the
13045   # GNU dynamic linker.  Since this was broken with cross compilers,
13046   # most powerpc-linux boxes support dynamic linking these days and
13047   # people can always --disable-shared, the test was removed, and we
13048   # assume the GNU/Linux dynamic linker is in use.
13049   dynamic_linker='GNU/Linux ld.so'
13050   ;;
13051
13052 netbsdelf*-gnu)
13053   version_type=linux
13054   need_lib_prefix=no
13055   need_version=no
13056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13057   soname_spec='${libname}${release}${shared_ext}$major'
13058   shlibpath_var=LD_LIBRARY_PATH
13059   shlibpath_overrides_runpath=no
13060   hardcode_into_libs=yes
13061   dynamic_linker='NetBSD ld.elf_so'
13062   ;;
13063
13064 knetbsd*-gnu)
13065   version_type=linux
13066   need_lib_prefix=no
13067   need_version=no
13068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13069   soname_spec='${libname}${release}${shared_ext}$major'
13070   shlibpath_var=LD_LIBRARY_PATH
13071   shlibpath_overrides_runpath=no
13072   hardcode_into_libs=yes
13073   dynamic_linker='GNU ld.so'
13074   ;;
13075
13076 netbsd*)
13077   version_type=sunos
13078   need_lib_prefix=no
13079   need_version=no
13080   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13082     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13083     dynamic_linker='NetBSD (a.out) ld.so'
13084   else
13085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086     soname_spec='${libname}${release}${shared_ext}$major'
13087     dynamic_linker='NetBSD ld.elf_so'
13088   fi
13089   shlibpath_var=LD_LIBRARY_PATH
13090   shlibpath_overrides_runpath=yes
13091   hardcode_into_libs=yes
13092   ;;
13093
13094 newsos6)
13095   version_type=linux
13096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   shlibpath_overrides_runpath=yes
13099   ;;
13100
13101 nto-qnx*)
13102   version_type=linux
13103   need_lib_prefix=no
13104   need_version=no
13105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106   soname_spec='${libname}${release}${shared_ext}$major'
13107   shlibpath_var=LD_LIBRARY_PATH
13108   shlibpath_overrides_runpath=yes
13109   ;;
13110
13111 openbsd*)
13112   version_type=sunos
13113   need_lib_prefix=no
13114   need_version=yes
13115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117   shlibpath_var=LD_LIBRARY_PATH
13118   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13119     case $host_os in
13120       openbsd2.[89] | openbsd2.[89].*)
13121         shlibpath_overrides_runpath=no
13122         ;;
13123       *)
13124         shlibpath_overrides_runpath=yes
13125         ;;
13126       esac
13127   else
13128     shlibpath_overrides_runpath=yes
13129   fi
13130   ;;
13131
13132 os2*)
13133   libname_spec='$name'
13134   shrext_cmds=".dll"
13135   need_lib_prefix=no
13136   library_names_spec='$libname${shared_ext} $libname.a'
13137   dynamic_linker='OS/2 ld.exe'
13138   shlibpath_var=LIBPATH
13139   ;;
13140
13141 osf3* | osf4* | osf5*)
13142   version_type=osf
13143   need_lib_prefix=no
13144   need_version=no
13145   soname_spec='${libname}${release}${shared_ext}$major'
13146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147   shlibpath_var=LD_LIBRARY_PATH
13148   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13149   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13150   ;;
13151
13152 sco3.2v5*)
13153   version_type=osf
13154   soname_spec='${libname}${release}${shared_ext}$major'
13155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156   shlibpath_var=LD_LIBRARY_PATH
13157   ;;
13158
13159 solaris*)
13160   version_type=linux
13161   need_lib_prefix=no
13162   need_version=no
13163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164   soname_spec='${libname}${release}${shared_ext}$major'
13165   shlibpath_var=LD_LIBRARY_PATH
13166   shlibpath_overrides_runpath=yes
13167   hardcode_into_libs=yes
13168   # ldd complains unless libraries are executable
13169   postinstall_cmds='chmod +x $lib'
13170   ;;
13171
13172 sunos4*)
13173   version_type=sunos
13174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13175   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13176   shlibpath_var=LD_LIBRARY_PATH
13177   shlibpath_overrides_runpath=yes
13178   if test "$with_gnu_ld" = yes; then
13179     need_lib_prefix=no
13180   fi
13181   need_version=yes
13182   ;;
13183
13184 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13185   version_type=linux
13186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187   soname_spec='${libname}${release}${shared_ext}$major'
13188   shlibpath_var=LD_LIBRARY_PATH
13189   case $host_vendor in
13190     sni)
13191       shlibpath_overrides_runpath=no
13192       need_lib_prefix=no
13193       export_dynamic_flag_spec='${wl}-Blargedynsym'
13194       runpath_var=LD_RUN_PATH
13195       ;;
13196     siemens)
13197       need_lib_prefix=no
13198       ;;
13199     motorola)
13200       need_lib_prefix=no
13201       need_version=no
13202       shlibpath_overrides_runpath=no
13203       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13204       ;;
13205   esac
13206   ;;
13207
13208 sysv4*MP*)
13209   if test -d /usr/nec ;then
13210     version_type=linux
13211     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13212     soname_spec='$libname${shared_ext}.$major'
13213     shlibpath_var=LD_LIBRARY_PATH
13214   fi
13215   ;;
13216
13217 uts4*)
13218   version_type=linux
13219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220   soname_spec='${libname}${release}${shared_ext}$major'
13221   shlibpath_var=LD_LIBRARY_PATH
13222   ;;
13223
13224 *)
13225   dynamic_linker=no
13226   ;;
13227 esac
13228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13229 echo "${ECHO_T}$dynamic_linker" >&6; }
13230 test "$dynamic_linker" = no && can_build_shared=no
13231
13232 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13234 hardcode_action_CXX=
13235 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13236    test -n "$runpath_var CXX" || \
13237    test "X$hardcode_automatic_CXX"="Xyes" ; then
13238
13239   # We can hardcode non-existant directories.
13240   if test "$hardcode_direct_CXX" != no &&
13241      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13242      # have to relink, otherwise we might link with an installed library
13243      # when we should be linking with a yet-to-be-installed one
13244      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13245      test "$hardcode_minus_L_CXX" != no; then
13246     # Linking always hardcodes the temporary library directory.
13247     hardcode_action_CXX=relink
13248   else
13249     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13250     hardcode_action_CXX=immediate
13251   fi
13252 else
13253   # We cannot hardcode anything, or else we can only hardcode existing
13254   # directories.
13255   hardcode_action_CXX=unsupported
13256 fi
13257 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13258 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13259
13260 if test "$hardcode_action_CXX" = relink; then
13261   # Fast installation is not supported
13262   enable_fast_install=no
13263 elif test "$shlibpath_overrides_runpath" = yes ||
13264      test "$enable_shared" = no; then
13265   # Fast installation is not necessary
13266   enable_fast_install=needless
13267 fi
13268
13269 striplib=
13270 old_striplib=
13271 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13272 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13274   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13275   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13276   { echo "$as_me:$LINENO: result: yes" >&5
13277 echo "${ECHO_T}yes" >&6; }
13278 else
13279 # FIXME - insert some real tests, host_os isn't really good enough
13280   case $host_os in
13281    darwin*)
13282        if test -n "$STRIP" ; then
13283          striplib="$STRIP -x"
13284          { echo "$as_me:$LINENO: result: yes" >&5
13285 echo "${ECHO_T}yes" >&6; }
13286        else
13287   { echo "$as_me:$LINENO: result: no" >&5
13288 echo "${ECHO_T}no" >&6; }
13289 fi
13290        ;;
13291    *)
13292   { echo "$as_me:$LINENO: result: no" >&5
13293 echo "${ECHO_T}no" >&6; }
13294     ;;
13295   esac
13296 fi
13297
13298 if test "x$enable_dlopen" != xyes; then
13299   enable_dlopen=unknown
13300   enable_dlopen_self=unknown
13301   enable_dlopen_self_static=unknown
13302 else
13303   lt_cv_dlopen=no
13304   lt_cv_dlopen_libs=
13305
13306   case $host_os in
13307   beos*)
13308     lt_cv_dlopen="load_add_on"
13309     lt_cv_dlopen_libs=
13310     lt_cv_dlopen_self=yes
13311     ;;
13312
13313   mingw* | pw32*)
13314     lt_cv_dlopen="LoadLibrary"
13315     lt_cv_dlopen_libs=
13316    ;;
13317
13318   cygwin*)
13319     lt_cv_dlopen="dlopen"
13320     lt_cv_dlopen_libs=
13321    ;;
13322
13323   darwin*)
13324   # if libdl is installed we need to link against it
13325     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13326 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13327 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330   ac_check_lib_save_LIBS=$LIBS
13331 LIBS="-ldl  $LIBS"
13332 cat >conftest.$ac_ext <<_ACEOF
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338
13339 /* Override any GCC internal prototype to avoid an error.
13340    Use char because int might match the return type of a GCC
13341    builtin and then its argument prototype would still apply.  */
13342 #ifdef __cplusplus
13343 extern "C"
13344 #endif
13345 char dlopen ();
13346 int
13347 main ()
13348 {
13349 return dlopen ();
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 rm -f conftest.$ac_objext conftest$ac_exeext
13355 if { (ac_try="$ac_link"
13356 case "(($ac_try" in
13357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358   *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361   (eval "$ac_link") 2>conftest.er1
13362   ac_status=$?
13363   grep -v '^ *+' conftest.er1 >conftest.err
13364   rm -f conftest.er1
13365   cat conftest.err >&5
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } && {
13368          test -z "$ac_cxx_werror_flag" ||
13369          test ! -s conftest.err
13370        } && test -s conftest$ac_exeext &&
13371        $as_test_x conftest$ac_exeext; then
13372   ac_cv_lib_dl_dlopen=yes
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377         ac_cv_lib_dl_dlopen=no
13378 fi
13379
13380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381       conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13383 fi
13384 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13385 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13386 if test $ac_cv_lib_dl_dlopen = yes; then
13387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13388 else
13389
13390     lt_cv_dlopen="dyld"
13391     lt_cv_dlopen_libs=
13392     lt_cv_dlopen_self=yes
13393
13394 fi
13395
13396    ;;
13397
13398   *)
13399     { echo "$as_me:$LINENO: checking for shl_load" >&5
13400 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13401 if test "${ac_cv_func_shl_load+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13412 #define shl_load innocuous_shl_load
13413
13414 /* System header to define __stub macros and hopefully few prototypes,
13415     which can conflict with char shl_load (); below.
13416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13417     <limits.h> exists even on freestanding compilers.  */
13418
13419 #ifdef __STDC__
13420 # include <limits.h>
13421 #else
13422 # include <assert.h>
13423 #endif
13424
13425 #undef shl_load
13426
13427 /* Override any GCC internal prototype to avoid an error.
13428    Use char because int might match the return type of a GCC
13429    builtin and then its argument prototype would still apply.  */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char shl_load ();
13434 /* The GNU C library defines this for functions which it implements
13435     to always fail with ENOSYS.  Some functions are actually named
13436     something starting with __ and the normal name is an alias.  */
13437 #if defined __stub_shl_load || defined __stub___shl_load
13438 choke me
13439 #endif
13440
13441 int
13442 main ()
13443 {
13444 return shl_load ();
13445   ;
13446   return 0;
13447 }
13448 _ACEOF
13449 rm -f conftest.$ac_objext conftest$ac_exeext
13450 if { (ac_try="$ac_link"
13451 case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_link") 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } && {
13463          test -z "$ac_cxx_werror_flag" ||
13464          test ! -s conftest.err
13465        } && test -s conftest$ac_exeext &&
13466        $as_test_x conftest$ac_exeext; then
13467   ac_cv_func_shl_load=yes
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472         ac_cv_func_shl_load=no
13473 fi
13474
13475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13476       conftest$ac_exeext conftest.$ac_ext
13477 fi
13478 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13479 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13480 if test $ac_cv_func_shl_load = yes; then
13481   lt_cv_dlopen="shl_load"
13482 else
13483   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13484 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13486   echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488   ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-ldld  $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496
13497 /* Override any GCC internal prototype to avoid an error.
13498    Use char because int might match the return type of a GCC
13499    builtin and then its argument prototype would still apply.  */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char shl_load ();
13504 int
13505 main ()
13506 {
13507 return shl_load ();
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_link") 2>conftest.er1
13520   ac_status=$?
13521   grep -v '^ *+' conftest.er1 >conftest.err
13522   rm -f conftest.er1
13523   cat conftest.err >&5
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } && {
13526          test -z "$ac_cxx_werror_flag" ||
13527          test ! -s conftest.err
13528        } && test -s conftest$ac_exeext &&
13529        $as_test_x conftest$ac_exeext; then
13530   ac_cv_lib_dld_shl_load=yes
13531 else
13532   echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535         ac_cv_lib_dld_shl_load=no
13536 fi
13537
13538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13539       conftest$ac_exeext conftest.$ac_ext
13540 LIBS=$ac_check_lib_save_LIBS
13541 fi
13542 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13543 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13544 if test $ac_cv_lib_dld_shl_load = yes; then
13545   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13546 else
13547   { echo "$as_me:$LINENO: checking for dlopen" >&5
13548 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13549 if test "${ac_cv_func_dlopen+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13560 #define dlopen innocuous_dlopen
13561
13562 /* System header to define __stub macros and hopefully few prototypes,
13563     which can conflict with char dlopen (); below.
13564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565     <limits.h> exists even on freestanding compilers.  */
13566
13567 #ifdef __STDC__
13568 # include <limits.h>
13569 #else
13570 # include <assert.h>
13571 #endif
13572
13573 #undef dlopen
13574
13575 /* Override any GCC internal prototype to avoid an error.
13576    Use char because int might match the return type of a GCC
13577    builtin and then its argument prototype would still apply.  */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 char dlopen ();
13582 /* The GNU C library defines this for functions which it implements
13583     to always fail with ENOSYS.  Some functions are actually named
13584     something starting with __ and the normal name is an alias.  */
13585 #if defined __stub_dlopen || defined __stub___dlopen
13586 choke me
13587 #endif
13588
13589 int
13590 main ()
13591 {
13592 return dlopen ();
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (ac_try="$ac_link"
13599 case "(($ac_try" in
13600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601   *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604   (eval "$ac_link") 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } && {
13611          test -z "$ac_cxx_werror_flag" ||
13612          test ! -s conftest.err
13613        } && test -s conftest$ac_exeext &&
13614        $as_test_x conftest$ac_exeext; then
13615   ac_cv_func_dlopen=yes
13616 else
13617   echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620         ac_cv_func_dlopen=no
13621 fi
13622
13623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13624       conftest$ac_exeext conftest.$ac_ext
13625 fi
13626 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13627 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13628 if test $ac_cv_func_dlopen = yes; then
13629   lt_cv_dlopen="dlopen"
13630 else
13631   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13632 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13633 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13634   echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636   ac_check_lib_save_LIBS=$LIBS
13637 LIBS="-ldl  $LIBS"
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644
13645 /* Override any GCC internal prototype to avoid an error.
13646    Use char because int might match the return type of a GCC
13647    builtin and then its argument prototype would still apply.  */
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 char dlopen ();
13652 int
13653 main ()
13654 {
13655 return dlopen ();
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (ac_try="$ac_link"
13662 case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_link") 2>conftest.er1
13668   ac_status=$?
13669   grep -v '^ *+' conftest.er1 >conftest.err
13670   rm -f conftest.er1
13671   cat conftest.err >&5
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } && {
13674          test -z "$ac_cxx_werror_flag" ||
13675          test ! -s conftest.err
13676        } && test -s conftest$ac_exeext &&
13677        $as_test_x conftest$ac_exeext; then
13678   ac_cv_lib_dl_dlopen=yes
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683         ac_cv_lib_dl_dlopen=no
13684 fi
13685
13686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13687       conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13689 fi
13690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13691 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13692 if test $ac_cv_lib_dl_dlopen = yes; then
13693   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13694 else
13695   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13696 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13697 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   ac_check_lib_save_LIBS=$LIBS
13701 LIBS="-lsvld  $LIBS"
13702 cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708
13709 /* Override any GCC internal prototype to avoid an error.
13710    Use char because int might match the return type of a GCC
13711    builtin and then its argument prototype would still apply.  */
13712 #ifdef __cplusplus
13713 extern "C"
13714 #endif
13715 char dlopen ();
13716 int
13717 main ()
13718 {
13719 return dlopen ();
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 rm -f conftest.$ac_objext conftest$ac_exeext
13725 if { (ac_try="$ac_link"
13726 case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_link") 2>conftest.er1
13732   ac_status=$?
13733   grep -v '^ *+' conftest.er1 >conftest.err
13734   rm -f conftest.er1
13735   cat conftest.err >&5
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } && {
13738          test -z "$ac_cxx_werror_flag" ||
13739          test ! -s conftest.err
13740        } && test -s conftest$ac_exeext &&
13741        $as_test_x conftest$ac_exeext; then
13742   ac_cv_lib_svld_dlopen=yes
13743 else
13744   echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747         ac_cv_lib_svld_dlopen=no
13748 fi
13749
13750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13751       conftest$ac_exeext conftest.$ac_ext
13752 LIBS=$ac_check_lib_save_LIBS
13753 fi
13754 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13755 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13756 if test $ac_cv_lib_svld_dlopen = yes; then
13757   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13758 else
13759   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13760 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13761 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13762   echo $ECHO_N "(cached) $ECHO_C" >&6
13763 else
13764   ac_check_lib_save_LIBS=$LIBS
13765 LIBS="-ldld  $LIBS"
13766 cat >conftest.$ac_ext <<_ACEOF
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772
13773 /* Override any GCC internal prototype to avoid an error.
13774    Use char because int might match the return type of a GCC
13775    builtin and then its argument prototype would still apply.  */
13776 #ifdef __cplusplus
13777 extern "C"
13778 #endif
13779 char dld_link ();
13780 int
13781 main ()
13782 {
13783 return dld_link ();
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (ac_try="$ac_link"
13790 case "(($ac_try" in
13791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792   *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795   (eval "$ac_link") 2>conftest.er1
13796   ac_status=$?
13797   grep -v '^ *+' conftest.er1 >conftest.err
13798   rm -f conftest.er1
13799   cat conftest.err >&5
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } && {
13802          test -z "$ac_cxx_werror_flag" ||
13803          test ! -s conftest.err
13804        } && test -s conftest$ac_exeext &&
13805        $as_test_x conftest$ac_exeext; then
13806   ac_cv_lib_dld_dld_link=yes
13807 else
13808   echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811         ac_cv_lib_dld_dld_link=no
13812 fi
13813
13814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13815       conftest$ac_exeext conftest.$ac_ext
13816 LIBS=$ac_check_lib_save_LIBS
13817 fi
13818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13819 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13820 if test $ac_cv_lib_dld_dld_link = yes; then
13821   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13822 fi
13823
13824
13825 fi
13826
13827
13828 fi
13829
13830
13831 fi
13832
13833
13834 fi
13835
13836
13837 fi
13838
13839     ;;
13840   esac
13841
13842   if test "x$lt_cv_dlopen" != xno; then
13843     enable_dlopen=yes
13844   else
13845     enable_dlopen=no
13846   fi
13847
13848   case $lt_cv_dlopen in
13849   dlopen)
13850     save_CPPFLAGS="$CPPFLAGS"
13851     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13852
13853     save_LDFLAGS="$LDFLAGS"
13854     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13855
13856     save_LIBS="$LIBS"
13857     LIBS="$lt_cv_dlopen_libs $LIBS"
13858
13859     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13860 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13861 if test "${lt_cv_dlopen_self+set}" = set; then
13862   echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864           if test "$cross_compiling" = yes; then :
13865   lt_cv_dlopen_self=cross
13866 else
13867   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13868   lt_status=$lt_dlunknown
13869   cat > conftest.$ac_ext <<EOF
13870 #line 13870 "configure"
13871 #include "confdefs.h"
13872
13873 #if HAVE_DLFCN_H
13874 #include <dlfcn.h>
13875 #endif
13876
13877 #include <stdio.h>
13878
13879 #ifdef RTLD_GLOBAL
13880 #  define LT_DLGLOBAL           RTLD_GLOBAL
13881 #else
13882 #  ifdef DL_GLOBAL
13883 #    define LT_DLGLOBAL         DL_GLOBAL
13884 #  else
13885 #    define LT_DLGLOBAL         0
13886 #  endif
13887 #endif
13888
13889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13890    find out it does not work in some platform. */
13891 #ifndef LT_DLLAZY_OR_NOW
13892 #  ifdef RTLD_LAZY
13893 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13894 #  else
13895 #    ifdef DL_LAZY
13896 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13897 #    else
13898 #      ifdef RTLD_NOW
13899 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13900 #      else
13901 #        ifdef DL_NOW
13902 #          define LT_DLLAZY_OR_NOW      DL_NOW
13903 #        else
13904 #          define LT_DLLAZY_OR_NOW      0
13905 #        endif
13906 #      endif
13907 #    endif
13908 #  endif
13909 #endif
13910
13911 #ifdef __cplusplus
13912 extern "C" void exit (int);
13913 #endif
13914
13915 void fnord() { int i=42;}
13916 int main ()
13917 {
13918   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13919   int status = $lt_dlunknown;
13920
13921   if (self)
13922     {
13923       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13924       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13925       /* dlclose (self); */
13926     }
13927
13928     exit (status);
13929 }
13930 EOF
13931   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932   (eval $ac_link) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13936     (./conftest; exit; ) 2>/dev/null
13937     lt_status=$?
13938     case x$lt_status in
13939       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13940       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13941       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13942     esac
13943   else :
13944     # compilation failed
13945     lt_cv_dlopen_self=no
13946   fi
13947 fi
13948 rm -fr conftest*
13949
13950
13951 fi
13952 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13953 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13954
13955     if test "x$lt_cv_dlopen_self" = xyes; then
13956       LDFLAGS="$LDFLAGS $link_static_flag"
13957       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13958 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13959 if test "${lt_cv_dlopen_self_static+set}" = set; then
13960   echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962           if test "$cross_compiling" = yes; then :
13963   lt_cv_dlopen_self_static=cross
13964 else
13965   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13966   lt_status=$lt_dlunknown
13967   cat > conftest.$ac_ext <<EOF
13968 #line 13968 "configure"
13969 #include "confdefs.h"
13970
13971 #if HAVE_DLFCN_H
13972 #include <dlfcn.h>
13973 #endif
13974
13975 #include <stdio.h>
13976
13977 #ifdef RTLD_GLOBAL
13978 #  define LT_DLGLOBAL           RTLD_GLOBAL
13979 #else
13980 #  ifdef DL_GLOBAL
13981 #    define LT_DLGLOBAL         DL_GLOBAL
13982 #  else
13983 #    define LT_DLGLOBAL         0
13984 #  endif
13985 #endif
13986
13987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13988    find out it does not work in some platform. */
13989 #ifndef LT_DLLAZY_OR_NOW
13990 #  ifdef RTLD_LAZY
13991 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13992 #  else
13993 #    ifdef DL_LAZY
13994 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13995 #    else
13996 #      ifdef RTLD_NOW
13997 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13998 #      else
13999 #        ifdef DL_NOW
14000 #          define LT_DLLAZY_OR_NOW      DL_NOW
14001 #        else
14002 #          define LT_DLLAZY_OR_NOW      0
14003 #        endif
14004 #      endif
14005 #    endif
14006 #  endif
14007 #endif
14008
14009 #ifdef __cplusplus
14010 extern "C" void exit (int);
14011 #endif
14012
14013 void fnord() { int i=42;}
14014 int main ()
14015 {
14016   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017   int status = $lt_dlunknown;
14018
14019   if (self)
14020     {
14021       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14022       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14023       /* dlclose (self); */
14024     }
14025
14026     exit (status);
14027 }
14028 EOF
14029   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030   (eval $ac_link) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14034     (./conftest; exit; ) 2>/dev/null
14035     lt_status=$?
14036     case x$lt_status in
14037       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14038       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14039       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14040     esac
14041   else :
14042     # compilation failed
14043     lt_cv_dlopen_self_static=no
14044   fi
14045 fi
14046 rm -fr conftest*
14047
14048
14049 fi
14050 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14051 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14052     fi
14053
14054     CPPFLAGS="$save_CPPFLAGS"
14055     LDFLAGS="$save_LDFLAGS"
14056     LIBS="$save_LIBS"
14057     ;;
14058   esac
14059
14060   case $lt_cv_dlopen_self in
14061   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14062   *) enable_dlopen_self=unknown ;;
14063   esac
14064
14065   case $lt_cv_dlopen_self_static in
14066   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14067   *) enable_dlopen_self_static=unknown ;;
14068   esac
14069 fi
14070
14071
14072 # The else clause should only fire when bootstrapping the
14073 # libtool distribution, otherwise you forgot to ship ltmain.sh
14074 # with your package, and you will get complaints that there are
14075 # no rules to generate ltmain.sh.
14076 if test -f "$ltmain"; then
14077   # See if we are running on zsh, and set the options which allow our commands through
14078   # without removal of \ escapes.
14079   if test -n "${ZSH_VERSION+set}" ; then
14080     setopt NO_GLOB_SUBST
14081   fi
14082   # Now quote all the things that may contain metacharacters while being
14083   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14084   # variables and quote the copies for generation of the libtool script.
14085   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14086     SED SHELL STRIP \
14087     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14088     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14089     deplibs_check_method reload_flag reload_cmds need_locks \
14090     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14091     lt_cv_sys_global_symbol_to_c_name_address \
14092     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14093     old_postinstall_cmds old_postuninstall_cmds \
14094     compiler_CXX \
14095     CC_CXX \
14096     LD_CXX \
14097     lt_prog_compiler_wl_CXX \
14098     lt_prog_compiler_pic_CXX \
14099     lt_prog_compiler_static_CXX \
14100     lt_prog_compiler_no_builtin_flag_CXX \
14101     export_dynamic_flag_spec_CXX \
14102     thread_safe_flag_spec_CXX \
14103     whole_archive_flag_spec_CXX \
14104     enable_shared_with_static_runtimes_CXX \
14105     old_archive_cmds_CXX \
14106     old_archive_from_new_cmds_CXX \
14107     predep_objects_CXX \
14108     postdep_objects_CXX \
14109     predeps_CXX \
14110     postdeps_CXX \
14111     compiler_lib_search_path_CXX \
14112     archive_cmds_CXX \
14113     archive_expsym_cmds_CXX \
14114     postinstall_cmds_CXX \
14115     postuninstall_cmds_CXX \
14116     old_archive_from_expsyms_cmds_CXX \
14117     allow_undefined_flag_CXX \
14118     no_undefined_flag_CXX \
14119     export_symbols_cmds_CXX \
14120     hardcode_libdir_flag_spec_CXX \
14121     hardcode_libdir_flag_spec_ld_CXX \
14122     hardcode_libdir_separator_CXX \
14123     hardcode_automatic_CXX \
14124     module_cmds_CXX \
14125     module_expsym_cmds_CXX \
14126     lt_cv_prog_compiler_c_o_CXX \
14127     exclude_expsyms_CXX \
14128     include_expsyms_CXX; do
14129
14130     case $var in
14131     old_archive_cmds_CXX | \
14132     old_archive_from_new_cmds_CXX | \
14133     archive_cmds_CXX | \
14134     archive_expsym_cmds_CXX | \
14135     module_cmds_CXX | \
14136     module_expsym_cmds_CXX | \
14137     old_archive_from_expsyms_cmds_CXX | \
14138     export_symbols_cmds_CXX | \
14139     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14140     postinstall_cmds | postuninstall_cmds | \
14141     old_postinstall_cmds | old_postuninstall_cmds | \
14142     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14143       # Double-quote double-evaled strings.
14144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14145       ;;
14146     *)
14147       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14148       ;;
14149     esac
14150   done
14151
14152   case $lt_echo in
14153   *'\$0 --fallback-echo"')
14154     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14155     ;;
14156   esac
14157
14158 cfgfile="$ofile"
14159
14160   cat <<__EOF__ >> "$cfgfile"
14161 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14162
14163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14164
14165 # Shell to use when invoking shell scripts.
14166 SHELL=$lt_SHELL
14167
14168 # Whether or not to build shared libraries.
14169 build_libtool_libs=$enable_shared
14170
14171 # Whether or not to build static libraries.
14172 build_old_libs=$enable_static
14173
14174 # Whether or not to add -lc for building shared libraries.
14175 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14176
14177 # Whether or not to disallow shared libs when runtime libs are static
14178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14179
14180 # Whether or not to optimize for fast installation.
14181 fast_install=$enable_fast_install
14182
14183 # The host system.
14184 host_alias=$host_alias
14185 host=$host
14186
14187 # An echo program that does not interpret backslashes.
14188 echo=$lt_echo
14189
14190 # The archiver.
14191 AR=$lt_AR
14192 AR_FLAGS=$lt_AR_FLAGS
14193
14194 # A C compiler.
14195 LTCC=$lt_LTCC
14196
14197 # A language-specific compiler.
14198 CC=$lt_compiler_CXX
14199
14200 # Is the compiler the GNU C compiler?
14201 with_gcc=$GCC_CXX
14202
14203 # An ERE matcher.
14204 EGREP=$lt_EGREP
14205
14206 # The linker used to build libraries.
14207 LD=$lt_LD_CXX
14208
14209 # Whether we need hard or soft links.
14210 LN_S=$lt_LN_S
14211
14212 # A BSD-compatible nm program.
14213 NM=$lt_NM
14214
14215 # A symbol stripping program
14216 STRIP=$lt_STRIP
14217
14218 # Used to examine libraries when file_magic_cmd begins "file"
14219 MAGIC_CMD=$MAGIC_CMD
14220
14221 # Used on cygwin: DLL creation program.
14222 DLLTOOL="$DLLTOOL"
14223
14224 # Used on cygwin: object dumper.
14225 OBJDUMP="$OBJDUMP"
14226
14227 # Used on cygwin: assembler.
14228 AS="$AS"
14229
14230 # The name of the directory that contains temporary libtool files.
14231 objdir=$objdir
14232
14233 # How to create reloadable object files.
14234 reload_flag=$lt_reload_flag
14235 reload_cmds=$lt_reload_cmds
14236
14237 # How to pass a linker flag through the compiler.
14238 wl=$lt_lt_prog_compiler_wl_CXX
14239
14240 # Object file suffix (normally "o").
14241 objext="$ac_objext"
14242
14243 # Old archive suffix (normally "a").
14244 libext="$libext"
14245
14246 # Shared library suffix (normally ".so").
14247 shrext_cmds='$shrext_cmds'
14248
14249 # Executable file suffix (normally "").
14250 exeext="$exeext"
14251
14252 # Additional compiler flags for building library objects.
14253 pic_flag=$lt_lt_prog_compiler_pic_CXX
14254 pic_mode=$pic_mode
14255
14256 # What is the maximum length of a command?
14257 max_cmd_len=$lt_cv_sys_max_cmd_len
14258
14259 # Does compiler simultaneously support -c and -o options?
14260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14261
14262 # Must we lock files when doing compilation ?
14263 need_locks=$lt_need_locks
14264
14265 # Do we need the lib prefix for modules?
14266 need_lib_prefix=$need_lib_prefix
14267
14268 # Do we need a version for libraries?
14269 need_version=$need_version
14270
14271 # Whether dlopen is supported.
14272 dlopen_support=$enable_dlopen
14273
14274 # Whether dlopen of programs is supported.
14275 dlopen_self=$enable_dlopen_self
14276
14277 # Whether dlopen of statically linked programs is supported.
14278 dlopen_self_static=$enable_dlopen_self_static
14279
14280 # Compiler flag to prevent dynamic linking.
14281 link_static_flag=$lt_lt_prog_compiler_static_CXX
14282
14283 # Compiler flag to turn off builtin functions.
14284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14285
14286 # Compiler flag to allow reflexive dlopens.
14287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14288
14289 # Compiler flag to generate shared objects directly from archives.
14290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14291
14292 # Compiler flag to generate thread-safe objects.
14293 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14294
14295 # Library versioning type.
14296 version_type=$version_type
14297
14298 # Format of library name prefix.
14299 libname_spec=$lt_libname_spec
14300
14301 # List of archive names.  First name is the real one, the rest are links.
14302 # The last name is the one that the linker finds with -lNAME.
14303 library_names_spec=$lt_library_names_spec
14304
14305 # The coded name of the library, if different from the real name.
14306 soname_spec=$lt_soname_spec
14307
14308 # Commands used to build and install an old-style archive.
14309 RANLIB=$lt_RANLIB
14310 old_archive_cmds=$lt_old_archive_cmds_CXX
14311 old_postinstall_cmds=$lt_old_postinstall_cmds
14312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14313
14314 # Create an old-style archive from a shared archive.
14315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14316
14317 # Create a temporary old-style archive to link instead of a shared archive.
14318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14319
14320 # Commands used to build and install a shared archive.
14321 archive_cmds=$lt_archive_cmds_CXX
14322 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14323 postinstall_cmds=$lt_postinstall_cmds
14324 postuninstall_cmds=$lt_postuninstall_cmds
14325
14326 # Commands used to build a loadable module (assumed same as above if empty)
14327 module_cmds=$lt_module_cmds_CXX
14328 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14329
14330 # Commands to strip libraries.
14331 old_striplib=$lt_old_striplib
14332 striplib=$lt_striplib
14333
14334 # Dependencies to place before the objects being linked to create a
14335 # shared library.
14336 predep_objects=$lt_predep_objects_CXX
14337
14338 # Dependencies to place after the objects being linked to create a
14339 # shared library.
14340 postdep_objects=$lt_postdep_objects_CXX
14341
14342 # Dependencies to place before the objects being linked to create a
14343 # shared library.
14344 predeps=$lt_predeps_CXX
14345
14346 # Dependencies to place after the objects being linked to create a
14347 # shared library.
14348 postdeps=$lt_postdeps_CXX
14349
14350 # The library search path used internally by the compiler when linking
14351 # a shared library.
14352 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14353
14354 # Method to check whether dependent libraries are shared objects.
14355 deplibs_check_method=$lt_deplibs_check_method
14356
14357 # Command to use when deplibs_check_method == file_magic.
14358 file_magic_cmd=$lt_file_magic_cmd
14359
14360 # Flag that allows shared libraries with undefined symbols to be built.
14361 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14362
14363 # Flag that forces no undefined symbols.
14364 no_undefined_flag=$lt_no_undefined_flag_CXX
14365
14366 # Commands used to finish a libtool library installation in a directory.
14367 finish_cmds=$lt_finish_cmds
14368
14369 # Same as above, but a single script fragment to be evaled but not shown.
14370 finish_eval=$lt_finish_eval
14371
14372 # Take the output of nm and produce a listing of raw symbols and C names.
14373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14374
14375 # Transform the output of nm in a proper C declaration
14376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14377
14378 # Transform the output of nm in a C name address pair
14379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14380
14381 # This is the shared library runtime path variable.
14382 runpath_var=$runpath_var
14383
14384 # This is the shared library path variable.
14385 shlibpath_var=$shlibpath_var
14386
14387 # Is shlibpath searched before the hard-coded library search path?
14388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14389
14390 # How to hardcode a shared library path into an executable.
14391 hardcode_action=$hardcode_action_CXX
14392
14393 # Whether we should hardcode library paths into libraries.
14394 hardcode_into_libs=$hardcode_into_libs
14395
14396 # Flag to hardcode \$libdir into a binary during linking.
14397 # This must work even if \$libdir does not exist.
14398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14399
14400 # If ld is used when linking, flag to hardcode \$libdir into
14401 # a binary during linking. This must work even if \$libdir does
14402 # not exist.
14403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14404
14405 # Whether we need a single -rpath flag with a separated argument.
14406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14407
14408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14409 # resulting binary.
14410 hardcode_direct=$hardcode_direct_CXX
14411
14412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14413 # resulting binary.
14414 hardcode_minus_L=$hardcode_minus_L_CXX
14415
14416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14417 # the resulting binary.
14418 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14419
14420 # Set to yes if building a shared library automatically hardcodes DIR into the library
14421 # and all subsequent libraries and executables linked against it.
14422 hardcode_automatic=$hardcode_automatic_CXX
14423
14424 # Variables whose values should be saved in libtool wrapper scripts and
14425 # restored at relink time.
14426 variables_saved_for_relink="$variables_saved_for_relink"
14427
14428 # Whether libtool must link a program against all its dependency libraries.
14429 link_all_deplibs=$link_all_deplibs_CXX
14430
14431 # Compile-time system search path for libraries
14432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14433
14434 # Run-time system search path for libraries
14435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14436
14437 # Fix the shell variable \$srcfile for the compiler.
14438 fix_srcfile_path="$fix_srcfile_path_CXX"
14439
14440 # Set to yes if exported symbols are required.
14441 always_export_symbols=$always_export_symbols_CXX
14442
14443 # The commands to list exported symbols.
14444 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14445
14446 # The commands to extract the exported symbol list from a shared archive.
14447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14448
14449 # Symbols that should not be listed in the preloaded symbols.
14450 exclude_expsyms=$lt_exclude_expsyms_CXX
14451
14452 # Symbols that must always be exported.
14453 include_expsyms=$lt_include_expsyms_CXX
14454
14455 # ### END LIBTOOL TAG CONFIG: $tagname
14456
14457 __EOF__
14458
14459
14460 else
14461   # If there is no Makefile yet, we rely on a make rule to execute
14462   # `config.status --recheck' to rerun these tests and create the
14463   # libtool script then.
14464   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14465   if test -f "$ltmain_in"; then
14466     test -f Makefile && make "$ltmain"
14467   fi
14468 fi
14469
14470
14471 ac_ext=c
14472 ac_cpp='$CPP $CPPFLAGS'
14473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14476
14477 CC=$lt_save_CC
14478 LDCXX=$LD
14479 LD=$lt_save_LD
14480 GCC=$lt_save_GCC
14481 with_gnu_ldcxx=$with_gnu_ld
14482 with_gnu_ld=$lt_save_with_gnu_ld
14483 lt_cv_path_LDCXX=$lt_cv_path_LD
14484 lt_cv_path_LD=$lt_save_path_LD
14485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14487
14488         else
14489           tagname=""
14490         fi
14491         ;;
14492
14493       F77)
14494         if test -n "$F77" && test "X$F77" != "Xno"; then
14495
14496 ac_ext=f
14497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14500
14501
14502 archive_cmds_need_lc_F77=no
14503 allow_undefined_flag_F77=
14504 always_export_symbols_F77=no
14505 archive_expsym_cmds_F77=
14506 export_dynamic_flag_spec_F77=
14507 hardcode_direct_F77=no
14508 hardcode_libdir_flag_spec_F77=
14509 hardcode_libdir_flag_spec_ld_F77=
14510 hardcode_libdir_separator_F77=
14511 hardcode_minus_L_F77=no
14512 hardcode_automatic_F77=no
14513 module_cmds_F77=
14514 module_expsym_cmds_F77=
14515 link_all_deplibs_F77=unknown
14516 old_archive_cmds_F77=$old_archive_cmds
14517 no_undefined_flag_F77=
14518 whole_archive_flag_spec_F77=
14519 enable_shared_with_static_runtimes_F77=no
14520
14521 # Source file extension for f77 test sources.
14522 ac_ext=f
14523
14524 # Object file extension for compiled f77 test sources.
14525 objext=o
14526 objext_F77=$objext
14527
14528 # Code to be used in simple compile tests
14529 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14530
14531 # Code to be used in simple link tests
14532 lt_simple_link_test_code="      program t\n      end\n"
14533
14534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14535
14536 # If no C compiler was specified, use CC.
14537 LTCC=${LTCC-"$CC"}
14538
14539 # Allow CC to be a program name with arguments.
14540 compiler=$CC
14541
14542
14543 # Allow CC to be a program name with arguments.
14544 lt_save_CC="$CC"
14545 CC=${F77-"f77"}
14546 compiler=$CC
14547 compiler_F77=$CC
14548 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14549
14550 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14551 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14552 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14553 echo "${ECHO_T}$can_build_shared" >&6; }
14554
14555 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14556 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14557 test "$can_build_shared" = "no" && enable_shared=no
14558
14559 # On AIX, shared libraries and static libraries use the same namespace, and
14560 # are all built from PIC.
14561 case "$host_os" in
14562 aix3*)
14563   test "$enable_shared" = yes && enable_static=no
14564   if test -n "$RANLIB"; then
14565     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14566     postinstall_cmds='$RANLIB $lib'
14567   fi
14568   ;;
14569 aix4* | aix5*)
14570   test "$enable_shared" = yes && enable_static=no
14571   ;;
14572 esac
14573 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14574 echo "${ECHO_T}$enable_shared" >&6; }
14575
14576 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14577 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14578 # Make sure either enable_shared or enable_static is yes.
14579 test "$enable_shared" = yes || enable_static=yes
14580 { echo "$as_me:$LINENO: result: $enable_static" >&5
14581 echo "${ECHO_T}$enable_static" >&6; }
14582
14583 test "$ld_shlibs_F77" = no && can_build_shared=no
14584
14585 GCC_F77="$G77"
14586 LD_F77="$LD"
14587
14588 lt_prog_compiler_wl_F77=
14589 lt_prog_compiler_pic_F77=
14590 lt_prog_compiler_static_F77=
14591
14592 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14593 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14594
14595   if test "$GCC" = yes; then
14596     lt_prog_compiler_wl_F77='-Wl,'
14597     lt_prog_compiler_static_F77='-static'
14598
14599     case $host_os in
14600       aix*)
14601       # All AIX code is PIC.
14602       if test "$host_cpu" = ia64; then
14603         # AIX 5 now supports IA64 processor
14604         lt_prog_compiler_static_F77='-Bstatic'
14605       fi
14606       ;;
14607
14608     amigaos*)
14609       # FIXME: we need at least 68020 code to build shared libraries, but
14610       # adding the `-m68020' flag to GCC prevents building anything better,
14611       # like `-m68040'.
14612       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14613       ;;
14614
14615     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14616       # PIC is the default for these OSes.
14617       ;;
14618
14619     mingw* | pw32* | os2*)
14620       # This hack is so that the source file can tell whether it is being
14621       # built for inclusion in a dll (and should export symbols for example).
14622       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14623       ;;
14624
14625     darwin* | rhapsody*)
14626       # PIC is the default on this platform
14627       # Common symbols not allowed in MH_DYLIB files
14628       lt_prog_compiler_pic_F77='-fno-common'
14629       ;;
14630
14631     msdosdjgpp*)
14632       # Just because we use GCC doesn't mean we suddenly get shared libraries
14633       # on systems that don't support them.
14634       lt_prog_compiler_can_build_shared_F77=no
14635       enable_shared=no
14636       ;;
14637
14638     sysv4*MP*)
14639       if test -d /usr/nec; then
14640         lt_prog_compiler_pic_F77=-Kconform_pic
14641       fi
14642       ;;
14643
14644     hpux*)
14645       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14646       # not for PA HP-UX.
14647       case "$host_cpu" in
14648       hppa*64*|ia64*)
14649         # +Z the default
14650         ;;
14651       *)
14652         lt_prog_compiler_pic_F77='-fPIC'
14653         ;;
14654       esac
14655       ;;
14656
14657     *)
14658       lt_prog_compiler_pic_F77='-fPIC'
14659       ;;
14660     esac
14661   else
14662     # PORTME Check for flag to pass linker flags through the system compiler.
14663     case $host_os in
14664     aix*)
14665       lt_prog_compiler_wl_F77='-Wl,'
14666       if test "$host_cpu" = ia64; then
14667         # AIX 5 now supports IA64 processor
14668         lt_prog_compiler_static_F77='-Bstatic'
14669       else
14670         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14671       fi
14672       ;;
14673
14674     mingw* | pw32* | os2*)
14675       # This hack is so that the source file can tell whether it is being
14676       # built for inclusion in a dll (and should export symbols for example).
14677       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14678       ;;
14679
14680     hpux9* | hpux10* | hpux11*)
14681       lt_prog_compiler_wl_F77='-Wl,'
14682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683       # not for PA HP-UX.
14684       case "$host_cpu" in
14685       hppa*64*|ia64*)
14686         # +Z the default
14687         ;;
14688       *)
14689         lt_prog_compiler_pic_F77='+Z'
14690         ;;
14691       esac
14692       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14694       ;;
14695
14696     irix5* | irix6* | nonstopux*)
14697       lt_prog_compiler_wl_F77='-Wl,'
14698       # PIC (with -KPIC) is the default.
14699       lt_prog_compiler_static_F77='-non_shared'
14700       ;;
14701
14702     newsos6)
14703       lt_prog_compiler_pic_F77='-KPIC'
14704       lt_prog_compiler_static_F77='-Bstatic'
14705       ;;
14706
14707     linux*)
14708       case $CC in
14709       icc* | ecc*)
14710         lt_prog_compiler_wl_F77='-Wl,'
14711         lt_prog_compiler_pic_F77='-KPIC'
14712         lt_prog_compiler_static_F77='-static'
14713         ;;
14714       ccc*)
14715         lt_prog_compiler_wl_F77='-Wl,'
14716         # All Alpha code is PIC.
14717         lt_prog_compiler_static_F77='-non_shared'
14718         ;;
14719       esac
14720       ;;
14721
14722     osf3* | osf4* | osf5*)
14723       lt_prog_compiler_wl_F77='-Wl,'
14724       # All OSF/1 code is PIC.
14725       lt_prog_compiler_static_F77='-non_shared'
14726       ;;
14727
14728     sco3.2v5*)
14729       lt_prog_compiler_pic_F77='-Kpic'
14730       lt_prog_compiler_static_F77='-dn'
14731       ;;
14732
14733     solaris*)
14734       lt_prog_compiler_wl_F77='-Wl,'
14735       lt_prog_compiler_pic_F77='-KPIC'
14736       lt_prog_compiler_static_F77='-Bstatic'
14737       ;;
14738
14739     sunos4*)
14740       lt_prog_compiler_wl_F77='-Qoption ld '
14741       lt_prog_compiler_pic_F77='-PIC'
14742       lt_prog_compiler_static_F77='-Bstatic'
14743       ;;
14744
14745     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14746       lt_prog_compiler_wl_F77='-Wl,'
14747       lt_prog_compiler_pic_F77='-KPIC'
14748       lt_prog_compiler_static_F77='-Bstatic'
14749       ;;
14750
14751     sysv4*MP*)
14752       if test -d /usr/nec ;then
14753         lt_prog_compiler_pic_F77='-Kconform_pic'
14754         lt_prog_compiler_static_F77='-Bstatic'
14755       fi
14756       ;;
14757
14758     uts4*)
14759       lt_prog_compiler_pic_F77='-pic'
14760       lt_prog_compiler_static_F77='-Bstatic'
14761       ;;
14762
14763     *)
14764       lt_prog_compiler_can_build_shared_F77=no
14765       ;;
14766     esac
14767   fi
14768
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14771
14772 #
14773 # Check to make sure the PIC flag actually works.
14774 #
14775 if test -n "$lt_prog_compiler_pic_F77"; then
14776
14777 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14778 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14779 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   lt_prog_compiler_pic_works_F77=no
14783   ac_outfile=conftest.$ac_objext
14784    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14785    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14786    # Insert the option either (1) after the last *FLAGS variable, or
14787    # (2) before a word containing "conftest.", or (3) at the end.
14788    # Note that $ac_compile itself does not contain backslashes and begins
14789    # with a dollar sign (not a hyphen), so the echo should work correctly.
14790    # The option is referenced via a variable to avoid confusing sed.
14791    lt_compile=`echo "$ac_compile" | $SED \
14792    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14793    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14794    -e 's:$: $lt_compiler_flag:'`
14795    (eval echo "\"\$as_me:14795: $lt_compile\"" >&5)
14796    (eval "$lt_compile" 2>conftest.err)
14797    ac_status=$?
14798    cat conftest.err >&5
14799    echo "$as_me:14799: \$? = $ac_status" >&5
14800    if (exit $ac_status) && test -s "$ac_outfile"; then
14801      # The compiler can only warn and ignore the option if not recognized
14802      # So say no if there are warnings
14803      if test ! -s conftest.err; then
14804        lt_prog_compiler_pic_works_F77=yes
14805      fi
14806    fi
14807    $rm conftest*
14808
14809 fi
14810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14811 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14812
14813 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14814     case $lt_prog_compiler_pic_F77 in
14815      "" | " "*) ;;
14816      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14817      esac
14818 else
14819     lt_prog_compiler_pic_F77=
14820      lt_prog_compiler_can_build_shared_F77=no
14821 fi
14822
14823 fi
14824 case "$host_os" in
14825   # For platforms which do not support PIC, -DPIC is meaningless:
14826   *djgpp*)
14827     lt_prog_compiler_pic_F77=
14828     ;;
14829   *)
14830     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14831     ;;
14832 esac
14833
14834 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14835 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839   lt_cv_prog_compiler_c_o_F77=no
14840    $rm -r conftest 2>/dev/null
14841    mkdir conftest
14842    cd conftest
14843    mkdir out
14844    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14845
14846    lt_compiler_flag="-o out/conftest2.$ac_objext"
14847    # Insert the option either (1) after the last *FLAGS variable, or
14848    # (2) before a word containing "conftest.", or (3) at the end.
14849    # Note that $ac_compile itself does not contain backslashes and begins
14850    # with a dollar sign (not a hyphen), so the echo should work correctly.
14851    lt_compile=`echo "$ac_compile" | $SED \
14852    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14853    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14854    -e 's:$: $lt_compiler_flag:'`
14855    (eval echo "\"\$as_me:14855: $lt_compile\"" >&5)
14856    (eval "$lt_compile" 2>out/conftest.err)
14857    ac_status=$?
14858    cat out/conftest.err >&5
14859    echo "$as_me:14859: \$? = $ac_status" >&5
14860    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14861    then
14862      # The compiler can only warn and ignore the option if not recognized
14863      # So say no if there are warnings
14864      if test ! -s out/conftest.err; then
14865        lt_cv_prog_compiler_c_o_F77=yes
14866      fi
14867    fi
14868    chmod u+w .
14869    $rm conftest*
14870    # SGI C++ compiler will create directory out/ii_files/ for
14871    # template instantiation
14872    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14873    $rm out/* && rmdir out
14874    cd ..
14875    rmdir conftest
14876    $rm conftest*
14877
14878 fi
14879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14881
14882
14883 hard_links="nottested"
14884 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14885   # do not overwrite the value of need_locks provided by the user
14886   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14887 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14888   hard_links=yes
14889   $rm conftest*
14890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14891   touch conftest.a
14892   ln conftest.a conftest.b 2>&5 || hard_links=no
14893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894   { echo "$as_me:$LINENO: result: $hard_links" >&5
14895 echo "${ECHO_T}$hard_links" >&6; }
14896   if test "$hard_links" = no; then
14897     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14899     need_locks=warn
14900   fi
14901 else
14902   need_locks=no
14903 fi
14904
14905 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14907
14908   runpath_var=
14909   allow_undefined_flag_F77=
14910   enable_shared_with_static_runtimes_F77=no
14911   archive_cmds_F77=
14912   archive_expsym_cmds_F77=
14913   old_archive_From_new_cmds_F77=
14914   old_archive_from_expsyms_cmds_F77=
14915   export_dynamic_flag_spec_F77=
14916   whole_archive_flag_spec_F77=
14917   thread_safe_flag_spec_F77=
14918   hardcode_libdir_flag_spec_F77=
14919   hardcode_libdir_flag_spec_ld_F77=
14920   hardcode_libdir_separator_F77=
14921   hardcode_direct_F77=no
14922   hardcode_minus_L_F77=no
14923   hardcode_shlibpath_var_F77=unsupported
14924   link_all_deplibs_F77=unknown
14925   hardcode_automatic_F77=no
14926   module_cmds_F77=
14927   module_expsym_cmds_F77=
14928   always_export_symbols_F77=no
14929   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930   # include_expsyms should be a list of space-separated symbols to be *always*
14931   # included in the symbol list
14932   include_expsyms_F77=
14933   # exclude_expsyms can be an extended regexp of symbols to exclude
14934   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14935   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14936   # as well as any symbol that contains `d'.
14937   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14938   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14939   # platforms (ab)use it in PIC code, but their linkers get confused if
14940   # the symbol is explicitly referenced.  Since portable code cannot
14941   # rely on this symbol name, it's probably fine to never include it in
14942   # preloaded symbol tables.
14943   extract_expsyms_cmds=
14944
14945   case $host_os in
14946   cygwin* | mingw* | pw32*)
14947     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14948     # When not using gcc, we currently assume that we are using
14949     # Microsoft Visual C++.
14950     if test "$GCC" != yes; then
14951       with_gnu_ld=no
14952     fi
14953     ;;
14954   openbsd*)
14955     with_gnu_ld=no
14956     ;;
14957   esac
14958
14959   ld_shlibs_F77=yes
14960   if test "$with_gnu_ld" = yes; then
14961     # If archive_cmds runs LD, not CC, wlarc should be empty
14962     wlarc='${wl}'
14963
14964     # See if GNU ld supports shared libraries.
14965     case $host_os in
14966     aix3* | aix4* | aix5*)
14967       # On AIX/PPC, the GNU linker is very broken
14968       if test "$host_cpu" != ia64; then
14969         ld_shlibs_F77=no
14970         cat <<EOF 1>&2
14971
14972 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14973 *** to be unable to reliably create shared libraries on AIX.
14974 *** Therefore, libtool is disabling shared libraries support.  If you
14975 *** really care for shared libraries, you may want to modify your PATH
14976 *** so that a non-GNU linker is found, and then restart.
14977
14978 EOF
14979       fi
14980       ;;
14981
14982     amigaos*)
14983       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)'
14984       hardcode_libdir_flag_spec_F77='-L$libdir'
14985       hardcode_minus_L_F77=yes
14986
14987       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14988       # that the semantics of dynamic libraries on AmigaOS, at least up
14989       # to version 4, is to share data among multiple programs linked
14990       # with the same dynamic library.  Since this doesn't match the
14991       # behavior of shared libraries on other platforms, we can't use
14992       # them.
14993       ld_shlibs_F77=no
14994       ;;
14995
14996     beos*)
14997       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14998         allow_undefined_flag_F77=unsupported
14999         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15000         # support --undefined.  This deserves some investigation.  FIXME
15001         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002       else
15003         ld_shlibs_F77=no
15004       fi
15005       ;;
15006
15007     cygwin* | mingw* | pw32*)
15008       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15009       # as there is no search path for DLLs.
15010       hardcode_libdir_flag_spec_F77='-L$libdir'
15011       allow_undefined_flag_F77=unsupported
15012       always_export_symbols_F77=no
15013       enable_shared_with_static_runtimes_F77=yes
15014       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15015
15016       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15017         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15018         # If the export-symbols file already is a .def file (1st line
15019         # is EXPORTS), use it as is; otherwise, prepend...
15020         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15021           cp $export_symbols $output_objdir/$soname.def;
15022         else
15023           echo EXPORTS > $output_objdir/$soname.def;
15024           cat $export_symbols >> $output_objdir/$soname.def;
15025         fi~
15026         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15027       else
15028         ld_shlibs=no
15029       fi
15030       ;;
15031
15032     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15033       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15035         wlarc=
15036       else
15037         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15039       fi
15040       ;;
15041
15042     solaris* | sysv5*)
15043       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15044         ld_shlibs_F77=no
15045         cat <<EOF 1>&2
15046
15047 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048 *** create shared libraries on Solaris systems.  Therefore, libtool
15049 *** is disabling shared libraries support.  We urge you to upgrade GNU
15050 *** binutils to release 2.9.1 or newer.  Another option is to modify
15051 *** your PATH or compiler configuration so that the native linker is
15052 *** used, and then restart.
15053
15054 EOF
15055       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15058       else
15059         ld_shlibs_F77=no
15060       fi
15061       ;;
15062
15063     sunos4*)
15064       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15065       wlarc=
15066       hardcode_direct_F77=yes
15067       hardcode_shlibpath_var_F77=no
15068       ;;
15069
15070   linux*)
15071     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073         archive_cmds_F77="$tmp_archive_cmds"
15074       supports_anon_versioning=no
15075       case `$LD -v 2>/dev/null` in
15076         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15077         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15078         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15079         *\ 2.11.*) ;; # other 2.11 versions
15080         *) supports_anon_versioning=yes ;;
15081       esac
15082       if test $supports_anon_versioning = yes; then
15083         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085 $echo "local: *; };" >> $output_objdir/$libname.ver~
15086         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15087       else
15088         archive_expsym_cmds_F77="$tmp_archive_cmds"
15089       fi
15090       link_all_deplibs_F77=no
15091     else
15092       ld_shlibs_F77=no
15093     fi
15094     ;;
15095
15096     *)
15097       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15100       else
15101         ld_shlibs_F77=no
15102       fi
15103       ;;
15104     esac
15105
15106     if test "$ld_shlibs_F77" = yes; then
15107       runpath_var=LD_RUN_PATH
15108       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15109       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15110       # ancient GNU ld didn't support --whole-archive et. al.
15111       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15112         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15113       else
15114         whole_archive_flag_spec_F77=
15115       fi
15116     fi
15117   else
15118     # PORTME fill in a description of your system's linker (not GNU ld)
15119     case $host_os in
15120     aix3*)
15121       allow_undefined_flag_F77=unsupported
15122       always_export_symbols_F77=yes
15123       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'
15124       # Note: this linker hardcodes the directories in LIBPATH if there
15125       # are no directories specified by -L.
15126       hardcode_minus_L_F77=yes
15127       if test "$GCC" = yes && test -z "$link_static_flag"; then
15128         # Neither direct hardcoding nor static linking is supported with a
15129         # broken collect2.
15130         hardcode_direct_F77=unsupported
15131       fi
15132       ;;
15133
15134     aix4* | aix5*)
15135       if test "$host_cpu" = ia64; then
15136         # On IA64, the linker does run time linking by default, so we don't
15137         # have to do anything special.
15138         aix_use_runtimelinking=no
15139         exp_sym_flag='-Bexport'
15140         no_entry_flag=""
15141       else
15142         # If we're using GNU nm, then we don't want the "-C" option.
15143         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15144         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15145           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'
15146         else
15147           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'
15148         fi
15149         aix_use_runtimelinking=no
15150
15151         # Test if we are trying to use run time linking or normal
15152         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15153         # need to do runtime linking.
15154         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15155           for ld_flag in $LDFLAGS; do
15156           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15157             aix_use_runtimelinking=yes
15158             break
15159           fi
15160           done
15161         esac
15162
15163         exp_sym_flag='-bexport'
15164         no_entry_flag='-bnoentry'
15165       fi
15166
15167       # When large executables or shared objects are built, AIX ld can
15168       # have problems creating the table of contents.  If linking a library
15169       # or program results in "error TOC overflow" add -mminimal-toc to
15170       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15171       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15172
15173       archive_cmds_F77=''
15174       hardcode_direct_F77=yes
15175       hardcode_libdir_separator_F77=':'
15176       link_all_deplibs_F77=yes
15177
15178       if test "$GCC" = yes; then
15179         case $host_os in aix4.012|aix4.012.*)
15180         # We only want to do this on AIX 4.2 and lower, the check
15181         # below for broken collect2 doesn't work under 4.3+
15182           collect2name=`${CC} -print-prog-name=collect2`
15183           if test -f "$collect2name" && \
15184            strings "$collect2name" | grep resolve_lib_name >/dev/null
15185           then
15186           # We have reworked collect2
15187           hardcode_direct_F77=yes
15188           else
15189           # We have old collect2
15190           hardcode_direct_F77=unsupported
15191           # It fails to find uninstalled libraries when the uninstalled
15192           # path is not listed in the libpath.  Setting hardcode_minus_L
15193           # to unsupported forces relinking
15194           hardcode_minus_L_F77=yes
15195           hardcode_libdir_flag_spec_F77='-L$libdir'
15196           hardcode_libdir_separator_F77=
15197           fi
15198         esac
15199         shared_flag='-shared'
15200       else
15201         # not using gcc
15202         if test "$host_cpu" = ia64; then
15203         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15204         # chokes on -Wl,-G. The following line is correct:
15205           shared_flag='-G'
15206         else
15207         if test "$aix_use_runtimelinking" = yes; then
15208             shared_flag='${wl}-G'
15209           else
15210             shared_flag='${wl}-bM:SRE'
15211         fi
15212         fi
15213       fi
15214
15215       # It seems that -bexpall does not export symbols beginning with
15216       # underscore (_), so it is better to generate a list of symbols to export.
15217       always_export_symbols_F77=yes
15218       if test "$aix_use_runtimelinking" = yes; then
15219         # Warning - without using the other runtime loading flags (-brtl),
15220         # -berok will link without error, but may produce a broken library.
15221         allow_undefined_flag_F77='-berok'
15222        # Determine the default libpath from the value encoded in an empty executable.
15223        cat >conftest.$ac_ext <<_ACEOF
15224       program main
15225
15226       end
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_link") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } && {
15242          test -z "$ac_f77_werror_flag" ||
15243          test ! -s conftest.err
15244        } && test -s conftest$ac_exeext &&
15245        $as_test_x conftest$ac_exeext; then
15246
15247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15248 }'`
15249 # Check for a 64-bit object if we didn't find anything.
15250 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; }
15251 }'`; fi
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256
15257 fi
15258
15259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15260       conftest$ac_exeext conftest.$ac_ext
15261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15262
15263        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15264         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15265        else
15266         if test "$host_cpu" = ia64; then
15267           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15268           allow_undefined_flag_F77="-z nodefs"
15269           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15270         else
15271          # Determine the default libpath from the value encoded in an empty executable.
15272          cat >conftest.$ac_ext <<_ACEOF
15273       program main
15274
15275       end
15276 _ACEOF
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_link") 2>conftest.er1
15285   ac_status=$?
15286   grep -v '^ *+' conftest.er1 >conftest.err
15287   rm -f conftest.er1
15288   cat conftest.err >&5
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } && {
15291          test -z "$ac_f77_werror_flag" ||
15292          test ! -s conftest.err
15293        } && test -s conftest$ac_exeext &&
15294        $as_test_x conftest$ac_exeext; then
15295
15296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15297 }'`
15298 # Check for a 64-bit object if we didn't find anything.
15299 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; }
15300 }'`; fi
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305
15306 fi
15307
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309       conftest$ac_exeext conftest.$ac_ext
15310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15311
15312          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15313           # Warning - without using the other run time loading flags,
15314           # -berok will link without error, but may produce a broken library.
15315           no_undefined_flag_F77=' ${wl}-bernotok'
15316           allow_undefined_flag_F77=' ${wl}-berok'
15317           # -bexpall does not export symbols beginning with underscore (_)
15318           always_export_symbols_F77=yes
15319           # Exported symbols can be pulled into shared objects from archives
15320           whole_archive_flag_spec_F77=' '
15321           archive_cmds_need_lc_F77=yes
15322           # This is similar to how AIX traditionally builds it's shared libraries.
15323           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15324         fi
15325       fi
15326       ;;
15327
15328     amigaos*)
15329       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)'
15330       hardcode_libdir_flag_spec_F77='-L$libdir'
15331       hardcode_minus_L_F77=yes
15332       # see comment about different semantics on the GNU ld section
15333       ld_shlibs_F77=no
15334       ;;
15335
15336     bsdi4*)
15337       export_dynamic_flag_spec_F77=-rdynamic
15338       ;;
15339
15340     cygwin* | mingw* | pw32*)
15341       # When not using gcc, we currently assume that we are using
15342       # Microsoft Visual C++.
15343       # hardcode_libdir_flag_spec is actually meaningless, as there is
15344       # no search path for DLLs.
15345       hardcode_libdir_flag_spec_F77=' '
15346       allow_undefined_flag_F77=unsupported
15347       # Tell ltmain to make .lib files, not .a files.
15348       libext=lib
15349       # Tell ltmain to make .dll files, not .so files.
15350       shrext_cmds=".dll"
15351       # FIXME: Setting linknames here is a bad hack.
15352       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15353       # The linker will automatically build a .lib file if we build a DLL.
15354       old_archive_From_new_cmds_F77='true'
15355       # FIXME: Should let the user specify the lib program.
15356       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15357       fix_srcfile_path='`cygpath -w "$srcfile"`'
15358       enable_shared_with_static_runtimes_F77=yes
15359       ;;
15360
15361     darwin* | rhapsody*)
15362     if test "$GXX" = yes ; then
15363       archive_cmds_need_lc_F77=no
15364       case "$host_os" in
15365       rhapsody* | darwin1.[012])
15366         allow_undefined_flag_F77='-undefined suppress'
15367         ;;
15368       *) # Darwin 1.3 on
15369       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15370         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15371       else
15372         case ${MACOSX_DEPLOYMENT_TARGET} in
15373           10.[012])
15374             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15375             ;;
15376           10.*)
15377             allow_undefined_flag_F77='-undefined dynamic_lookup'
15378             ;;
15379         esac
15380       fi
15381         ;;
15382       esac
15383         lt_int_apple_cc_single_mod=no
15384         output_verbose_link_cmd='echo'
15385         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15386           lt_int_apple_cc_single_mod=yes
15387         fi
15388         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15389           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15390         else
15391         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
15392       fi
15393       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15394       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15395         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15396           archive_expsym_cmds_F77='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}'
15397         else
15398           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15399         fi
15400           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}'
15401       hardcode_direct_F77=no
15402       hardcode_automatic_F77=yes
15403       hardcode_shlibpath_var_F77=unsupported
15404       whole_archive_flag_spec_F77='-all_load $convenience'
15405       link_all_deplibs_F77=yes
15406     else
15407       ld_shlibs_F77=no
15408     fi
15409       ;;
15410
15411     dgux*)
15412       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413       hardcode_libdir_flag_spec_F77='-L$libdir'
15414       hardcode_shlibpath_var_F77=no
15415       ;;
15416
15417     freebsd1*)
15418       ld_shlibs_F77=no
15419       ;;
15420
15421     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15422     # support.  Future versions do this automatically, but an explicit c++rt0.o
15423     # does not break anything, and helps significantly (at the cost of a little
15424     # extra space).
15425     freebsd2.2*)
15426       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15427       hardcode_libdir_flag_spec_F77='-R$libdir'
15428       hardcode_direct_F77=yes
15429       hardcode_shlibpath_var_F77=no
15430       ;;
15431
15432     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15433     freebsd2*)
15434       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15435       hardcode_direct_F77=yes
15436       hardcode_minus_L_F77=yes
15437       hardcode_shlibpath_var_F77=no
15438       ;;
15439
15440     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15441     freebsd* | kfreebsd*-gnu)
15442       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15443       hardcode_libdir_flag_spec_F77='-R$libdir'
15444       hardcode_direct_F77=yes
15445       hardcode_shlibpath_var_F77=no
15446       ;;
15447
15448     hpux9*)
15449       if test "$GCC" = yes; then
15450         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'
15451       else
15452         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'
15453       fi
15454       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15455       hardcode_libdir_separator_F77=:
15456       hardcode_direct_F77=yes
15457
15458       # hardcode_minus_L: Not really in the search PATH,
15459       # but as the default location of the library.
15460       hardcode_minus_L_F77=yes
15461       export_dynamic_flag_spec_F77='${wl}-E'
15462       ;;
15463
15464     hpux10* | hpux11*)
15465       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15466         case "$host_cpu" in
15467         hppa*64*|ia64*)
15468           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469           ;;
15470         *)
15471           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472           ;;
15473         esac
15474       else
15475         case "$host_cpu" in
15476         hppa*64*|ia64*)
15477           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15478           ;;
15479         *)
15480           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15481           ;;
15482         esac
15483       fi
15484       if test "$with_gnu_ld" = no; then
15485         case "$host_cpu" in
15486         hppa*64*)
15487           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15488           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15489           hardcode_libdir_separator_F77=:
15490           hardcode_direct_F77=no
15491           hardcode_shlibpath_var_F77=no
15492           ;;
15493         ia64*)
15494           hardcode_libdir_flag_spec_F77='-L$libdir'
15495           hardcode_direct_F77=no
15496           hardcode_shlibpath_var_F77=no
15497
15498           # hardcode_minus_L: Not really in the search PATH,
15499           # but as the default location of the library.
15500           hardcode_minus_L_F77=yes
15501           ;;
15502         *)
15503           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15504           hardcode_libdir_separator_F77=:
15505           hardcode_direct_F77=yes
15506           export_dynamic_flag_spec_F77='${wl}-E'
15507
15508           # hardcode_minus_L: Not really in the search PATH,
15509           # but as the default location of the library.
15510           hardcode_minus_L_F77=yes
15511           ;;
15512         esac
15513       fi
15514       ;;
15515
15516     irix5* | irix6* | nonstopux*)
15517       if test "$GCC" = yes; then
15518         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'
15519       else
15520         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'
15521         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15522       fi
15523       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15524       hardcode_libdir_separator_F77=:
15525       link_all_deplibs_F77=yes
15526       ;;
15527
15528     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15529       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15530         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15531       else
15532         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15533       fi
15534       hardcode_libdir_flag_spec_F77='-R$libdir'
15535       hardcode_direct_F77=yes
15536       hardcode_shlibpath_var_F77=no
15537       ;;
15538
15539     newsos6)
15540       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541       hardcode_direct_F77=yes
15542       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543       hardcode_libdir_separator_F77=:
15544       hardcode_shlibpath_var_F77=no
15545       ;;
15546
15547     openbsd*)
15548       hardcode_direct_F77=yes
15549       hardcode_shlibpath_var_F77=no
15550       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15551         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15553         export_dynamic_flag_spec_F77='${wl}-E'
15554       else
15555        case $host_os in
15556          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15557            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15558            hardcode_libdir_flag_spec_F77='-R$libdir'
15559            ;;
15560          *)
15561            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15562            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15563            ;;
15564        esac
15565       fi
15566       ;;
15567
15568     os2*)
15569       hardcode_libdir_flag_spec_F77='-L$libdir'
15570       hardcode_minus_L_F77=yes
15571       allow_undefined_flag_F77=unsupported
15572       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'
15573       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15574       ;;
15575
15576     osf3*)
15577       if test "$GCC" = yes; then
15578         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15579         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'
15580       else
15581         allow_undefined_flag_F77=' -expect_unresolved \*'
15582         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'
15583       fi
15584       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15585       hardcode_libdir_separator_F77=:
15586       ;;
15587
15588     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15589       if test "$GCC" = yes; then
15590         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15591         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'
15592         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15593       else
15594         allow_undefined_flag_F77=' -expect_unresolved \*'
15595         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'
15596         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~
15597         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15598
15599         # Both c and cxx compiler support -rpath directly
15600         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15601       fi
15602       hardcode_libdir_separator_F77=:
15603       ;;
15604
15605     sco3.2v5*)
15606       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607       hardcode_shlibpath_var_F77=no
15608       export_dynamic_flag_spec_F77='${wl}-Bexport'
15609       runpath_var=LD_RUN_PATH
15610       hardcode_runpath_var=yes
15611       ;;
15612
15613     solaris*)
15614       no_undefined_flag_F77=' -z text'
15615       if test "$GCC" = yes; then
15616         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15618           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15619       else
15620         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15623       fi
15624       hardcode_libdir_flag_spec_F77='-R$libdir'
15625       hardcode_shlibpath_var_F77=no
15626       case $host_os in
15627       solaris2.[0-5] | solaris2.[0-5].*) ;;
15628       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15629         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15630       esac
15631       link_all_deplibs_F77=yes
15632       ;;
15633
15634     sunos4*)
15635       if test "x$host_vendor" = xsequent; then
15636         # Use $CC to link under sequent, because it throws in some extra .o
15637         # files that make .init and .fini sections work.
15638         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15639       else
15640         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15641       fi
15642       hardcode_libdir_flag_spec_F77='-L$libdir'
15643       hardcode_direct_F77=yes
15644       hardcode_minus_L_F77=yes
15645       hardcode_shlibpath_var_F77=no
15646       ;;
15647
15648     sysv4)
15649       case $host_vendor in
15650         sni)
15651           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652           hardcode_direct_F77=yes # is this really true???
15653         ;;
15654         siemens)
15655           ## LD is ld it makes a PLAMLIB
15656           ## CC just makes a GrossModule.
15657           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15658           reload_cmds_F77='$CC -r -o $output$reload_objs'
15659           hardcode_direct_F77=no
15660         ;;
15661         motorola)
15662           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15664         ;;
15665       esac
15666       runpath_var='LD_RUN_PATH'
15667       hardcode_shlibpath_var_F77=no
15668       ;;
15669
15670     sysv4.3*)
15671       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672       hardcode_shlibpath_var_F77=no
15673       export_dynamic_flag_spec_F77='-Bexport'
15674       ;;
15675
15676     sysv4*MP*)
15677       if test -d /usr/nec; then
15678         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679         hardcode_shlibpath_var_F77=no
15680         runpath_var=LD_RUN_PATH
15681         hardcode_runpath_var=yes
15682         ld_shlibs_F77=yes
15683       fi
15684       ;;
15685
15686     sysv4.2uw2*)
15687       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15688       hardcode_direct_F77=yes
15689       hardcode_minus_L_F77=no
15690       hardcode_shlibpath_var_F77=no
15691       hardcode_runpath_var=yes
15692       runpath_var=LD_RUN_PATH
15693       ;;
15694
15695    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15696       no_undefined_flag_F77='${wl}-z ${wl}text'
15697       if test "$GCC" = yes; then
15698         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15699       else
15700         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15701       fi
15702       runpath_var='LD_RUN_PATH'
15703       hardcode_shlibpath_var_F77=no
15704       ;;
15705
15706     sysv5*)
15707       no_undefined_flag_F77=' -z text'
15708       # $CC -shared without GNU ld will not create a library from C++
15709       # object files and a static libstdc++, better avoid it by now
15710       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15712                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15713       hardcode_libdir_flag_spec_F77=
15714       hardcode_shlibpath_var_F77=no
15715       runpath_var='LD_RUN_PATH'
15716       ;;
15717
15718     uts4*)
15719       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720       hardcode_libdir_flag_spec_F77='-L$libdir'
15721       hardcode_shlibpath_var_F77=no
15722       ;;
15723
15724     *)
15725       ld_shlibs_F77=no
15726       ;;
15727     esac
15728   fi
15729
15730 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15731 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15732 test "$ld_shlibs_F77" = no && can_build_shared=no
15733
15734 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735 if test "$GCC" = yes; then
15736   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15737 fi
15738
15739 #
15740 # Do we need to explicitly link libc?
15741 #
15742 case "x$archive_cmds_need_lc_F77" in
15743 x|xyes)
15744   # Assume -lc should be added
15745   archive_cmds_need_lc_F77=yes
15746
15747   if test "$enable_shared" = yes && test "$GCC" = yes; then
15748     case $archive_cmds_F77 in
15749     *'~'*)
15750       # FIXME: we may have to deal with multi-command sequences.
15751       ;;
15752     '$CC '*)
15753       # Test whether the compiler implicitly links with -lc since on some
15754       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15755       # to ld, don't add -lc before -lgcc.
15756       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15757 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15758       $rm conftest*
15759       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15760
15761       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15762   (eval $ac_compile) 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } 2>conftest.err; then
15766         soname=conftest
15767         lib=conftest
15768         libobjs=conftest.$ac_objext
15769         deplibs=
15770         wl=$lt_prog_compiler_wl_F77
15771         compiler_flags=-v
15772         linker_flags=-v
15773         verstring=
15774         output_objdir=.
15775         libname=conftest
15776         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15777         allow_undefined_flag_F77=
15778         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15779   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }
15783         then
15784           archive_cmds_need_lc_F77=no
15785         else
15786           archive_cmds_need_lc_F77=yes
15787         fi
15788         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15789       else
15790         cat conftest.err 1>&5
15791       fi
15792       $rm conftest*
15793       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15794 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15795       ;;
15796     esac
15797   fi
15798   ;;
15799 esac
15800
15801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15803 library_names_spec=
15804 libname_spec='lib$name'
15805 soname_spec=
15806 shrext_cmds=".so"
15807 postinstall_cmds=
15808 postuninstall_cmds=
15809 finish_cmds=
15810 finish_eval=
15811 shlibpath_var=
15812 shlibpath_overrides_runpath=unknown
15813 version_type=none
15814 dynamic_linker="$host_os ld.so"
15815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15816 if test "$GCC" = yes; then
15817   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15819     # if the path contains ";" then we assume it to be the separator
15820     # otherwise default to the standard path separator (i.e. ":") - it is
15821     # assumed that no part of a normal pathname contains ";" but that should
15822     # okay in the real world where ";" in dirpaths is itself problematic.
15823     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824   else
15825     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15826   fi
15827 else
15828   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15829 fi
15830 need_lib_prefix=unknown
15831 hardcode_into_libs=no
15832
15833 # when you set need_version to no, make sure it does not cause -set_version
15834 # flags to be left without arguments
15835 need_version=unknown
15836
15837 case $host_os in
15838 aix3*)
15839   version_type=linux
15840   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15841   shlibpath_var=LIBPATH
15842
15843   # AIX 3 has no versioning support, so we append a major version to the name.
15844   soname_spec='${libname}${release}${shared_ext}$major'
15845   ;;
15846
15847 aix4* | aix5*)
15848   version_type=linux
15849   need_lib_prefix=no
15850   need_version=no
15851   hardcode_into_libs=yes
15852   if test "$host_cpu" = ia64; then
15853     # AIX 5 supports IA64
15854     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15855     shlibpath_var=LD_LIBRARY_PATH
15856   else
15857     # With GCC up to 2.95.x, collect2 would create an import file
15858     # for dependence libraries.  The import file would start with
15859     # the line `#! .'.  This would cause the generated library to
15860     # depend on `.', always an invalid library.  This was fixed in
15861     # development snapshots of GCC prior to 3.0.
15862     case $host_os in
15863       aix4 | aix4.[01] | aix4.[01].*)
15864       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15865            echo ' yes '
15866            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15867         :
15868       else
15869         can_build_shared=no
15870       fi
15871       ;;
15872     esac
15873     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15874     # soname into executable. Probably we can add versioning support to
15875     # collect2, so additional links can be useful in future.
15876     if test "$aix_use_runtimelinking" = yes; then
15877       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15878       # instead of lib<name>.a to let people know that these are not
15879       # typical AIX shared libraries.
15880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881     else
15882       # We preserve .a as extension for shared libraries through AIX4.2
15883       # and later when we are not doing run time linking.
15884       library_names_spec='${libname}${release}.a $libname.a'
15885       soname_spec='${libname}${release}${shared_ext}$major'
15886     fi
15887     shlibpath_var=LIBPATH
15888   fi
15889   ;;
15890
15891 amigaos*)
15892   library_names_spec='$libname.ixlibrary $libname.a'
15893   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15894   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'
15895   ;;
15896
15897 beos*)
15898   library_names_spec='${libname}${shared_ext}'
15899   dynamic_linker="$host_os ld.so"
15900   shlibpath_var=LIBRARY_PATH
15901   ;;
15902
15903 bsdi4*)
15904   version_type=linux
15905   need_version=no
15906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907   soname_spec='${libname}${release}${shared_ext}$major'
15908   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15909   shlibpath_var=LD_LIBRARY_PATH
15910   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15911   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15912   # the default ld.so.conf also contains /usr/contrib/lib and
15913   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15914   # libtool to hard-code these into programs
15915   ;;
15916
15917 cygwin* | mingw* | pw32*)
15918   version_type=windows
15919   shrext_cmds=".dll"
15920   need_version=no
15921   need_lib_prefix=no
15922
15923   case $GCC,$host_os in
15924   yes,cygwin* | yes,mingw* | yes,pw32*)
15925     library_names_spec='$libname.dll.a'
15926     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15927     postinstall_cmds='base_file=`basename \${file}`~
15928       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15929       dldir=$destdir/`dirname \$dlpath`~
15930       test -d \$dldir || mkdir -p \$dldir~
15931       $install_prog $dir/$dlname \$dldir/$dlname'
15932     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933       dlpath=$dir/\$dldll~
15934        $rm \$dlpath'
15935     shlibpath_overrides_runpath=yes
15936
15937     case $host_os in
15938     cygwin*)
15939       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15942       ;;
15943     mingw*)
15944       # MinGW DLLs use traditional 'lib' prefix
15945       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948         # It is most probably a Windows format PATH printed by
15949         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15950         # path with ; separators, and with drive letters. We can handle the
15951         # drive letters (cygwin fileutils understands them), so leave them,
15952         # especially as we might pass files found there to a mingw objdump,
15953         # which wouldn't understand a cygwinified path. Ahh.
15954         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15955       else
15956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15957       fi
15958       ;;
15959     pw32*)
15960       # pw32 DLLs use 'pw' prefix rather than 'lib'
15961       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15962       ;;
15963     esac
15964     ;;
15965
15966   *)
15967     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15968     ;;
15969   esac
15970   dynamic_linker='Win32 ld.exe'
15971   # FIXME: first we should search . and the directory the executable is in
15972   shlibpath_var=PATH
15973   ;;
15974
15975 darwin* | rhapsody*)
15976   dynamic_linker="$host_os dyld"
15977   version_type=darwin
15978   need_lib_prefix=no
15979   need_version=no
15980   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981   soname_spec='${libname}${release}${major}$shared_ext'
15982   shlibpath_overrides_runpath=yes
15983   shlibpath_var=DYLD_LIBRARY_PATH
15984   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15985   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986   if test "$GCC" = yes; then
15987     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"`
15988   else
15989     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15990   fi
15991   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15992   ;;
15993
15994 dgux*)
15995   version_type=linux
15996   need_lib_prefix=no
15997   need_version=no
15998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   shlibpath_var=LD_LIBRARY_PATH
16001   ;;
16002
16003 freebsd1*)
16004   dynamic_linker=no
16005   ;;
16006
16007 kfreebsd*-gnu)
16008   version_type=linux
16009   need_lib_prefix=no
16010   need_version=no
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012   soname_spec='${libname}${release}${shared_ext}$major'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   shlibpath_overrides_runpath=no
16015   hardcode_into_libs=yes
16016   dynamic_linker='GNU ld.so'
16017   ;;
16018
16019 freebsd*)
16020   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16021   version_type=freebsd-$objformat
16022   case $version_type in
16023     freebsd-elf*)
16024       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16025       need_version=no
16026       need_lib_prefix=no
16027       ;;
16028     freebsd-*)
16029       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16030       need_version=yes
16031       ;;
16032   esac
16033   shlibpath_var=LD_LIBRARY_PATH
16034   case $host_os in
16035   freebsd2*)
16036     shlibpath_overrides_runpath=yes
16037     ;;
16038   freebsd3.01* | freebsdelf3.01*)
16039     shlibpath_overrides_runpath=yes
16040     hardcode_into_libs=yes
16041     ;;
16042   *) # from 3.2 on
16043     shlibpath_overrides_runpath=no
16044     hardcode_into_libs=yes
16045     ;;
16046   esac
16047   ;;
16048
16049 gnu*)
16050   version_type=linux
16051   need_lib_prefix=no
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   hardcode_into_libs=yes
16057   ;;
16058
16059 hpux9* | hpux10* | hpux11*)
16060   # Give a soname corresponding to the major version so that dld.sl refuses to
16061   # link against other versions.
16062   version_type=sunos
16063   need_lib_prefix=no
16064   need_version=no
16065   case "$host_cpu" in
16066   ia64*)
16067     shrext_cmds='.so'
16068     hardcode_into_libs=yes
16069     dynamic_linker="$host_os dld.so"
16070     shlibpath_var=LD_LIBRARY_PATH
16071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073     soname_spec='${libname}${release}${shared_ext}$major'
16074     if test "X$HPUX_IA64_MODE" = X32; then
16075       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16076     else
16077       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16078     fi
16079     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16080     ;;
16081    hppa*64*)
16082      shrext_cmds='.sl'
16083      hardcode_into_libs=yes
16084      dynamic_linker="$host_os dld.sl"
16085      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16086      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088      soname_spec='${libname}${release}${shared_ext}$major'
16089      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16090      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16091      ;;
16092    *)
16093     shrext_cmds='.sl'
16094     dynamic_linker="$host_os dld.sl"
16095     shlibpath_var=SHLIB_PATH
16096     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098     soname_spec='${libname}${release}${shared_ext}$major'
16099     ;;
16100   esac
16101   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16102   postinstall_cmds='chmod 555 $lib'
16103   ;;
16104
16105 irix5* | irix6* | nonstopux*)
16106   case $host_os in
16107     nonstopux*) version_type=nonstopux ;;
16108     *)
16109         if test "$lt_cv_prog_gnu_ld" = yes; then
16110                 version_type=linux
16111         else
16112                 version_type=irix
16113         fi ;;
16114   esac
16115   need_lib_prefix=no
16116   need_version=no
16117   soname_spec='${libname}${release}${shared_ext}$major'
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16119   case $host_os in
16120   irix5* | nonstopux*)
16121     libsuff= shlibsuff=
16122     ;;
16123   *)
16124     case $LD in # libtool.m4 will add one of these switches to LD
16125     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126       libsuff= shlibsuff= libmagic=32-bit;;
16127     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128       libsuff=32 shlibsuff=N32 libmagic=N32;;
16129     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131     *) libsuff= shlibsuff= libmagic=never-match;;
16132     esac
16133     ;;
16134   esac
16135   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136   shlibpath_overrides_runpath=no
16137   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139   hardcode_into_libs=yes
16140   ;;
16141
16142 # No shared lib support for Linux oldld, aout, or coff.
16143 linux*oldld* | linux*aout* | linux*coff*)
16144   dynamic_linker=no
16145   ;;
16146
16147 # This must be Linux ELF.
16148 linux*)
16149   version_type=linux
16150   need_lib_prefix=no
16151   need_version=no
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153   soname_spec='${libname}${release}${shared_ext}$major'
16154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155   shlibpath_var=LD_LIBRARY_PATH
16156   shlibpath_overrides_runpath=no
16157   # This implies no fast_install, which is unacceptable.
16158   # Some rework will be needed to allow for fast_install
16159   # before this can be enabled.
16160   hardcode_into_libs=yes
16161
16162   # Append ld.so.conf contents to the search path
16163   if test -f /etc/ld.so.conf; then
16164     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16165     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16166   fi
16167
16168   # We used to test for /lib/ld.so.1 and disable shared libraries on
16169   # powerpc, because MkLinux only supported shared libraries with the
16170   # GNU dynamic linker.  Since this was broken with cross compilers,
16171   # most powerpc-linux boxes support dynamic linking these days and
16172   # people can always --disable-shared, the test was removed, and we
16173   # assume the GNU/Linux dynamic linker is in use.
16174   dynamic_linker='GNU/Linux ld.so'
16175   ;;
16176
16177 netbsdelf*-gnu)
16178   version_type=linux
16179   need_lib_prefix=no
16180   need_version=no
16181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182   soname_spec='${libname}${release}${shared_ext}$major'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   shlibpath_overrides_runpath=no
16185   hardcode_into_libs=yes
16186   dynamic_linker='NetBSD ld.elf_so'
16187   ;;
16188
16189 knetbsd*-gnu)
16190   version_type=linux
16191   need_lib_prefix=no
16192   need_version=no
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   shlibpath_var=LD_LIBRARY_PATH
16196   shlibpath_overrides_runpath=no
16197   hardcode_into_libs=yes
16198   dynamic_linker='GNU ld.so'
16199   ;;
16200
16201 netbsd*)
16202   version_type=sunos
16203   need_lib_prefix=no
16204   need_version=no
16205   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16207     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16208     dynamic_linker='NetBSD (a.out) ld.so'
16209   else
16210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211     soname_spec='${libname}${release}${shared_ext}$major'
16212     dynamic_linker='NetBSD ld.elf_so'
16213   fi
16214   shlibpath_var=LD_LIBRARY_PATH
16215   shlibpath_overrides_runpath=yes
16216   hardcode_into_libs=yes
16217   ;;
16218
16219 newsos6)
16220   version_type=linux
16221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222   shlibpath_var=LD_LIBRARY_PATH
16223   shlibpath_overrides_runpath=yes
16224   ;;
16225
16226 nto-qnx*)
16227   version_type=linux
16228   need_lib_prefix=no
16229   need_version=no
16230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231   soname_spec='${libname}${release}${shared_ext}$major'
16232   shlibpath_var=LD_LIBRARY_PATH
16233   shlibpath_overrides_runpath=yes
16234   ;;
16235
16236 openbsd*)
16237   version_type=sunos
16238   need_lib_prefix=no
16239   need_version=yes
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16242   shlibpath_var=LD_LIBRARY_PATH
16243   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16244     case $host_os in
16245       openbsd2.[89] | openbsd2.[89].*)
16246         shlibpath_overrides_runpath=no
16247         ;;
16248       *)
16249         shlibpath_overrides_runpath=yes
16250         ;;
16251       esac
16252   else
16253     shlibpath_overrides_runpath=yes
16254   fi
16255   ;;
16256
16257 os2*)
16258   libname_spec='$name'
16259   shrext_cmds=".dll"
16260   need_lib_prefix=no
16261   library_names_spec='$libname${shared_ext} $libname.a'
16262   dynamic_linker='OS/2 ld.exe'
16263   shlibpath_var=LIBPATH
16264   ;;
16265
16266 osf3* | osf4* | osf5*)
16267   version_type=osf
16268   need_lib_prefix=no
16269   need_version=no
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272   shlibpath_var=LD_LIBRARY_PATH
16273   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16274   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16275   ;;
16276
16277 sco3.2v5*)
16278   version_type=osf
16279   soname_spec='${libname}${release}${shared_ext}$major'
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281   shlibpath_var=LD_LIBRARY_PATH
16282   ;;
16283
16284 solaris*)
16285   version_type=linux
16286   need_lib_prefix=no
16287   need_version=no
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289   soname_spec='${libname}${release}${shared_ext}$major'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   shlibpath_overrides_runpath=yes
16292   hardcode_into_libs=yes
16293   # ldd complains unless libraries are executable
16294   postinstall_cmds='chmod +x $lib'
16295   ;;
16296
16297 sunos4*)
16298   version_type=sunos
16299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   shlibpath_overrides_runpath=yes
16303   if test "$with_gnu_ld" = yes; then
16304     need_lib_prefix=no
16305   fi
16306   need_version=yes
16307   ;;
16308
16309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16310   version_type=linux
16311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312   soname_spec='${libname}${release}${shared_ext}$major'
16313   shlibpath_var=LD_LIBRARY_PATH
16314   case $host_vendor in
16315     sni)
16316       shlibpath_overrides_runpath=no
16317       need_lib_prefix=no
16318       export_dynamic_flag_spec='${wl}-Blargedynsym'
16319       runpath_var=LD_RUN_PATH
16320       ;;
16321     siemens)
16322       need_lib_prefix=no
16323       ;;
16324     motorola)
16325       need_lib_prefix=no
16326       need_version=no
16327       shlibpath_overrides_runpath=no
16328       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16329       ;;
16330   esac
16331   ;;
16332
16333 sysv4*MP*)
16334   if test -d /usr/nec ;then
16335     version_type=linux
16336     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337     soname_spec='$libname${shared_ext}.$major'
16338     shlibpath_var=LD_LIBRARY_PATH
16339   fi
16340   ;;
16341
16342 uts4*)
16343   version_type=linux
16344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345   soname_spec='${libname}${release}${shared_ext}$major'
16346   shlibpath_var=LD_LIBRARY_PATH
16347   ;;
16348
16349 *)
16350   dynamic_linker=no
16351   ;;
16352 esac
16353 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16354 echo "${ECHO_T}$dynamic_linker" >&6; }
16355 test "$dynamic_linker" = no && can_build_shared=no
16356
16357 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16359 hardcode_action_F77=
16360 if test -n "$hardcode_libdir_flag_spec_F77" || \
16361    test -n "$runpath_var F77" || \
16362    test "X$hardcode_automatic_F77"="Xyes" ; then
16363
16364   # We can hardcode non-existant directories.
16365   if test "$hardcode_direct_F77" != no &&
16366      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16367      # have to relink, otherwise we might link with an installed library
16368      # when we should be linking with a yet-to-be-installed one
16369      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16370      test "$hardcode_minus_L_F77" != no; then
16371     # Linking always hardcodes the temporary library directory.
16372     hardcode_action_F77=relink
16373   else
16374     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16375     hardcode_action_F77=immediate
16376   fi
16377 else
16378   # We cannot hardcode anything, or else we can only hardcode existing
16379   # directories.
16380   hardcode_action_F77=unsupported
16381 fi
16382 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16383 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16384
16385 if test "$hardcode_action_F77" = relink; then
16386   # Fast installation is not supported
16387   enable_fast_install=no
16388 elif test "$shlibpath_overrides_runpath" = yes ||
16389      test "$enable_shared" = no; then
16390   # Fast installation is not necessary
16391   enable_fast_install=needless
16392 fi
16393
16394 striplib=
16395 old_striplib=
16396 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16397 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16398 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16399   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401   { echo "$as_me:$LINENO: result: yes" >&5
16402 echo "${ECHO_T}yes" >&6; }
16403 else
16404 # FIXME - insert some real tests, host_os isn't really good enough
16405   case $host_os in
16406    darwin*)
16407        if test -n "$STRIP" ; then
16408          striplib="$STRIP -x"
16409          { echo "$as_me:$LINENO: result: yes" >&5
16410 echo "${ECHO_T}yes" >&6; }
16411        else
16412   { echo "$as_me:$LINENO: result: no" >&5
16413 echo "${ECHO_T}no" >&6; }
16414 fi
16415        ;;
16416    *)
16417   { echo "$as_me:$LINENO: result: no" >&5
16418 echo "${ECHO_T}no" >&6; }
16419     ;;
16420   esac
16421 fi
16422
16423
16424
16425 # The else clause should only fire when bootstrapping the
16426 # libtool distribution, otherwise you forgot to ship ltmain.sh
16427 # with your package, and you will get complaints that there are
16428 # no rules to generate ltmain.sh.
16429 if test -f "$ltmain"; then
16430   # See if we are running on zsh, and set the options which allow our commands through
16431   # without removal of \ escapes.
16432   if test -n "${ZSH_VERSION+set}" ; then
16433     setopt NO_GLOB_SUBST
16434   fi
16435   # Now quote all the things that may contain metacharacters while being
16436   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16437   # variables and quote the copies for generation of the libtool script.
16438   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16439     SED SHELL STRIP \
16440     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16441     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16442     deplibs_check_method reload_flag reload_cmds need_locks \
16443     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16444     lt_cv_sys_global_symbol_to_c_name_address \
16445     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16446     old_postinstall_cmds old_postuninstall_cmds \
16447     compiler_F77 \
16448     CC_F77 \
16449     LD_F77 \
16450     lt_prog_compiler_wl_F77 \
16451     lt_prog_compiler_pic_F77 \
16452     lt_prog_compiler_static_F77 \
16453     lt_prog_compiler_no_builtin_flag_F77 \
16454     export_dynamic_flag_spec_F77 \
16455     thread_safe_flag_spec_F77 \
16456     whole_archive_flag_spec_F77 \
16457     enable_shared_with_static_runtimes_F77 \
16458     old_archive_cmds_F77 \
16459     old_archive_from_new_cmds_F77 \
16460     predep_objects_F77 \
16461     postdep_objects_F77 \
16462     predeps_F77 \
16463     postdeps_F77 \
16464     compiler_lib_search_path_F77 \
16465     archive_cmds_F77 \
16466     archive_expsym_cmds_F77 \
16467     postinstall_cmds_F77 \
16468     postuninstall_cmds_F77 \
16469     old_archive_from_expsyms_cmds_F77 \
16470     allow_undefined_flag_F77 \
16471     no_undefined_flag_F77 \
16472     export_symbols_cmds_F77 \
16473     hardcode_libdir_flag_spec_F77 \
16474     hardcode_libdir_flag_spec_ld_F77 \
16475     hardcode_libdir_separator_F77 \
16476     hardcode_automatic_F77 \
16477     module_cmds_F77 \
16478     module_expsym_cmds_F77 \
16479     lt_cv_prog_compiler_c_o_F77 \
16480     exclude_expsyms_F77 \
16481     include_expsyms_F77; do
16482
16483     case $var in
16484     old_archive_cmds_F77 | \
16485     old_archive_from_new_cmds_F77 | \
16486     archive_cmds_F77 | \
16487     archive_expsym_cmds_F77 | \
16488     module_cmds_F77 | \
16489     module_expsym_cmds_F77 | \
16490     old_archive_from_expsyms_cmds_F77 | \
16491     export_symbols_cmds_F77 | \
16492     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16493     postinstall_cmds | postuninstall_cmds | \
16494     old_postinstall_cmds | old_postuninstall_cmds | \
16495     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16496       # Double-quote double-evaled strings.
16497       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16498       ;;
16499     *)
16500       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16501       ;;
16502     esac
16503   done
16504
16505   case $lt_echo in
16506   *'\$0 --fallback-echo"')
16507     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16508     ;;
16509   esac
16510
16511 cfgfile="$ofile"
16512
16513   cat <<__EOF__ >> "$cfgfile"
16514 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16515
16516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16517
16518 # Shell to use when invoking shell scripts.
16519 SHELL=$lt_SHELL
16520
16521 # Whether or not to build shared libraries.
16522 build_libtool_libs=$enable_shared
16523
16524 # Whether or not to build static libraries.
16525 build_old_libs=$enable_static
16526
16527 # Whether or not to add -lc for building shared libraries.
16528 build_libtool_need_lc=$archive_cmds_need_lc_F77
16529
16530 # Whether or not to disallow shared libs when runtime libs are static
16531 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16532
16533 # Whether or not to optimize for fast installation.
16534 fast_install=$enable_fast_install
16535
16536 # The host system.
16537 host_alias=$host_alias
16538 host=$host
16539
16540 # An echo program that does not interpret backslashes.
16541 echo=$lt_echo
16542
16543 # The archiver.
16544 AR=$lt_AR
16545 AR_FLAGS=$lt_AR_FLAGS
16546
16547 # A C compiler.
16548 LTCC=$lt_LTCC
16549
16550 # A language-specific compiler.
16551 CC=$lt_compiler_F77
16552
16553 # Is the compiler the GNU C compiler?
16554 with_gcc=$GCC_F77
16555
16556 # An ERE matcher.
16557 EGREP=$lt_EGREP
16558
16559 # The linker used to build libraries.
16560 LD=$lt_LD_F77
16561
16562 # Whether we need hard or soft links.
16563 LN_S=$lt_LN_S
16564
16565 # A BSD-compatible nm program.
16566 NM=$lt_NM
16567
16568 # A symbol stripping program
16569 STRIP=$lt_STRIP
16570
16571 # Used to examine libraries when file_magic_cmd begins "file"
16572 MAGIC_CMD=$MAGIC_CMD
16573
16574 # Used on cygwin: DLL creation program.
16575 DLLTOOL="$DLLTOOL"
16576
16577 # Used on cygwin: object dumper.
16578 OBJDUMP="$OBJDUMP"
16579
16580 # Used on cygwin: assembler.
16581 AS="$AS"
16582
16583 # The name of the directory that contains temporary libtool files.
16584 objdir=$objdir
16585
16586 # How to create reloadable object files.
16587 reload_flag=$lt_reload_flag
16588 reload_cmds=$lt_reload_cmds
16589
16590 # How to pass a linker flag through the compiler.
16591 wl=$lt_lt_prog_compiler_wl_F77
16592
16593 # Object file suffix (normally "o").
16594 objext="$ac_objext"
16595
16596 # Old archive suffix (normally "a").
16597 libext="$libext"
16598
16599 # Shared library suffix (normally ".so").
16600 shrext_cmds='$shrext_cmds'
16601
16602 # Executable file suffix (normally "").
16603 exeext="$exeext"
16604
16605 # Additional compiler flags for building library objects.
16606 pic_flag=$lt_lt_prog_compiler_pic_F77
16607 pic_mode=$pic_mode
16608
16609 # What is the maximum length of a command?
16610 max_cmd_len=$lt_cv_sys_max_cmd_len
16611
16612 # Does compiler simultaneously support -c and -o options?
16613 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16614
16615 # Must we lock files when doing compilation ?
16616 need_locks=$lt_need_locks
16617
16618 # Do we need the lib prefix for modules?
16619 need_lib_prefix=$need_lib_prefix
16620
16621 # Do we need a version for libraries?
16622 need_version=$need_version
16623
16624 # Whether dlopen is supported.
16625 dlopen_support=$enable_dlopen
16626
16627 # Whether dlopen of programs is supported.
16628 dlopen_self=$enable_dlopen_self
16629
16630 # Whether dlopen of statically linked programs is supported.
16631 dlopen_self_static=$enable_dlopen_self_static
16632
16633 # Compiler flag to prevent dynamic linking.
16634 link_static_flag=$lt_lt_prog_compiler_static_F77
16635
16636 # Compiler flag to turn off builtin functions.
16637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16638
16639 # Compiler flag to allow reflexive dlopens.
16640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16641
16642 # Compiler flag to generate shared objects directly from archives.
16643 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16644
16645 # Compiler flag to generate thread-safe objects.
16646 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16647
16648 # Library versioning type.
16649 version_type=$version_type
16650
16651 # Format of library name prefix.
16652 libname_spec=$lt_libname_spec
16653
16654 # List of archive names.  First name is the real one, the rest are links.
16655 # The last name is the one that the linker finds with -lNAME.
16656 library_names_spec=$lt_library_names_spec
16657
16658 # The coded name of the library, if different from the real name.
16659 soname_spec=$lt_soname_spec
16660
16661 # Commands used to build and install an old-style archive.
16662 RANLIB=$lt_RANLIB
16663 old_archive_cmds=$lt_old_archive_cmds_F77
16664 old_postinstall_cmds=$lt_old_postinstall_cmds
16665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16666
16667 # Create an old-style archive from a shared archive.
16668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16669
16670 # Create a temporary old-style archive to link instead of a shared archive.
16671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16672
16673 # Commands used to build and install a shared archive.
16674 archive_cmds=$lt_archive_cmds_F77
16675 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16676 postinstall_cmds=$lt_postinstall_cmds
16677 postuninstall_cmds=$lt_postuninstall_cmds
16678
16679 # Commands used to build a loadable module (assumed same as above if empty)
16680 module_cmds=$lt_module_cmds_F77
16681 module_expsym_cmds=$lt_module_expsym_cmds_F77
16682
16683 # Commands to strip libraries.
16684 old_striplib=$lt_old_striplib
16685 striplib=$lt_striplib
16686
16687 # Dependencies to place before the objects being linked to create a
16688 # shared library.
16689 predep_objects=$lt_predep_objects_F77
16690
16691 # Dependencies to place after the objects being linked to create a
16692 # shared library.
16693 postdep_objects=$lt_postdep_objects_F77
16694
16695 # Dependencies to place before the objects being linked to create a
16696 # shared library.
16697 predeps=$lt_predeps_F77
16698
16699 # Dependencies to place after the objects being linked to create a
16700 # shared library.
16701 postdeps=$lt_postdeps_F77
16702
16703 # The library search path used internally by the compiler when linking
16704 # a shared library.
16705 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16706
16707 # Method to check whether dependent libraries are shared objects.
16708 deplibs_check_method=$lt_deplibs_check_method
16709
16710 # Command to use when deplibs_check_method == file_magic.
16711 file_magic_cmd=$lt_file_magic_cmd
16712
16713 # Flag that allows shared libraries with undefined symbols to be built.
16714 allow_undefined_flag=$lt_allow_undefined_flag_F77
16715
16716 # Flag that forces no undefined symbols.
16717 no_undefined_flag=$lt_no_undefined_flag_F77
16718
16719 # Commands used to finish a libtool library installation in a directory.
16720 finish_cmds=$lt_finish_cmds
16721
16722 # Same as above, but a single script fragment to be evaled but not shown.
16723 finish_eval=$lt_finish_eval
16724
16725 # Take the output of nm and produce a listing of raw symbols and C names.
16726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16727
16728 # Transform the output of nm in a proper C declaration
16729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16730
16731 # Transform the output of nm in a C name address pair
16732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16733
16734 # This is the shared library runtime path variable.
16735 runpath_var=$runpath_var
16736
16737 # This is the shared library path variable.
16738 shlibpath_var=$shlibpath_var
16739
16740 # Is shlibpath searched before the hard-coded library search path?
16741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16742
16743 # How to hardcode a shared library path into an executable.
16744 hardcode_action=$hardcode_action_F77
16745
16746 # Whether we should hardcode library paths into libraries.
16747 hardcode_into_libs=$hardcode_into_libs
16748
16749 # Flag to hardcode \$libdir into a binary during linking.
16750 # This must work even if \$libdir does not exist.
16751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16752
16753 # If ld is used when linking, flag to hardcode \$libdir into
16754 # a binary during linking. This must work even if \$libdir does
16755 # not exist.
16756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16757
16758 # Whether we need a single -rpath flag with a separated argument.
16759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16760
16761 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16762 # resulting binary.
16763 hardcode_direct=$hardcode_direct_F77
16764
16765 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766 # resulting binary.
16767 hardcode_minus_L=$hardcode_minus_L_F77
16768
16769 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770 # the resulting binary.
16771 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16772
16773 # Set to yes if building a shared library automatically hardcodes DIR into the library
16774 # and all subsequent libraries and executables linked against it.
16775 hardcode_automatic=$hardcode_automatic_F77
16776
16777 # Variables whose values should be saved in libtool wrapper scripts and
16778 # restored at relink time.
16779 variables_saved_for_relink="$variables_saved_for_relink"
16780
16781 # Whether libtool must link a program against all its dependency libraries.
16782 link_all_deplibs=$link_all_deplibs_F77
16783
16784 # Compile-time system search path for libraries
16785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16786
16787 # Run-time system search path for libraries
16788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16789
16790 # Fix the shell variable \$srcfile for the compiler.
16791 fix_srcfile_path="$fix_srcfile_path_F77"
16792
16793 # Set to yes if exported symbols are required.
16794 always_export_symbols=$always_export_symbols_F77
16795
16796 # The commands to list exported symbols.
16797 export_symbols_cmds=$lt_export_symbols_cmds_F77
16798
16799 # The commands to extract the exported symbol list from a shared archive.
16800 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16801
16802 # Symbols that should not be listed in the preloaded symbols.
16803 exclude_expsyms=$lt_exclude_expsyms_F77
16804
16805 # Symbols that must always be exported.
16806 include_expsyms=$lt_include_expsyms_F77
16807
16808 # ### END LIBTOOL TAG CONFIG: $tagname
16809
16810 __EOF__
16811
16812
16813 else
16814   # If there is no Makefile yet, we rely on a make rule to execute
16815   # `config.status --recheck' to rerun these tests and create the
16816   # libtool script then.
16817   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16818   if test -f "$ltmain_in"; then
16819     test -f Makefile && make "$ltmain"
16820   fi
16821 fi
16822
16823
16824 ac_ext=c
16825 ac_cpp='$CPP $CPPFLAGS'
16826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16829
16830 CC="$lt_save_CC"
16831
16832         else
16833           tagname=""
16834         fi
16835         ;;
16836
16837       GCJ)
16838         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16839
16840
16841 # Source file extension for Java test sources.
16842 ac_ext=java
16843
16844 # Object file extension for compiled Java test sources.
16845 objext=o
16846 objext_GCJ=$objext
16847
16848 # Code to be used in simple compile tests
16849 lt_simple_compile_test_code="class foo {}\n"
16850
16851 # Code to be used in simple link tests
16852 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16853
16854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16855
16856 # If no C compiler was specified, use CC.
16857 LTCC=${LTCC-"$CC"}
16858
16859 # Allow CC to be a program name with arguments.
16860 compiler=$CC
16861
16862
16863 # Allow CC to be a program name with arguments.
16864 lt_save_CC="$CC"
16865 CC=${GCJ-"gcj"}
16866 compiler=$CC
16867 compiler_GCJ=$CC
16868
16869 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16870 archive_cmds_need_lc_GCJ=no
16871
16872 ## CAVEAT EMPTOR:
16873 ## There is no encapsulation within the following macros, do not change
16874 ## the running order or otherwise move them around unless you know exactly
16875 ## what you are doing...
16876
16877 lt_prog_compiler_no_builtin_flag_GCJ=
16878
16879 if test "$GCC" = yes; then
16880   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16881
16882
16883 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   lt_cv_prog_compiler_rtti_exceptions=no
16889   ac_outfile=conftest.$ac_objext
16890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16891    lt_compiler_flag="-fno-rtti -fno-exceptions"
16892    # Insert the option either (1) after the last *FLAGS variable, or
16893    # (2) before a word containing "conftest.", or (3) at the end.
16894    # Note that $ac_compile itself does not contain backslashes and begins
16895    # with a dollar sign (not a hyphen), so the echo should work correctly.
16896    # The option is referenced via a variable to avoid confusing sed.
16897    lt_compile=`echo "$ac_compile" | $SED \
16898    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900    -e 's:$: $lt_compiler_flag:'`
16901    (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902    (eval "$lt_compile" 2>conftest.err)
16903    ac_status=$?
16904    cat conftest.err >&5
16905    echo "$as_me:16905: \$? = $ac_status" >&5
16906    if (exit $ac_status) && test -s "$ac_outfile"; then
16907      # The compiler can only warn and ignore the option if not recognized
16908      # So say no if there are warnings
16909      if test ! -s conftest.err; then
16910        lt_cv_prog_compiler_rtti_exceptions=yes
16911      fi
16912    fi
16913    $rm conftest*
16914
16915 fi
16916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16917 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16918
16919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16920     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16921 else
16922     :
16923 fi
16924
16925 fi
16926
16927 lt_prog_compiler_wl_GCJ=
16928 lt_prog_compiler_pic_GCJ=
16929 lt_prog_compiler_static_GCJ=
16930
16931 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16933
16934   if test "$GCC" = yes; then
16935     lt_prog_compiler_wl_GCJ='-Wl,'
16936     lt_prog_compiler_static_GCJ='-static'
16937
16938     case $host_os in
16939       aix*)
16940       # All AIX code is PIC.
16941       if test "$host_cpu" = ia64; then
16942         # AIX 5 now supports IA64 processor
16943         lt_prog_compiler_static_GCJ='-Bstatic'
16944       fi
16945       ;;
16946
16947     amigaos*)
16948       # FIXME: we need at least 68020 code to build shared libraries, but
16949       # adding the `-m68020' flag to GCC prevents building anything better,
16950       # like `-m68040'.
16951       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16952       ;;
16953
16954     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16955       # PIC is the default for these OSes.
16956       ;;
16957
16958     mingw* | pw32* | os2*)
16959       # This hack is so that the source file can tell whether it is being
16960       # built for inclusion in a dll (and should export symbols for example).
16961       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16962       ;;
16963
16964     darwin* | rhapsody*)
16965       # PIC is the default on this platform
16966       # Common symbols not allowed in MH_DYLIB files
16967       lt_prog_compiler_pic_GCJ='-fno-common'
16968       ;;
16969
16970     msdosdjgpp*)
16971       # Just because we use GCC doesn't mean we suddenly get shared libraries
16972       # on systems that don't support them.
16973       lt_prog_compiler_can_build_shared_GCJ=no
16974       enable_shared=no
16975       ;;
16976
16977     sysv4*MP*)
16978       if test -d /usr/nec; then
16979         lt_prog_compiler_pic_GCJ=-Kconform_pic
16980       fi
16981       ;;
16982
16983     hpux*)
16984       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16985       # not for PA HP-UX.
16986       case "$host_cpu" in
16987       hppa*64*|ia64*)
16988         # +Z the default
16989         ;;
16990       *)
16991         lt_prog_compiler_pic_GCJ='-fPIC'
16992         ;;
16993       esac
16994       ;;
16995
16996     *)
16997       lt_prog_compiler_pic_GCJ='-fPIC'
16998       ;;
16999     esac
17000   else
17001     # PORTME Check for flag to pass linker flags through the system compiler.
17002     case $host_os in
17003     aix*)
17004       lt_prog_compiler_wl_GCJ='-Wl,'
17005       if test "$host_cpu" = ia64; then
17006         # AIX 5 now supports IA64 processor
17007         lt_prog_compiler_static_GCJ='-Bstatic'
17008       else
17009         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17010       fi
17011       ;;
17012
17013     mingw* | pw32* | os2*)
17014       # This hack is so that the source file can tell whether it is being
17015       # built for inclusion in a dll (and should export symbols for example).
17016       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17017       ;;
17018
17019     hpux9* | hpux10* | hpux11*)
17020       lt_prog_compiler_wl_GCJ='-Wl,'
17021       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17022       # not for PA HP-UX.
17023       case "$host_cpu" in
17024       hppa*64*|ia64*)
17025         # +Z the default
17026         ;;
17027       *)
17028         lt_prog_compiler_pic_GCJ='+Z'
17029         ;;
17030       esac
17031       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17032       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17033       ;;
17034
17035     irix5* | irix6* | nonstopux*)
17036       lt_prog_compiler_wl_GCJ='-Wl,'
17037       # PIC (with -KPIC) is the default.
17038       lt_prog_compiler_static_GCJ='-non_shared'
17039       ;;
17040
17041     newsos6)
17042       lt_prog_compiler_pic_GCJ='-KPIC'
17043       lt_prog_compiler_static_GCJ='-Bstatic'
17044       ;;
17045
17046     linux*)
17047       case $CC in
17048       icc* | ecc*)
17049         lt_prog_compiler_wl_GCJ='-Wl,'
17050         lt_prog_compiler_pic_GCJ='-KPIC'
17051         lt_prog_compiler_static_GCJ='-static'
17052         ;;
17053       ccc*)
17054         lt_prog_compiler_wl_GCJ='-Wl,'
17055         # All Alpha code is PIC.
17056         lt_prog_compiler_static_GCJ='-non_shared'
17057         ;;
17058       esac
17059       ;;
17060
17061     osf3* | osf4* | osf5*)
17062       lt_prog_compiler_wl_GCJ='-Wl,'
17063       # All OSF/1 code is PIC.
17064       lt_prog_compiler_static_GCJ='-non_shared'
17065       ;;
17066
17067     sco3.2v5*)
17068       lt_prog_compiler_pic_GCJ='-Kpic'
17069       lt_prog_compiler_static_GCJ='-dn'
17070       ;;
17071
17072     solaris*)
17073       lt_prog_compiler_wl_GCJ='-Wl,'
17074       lt_prog_compiler_pic_GCJ='-KPIC'
17075       lt_prog_compiler_static_GCJ='-Bstatic'
17076       ;;
17077
17078     sunos4*)
17079       lt_prog_compiler_wl_GCJ='-Qoption ld '
17080       lt_prog_compiler_pic_GCJ='-PIC'
17081       lt_prog_compiler_static_GCJ='-Bstatic'
17082       ;;
17083
17084     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17085       lt_prog_compiler_wl_GCJ='-Wl,'
17086       lt_prog_compiler_pic_GCJ='-KPIC'
17087       lt_prog_compiler_static_GCJ='-Bstatic'
17088       ;;
17089
17090     sysv4*MP*)
17091       if test -d /usr/nec ;then
17092         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17093         lt_prog_compiler_static_GCJ='-Bstatic'
17094       fi
17095       ;;
17096
17097     uts4*)
17098       lt_prog_compiler_pic_GCJ='-pic'
17099       lt_prog_compiler_static_GCJ='-Bstatic'
17100       ;;
17101
17102     *)
17103       lt_prog_compiler_can_build_shared_GCJ=no
17104       ;;
17105     esac
17106   fi
17107
17108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17109 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17110
17111 #
17112 # Check to make sure the PIC flag actually works.
17113 #
17114 if test -n "$lt_prog_compiler_pic_GCJ"; then
17115
17116 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17117 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17118 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   lt_prog_compiler_pic_works_GCJ=no
17122   ac_outfile=conftest.$ac_objext
17123    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17124    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17125    # Insert the option either (1) after the last *FLAGS variable, or
17126    # (2) before a word containing "conftest.", or (3) at the end.
17127    # Note that $ac_compile itself does not contain backslashes and begins
17128    # with a dollar sign (not a hyphen), so the echo should work correctly.
17129    # The option is referenced via a variable to avoid confusing sed.
17130    lt_compile=`echo "$ac_compile" | $SED \
17131    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17132    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17133    -e 's:$: $lt_compiler_flag:'`
17134    (eval echo "\"\$as_me:17134: $lt_compile\"" >&5)
17135    (eval "$lt_compile" 2>conftest.err)
17136    ac_status=$?
17137    cat conftest.err >&5
17138    echo "$as_me:17138: \$? = $ac_status" >&5
17139    if (exit $ac_status) && test -s "$ac_outfile"; then
17140      # The compiler can only warn and ignore the option if not recognized
17141      # So say no if there are warnings
17142      if test ! -s conftest.err; then
17143        lt_prog_compiler_pic_works_GCJ=yes
17144      fi
17145    fi
17146    $rm conftest*
17147
17148 fi
17149 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17150 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17151
17152 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17153     case $lt_prog_compiler_pic_GCJ in
17154      "" | " "*) ;;
17155      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17156      esac
17157 else
17158     lt_prog_compiler_pic_GCJ=
17159      lt_prog_compiler_can_build_shared_GCJ=no
17160 fi
17161
17162 fi
17163 case "$host_os" in
17164   # For platforms which do not support PIC, -DPIC is meaningless:
17165   *djgpp*)
17166     lt_prog_compiler_pic_GCJ=
17167     ;;
17168   *)
17169     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17170     ;;
17171 esac
17172
17173 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17174 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17175 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   lt_cv_prog_compiler_c_o_GCJ=no
17179    $rm -r conftest 2>/dev/null
17180    mkdir conftest
17181    cd conftest
17182    mkdir out
17183    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17184
17185    lt_compiler_flag="-o out/conftest2.$ac_objext"
17186    # Insert the option either (1) after the last *FLAGS variable, or
17187    # (2) before a word containing "conftest.", or (3) at the end.
17188    # Note that $ac_compile itself does not contain backslashes and begins
17189    # with a dollar sign (not a hyphen), so the echo should work correctly.
17190    lt_compile=`echo "$ac_compile" | $SED \
17191    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193    -e 's:$: $lt_compiler_flag:'`
17194    (eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195    (eval "$lt_compile" 2>out/conftest.err)
17196    ac_status=$?
17197    cat out/conftest.err >&5
17198    echo "$as_me:17198: \$? = $ac_status" >&5
17199    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17200    then
17201      # The compiler can only warn and ignore the option if not recognized
17202      # So say no if there are warnings
17203      if test ! -s out/conftest.err; then
17204        lt_cv_prog_compiler_c_o_GCJ=yes
17205      fi
17206    fi
17207    chmod u+w .
17208    $rm conftest*
17209    # SGI C++ compiler will create directory out/ii_files/ for
17210    # template instantiation
17211    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17212    $rm out/* && rmdir out
17213    cd ..
17214    rmdir conftest
17215    $rm conftest*
17216
17217 fi
17218 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17219 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17220
17221
17222 hard_links="nottested"
17223 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17224   # do not overwrite the value of need_locks provided by the user
17225   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17226 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17227   hard_links=yes
17228   $rm conftest*
17229   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17230   touch conftest.a
17231   ln conftest.a conftest.b 2>&5 || hard_links=no
17232   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233   { echo "$as_me:$LINENO: result: $hard_links" >&5
17234 echo "${ECHO_T}$hard_links" >&6; }
17235   if test "$hard_links" = no; then
17236     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17237 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17238     need_locks=warn
17239   fi
17240 else
17241   need_locks=no
17242 fi
17243
17244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17246
17247   runpath_var=
17248   allow_undefined_flag_GCJ=
17249   enable_shared_with_static_runtimes_GCJ=no
17250   archive_cmds_GCJ=
17251   archive_expsym_cmds_GCJ=
17252   old_archive_From_new_cmds_GCJ=
17253   old_archive_from_expsyms_cmds_GCJ=
17254   export_dynamic_flag_spec_GCJ=
17255   whole_archive_flag_spec_GCJ=
17256   thread_safe_flag_spec_GCJ=
17257   hardcode_libdir_flag_spec_GCJ=
17258   hardcode_libdir_flag_spec_ld_GCJ=
17259   hardcode_libdir_separator_GCJ=
17260   hardcode_direct_GCJ=no
17261   hardcode_minus_L_GCJ=no
17262   hardcode_shlibpath_var_GCJ=unsupported
17263   link_all_deplibs_GCJ=unknown
17264   hardcode_automatic_GCJ=no
17265   module_cmds_GCJ=
17266   module_expsym_cmds_GCJ=
17267   always_export_symbols_GCJ=no
17268   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17269   # include_expsyms should be a list of space-separated symbols to be *always*
17270   # included in the symbol list
17271   include_expsyms_GCJ=
17272   # exclude_expsyms can be an extended regexp of symbols to exclude
17273   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17274   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17275   # as well as any symbol that contains `d'.
17276   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17277   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17278   # platforms (ab)use it in PIC code, but their linkers get confused if
17279   # the symbol is explicitly referenced.  Since portable code cannot
17280   # rely on this symbol name, it's probably fine to never include it in
17281   # preloaded symbol tables.
17282   extract_expsyms_cmds=
17283
17284   case $host_os in
17285   cygwin* | mingw* | pw32*)
17286     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17287     # When not using gcc, we currently assume that we are using
17288     # Microsoft Visual C++.
17289     if test "$GCC" != yes; then
17290       with_gnu_ld=no
17291     fi
17292     ;;
17293   openbsd*)
17294     with_gnu_ld=no
17295     ;;
17296   esac
17297
17298   ld_shlibs_GCJ=yes
17299   if test "$with_gnu_ld" = yes; then
17300     # If archive_cmds runs LD, not CC, wlarc should be empty
17301     wlarc='${wl}'
17302
17303     # See if GNU ld supports shared libraries.
17304     case $host_os in
17305     aix3* | aix4* | aix5*)
17306       # On AIX/PPC, the GNU linker is very broken
17307       if test "$host_cpu" != ia64; then
17308         ld_shlibs_GCJ=no
17309         cat <<EOF 1>&2
17310
17311 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17312 *** to be unable to reliably create shared libraries on AIX.
17313 *** Therefore, libtool is disabling shared libraries support.  If you
17314 *** really care for shared libraries, you may want to modify your PATH
17315 *** so that a non-GNU linker is found, and then restart.
17316
17317 EOF
17318       fi
17319       ;;
17320
17321     amigaos*)
17322       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17323       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324       hardcode_minus_L_GCJ=yes
17325
17326       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17327       # that the semantics of dynamic libraries on AmigaOS, at least up
17328       # to version 4, is to share data among multiple programs linked
17329       # with the same dynamic library.  Since this doesn't match the
17330       # behavior of shared libraries on other platforms, we can't use
17331       # them.
17332       ld_shlibs_GCJ=no
17333       ;;
17334
17335     beos*)
17336       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337         allow_undefined_flag_GCJ=unsupported
17338         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17339         # support --undefined.  This deserves some investigation.  FIXME
17340         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17341       else
17342         ld_shlibs_GCJ=no
17343       fi
17344       ;;
17345
17346     cygwin* | mingw* | pw32*)
17347       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17348       # as there is no search path for DLLs.
17349       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350       allow_undefined_flag_GCJ=unsupported
17351       always_export_symbols_GCJ=no
17352       enable_shared_with_static_runtimes_GCJ=yes
17353       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17354
17355       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17356         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17357         # If the export-symbols file already is a .def file (1st line
17358         # is EXPORTS), use it as is; otherwise, prepend...
17359         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17360           cp $export_symbols $output_objdir/$soname.def;
17361         else
17362           echo EXPORTS > $output_objdir/$soname.def;
17363           cat $export_symbols >> $output_objdir/$soname.def;
17364         fi~
17365         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17366       else
17367         ld_shlibs=no
17368       fi
17369       ;;
17370
17371     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17372       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17373         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17374         wlarc=
17375       else
17376         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17378       fi
17379       ;;
17380
17381     solaris* | sysv5*)
17382       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17383         ld_shlibs_GCJ=no
17384         cat <<EOF 1>&2
17385
17386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17387 *** create shared libraries on Solaris systems.  Therefore, libtool
17388 *** is disabling shared libraries support.  We urge you to upgrade GNU
17389 *** binutils to release 2.9.1 or newer.  Another option is to modify
17390 *** your PATH or compiler configuration so that the native linker is
17391 *** used, and then restart.
17392
17393 EOF
17394       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17397       else
17398         ld_shlibs_GCJ=no
17399       fi
17400       ;;
17401
17402     sunos4*)
17403       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17404       wlarc=
17405       hardcode_direct_GCJ=yes
17406       hardcode_shlibpath_var_GCJ=no
17407       ;;
17408
17409   linux*)
17410     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412         archive_cmds_GCJ="$tmp_archive_cmds"
17413       supports_anon_versioning=no
17414       case `$LD -v 2>/dev/null` in
17415         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17416         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17417         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17418         *\ 2.11.*) ;; # other 2.11 versions
17419         *) supports_anon_versioning=yes ;;
17420       esac
17421       if test $supports_anon_versioning = yes; then
17422         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17424 $echo "local: *; };" >> $output_objdir/$libname.ver~
17425         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17426       else
17427         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17428       fi
17429       link_all_deplibs_GCJ=no
17430     else
17431       ld_shlibs_GCJ=no
17432     fi
17433     ;;
17434
17435     *)
17436       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17437         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17438         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17439       else
17440         ld_shlibs_GCJ=no
17441       fi
17442       ;;
17443     esac
17444
17445     if test "$ld_shlibs_GCJ" = yes; then
17446       runpath_var=LD_RUN_PATH
17447       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17448       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17449       # ancient GNU ld didn't support --whole-archive et. al.
17450       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17451         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17452       else
17453         whole_archive_flag_spec_GCJ=
17454       fi
17455     fi
17456   else
17457     # PORTME fill in a description of your system's linker (not GNU ld)
17458     case $host_os in
17459     aix3*)
17460       allow_undefined_flag_GCJ=unsupported
17461       always_export_symbols_GCJ=yes
17462       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'
17463       # Note: this linker hardcodes the directories in LIBPATH if there
17464       # are no directories specified by -L.
17465       hardcode_minus_L_GCJ=yes
17466       if test "$GCC" = yes && test -z "$link_static_flag"; then
17467         # Neither direct hardcoding nor static linking is supported with a
17468         # broken collect2.
17469         hardcode_direct_GCJ=unsupported
17470       fi
17471       ;;
17472
17473     aix4* | aix5*)
17474       if test "$host_cpu" = ia64; then
17475         # On IA64, the linker does run time linking by default, so we don't
17476         # have to do anything special.
17477         aix_use_runtimelinking=no
17478         exp_sym_flag='-Bexport'
17479         no_entry_flag=""
17480       else
17481         # If we're using GNU nm, then we don't want the "-C" option.
17482         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17483         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17484           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'
17485         else
17486           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'
17487         fi
17488         aix_use_runtimelinking=no
17489
17490         # Test if we are trying to use run time linking or normal
17491         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17492         # need to do runtime linking.
17493         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17494           for ld_flag in $LDFLAGS; do
17495           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17496             aix_use_runtimelinking=yes
17497             break
17498           fi
17499           done
17500         esac
17501
17502         exp_sym_flag='-bexport'
17503         no_entry_flag='-bnoentry'
17504       fi
17505
17506       # When large executables or shared objects are built, AIX ld can
17507       # have problems creating the table of contents.  If linking a library
17508       # or program results in "error TOC overflow" add -mminimal-toc to
17509       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17510       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17511
17512       archive_cmds_GCJ=''
17513       hardcode_direct_GCJ=yes
17514       hardcode_libdir_separator_GCJ=':'
17515       link_all_deplibs_GCJ=yes
17516
17517       if test "$GCC" = yes; then
17518         case $host_os in aix4.012|aix4.012.*)
17519         # We only want to do this on AIX 4.2 and lower, the check
17520         # below for broken collect2 doesn't work under 4.3+
17521           collect2name=`${CC} -print-prog-name=collect2`
17522           if test -f "$collect2name" && \
17523            strings "$collect2name" | grep resolve_lib_name >/dev/null
17524           then
17525           # We have reworked collect2
17526           hardcode_direct_GCJ=yes
17527           else
17528           # We have old collect2
17529           hardcode_direct_GCJ=unsupported
17530           # It fails to find uninstalled libraries when the uninstalled
17531           # path is not listed in the libpath.  Setting hardcode_minus_L
17532           # to unsupported forces relinking
17533           hardcode_minus_L_GCJ=yes
17534           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535           hardcode_libdir_separator_GCJ=
17536           fi
17537         esac
17538         shared_flag='-shared'
17539       else
17540         # not using gcc
17541         if test "$host_cpu" = ia64; then
17542         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17543         # chokes on -Wl,-G. The following line is correct:
17544           shared_flag='-G'
17545         else
17546         if test "$aix_use_runtimelinking" = yes; then
17547             shared_flag='${wl}-G'
17548           else
17549             shared_flag='${wl}-bM:SRE'
17550         fi
17551         fi
17552       fi
17553
17554       # It seems that -bexpall does not export symbols beginning with
17555       # underscore (_), so it is better to generate a list of symbols to export.
17556       always_export_symbols_GCJ=yes
17557       if test "$aix_use_runtimelinking" = yes; then
17558         # Warning - without using the other runtime loading flags (-brtl),
17559         # -berok will link without error, but may produce a broken library.
17560         allow_undefined_flag_GCJ='-berok'
17561        # Determine the default libpath from the value encoded in an empty executable.
17562        cat >conftest.$ac_ext <<_ACEOF
17563 /* confdefs.h.  */
17564 _ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h.  */
17568
17569 int
17570 main ()
17571 {
17572
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_link") 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } && {
17591          test -z "$ac_c_werror_flag" ||
17592          test ! -s conftest.err
17593        } && test -s conftest$ac_exeext &&
17594        $as_test_x conftest$ac_exeext; then
17595
17596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17597 }'`
17598 # Check for a 64-bit object if we didn't find anything.
17599 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; }
17600 }'`; fi
17601 else
17602   echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605
17606 fi
17607
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609       conftest$ac_exeext conftest.$ac_ext
17610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17611
17612        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17614        else
17615         if test "$host_cpu" = ia64; then
17616           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617           allow_undefined_flag_GCJ="-z nodefs"
17618           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17619         else
17620          # Determine the default libpath from the value encoded in an empty executable.
17621          cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627
17628 int
17629 main ()
17630 {
17631
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_link") 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } && {
17650          test -z "$ac_c_werror_flag" ||
17651          test ! -s conftest.err
17652        } && test -s conftest$ac_exeext &&
17653        $as_test_x conftest$ac_exeext; then
17654
17655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17656 }'`
17657 # Check for a 64-bit object if we didn't find anything.
17658 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; }
17659 }'`; fi
17660 else
17661   echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664
17665 fi
17666
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668       conftest$ac_exeext conftest.$ac_ext
17669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17670
17671          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672           # Warning - without using the other run time loading flags,
17673           # -berok will link without error, but may produce a broken library.
17674           no_undefined_flag_GCJ=' ${wl}-bernotok'
17675           allow_undefined_flag_GCJ=' ${wl}-berok'
17676           # -bexpall does not export symbols beginning with underscore (_)
17677           always_export_symbols_GCJ=yes
17678           # Exported symbols can be pulled into shared objects from archives
17679           whole_archive_flag_spec_GCJ=' '
17680           archive_cmds_need_lc_GCJ=yes
17681           # This is similar to how AIX traditionally builds it's shared libraries.
17682           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17683         fi
17684       fi
17685       ;;
17686
17687     amigaos*)
17688       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)'
17689       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690       hardcode_minus_L_GCJ=yes
17691       # see comment about different semantics on the GNU ld section
17692       ld_shlibs_GCJ=no
17693       ;;
17694
17695     bsdi4*)
17696       export_dynamic_flag_spec_GCJ=-rdynamic
17697       ;;
17698
17699     cygwin* | mingw* | pw32*)
17700       # When not using gcc, we currently assume that we are using
17701       # Microsoft Visual C++.
17702       # hardcode_libdir_flag_spec is actually meaningless, as there is
17703       # no search path for DLLs.
17704       hardcode_libdir_flag_spec_GCJ=' '
17705       allow_undefined_flag_GCJ=unsupported
17706       # Tell ltmain to make .lib files, not .a files.
17707       libext=lib
17708       # Tell ltmain to make .dll files, not .so files.
17709       shrext_cmds=".dll"
17710       # FIXME: Setting linknames here is a bad hack.
17711       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17712       # The linker will automatically build a .lib file if we build a DLL.
17713       old_archive_From_new_cmds_GCJ='true'
17714       # FIXME: Should let the user specify the lib program.
17715       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17716       fix_srcfile_path='`cygpath -w "$srcfile"`'
17717       enable_shared_with_static_runtimes_GCJ=yes
17718       ;;
17719
17720     darwin* | rhapsody*)
17721     if test "$GXX" = yes ; then
17722       archive_cmds_need_lc_GCJ=no
17723       case "$host_os" in
17724       rhapsody* | darwin1.[012])
17725         allow_undefined_flag_GCJ='-undefined suppress'
17726         ;;
17727       *) # Darwin 1.3 on
17728       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17729         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17730       else
17731         case ${MACOSX_DEPLOYMENT_TARGET} in
17732           10.[012])
17733             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17734             ;;
17735           10.*)
17736             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17737             ;;
17738         esac
17739       fi
17740         ;;
17741       esac
17742         lt_int_apple_cc_single_mod=no
17743         output_verbose_link_cmd='echo'
17744         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17745           lt_int_apple_cc_single_mod=yes
17746         fi
17747         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17748           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17749         else
17750         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17751       fi
17752       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17753       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17754         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17755           archive_expsym_cmds_GCJ='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}'
17756         else
17757           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17758         fi
17759           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}'
17760       hardcode_direct_GCJ=no
17761       hardcode_automatic_GCJ=yes
17762       hardcode_shlibpath_var_GCJ=unsupported
17763       whole_archive_flag_spec_GCJ='-all_load $convenience'
17764       link_all_deplibs_GCJ=yes
17765     else
17766       ld_shlibs_GCJ=no
17767     fi
17768       ;;
17769
17770     dgux*)
17771       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773       hardcode_shlibpath_var_GCJ=no
17774       ;;
17775
17776     freebsd1*)
17777       ld_shlibs_GCJ=no
17778       ;;
17779
17780     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781     # support.  Future versions do this automatically, but an explicit c++rt0.o
17782     # does not break anything, and helps significantly (at the cost of a little
17783     # extra space).
17784     freebsd2.2*)
17785       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787       hardcode_direct_GCJ=yes
17788       hardcode_shlibpath_var_GCJ=no
17789       ;;
17790
17791     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17792     freebsd2*)
17793       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794       hardcode_direct_GCJ=yes
17795       hardcode_minus_L_GCJ=yes
17796       hardcode_shlibpath_var_GCJ=no
17797       ;;
17798
17799     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800     freebsd* | kfreebsd*-gnu)
17801       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803       hardcode_direct_GCJ=yes
17804       hardcode_shlibpath_var_GCJ=no
17805       ;;
17806
17807     hpux9*)
17808       if test "$GCC" = yes; then
17809         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'
17810       else
17811         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'
17812       fi
17813       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814       hardcode_libdir_separator_GCJ=:
17815       hardcode_direct_GCJ=yes
17816
17817       # hardcode_minus_L: Not really in the search PATH,
17818       # but as the default location of the library.
17819       hardcode_minus_L_GCJ=yes
17820       export_dynamic_flag_spec_GCJ='${wl}-E'
17821       ;;
17822
17823     hpux10* | hpux11*)
17824       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825         case "$host_cpu" in
17826         hppa*64*|ia64*)
17827           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828           ;;
17829         *)
17830           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17831           ;;
17832         esac
17833       else
17834         case "$host_cpu" in
17835         hppa*64*|ia64*)
17836           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17837           ;;
17838         *)
17839           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17840           ;;
17841         esac
17842       fi
17843       if test "$with_gnu_ld" = no; then
17844         case "$host_cpu" in
17845         hppa*64*)
17846           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17847           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17848           hardcode_libdir_separator_GCJ=:
17849           hardcode_direct_GCJ=no
17850           hardcode_shlibpath_var_GCJ=no
17851           ;;
17852         ia64*)
17853           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17854           hardcode_direct_GCJ=no
17855           hardcode_shlibpath_var_GCJ=no
17856
17857           # hardcode_minus_L: Not really in the search PATH,
17858           # but as the default location of the library.
17859           hardcode_minus_L_GCJ=yes
17860           ;;
17861         *)
17862           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17863           hardcode_libdir_separator_GCJ=:
17864           hardcode_direct_GCJ=yes
17865           export_dynamic_flag_spec_GCJ='${wl}-E'
17866
17867           # hardcode_minus_L: Not really in the search PATH,
17868           # but as the default location of the library.
17869           hardcode_minus_L_GCJ=yes
17870           ;;
17871         esac
17872       fi
17873       ;;
17874
17875     irix5* | irix6* | nonstopux*)
17876       if test "$GCC" = yes; then
17877         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'
17878       else
17879         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'
17880         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17881       fi
17882       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17883       hardcode_libdir_separator_GCJ=:
17884       link_all_deplibs_GCJ=yes
17885       ;;
17886
17887     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17888       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17889         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17890       else
17891         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17892       fi
17893       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17894       hardcode_direct_GCJ=yes
17895       hardcode_shlibpath_var_GCJ=no
17896       ;;
17897
17898     newsos6)
17899       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900       hardcode_direct_GCJ=yes
17901       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17902       hardcode_libdir_separator_GCJ=:
17903       hardcode_shlibpath_var_GCJ=no
17904       ;;
17905
17906     openbsd*)
17907       hardcode_direct_GCJ=yes
17908       hardcode_shlibpath_var_GCJ=no
17909       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17910         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17911         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17912         export_dynamic_flag_spec_GCJ='${wl}-E'
17913       else
17914        case $host_os in
17915          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17916            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17917            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17918            ;;
17919          *)
17920            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17921            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17922            ;;
17923        esac
17924       fi
17925       ;;
17926
17927     os2*)
17928       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929       hardcode_minus_L_GCJ=yes
17930       allow_undefined_flag_GCJ=unsupported
17931       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'
17932       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17933       ;;
17934
17935     osf3*)
17936       if test "$GCC" = yes; then
17937         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17938         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'
17939       else
17940         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17941         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'
17942       fi
17943       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944       hardcode_libdir_separator_GCJ=:
17945       ;;
17946
17947     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17948       if test "$GCC" = yes; then
17949         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17950         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'
17951         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17952       else
17953         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17954         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'
17955         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~
17956         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17957
17958         # Both c and cxx compiler support -rpath directly
17959         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17960       fi
17961       hardcode_libdir_separator_GCJ=:
17962       ;;
17963
17964     sco3.2v5*)
17965       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17966       hardcode_shlibpath_var_GCJ=no
17967       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17968       runpath_var=LD_RUN_PATH
17969       hardcode_runpath_var=yes
17970       ;;
17971
17972     solaris*)
17973       no_undefined_flag_GCJ=' -z text'
17974       if test "$GCC" = yes; then
17975         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17976         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17977           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17978       else
17979         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17981         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17982       fi
17983       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984       hardcode_shlibpath_var_GCJ=no
17985       case $host_os in
17986       solaris2.[0-5] | solaris2.[0-5].*) ;;
17987       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17988         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17989       esac
17990       link_all_deplibs_GCJ=yes
17991       ;;
17992
17993     sunos4*)
17994       if test "x$host_vendor" = xsequent; then
17995         # Use $CC to link under sequent, because it throws in some extra .o
17996         # files that make .init and .fini sections work.
17997         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17998       else
17999         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18000       fi
18001       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002       hardcode_direct_GCJ=yes
18003       hardcode_minus_L_GCJ=yes
18004       hardcode_shlibpath_var_GCJ=no
18005       ;;
18006
18007     sysv4)
18008       case $host_vendor in
18009         sni)
18010           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011           hardcode_direct_GCJ=yes # is this really true???
18012         ;;
18013         siemens)
18014           ## LD is ld it makes a PLAMLIB
18015           ## CC just makes a GrossModule.
18016           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18017           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18018           hardcode_direct_GCJ=no
18019         ;;
18020         motorola)
18021           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18023         ;;
18024       esac
18025       runpath_var='LD_RUN_PATH'
18026       hardcode_shlibpath_var_GCJ=no
18027       ;;
18028
18029     sysv4.3*)
18030       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031       hardcode_shlibpath_var_GCJ=no
18032       export_dynamic_flag_spec_GCJ='-Bexport'
18033       ;;
18034
18035     sysv4*MP*)
18036       if test -d /usr/nec; then
18037         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038         hardcode_shlibpath_var_GCJ=no
18039         runpath_var=LD_RUN_PATH
18040         hardcode_runpath_var=yes
18041         ld_shlibs_GCJ=yes
18042       fi
18043       ;;
18044
18045     sysv4.2uw2*)
18046       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18047       hardcode_direct_GCJ=yes
18048       hardcode_minus_L_GCJ=no
18049       hardcode_shlibpath_var_GCJ=no
18050       hardcode_runpath_var=yes
18051       runpath_var=LD_RUN_PATH
18052       ;;
18053
18054    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18055       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18056       if test "$GCC" = yes; then
18057         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058       else
18059         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18060       fi
18061       runpath_var='LD_RUN_PATH'
18062       hardcode_shlibpath_var_GCJ=no
18063       ;;
18064
18065     sysv5*)
18066       no_undefined_flag_GCJ=' -z text'
18067       # $CC -shared without GNU ld will not create a library from C++
18068       # object files and a static libstdc++, better avoid it by now
18069       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18071                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18072       hardcode_libdir_flag_spec_GCJ=
18073       hardcode_shlibpath_var_GCJ=no
18074       runpath_var='LD_RUN_PATH'
18075       ;;
18076
18077     uts4*)
18078       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18080       hardcode_shlibpath_var_GCJ=no
18081       ;;
18082
18083     *)
18084       ld_shlibs_GCJ=no
18085       ;;
18086     esac
18087   fi
18088
18089 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18090 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18091 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18092
18093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18094 if test "$GCC" = yes; then
18095   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18096 fi
18097
18098 #
18099 # Do we need to explicitly link libc?
18100 #
18101 case "x$archive_cmds_need_lc_GCJ" in
18102 x|xyes)
18103   # Assume -lc should be added
18104   archive_cmds_need_lc_GCJ=yes
18105
18106   if test "$enable_shared" = yes && test "$GCC" = yes; then
18107     case $archive_cmds_GCJ in
18108     *'~'*)
18109       # FIXME: we may have to deal with multi-command sequences.
18110       ;;
18111     '$CC '*)
18112       # Test whether the compiler implicitly links with -lc since on some
18113       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18114       # to ld, don't add -lc before -lgcc.
18115       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18117       $rm conftest*
18118       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18119
18120       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121   (eval $ac_compile) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } 2>conftest.err; then
18125         soname=conftest
18126         lib=conftest
18127         libobjs=conftest.$ac_objext
18128         deplibs=
18129         wl=$lt_prog_compiler_wl_GCJ
18130         compiler_flags=-v
18131         linker_flags=-v
18132         verstring=
18133         output_objdir=.
18134         libname=conftest
18135         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18136         allow_undefined_flag_GCJ=
18137         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18138   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18139   ac_status=$?
18140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141   (exit $ac_status); }
18142         then
18143           archive_cmds_need_lc_GCJ=no
18144         else
18145           archive_cmds_need_lc_GCJ=yes
18146         fi
18147         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18148       else
18149         cat conftest.err 1>&5
18150       fi
18151       $rm conftest*
18152       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18153 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18154       ;;
18155     esac
18156   fi
18157   ;;
18158 esac
18159
18160 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18161 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18162 library_names_spec=
18163 libname_spec='lib$name'
18164 soname_spec=
18165 shrext_cmds=".so"
18166 postinstall_cmds=
18167 postuninstall_cmds=
18168 finish_cmds=
18169 finish_eval=
18170 shlibpath_var=
18171 shlibpath_overrides_runpath=unknown
18172 version_type=none
18173 dynamic_linker="$host_os ld.so"
18174 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18175 if test "$GCC" = yes; then
18176   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18177   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18178     # if the path contains ";" then we assume it to be the separator
18179     # otherwise default to the standard path separator (i.e. ":") - it is
18180     # assumed that no part of a normal pathname contains ";" but that should
18181     # okay in the real world where ";" in dirpaths is itself problematic.
18182     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18183   else
18184     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18185   fi
18186 else
18187   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18188 fi
18189 need_lib_prefix=unknown
18190 hardcode_into_libs=no
18191
18192 # when you set need_version to no, make sure it does not cause -set_version
18193 # flags to be left without arguments
18194 need_version=unknown
18195
18196 case $host_os in
18197 aix3*)
18198   version_type=linux
18199   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18200   shlibpath_var=LIBPATH
18201
18202   # AIX 3 has no versioning support, so we append a major version to the name.
18203   soname_spec='${libname}${release}${shared_ext}$major'
18204   ;;
18205
18206 aix4* | aix5*)
18207   version_type=linux
18208   need_lib_prefix=no
18209   need_version=no
18210   hardcode_into_libs=yes
18211   if test "$host_cpu" = ia64; then
18212     # AIX 5 supports IA64
18213     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18214     shlibpath_var=LD_LIBRARY_PATH
18215   else
18216     # With GCC up to 2.95.x, collect2 would create an import file
18217     # for dependence libraries.  The import file would start with
18218     # the line `#! .'.  This would cause the generated library to
18219     # depend on `.', always an invalid library.  This was fixed in
18220     # development snapshots of GCC prior to 3.0.
18221     case $host_os in
18222       aix4 | aix4.[01] | aix4.[01].*)
18223       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18224            echo ' yes '
18225            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18226         :
18227       else
18228         can_build_shared=no
18229       fi
18230       ;;
18231     esac
18232     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18233     # soname into executable. Probably we can add versioning support to
18234     # collect2, so additional links can be useful in future.
18235     if test "$aix_use_runtimelinking" = yes; then
18236       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18237       # instead of lib<name>.a to let people know that these are not
18238       # typical AIX shared libraries.
18239       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240     else
18241       # We preserve .a as extension for shared libraries through AIX4.2
18242       # and later when we are not doing run time linking.
18243       library_names_spec='${libname}${release}.a $libname.a'
18244       soname_spec='${libname}${release}${shared_ext}$major'
18245     fi
18246     shlibpath_var=LIBPATH
18247   fi
18248   ;;
18249
18250 amigaos*)
18251   library_names_spec='$libname.ixlibrary $libname.a'
18252   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18253   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'
18254   ;;
18255
18256 beos*)
18257   library_names_spec='${libname}${shared_ext}'
18258   dynamic_linker="$host_os ld.so"
18259   shlibpath_var=LIBRARY_PATH
18260   ;;
18261
18262 bsdi4*)
18263   version_type=linux
18264   need_version=no
18265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18266   soname_spec='${libname}${release}${shared_ext}$major'
18267   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18268   shlibpath_var=LD_LIBRARY_PATH
18269   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18270   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18271   # the default ld.so.conf also contains /usr/contrib/lib and
18272   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18273   # libtool to hard-code these into programs
18274   ;;
18275
18276 cygwin* | mingw* | pw32*)
18277   version_type=windows
18278   shrext_cmds=".dll"
18279   need_version=no
18280   need_lib_prefix=no
18281
18282   case $GCC,$host_os in
18283   yes,cygwin* | yes,mingw* | yes,pw32*)
18284     library_names_spec='$libname.dll.a'
18285     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18286     postinstall_cmds='base_file=`basename \${file}`~
18287       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18288       dldir=$destdir/`dirname \$dlpath`~
18289       test -d \$dldir || mkdir -p \$dldir~
18290       $install_prog $dir/$dlname \$dldir/$dlname'
18291     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18292       dlpath=$dir/\$dldll~
18293        $rm \$dlpath'
18294     shlibpath_overrides_runpath=yes
18295
18296     case $host_os in
18297     cygwin*)
18298       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18299       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18301       ;;
18302     mingw*)
18303       # MinGW DLLs use traditional 'lib' prefix
18304       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18305       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18306       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18307         # It is most probably a Windows format PATH printed by
18308         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18309         # path with ; separators, and with drive letters. We can handle the
18310         # drive letters (cygwin fileutils understands them), so leave them,
18311         # especially as we might pass files found there to a mingw objdump,
18312         # which wouldn't understand a cygwinified path. Ahh.
18313         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18314       else
18315         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18316       fi
18317       ;;
18318     pw32*)
18319       # pw32 DLLs use 'pw' prefix rather than 'lib'
18320       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18321       ;;
18322     esac
18323     ;;
18324
18325   *)
18326     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18327     ;;
18328   esac
18329   dynamic_linker='Win32 ld.exe'
18330   # FIXME: first we should search . and the directory the executable is in
18331   shlibpath_var=PATH
18332   ;;
18333
18334 darwin* | rhapsody*)
18335   dynamic_linker="$host_os dyld"
18336   version_type=darwin
18337   need_lib_prefix=no
18338   need_version=no
18339   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18340   soname_spec='${libname}${release}${major}$shared_ext'
18341   shlibpath_overrides_runpath=yes
18342   shlibpath_var=DYLD_LIBRARY_PATH
18343   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18344   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18345   if test "$GCC" = yes; then
18346     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"`
18347   else
18348     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18349   fi
18350   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18351   ;;
18352
18353 dgux*)
18354   version_type=linux
18355   need_lib_prefix=no
18356   need_version=no
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18358   soname_spec='${libname}${release}${shared_ext}$major'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   ;;
18361
18362 freebsd1*)
18363   dynamic_linker=no
18364   ;;
18365
18366 kfreebsd*-gnu)
18367   version_type=linux
18368   need_lib_prefix=no
18369   need_version=no
18370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18371   soname_spec='${libname}${release}${shared_ext}$major'
18372   shlibpath_var=LD_LIBRARY_PATH
18373   shlibpath_overrides_runpath=no
18374   hardcode_into_libs=yes
18375   dynamic_linker='GNU ld.so'
18376   ;;
18377
18378 freebsd*)
18379   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18380   version_type=freebsd-$objformat
18381   case $version_type in
18382     freebsd-elf*)
18383       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18384       need_version=no
18385       need_lib_prefix=no
18386       ;;
18387     freebsd-*)
18388       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18389       need_version=yes
18390       ;;
18391   esac
18392   shlibpath_var=LD_LIBRARY_PATH
18393   case $host_os in
18394   freebsd2*)
18395     shlibpath_overrides_runpath=yes
18396     ;;
18397   freebsd3.01* | freebsdelf3.01*)
18398     shlibpath_overrides_runpath=yes
18399     hardcode_into_libs=yes
18400     ;;
18401   *) # from 3.2 on
18402     shlibpath_overrides_runpath=no
18403     hardcode_into_libs=yes
18404     ;;
18405   esac
18406   ;;
18407
18408 gnu*)
18409   version_type=linux
18410   need_lib_prefix=no
18411   need_version=no
18412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18413   soname_spec='${libname}${release}${shared_ext}$major'
18414   shlibpath_var=LD_LIBRARY_PATH
18415   hardcode_into_libs=yes
18416   ;;
18417
18418 hpux9* | hpux10* | hpux11*)
18419   # Give a soname corresponding to the major version so that dld.sl refuses to
18420   # link against other versions.
18421   version_type=sunos
18422   need_lib_prefix=no
18423   need_version=no
18424   case "$host_cpu" in
18425   ia64*)
18426     shrext_cmds='.so'
18427     hardcode_into_libs=yes
18428     dynamic_linker="$host_os dld.so"
18429     shlibpath_var=LD_LIBRARY_PATH
18430     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432     soname_spec='${libname}${release}${shared_ext}$major'
18433     if test "X$HPUX_IA64_MODE" = X32; then
18434       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18435     else
18436       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18437     fi
18438     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18439     ;;
18440    hppa*64*)
18441      shrext_cmds='.sl'
18442      hardcode_into_libs=yes
18443      dynamic_linker="$host_os dld.sl"
18444      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18445      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18446      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447      soname_spec='${libname}${release}${shared_ext}$major'
18448      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18449      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18450      ;;
18451    *)
18452     shrext_cmds='.sl'
18453     dynamic_linker="$host_os dld.sl"
18454     shlibpath_var=SHLIB_PATH
18455     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457     soname_spec='${libname}${release}${shared_ext}$major'
18458     ;;
18459   esac
18460   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18461   postinstall_cmds='chmod 555 $lib'
18462   ;;
18463
18464 irix5* | irix6* | nonstopux*)
18465   case $host_os in
18466     nonstopux*) version_type=nonstopux ;;
18467     *)
18468         if test "$lt_cv_prog_gnu_ld" = yes; then
18469                 version_type=linux
18470         else
18471                 version_type=irix
18472         fi ;;
18473   esac
18474   need_lib_prefix=no
18475   need_version=no
18476   soname_spec='${libname}${release}${shared_ext}$major'
18477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18478   case $host_os in
18479   irix5* | nonstopux*)
18480     libsuff= shlibsuff=
18481     ;;
18482   *)
18483     case $LD in # libtool.m4 will add one of these switches to LD
18484     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18485       libsuff= shlibsuff= libmagic=32-bit;;
18486     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18487       libsuff=32 shlibsuff=N32 libmagic=N32;;
18488     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18489       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18490     *) libsuff= shlibsuff= libmagic=never-match;;
18491     esac
18492     ;;
18493   esac
18494   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18495   shlibpath_overrides_runpath=no
18496   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18497   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18498   hardcode_into_libs=yes
18499   ;;
18500
18501 # No shared lib support for Linux oldld, aout, or coff.
18502 linux*oldld* | linux*aout* | linux*coff*)
18503   dynamic_linker=no
18504   ;;
18505
18506 # This must be Linux ELF.
18507 linux*)
18508   version_type=linux
18509   need_lib_prefix=no
18510   need_version=no
18511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512   soname_spec='${libname}${release}${shared_ext}$major'
18513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18514   shlibpath_var=LD_LIBRARY_PATH
18515   shlibpath_overrides_runpath=no
18516   # This implies no fast_install, which is unacceptable.
18517   # Some rework will be needed to allow for fast_install
18518   # before this can be enabled.
18519   hardcode_into_libs=yes
18520
18521   # Append ld.so.conf contents to the search path
18522   if test -f /etc/ld.so.conf; then
18523     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18524     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18525   fi
18526
18527   # We used to test for /lib/ld.so.1 and disable shared libraries on
18528   # powerpc, because MkLinux only supported shared libraries with the
18529   # GNU dynamic linker.  Since this was broken with cross compilers,
18530   # most powerpc-linux boxes support dynamic linking these days and
18531   # people can always --disable-shared, the test was removed, and we
18532   # assume the GNU/Linux dynamic linker is in use.
18533   dynamic_linker='GNU/Linux ld.so'
18534   ;;
18535
18536 netbsdelf*-gnu)
18537   version_type=linux
18538   need_lib_prefix=no
18539   need_version=no
18540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541   soname_spec='${libname}${release}${shared_ext}$major'
18542   shlibpath_var=LD_LIBRARY_PATH
18543   shlibpath_overrides_runpath=no
18544   hardcode_into_libs=yes
18545   dynamic_linker='NetBSD ld.elf_so'
18546   ;;
18547
18548 knetbsd*-gnu)
18549   version_type=linux
18550   need_lib_prefix=no
18551   need_version=no
18552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18553   soname_spec='${libname}${release}${shared_ext}$major'
18554   shlibpath_var=LD_LIBRARY_PATH
18555   shlibpath_overrides_runpath=no
18556   hardcode_into_libs=yes
18557   dynamic_linker='GNU ld.so'
18558   ;;
18559
18560 netbsd*)
18561   version_type=sunos
18562   need_lib_prefix=no
18563   need_version=no
18564   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567     dynamic_linker='NetBSD (a.out) ld.so'
18568   else
18569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18570     soname_spec='${libname}${release}${shared_ext}$major'
18571     dynamic_linker='NetBSD ld.elf_so'
18572   fi
18573   shlibpath_var=LD_LIBRARY_PATH
18574   shlibpath_overrides_runpath=yes
18575   hardcode_into_libs=yes
18576   ;;
18577
18578 newsos6)
18579   version_type=linux
18580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581   shlibpath_var=LD_LIBRARY_PATH
18582   shlibpath_overrides_runpath=yes
18583   ;;
18584
18585 nto-qnx*)
18586   version_type=linux
18587   need_lib_prefix=no
18588   need_version=no
18589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590   soname_spec='${libname}${release}${shared_ext}$major'
18591   shlibpath_var=LD_LIBRARY_PATH
18592   shlibpath_overrides_runpath=yes
18593   ;;
18594
18595 openbsd*)
18596   version_type=sunos
18597   need_lib_prefix=no
18598   need_version=yes
18599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601   shlibpath_var=LD_LIBRARY_PATH
18602   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18603     case $host_os in
18604       openbsd2.[89] | openbsd2.[89].*)
18605         shlibpath_overrides_runpath=no
18606         ;;
18607       *)
18608         shlibpath_overrides_runpath=yes
18609         ;;
18610       esac
18611   else
18612     shlibpath_overrides_runpath=yes
18613   fi
18614   ;;
18615
18616 os2*)
18617   libname_spec='$name'
18618   shrext_cmds=".dll"
18619   need_lib_prefix=no
18620   library_names_spec='$libname${shared_ext} $libname.a'
18621   dynamic_linker='OS/2 ld.exe'
18622   shlibpath_var=LIBPATH
18623   ;;
18624
18625 osf3* | osf4* | osf5*)
18626   version_type=osf
18627   need_lib_prefix=no
18628   need_version=no
18629   soname_spec='${libname}${release}${shared_ext}$major'
18630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631   shlibpath_var=LD_LIBRARY_PATH
18632   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18633   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18634   ;;
18635
18636 sco3.2v5*)
18637   version_type=osf
18638   soname_spec='${libname}${release}${shared_ext}$major'
18639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640   shlibpath_var=LD_LIBRARY_PATH
18641   ;;
18642
18643 solaris*)
18644   version_type=linux
18645   need_lib_prefix=no
18646   need_version=no
18647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648   soname_spec='${libname}${release}${shared_ext}$major'
18649   shlibpath_var=LD_LIBRARY_PATH
18650   shlibpath_overrides_runpath=yes
18651   hardcode_into_libs=yes
18652   # ldd complains unless libraries are executable
18653   postinstall_cmds='chmod +x $lib'
18654   ;;
18655
18656 sunos4*)
18657   version_type=sunos
18658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18659   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18660   shlibpath_var=LD_LIBRARY_PATH
18661   shlibpath_overrides_runpath=yes
18662   if test "$with_gnu_ld" = yes; then
18663     need_lib_prefix=no
18664   fi
18665   need_version=yes
18666   ;;
18667
18668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18669   version_type=linux
18670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671   soname_spec='${libname}${release}${shared_ext}$major'
18672   shlibpath_var=LD_LIBRARY_PATH
18673   case $host_vendor in
18674     sni)
18675       shlibpath_overrides_runpath=no
18676       need_lib_prefix=no
18677       export_dynamic_flag_spec='${wl}-Blargedynsym'
18678       runpath_var=LD_RUN_PATH
18679       ;;
18680     siemens)
18681       need_lib_prefix=no
18682       ;;
18683     motorola)
18684       need_lib_prefix=no
18685       need_version=no
18686       shlibpath_overrides_runpath=no
18687       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18688       ;;
18689   esac
18690   ;;
18691
18692 sysv4*MP*)
18693   if test -d /usr/nec ;then
18694     version_type=linux
18695     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18696     soname_spec='$libname${shared_ext}.$major'
18697     shlibpath_var=LD_LIBRARY_PATH
18698   fi
18699   ;;
18700
18701 uts4*)
18702   version_type=linux
18703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704   soname_spec='${libname}${release}${shared_ext}$major'
18705   shlibpath_var=LD_LIBRARY_PATH
18706   ;;
18707
18708 *)
18709   dynamic_linker=no
18710   ;;
18711 esac
18712 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18713 echo "${ECHO_T}$dynamic_linker" >&6; }
18714 test "$dynamic_linker" = no && can_build_shared=no
18715
18716 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18717 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18718 hardcode_action_GCJ=
18719 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18720    test -n "$runpath_var GCJ" || \
18721    test "X$hardcode_automatic_GCJ"="Xyes" ; then
18722
18723   # We can hardcode non-existant directories.
18724   if test "$hardcode_direct_GCJ" != no &&
18725      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18726      # have to relink, otherwise we might link with an installed library
18727      # when we should be linking with a yet-to-be-installed one
18728      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18729      test "$hardcode_minus_L_GCJ" != no; then
18730     # Linking always hardcodes the temporary library directory.
18731     hardcode_action_GCJ=relink
18732   else
18733     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18734     hardcode_action_GCJ=immediate
18735   fi
18736 else
18737   # We cannot hardcode anything, or else we can only hardcode existing
18738   # directories.
18739   hardcode_action_GCJ=unsupported
18740 fi
18741 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18742 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18743
18744 if test "$hardcode_action_GCJ" = relink; then
18745   # Fast installation is not supported
18746   enable_fast_install=no
18747 elif test "$shlibpath_overrides_runpath" = yes ||
18748      test "$enable_shared" = no; then
18749   # Fast installation is not necessary
18750   enable_fast_install=needless
18751 fi
18752
18753 striplib=
18754 old_striplib=
18755 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18756 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18757 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18758   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18759   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18760   { echo "$as_me:$LINENO: result: yes" >&5
18761 echo "${ECHO_T}yes" >&6; }
18762 else
18763 # FIXME - insert some real tests, host_os isn't really good enough
18764   case $host_os in
18765    darwin*)
18766        if test -n "$STRIP" ; then
18767          striplib="$STRIP -x"
18768          { echo "$as_me:$LINENO: result: yes" >&5
18769 echo "${ECHO_T}yes" >&6; }
18770        else
18771   { echo "$as_me:$LINENO: result: no" >&5
18772 echo "${ECHO_T}no" >&6; }
18773 fi
18774        ;;
18775    *)
18776   { echo "$as_me:$LINENO: result: no" >&5
18777 echo "${ECHO_T}no" >&6; }
18778     ;;
18779   esac
18780 fi
18781
18782 if test "x$enable_dlopen" != xyes; then
18783   enable_dlopen=unknown
18784   enable_dlopen_self=unknown
18785   enable_dlopen_self_static=unknown
18786 else
18787   lt_cv_dlopen=no
18788   lt_cv_dlopen_libs=
18789
18790   case $host_os in
18791   beos*)
18792     lt_cv_dlopen="load_add_on"
18793     lt_cv_dlopen_libs=
18794     lt_cv_dlopen_self=yes
18795     ;;
18796
18797   mingw* | pw32*)
18798     lt_cv_dlopen="LoadLibrary"
18799     lt_cv_dlopen_libs=
18800    ;;
18801
18802   cygwin*)
18803     lt_cv_dlopen="dlopen"
18804     lt_cv_dlopen_libs=
18805    ;;
18806
18807   darwin*)
18808   # if libdl is installed we need to link against it
18809     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18810 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18812   echo $ECHO_N "(cached) $ECHO_C" >&6
18813 else
18814   ac_check_lib_save_LIBS=$LIBS
18815 LIBS="-ldl  $LIBS"
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822
18823 /* Override any GCC internal prototype to avoid an error.
18824    Use char because int might match the return type of a GCC
18825    builtin and then its argument prototype would still apply.  */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char dlopen ();
18830 int
18831 main ()
18832 {
18833 return dlopen ();
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_link") 2>conftest.er1
18846   ac_status=$?
18847   grep -v '^ *+' conftest.er1 >conftest.err
18848   rm -f conftest.er1
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); } && {
18852          test -z "$ac_c_werror_flag" ||
18853          test ! -s conftest.err
18854        } && test -s conftest$ac_exeext &&
18855        $as_test_x conftest$ac_exeext; then
18856   ac_cv_lib_dl_dlopen=yes
18857 else
18858   echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861         ac_cv_lib_dl_dlopen=no
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865       conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18867 fi
18868 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18869 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18870 if test $ac_cv_lib_dl_dlopen = yes; then
18871   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18872 else
18873
18874     lt_cv_dlopen="dyld"
18875     lt_cv_dlopen_libs=
18876     lt_cv_dlopen_self=yes
18877
18878 fi
18879
18880    ;;
18881
18882   *)
18883     { echo "$as_me:$LINENO: checking for shl_load" >&5
18884 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18885 if test "${ac_cv_func_shl_load+set}" = set; then
18886   echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888   cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h.  */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h.  */
18894 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18896 #define shl_load innocuous_shl_load
18897
18898 /* System header to define __stub macros and hopefully few prototypes,
18899     which can conflict with char shl_load (); below.
18900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901     <limits.h> exists even on freestanding compilers.  */
18902
18903 #ifdef __STDC__
18904 # include <limits.h>
18905 #else
18906 # include <assert.h>
18907 #endif
18908
18909 #undef shl_load
18910
18911 /* Override any GCC internal prototype to avoid an error.
18912    Use char because int might match the return type of a GCC
18913    builtin and then its argument prototype would still apply.  */
18914 #ifdef __cplusplus
18915 extern "C"
18916 #endif
18917 char shl_load ();
18918 /* The GNU C library defines this for functions which it implements
18919     to always fail with ENOSYS.  Some functions are actually named
18920     something starting with __ and the normal name is an alias.  */
18921 #if defined __stub_shl_load || defined __stub___shl_load
18922 choke me
18923 #endif
18924
18925 int
18926 main ()
18927 {
18928 return shl_load ();
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_link") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && {
18947          test -z "$ac_c_werror_flag" ||
18948          test ! -s conftest.err
18949        } && test -s conftest$ac_exeext &&
18950        $as_test_x conftest$ac_exeext; then
18951   ac_cv_func_shl_load=yes
18952 else
18953   echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18955
18956         ac_cv_func_shl_load=no
18957 fi
18958
18959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18960       conftest$ac_exeext conftest.$ac_ext
18961 fi
18962 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18963 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18964 if test $ac_cv_func_shl_load = yes; then
18965   lt_cv_dlopen="shl_load"
18966 else
18967   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   ac_check_lib_save_LIBS=$LIBS
18973 LIBS="-ldld  $LIBS"
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980
18981 /* Override any GCC internal prototype to avoid an error.
18982    Use char because int might match the return type of a GCC
18983    builtin and then its argument prototype would still apply.  */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 char shl_load ();
18988 int
18989 main ()
18990 {
18991 return shl_load ();
18992   ;
18993   return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_link") 2>conftest.er1
19004   ac_status=$?
19005   grep -v '^ *+' conftest.er1 >conftest.err
19006   rm -f conftest.er1
19007   cat conftest.err >&5
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); } && {
19010          test -z "$ac_c_werror_flag" ||
19011          test ! -s conftest.err
19012        } && test -s conftest$ac_exeext &&
19013        $as_test_x conftest$ac_exeext; then
19014   ac_cv_lib_dld_shl_load=yes
19015 else
19016   echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019         ac_cv_lib_dld_shl_load=no
19020 fi
19021
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023       conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19027 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19028 if test $ac_cv_lib_dld_shl_load = yes; then
19029   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19030 else
19031   { echo "$as_me:$LINENO: checking for dlopen" >&5
19032 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
19033 if test "${ac_cv_func_dlopen+set}" = set; then
19034   echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036   cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h.  */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h.  */
19042 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19044 #define dlopen innocuous_dlopen
19045
19046 /* System header to define __stub macros and hopefully few prototypes,
19047     which can conflict with char dlopen (); below.
19048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049     <limits.h> exists even on freestanding compilers.  */
19050
19051 #ifdef __STDC__
19052 # include <limits.h>
19053 #else
19054 # include <assert.h>
19055 #endif
19056
19057 #undef dlopen
19058
19059 /* Override any GCC internal prototype to avoid an error.
19060    Use char because int might match the return type of a GCC
19061    builtin and then its argument prototype would still apply.  */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char dlopen ();
19066 /* The GNU C library defines this for functions which it implements
19067     to always fail with ENOSYS.  Some functions are actually named
19068     something starting with __ and the normal name is an alias.  */
19069 #if defined __stub_dlopen || defined __stub___dlopen
19070 choke me
19071 #endif
19072
19073 int
19074 main ()
19075 {
19076 return dlopen ();
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_link") 2>conftest.er1
19089   ac_status=$?
19090   grep -v '^ *+' conftest.er1 >conftest.err
19091   rm -f conftest.er1
19092   cat conftest.err >&5
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); } && {
19095          test -z "$ac_c_werror_flag" ||
19096          test ! -s conftest.err
19097        } && test -s conftest$ac_exeext &&
19098        $as_test_x conftest$ac_exeext; then
19099   ac_cv_func_dlopen=yes
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104         ac_cv_func_dlopen=no
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108       conftest$ac_exeext conftest.$ac_ext
19109 fi
19110 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19112 if test $ac_cv_func_dlopen = yes; then
19113   lt_cv_dlopen="dlopen"
19114 else
19115   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19118   echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120   ac_check_lib_save_LIBS=$LIBS
19121 LIBS="-ldl  $LIBS"
19122 cat >conftest.$ac_ext <<_ACEOF
19123 /* confdefs.h.  */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h.  */
19128
19129 /* Override any GCC internal prototype to avoid an error.
19130    Use char because int might match the return type of a GCC
19131    builtin and then its argument prototype would still apply.  */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 char dlopen ();
19136 int
19137 main ()
19138 {
19139 return dlopen ();
19140   ;
19141   return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest.$ac_objext conftest$ac_exeext
19145 if { (ac_try="$ac_link"
19146 case "(($ac_try" in
19147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148   *) ac_try_echo=$ac_try;;
19149 esac
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151   (eval "$ac_link") 2>conftest.er1
19152   ac_status=$?
19153   grep -v '^ *+' conftest.er1 >conftest.err
19154   rm -f conftest.er1
19155   cat conftest.err >&5
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } && {
19158          test -z "$ac_c_werror_flag" ||
19159          test ! -s conftest.err
19160        } && test -s conftest$ac_exeext &&
19161        $as_test_x conftest$ac_exeext; then
19162   ac_cv_lib_dl_dlopen=yes
19163 else
19164   echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167         ac_cv_lib_dl_dlopen=no
19168 fi
19169
19170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19171       conftest$ac_exeext conftest.$ac_ext
19172 LIBS=$ac_check_lib_save_LIBS
19173 fi
19174 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19176 if test $ac_cv_lib_dl_dlopen = yes; then
19177   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19178 else
19179   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19180 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   ac_check_lib_save_LIBS=$LIBS
19185 LIBS="-lsvld  $LIBS"
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h.  */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h.  */
19192
19193 /* Override any GCC internal prototype to avoid an error.
19194    Use char because int might match the return type of a GCC
19195    builtin and then its argument prototype would still apply.  */
19196 #ifdef __cplusplus
19197 extern "C"
19198 #endif
19199 char dlopen ();
19200 int
19201 main ()
19202 {
19203 return dlopen ();
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (ac_try="$ac_link"
19210 case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215   (eval "$ac_link") 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } && {
19222          test -z "$ac_c_werror_flag" ||
19223          test ! -s conftest.err
19224        } && test -s conftest$ac_exeext &&
19225        $as_test_x conftest$ac_exeext; then
19226   ac_cv_lib_svld_dlopen=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         ac_cv_lib_svld_dlopen=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235       conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19237 fi
19238 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19239 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19240 if test $ac_cv_lib_svld_dlopen = yes; then
19241   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19242 else
19243   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19244 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19245 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19246   echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248   ac_check_lib_save_LIBS=$LIBS
19249 LIBS="-ldld  $LIBS"
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256
19257 /* Override any GCC internal prototype to avoid an error.
19258    Use char because int might match the return type of a GCC
19259    builtin and then its argument prototype would still apply.  */
19260 #ifdef __cplusplus
19261 extern "C"
19262 #endif
19263 char dld_link ();
19264 int
19265 main ()
19266 {
19267 return dld_link ();
19268   ;
19269   return 0;
19270 }
19271 _ACEOF
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276   *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279   (eval "$ac_link") 2>conftest.er1
19280   ac_status=$?
19281   grep -v '^ *+' conftest.er1 >conftest.err
19282   rm -f conftest.er1
19283   cat conftest.err >&5
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } && {
19286          test -z "$ac_c_werror_flag" ||
19287          test ! -s conftest.err
19288        } && test -s conftest$ac_exeext &&
19289        $as_test_x conftest$ac_exeext; then
19290   ac_cv_lib_dld_dld_link=yes
19291 else
19292   echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295         ac_cv_lib_dld_dld_link=no
19296 fi
19297
19298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19299       conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19301 fi
19302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19303 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19304 if test $ac_cv_lib_dld_dld_link = yes; then
19305   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19306 fi
19307
19308
19309 fi
19310
19311
19312 fi
19313
19314
19315 fi
19316
19317
19318 fi
19319
19320
19321 fi
19322
19323     ;;
19324   esac
19325
19326   if test "x$lt_cv_dlopen" != xno; then
19327     enable_dlopen=yes
19328   else
19329     enable_dlopen=no
19330   fi
19331
19332   case $lt_cv_dlopen in
19333   dlopen)
19334     save_CPPFLAGS="$CPPFLAGS"
19335     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19336
19337     save_LDFLAGS="$LDFLAGS"
19338     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19339
19340     save_LIBS="$LIBS"
19341     LIBS="$lt_cv_dlopen_libs $LIBS"
19342
19343     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19344 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19345 if test "${lt_cv_dlopen_self+set}" = set; then
19346   echo $ECHO_N "(cached) $ECHO_C" >&6
19347 else
19348           if test "$cross_compiling" = yes; then :
19349   lt_cv_dlopen_self=cross
19350 else
19351   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19352   lt_status=$lt_dlunknown
19353   cat > conftest.$ac_ext <<EOF
19354 #line 19354 "configure"
19355 #include "confdefs.h"
19356
19357 #if HAVE_DLFCN_H
19358 #include <dlfcn.h>
19359 #endif
19360
19361 #include <stdio.h>
19362
19363 #ifdef RTLD_GLOBAL
19364 #  define LT_DLGLOBAL           RTLD_GLOBAL
19365 #else
19366 #  ifdef DL_GLOBAL
19367 #    define LT_DLGLOBAL         DL_GLOBAL
19368 #  else
19369 #    define LT_DLGLOBAL         0
19370 #  endif
19371 #endif
19372
19373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19374    find out it does not work in some platform. */
19375 #ifndef LT_DLLAZY_OR_NOW
19376 #  ifdef RTLD_LAZY
19377 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19378 #  else
19379 #    ifdef DL_LAZY
19380 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19381 #    else
19382 #      ifdef RTLD_NOW
19383 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19384 #      else
19385 #        ifdef DL_NOW
19386 #          define LT_DLLAZY_OR_NOW      DL_NOW
19387 #        else
19388 #          define LT_DLLAZY_OR_NOW      0
19389 #        endif
19390 #      endif
19391 #    endif
19392 #  endif
19393 #endif
19394
19395 #ifdef __cplusplus
19396 extern "C" void exit (int);
19397 #endif
19398
19399 void fnord() { int i=42;}
19400 int main ()
19401 {
19402   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19403   int status = $lt_dlunknown;
19404
19405   if (self)
19406     {
19407       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19408       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19409       /* dlclose (self); */
19410     }
19411
19412     exit (status);
19413 }
19414 EOF
19415   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416   (eval $ac_link) 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19420     (./conftest; exit; ) 2>/dev/null
19421     lt_status=$?
19422     case x$lt_status in
19423       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19424       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19425       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19426     esac
19427   else :
19428     # compilation failed
19429     lt_cv_dlopen_self=no
19430   fi
19431 fi
19432 rm -fr conftest*
19433
19434
19435 fi
19436 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19437 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19438
19439     if test "x$lt_cv_dlopen_self" = xyes; then
19440       LDFLAGS="$LDFLAGS $link_static_flag"
19441       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19442 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19443 if test "${lt_cv_dlopen_self_static+set}" = set; then
19444   echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446           if test "$cross_compiling" = yes; then :
19447   lt_cv_dlopen_self_static=cross
19448 else
19449   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19450   lt_status=$lt_dlunknown
19451   cat > conftest.$ac_ext <<EOF
19452 #line 19452 "configure"
19453 #include "confdefs.h"
19454
19455 #if HAVE_DLFCN_H
19456 #include <dlfcn.h>
19457 #endif
19458
19459 #include <stdio.h>
19460
19461 #ifdef RTLD_GLOBAL
19462 #  define LT_DLGLOBAL           RTLD_GLOBAL
19463 #else
19464 #  ifdef DL_GLOBAL
19465 #    define LT_DLGLOBAL         DL_GLOBAL
19466 #  else
19467 #    define LT_DLGLOBAL         0
19468 #  endif
19469 #endif
19470
19471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19472    find out it does not work in some platform. */
19473 #ifndef LT_DLLAZY_OR_NOW
19474 #  ifdef RTLD_LAZY
19475 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19476 #  else
19477 #    ifdef DL_LAZY
19478 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19479 #    else
19480 #      ifdef RTLD_NOW
19481 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19482 #      else
19483 #        ifdef DL_NOW
19484 #          define LT_DLLAZY_OR_NOW      DL_NOW
19485 #        else
19486 #          define LT_DLLAZY_OR_NOW      0
19487 #        endif
19488 #      endif
19489 #    endif
19490 #  endif
19491 #endif
19492
19493 #ifdef __cplusplus
19494 extern "C" void exit (int);
19495 #endif
19496
19497 void fnord() { int i=42;}
19498 int main ()
19499 {
19500   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19501   int status = $lt_dlunknown;
19502
19503   if (self)
19504     {
19505       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19506       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19507       /* dlclose (self); */
19508     }
19509
19510     exit (status);
19511 }
19512 EOF
19513   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514   (eval $ac_link) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19518     (./conftest; exit; ) 2>/dev/null
19519     lt_status=$?
19520     case x$lt_status in
19521       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19522       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19523       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19524     esac
19525   else :
19526     # compilation failed
19527     lt_cv_dlopen_self_static=no
19528   fi
19529 fi
19530 rm -fr conftest*
19531
19532
19533 fi
19534 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19535 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19536     fi
19537
19538     CPPFLAGS="$save_CPPFLAGS"
19539     LDFLAGS="$save_LDFLAGS"
19540     LIBS="$save_LIBS"
19541     ;;
19542   esac
19543
19544   case $lt_cv_dlopen_self in
19545   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19546   *) enable_dlopen_self=unknown ;;
19547   esac
19548
19549   case $lt_cv_dlopen_self_static in
19550   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19551   *) enable_dlopen_self_static=unknown ;;
19552   esac
19553 fi
19554
19555
19556 # The else clause should only fire when bootstrapping the
19557 # libtool distribution, otherwise you forgot to ship ltmain.sh
19558 # with your package, and you will get complaints that there are
19559 # no rules to generate ltmain.sh.
19560 if test -f "$ltmain"; then
19561   # See if we are running on zsh, and set the options which allow our commands through
19562   # without removal of \ escapes.
19563   if test -n "${ZSH_VERSION+set}" ; then
19564     setopt NO_GLOB_SUBST
19565   fi
19566   # Now quote all the things that may contain metacharacters while being
19567   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19568   # variables and quote the copies for generation of the libtool script.
19569   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19570     SED SHELL STRIP \
19571     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19572     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19573     deplibs_check_method reload_flag reload_cmds need_locks \
19574     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19575     lt_cv_sys_global_symbol_to_c_name_address \
19576     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19577     old_postinstall_cmds old_postuninstall_cmds \
19578     compiler_GCJ \
19579     CC_GCJ \
19580     LD_GCJ \
19581     lt_prog_compiler_wl_GCJ \
19582     lt_prog_compiler_pic_GCJ \
19583     lt_prog_compiler_static_GCJ \
19584     lt_prog_compiler_no_builtin_flag_GCJ \
19585     export_dynamic_flag_spec_GCJ \
19586     thread_safe_flag_spec_GCJ \
19587     whole_archive_flag_spec_GCJ \
19588     enable_shared_with_static_runtimes_GCJ \
19589     old_archive_cmds_GCJ \
19590     old_archive_from_new_cmds_GCJ \
19591     predep_objects_GCJ \
19592     postdep_objects_GCJ \
19593     predeps_GCJ \
19594     postdeps_GCJ \
19595     compiler_lib_search_path_GCJ \
19596     archive_cmds_GCJ \
19597     archive_expsym_cmds_GCJ \
19598     postinstall_cmds_GCJ \
19599     postuninstall_cmds_GCJ \
19600     old_archive_from_expsyms_cmds_GCJ \
19601     allow_undefined_flag_GCJ \
19602     no_undefined_flag_GCJ \
19603     export_symbols_cmds_GCJ \
19604     hardcode_libdir_flag_spec_GCJ \
19605     hardcode_libdir_flag_spec_ld_GCJ \
19606     hardcode_libdir_separator_GCJ \
19607     hardcode_automatic_GCJ \
19608     module_cmds_GCJ \
19609     module_expsym_cmds_GCJ \
19610     lt_cv_prog_compiler_c_o_GCJ \
19611     exclude_expsyms_GCJ \
19612     include_expsyms_GCJ; do
19613
19614     case $var in
19615     old_archive_cmds_GCJ | \
19616     old_archive_from_new_cmds_GCJ | \
19617     archive_cmds_GCJ | \
19618     archive_expsym_cmds_GCJ | \
19619     module_cmds_GCJ | \
19620     module_expsym_cmds_GCJ | \
19621     old_archive_from_expsyms_cmds_GCJ | \
19622     export_symbols_cmds_GCJ | \
19623     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19624     postinstall_cmds | postuninstall_cmds | \
19625     old_postinstall_cmds | old_postuninstall_cmds | \
19626     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19627       # Double-quote double-evaled strings.
19628       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19629       ;;
19630     *)
19631       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19632       ;;
19633     esac
19634   done
19635
19636   case $lt_echo in
19637   *'\$0 --fallback-echo"')
19638     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19639     ;;
19640   esac
19641
19642 cfgfile="$ofile"
19643
19644   cat <<__EOF__ >> "$cfgfile"
19645 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19646
19647 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19648
19649 # Shell to use when invoking shell scripts.
19650 SHELL=$lt_SHELL
19651
19652 # Whether or not to build shared libraries.
19653 build_libtool_libs=$enable_shared
19654
19655 # Whether or not to build static libraries.
19656 build_old_libs=$enable_static
19657
19658 # Whether or not to add -lc for building shared libraries.
19659 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19660
19661 # Whether or not to disallow shared libs when runtime libs are static
19662 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19663
19664 # Whether or not to optimize for fast installation.
19665 fast_install=$enable_fast_install
19666
19667 # The host system.
19668 host_alias=$host_alias
19669 host=$host
19670
19671 # An echo program that does not interpret backslashes.
19672 echo=$lt_echo
19673
19674 # The archiver.
19675 AR=$lt_AR
19676 AR_FLAGS=$lt_AR_FLAGS
19677
19678 # A C compiler.
19679 LTCC=$lt_LTCC
19680
19681 # A language-specific compiler.
19682 CC=$lt_compiler_GCJ
19683
19684 # Is the compiler the GNU C compiler?
19685 with_gcc=$GCC_GCJ
19686
19687 # An ERE matcher.
19688 EGREP=$lt_EGREP
19689
19690 # The linker used to build libraries.
19691 LD=$lt_LD_GCJ
19692
19693 # Whether we need hard or soft links.
19694 LN_S=$lt_LN_S
19695
19696 # A BSD-compatible nm program.
19697 NM=$lt_NM
19698
19699 # A symbol stripping program
19700 STRIP=$lt_STRIP
19701
19702 # Used to examine libraries when file_magic_cmd begins "file"
19703 MAGIC_CMD=$MAGIC_CMD
19704
19705 # Used on cygwin: DLL creation program.
19706 DLLTOOL="$DLLTOOL"
19707
19708 # Used on cygwin: object dumper.
19709 OBJDUMP="$OBJDUMP"
19710
19711 # Used on cygwin: assembler.
19712 AS="$AS"
19713
19714 # The name of the directory that contains temporary libtool files.
19715 objdir=$objdir
19716
19717 # How to create reloadable object files.
19718 reload_flag=$lt_reload_flag
19719 reload_cmds=$lt_reload_cmds
19720
19721 # How to pass a linker flag through the compiler.
19722 wl=$lt_lt_prog_compiler_wl_GCJ
19723
19724 # Object file suffix (normally "o").
19725 objext="$ac_objext"
19726
19727 # Old archive suffix (normally "a").
19728 libext="$libext"
19729
19730 # Shared library suffix (normally ".so").
19731 shrext_cmds='$shrext_cmds'
19732
19733 # Executable file suffix (normally "").
19734 exeext="$exeext"
19735
19736 # Additional compiler flags for building library objects.
19737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19738 pic_mode=$pic_mode
19739
19740 # What is the maximum length of a command?
19741 max_cmd_len=$lt_cv_sys_max_cmd_len
19742
19743 # Does compiler simultaneously support -c and -o options?
19744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19745
19746 # Must we lock files when doing compilation ?
19747 need_locks=$lt_need_locks
19748
19749 # Do we need the lib prefix for modules?
19750 need_lib_prefix=$need_lib_prefix
19751
19752 # Do we need a version for libraries?
19753 need_version=$need_version
19754
19755 # Whether dlopen is supported.
19756 dlopen_support=$enable_dlopen
19757
19758 # Whether dlopen of programs is supported.
19759 dlopen_self=$enable_dlopen_self
19760
19761 # Whether dlopen of statically linked programs is supported.
19762 dlopen_self_static=$enable_dlopen_self_static
19763
19764 # Compiler flag to prevent dynamic linking.
19765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19766
19767 # Compiler flag to turn off builtin functions.
19768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19769
19770 # Compiler flag to allow reflexive dlopens.
19771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19772
19773 # Compiler flag to generate shared objects directly from archives.
19774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19775
19776 # Compiler flag to generate thread-safe objects.
19777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19778
19779 # Library versioning type.
19780 version_type=$version_type
19781
19782 # Format of library name prefix.
19783 libname_spec=$lt_libname_spec
19784
19785 # List of archive names.  First name is the real one, the rest are links.
19786 # The last name is the one that the linker finds with -lNAME.
19787 library_names_spec=$lt_library_names_spec
19788
19789 # The coded name of the library, if different from the real name.
19790 soname_spec=$lt_soname_spec
19791
19792 # Commands used to build and install an old-style archive.
19793 RANLIB=$lt_RANLIB
19794 old_archive_cmds=$lt_old_archive_cmds_GCJ
19795 old_postinstall_cmds=$lt_old_postinstall_cmds
19796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19797
19798 # Create an old-style archive from a shared archive.
19799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19800
19801 # Create a temporary old-style archive to link instead of a shared archive.
19802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19803
19804 # Commands used to build and install a shared archive.
19805 archive_cmds=$lt_archive_cmds_GCJ
19806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19807 postinstall_cmds=$lt_postinstall_cmds
19808 postuninstall_cmds=$lt_postuninstall_cmds
19809
19810 # Commands used to build a loadable module (assumed same as above if empty)
19811 module_cmds=$lt_module_cmds_GCJ
19812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19813
19814 # Commands to strip libraries.
19815 old_striplib=$lt_old_striplib
19816 striplib=$lt_striplib
19817
19818 # Dependencies to place before the objects being linked to create a
19819 # shared library.
19820 predep_objects=$lt_predep_objects_GCJ
19821
19822 # Dependencies to place after the objects being linked to create a
19823 # shared library.
19824 postdep_objects=$lt_postdep_objects_GCJ
19825
19826 # Dependencies to place before the objects being linked to create a
19827 # shared library.
19828 predeps=$lt_predeps_GCJ
19829
19830 # Dependencies to place after the objects being linked to create a
19831 # shared library.
19832 postdeps=$lt_postdeps_GCJ
19833
19834 # The library search path used internally by the compiler when linking
19835 # a shared library.
19836 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19837
19838 # Method to check whether dependent libraries are shared objects.
19839 deplibs_check_method=$lt_deplibs_check_method
19840
19841 # Command to use when deplibs_check_method == file_magic.
19842 file_magic_cmd=$lt_file_magic_cmd
19843
19844 # Flag that allows shared libraries with undefined symbols to be built.
19845 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19846
19847 # Flag that forces no undefined symbols.
19848 no_undefined_flag=$lt_no_undefined_flag_GCJ
19849
19850 # Commands used to finish a libtool library installation in a directory.
19851 finish_cmds=$lt_finish_cmds
19852
19853 # Same as above, but a single script fragment to be evaled but not shown.
19854 finish_eval=$lt_finish_eval
19855
19856 # Take the output of nm and produce a listing of raw symbols and C names.
19857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19858
19859 # Transform the output of nm in a proper C declaration
19860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19861
19862 # Transform the output of nm in a C name address pair
19863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19864
19865 # This is the shared library runtime path variable.
19866 runpath_var=$runpath_var
19867
19868 # This is the shared library path variable.
19869 shlibpath_var=$shlibpath_var
19870
19871 # Is shlibpath searched before the hard-coded library search path?
19872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19873
19874 # How to hardcode a shared library path into an executable.
19875 hardcode_action=$hardcode_action_GCJ
19876
19877 # Whether we should hardcode library paths into libraries.
19878 hardcode_into_libs=$hardcode_into_libs
19879
19880 # Flag to hardcode \$libdir into a binary during linking.
19881 # This must work even if \$libdir does not exist.
19882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19883
19884 # If ld is used when linking, flag to hardcode \$libdir into
19885 # a binary during linking. This must work even if \$libdir does
19886 # not exist.
19887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19888
19889 # Whether we need a single -rpath flag with a separated argument.
19890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19891
19892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19893 # resulting binary.
19894 hardcode_direct=$hardcode_direct_GCJ
19895
19896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19897 # resulting binary.
19898 hardcode_minus_L=$hardcode_minus_L_GCJ
19899
19900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19901 # the resulting binary.
19902 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19903
19904 # Set to yes if building a shared library automatically hardcodes DIR into the library
19905 # and all subsequent libraries and executables linked against it.
19906 hardcode_automatic=$hardcode_automatic_GCJ
19907
19908 # Variables whose values should be saved in libtool wrapper scripts and
19909 # restored at relink time.
19910 variables_saved_for_relink="$variables_saved_for_relink"
19911
19912 # Whether libtool must link a program against all its dependency libraries.
19913 link_all_deplibs=$link_all_deplibs_GCJ
19914
19915 # Compile-time system search path for libraries
19916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19917
19918 # Run-time system search path for libraries
19919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19920
19921 # Fix the shell variable \$srcfile for the compiler.
19922 fix_srcfile_path="$fix_srcfile_path_GCJ"
19923
19924 # Set to yes if exported symbols are required.
19925 always_export_symbols=$always_export_symbols_GCJ
19926
19927 # The commands to list exported symbols.
19928 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19929
19930 # The commands to extract the exported symbol list from a shared archive.
19931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19932
19933 # Symbols that should not be listed in the preloaded symbols.
19934 exclude_expsyms=$lt_exclude_expsyms_GCJ
19935
19936 # Symbols that must always be exported.
19937 include_expsyms=$lt_include_expsyms_GCJ
19938
19939 # ### END LIBTOOL TAG CONFIG: $tagname
19940
19941 __EOF__
19942
19943
19944 else
19945   # If there is no Makefile yet, we rely on a make rule to execute
19946   # `config.status --recheck' to rerun these tests and create the
19947   # libtool script then.
19948   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19949   if test -f "$ltmain_in"; then
19950     test -f Makefile && make "$ltmain"
19951   fi
19952 fi
19953
19954
19955 ac_ext=c
19956 ac_cpp='$CPP $CPPFLAGS'
19957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19960
19961 CC="$lt_save_CC"
19962
19963         else
19964           tagname=""
19965         fi
19966         ;;
19967
19968       RC)
19969
19970
19971 # Source file extension for RC test sources.
19972 ac_ext=rc
19973
19974 # Object file extension for compiled RC test sources.
19975 objext=o
19976 objext_RC=$objext
19977
19978 # Code to be used in simple compile tests
19979 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19980
19981 # Code to be used in simple link tests
19982 lt_simple_link_test_code="$lt_simple_compile_test_code"
19983
19984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19985
19986 # If no C compiler was specified, use CC.
19987 LTCC=${LTCC-"$CC"}
19988
19989 # Allow CC to be a program name with arguments.
19990 compiler=$CC
19991
19992
19993 # Allow CC to be a program name with arguments.
19994 lt_save_CC="$CC"
19995 CC=${RC-"windres"}
19996 compiler=$CC
19997 compiler_RC=$CC
19998 lt_cv_prog_compiler_c_o_RC=yes
19999
20000 # The else clause should only fire when bootstrapping the
20001 # libtool distribution, otherwise you forgot to ship ltmain.sh
20002 # with your package, and you will get complaints that there are
20003 # no rules to generate ltmain.sh.
20004 if test -f "$ltmain"; then
20005   # See if we are running on zsh, and set the options which allow our commands through
20006   # without removal of \ escapes.
20007   if test -n "${ZSH_VERSION+set}" ; then
20008     setopt NO_GLOB_SUBST
20009   fi
20010   # Now quote all the things that may contain metacharacters while being
20011   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20012   # variables and quote the copies for generation of the libtool script.
20013   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20014     SED SHELL STRIP \
20015     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20016     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20017     deplibs_check_method reload_flag reload_cmds need_locks \
20018     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20019     lt_cv_sys_global_symbol_to_c_name_address \
20020     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20021     old_postinstall_cmds old_postuninstall_cmds \
20022     compiler_RC \
20023     CC_RC \
20024     LD_RC \
20025     lt_prog_compiler_wl_RC \
20026     lt_prog_compiler_pic_RC \
20027     lt_prog_compiler_static_RC \
20028     lt_prog_compiler_no_builtin_flag_RC \
20029     export_dynamic_flag_spec_RC \
20030     thread_safe_flag_spec_RC \
20031     whole_archive_flag_spec_RC \
20032     enable_shared_with_static_runtimes_RC \
20033     old_archive_cmds_RC \
20034     old_archive_from_new_cmds_RC \
20035     predep_objects_RC \
20036     postdep_objects_RC \
20037     predeps_RC \
20038     postdeps_RC \
20039     compiler_lib_search_path_RC \
20040     archive_cmds_RC \
20041     archive_expsym_cmds_RC \
20042     postinstall_cmds_RC \
20043     postuninstall_cmds_RC \
20044     old_archive_from_expsyms_cmds_RC \
20045     allow_undefined_flag_RC \
20046     no_undefined_flag_RC \
20047     export_symbols_cmds_RC \
20048     hardcode_libdir_flag_spec_RC \
20049     hardcode_libdir_flag_spec_ld_RC \
20050     hardcode_libdir_separator_RC \
20051     hardcode_automatic_RC \
20052     module_cmds_RC \
20053     module_expsym_cmds_RC \
20054     lt_cv_prog_compiler_c_o_RC \
20055     exclude_expsyms_RC \
20056     include_expsyms_RC; do
20057
20058     case $var in
20059     old_archive_cmds_RC | \
20060     old_archive_from_new_cmds_RC | \
20061     archive_cmds_RC | \
20062     archive_expsym_cmds_RC | \
20063     module_cmds_RC | \
20064     module_expsym_cmds_RC | \
20065     old_archive_from_expsyms_cmds_RC | \
20066     export_symbols_cmds_RC | \
20067     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20068     postinstall_cmds | postuninstall_cmds | \
20069     old_postinstall_cmds | old_postuninstall_cmds | \
20070     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20071       # Double-quote double-evaled strings.
20072       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20073       ;;
20074     *)
20075       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20076       ;;
20077     esac
20078   done
20079
20080   case $lt_echo in
20081   *'\$0 --fallback-echo"')
20082     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20083     ;;
20084   esac
20085
20086 cfgfile="$ofile"
20087
20088   cat <<__EOF__ >> "$cfgfile"
20089 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20090
20091 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20092
20093 # Shell to use when invoking shell scripts.
20094 SHELL=$lt_SHELL
20095
20096 # Whether or not to build shared libraries.
20097 build_libtool_libs=$enable_shared
20098
20099 # Whether or not to build static libraries.
20100 build_old_libs=$enable_static
20101
20102 # Whether or not to add -lc for building shared libraries.
20103 build_libtool_need_lc=$archive_cmds_need_lc_RC
20104
20105 # Whether or not to disallow shared libs when runtime libs are static
20106 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20107
20108 # Whether or not to optimize for fast installation.
20109 fast_install=$enable_fast_install
20110
20111 # The host system.
20112 host_alias=$host_alias
20113 host=$host
20114
20115 # An echo program that does not interpret backslashes.
20116 echo=$lt_echo
20117
20118 # The archiver.
20119 AR=$lt_AR
20120 AR_FLAGS=$lt_AR_FLAGS
20121
20122 # A C compiler.
20123 LTCC=$lt_LTCC
20124
20125 # A language-specific compiler.
20126 CC=$lt_compiler_RC
20127
20128 # Is the compiler the GNU C compiler?
20129 with_gcc=$GCC_RC
20130
20131 # An ERE matcher.
20132 EGREP=$lt_EGREP
20133
20134 # The linker used to build libraries.
20135 LD=$lt_LD_RC
20136
20137 # Whether we need hard or soft links.
20138 LN_S=$lt_LN_S
20139
20140 # A BSD-compatible nm program.
20141 NM=$lt_NM
20142
20143 # A symbol stripping program
20144 STRIP=$lt_STRIP
20145
20146 # Used to examine libraries when file_magic_cmd begins "file"
20147 MAGIC_CMD=$MAGIC_CMD
20148
20149 # Used on cygwin: DLL creation program.
20150 DLLTOOL="$DLLTOOL"
20151
20152 # Used on cygwin: object dumper.
20153 OBJDUMP="$OBJDUMP"
20154
20155 # Used on cygwin: assembler.
20156 AS="$AS"
20157
20158 # The name of the directory that contains temporary libtool files.
20159 objdir=$objdir
20160
20161 # How to create reloadable object files.
20162 reload_flag=$lt_reload_flag
20163 reload_cmds=$lt_reload_cmds
20164
20165 # How to pass a linker flag through the compiler.
20166 wl=$lt_lt_prog_compiler_wl_RC
20167
20168 # Object file suffix (normally "o").
20169 objext="$ac_objext"
20170
20171 # Old archive suffix (normally "a").
20172 libext="$libext"
20173
20174 # Shared library suffix (normally ".so").
20175 shrext_cmds='$shrext_cmds'
20176
20177 # Executable file suffix (normally "").
20178 exeext="$exeext"
20179
20180 # Additional compiler flags for building library objects.
20181 pic_flag=$lt_lt_prog_compiler_pic_RC
20182 pic_mode=$pic_mode
20183
20184 # What is the maximum length of a command?
20185 max_cmd_len=$lt_cv_sys_max_cmd_len
20186
20187 # Does compiler simultaneously support -c and -o options?
20188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20189
20190 # Must we lock files when doing compilation ?
20191 need_locks=$lt_need_locks
20192
20193 # Do we need the lib prefix for modules?
20194 need_lib_prefix=$need_lib_prefix
20195
20196 # Do we need a version for libraries?
20197 need_version=$need_version
20198
20199 # Whether dlopen is supported.
20200 dlopen_support=$enable_dlopen
20201
20202 # Whether dlopen of programs is supported.
20203 dlopen_self=$enable_dlopen_self
20204
20205 # Whether dlopen of statically linked programs is supported.
20206 dlopen_self_static=$enable_dlopen_self_static
20207
20208 # Compiler flag to prevent dynamic linking.
20209 link_static_flag=$lt_lt_prog_compiler_static_RC
20210
20211 # Compiler flag to turn off builtin functions.
20212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20213
20214 # Compiler flag to allow reflexive dlopens.
20215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20216
20217 # Compiler flag to generate shared objects directly from archives.
20218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20219
20220 # Compiler flag to generate thread-safe objects.
20221 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20222
20223 # Library versioning type.
20224 version_type=$version_type
20225
20226 # Format of library name prefix.
20227 libname_spec=$lt_libname_spec
20228
20229 # List of archive names.  First name is the real one, the rest are links.
20230 # The last name is the one that the linker finds with -lNAME.
20231 library_names_spec=$lt_library_names_spec
20232
20233 # The coded name of the library, if different from the real name.
20234 soname_spec=$lt_soname_spec
20235
20236 # Commands used to build and install an old-style archive.
20237 RANLIB=$lt_RANLIB
20238 old_archive_cmds=$lt_old_archive_cmds_RC
20239 old_postinstall_cmds=$lt_old_postinstall_cmds
20240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20241
20242 # Create an old-style archive from a shared archive.
20243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20244
20245 # Create a temporary old-style archive to link instead of a shared archive.
20246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20247
20248 # Commands used to build and install a shared archive.
20249 archive_cmds=$lt_archive_cmds_RC
20250 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20251 postinstall_cmds=$lt_postinstall_cmds
20252 postuninstall_cmds=$lt_postuninstall_cmds
20253
20254 # Commands used to build a loadable module (assumed same as above if empty)
20255 module_cmds=$lt_module_cmds_RC
20256 module_expsym_cmds=$lt_module_expsym_cmds_RC
20257
20258 # Commands to strip libraries.
20259 old_striplib=$lt_old_striplib
20260 striplib=$lt_striplib
20261
20262 # Dependencies to place before the objects being linked to create a
20263 # shared library.
20264 predep_objects=$lt_predep_objects_RC
20265
20266 # Dependencies to place after the objects being linked to create a
20267 # shared library.
20268 postdep_objects=$lt_postdep_objects_RC
20269
20270 # Dependencies to place before the objects being linked to create a
20271 # shared library.
20272 predeps=$lt_predeps_RC
20273
20274 # Dependencies to place after the objects being linked to create a
20275 # shared library.
20276 postdeps=$lt_postdeps_RC
20277
20278 # The library search path used internally by the compiler when linking
20279 # a shared library.
20280 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20281
20282 # Method to check whether dependent libraries are shared objects.
20283 deplibs_check_method=$lt_deplibs_check_method
20284
20285 # Command to use when deplibs_check_method == file_magic.
20286 file_magic_cmd=$lt_file_magic_cmd
20287
20288 # Flag that allows shared libraries with undefined symbols to be built.
20289 allow_undefined_flag=$lt_allow_undefined_flag_RC
20290
20291 # Flag that forces no undefined symbols.
20292 no_undefined_flag=$lt_no_undefined_flag_RC
20293
20294 # Commands used to finish a libtool library installation in a directory.
20295 finish_cmds=$lt_finish_cmds
20296
20297 # Same as above, but a single script fragment to be evaled but not shown.
20298 finish_eval=$lt_finish_eval
20299
20300 # Take the output of nm and produce a listing of raw symbols and C names.
20301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20302
20303 # Transform the output of nm in a proper C declaration
20304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20305
20306 # Transform the output of nm in a C name address pair
20307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20308
20309 # This is the shared library runtime path variable.
20310 runpath_var=$runpath_var
20311
20312 # This is the shared library path variable.
20313 shlibpath_var=$shlibpath_var
20314
20315 # Is shlibpath searched before the hard-coded library search path?
20316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20317
20318 # How to hardcode a shared library path into an executable.
20319 hardcode_action=$hardcode_action_RC
20320
20321 # Whether we should hardcode library paths into libraries.
20322 hardcode_into_libs=$hardcode_into_libs
20323
20324 # Flag to hardcode \$libdir into a binary during linking.
20325 # This must work even if \$libdir does not exist.
20326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20327
20328 # If ld is used when linking, flag to hardcode \$libdir into
20329 # a binary during linking. This must work even if \$libdir does
20330 # not exist.
20331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20332
20333 # Whether we need a single -rpath flag with a separated argument.
20334 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20335
20336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20337 # resulting binary.
20338 hardcode_direct=$hardcode_direct_RC
20339
20340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20341 # resulting binary.
20342 hardcode_minus_L=$hardcode_minus_L_RC
20343
20344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20345 # the resulting binary.
20346 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20347
20348 # Set to yes if building a shared library automatically hardcodes DIR into the library
20349 # and all subsequent libraries and executables linked against it.
20350 hardcode_automatic=$hardcode_automatic_RC
20351
20352 # Variables whose values should be saved in libtool wrapper scripts and
20353 # restored at relink time.
20354 variables_saved_for_relink="$variables_saved_for_relink"
20355
20356 # Whether libtool must link a program against all its dependency libraries.
20357 link_all_deplibs=$link_all_deplibs_RC
20358
20359 # Compile-time system search path for libraries
20360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20361
20362 # Run-time system search path for libraries
20363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20364
20365 # Fix the shell variable \$srcfile for the compiler.
20366 fix_srcfile_path="$fix_srcfile_path_RC"
20367
20368 # Set to yes if exported symbols are required.
20369 always_export_symbols=$always_export_symbols_RC
20370
20371 # The commands to list exported symbols.
20372 export_symbols_cmds=$lt_export_symbols_cmds_RC
20373
20374 # The commands to extract the exported symbol list from a shared archive.
20375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20376
20377 # Symbols that should not be listed in the preloaded symbols.
20378 exclude_expsyms=$lt_exclude_expsyms_RC
20379
20380 # Symbols that must always be exported.
20381 include_expsyms=$lt_include_expsyms_RC
20382
20383 # ### END LIBTOOL TAG CONFIG: $tagname
20384
20385 __EOF__
20386
20387
20388 else
20389   # If there is no Makefile yet, we rely on a make rule to execute
20390   # `config.status --recheck' to rerun these tests and create the
20391   # libtool script then.
20392   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20393   if test -f "$ltmain_in"; then
20394     test -f Makefile && make "$ltmain"
20395   fi
20396 fi
20397
20398
20399 ac_ext=c
20400 ac_cpp='$CPP $CPPFLAGS'
20401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20404
20405 CC="$lt_save_CC"
20406
20407         ;;
20408
20409       *)
20410         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20411 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20412    { (exit 1); exit 1; }; }
20413         ;;
20414       esac
20415
20416       # Append the new tag name to the list of available tags.
20417       if test -n "$tagname" ; then
20418       available_tags="$available_tags $tagname"
20419     fi
20420     fi
20421   done
20422   IFS="$lt_save_ifs"
20423
20424   # Now substitute the updated list of available tags.
20425   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20426     mv "${ofile}T" "$ofile"
20427     chmod +x "$ofile"
20428   else
20429     rm -f "${ofile}T"
20430     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20431 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20432    { (exit 1); exit 1; }; }
20433   fi
20434 fi
20435
20436
20437
20438 # This can be used to rebuild libtool when needed
20439 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20440
20441 # Always use our own libtool.
20442 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20443
20444 # Prevent multiple expansion
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466 # We need to compile and run a program on the build machine.
20467 { echo "$as_me:$LINENO: checking for cc for build" >&5
20468 echo $ECHO_N "checking for cc for build... $ECHO_C" >&6; }
20469 if test "$cross_compiling" = "yes"; then
20470   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
20471 else
20472   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
20473 fi
20474 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20475 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
20476
20477
20478
20479 # Set some internal variables depending on the platform for later use.
20480 have_w32_system=no
20481 case "${host}" in
20482     *-mingw32*)
20483         have_w32_system=yes
20484         ;;
20485     *)
20486        ;;
20487 esac
20488
20489
20490
20491
20492
20493
20494 # Note, that autogen.sh greps for the next line.
20495
20496
20497   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20498 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
20499     # Check whether --enable-nls was given.
20500 if test "${enable_nls+set}" = set; then
20501   enableval=$enable_nls; USE_NLS=$enableval
20502 else
20503   USE_NLS=yes
20504 fi
20505
20506   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
20507 echo "${ECHO_T}$USE_NLS" >&6; }
20508
20509
20510
20511
20512
20513
20514 # Prepare PATH_SEPARATOR.
20515 # The user is always right.
20516 if test "${PATH_SEPARATOR+set}" != set; then
20517   echo "#! /bin/sh" >conf$$.sh
20518   echo  "exit 0"   >>conf$$.sh
20519   chmod +x conf$$.sh
20520   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20521     PATH_SEPARATOR=';'
20522   else
20523     PATH_SEPARATOR=:
20524   fi
20525   rm -f conf$$.sh
20526 fi
20527
20528 # Find out how to test for executable files. Don't use a zero-byte file,
20529 # as systems may use methods other than mode bits to determine executability.
20530 cat >conf$$.file <<_ASEOF
20531 #! /bin/sh
20532 exit 0
20533 _ASEOF
20534 chmod +x conf$$.file
20535 if test -x conf$$.file >/dev/null 2>&1; then
20536   ac_executable_p="test -x"
20537 else
20538   ac_executable_p="test -f"
20539 fi
20540 rm -f conf$$.file
20541
20542 # Extract the first word of "msgfmt", so it can be a program name with args.
20543 set dummy msgfmt; ac_word=$2
20544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20546 if test "${ac_cv_path_MSGFMT+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   case "$MSGFMT" in
20550   [\\/]* | ?:[\\/]*)
20551     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20552     ;;
20553   *)
20554     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20555     for ac_dir in $PATH; do
20556       IFS="$ac_save_IFS"
20557       test -z "$ac_dir" && ac_dir=.
20558       for ac_exec_ext in '' $ac_executable_extensions; do
20559         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20560           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20561           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20562      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20563             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20564             break 2
20565           fi
20566         fi
20567       done
20568     done
20569     IFS="$ac_save_IFS"
20570   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20571     ;;
20572 esac
20573 fi
20574 MSGFMT="$ac_cv_path_MSGFMT"
20575 if test "$MSGFMT" != ":"; then
20576   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20577 echo "${ECHO_T}$MSGFMT" >&6; }
20578 else
20579   { echo "$as_me:$LINENO: result: no" >&5
20580 echo "${ECHO_T}no" >&6; }
20581 fi
20582
20583   # Extract the first word of "gmsgfmt", so it can be a program name with args.
20584 set dummy gmsgfmt; ac_word=$2
20585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20587 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   case $GMSGFMT in
20591   [\\/]* | ?:[\\/]*)
20592   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20593   ;;
20594   *)
20595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20596 for as_dir in $PATH
20597 do
20598   IFS=$as_save_IFS
20599   test -z "$as_dir" && as_dir=.
20600   for ac_exec_ext in '' $ac_executable_extensions; do
20601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20602     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20604     break 2
20605   fi
20606 done
20607 done
20608 IFS=$as_save_IFS
20609
20610   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20611   ;;
20612 esac
20613 fi
20614 GMSGFMT=$ac_cv_path_GMSGFMT
20615 if test -n "$GMSGFMT"; then
20616   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20617 echo "${ECHO_T}$GMSGFMT" >&6; }
20618 else
20619   { echo "$as_me:$LINENO: result: no" >&5
20620 echo "${ECHO_T}no" >&6; }
20621 fi
20622
20623
20624
20625     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20626     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20627     *) MSGFMT_015=$MSGFMT ;;
20628   esac
20629
20630   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20631     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20632     *) GMSGFMT_015=$GMSGFMT ;;
20633   esac
20634
20635
20636
20637 # Prepare PATH_SEPARATOR.
20638 # The user is always right.
20639 if test "${PATH_SEPARATOR+set}" != set; then
20640   echo "#! /bin/sh" >conf$$.sh
20641   echo  "exit 0"   >>conf$$.sh
20642   chmod +x conf$$.sh
20643   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20644     PATH_SEPARATOR=';'
20645   else
20646     PATH_SEPARATOR=:
20647   fi
20648   rm -f conf$$.sh
20649 fi
20650
20651 # Find out how to test for executable files. Don't use a zero-byte file,
20652 # as systems may use methods other than mode bits to determine executability.
20653 cat >conf$$.file <<_ASEOF
20654 #! /bin/sh
20655 exit 0
20656 _ASEOF
20657 chmod +x conf$$.file
20658 if test -x conf$$.file >/dev/null 2>&1; then
20659   ac_executable_p="test -x"
20660 else
20661   ac_executable_p="test -f"
20662 fi
20663 rm -f conf$$.file
20664
20665 # Extract the first word of "xgettext", so it can be a program name with args.
20666 set dummy xgettext; ac_word=$2
20667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20669 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20670   echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672   case "$XGETTEXT" in
20673   [\\/]* | ?:[\\/]*)
20674     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20675     ;;
20676   *)
20677     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20678     for ac_dir in $PATH; do
20679       IFS="$ac_save_IFS"
20680       test -z "$ac_dir" && ac_dir=.
20681       for ac_exec_ext in '' $ac_executable_extensions; do
20682         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20683           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20684           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20685      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20686             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20687             break 2
20688           fi
20689         fi
20690       done
20691     done
20692     IFS="$ac_save_IFS"
20693   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20694     ;;
20695 esac
20696 fi
20697 XGETTEXT="$ac_cv_path_XGETTEXT"
20698 if test "$XGETTEXT" != ":"; then
20699   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20700 echo "${ECHO_T}$XGETTEXT" >&6; }
20701 else
20702   { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20704 fi
20705
20706     rm -f messages.po
20707
20708     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20709     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20710     *) XGETTEXT_015=$XGETTEXT ;;
20711   esac
20712
20713
20714
20715 # Prepare PATH_SEPARATOR.
20716 # The user is always right.
20717 if test "${PATH_SEPARATOR+set}" != set; then
20718   echo "#! /bin/sh" >conf$$.sh
20719   echo  "exit 0"   >>conf$$.sh
20720   chmod +x conf$$.sh
20721   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20722     PATH_SEPARATOR=';'
20723   else
20724     PATH_SEPARATOR=:
20725   fi
20726   rm -f conf$$.sh
20727 fi
20728
20729 # Find out how to test for executable files. Don't use a zero-byte file,
20730 # as systems may use methods other than mode bits to determine executability.
20731 cat >conf$$.file <<_ASEOF
20732 #! /bin/sh
20733 exit 0
20734 _ASEOF
20735 chmod +x conf$$.file
20736 if test -x conf$$.file >/dev/null 2>&1; then
20737   ac_executable_p="test -x"
20738 else
20739   ac_executable_p="test -f"
20740 fi
20741 rm -f conf$$.file
20742
20743 # Extract the first word of "msgmerge", so it can be a program name with args.
20744 set dummy msgmerge; ac_word=$2
20745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20747 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20748   echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750   case "$MSGMERGE" in
20751   [\\/]* | ?:[\\/]*)
20752     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20753     ;;
20754   *)
20755     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20756     for ac_dir in $PATH; do
20757       IFS="$ac_save_IFS"
20758       test -z "$ac_dir" && ac_dir=.
20759       for ac_exec_ext in '' $ac_executable_extensions; do
20760         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20761           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20762           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20763             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20764             break 2
20765           fi
20766         fi
20767       done
20768     done
20769     IFS="$ac_save_IFS"
20770   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20771     ;;
20772 esac
20773 fi
20774 MSGMERGE="$ac_cv_path_MSGMERGE"
20775 if test "$MSGMERGE" != ":"; then
20776   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20777 echo "${ECHO_T}$MSGMERGE" >&6; }
20778 else
20779   { echo "$as_me:$LINENO: result: no" >&5
20780 echo "${ECHO_T}no" >&6; }
20781 fi
20782
20783
20784         test -n "$localedir" || localedir='${datadir}/locale'
20785
20786
20787   ac_config_commands="$ac_config_commands po-directories"
20788
20789
20790
20791       if test "X$prefix" = "XNONE"; then
20792     acl_final_prefix="$ac_default_prefix"
20793   else
20794     acl_final_prefix="$prefix"
20795   fi
20796   if test "X$exec_prefix" = "XNONE"; then
20797     acl_final_exec_prefix='${prefix}'
20798   else
20799     acl_final_exec_prefix="$exec_prefix"
20800   fi
20801   acl_save_prefix="$prefix"
20802   prefix="$acl_final_prefix"
20803   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20804   prefix="$acl_save_prefix"
20805
20806
20807 # Check whether --with-gnu-ld was given.
20808 if test "${with_gnu_ld+set}" = set; then
20809   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20810 else
20811   with_gnu_ld=no
20812 fi
20813
20814 # Prepare PATH_SEPARATOR.
20815 # The user is always right.
20816 if test "${PATH_SEPARATOR+set}" != set; then
20817   echo "#! /bin/sh" >conf$$.sh
20818   echo  "exit 0"   >>conf$$.sh
20819   chmod +x conf$$.sh
20820   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20821     PATH_SEPARATOR=';'
20822   else
20823     PATH_SEPARATOR=:
20824   fi
20825   rm -f conf$$.sh
20826 fi
20827 ac_prog=ld
20828 if test "$GCC" = yes; then
20829   # Check if gcc -print-prog-name=ld gives a path.
20830   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20831 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
20832   case $host in
20833   *-*-mingw*)
20834     # gcc leaves a trailing carriage return which upsets mingw
20835     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20836   *)
20837     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20838   esac
20839   case $ac_prog in
20840     # Accept absolute paths.
20841     [\\/]* | [A-Za-z]:[\\/]*)
20842       re_direlt='/[^/][^/]*/\.\./'
20843       # Canonicalize the path of ld
20844       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20845       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20846         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20847       done
20848       test -z "$LD" && LD="$ac_prog"
20849       ;;
20850   "")
20851     # If it fails, then pretend we aren't using GCC.
20852     ac_prog=ld
20853     ;;
20854   *)
20855     # If it is relative, then search for the first ld in PATH.
20856     with_gnu_ld=unknown
20857     ;;
20858   esac
20859 elif test "$with_gnu_ld" = yes; then
20860   { echo "$as_me:$LINENO: checking for GNU ld" >&5
20861 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
20862 else
20863   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20864 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
20865 fi
20866 if test "${acl_cv_path_LD+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   if test -z "$LD"; then
20870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20871   for ac_dir in $PATH; do
20872     test -z "$ac_dir" && ac_dir=.
20873     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20874       acl_cv_path_LD="$ac_dir/$ac_prog"
20875       # Check to see if the program is GNU ld.  I'd rather use --version,
20876       # but apparently some GNU ld's only accept -v.
20877       # Break only if it was the GNU/non-GNU ld that we prefer.
20878       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20879       *GNU* | *'with BFD'*)
20880         test "$with_gnu_ld" != no && break ;;
20881       *)
20882         test "$with_gnu_ld" != yes && break ;;
20883       esac
20884     fi
20885   done
20886   IFS="$ac_save_ifs"
20887 else
20888   acl_cv_path_LD="$LD" # Let the user override the test with a path.
20889 fi
20890 fi
20891
20892 LD="$acl_cv_path_LD"
20893 if test -n "$LD"; then
20894   { echo "$as_me:$LINENO: result: $LD" >&5
20895 echo "${ECHO_T}$LD" >&6; }
20896 else
20897   { echo "$as_me:$LINENO: result: no" >&5
20898 echo "${ECHO_T}no" >&6; }
20899 fi
20900 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20901 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20902    { (exit 1); exit 1; }; }
20903 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20904 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
20905 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20906   echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20909 case `$LD -v 2>&1 </dev/null` in
20910 *GNU* | *'with BFD'*)
20911   acl_cv_prog_gnu_ld=yes ;;
20912 *)
20913   acl_cv_prog_gnu_ld=no ;;
20914 esac
20915 fi
20916 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20917 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
20918 with_gnu_ld=$acl_cv_prog_gnu_ld
20919
20920
20921
20922
20923                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20924 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
20925 if test "${acl_cv_rpath+set}" = set; then
20926   echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928
20929     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20930     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20931     . ./conftest.sh
20932     rm -f ./conftest.sh
20933     acl_cv_rpath=done
20934
20935 fi
20936 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20937 echo "${ECHO_T}$acl_cv_rpath" >&6; }
20938   wl="$acl_cv_wl"
20939   libext="$acl_cv_libext"
20940   shlibext="$acl_cv_shlibext"
20941   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20942   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20943   hardcode_direct="$acl_cv_hardcode_direct"
20944   hardcode_minus_L="$acl_cv_hardcode_minus_L"
20945     # Check whether --enable-rpath was given.
20946 if test "${enable_rpath+set}" = set; then
20947   enableval=$enable_rpath; :
20948 else
20949   enable_rpath=yes
20950 fi
20951
20952
20953
20954                   acl_libdirstem=lib
20955   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20956   if test -n "$searchpath"; then
20957     acl_save_IFS="${IFS=        }"; IFS=":"
20958     for searchdir in $searchpath; do
20959       if test -d "$searchdir"; then
20960         case "$searchdir" in
20961           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20962           *) searchdir=`cd "$searchdir" && pwd`
20963              case "$searchdir" in
20964                */lib64 ) acl_libdirstem=lib64 ;;
20965              esac ;;
20966         esac
20967       fi
20968     done
20969     IFS="$acl_save_IFS"
20970   fi
20971
20972
20973
20974
20975
20976
20977
20978
20979     use_additional=yes
20980
20981   acl_save_prefix="$prefix"
20982   prefix="$acl_final_prefix"
20983   acl_save_exec_prefix="$exec_prefix"
20984   exec_prefix="$acl_final_exec_prefix"
20985
20986     eval additional_includedir=\"$includedir\"
20987     eval additional_libdir=\"$libdir\"
20988
20989   exec_prefix="$acl_save_exec_prefix"
20990   prefix="$acl_save_prefix"
20991
20992
20993 # Check whether --with-libiconv-prefix was given.
20994 if test "${with_libiconv_prefix+set}" = set; then
20995   withval=$with_libiconv_prefix;
20996     if test "X$withval" = "Xno"; then
20997       use_additional=no
20998     else
20999       if test "X$withval" = "X"; then
21000
21001   acl_save_prefix="$prefix"
21002   prefix="$acl_final_prefix"
21003   acl_save_exec_prefix="$exec_prefix"
21004   exec_prefix="$acl_final_exec_prefix"
21005
21006           eval additional_includedir=\"$includedir\"
21007           eval additional_libdir=\"$libdir\"
21008
21009   exec_prefix="$acl_save_exec_prefix"
21010   prefix="$acl_save_prefix"
21011
21012       else
21013         additional_includedir="$withval/include"
21014         additional_libdir="$withval/$acl_libdirstem"
21015       fi
21016     fi
21017
21018 fi
21019
21020       LIBICONV=
21021   LTLIBICONV=
21022   INCICONV=
21023   rpathdirs=
21024   ltrpathdirs=
21025   names_already_handled=
21026   names_next_round='iconv '
21027   while test -n "$names_next_round"; do
21028     names_this_round="$names_next_round"
21029     names_next_round=
21030     for name in $names_this_round; do
21031       already_handled=
21032       for n in $names_already_handled; do
21033         if test "$n" = "$name"; then
21034           already_handled=yes
21035           break
21036         fi
21037       done
21038       if test -z "$already_handled"; then
21039         names_already_handled="$names_already_handled $name"
21040                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21041         eval value=\"\$HAVE_LIB$uppername\"
21042         if test -n "$value"; then
21043           if test "$value" = yes; then
21044             eval value=\"\$LIB$uppername\"
21045             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21046             eval value=\"\$LTLIB$uppername\"
21047             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21048           else
21049                                     :
21050           fi
21051         else
21052                               found_dir=
21053           found_la=
21054           found_so=
21055           found_a=
21056           if test $use_additional = yes; then
21057             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21058               found_dir="$additional_libdir"
21059               found_so="$additional_libdir/lib$name.$shlibext"
21060               if test -f "$additional_libdir/lib$name.la"; then
21061                 found_la="$additional_libdir/lib$name.la"
21062               fi
21063             else
21064               if test -f "$additional_libdir/lib$name.$libext"; then
21065                 found_dir="$additional_libdir"
21066                 found_a="$additional_libdir/lib$name.$libext"
21067                 if test -f "$additional_libdir/lib$name.la"; then
21068                   found_la="$additional_libdir/lib$name.la"
21069                 fi
21070               fi
21071             fi
21072           fi
21073           if test "X$found_dir" = "X"; then
21074             for x in $LDFLAGS $LTLIBICONV; do
21075
21076   acl_save_prefix="$prefix"
21077   prefix="$acl_final_prefix"
21078   acl_save_exec_prefix="$exec_prefix"
21079   exec_prefix="$acl_final_exec_prefix"
21080   eval x=\"$x\"
21081   exec_prefix="$acl_save_exec_prefix"
21082   prefix="$acl_save_prefix"
21083
21084               case "$x" in
21085                 -L*)
21086                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21087                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21088                     found_dir="$dir"
21089                     found_so="$dir/lib$name.$shlibext"
21090                     if test -f "$dir/lib$name.la"; then
21091                       found_la="$dir/lib$name.la"
21092                     fi
21093                   else
21094                     if test -f "$dir/lib$name.$libext"; then
21095                       found_dir="$dir"
21096                       found_a="$dir/lib$name.$libext"
21097                       if test -f "$dir/lib$name.la"; then
21098                         found_la="$dir/lib$name.la"
21099                       fi
21100                     fi
21101                   fi
21102                   ;;
21103               esac
21104               if test "X$found_dir" != "X"; then
21105                 break
21106               fi
21107             done
21108           fi
21109           if test "X$found_dir" != "X"; then
21110                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21111             if test "X$found_so" != "X"; then
21112                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21113                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21114               else
21115                                                                                 haveit=
21116                 for x in $ltrpathdirs; do
21117                   if test "X$x" = "X$found_dir"; then
21118                     haveit=yes
21119                     break
21120                   fi
21121                 done
21122                 if test -z "$haveit"; then
21123                   ltrpathdirs="$ltrpathdirs $found_dir"
21124                 fi
21125                                 if test "$hardcode_direct" = yes; then
21126                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21127                 else
21128                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21129                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21130                                                             haveit=
21131                     for x in $rpathdirs; do
21132                       if test "X$x" = "X$found_dir"; then
21133                         haveit=yes
21134                         break
21135                       fi
21136                     done
21137                     if test -z "$haveit"; then
21138                       rpathdirs="$rpathdirs $found_dir"
21139                     fi
21140                   else
21141                                                                                 haveit=
21142                     for x in $LDFLAGS $LIBICONV; do
21143
21144   acl_save_prefix="$prefix"
21145   prefix="$acl_final_prefix"
21146   acl_save_exec_prefix="$exec_prefix"
21147   exec_prefix="$acl_final_exec_prefix"
21148   eval x=\"$x\"
21149   exec_prefix="$acl_save_exec_prefix"
21150   prefix="$acl_save_prefix"
21151
21152                       if test "X$x" = "X-L$found_dir"; then
21153                         haveit=yes
21154                         break
21155                       fi
21156                     done
21157                     if test -z "$haveit"; then
21158                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21159                     fi
21160                     if test "$hardcode_minus_L" != no; then
21161                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21162                     else
21163                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21164                     fi
21165                   fi
21166                 fi
21167               fi
21168             else
21169               if test "X$found_a" != "X"; then
21170                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21171               else
21172                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21173               fi
21174             fi
21175                         additional_includedir=
21176             case "$found_dir" in
21177               */$acl_libdirstem | */$acl_libdirstem/)
21178                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21179                 additional_includedir="$basedir/include"
21180                 ;;
21181             esac
21182             if test "X$additional_includedir" != "X"; then
21183                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21184                 haveit=
21185                 if test "X$additional_includedir" = "X/usr/local/include"; then
21186                   if test -n "$GCC"; then
21187                     case $host_os in
21188                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21189                     esac
21190                   fi
21191                 fi
21192                 if test -z "$haveit"; then
21193                   for x in $CPPFLAGS $INCICONV; do
21194
21195   acl_save_prefix="$prefix"
21196   prefix="$acl_final_prefix"
21197   acl_save_exec_prefix="$exec_prefix"
21198   exec_prefix="$acl_final_exec_prefix"
21199   eval x=\"$x\"
21200   exec_prefix="$acl_save_exec_prefix"
21201   prefix="$acl_save_prefix"
21202
21203                     if test "X$x" = "X-I$additional_includedir"; then
21204                       haveit=yes
21205                       break
21206                     fi
21207                   done
21208                   if test -z "$haveit"; then
21209                     if test -d "$additional_includedir"; then
21210                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21211                     fi
21212                   fi
21213                 fi
21214               fi
21215             fi
21216                         if test -n "$found_la"; then
21217                                                         save_libdir="$libdir"
21218               case "$found_la" in
21219                 */* | *\\*) . "$found_la" ;;
21220                 *) . "./$found_la" ;;
21221               esac
21222               libdir="$save_libdir"
21223                             for dep in $dependency_libs; do
21224                 case "$dep" in
21225                   -L*)
21226                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21227                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21228                       haveit=
21229                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21230                         if test -n "$GCC"; then
21231                           case $host_os in
21232                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21233                           esac
21234                         fi
21235                       fi
21236                       if test -z "$haveit"; then
21237                         haveit=
21238                         for x in $LDFLAGS $LIBICONV; do
21239
21240   acl_save_prefix="$prefix"
21241   prefix="$acl_final_prefix"
21242   acl_save_exec_prefix="$exec_prefix"
21243   exec_prefix="$acl_final_exec_prefix"
21244   eval x=\"$x\"
21245   exec_prefix="$acl_save_exec_prefix"
21246   prefix="$acl_save_prefix"
21247
21248                           if test "X$x" = "X-L$additional_libdir"; then
21249                             haveit=yes
21250                             break
21251                           fi
21252                         done
21253                         if test -z "$haveit"; then
21254                           if test -d "$additional_libdir"; then
21255                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21256                           fi
21257                         fi
21258                         haveit=
21259                         for x in $LDFLAGS $LTLIBICONV; do
21260
21261   acl_save_prefix="$prefix"
21262   prefix="$acl_final_prefix"
21263   acl_save_exec_prefix="$exec_prefix"
21264   exec_prefix="$acl_final_exec_prefix"
21265   eval x=\"$x\"
21266   exec_prefix="$acl_save_exec_prefix"
21267   prefix="$acl_save_prefix"
21268
21269                           if test "X$x" = "X-L$additional_libdir"; then
21270                             haveit=yes
21271                             break
21272                           fi
21273                         done
21274                         if test -z "$haveit"; then
21275                           if test -d "$additional_libdir"; then
21276                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21277                           fi
21278                         fi
21279                       fi
21280                     fi
21281                     ;;
21282                   -R*)
21283                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21284                     if test "$enable_rpath" != no; then
21285                                                                   haveit=
21286                       for x in $rpathdirs; do
21287                         if test "X$x" = "X$dir"; then
21288                           haveit=yes
21289                           break
21290                         fi
21291                       done
21292                       if test -z "$haveit"; then
21293                         rpathdirs="$rpathdirs $dir"
21294                       fi
21295                                                                   haveit=
21296                       for x in $ltrpathdirs; do
21297                         if test "X$x" = "X$dir"; then
21298                           haveit=yes
21299                           break
21300                         fi
21301                       done
21302                       if test -z "$haveit"; then
21303                         ltrpathdirs="$ltrpathdirs $dir"
21304                       fi
21305                     fi
21306                     ;;
21307                   -l*)
21308                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21309                     ;;
21310                   *.la)
21311                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21312                     ;;
21313                   *)
21314                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21315                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21316                     ;;
21317                 esac
21318               done
21319             fi
21320           else
21321                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21322             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21323           fi
21324         fi
21325       fi
21326     done
21327   done
21328   if test "X$rpathdirs" != "X"; then
21329     if test -n "$hardcode_libdir_separator"; then
21330                         alldirs=
21331       for found_dir in $rpathdirs; do
21332         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21333       done
21334             acl_save_libdir="$libdir"
21335       libdir="$alldirs"
21336       eval flag=\"$hardcode_libdir_flag_spec\"
21337       libdir="$acl_save_libdir"
21338       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21339     else
21340             for found_dir in $rpathdirs; do
21341         acl_save_libdir="$libdir"
21342         libdir="$found_dir"
21343         eval flag=\"$hardcode_libdir_flag_spec\"
21344         libdir="$acl_save_libdir"
21345         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21346       done
21347     fi
21348   fi
21349   if test "X$ltrpathdirs" != "X"; then
21350             for found_dir in $ltrpathdirs; do
21351       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21352     done
21353   fi
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
21373 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
21374 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   gt_save_LIBS="$LIBS"
21378      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21379      cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385 #include <CoreFoundation/CFPreferences.h>
21386 int
21387 main ()
21388 {
21389 CFPreferencesCopyAppValue(NULL, NULL)
21390   ;
21391   return 0;
21392 }
21393 _ACEOF
21394 rm -f conftest.$ac_objext conftest$ac_exeext
21395 if { (ac_try="$ac_link"
21396 case "(($ac_try" in
21397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398   *) ac_try_echo=$ac_try;;
21399 esac
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401   (eval "$ac_link") 2>conftest.er1
21402   ac_status=$?
21403   grep -v '^ *+' conftest.er1 >conftest.err
21404   rm -f conftest.er1
21405   cat conftest.err >&5
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); } && {
21408          test -z "$ac_c_werror_flag" ||
21409          test ! -s conftest.err
21410        } && test -s conftest$ac_exeext &&
21411        $as_test_x conftest$ac_exeext; then
21412   gt_cv_func_CFPreferencesCopyAppValue=yes
21413 else
21414   echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417         gt_cv_func_CFPreferencesCopyAppValue=no
21418 fi
21419
21420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21421       conftest$ac_exeext conftest.$ac_ext
21422      LIBS="$gt_save_LIBS"
21423 fi
21424 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21425 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21426   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21427
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
21430 _ACEOF
21431
21432   fi
21433     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
21434 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
21435 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438   gt_save_LIBS="$LIBS"
21439      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21440      cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h.  */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h.  */
21446 #include <CoreFoundation/CFLocale.h>
21447 int
21448 main ()
21449 {
21450 CFLocaleCopyCurrent();
21451   ;
21452   return 0;
21453 }
21454 _ACEOF
21455 rm -f conftest.$ac_objext conftest$ac_exeext
21456 if { (ac_try="$ac_link"
21457 case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_link") 2>conftest.er1
21463   ac_status=$?
21464   grep -v '^ *+' conftest.er1 >conftest.err
21465   rm -f conftest.er1
21466   cat conftest.err >&5
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && {
21469          test -z "$ac_c_werror_flag" ||
21470          test ! -s conftest.err
21471        } && test -s conftest$ac_exeext &&
21472        $as_test_x conftest$ac_exeext; then
21473   gt_cv_func_CFLocaleCopyCurrent=yes
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478         gt_cv_func_CFLocaleCopyCurrent=no
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482       conftest$ac_exeext conftest.$ac_ext
21483      LIBS="$gt_save_LIBS"
21484 fi
21485 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21486 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21487   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_CFLOCALECOPYCURRENT 1
21491 _ACEOF
21492
21493   fi
21494   INTL_MACOSX_LIBS=
21495   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21496     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21497   fi
21498
21499
21500
21501
21502
21503
21504   LIBINTL=
21505   LTLIBINTL=
21506   POSUB=
21507
21508     if test "$USE_NLS" = "yes"; then
21509     gt_use_preinstalled_gnugettext=no
21510
21511
21512
21513
21514
21515
21516         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21517 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
21518 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
21519   echo $ECHO_N "(cached) $ECHO_C" >&6
21520 else
21521   cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527 #include <libintl.h>
21528 extern int _nl_msg_cat_cntr;
21529 extern int *_nl_domain_bindings;
21530 int
21531 main ()
21532 {
21533 bindtextdomain ("", "");
21534 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543   *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546   (eval "$ac_link") 2>conftest.er1
21547   ac_status=$?
21548   grep -v '^ *+' conftest.er1 >conftest.err
21549   rm -f conftest.er1
21550   cat conftest.err >&5
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } && {
21553          test -z "$ac_c_werror_flag" ||
21554          test ! -s conftest.err
21555        } && test -s conftest$ac_exeext &&
21556        $as_test_x conftest$ac_exeext; then
21557   gt_cv_func_gnugettext1_libc=yes
21558 else
21559   echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562         gt_cv_func_gnugettext1_libc=no
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566       conftest$ac_exeext conftest.$ac_ext
21567 fi
21568 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21569 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
21570
21571         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21572
21573
21574
21575
21576
21577           am_save_CPPFLAGS="$CPPFLAGS"
21578
21579   for element in $INCICONV; do
21580     haveit=
21581     for x in $CPPFLAGS; do
21582
21583   acl_save_prefix="$prefix"
21584   prefix="$acl_final_prefix"
21585   acl_save_exec_prefix="$exec_prefix"
21586   exec_prefix="$acl_final_exec_prefix"
21587   eval x=\"$x\"
21588   exec_prefix="$acl_save_exec_prefix"
21589   prefix="$acl_save_prefix"
21590
21591       if test "X$x" = "X$element"; then
21592         haveit=yes
21593         break
21594       fi
21595     done
21596     if test -z "$haveit"; then
21597       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21598     fi
21599   done
21600
21601
21602   { echo "$as_me:$LINENO: checking for iconv" >&5
21603 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21604 if test "${am_cv_func_iconv+set}" = set; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607
21608     am_cv_func_iconv="no, consider installing GNU libiconv"
21609     am_cv_lib_iconv=no
21610     cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 #include <stdlib.h>
21617 #include <iconv.h>
21618 int
21619 main ()
21620 {
21621 iconv_t cd = iconv_open("","");
21622        iconv(cd,NULL,NULL,NULL,NULL);
21623        iconv_close(cd);
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (ac_try="$ac_link"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635   (eval "$ac_link") 2>conftest.er1
21636   ac_status=$?
21637   grep -v '^ *+' conftest.er1 >conftest.err
21638   rm -f conftest.er1
21639   cat conftest.err >&5
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } && {
21642          test -z "$ac_c_werror_flag" ||
21643          test ! -s conftest.err
21644        } && test -s conftest$ac_exeext &&
21645        $as_test_x conftest$ac_exeext; then
21646   am_cv_func_iconv=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655       conftest$ac_exeext conftest.$ac_ext
21656     if test "$am_cv_func_iconv" != yes; then
21657       am_save_LIBS="$LIBS"
21658       LIBS="$LIBS $LIBICONV"
21659       cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 #include <stdlib.h>
21666 #include <iconv.h>
21667 int
21668 main ()
21669 {
21670 iconv_t cd = iconv_open("","");
21671          iconv(cd,NULL,NULL,NULL,NULL);
21672          iconv_close(cd);
21673   ;
21674   return 0;
21675 }
21676 _ACEOF
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681   *) ac_try_echo=$ac_try;;
21682 esac
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684   (eval "$ac_link") 2>conftest.er1
21685   ac_status=$?
21686   grep -v '^ *+' conftest.er1 >conftest.err
21687   rm -f conftest.er1
21688   cat conftest.err >&5
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); } && {
21691          test -z "$ac_c_werror_flag" ||
21692          test ! -s conftest.err
21693        } && test -s conftest$ac_exeext &&
21694        $as_test_x conftest$ac_exeext; then
21695   am_cv_lib_iconv=yes
21696         am_cv_func_iconv=yes
21697 else
21698   echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701
21702 fi
21703
21704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21705       conftest$ac_exeext conftest.$ac_ext
21706       LIBS="$am_save_LIBS"
21707     fi
21708
21709 fi
21710 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21711 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
21712   if test "$am_cv_func_iconv" = yes; then
21713
21714 cat >>confdefs.h <<\_ACEOF
21715 #define HAVE_ICONV 1
21716 _ACEOF
21717
21718   fi
21719   if test "$am_cv_lib_iconv" = yes; then
21720     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21721 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
21722     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
21723 echo "${ECHO_T}$LIBICONV" >&6; }
21724   else
21725             CPPFLAGS="$am_save_CPPFLAGS"
21726     LIBICONV=
21727     LTLIBICONV=
21728   fi
21729
21730
21731
21732
21733
21734
21735
21736     use_additional=yes
21737
21738   acl_save_prefix="$prefix"
21739   prefix="$acl_final_prefix"
21740   acl_save_exec_prefix="$exec_prefix"
21741   exec_prefix="$acl_final_exec_prefix"
21742
21743     eval additional_includedir=\"$includedir\"
21744     eval additional_libdir=\"$libdir\"
21745
21746   exec_prefix="$acl_save_exec_prefix"
21747   prefix="$acl_save_prefix"
21748
21749
21750 # Check whether --with-libintl-prefix was given.
21751 if test "${with_libintl_prefix+set}" = set; then
21752   withval=$with_libintl_prefix;
21753     if test "X$withval" = "Xno"; then
21754       use_additional=no
21755     else
21756       if test "X$withval" = "X"; then
21757
21758   acl_save_prefix="$prefix"
21759   prefix="$acl_final_prefix"
21760   acl_save_exec_prefix="$exec_prefix"
21761   exec_prefix="$acl_final_exec_prefix"
21762
21763           eval additional_includedir=\"$includedir\"
21764           eval additional_libdir=\"$libdir\"
21765
21766   exec_prefix="$acl_save_exec_prefix"
21767   prefix="$acl_save_prefix"
21768
21769       else
21770         additional_includedir="$withval/include"
21771         additional_libdir="$withval/$acl_libdirstem"
21772       fi
21773     fi
21774
21775 fi
21776
21777       LIBINTL=
21778   LTLIBINTL=
21779   INCINTL=
21780   rpathdirs=
21781   ltrpathdirs=
21782   names_already_handled=
21783   names_next_round='intl '
21784   while test -n "$names_next_round"; do
21785     names_this_round="$names_next_round"
21786     names_next_round=
21787     for name in $names_this_round; do
21788       already_handled=
21789       for n in $names_already_handled; do
21790         if test "$n" = "$name"; then
21791           already_handled=yes
21792           break
21793         fi
21794       done
21795       if test -z "$already_handled"; then
21796         names_already_handled="$names_already_handled $name"
21797                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21798         eval value=\"\$HAVE_LIB$uppername\"
21799         if test -n "$value"; then
21800           if test "$value" = yes; then
21801             eval value=\"\$LIB$uppername\"
21802             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21803             eval value=\"\$LTLIB$uppername\"
21804             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21805           else
21806                                     :
21807           fi
21808         else
21809                               found_dir=
21810           found_la=
21811           found_so=
21812           found_a=
21813           if test $use_additional = yes; then
21814             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21815               found_dir="$additional_libdir"
21816               found_so="$additional_libdir/lib$name.$shlibext"
21817               if test -f "$additional_libdir/lib$name.la"; then
21818                 found_la="$additional_libdir/lib$name.la"
21819               fi
21820             else
21821               if test -f "$additional_libdir/lib$name.$libext"; then
21822                 found_dir="$additional_libdir"
21823                 found_a="$additional_libdir/lib$name.$libext"
21824                 if test -f "$additional_libdir/lib$name.la"; then
21825                   found_la="$additional_libdir/lib$name.la"
21826                 fi
21827               fi
21828             fi
21829           fi
21830           if test "X$found_dir" = "X"; then
21831             for x in $LDFLAGS $LTLIBINTL; do
21832
21833   acl_save_prefix="$prefix"
21834   prefix="$acl_final_prefix"
21835   acl_save_exec_prefix="$exec_prefix"
21836   exec_prefix="$acl_final_exec_prefix"
21837   eval x=\"$x\"
21838   exec_prefix="$acl_save_exec_prefix"
21839   prefix="$acl_save_prefix"
21840
21841               case "$x" in
21842                 -L*)
21843                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21844                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21845                     found_dir="$dir"
21846                     found_so="$dir/lib$name.$shlibext"
21847                     if test -f "$dir/lib$name.la"; then
21848                       found_la="$dir/lib$name.la"
21849                     fi
21850                   else
21851                     if test -f "$dir/lib$name.$libext"; then
21852                       found_dir="$dir"
21853                       found_a="$dir/lib$name.$libext"
21854                       if test -f "$dir/lib$name.la"; then
21855                         found_la="$dir/lib$name.la"
21856                       fi
21857                     fi
21858                   fi
21859                   ;;
21860               esac
21861               if test "X$found_dir" != "X"; then
21862                 break
21863               fi
21864             done
21865           fi
21866           if test "X$found_dir" != "X"; then
21867                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21868             if test "X$found_so" != "X"; then
21869                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21870                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21871               else
21872                                                                                 haveit=
21873                 for x in $ltrpathdirs; do
21874                   if test "X$x" = "X$found_dir"; then
21875                     haveit=yes
21876                     break
21877                   fi
21878                 done
21879                 if test -z "$haveit"; then
21880                   ltrpathdirs="$ltrpathdirs $found_dir"
21881                 fi
21882                                 if test "$hardcode_direct" = yes; then
21883                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21884                 else
21885                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21886                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21887                                                             haveit=
21888                     for x in $rpathdirs; do
21889                       if test "X$x" = "X$found_dir"; then
21890                         haveit=yes
21891                         break
21892                       fi
21893                     done
21894                     if test -z "$haveit"; then
21895                       rpathdirs="$rpathdirs $found_dir"
21896                     fi
21897                   else
21898                                                                                 haveit=
21899                     for x in $LDFLAGS $LIBINTL; do
21900
21901   acl_save_prefix="$prefix"
21902   prefix="$acl_final_prefix"
21903   acl_save_exec_prefix="$exec_prefix"
21904   exec_prefix="$acl_final_exec_prefix"
21905   eval x=\"$x\"
21906   exec_prefix="$acl_save_exec_prefix"
21907   prefix="$acl_save_prefix"
21908
21909                       if test "X$x" = "X-L$found_dir"; then
21910                         haveit=yes
21911                         break
21912                       fi
21913                     done
21914                     if test -z "$haveit"; then
21915                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21916                     fi
21917                     if test "$hardcode_minus_L" != no; then
21918                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21919                     else
21920                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21921                     fi
21922                   fi
21923                 fi
21924               fi
21925             else
21926               if test "X$found_a" != "X"; then
21927                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21928               else
21929                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21930               fi
21931             fi
21932                         additional_includedir=
21933             case "$found_dir" in
21934               */$acl_libdirstem | */$acl_libdirstem/)
21935                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21936                 additional_includedir="$basedir/include"
21937                 ;;
21938             esac
21939             if test "X$additional_includedir" != "X"; then
21940                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21941                 haveit=
21942                 if test "X$additional_includedir" = "X/usr/local/include"; then
21943                   if test -n "$GCC"; then
21944                     case $host_os in
21945                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21946                     esac
21947                   fi
21948                 fi
21949                 if test -z "$haveit"; then
21950                   for x in $CPPFLAGS $INCINTL; do
21951
21952   acl_save_prefix="$prefix"
21953   prefix="$acl_final_prefix"
21954   acl_save_exec_prefix="$exec_prefix"
21955   exec_prefix="$acl_final_exec_prefix"
21956   eval x=\"$x\"
21957   exec_prefix="$acl_save_exec_prefix"
21958   prefix="$acl_save_prefix"
21959
21960                     if test "X$x" = "X-I$additional_includedir"; then
21961                       haveit=yes
21962                       break
21963                     fi
21964                   done
21965                   if test -z "$haveit"; then
21966                     if test -d "$additional_includedir"; then
21967                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21968                     fi
21969                   fi
21970                 fi
21971               fi
21972             fi
21973                         if test -n "$found_la"; then
21974                                                         save_libdir="$libdir"
21975               case "$found_la" in
21976                 */* | *\\*) . "$found_la" ;;
21977                 *) . "./$found_la" ;;
21978               esac
21979               libdir="$save_libdir"
21980                             for dep in $dependency_libs; do
21981                 case "$dep" in
21982                   -L*)
21983                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21984                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21985                       haveit=
21986                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21987                         if test -n "$GCC"; then
21988                           case $host_os in
21989                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21990                           esac
21991                         fi
21992                       fi
21993                       if test -z "$haveit"; then
21994                         haveit=
21995                         for x in $LDFLAGS $LIBINTL; do
21996
21997   acl_save_prefix="$prefix"
21998   prefix="$acl_final_prefix"
21999   acl_save_exec_prefix="$exec_prefix"
22000   exec_prefix="$acl_final_exec_prefix"
22001   eval x=\"$x\"
22002   exec_prefix="$acl_save_exec_prefix"
22003   prefix="$acl_save_prefix"
22004
22005                           if test "X$x" = "X-L$additional_libdir"; then
22006                             haveit=yes
22007                             break
22008                           fi
22009                         done
22010                         if test -z "$haveit"; then
22011                           if test -d "$additional_libdir"; then
22012                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22013                           fi
22014                         fi
22015                         haveit=
22016                         for x in $LDFLAGS $LTLIBINTL; do
22017
22018   acl_save_prefix="$prefix"
22019   prefix="$acl_final_prefix"
22020   acl_save_exec_prefix="$exec_prefix"
22021   exec_prefix="$acl_final_exec_prefix"
22022   eval x=\"$x\"
22023   exec_prefix="$acl_save_exec_prefix"
22024   prefix="$acl_save_prefix"
22025
22026                           if test "X$x" = "X-L$additional_libdir"; then
22027                             haveit=yes
22028                             break
22029                           fi
22030                         done
22031                         if test -z "$haveit"; then
22032                           if test -d "$additional_libdir"; then
22033                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22034                           fi
22035                         fi
22036                       fi
22037                     fi
22038                     ;;
22039                   -R*)
22040                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22041                     if test "$enable_rpath" != no; then
22042                                                                   haveit=
22043                       for x in $rpathdirs; do
22044                         if test "X$x" = "X$dir"; then
22045                           haveit=yes
22046                           break
22047                         fi
22048                       done
22049                       if test -z "$haveit"; then
22050                         rpathdirs="$rpathdirs $dir"
22051                       fi
22052                                                                   haveit=
22053                       for x in $ltrpathdirs; do
22054                         if test "X$x" = "X$dir"; then
22055                           haveit=yes
22056                           break
22057                         fi
22058                       done
22059                       if test -z "$haveit"; then
22060                         ltrpathdirs="$ltrpathdirs $dir"
22061                       fi
22062                     fi
22063                     ;;
22064                   -l*)
22065                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22066                     ;;
22067                   *.la)
22068                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22069                     ;;
22070                   *)
22071                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22072                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22073                     ;;
22074                 esac
22075               done
22076             fi
22077           else
22078                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22079             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22080           fi
22081         fi
22082       fi
22083     done
22084   done
22085   if test "X$rpathdirs" != "X"; then
22086     if test -n "$hardcode_libdir_separator"; then
22087                         alldirs=
22088       for found_dir in $rpathdirs; do
22089         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22090       done
22091             acl_save_libdir="$libdir"
22092       libdir="$alldirs"
22093       eval flag=\"$hardcode_libdir_flag_spec\"
22094       libdir="$acl_save_libdir"
22095       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22096     else
22097             for found_dir in $rpathdirs; do
22098         acl_save_libdir="$libdir"
22099         libdir="$found_dir"
22100         eval flag=\"$hardcode_libdir_flag_spec\"
22101         libdir="$acl_save_libdir"
22102         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22103       done
22104     fi
22105   fi
22106   if test "X$ltrpathdirs" != "X"; then
22107             for found_dir in $ltrpathdirs; do
22108       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22109     done
22110   fi
22111
22112           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22113 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
22114 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22115   echo $ECHO_N "(cached) $ECHO_C" >&6
22116 else
22117   gt_save_CPPFLAGS="$CPPFLAGS"
22118             CPPFLAGS="$CPPFLAGS $INCINTL"
22119             gt_save_LIBS="$LIBS"
22120             LIBS="$LIBS $LIBINTL"
22121                         cat >conftest.$ac_ext <<_ACEOF
22122 /* confdefs.h.  */
22123 _ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h.  */
22127 #include <libintl.h>
22128 extern int _nl_msg_cat_cntr;
22129 extern
22130 #ifdef __cplusplus
22131 "C"
22132 #endif
22133 const char *_nl_expand_alias (const char *);
22134 int
22135 main ()
22136 {
22137 bindtextdomain ("", "");
22138 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
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          test -z "$ac_c_werror_flag" ||
22158          test ! -s conftest.err
22159        } && test -s conftest$ac_exeext &&
22160        $as_test_x conftest$ac_exeext; then
22161   gt_cv_func_gnugettext1_libintl=yes
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166         gt_cv_func_gnugettext1_libintl=no
22167 fi
22168
22169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22170       conftest$ac_exeext conftest.$ac_ext
22171                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
22172               LIBS="$LIBS $LIBICONV"
22173               cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 #include <libintl.h>
22180 extern int _nl_msg_cat_cntr;
22181 extern
22182 #ifdef __cplusplus
22183 "C"
22184 #endif
22185 const char *_nl_expand_alias (const char *);
22186 int
22187 main ()
22188 {
22189 bindtextdomain ("", "");
22190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22191   ;
22192   return 0;
22193 }
22194 _ACEOF
22195 rm -f conftest.$ac_objext conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199   *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202   (eval "$ac_link") 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } && {
22209          test -z "$ac_c_werror_flag" ||
22210          test ! -s conftest.err
22211        } && test -s conftest$ac_exeext &&
22212        $as_test_x conftest$ac_exeext; then
22213   LIBINTL="$LIBINTL $LIBICONV"
22214                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22215                 gt_cv_func_gnugettext1_libintl=yes
22216
22217 else
22218   echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22220
22221
22222 fi
22223
22224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225       conftest$ac_exeext conftest.$ac_ext
22226             fi
22227             CPPFLAGS="$gt_save_CPPFLAGS"
22228             LIBS="$gt_save_LIBS"
22229 fi
22230 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22231 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
22232         fi
22233
22234                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22235            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22236                 && test "$PACKAGE" != gettext-runtime \
22237                 && test "$PACKAGE" != gettext-tools; }; then
22238           gt_use_preinstalled_gnugettext=yes
22239         else
22240                     LIBINTL=
22241           LTLIBINTL=
22242           INCINTL=
22243         fi
22244
22245
22246
22247     if test -n "$INTL_MACOSX_LIBS"; then
22248       if test "$gt_use_preinstalled_gnugettext" = "yes" \
22249          || test "$nls_cv_use_gnu_gettext" = "yes"; then
22250                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22251         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22252       fi
22253     fi
22254
22255     if test "$gt_use_preinstalled_gnugettext" = "yes" \
22256        || test "$nls_cv_use_gnu_gettext" = "yes"; then
22257
22258 cat >>confdefs.h <<\_ACEOF
22259 #define ENABLE_NLS 1
22260 _ACEOF
22261
22262     else
22263       USE_NLS=no
22264     fi
22265   fi
22266
22267   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
22268 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
22269   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
22270 echo "${ECHO_T}$USE_NLS" >&6; }
22271   if test "$USE_NLS" = "yes"; then
22272     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22273 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
22274     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22275       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22276         gt_source="external libintl"
22277       else
22278         gt_source="libc"
22279       fi
22280     else
22281       gt_source="included intl directory"
22282     fi
22283     { echo "$as_me:$LINENO: result: $gt_source" >&5
22284 echo "${ECHO_T}$gt_source" >&6; }
22285   fi
22286
22287   if test "$USE_NLS" = "yes"; then
22288
22289     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22290       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22291         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
22292 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
22293         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
22294 echo "${ECHO_T}$LIBINTL" >&6; }
22295
22296   for element in $INCINTL; do
22297     haveit=
22298     for x in $CPPFLAGS; do
22299
22300   acl_save_prefix="$prefix"
22301   prefix="$acl_final_prefix"
22302   acl_save_exec_prefix="$exec_prefix"
22303   exec_prefix="$acl_final_exec_prefix"
22304   eval x=\"$x\"
22305   exec_prefix="$acl_save_exec_prefix"
22306   prefix="$acl_save_prefix"
22307
22308       if test "X$x" = "X$element"; then
22309         haveit=yes
22310         break
22311       fi
22312     done
22313     if test -z "$haveit"; then
22314       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22315     fi
22316   done
22317
22318       fi
22319
22320
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_GETTEXT 1
22323 _ACEOF
22324
22325
22326 cat >>confdefs.h <<\_ACEOF
22327 #define HAVE_DCGETTEXT 1
22328 _ACEOF
22329
22330     fi
22331
22332         POSUB=po
22333   fi
22334
22335
22336
22337     INTLLIBS="$LIBINTL"
22338
22339
22340
22341
22342
22343
22344
22345 # Checks for header files.
22346 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22348 if test "${ac_cv_header_stdc+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 #include <stdlib.h>
22358 #include <stdarg.h>
22359 #include <string.h>
22360 #include <float.h>
22361
22362 int
22363 main ()
22364 {
22365
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374   *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377   (eval "$ac_compile") 2>conftest.er1
22378   ac_status=$?
22379   grep -v '^ *+' conftest.er1 >conftest.err
22380   rm -f conftest.er1
22381   cat conftest.err >&5
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } && {
22384          test -z "$ac_c_werror_flag" ||
22385          test ! -s conftest.err
22386        } && test -s conftest.$ac_objext; then
22387   ac_cv_header_stdc=yes
22388 else
22389   echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392         ac_cv_header_stdc=no
22393 fi
22394
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396
22397 if test $ac_cv_header_stdc = yes; then
22398   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22399   cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405 #include <string.h>
22406
22407 _ACEOF
22408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409   $EGREP "memchr" >/dev/null 2>&1; then
22410   :
22411 else
22412   ac_cv_header_stdc=no
22413 fi
22414 rm -f conftest*
22415
22416 fi
22417
22418 if test $ac_cv_header_stdc = yes; then
22419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22420   cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h.  */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h.  */
22426 #include <stdlib.h>
22427
22428 _ACEOF
22429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22430   $EGREP "free" >/dev/null 2>&1; then
22431   :
22432 else
22433   ac_cv_header_stdc=no
22434 fi
22435 rm -f conftest*
22436
22437 fi
22438
22439 if test $ac_cv_header_stdc = yes; then
22440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22441   if test "$cross_compiling" = yes; then
22442   :
22443 else
22444   cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 #include <ctype.h>
22451 #include <stdlib.h>
22452 #if ((' ' & 0x0FF) == 0x020)
22453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22455 #else
22456 # define ISLOWER(c) \
22457                    (('a' <= (c) && (c) <= 'i') \
22458                      || ('j' <= (c) && (c) <= 'r') \
22459                      || ('s' <= (c) && (c) <= 'z'))
22460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22461 #endif
22462
22463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22464 int
22465 main ()
22466 {
22467   int i;
22468   for (i = 0; i < 256; i++)
22469     if (XOR (islower (i), ISLOWER (i))
22470         || toupper (i) != TOUPPER (i))
22471       return 2;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_link") 2>&5
22483   ac_status=$?
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22486   { (case "(($ac_try" in
22487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488   *) ac_try_echo=$ac_try;;
22489 esac
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491   (eval "$ac_try") 2>&5
22492   ac_status=$?
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); }; }; then
22495   :
22496 else
22497   echo "$as_me: program exited with status $ac_status" >&5
22498 echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22500
22501 ( exit $ac_status )
22502 ac_cv_header_stdc=no
22503 fi
22504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22505 fi
22506
22507
22508 fi
22509 fi
22510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22512 if test $ac_cv_header_stdc = yes; then
22513
22514 cat >>confdefs.h <<\_ACEOF
22515 #define STDC_HEADERS 1
22516 _ACEOF
22517
22518 fi
22519
22520
22521
22522 for ac_header in stdlib.h locale.h
22523 do
22524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22526   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22529   echo $ECHO_N "(cached) $ECHO_C" >&6
22530 fi
22531 ac_res=`eval echo '${'$as_ac_Header'}'`
22532                { echo "$as_me:$LINENO: result: $ac_res" >&5
22533 echo "${ECHO_T}$ac_res" >&6; }
22534 else
22535   # Is the header compilable?
22536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h.  */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h.  */
22544 $ac_includes_default
22545 #include <$ac_header>
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551   *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554   (eval "$ac_compile") 2>conftest.er1
22555   ac_status=$?
22556   grep -v '^ *+' conftest.er1 >conftest.err
22557   rm -f conftest.er1
22558   cat conftest.err >&5
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } && {
22561          test -z "$ac_c_werror_flag" ||
22562          test ! -s conftest.err
22563        } && test -s conftest.$ac_objext; then
22564   ac_header_compiler=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569         ac_header_compiler=no
22570 fi
22571
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22574 echo "${ECHO_T}$ac_header_compiler" >&6; }
22575
22576 # Is the header present?
22577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 #include <$ac_header>
22586 _ACEOF
22587 if { (ac_try="$ac_cpp conftest.$ac_ext"
22588 case "(($ac_try" in
22589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590   *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22594   ac_status=$?
22595   grep -v '^ *+' conftest.er1 >conftest.err
22596   rm -f conftest.er1
22597   cat conftest.err >&5
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); } >/dev/null && {
22600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22601          test ! -s conftest.err
22602        }; then
22603   ac_header_preproc=yes
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608   ac_header_preproc=no
22609 fi
22610
22611 rm -f conftest.err conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22613 echo "${ECHO_T}$ac_header_preproc" >&6; }
22614
22615 # So?  What about this header?
22616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22617   yes:no: )
22618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22622     ac_header_preproc=yes
22623     ;;
22624   no:yes:* )
22625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22627     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22628 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22629     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22631     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22632 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22635     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22637     ( cat <<\_ASBOX
22638 ## ---------------------------------- ##
22639 ## Report this to bug-gnupg@gnupg.org ##
22640 ## ---------------------------------- ##
22641 _ASBOX
22642      ) | sed "s/^/$as_me: WARNING:     /" >&2
22643     ;;
22644 esac
22645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650   eval "$as_ac_Header=\$ac_header_preproc"
22651 fi
22652 ac_res=`eval echo '${'$as_ac_Header'}'`
22653                { echo "$as_me:$LINENO: result: $ac_res" >&5
22654 echo "${ECHO_T}$ac_res" >&6; }
22655
22656 fi
22657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22658   cat >>confdefs.h <<_ACEOF
22659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22660 _ACEOF
22661
22662 fi
22663
22664 done
22665
22666 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
22667 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
22668 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
22669   echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671   cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677 $ac_includes_default
22678 int
22679 main ()
22680 {
22681 #ifndef strerror_r
22682   (void) strerror_r;
22683 #endif
22684
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693   *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696   (eval "$ac_compile") 2>conftest.er1
22697   ac_status=$?
22698   grep -v '^ *+' conftest.er1 >conftest.err
22699   rm -f conftest.er1
22700   cat conftest.err >&5
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); } && {
22703          test -z "$ac_c_werror_flag" ||
22704          test ! -s conftest.err
22705        } && test -s conftest.$ac_objext; then
22706   ac_cv_have_decl_strerror_r=yes
22707 else
22708   echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711         ac_cv_have_decl_strerror_r=no
22712 fi
22713
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 fi
22716 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
22717 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
22718 if test $ac_cv_have_decl_strerror_r = yes; then
22719
22720 cat >>confdefs.h <<_ACEOF
22721 #define HAVE_DECL_STRERROR_R 1
22722 _ACEOF
22723
22724
22725 else
22726   cat >>confdefs.h <<_ACEOF
22727 #define HAVE_DECL_STRERROR_R 0
22728 _ACEOF
22729
22730
22731 fi
22732
22733
22734
22735 for ac_func in strerror_r
22736 do
22737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22741   echo $ECHO_N "(cached) $ECHO_C" >&6
22742 else
22743   cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h.  */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h.  */
22749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22751 #define $ac_func innocuous_$ac_func
22752
22753 /* System header to define __stub macros and hopefully few prototypes,
22754     which can conflict with char $ac_func (); below.
22755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22756     <limits.h> exists even on freestanding compilers.  */
22757
22758 #ifdef __STDC__
22759 # include <limits.h>
22760 #else
22761 # include <assert.h>
22762 #endif
22763
22764 #undef $ac_func
22765
22766 /* Override any GCC internal prototype to avoid an error.
22767    Use char because int might match the return type of a GCC
22768    builtin and then its argument prototype would still apply.  */
22769 #ifdef __cplusplus
22770 extern "C"
22771 #endif
22772 char $ac_func ();
22773 /* The GNU C library defines this for functions which it implements
22774     to always fail with ENOSYS.  Some functions are actually named
22775     something starting with __ and the normal name is an alias.  */
22776 #if defined __stub_$ac_func || defined __stub___$ac_func
22777 choke me
22778 #endif
22779
22780 int
22781 main ()
22782 {
22783 return $ac_func ();
22784   ;
22785   return 0;
22786 }
22787 _ACEOF
22788 rm -f conftest.$ac_objext conftest$ac_exeext
22789 if { (ac_try="$ac_link"
22790 case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_link") 2>conftest.er1
22796   ac_status=$?
22797   grep -v '^ *+' conftest.er1 >conftest.err
22798   rm -f conftest.er1
22799   cat conftest.err >&5
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } && {
22802          test -z "$ac_c_werror_flag" ||
22803          test ! -s conftest.err
22804        } && test -s conftest$ac_exeext &&
22805        $as_test_x conftest$ac_exeext; then
22806   eval "$as_ac_var=yes"
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811         eval "$as_ac_var=no"
22812 fi
22813
22814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22815       conftest$ac_exeext conftest.$ac_ext
22816 fi
22817 ac_res=`eval echo '${'$as_ac_var'}'`
22818                { echo "$as_me:$LINENO: result: $ac_res" >&5
22819 echo "${ECHO_T}$ac_res" >&6; }
22820 if test `eval echo '${'$as_ac_var'}'` = yes; then
22821   cat >>confdefs.h <<_ACEOF
22822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22823 _ACEOF
22824
22825 fi
22826 done
22827
22828 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
22829 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
22830 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833
22834     ac_cv_func_strerror_r_char_p=no
22835     if test $ac_cv_have_decl_strerror_r = yes; then
22836       cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 $ac_includes_default
22843 int
22844 main ()
22845 {
22846
22847           char buf[100];
22848           char x = *strerror_r (0, buf, sizeof buf);
22849           char *p = strerror_r (0, buf, sizeof buf);
22850           return !p || x;
22851
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_compile") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_c_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest.$ac_objext; then
22873   ac_cv_func_strerror_r_char_p=yes
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882     else
22883       # strerror_r is not declared.  Choose between
22884       # systems that have relatively inaccessible declarations for the
22885       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
22886       # former has a strerror_r that returns char*, while the latter
22887       # has a strerror_r that returns `int'.
22888       # This test should segfault on the DEC system.
22889       if test "$cross_compiling" = yes; then
22890   :
22891 else
22892   cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h.  */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h.  */
22898 $ac_includes_default
22899         extern char *strerror_r ();
22900 int
22901 main ()
22902 {
22903 char buf[100];
22904           char x = *strerror_r (0, buf, sizeof buf);
22905           return ! isalpha (x);
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914   *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917   (eval "$ac_link") 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921   { (case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_try") 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; }; then
22930   ac_cv_func_strerror_r_char_p=yes
22931 else
22932   echo "$as_me: program exited with status $ac_status" >&5
22933 echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936 fi
22937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22938 fi
22939
22940
22941     fi
22942
22943 fi
22944 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
22945 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
22946 if test $ac_cv_func_strerror_r_char_p = yes; then
22947
22948 cat >>confdefs.h <<\_ACEOF
22949 #define STRERROR_R_CHAR_P 1
22950 _ACEOF
22951
22952 fi
22953
22954 case "${host_os}" in
22955      solaris*)
22956      # All versions of Solaris from 2.4 have a thread-safe strerror().
22957      # Since Solaris 10, in addition strerror_r() exists.
22958      ;;
22959      *)
22960      { echo "$as_me:$LINENO: checking for strerror_r" >&5
22961 echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6; }
22962 if test "${ac_cv_func_strerror_r+set}" = set; then
22963   echo $ECHO_N "(cached) $ECHO_C" >&6
22964 else
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
22972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22973 #define strerror_r innocuous_strerror_r
22974
22975 /* System header to define __stub macros and hopefully few prototypes,
22976     which can conflict with char strerror_r (); below.
22977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22978     <limits.h> exists even on freestanding compilers.  */
22979
22980 #ifdef __STDC__
22981 # include <limits.h>
22982 #else
22983 # include <assert.h>
22984 #endif
22985
22986 #undef strerror_r
22987
22988 /* Override any GCC internal prototype to avoid an error.
22989    Use char because int might match the return type of a GCC
22990    builtin and then its argument prototype would still apply.  */
22991 #ifdef __cplusplus
22992 extern "C"
22993 #endif
22994 char strerror_r ();
22995 /* The GNU C library defines this for functions which it implements
22996     to always fail with ENOSYS.  Some functions are actually named
22997     something starting with __ and the normal name is an alias.  */
22998 #if defined __stub_strerror_r || defined __stub___strerror_r
22999 choke me
23000 #endif
23001
23002 int
23003 main ()
23004 {
23005 return strerror_r ();
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_link") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && {
23024          test -z "$ac_c_werror_flag" ||
23025          test ! -s conftest.err
23026        } && test -s conftest$ac_exeext &&
23027        $as_test_x conftest$ac_exeext; then
23028   ac_cv_func_strerror_r=yes
23029 else
23030   echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033         ac_cv_func_strerror_r=no
23034 fi
23035
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037       conftest$ac_exeext conftest.$ac_ext
23038 fi
23039 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
23040 echo "${ECHO_T}$ac_cv_func_strerror_r" >&6; }
23041 if test $ac_cv_func_strerror_r = yes; then
23042   :
23043 else
23044   { echo "$as_me:$LINENO: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&5
23045 echo "$as_me: WARNING: Without strerror_r, gpg_strerror_r might not be thread-safe" >&2;}
23046 fi
23047
23048      ;;
23049 esac
23050
23051 # Checks for typedefs, structures, and compiler characteristics.
23052 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23053 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23054 if test "${ac_cv_c_const+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063
23064 int
23065 main ()
23066 {
23067 /* FIXME: Include the comments suggested by Paul. */
23068 #ifndef __cplusplus
23069   /* Ultrix mips cc rejects this.  */
23070   typedef int charset[2];
23071   const charset cs;
23072   /* SunOS 4.1.1 cc rejects this.  */
23073   char const *const *pcpcc;
23074   char **ppc;
23075   /* NEC SVR4.0.2 mips cc rejects this.  */
23076   struct point {int x, y;};
23077   static struct point const zero = {0,0};
23078   /* AIX XL C 1.02.0.0 rejects this.
23079      It does not let you subtract one const X* pointer from another in
23080      an arm of an if-expression whose if-part is not a constant
23081      expression */
23082   const char *g = "string";
23083   pcpcc = &g + (g ? g-g : 0);
23084   /* HPUX 7.0 cc rejects these. */
23085   ++pcpcc;
23086   ppc = (char**) pcpcc;
23087   pcpcc = (char const *const *) ppc;
23088   { /* SCO 3.2v4 cc rejects this.  */
23089     char *t;
23090     char const *s = 0 ? (char *) 0 : (char const *) 0;
23091
23092     *t++ = 0;
23093     if (s) return 0;
23094   }
23095   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23096     int x[] = {25, 17};
23097     const int *foo = &x[0];
23098     ++foo;
23099   }
23100   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23101     typedef const int *iptr;
23102     iptr p = 0;
23103     ++p;
23104   }
23105   { /* AIX XL C 1.02.0.0 rejects this saying
23106        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23107     struct s { int j; const int *ap[3]; };
23108     struct s *b; b->j = 5;
23109   }
23110   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23111     const int foo = 10;
23112     if (!foo) return 0;
23113   }
23114   return !cs[0] && !zero.x;
23115 #endif
23116
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_compile") 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } && {
23135          test -z "$ac_c_werror_flag" ||
23136          test ! -s conftest.err
23137        } && test -s conftest.$ac_objext; then
23138   ac_cv_c_const=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143         ac_cv_c_const=no
23144 fi
23145
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 fi
23148 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23149 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23150 if test $ac_cv_c_const = no; then
23151
23152 cat >>confdefs.h <<\_ACEOF
23153 #define const
23154 _ACEOF
23155
23156 fi
23157
23158
23159 # Substitution used for gpg-error-config
23160 GPG_ERROR_CONFIG_LIBS="-lgpg-error"
23161 GPG_ERROR_CONFIG_CFLAGS=""
23162
23163
23164 ac_config_files="$ac_config_files src/gpg-error-config"
23165
23166
23167
23168 # Special defines for certain platforms
23169 if test "$have_w32_system" = yes; then
23170
23171 cat >>confdefs.h <<\_ACEOF
23172 #define HAVE_W32_SYSTEM 1
23173 _ACEOF
23174
23175     BUILD_TIMESTAMP=`date --iso-8601=minutes`
23176
23177         BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
23178         case "$VERSION" in
23179       *-svn*) BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
23180       *-cvs)  BUILD_FILEVERSION="${BUILD_FILEVERSION}0,0" ;;
23181       *-rc*)  BUILD_FILEVERSION="${BUILD_FILEVERSION}0,1" ;;
23182       *)      BUILD_FILEVERSION="${BUILD_FILEVERSION}0,2" ;;
23183     esac
23184 fi
23185
23186
23187  if test "$have_w32_system" = yes; then
23188   HAVE_W32_SYSTEM_TRUE=
23189   HAVE_W32_SYSTEM_FALSE='#'
23190 else
23191   HAVE_W32_SYSTEM_TRUE='#'
23192   HAVE_W32_SYSTEM_FALSE=
23193 fi
23194
23195
23196
23197 # Check whether --enable-languages was given.
23198 if test "${enable_languages+set}" = set; then
23199   enableval=$enable_languages;
23200 fi
23201
23202  if test "x$enable_languages" != xno; then
23203   LANGUAGES_SOME_TRUE=
23204   LANGUAGES_SOME_FALSE='#'
23205 else
23206   LANGUAGES_SOME_TRUE='#'
23207   LANGUAGES_SOME_FALSE=
23208 fi
23209
23210
23211
23212
23213 # Substitution
23214 ac_config_files="$ac_config_files Makefile"
23215
23216 ac_config_files="$ac_config_files po/Makefile.in m4/Makefile"
23217
23218 ac_config_files="$ac_config_files src/Makefile tests/Makefile"
23219
23220 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd"
23221
23222 ac_config_files="$ac_config_files src/versioninfo.rc"
23223
23224
23225 cat >confcache <<\_ACEOF
23226 # This file is a shell script that caches the results of configure
23227 # tests run on this system so they can be shared between configure
23228 # scripts and configure runs, see configure's option --config-cache.
23229 # It is not useful on other systems.  If it contains results you don't
23230 # want to keep, you may remove or edit it.
23231 #
23232 # config.status only pays attention to the cache file if you give it
23233 # the --recheck option to rerun configure.
23234 #
23235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23237 # following values.
23238
23239 _ACEOF
23240
23241 # The following way of writing the cache mishandles newlines in values,
23242 # but we know of no workaround that is simple, portable, and efficient.
23243 # So, we kill variables containing newlines.
23244 # Ultrix sh set writes to stderr and can't be redirected directly,
23245 # and sets the high bit in the cache file unless we assign to the vars.
23246 (
23247   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23248     eval ac_val=\$$ac_var
23249     case $ac_val in #(
23250     *${as_nl}*)
23251       case $ac_var in #(
23252       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23254       esac
23255       case $ac_var in #(
23256       _ | IFS | as_nl) ;; #(
23257       *) $as_unset $ac_var ;;
23258       esac ;;
23259     esac
23260   done
23261
23262   (set) 2>&1 |
23263     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23264     *${as_nl}ac_space=\ *)
23265       # `set' does not quote correctly, so add quotes (double-quote
23266       # substitution turns \\\\ into \\, and sed turns \\ into \).
23267       sed -n \
23268         "s/'/'\\\\''/g;
23269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23270       ;; #(
23271     *)
23272       # `set' quotes correctly as required by POSIX, so do not add quotes.
23273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23274       ;;
23275     esac |
23276     sort
23277 ) |
23278   sed '
23279      /^ac_cv_env_/b end
23280      t clear
23281      :clear
23282      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23283      t end
23284      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23285      :end' >>confcache
23286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23287   if test -w "$cache_file"; then
23288     test "x$cache_file" != "x/dev/null" &&
23289       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23290 echo "$as_me: updating cache $cache_file" >&6;}
23291     cat confcache >$cache_file
23292   else
23293     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23295   fi
23296 fi
23297 rm -f confcache
23298
23299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23300 # Let make expand exec_prefix.
23301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23302
23303 DEFS=-DHAVE_CONFIG_H
23304
23305 ac_libobjs=
23306 ac_ltlibobjs=
23307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23308   # 1. Remove the extension, and $U if already installed.
23309   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23310   ac_i=`echo "$ac_i" | sed "$ac_script"`
23311   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23312   #    will be set to the directory where LIBOBJS objects are built.
23313   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23314   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23315 done
23316 LIBOBJS=$ac_libobjs
23317
23318 LTLIBOBJS=$ac_ltlibobjs
23319
23320
23321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23322   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23323 Usually this means the macro was only invoked conditionally." >&5
23324 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23325 Usually this means the macro was only invoked conditionally." >&2;}
23326    { (exit 1); exit 1; }; }
23327 fi
23328 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23329   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23330 Usually this means the macro was only invoked conditionally." >&5
23331 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23332 Usually this means the macro was only invoked conditionally." >&2;}
23333    { (exit 1); exit 1; }; }
23334 fi
23335 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23336   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23337 Usually this means the macro was only invoked conditionally." >&5
23338 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23339 Usually this means the macro was only invoked conditionally." >&2;}
23340    { (exit 1); exit 1; }; }
23341 fi
23342 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23343   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23344 Usually this means the macro was only invoked conditionally." >&5
23345 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23346 Usually this means the macro was only invoked conditionally." >&2;}
23347    { (exit 1); exit 1; }; }
23348 fi
23349 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
23350   { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
23351 Usually this means the macro was only invoked conditionally." >&5
23352 echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
23353 Usually this means the macro was only invoked conditionally." >&2;}
23354    { (exit 1); exit 1; }; }
23355 fi
23356 if test -z "${LANGUAGES_SOME_TRUE}" && test -z "${LANGUAGES_SOME_FALSE}"; then
23357   { { echo "$as_me:$LINENO: error: conditional \"LANGUAGES_SOME\" was never defined.
23358 Usually this means the macro was only invoked conditionally." >&5
23359 echo "$as_me: error: conditional \"LANGUAGES_SOME\" was never defined.
23360 Usually this means the macro was only invoked conditionally." >&2;}
23361    { (exit 1); exit 1; }; }
23362 fi
23363
23364 : ${CONFIG_STATUS=./config.status}
23365 ac_clean_files_save=$ac_clean_files
23366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23369 cat >$CONFIG_STATUS <<_ACEOF
23370 #! $SHELL
23371 # Generated by $as_me.
23372 # Run this file to recreate the current configuration.
23373 # Compiler output produced by configure, useful for debugging
23374 # configure, is in config.log if it exists.
23375
23376 debug=false
23377 ac_cs_recheck=false
23378 ac_cs_silent=false
23379 SHELL=\${CONFIG_SHELL-$SHELL}
23380 _ACEOF
23381
23382 cat >>$CONFIG_STATUS <<\_ACEOF
23383 ## --------------------- ##
23384 ## M4sh Initialization.  ##
23385 ## --------------------- ##
23386
23387 # Be more Bourne compatible
23388 DUALCASE=1; export DUALCASE # for MKS sh
23389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23390   emulate sh
23391   NULLCMD=:
23392   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23393   # is contrary to our usage.  Disable this feature.
23394   alias -g '${1+"$@"}'='"$@"'
23395   setopt NO_GLOB_SUBST
23396 else
23397   case `(set -o) 2>/dev/null` in
23398   *posix*) set -o posix ;;
23399 esac
23400
23401 fi
23402
23403
23404
23405
23406 # PATH needs CR
23407 # Avoid depending upon Character Ranges.
23408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23411 as_cr_digits='0123456789'
23412 as_cr_alnum=$as_cr_Letters$as_cr_digits
23413
23414 # The user is always right.
23415 if test "${PATH_SEPARATOR+set}" != set; then
23416   echo "#! /bin/sh" >conf$$.sh
23417   echo  "exit 0"   >>conf$$.sh
23418   chmod +x conf$$.sh
23419   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23420     PATH_SEPARATOR=';'
23421   else
23422     PATH_SEPARATOR=:
23423   fi
23424   rm -f conf$$.sh
23425 fi
23426
23427 # Support unset when possible.
23428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23429   as_unset=unset
23430 else
23431   as_unset=false
23432 fi
23433
23434
23435 # IFS
23436 # We need space, tab and new line, in precisely that order.  Quoting is
23437 # there to prevent editors from complaining about space-tab.
23438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23439 # splitting by setting IFS to empty value.)
23440 as_nl='
23441 '
23442 IFS=" ""        $as_nl"
23443
23444 # Find who we are.  Look in the path if we contain no directory separator.
23445 case $0 in
23446   *[\\/]* ) as_myself=$0 ;;
23447   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23448 for as_dir in $PATH
23449 do
23450   IFS=$as_save_IFS
23451   test -z "$as_dir" && as_dir=.
23452   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23453 done
23454 IFS=$as_save_IFS
23455
23456      ;;
23457 esac
23458 # We did not find ourselves, most probably we were run as `sh COMMAND'
23459 # in which case we are not to be found in the path.
23460 if test "x$as_myself" = x; then
23461   as_myself=$0
23462 fi
23463 if test ! -f "$as_myself"; then
23464   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23465   { (exit 1); exit 1; }
23466 fi
23467
23468 # Work around bugs in pre-3.0 UWIN ksh.
23469 for as_var in ENV MAIL MAILPATH
23470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23471 done
23472 PS1='$ '
23473 PS2='> '
23474 PS4='+ '
23475
23476 # NLS nuisances.
23477 for as_var in \
23478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23480   LC_TELEPHONE LC_TIME
23481 do
23482   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23483     eval $as_var=C; export $as_var
23484   else
23485     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23486   fi
23487 done
23488
23489 # Required to use basename.
23490 if expr a : '\(a\)' >/dev/null 2>&1 &&
23491    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23492   as_expr=expr
23493 else
23494   as_expr=false
23495 fi
23496
23497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23498   as_basename=basename
23499 else
23500   as_basename=false
23501 fi
23502
23503
23504 # Name of the executable.
23505 as_me=`$as_basename -- "$0" ||
23506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23507          X"$0" : 'X\(//\)$' \| \
23508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23509 echo X/"$0" |
23510     sed '/^.*\/\([^/][^/]*\)\/*$/{
23511             s//\1/
23512             q
23513           }
23514           /^X\/\(\/\/\)$/{
23515             s//\1/
23516             q
23517           }
23518           /^X\/\(\/\).*/{
23519             s//\1/
23520             q
23521           }
23522           s/.*/./; q'`
23523
23524 # CDPATH.
23525 $as_unset CDPATH
23526
23527
23528
23529   as_lineno_1=$LINENO
23530   as_lineno_2=$LINENO
23531   test "x$as_lineno_1" != "x$as_lineno_2" &&
23532   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23533
23534   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23535   # uniformly replaced by the line number.  The first 'sed' inserts a
23536   # line-number line after each line using $LINENO; the second 'sed'
23537   # does the real work.  The second script uses 'N' to pair each
23538   # line-number line with the line containing $LINENO, and appends
23539   # trailing '-' during substitution so that $LINENO is not a special
23540   # case at line end.
23541   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23542   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23543   # E. McMahon (1931-1989) for sed's syntax.  :-)
23544   sed -n '
23545     p
23546     /[$]LINENO/=
23547   ' <$as_myself |
23548     sed '
23549       s/[$]LINENO.*/&-/
23550       t lineno
23551       b
23552       :lineno
23553       N
23554       :loop
23555       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23556       t loop
23557       s/-\n.*//
23558     ' >$as_me.lineno &&
23559   chmod +x "$as_me.lineno" ||
23560     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23561    { (exit 1); exit 1; }; }
23562
23563   # Don't try to exec as it changes $[0], causing all sort of problems
23564   # (the dirname of $[0] is not the place where we might find the
23565   # original and so on.  Autoconf is especially sensitive to this).
23566   . "./$as_me.lineno"
23567   # Exit status is that of the last command.
23568   exit
23569 }
23570
23571
23572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23573   as_dirname=dirname
23574 else
23575   as_dirname=false
23576 fi
23577
23578 ECHO_C= ECHO_N= ECHO_T=
23579 case `echo -n x` in
23580 -n*)
23581   case `echo 'x\c'` in
23582   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23583   *)   ECHO_C='\c';;
23584   esac;;
23585 *)
23586   ECHO_N='-n';;
23587 esac
23588
23589 if expr a : '\(a\)' >/dev/null 2>&1 &&
23590    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23591   as_expr=expr
23592 else
23593   as_expr=false
23594 fi
23595
23596 rm -f conf$$ conf$$.exe conf$$.file
23597 if test -d conf$$.dir; then
23598   rm -f conf$$.dir/conf$$.file
23599 else
23600   rm -f conf$$.dir
23601   mkdir conf$$.dir
23602 fi
23603 echo >conf$$.file
23604 if ln -s conf$$.file conf$$ 2>/dev/null; then
23605   as_ln_s='ln -s'
23606   # ... but there are two gotchas:
23607   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23608   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23609   # In both cases, we have to default to `cp -p'.
23610   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23611     as_ln_s='cp -p'
23612 elif ln conf$$.file conf$$ 2>/dev/null; then
23613   as_ln_s=ln
23614 else
23615   as_ln_s='cp -p'
23616 fi
23617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23618 rmdir conf$$.dir 2>/dev/null
23619
23620 if mkdir -p . 2>/dev/null; then
23621   as_mkdir_p=:
23622 else
23623   test -d ./-p && rmdir ./-p
23624   as_mkdir_p=false
23625 fi
23626
23627 if test -x / >/dev/null 2>&1; then
23628   as_test_x='test -x'
23629 else
23630   if ls -dL / >/dev/null 2>&1; then
23631     as_ls_L_option=L
23632   else
23633     as_ls_L_option=
23634   fi
23635   as_test_x='
23636     eval sh -c '\''
23637       if test -d "$1"; then
23638         test -d "$1/.";
23639       else
23640         case $1 in
23641         -*)set "./$1";;
23642         esac;
23643         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23644         ???[sx]*):;;*)false;;esac;fi
23645     '\'' sh
23646   '
23647 fi
23648 as_executable_p=$as_test_x
23649
23650 # Sed expression to map a string onto a valid CPP name.
23651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23652
23653 # Sed expression to map a string onto a valid variable name.
23654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23655
23656
23657 exec 6>&1
23658
23659 # Save the log message, to keep $[0] and so on meaningful, and to
23660 # report actual input values of CONFIG_FILES etc. instead of their
23661 # values after options handling.
23662 ac_log="
23663 This file was extended by libgpg-error $as_me 1.7, which was
23664 generated by GNU Autoconf 2.61.  Invocation command line was
23665
23666   CONFIG_FILES    = $CONFIG_FILES
23667   CONFIG_HEADERS  = $CONFIG_HEADERS
23668   CONFIG_LINKS    = $CONFIG_LINKS
23669   CONFIG_COMMANDS = $CONFIG_COMMANDS
23670   $ $0 $@
23671
23672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23673 "
23674
23675 _ACEOF
23676
23677 cat >>$CONFIG_STATUS <<_ACEOF
23678 # Files that config.status was made for.
23679 config_files="$ac_config_files"
23680 config_headers="$ac_config_headers"
23681 config_commands="$ac_config_commands"
23682
23683 _ACEOF
23684
23685 cat >>$CONFIG_STATUS <<\_ACEOF
23686 ac_cs_usage="\
23687 \`$as_me' instantiates files from templates according to the
23688 current configuration.
23689
23690 Usage: $0 [OPTIONS] [FILE]...
23691
23692   -h, --help       print this help, then exit
23693   -V, --version    print version number and configuration settings, then exit
23694   -q, --quiet      do not print progress messages
23695   -d, --debug      don't remove temporary files
23696       --recheck    update $as_me by reconfiguring in the same conditions
23697   --file=FILE[:TEMPLATE]
23698                    instantiate the configuration file FILE
23699   --header=FILE[:TEMPLATE]
23700                    instantiate the configuration header FILE
23701
23702 Configuration files:
23703 $config_files
23704
23705 Configuration headers:
23706 $config_headers
23707
23708 Configuration commands:
23709 $config_commands
23710
23711 Report bugs to <bug-autoconf@gnu.org>."
23712
23713 _ACEOF
23714 cat >>$CONFIG_STATUS <<_ACEOF
23715 ac_cs_version="\\
23716 libgpg-error config.status 1.7
23717 configured by $0, generated by GNU Autoconf 2.61,
23718   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23719
23720 Copyright (C) 2006 Free Software Foundation, Inc.
23721 This config.status script is free software; the Free Software Foundation
23722 gives unlimited permission to copy, distribute and modify it."
23723
23724 ac_pwd='$ac_pwd'
23725 srcdir='$srcdir'
23726 INSTALL='$INSTALL'
23727 MKDIR_P='$MKDIR_P'
23728 _ACEOF
23729
23730 cat >>$CONFIG_STATUS <<\_ACEOF
23731 # If no file are specified by the user, then we need to provide default
23732 # value.  By we need to know if files were specified by the user.
23733 ac_need_defaults=:
23734 while test $# != 0
23735 do
23736   case $1 in
23737   --*=*)
23738     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23739     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23740     ac_shift=:
23741     ;;
23742   *)
23743     ac_option=$1
23744     ac_optarg=$2
23745     ac_shift=shift
23746     ;;
23747   esac
23748
23749   case $ac_option in
23750   # Handling of the options.
23751   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23752     ac_cs_recheck=: ;;
23753   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23754     echo "$ac_cs_version"; exit ;;
23755   --debug | --debu | --deb | --de | --d | -d )
23756     debug=: ;;
23757   --file | --fil | --fi | --f )
23758     $ac_shift
23759     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23760     ac_need_defaults=false;;
23761   --header | --heade | --head | --hea )
23762     $ac_shift
23763     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23764     ac_need_defaults=false;;
23765   --he | --h)
23766     # Conflict between --help and --header
23767     { echo "$as_me: error: ambiguous option: $1
23768 Try \`$0 --help' for more information." >&2
23769    { (exit 1); exit 1; }; };;
23770   --help | --hel | -h )
23771     echo "$ac_cs_usage"; exit ;;
23772   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23773   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23774     ac_cs_silent=: ;;
23775
23776   # This is an error.
23777   -*) { echo "$as_me: error: unrecognized option: $1
23778 Try \`$0 --help' for more information." >&2
23779    { (exit 1); exit 1; }; } ;;
23780
23781   *) ac_config_targets="$ac_config_targets $1"
23782      ac_need_defaults=false ;;
23783
23784   esac
23785   shift
23786 done
23787
23788 ac_configure_extra_args=
23789
23790 if $ac_cs_silent; then
23791   exec 6>/dev/null
23792   ac_configure_extra_args="$ac_configure_extra_args --silent"
23793 fi
23794
23795 _ACEOF
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797 if \$ac_cs_recheck; then
23798   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23799   CONFIG_SHELL=$SHELL
23800   export CONFIG_SHELL
23801   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23802 fi
23803
23804 _ACEOF
23805 cat >>$CONFIG_STATUS <<\_ACEOF
23806 exec 5>>config.log
23807 {
23808   echo
23809   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23810 ## Running $as_me. ##
23811 _ASBOX
23812   echo "$ac_log"
23813 } >&5
23814
23815 _ACEOF
23816 cat >>$CONFIG_STATUS <<_ACEOF
23817 #
23818 # INIT-COMMANDS
23819 #
23820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23821 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23822     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23823     # from automake < 1.5.
23824     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23825     # Capture the value of LINGUAS because we need it to compute CATALOGS.
23826     LINGUAS="${LINGUAS-%UNSET%}"
23827
23828
23829 _ACEOF
23830
23831 cat >>$CONFIG_STATUS <<\_ACEOF
23832
23833 # Handling of arguments.
23834 for ac_config_target in $ac_config_targets
23835 do
23836   case $ac_config_target in
23837     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23838     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23839     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23840     "src/gpg-error-config") CONFIG_FILES="$CONFIG_FILES src/gpg-error-config" ;;
23841     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23842     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23843     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23844     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23845     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23846     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
23847     "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
23848     "lang/cl/gpg-error.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpg-error.asd" ;;
23849     "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
23850
23851   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23853    { (exit 1); exit 1; }; };;
23854   esac
23855 done
23856
23857
23858 # If the user did not use the arguments to specify the items to instantiate,
23859 # then the envvar interface is used.  Set only those that are not.
23860 # We use the long form for the default assignment because of an extremely
23861 # bizarre bug on SunOS 4.1.3.
23862 if $ac_need_defaults; then
23863   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23864   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23865   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23866 fi
23867
23868 # Have a temporary directory for convenience.  Make it in the build tree
23869 # simply because there is no reason against having it here, and in addition,
23870 # creating and moving files from /tmp can sometimes cause problems.
23871 # Hook for its removal unless debugging.
23872 # Note that there is a small window in which the directory will not be cleaned:
23873 # after its creation but before its name has been assigned to `$tmp'.
23874 $debug ||
23875 {
23876   tmp=
23877   trap 'exit_status=$?
23878   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23879 ' 0
23880   trap '{ (exit 1); exit 1; }' 1 2 13 15
23881 }
23882 # Create a (secure) tmp directory for tmp files.
23883
23884 {
23885   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23886   test -n "$tmp" && test -d "$tmp"
23887 }  ||
23888 {
23889   tmp=./conf$$-$RANDOM
23890   (umask 077 && mkdir "$tmp")
23891 } ||
23892 {
23893    echo "$me: cannot create a temporary directory in ." >&2
23894    { (exit 1); exit 1; }
23895 }
23896
23897 #
23898 # Set up the sed scripts for CONFIG_FILES section.
23899 #
23900
23901 # No need to generate the scripts if there are no CONFIG_FILES.
23902 # This happens for instance when ./config.status config.h
23903 if test -n "$CONFIG_FILES"; then
23904
23905 _ACEOF
23906
23907
23908
23909 ac_delim='%!_!# '
23910 for ac_last_try in false false false false false :; do
23911   cat >conf$$subs.sed <<_ACEOF
23912 SHELL!$SHELL$ac_delim
23913 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23914 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23915 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23916 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23917 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23918 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23919 exec_prefix!$exec_prefix$ac_delim
23920 prefix!$prefix$ac_delim
23921 program_transform_name!$program_transform_name$ac_delim
23922 bindir!$bindir$ac_delim
23923 sbindir!$sbindir$ac_delim
23924 libexecdir!$libexecdir$ac_delim
23925 datarootdir!$datarootdir$ac_delim
23926 datadir!$datadir$ac_delim
23927 sysconfdir!$sysconfdir$ac_delim
23928 sharedstatedir!$sharedstatedir$ac_delim
23929 localstatedir!$localstatedir$ac_delim
23930 includedir!$includedir$ac_delim
23931 oldincludedir!$oldincludedir$ac_delim
23932 docdir!$docdir$ac_delim
23933 infodir!$infodir$ac_delim
23934 htmldir!$htmldir$ac_delim
23935 dvidir!$dvidir$ac_delim
23936 pdfdir!$pdfdir$ac_delim
23937 psdir!$psdir$ac_delim
23938 libdir!$libdir$ac_delim
23939 localedir!$localedir$ac_delim
23940 mandir!$mandir$ac_delim
23941 DEFS!$DEFS$ac_delim
23942 ECHO_C!$ECHO_C$ac_delim
23943 ECHO_N!$ECHO_N$ac_delim
23944 ECHO_T!$ECHO_T$ac_delim
23945 LIBS!$LIBS$ac_delim
23946 build_alias!$build_alias$ac_delim
23947 host_alias!$host_alias$ac_delim
23948 target_alias!$target_alias$ac_delim
23949 LIBGPG_ERROR_LT_CURRENT!$LIBGPG_ERROR_LT_CURRENT$ac_delim
23950 LIBGPG_ERROR_LT_AGE!$LIBGPG_ERROR_LT_AGE$ac_delim
23951 LIBGPG_ERROR_LT_REVISION!$LIBGPG_ERROR_LT_REVISION$ac_delim
23952 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23953 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23954 INSTALL_DATA!$INSTALL_DATA$ac_delim
23955 am__isrc!$am__isrc$ac_delim
23956 CYGPATH_W!$CYGPATH_W$ac_delim
23957 PACKAGE!$PACKAGE$ac_delim
23958 VERSION!$VERSION$ac_delim
23959 ACLOCAL!$ACLOCAL$ac_delim
23960 AUTOCONF!$AUTOCONF$ac_delim
23961 AUTOMAKE!$AUTOMAKE$ac_delim
23962 AUTOHEADER!$AUTOHEADER$ac_delim
23963 MAKEINFO!$MAKEINFO$ac_delim
23964 install_sh!$install_sh$ac_delim
23965 STRIP!$STRIP$ac_delim
23966 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23967 mkdir_p!$mkdir_p$ac_delim
23968 AWK!$AWK$ac_delim
23969 SET_MAKE!$SET_MAKE$ac_delim
23970 am__leading_dot!$am__leading_dot$ac_delim
23971 AMTAR!$AMTAR$ac_delim
23972 am__tar!$am__tar$ac_delim
23973 am__untar!$am__untar$ac_delim
23974 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23975 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23976 MAINT!$MAINT$ac_delim
23977 build!$build$ac_delim
23978 build_cpu!$build_cpu$ac_delim
23979 build_vendor!$build_vendor$ac_delim
23980 build_os!$build_os$ac_delim
23981 host!$host$ac_delim
23982 host_cpu!$host_cpu$ac_delim
23983 host_vendor!$host_vendor$ac_delim
23984 host_os!$host_os$ac_delim
23985 CC!$CC$ac_delim
23986 CFLAGS!$CFLAGS$ac_delim
23987 LDFLAGS!$LDFLAGS$ac_delim
23988 CPPFLAGS!$CPPFLAGS$ac_delim
23989 ac_ct_CC!$ac_ct_CC$ac_delim
23990 EXEEXT!$EXEEXT$ac_delim
23991 OBJEXT!$OBJEXT$ac_delim
23992 DEPDIR!$DEPDIR$ac_delim
23993 am__include!$am__include$ac_delim
23994 am__quote!$am__quote$ac_delim
23995 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23996 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23997 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23998 CCDEPMODE!$CCDEPMODE$ac_delim
23999 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24000 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24001 CPP!$CPP$ac_delim
24002 AR!$AR$ac_delim
24003 RC!$RC$ac_delim
24004 GREP!$GREP$ac_delim
24005 EGREP!$EGREP$ac_delim
24006 LN_S!$LN_S$ac_delim
24007 ECHO!$ECHO$ac_delim
24008 RANLIB!$RANLIB$ac_delim
24009 _ACEOF
24010
24011   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24012     break
24013   elif $ac_last_try; then
24014     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24015 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24016    { (exit 1); exit 1; }; }
24017   else
24018     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24019   fi
24020 done
24021
24022 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24023 if test -n "$ac_eof"; then
24024   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24025   ac_eof=`expr $ac_eof + 1`
24026 fi
24027
24028 cat >>$CONFIG_STATUS <<_ACEOF
24029 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24031 _ACEOF
24032 sed '
24033 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24034 s/^/s,@/; s/!/@,|#_!!_#|/
24035 :n
24036 t n
24037 s/'"$ac_delim"'$/,g/; t
24038 s/$/\\/; p
24039 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24040 ' >>$CONFIG_STATUS <conf$$subs.sed
24041 rm -f conf$$subs.sed
24042 cat >>$CONFIG_STATUS <<_ACEOF
24043 CEOF$ac_eof
24044 _ACEOF
24045
24046
24047 ac_delim='%!_!# '
24048 for ac_last_try in false false false false false :; do
24049   cat >conf$$subs.sed <<_ACEOF
24050 DLLTOOL!$DLLTOOL$ac_delim
24051 AS!$AS$ac_delim
24052 OBJDUMP!$OBJDUMP$ac_delim
24053 CXX!$CXX$ac_delim
24054 CXXFLAGS!$CXXFLAGS$ac_delim
24055 ac_ct_CXX!$ac_ct_CXX$ac_delim
24056 CXXDEPMODE!$CXXDEPMODE$ac_delim
24057 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24058 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24059 CXXCPP!$CXXCPP$ac_delim
24060 F77!$F77$ac_delim
24061 FFLAGS!$FFLAGS$ac_delim
24062 ac_ct_F77!$ac_ct_F77$ac_delim
24063 LIBTOOL!$LIBTOOL$ac_delim
24064 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
24065 USE_NLS!$USE_NLS$ac_delim
24066 MSGFMT!$MSGFMT$ac_delim
24067 GMSGFMT!$GMSGFMT$ac_delim
24068 MSGFMT_015!$MSGFMT_015$ac_delim
24069 GMSGFMT_015!$GMSGFMT_015$ac_delim
24070 XGETTEXT!$XGETTEXT$ac_delim
24071 XGETTEXT_015!$XGETTEXT_015$ac_delim
24072 MSGMERGE!$MSGMERGE$ac_delim
24073 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
24074 LIBICONV!$LIBICONV$ac_delim
24075 LTLIBICONV!$LTLIBICONV$ac_delim
24076 INTLLIBS!$INTLLIBS$ac_delim
24077 LIBINTL!$LIBINTL$ac_delim
24078 LTLIBINTL!$LTLIBINTL$ac_delim
24079 POSUB!$POSUB$ac_delim
24080 GPG_ERROR_CONFIG_LIBS!$GPG_ERROR_CONFIG_LIBS$ac_delim
24081 GPG_ERROR_CONFIG_CFLAGS!$GPG_ERROR_CONFIG_CFLAGS$ac_delim
24082 BUILD_TIMESTAMP!$BUILD_TIMESTAMP$ac_delim
24083 BUILD_FILEVERSION!$BUILD_FILEVERSION$ac_delim
24084 HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
24085 HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
24086 LANGUAGES_SOME_TRUE!$LANGUAGES_SOME_TRUE$ac_delim
24087 LANGUAGES_SOME_FALSE!$LANGUAGES_SOME_FALSE$ac_delim
24088 LIBOBJS!$LIBOBJS$ac_delim
24089 LTLIBOBJS!$LTLIBOBJS$ac_delim
24090 _ACEOF
24091
24092   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
24093     break
24094   elif $ac_last_try; then
24095     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24097    { (exit 1); exit 1; }; }
24098   else
24099     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24100   fi
24101 done
24102
24103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24104 if test -n "$ac_eof"; then
24105   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24106   ac_eof=`expr $ac_eof + 1`
24107 fi
24108
24109 cat >>$CONFIG_STATUS <<_ACEOF
24110 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24112 _ACEOF
24113 sed '
24114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24115 s/^/s,@/; s/!/@,|#_!!_#|/
24116 :n
24117 t n
24118 s/'"$ac_delim"'$/,g/; t
24119 s/$/\\/; p
24120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24121 ' >>$CONFIG_STATUS <conf$$subs.sed
24122 rm -f conf$$subs.sed
24123 cat >>$CONFIG_STATUS <<_ACEOF
24124 :end
24125 s/|#_!!_#|//g
24126 CEOF$ac_eof
24127 _ACEOF
24128
24129
24130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24132 # trailing colons and then remove the whole line if VPATH becomes empty
24133 # (actually we leave an empty line to preserve line numbers).
24134 if test "x$srcdir" = x.; then
24135   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24136 s/:*\$(srcdir):*/:/
24137 s/:*\${srcdir}:*/:/
24138 s/:*@srcdir@:*/:/
24139 s/^\([^=]*=[     ]*\):*/\1/
24140 s/:*$//
24141 s/^[^=]*=[       ]*$//
24142 }'
24143 fi
24144
24145 cat >>$CONFIG_STATUS <<\_ACEOF
24146 fi # test -n "$CONFIG_FILES"
24147
24148
24149 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24150 do
24151   case $ac_tag in
24152   :[FHLC]) ac_mode=$ac_tag; continue;;
24153   esac
24154   case $ac_mode$ac_tag in
24155   :[FHL]*:*);;
24156   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24157 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24158    { (exit 1); exit 1; }; };;
24159   :[FH]-) ac_tag=-:-;;
24160   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24161   esac
24162   ac_save_IFS=$IFS
24163   IFS=:
24164   set x $ac_tag
24165   IFS=$ac_save_IFS
24166   shift
24167   ac_file=$1
24168   shift
24169
24170   case $ac_mode in
24171   :L) ac_source=$1;;
24172   :[FH])
24173     ac_file_inputs=
24174     for ac_f
24175     do
24176       case $ac_f in
24177       -) ac_f="$tmp/stdin";;
24178       *) # Look for the file first in the build tree, then in the source tree
24179          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24180          # because $ac_f cannot contain `:'.
24181          test -f "$ac_f" ||
24182            case $ac_f in
24183            [\\/$]*) false;;
24184            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24185            esac ||
24186            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24187 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24188    { (exit 1); exit 1; }; };;
24189       esac
24190       ac_file_inputs="$ac_file_inputs $ac_f"
24191     done
24192
24193     # Let's still pretend it is `configure' which instantiates (i.e., don't
24194     # use $as_me), people would be surprised to read:
24195     #    /* config.h.  Generated by config.status.  */
24196     configure_input="Generated from "`IFS=:
24197           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24198     if test x"$ac_file" != x-; then
24199       configure_input="$ac_file.  $configure_input"
24200       { echo "$as_me:$LINENO: creating $ac_file" >&5
24201 echo "$as_me: creating $ac_file" >&6;}
24202     fi
24203
24204     case $ac_tag in
24205     *:-:* | *:-) cat >"$tmp/stdin";;
24206     esac
24207     ;;
24208   esac
24209
24210   ac_dir=`$as_dirname -- "$ac_file" ||
24211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24212          X"$ac_file" : 'X\(//\)[^/]' \| \
24213          X"$ac_file" : 'X\(//\)$' \| \
24214          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24215 echo X"$ac_file" |
24216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24217             s//\1/
24218             q
24219           }
24220           /^X\(\/\/\)[^/].*/{
24221             s//\1/
24222             q
24223           }
24224           /^X\(\/\/\)$/{
24225             s//\1/
24226             q
24227           }
24228           /^X\(\/\).*/{
24229             s//\1/
24230             q
24231           }
24232           s/.*/./; q'`
24233   { as_dir="$ac_dir"
24234   case $as_dir in #(
24235   -*) as_dir=./$as_dir;;
24236   esac
24237   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24238     as_dirs=
24239     while :; do
24240       case $as_dir in #(
24241       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24242       *) as_qdir=$as_dir;;
24243       esac
24244       as_dirs="'$as_qdir' $as_dirs"
24245       as_dir=`$as_dirname -- "$as_dir" ||
24246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247          X"$as_dir" : 'X\(//\)[^/]' \| \
24248          X"$as_dir" : 'X\(//\)$' \| \
24249          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24250 echo X"$as_dir" |
24251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24252             s//\1/
24253             q
24254           }
24255           /^X\(\/\/\)[^/].*/{
24256             s//\1/
24257             q
24258           }
24259           /^X\(\/\/\)$/{
24260             s//\1/
24261             q
24262           }
24263           /^X\(\/\).*/{
24264             s//\1/
24265             q
24266           }
24267           s/.*/./; q'`
24268       test -d "$as_dir" && break
24269     done
24270     test -z "$as_dirs" || eval "mkdir $as_dirs"
24271   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24272 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24273    { (exit 1); exit 1; }; }; }
24274   ac_builddir=.
24275
24276 case "$ac_dir" in
24277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24278 *)
24279   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24280   # A ".." for each directory in $ac_dir_suffix.
24281   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24282   case $ac_top_builddir_sub in
24283   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24284   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24285   esac ;;
24286 esac
24287 ac_abs_top_builddir=$ac_pwd
24288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24289 # for backward compatibility:
24290 ac_top_builddir=$ac_top_build_prefix
24291
24292 case $srcdir in
24293   .)  # We are building in place.
24294     ac_srcdir=.
24295     ac_top_srcdir=$ac_top_builddir_sub
24296     ac_abs_top_srcdir=$ac_pwd ;;
24297   [\\/]* | ?:[\\/]* )  # Absolute name.
24298     ac_srcdir=$srcdir$ac_dir_suffix;
24299     ac_top_srcdir=$srcdir
24300     ac_abs_top_srcdir=$srcdir ;;
24301   *) # Relative name.
24302     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24303     ac_top_srcdir=$ac_top_build_prefix$srcdir
24304     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24305 esac
24306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24307
24308
24309   case $ac_mode in
24310   :F)
24311   #
24312   # CONFIG_FILE
24313   #
24314
24315   case $INSTALL in
24316   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24317   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24318   esac
24319   ac_MKDIR_P=$MKDIR_P
24320   case $MKDIR_P in
24321   [\\/$]* | ?:[\\/]* ) ;;
24322   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24323   esac
24324 _ACEOF
24325
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327 # If the template does not know about datarootdir, expand it.
24328 # FIXME: This hack should be removed a few years after 2.60.
24329 ac_datarootdir_hack=; ac_datarootdir_seen=
24330
24331 case `sed -n '/datarootdir/ {
24332   p
24333   q
24334 }
24335 /@datadir@/p
24336 /@docdir@/p
24337 /@infodir@/p
24338 /@localedir@/p
24339 /@mandir@/p
24340 ' $ac_file_inputs` in
24341 *datarootdir*) ac_datarootdir_seen=yes;;
24342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24343   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24344 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24345 _ACEOF
24346 cat >>$CONFIG_STATUS <<_ACEOF
24347   ac_datarootdir_hack='
24348   s&@datadir@&$datadir&g
24349   s&@docdir@&$docdir&g
24350   s&@infodir@&$infodir&g
24351   s&@localedir@&$localedir&g
24352   s&@mandir@&$mandir&g
24353     s&\\\${datarootdir}&$datarootdir&g' ;;
24354 esac
24355 _ACEOF
24356
24357 # Neutralize VPATH when `$srcdir' = `.'.
24358 # Shell code in configure.ac might set extrasub.
24359 # FIXME: do we really want to maintain this feature?
24360 cat >>$CONFIG_STATUS <<_ACEOF
24361   sed "$ac_vpsub
24362 $extrasub
24363 _ACEOF
24364 cat >>$CONFIG_STATUS <<\_ACEOF
24365 :t
24366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24367 s&@configure_input@&$configure_input&;t t
24368 s&@top_builddir@&$ac_top_builddir_sub&;t t
24369 s&@srcdir@&$ac_srcdir&;t t
24370 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24371 s&@top_srcdir@&$ac_top_srcdir&;t t
24372 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24373 s&@builddir@&$ac_builddir&;t t
24374 s&@abs_builddir@&$ac_abs_builddir&;t t
24375 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24376 s&@INSTALL@&$ac_INSTALL&;t t
24377 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24378 $ac_datarootdir_hack
24379 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24380
24381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24382   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24383   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24384   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24385 which seems to be undefined.  Please make sure it is defined." >&5
24386 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24387 which seems to be undefined.  Please make sure it is defined." >&2;}
24388
24389   rm -f "$tmp/stdin"
24390   case $ac_file in
24391   -) cat "$tmp/out"; rm -f "$tmp/out";;
24392   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24393   esac
24394  ;;
24395   :H)
24396   #
24397   # CONFIG_HEADER
24398   #
24399 _ACEOF
24400
24401 # Transform confdefs.h into a sed script `conftest.defines', that
24402 # substitutes the proper values into config.h.in to produce config.h.
24403 rm -f conftest.defines conftest.tail
24404 # First, append a space to every undef/define line, to ease matching.
24405 echo 's/$/ /' >conftest.defines
24406 # Then, protect against being on the right side of a sed subst, or in
24407 # an unquoted here document, in config.status.  If some macros were
24408 # called several times there might be several #defines for the same
24409 # symbol, which is useless.  But do not sort them, since the last
24410 # AC_DEFINE must be honored.
24411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24412 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24413 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24414 # PARAMS is the parameter list in the macro definition--in most cases, it's
24415 # just an empty string.
24416 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24417 ac_dB='\\)[      (].*,\\1define\\2'
24418 ac_dC=' '
24419 ac_dD=' ,'
24420
24421 uniq confdefs.h |
24422   sed -n '
24423         t rset
24424         :rset
24425         s/^[     ]*#[    ]*define[       ][      ]*//
24426         t ok
24427         d
24428         :ok
24429         s/[\\&,]/\\&/g
24430         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24431         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24432   ' >>conftest.defines
24433
24434 # Remove the space that was appended to ease matching.
24435 # Then replace #undef with comments.  This is necessary, for
24436 # example, in the case of _POSIX_SOURCE, which is predefined and required
24437 # on some systems where configure will not decide to define it.
24438 # (The regexp can be short, since the line contains either #define or #undef.)
24439 echo 's/ $//
24440 s,^[     #]*u.*,/* & */,' >>conftest.defines
24441
24442 # Break up conftest.defines:
24443 ac_max_sed_lines=50
24444
24445 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24446 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24447 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24448 # et cetera.
24449 ac_in='$ac_file_inputs'
24450 ac_out='"$tmp/out1"'
24451 ac_nxt='"$tmp/out2"'
24452
24453 while :
24454 do
24455   # Write a here document:
24456     cat >>$CONFIG_STATUS <<_ACEOF
24457     # First, check the format of the line:
24458     cat >"\$tmp/defines.sed" <<\\CEOF
24459 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24460 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24461 b
24462 :def
24463 _ACEOF
24464   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24465   echo 'CEOF
24466     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24467   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24468   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24469   grep . conftest.tail >/dev/null || break
24470   rm -f conftest.defines
24471   mv conftest.tail conftest.defines
24472 done
24473 rm -f conftest.defines conftest.tail
24474
24475 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24476 cat >>$CONFIG_STATUS <<\_ACEOF
24477   if test x"$ac_file" != x-; then
24478     echo "/* $configure_input  */" >"$tmp/config.h"
24479     cat "$ac_result" >>"$tmp/config.h"
24480     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24481       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24482 echo "$as_me: $ac_file is unchanged" >&6;}
24483     else
24484       rm -f $ac_file
24485       mv "$tmp/config.h" $ac_file
24486     fi
24487   else
24488     echo "/* $configure_input  */"
24489     cat "$ac_result"
24490   fi
24491   rm -f "$tmp/out12"
24492 # Compute $ac_file's index in $config_headers.
24493 _am_arg=$ac_file
24494 _am_stamp_count=1
24495 for _am_header in $config_headers :; do
24496   case $_am_header in
24497     $_am_arg | $_am_arg:* )
24498       break ;;
24499     * )
24500       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24501   esac
24502 done
24503 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24504 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24505          X"$_am_arg" : 'X\(//\)[^/]' \| \
24506          X"$_am_arg" : 'X\(//\)$' \| \
24507          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24508 echo X"$_am_arg" |
24509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24510             s//\1/
24511             q
24512           }
24513           /^X\(\/\/\)[^/].*/{
24514             s//\1/
24515             q
24516           }
24517           /^X\(\/\/\)$/{
24518             s//\1/
24519             q
24520           }
24521           /^X\(\/\).*/{
24522             s//\1/
24523             q
24524           }
24525           s/.*/./; q'`/stamp-h$_am_stamp_count
24526  ;;
24527
24528   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24529 echo "$as_me: executing $ac_file commands" >&6;}
24530  ;;
24531   esac
24532
24533
24534   case $ac_file$ac_mode in
24535     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24536   # Strip MF so we end up with the name of the file.
24537   mf=`echo "$mf" | sed -e 's/:.*$//'`
24538   # Check whether this is an Automake generated Makefile or not.
24539   # We used to match only the files named `Makefile.in', but
24540   # some people rename them; so instead we look at the file content.
24541   # Grep'ing the first line is not enough: some people post-process
24542   # each Makefile.in and add a new line on top of each file to say so.
24543   # Grep'ing the whole file is not good either: AIX grep has a line
24544   # limit of 2048, but all sed's we know have understand at least 4000.
24545   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24546     dirpart=`$as_dirname -- "$mf" ||
24547 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24548          X"$mf" : 'X\(//\)[^/]' \| \
24549          X"$mf" : 'X\(//\)$' \| \
24550          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24551 echo X"$mf" |
24552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24553             s//\1/
24554             q
24555           }
24556           /^X\(\/\/\)[^/].*/{
24557             s//\1/
24558             q
24559           }
24560           /^X\(\/\/\)$/{
24561             s//\1/
24562             q
24563           }
24564           /^X\(\/\).*/{
24565             s//\1/
24566             q
24567           }
24568           s/.*/./; q'`
24569   else
24570     continue
24571   fi
24572   # Extract the definition of DEPDIR, am__include, and am__quote
24573   # from the Makefile without running `make'.
24574   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24575   test -z "$DEPDIR" && continue
24576   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24577   test -z "am__include" && continue
24578   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24579   # When using ansi2knr, U may be empty or an underscore; expand it
24580   U=`sed -n 's/^U = //p' < "$mf"`
24581   # Find all dependency output files, they are included files with
24582   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24583   # simplest approach to changing $(DEPDIR) to its actual value in the
24584   # expansion.
24585   for file in `sed -n "
24586     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24587        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24588     # Make sure the directory exists.
24589     test -f "$dirpart/$file" && continue
24590     fdir=`$as_dirname -- "$file" ||
24591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24592          X"$file" : 'X\(//\)[^/]' \| \
24593          X"$file" : 'X\(//\)$' \| \
24594          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24595 echo X"$file" |
24596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24597             s//\1/
24598             q
24599           }
24600           /^X\(\/\/\)[^/].*/{
24601             s//\1/
24602             q
24603           }
24604           /^X\(\/\/\)$/{
24605             s//\1/
24606             q
24607           }
24608           /^X\(\/\).*/{
24609             s//\1/
24610             q
24611           }
24612           s/.*/./; q'`
24613     { as_dir=$dirpart/$fdir
24614   case $as_dir in #(
24615   -*) as_dir=./$as_dir;;
24616   esac
24617   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24618     as_dirs=
24619     while :; do
24620       case $as_dir in #(
24621       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24622       *) as_qdir=$as_dir;;
24623       esac
24624       as_dirs="'$as_qdir' $as_dirs"
24625       as_dir=`$as_dirname -- "$as_dir" ||
24626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24627          X"$as_dir" : 'X\(//\)[^/]' \| \
24628          X"$as_dir" : 'X\(//\)$' \| \
24629          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24630 echo X"$as_dir" |
24631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24632             s//\1/
24633             q
24634           }
24635           /^X\(\/\/\)[^/].*/{
24636             s//\1/
24637             q
24638           }
24639           /^X\(\/\/\)$/{
24640             s//\1/
24641             q
24642           }
24643           /^X\(\/\).*/{
24644             s//\1/
24645             q
24646           }
24647           s/.*/./; q'`
24648       test -d "$as_dir" && break
24649     done
24650     test -z "$as_dirs" || eval "mkdir $as_dirs"
24651   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24653    { (exit 1); exit 1; }; }; }
24654     # echo "creating $dirpart/$file"
24655     echo '# dummy' > "$dirpart/$file"
24656   done
24657 done
24658  ;;
24659     "po-directories":C)
24660     for ac_file in $CONFIG_FILES; do
24661       # Support "outfile[:infile[:infile...]]"
24662       case "$ac_file" in
24663         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24664       esac
24665       # PO directories have a Makefile.in generated from Makefile.in.in.
24666       case "$ac_file" in */Makefile.in)
24667         # Adjust a relative srcdir.
24668         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24669         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24670         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24671         # In autoconf-2.13 it is called $ac_given_srcdir.
24672         # In autoconf-2.50 it is called $srcdir.
24673         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24674         case "$ac_given_srcdir" in
24675           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24676           /*) top_srcdir="$ac_given_srcdir" ;;
24677           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
24678         esac
24679         # Treat a directory as a PO directory if and only if it has a
24680         # POTFILES.in file. This allows packages to have multiple PO
24681         # directories under different names or in different locations.
24682         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24683           rm -f "$ac_dir/POTFILES"
24684           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24685           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24686           POMAKEFILEDEPS="POTFILES.in"
24687           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24688           # on $ac_dir but don't depend on user-specified configuration
24689           # parameters.
24690           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24691             # The LINGUAS file contains the set of available languages.
24692             if test -n "$OBSOLETE_ALL_LINGUAS"; then
24693               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24694             fi
24695             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24696             # Hide the ALL_LINGUAS assigment from automake < 1.5.
24697             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24698             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24699           else
24700             # The set of available languages was given in configure.in.
24701             # Hide the ALL_LINGUAS assigment from automake < 1.5.
24702             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24703           fi
24704           # Compute POFILES
24705           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24706           # Compute UPDATEPOFILES
24707           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24708           # Compute DUMMYPOFILES
24709           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24710           # Compute GMOFILES
24711           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24712           case "$ac_given_srcdir" in
24713             .) srcdirpre= ;;
24714             *) srcdirpre='$(srcdir)/' ;;
24715           esac
24716           POFILES=
24717           UPDATEPOFILES=
24718           DUMMYPOFILES=
24719           GMOFILES=
24720           for lang in $ALL_LINGUAS; do
24721             POFILES="$POFILES $srcdirpre$lang.po"
24722             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24723             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24724             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24725           done
24726           # CATALOGS depends on both $ac_dir and the user's LINGUAS
24727           # environment variable.
24728           INST_LINGUAS=
24729           if test -n "$ALL_LINGUAS"; then
24730             for presentlang in $ALL_LINGUAS; do
24731               useit=no
24732               if test "%UNSET%" != "$LINGUAS"; then
24733                 desiredlanguages="$LINGUAS"
24734               else
24735                 desiredlanguages="$ALL_LINGUAS"
24736               fi
24737               for desiredlang in $desiredlanguages; do
24738                 # Use the presentlang catalog if desiredlang is
24739                 #   a. equal to presentlang, or
24740                 #   b. a variant of presentlang (because in this case,
24741                 #      presentlang can be used as a fallback for messages
24742                 #      which are not translated in the desiredlang catalog).
24743                 case "$desiredlang" in
24744                   "$presentlang"*) useit=yes;;
24745                 esac
24746               done
24747               if test $useit = yes; then
24748                 INST_LINGUAS="$INST_LINGUAS $presentlang"
24749               fi
24750             done
24751           fi
24752           CATALOGS=
24753           if test -n "$INST_LINGUAS"; then
24754             for lang in $INST_LINGUAS; do
24755               CATALOGS="$CATALOGS $lang.gmo"
24756             done
24757           fi
24758           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24759           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24760           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24761             if test -f "$f"; then
24762               case "$f" in
24763                 *.orig | *.bak | *~) ;;
24764                 *) cat "$f" >> "$ac_dir/Makefile" ;;
24765               esac
24766             fi
24767           done
24768         fi
24769         ;;
24770       esac
24771     done ;;
24772     "src/gpg-error-config":F) chmod +x src/gpg-error-config ;;
24773
24774   esac
24775 done # for ac_tag
24776
24777
24778 { (exit 0); exit 0; }
24779 _ACEOF
24780 chmod +x $CONFIG_STATUS
24781 ac_clean_files=$ac_clean_files_save
24782
24783
24784 # configure is writing to config.log, and then calls config.status.
24785 # config.status does its own redirection, appending to config.log.
24786 # Unfortunately, on DOS this fails, as config.log is still kept open
24787 # by configure, so config.status won't be able to write to it; its
24788 # output is simply discarded.  So we exec the FD to /dev/null,
24789 # effectively closing config.log, so it can be properly (re)opened and
24790 # appended to by config.status.  When coming back to configure, we
24791 # need to make the FD available again.
24792 if test "$no_create" != yes; then
24793   ac_cs_success=:
24794   ac_config_status_args=
24795   test "$silent" = yes &&
24796     ac_config_status_args="$ac_config_status_args --quiet"
24797   exec 5>/dev/null
24798   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24799   exec 5>>config.log
24800   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24801   # would make configure fail if this is the last instruction.
24802   $ac_cs_success || { (exit 1); exit 1; }
24803 fi
24804
24805
24806 echo "
24807         Libgpg-error v${VERSION} has been configured as follows:
24808
24809         Platform:  $host
24810
24811 "