Initialize Tizen 2.3
[framework/base/gconf-dbus.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="gconf/gconf.h"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 #  include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 #  include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 INSTALL_PROGRAM
793 INSTALL_SCRIPT
794 INSTALL_DATA
795 CYGPATH_W
796 PACKAGE
797 VERSION
798 ACLOCAL
799 AUTOCONF
800 AUTOMAKE
801 AUTOHEADER
802 MAKEINFO
803 AMTAR
804 install_sh
805 STRIP
806 INSTALL_STRIP_PROGRAM
807 AWK
808 SET_MAKE
809 am__leading_dot
810 MAINTAINER_MODE_TRUE
811 MAINTAINER_MODE_FALSE
812 MAINT
813 build
814 build_cpu
815 build_vendor
816 build_os
817 host
818 host_cpu
819 host_vendor
820 host_os
821 OS_WIN32_TRUE
822 OS_WIN32_FALSE
823 CC
824 CFLAGS
825 LDFLAGS
826 CPPFLAGS
827 ac_ct_CC
828 EXEEXT
829 OBJEXT
830 DEPDIR
831 am__include
832 am__quote
833 AMDEP_TRUE
834 AMDEP_FALSE
835 AMDEPBACKSLASH
836 CCDEPMODE
837 am__fastdepCC_TRUE
838 am__fastdepCC_FALSE
839 CXX
840 CXXFLAGS
841 ac_ct_CXX
842 CXXDEPMODE
843 am__fastdepCXX_TRUE
844 am__fastdepCXX_FALSE
845 CPP
846 GREP
847 EGREP
848 LN_S
849 ECHO
850 AR
851 RANLIB
852 DLLTOOL
853 AS
854 OBJDUMP
855 CXXCPP
856 F77
857 FFLAGS
858 ac_ct_F77
859 LIBTOOL
860 GLIB_GENMARSHAL
861 MAJOR_VERSION
862 GETTEXT_PACKAGE
863 GCONF_CURRENT
864 GCONF_REVISION
865 GCONF_AGE
866 sysconfsubdir
867 sysgconfdir
868 HTML_DIR
869 PKG_CONFIG
870 GTKDOC_CHECK
871 ENABLE_GTK_DOC_TRUE
872 ENABLE_GTK_DOC_FALSE
873 GTK_DOC_USE_LIBTOOL_TRUE
874 GTK_DOC_USE_LIBTOOL_FALSE
875 USE_SYSTEM_BUS_TRUE
876 USE_SYSTEM_BUS_FALSE
877 DBUS_SERVICE_DIR
878 DEPENDENT_CFLAGS
879 DEPENDENT_LIBS
880 DEPENDENT_WITH_XML_CFLAGS
881 DEPENDENT_WITH_XML_LIBS
882 DEPENDENT_WITH_GTK_CFLAGS
883 DEPENDENT_WITH_GTK_LIBS
884 DEPENDENT_WITH_XML_AND_GTK_CFLAGS
885 DEPENDENT_WITH_XML_AND_GTK_LIBS
886 GTK_TRUE
887 GTK_FALSE
888 PTHREADS_TRUE
889 PTHREADS_FALSE
890 LDAP_LIBS
891 LDAP_SUPPORT_TRUE
892 LDAP_SUPPORT_FALSE
893 LDAP_CFLAGS
894 INTLTOOL_DESKTOP_RULE
895 INTLTOOL_DIRECTORY_RULE
896 INTLTOOL_KEYS_RULE
897 INTLTOOL_PROP_RULE
898 INTLTOOL_OAF_RULE
899 INTLTOOL_PONG_RULE
900 INTLTOOL_SERVER_RULE
901 INTLTOOL_SHEET_RULE
902 INTLTOOL_SOUNDLIST_RULE
903 INTLTOOL_UI_RULE
904 INTLTOOL_XAM_RULE
905 INTLTOOL_KBD_RULE
906 INTLTOOL_XML_RULE
907 INTLTOOL_XML_NOMERGE_RULE
908 INTLTOOL_CAVES_RULE
909 INTLTOOL_SCHEMAS_RULE
910 INTLTOOL_THEME_RULE
911 INTLTOOL_SERVICE_RULE
912 INTLTOOL_POLICY_RULE
913 INTLTOOL_EXTRACT
914 INTLTOOL_MERGE
915 INTLTOOL_UPDATE
916 INTLTOOL_PERL
917 ALL_LINGUAS
918 DATADIRNAME
919 USE_NLS
920 MSGFMT
921 MSGFMT_OPTS
922 GMSGFMT
923 XGETTEXT
924 CATALOGS
925 CATOBJEXT
926 GMOFILES
927 INSTOBJEXT
928 INTLLIBS
929 PO_IN_DATADIR_TRUE
930 PO_IN_DATADIR_FALSE
931 POFILES
932 POSUB
933 MKINSTALLDIRS
934 gconflocaledir
935 absolute_top_srcdir
936 PERL
937 INDENT
938 REBUILD
939 LIBOBJS
940 LTLIBOBJS'
941 ac_subst_files=''
942       ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 CPPFLAGS
949 CXX
950 CXXFLAGS
951 CCC
952 CPP
953 CXXCPP
954 F77
955 FFLAGS
956 PKG_CONFIG
957 DEPENDENT_CFLAGS
958 DEPENDENT_LIBS
959 DEPENDENT_WITH_XML_CFLAGS
960 DEPENDENT_WITH_XML_LIBS
961 DEPENDENT_WITH_GTK_CFLAGS
962 DEPENDENT_WITH_GTK_LIBS
963 DEPENDENT_WITH_XML_AND_GTK_CFLAGS
964 DEPENDENT_WITH_XML_AND_GTK_LIBS'
965
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017   # If the previous option needs an argument, assign it.
1018   if test -n "$ac_prev"; then
1019     eval $ac_prev=\$ac_option
1020     ac_prev=
1021     continue
1022   fi
1023
1024   case $ac_option in
1025   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026   *)    ac_optarg=yes ;;
1027   esac
1028
1029   # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031   case $ac_dashdash$ac_option in
1032   --)
1033     ac_dashdash=yes ;;
1034
1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036     ac_prev=bindir ;;
1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038     bindir=$ac_optarg ;;
1039
1040   -build | --build | --buil | --bui | --bu)
1041     ac_prev=build_alias ;;
1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043     build_alias=$ac_optarg ;;
1044
1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047     ac_prev=cache_file ;;
1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050     cache_file=$ac_optarg ;;
1051
1052   --config-cache | -C)
1053     cache_file=config.cache ;;
1054
1055   -datadir | --datadir | --datadi | --datad)
1056     ac_prev=datadir ;;
1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058     datadir=$ac_optarg ;;
1059
1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061   | --dataroo | --dataro | --datar)
1062     ac_prev=datarootdir ;;
1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065     datarootdir=$ac_optarg ;;
1066
1067   -disable-* | --disable-*)
1068     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074     eval enable_$ac_feature=no ;;
1075
1076   -docdir | --docdir | --docdi | --doc | --do)
1077     ac_prev=docdir ;;
1078   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079     docdir=$ac_optarg ;;
1080
1081   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082     ac_prev=dvidir ;;
1083   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084     dvidir=$ac_optarg ;;
1085
1086   -enable-* | --enable-*)
1087     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088     # Reject names that are not valid shell variable names.
1089     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1090       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091    { (exit 1); exit 1; }; }
1092     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1093     eval enable_$ac_feature=\$ac_optarg ;;
1094
1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097   | --exec | --exe | --ex)
1098     ac_prev=exec_prefix ;;
1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101   | --exec=* | --exe=* | --ex=*)
1102     exec_prefix=$ac_optarg ;;
1103
1104   -gas | --gas | --ga | --g)
1105     # Obsolete; use --with-gas.
1106     with_gas=yes ;;
1107
1108   -help | --help | --hel | --he | -h)
1109     ac_init_help=long ;;
1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111     ac_init_help=recursive ;;
1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113     ac_init_help=short ;;
1114
1115   -host | --host | --hos | --ho)
1116     ac_prev=host_alias ;;
1117   -host=* | --host=* | --hos=* | --ho=*)
1118     host_alias=$ac_optarg ;;
1119
1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121     ac_prev=htmldir ;;
1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123   | --ht=*)
1124     htmldir=$ac_optarg ;;
1125
1126   -includedir | --includedir | --includedi | --included | --include \
1127   | --includ | --inclu | --incl | --inc)
1128     ac_prev=includedir ;;
1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
1131     includedir=$ac_optarg ;;
1132
1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
1134     ac_prev=infodir ;;
1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136     infodir=$ac_optarg ;;
1137
1138   -libdir | --libdir | --libdi | --libd)
1139     ac_prev=libdir ;;
1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141     libdir=$ac_optarg ;;
1142
1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144   | --libexe | --libex | --libe)
1145     ac_prev=libexecdir ;;
1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147   | --libexe=* | --libex=* | --libe=*)
1148     libexecdir=$ac_optarg ;;
1149
1150   -localedir | --localedir | --localedi | --localed | --locale)
1151     ac_prev=localedir ;;
1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153     localedir=$ac_optarg ;;
1154
1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
1156   | --localstate | --localstat | --localsta | --localst | --locals)
1157     ac_prev=localstatedir ;;
1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160     localstatedir=$ac_optarg ;;
1161
1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163     ac_prev=mandir ;;
1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165     mandir=$ac_optarg ;;
1166
1167   -nfp | --nfp | --nf)
1168     # Obsolete; use --without-fp.
1169     with_fp=no ;;
1170
1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172   | --no-cr | --no-c | -n)
1173     no_create=yes ;;
1174
1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177     no_recursion=yes ;;
1178
1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181   | --oldin | --oldi | --old | --ol | --o)
1182     ac_prev=oldincludedir ;;
1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186     oldincludedir=$ac_optarg ;;
1187
1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189     ac_prev=prefix ;;
1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191     prefix=$ac_optarg ;;
1192
1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194   | --program-pre | --program-pr | --program-p)
1195     ac_prev=program_prefix ;;
1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198     program_prefix=$ac_optarg ;;
1199
1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201   | --program-suf | --program-su | --program-s)
1202     ac_prev=program_suffix ;;
1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205     program_suffix=$ac_optarg ;;
1206
1207   -program-transform-name | --program-transform-name \
1208   | --program-transform-nam | --program-transform-na \
1209   | --program-transform-n | --program-transform- \
1210   | --program-transform | --program-transfor \
1211   | --program-transfo | --program-transf \
1212   | --program-trans | --program-tran \
1213   | --progr-tra | --program-tr | --program-t)
1214     ac_prev=program_transform_name ;;
1215   -program-transform-name=* | --program-transform-name=* \
1216   | --program-transform-nam=* | --program-transform-na=* \
1217   | --program-transform-n=* | --program-transform-=* \
1218   | --program-transform=* | --program-transfor=* \
1219   | --program-transfo=* | --program-transf=* \
1220   | --program-trans=* | --program-tran=* \
1221   | --progr-tra=* | --program-tr=* | --program-t=*)
1222     program_transform_name=$ac_optarg ;;
1223
1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225     ac_prev=pdfdir ;;
1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227     pdfdir=$ac_optarg ;;
1228
1229   -psdir | --psdir | --psdi | --psd | --ps)
1230     ac_prev=psdir ;;
1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232     psdir=$ac_optarg ;;
1233
1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235   | -silent | --silent | --silen | --sile | --sil)
1236     silent=yes ;;
1237
1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239     ac_prev=sbindir ;;
1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241   | --sbi=* | --sb=*)
1242     sbindir=$ac_optarg ;;
1243
1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246   | --sharedst | --shareds | --shared | --share | --shar \
1247   | --sha | --sh)
1248     ac_prev=sharedstatedir ;;
1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252   | --sha=* | --sh=*)
1253     sharedstatedir=$ac_optarg ;;
1254
1255   -site | --site | --sit)
1256     ac_prev=site ;;
1257   -site=* | --site=* | --sit=*)
1258     site=$ac_optarg ;;
1259
1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261     ac_prev=srcdir ;;
1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263     srcdir=$ac_optarg ;;
1264
1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266   | --syscon | --sysco | --sysc | --sys | --sy)
1267     ac_prev=sysconfdir ;;
1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270     sysconfdir=$ac_optarg ;;
1271
1272   -target | --target | --targe | --targ | --tar | --ta | --t)
1273     ac_prev=target_alias ;;
1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275     target_alias=$ac_optarg ;;
1276
1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278     verbose=yes ;;
1279
1280   -version | --version | --versio | --versi | --vers | -V)
1281     ac_init_version=: ;;
1282
1283   -with-* | --with-*)
1284     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
1288    { (exit 1); exit 1; }; }
1289     ac_package=`echo $ac_package| sed 's/-/_/g'`
1290     eval with_$ac_package=\$ac_optarg ;;
1291
1292   -without-* | --without-*)
1293     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_package=`echo $ac_package | sed 's/-/_/g'`
1299     eval with_$ac_package=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) { echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321    { (exit 1); exit 1; }; }
1322     ;;
1323
1324   *=*)
1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329    { (exit 1); exit 1; }; }
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   { echo "$as_me: error: missing argument to $ac_option" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349
1350 # Be sure to have absolute directory names.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir
1355 do
1356   eval ac_val=\$$ac_var
1357   case $ac_val in
1358     [\\/$]* | ?:[\\/]* )  continue;;
1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360   esac
1361   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362    { (exit 1); exit 1; }; }
1363 done
1364
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1371
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374   if test "x$build_alias" = x; then
1375     cross_compiling=maybe
1376     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377     If a cross compiler is detected then cross compile mode will be used." >&2
1378   elif test "x$build_alias" != "x$host_alias"; then
1379     cross_compiling=yes
1380   fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392   { echo "$as_me: error: Working directory cannot be determined" >&2
1393    { (exit 1); exit 1; }; }
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395   { echo "$as_me: error: pwd does not report name of working directory" >&2
1396    { (exit 1); exit 1; }; }
1397
1398
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401   ac_srcdir_defaulted=yes
1402   # Try the directory containing this script, then the parent directory.
1403   ac_confdir=`$as_dirname -- "$0" ||
1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405          X"$0" : 'X\(//\)[^/]' \| \
1406          X"$0" : 'X\(//\)$' \| \
1407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1408 echo X"$0" |
1409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\/\)[^/].*/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\).*/{
1422             s//\1/
1423             q
1424           }
1425           s/.*/./; q'`
1426   srcdir=$ac_confdir
1427   if test ! -r "$srcdir/$ac_unique_file"; then
1428     srcdir=..
1429   fi
1430 else
1431   ac_srcdir_defaulted=no
1432 fi
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1436    { (exit 1); exit 1; }; }
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1441    { (exit 1); exit 1; }; }
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures this package to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR           user executables [EPREFIX/bin]
1502   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR       program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1507   --libdir=DIR           object code libraries [EPREFIX/lib]
1508   --includedir=DIR       C header files [PREFIX/include]
1509   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1510   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1511   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1512   --infodir=DIR          info documentation [DATAROOTDIR/info]
1513   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1514   --mandir=DIR           man documentation [DATAROOTDIR/man]
1515   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1516   --htmldir=DIR          html documentation [DOCDIR]
1517   --dvidir=DIR           dvi documentation [DOCDIR]
1518   --pdfdir=DIR           pdf documentation [DOCDIR]
1519   --psdir=DIR            ps documentation [DOCDIR]
1520 _ACEOF
1521
1522   cat <<\_ACEOF
1523
1524 Program names:
1525   --program-prefix=PREFIX            prepend PREFIX to installed program names
1526   --program-suffix=SUFFIX            append SUFFIX to installed program names
1527   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1528
1529 System types:
1530   --build=BUILD     configure for building on BUILD [guessed]
1531   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1532 _ACEOF
1533 fi
1534
1535 if test -n "$ac_init_help"; then
1536
1537   cat <<\_ACEOF
1538
1539 Optional Features:
1540   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542   --enable-maintainer-mode enable make rules and dependencies not useful
1543                           (and sometimes confusing) to the casual installer
1544   --disable-dependency-tracking Speeds up one-time builds
1545   --enable-dependency-tracking  Do not reject slow dependency extractors
1546   --enable-shared[=PKGS]  build shared libraries [default=yes]
1547   --enable-static[=PKGS]  build static libraries [default=yes]
1548   --enable-fast-install[=PKGS]
1549                           optimize for fast installation [default=yes]
1550   --disable-libtool-lock  avoid locking (might break parallel builds)
1551   --enable-debug=no/yes/minimum      Compile with debug checks.
1552   --enable-gtk-doc        use gtk-doc to build documentation [default=no]
1553   --enable-gtk          Enable GTK+ support (for gconf-sanity-check) default=auto
1554   --enable-system-bus Use the system bus instead of session bus
1555
1556 Optional Packages:
1557   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1558   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1559   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560   --with-pic              try to use only PIC/non-PIC objects [default=use
1561                           both]
1562   --with-tags[=TAGS]      include additional configurations [automatic]
1563   --with-sysconfsubdir    directory name used under sysconfdir, default=gconf
1564   --with-html-dir=PATH    path to installed docs
1565   --with-dbus-service-dir=PATH choose directory for dbus service files, default=PREFIX/share/dbus-1/services
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   CPP         C preprocessor
1577   CXXCPP      C++ preprocessor
1578   F77         Fortran 77 compiler command
1579   FFLAGS      Fortran 77 compiler flags
1580   PKG_CONFIG  path to pkg-config utility
1581   DEPENDENT_CFLAGS
1582               C compiler flags for DEPENDENT, overriding pkg-config
1583   DEPENDENT_LIBS
1584               linker flags for DEPENDENT, overriding pkg-config
1585   DEPENDENT_WITH_XML_CFLAGS
1586               C compiler flags for DEPENDENT_WITH_XML, overriding pkg-config
1587   DEPENDENT_WITH_XML_LIBS
1588               linker flags for DEPENDENT_WITH_XML, overriding pkg-config
1589   DEPENDENT_WITH_GTK_CFLAGS
1590               C compiler flags for DEPENDENT_WITH_GTK, overriding pkg-config
1591   DEPENDENT_WITH_GTK_LIBS
1592               linker flags for DEPENDENT_WITH_GTK, overriding pkg-config
1593   DEPENDENT_WITH_XML_AND_GTK_CFLAGS
1594               C compiler flags for DEPENDENT_WITH_XML_AND_GTK, overriding
1595               pkg-config
1596   DEPENDENT_WITH_XML_AND_GTK_LIBS
1597               linker flags for DEPENDENT_WITH_XML_AND_GTK, overriding
1598               pkg-config
1599
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1602
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608   # If there are subdirs, report their specific --help.
1609   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610     test -d "$ac_dir" || continue
1611     ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617   # A ".." for each directory in $ac_dir_suffix.
1618   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619   case $ac_top_builddir_sub in
1620   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622   esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630   .)  # We are building in place.
1631     ac_srcdir=.
1632     ac_top_srcdir=$ac_top_builddir_sub
1633     ac_abs_top_srcdir=$ac_pwd ;;
1634   [\\/]* | ?:[\\/]* )  # Absolute name.
1635     ac_srcdir=$srcdir$ac_dir_suffix;
1636     ac_top_srcdir=$srcdir
1637     ac_abs_top_srcdir=$srcdir ;;
1638   *) # Relative name.
1639     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640     ac_top_srcdir=$ac_top_build_prefix$srcdir
1641     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645     cd "$ac_dir" || { ac_status=$?; continue; }
1646     # Check for guested configure.
1647     if test -f "$ac_srcdir/configure.gnu"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650     elif test -f "$ac_srcdir/configure"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure" --help=recursive
1653     else
1654       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655     fi || ac_status=$?
1656     cd "$ac_pwd" || { ac_status=$?; break; }
1657   done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662   cat <<\_ACEOF
1663 configure
1664 generated by GNU Autoconf 2.60
1665
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671   exit
1672 fi
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1676
1677 It was created by $as_me, which was
1678 generated by GNU Autoconf 2.60.  Invocation command line was
1679
1680   $ $0 $@
1681
1682 _ACEOF
1683 exec 5>>config.log
1684 {
1685 cat <<_ASUNAME
1686 ## --------- ##
1687 ## Platform. ##
1688 ## --------- ##
1689
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1695
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1698
1699 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1700 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1703 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1704 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1705 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1706
1707 _ASUNAME
1708
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   echo "PATH: $as_dir"
1715 done
1716 IFS=$as_save_IFS
1717
1718 } >&5
1719
1720 cat >&5 <<_ACEOF
1721
1722
1723 ## ----------- ##
1724 ## Core tests. ##
1725 ## ----------- ##
1726
1727 _ACEOF
1728
1729
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_configure_args=
1736 ac_configure_args0=
1737 ac_configure_args1=
1738 ac_must_keep_next=false
1739 for ac_pass in 1 2
1740 do
1741   for ac_arg
1742   do
1743     case $ac_arg in
1744     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746     | -silent | --silent | --silen | --sile | --sil)
1747       continue ;;
1748     *\'*)
1749       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750     esac
1751     case $ac_pass in
1752     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1753     2)
1754       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755       if test $ac_must_keep_next = true; then
1756         ac_must_keep_next=false # Got value, back to normal.
1757       else
1758         case $ac_arg in
1759           *=* | --config-cache | -C | -disable-* | --disable-* \
1760           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762           | -with-* | --with-* | -without-* | --without-* | --x)
1763             case "$ac_configure_args0 " in
1764               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765             esac
1766             ;;
1767           -* ) ac_must_keep_next=true ;;
1768         esac
1769       fi
1770       ac_configure_args="$ac_configure_args '$ac_arg'"
1771       ;;
1772     esac
1773   done
1774 done
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1777
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log.  We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784   # Save into config.log some information that might help in debugging.
1785   {
1786     echo
1787
1788     cat <<\_ASBOX
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1792 _ASBOX
1793     echo
1794     # The following way of writing the cache mishandles newlines in values,
1795 (
1796   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797     eval ac_val=\$$ac_var
1798     case $ac_val in #(
1799     *${as_nl}*)
1800       case $ac_var in #(
1801       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1802 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803       esac
1804       case $ac_var in #(
1805       _ | IFS | as_nl) ;; #(
1806       *) $as_unset $ac_var ;;
1807       esac ;;
1808     esac
1809   done
1810   (set) 2>&1 |
1811     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1812     *${as_nl}ac_space=\ *)
1813       sed -n \
1814         "s/'\''/'\''\\\\'\'''\''/g;
1815           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816       ;; #(
1817     *)
1818       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819       ;;
1820     esac |
1821     sort
1822 )
1823     echo
1824
1825     cat <<\_ASBOX
1826 ## ----------------- ##
1827 ## Output variables. ##
1828 ## ----------------- ##
1829 _ASBOX
1830     echo
1831     for ac_var in $ac_subst_vars
1832     do
1833       eval ac_val=\$$ac_var
1834       case $ac_val in
1835       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836       esac
1837       echo "$ac_var='\''$ac_val'\''"
1838     done | sort
1839     echo
1840
1841     if test -n "$ac_subst_files"; then
1842       cat <<\_ASBOX
1843 ## ------------------- ##
1844 ## File substitutions. ##
1845 ## ------------------- ##
1846 _ASBOX
1847       echo
1848       for ac_var in $ac_subst_files
1849       do
1850         eval ac_val=\$$ac_var
1851         case $ac_val in
1852         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853         esac
1854         echo "$ac_var='\''$ac_val'\''"
1855       done | sort
1856       echo
1857     fi
1858
1859     if test -s confdefs.h; then
1860       cat <<\_ASBOX
1861 ## ----------- ##
1862 ## confdefs.h. ##
1863 ## ----------- ##
1864 _ASBOX
1865       echo
1866       cat confdefs.h
1867       echo
1868     fi
1869     test "$ac_signal" != 0 &&
1870       echo "$as_me: caught signal $ac_signal"
1871     echo "$as_me: exit $exit_status"
1872   } >&5
1873   rm -f core *.core core.conftest.* &&
1874     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1875     exit $exit_status
1876 ' 0
1877 for ac_signal in 1 2 13 15; do
1878   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 done
1880 ac_signal=0
1881
1882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1883 rm -f -r conftest* confdefs.h
1884
1885 # Predefined preprocessor variables.
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 _ACEOF
1910
1911
1912 # Let the site file select an alternate cache file if it wants to.
1913 # Prefer explicitly selected file to automatically selected ones.
1914 if test -n "$CONFIG_SITE"; then
1915   set x "$CONFIG_SITE"
1916 elif test "x$prefix" != xNONE; then
1917   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1918 else
1919   set x "$ac_default_prefix/share/config.site" \
1920         "$ac_default_prefix/etc/config.site"
1921 fi
1922 shift
1923 for ac_site_file
1924 do
1925   if test -r "$ac_site_file"; then
1926     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 echo "$as_me: loading site script $ac_site_file" >&6;}
1928     sed 's/^/| /' "$ac_site_file" >&5
1929     . "$ac_site_file"
1930   fi
1931 done
1932
1933 if test -r "$cache_file"; then
1934   # Some versions of bash will fail to source /dev/null (special
1935   # files actually), so we avoid doing that.
1936   if test -f "$cache_file"; then
1937     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 echo "$as_me: loading cache $cache_file" >&6;}
1939     case $cache_file in
1940       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941       *)                      . "./$cache_file";;
1942     esac
1943   fi
1944 else
1945   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 echo "$as_me: creating cache $cache_file" >&6;}
1947   >$cache_file
1948 fi
1949
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955   eval ac_new_set=\$ac_env_${ac_var}_set
1956   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957   eval ac_new_val=\$ac_env_${ac_var}_value
1958   case $ac_old_set,$ac_new_set in
1959     set,)
1960       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962       ac_cache_corrupted=: ;;
1963     ,set)
1964       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966       ac_cache_corrupted=: ;;
1967     ,);;
1968     *)
1969       if test "x$ac_old_val" != "x$ac_new_val"; then
1970         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1973 echo "$as_me:   former value:  $ac_old_val" >&2;}
1974         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1975 echo "$as_me:   current value: $ac_new_val" >&2;}
1976         ac_cache_corrupted=:
1977       fi;;
1978   esac
1979   # Pass precious variables to config.status.
1980   if test "$ac_new_set" = set; then
1981     case $ac_new_val in
1982     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1983     *) ac_arg=$ac_var=$ac_new_val ;;
1984     esac
1985     case " $ac_configure_args " in
1986       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1987       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988     esac
1989   fi
1990 done
1991 if $ac_cache_corrupted; then
1992   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1993 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020
2021
2022
2023 ac_config_headers="$ac_config_headers config.h"
2024
2025
2026 am__api_version="1.7"
2027 ac_aux_dir=
2028 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2029   if test -f "$ac_dir/install-sh"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/install-sh -c"
2032     break
2033   elif test -f "$ac_dir/install.sh"; then
2034     ac_aux_dir=$ac_dir
2035     ac_install_sh="$ac_aux_dir/install.sh -c"
2036     break
2037   elif test -f "$ac_dir/shtool"; then
2038     ac_aux_dir=$ac_dir
2039     ac_install_sh="$ac_aux_dir/shtool install -c"
2040     break
2041   fi
2042 done
2043 if test -z "$ac_aux_dir"; then
2044   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2056
2057
2058 # Find a good install program.  We prefer a C program (faster),
2059 # so one script is as good as another.  But avoid the broken or
2060 # incompatible versions:
2061 # SysV /etc/install, /usr/sbin/install
2062 # SunOS /usr/etc/install
2063 # IRIX /sbin/install
2064 # AIX /bin/install
2065 # AmigaOS /C/install, which installs bootblocks on floppy discs
2066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2069 # OS/2's system install, which has a completely different semantic
2070 # ./install, which can be erroneously created by make from ./install.sh.
2071 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2072 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2073 if test -z "$INSTALL"; then
2074 if test "${ac_cv_path_install+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   # Account for people who put trailing slashes in PATH elements.
2083 case $as_dir/ in
2084   ./ | .// | /cC/* | \
2085   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2086   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2087   /usr/ucb/* ) ;;
2088   *)
2089     # OSF1 and SCO ODT 3.0 have their own names for install.
2090     # Don't use installbsd from OSF since it installs stuff as root
2091     # by default.
2092     for ac_prog in ginstall scoinst install; do
2093       for ac_exec_ext in '' $ac_executable_extensions; do
2094         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2095           if test $ac_prog = install &&
2096             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2097             # AIX install.  It has an incompatible calling convention.
2098             :
2099           elif test $ac_prog = install &&
2100             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2101             # program-specific install script used by HP pwplus--don't use.
2102             :
2103           else
2104             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2105             break 3
2106           fi
2107         fi
2108       done
2109     done
2110     ;;
2111 esac
2112 done
2113 IFS=$as_save_IFS
2114
2115
2116 fi
2117   if test "${ac_cv_path_install+set}" = set; then
2118     INSTALL=$ac_cv_path_install
2119   else
2120     # As a last resort, use the slow shell script.  Don't cache a
2121     # value for INSTALL within a source directory, because that will
2122     # break other packages using the cache if that directory is
2123     # removed, or if the value is a relative name.
2124     INSTALL=$ac_install_sh
2125   fi
2126 fi
2127 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2128 echo "${ECHO_T}$INSTALL" >&6; }
2129
2130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131 # It thinks the first close brace ends the variable substitution.
2132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2133
2134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2135
2136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2137
2138 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2139 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2140 # Just in case
2141 sleep 1
2142 echo timestamp > conftest.file
2143 # Do `set' in a subshell so we don't clobber the current shell's
2144 # arguments.  Must try -L first in case configure is actually a
2145 # symlink; some systems play weird games with the mod time of symlinks
2146 # (eg FreeBSD returns the mod time of the symlink's containing
2147 # directory).
2148 if (
2149    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2150    if test "$*" = "X"; then
2151       # -L didn't work.
2152       set X `ls -t $srcdir/configure conftest.file`
2153    fi
2154    rm -f conftest.file
2155    if test "$*" != "X $srcdir/configure conftest.file" \
2156       && test "$*" != "X conftest.file $srcdir/configure"; then
2157
2158       # If neither matched, then we have a broken ls.  This can happen
2159       # if, for instance, CONFIG_SHELL is bash and it inherits a
2160       # broken ls alias from the environment.  This has actually
2161       # happened.  Such a system could not be considered "sane".
2162       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2163 alias in your environment" >&5
2164 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2165 alias in your environment" >&2;}
2166    { (exit 1); exit 1; }; }
2167    fi
2168
2169    test "$2" = conftest.file
2170    )
2171 then
2172    # Ok.
2173    :
2174 else
2175    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2176 Check your system clock" >&5
2177 echo "$as_me: error: newly created file is older than distributed files!
2178 Check your system clock" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181 { echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6; }
2183 test "$program_prefix" != NONE &&
2184   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2185 # Use a double $ so make ignores it.
2186 test "$program_suffix" != NONE &&
2187   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2188 # Double any \ or $.  echo might interpret backslashes.
2189 # By default was `s,x,x', remove it if useless.
2190 cat <<\_ACEOF >conftest.sed
2191 s/[\\$]/&&/g;s/;s,x,x,$//
2192 _ACEOF
2193 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2194 rm -f conftest.sed
2195
2196
2197 # expand $ac_aux_dir to an absolute path
2198 am_aux_dir=`cd $ac_aux_dir && pwd`
2199
2200 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2201 # Use eval to expand $SHELL
2202 if eval "$MISSING --run true"; then
2203   am_missing_run="$MISSING --run "
2204 else
2205   am_missing_run=
2206   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2207 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2208 fi
2209
2210 for ac_prog in gawk mawk nawk awk
2211 do
2212   # Extract the first word of "$ac_prog", so it can be a program name with args.
2213 set dummy $ac_prog; ac_word=$2
2214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216 if test "${ac_cv_prog_AWK+set}" = set; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   if test -n "$AWK"; then
2220   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225   IFS=$as_save_IFS
2226   test -z "$as_dir" && as_dir=.
2227   for ac_exec_ext in '' $ac_executable_extensions; do
2228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2229     ac_cv_prog_AWK="$ac_prog"
2230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231     break 2
2232   fi
2233 done
2234 done
2235 IFS=$as_save_IFS
2236
2237 fi
2238 fi
2239 AWK=$ac_cv_prog_AWK
2240 if test -n "$AWK"; then
2241   { echo "$as_me:$LINENO: result: $AWK" >&5
2242 echo "${ECHO_T}$AWK" >&6; }
2243 else
2244   { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2246 fi
2247
2248
2249   test -n "$AWK" && break
2250 done
2251
2252 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2253 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2254 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   cat >conftest.make <<\_ACEOF
2259 SHELL = /bin/sh
2260 all:
2261         @echo '@@@%%%=$(MAKE)=@@@%%%'
2262 _ACEOF
2263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2265   *@@@%%%=?*=@@@%%%*)
2266     eval ac_cv_prog_make_${ac_make}_set=yes;;
2267   *)
2268     eval ac_cv_prog_make_${ac_make}_set=no;;
2269 esac
2270 rm -f conftest.make
2271 fi
2272 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2273   { echo "$as_me:$LINENO: result: yes" >&5
2274 echo "${ECHO_T}yes" >&6; }
2275   SET_MAKE=
2276 else
2277   { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279   SET_MAKE="MAKE=${MAKE-make}"
2280 fi
2281
2282 rm -rf .tst 2>/dev/null
2283 mkdir .tst 2>/dev/null
2284 if test -d .tst; then
2285   am__leading_dot=.
2286 else
2287   am__leading_dot=_
2288 fi
2289 rmdir .tst 2>/dev/null
2290
2291  # test to see if srcdir already configured
2292 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2293    test -f $srcdir/config.status; then
2294   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296    { (exit 1); exit 1; }; }
2297 fi
2298
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301   if (cygpath --version) >/dev/null 2>/dev/null; then
2302     CYGPATH_W='cygpath -w'
2303   else
2304     CYGPATH_W=echo
2305   fi
2306 fi
2307
2308
2309 # Define the identity of the package.
2310  PACKAGE=GConf-dbus
2311  VERSION=2.16.0
2312
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2316 _ACEOF
2317
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2321 _ACEOF
2322
2323 # Some tools Automake needs.
2324
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339
2340 AMTAR=${AMTAR-"${am_missing_run}tar"}
2341
2342 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2343
2344 # Installed binaries are usually stripped using `strip' when the user
2345 # run `make install-strip'.  However `strip' might not be the right
2346 # tool to use in cross-compilation environments, therefore Automake
2347 # will honor the `STRIP' environment variable to overrule this program.
2348 if test "$cross_compiling" != no; then
2349   if test -n "$ac_tool_prefix"; then
2350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}strip; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_STRIP+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   if test -n "$STRIP"; then
2358   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363   IFS=$as_save_IFS
2364   test -z "$as_dir" && as_dir=.
2365   for ac_exec_ext in '' $ac_executable_extensions; do
2366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2367     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369     break 2
2370   fi
2371 done
2372 done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 STRIP=$ac_cv_prog_STRIP
2378 if test -n "$STRIP"; then
2379   { echo "$as_me:$LINENO: result: $STRIP" >&5
2380 echo "${ECHO_T}$STRIP" >&6; }
2381 else
2382   { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2384 fi
2385
2386
2387 fi
2388 if test -z "$ac_cv_prog_STRIP"; then
2389   ac_ct_STRIP=$STRIP
2390   # Extract the first word of "strip", so it can be a program name with args.
2391 set dummy strip; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_STRIP"; then
2398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2407     ac_cv_prog_ac_ct_STRIP="strip"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2418 if test -n "$ac_ct_STRIP"; then
2419   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2420 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2421 else
2422   { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2424 fi
2425
2426   if test "x$ac_ct_STRIP" = x; then
2427     STRIP=":"
2428   else
2429     case $cross_compiling:$ac_tool_warned in
2430 yes:)
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet.  If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2438 esac
2439     STRIP=$ac_ct_STRIP
2440   fi
2441 else
2442   STRIP="$ac_cv_prog_STRIP"
2443 fi
2444
2445 fi
2446 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2447
2448 # We need awk for the "check" target.  The system "awk" is bad on
2449 # some platforms.
2450
2451
2452
2453
2454 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2455 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2456     # Check whether --enable-maintainer-mode was given.
2457 if test "${enable_maintainer_mode+set}" = set; then
2458   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2459 else
2460   USE_MAINTAINER_MODE=no
2461 fi
2462
2463   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2464 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2465
2466
2467 if test $USE_MAINTAINER_MODE = yes; then
2468   MAINTAINER_MODE_TRUE=
2469   MAINTAINER_MODE_FALSE='#'
2470 else
2471   MAINTAINER_MODE_TRUE='#'
2472   MAINTAINER_MODE_FALSE=
2473 fi
2474
2475   MAINT=$MAINTAINER_MODE_TRUE
2476
2477
2478
2479 # Make sure we can run config.sub.
2480 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2481   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2482 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2483    { (exit 1); exit 1; }; }
2484
2485 { echo "$as_me:$LINENO: checking build system type" >&5
2486 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2487 if test "${ac_cv_build+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   ac_build_alias=$build_alias
2491 test "x$ac_build_alias" = x &&
2492   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2493 test "x$ac_build_alias" = x &&
2494   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2495 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2496    { (exit 1); exit 1; }; }
2497 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2498   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2499 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2500    { (exit 1); exit 1; }; }
2501
2502 fi
2503 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2504 echo "${ECHO_T}$ac_cv_build" >&6; }
2505 case $ac_cv_build in
2506 *-*-*) ;;
2507 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2508 echo "$as_me: error: invalid value of canonical build" >&2;}
2509    { (exit 1); exit 1; }; };;
2510 esac
2511 build=$ac_cv_build
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_build
2514 shift
2515 build_cpu=$1
2516 build_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 build_os=$*
2521 IFS=$ac_save_IFS
2522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2523
2524
2525 { echo "$as_me:$LINENO: checking host system type" >&5
2526 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2527 if test "${ac_cv_host+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test "x$host_alias" = x; then
2531   ac_cv_host=$ac_cv_build
2532 else
2533   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2534     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2535 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2536    { (exit 1); exit 1; }; }
2537 fi
2538
2539 fi
2540 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2541 echo "${ECHO_T}$ac_cv_host" >&6; }
2542 case $ac_cv_host in
2543 *-*-*) ;;
2544 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2545 echo "$as_me: error: invalid value of canonical host" >&2;}
2546    { (exit 1); exit 1; }; };;
2547 esac
2548 host=$ac_cv_host
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_host
2551 shift
2552 host_cpu=$1
2553 host_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 host_os=$*
2558 IFS=$ac_save_IFS
2559 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 case "$host" in
2563   *-*-mingw*)
2564     os_win32=yes
2565     ;;
2566   *)
2567     os_win32=no
2568     ;;
2569 esac
2570
2571
2572
2573 if test "$os_win32" = "yes"; then
2574   OS_WIN32_TRUE=
2575   OS_WIN32_FALSE='#'
2576 else
2577   OS_WIN32_TRUE='#'
2578   OS_WIN32_FALSE=
2579 fi
2580
2581
2582 if test "$os_win32" = "yes"; then
2583   if test x$enable_static = xyes -o x$enable_static = x; then
2584     { echo "$as_me:$LINENO: WARNING: Disabling static library build, must build as DLL on Windows." >&5
2585 echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows." >&2;}
2586     enable_static=no
2587   fi
2588   if test x$enable_shared = xno; then
2589     { echo "$as_me:$LINENO: WARNING: Enabling shared library build, must build as DLL on Windows." >&5
2590 echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows." >&2;}
2591   fi
2592   enable_shared=yes
2593 fi
2594
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 if test -n "$ac_tool_prefix"; then
2601   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$CC"; then
2609   ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630   { echo "$as_me:$LINENO: result: $CC" >&5
2631 echo "${ECHO_T}$CC" >&6; }
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$ac_cv_prog_CC"; then
2640   ac_ct_CC=$CC
2641   # Extract the first word of "gcc", so it can be a program name with args.
2642 set dummy gcc; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -n "$ac_ct_CC"; then
2649   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656   for ac_exec_ext in '' $ac_executable_extensions; do
2657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2658     ac_cv_prog_ac_ct_CC="gcc"
2659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2671 echo "${ECHO_T}$ac_ct_CC" >&6; }
2672 else
2673   { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2675 fi
2676
2677   if test "x$ac_ct_CC" = x; then
2678     CC=""
2679   else
2680     case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet.  If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet.  If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690     CC=$ac_ct_CC
2691   fi
2692 else
2693   CC="$ac_cv_prog_CC"
2694 fi
2695
2696 if test -z "$CC"; then
2697           if test -n "$ac_tool_prefix"; then
2698     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}cc; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   if test -n "$CC"; then
2706   ac_cv_prog_CC="$CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_CC="${ac_tool_prefix}cc"
2716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727   { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2729 else
2730   { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735   fi
2736 fi
2737 if test -z "$CC"; then
2738   # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -n "$CC"; then
2746   ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748   ac_prog_rejected=no
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754   for ac_exec_ext in '' $ac_executable_extensions; do
2755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2756     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757        ac_prog_rejected=yes
2758        continue
2759      fi
2760     ac_cv_prog_CC="cc"
2761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762     break 2
2763   fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 if test $ac_prog_rejected = yes; then
2769   # We found a bogon in the path, so make sure we never use it.
2770   set dummy $ac_cv_prog_CC
2771   shift
2772   if test $# != 0; then
2773     # We chose a different compiler from the bogus one.
2774     # However, it has the same basename, so the bogon will be chosen
2775     # first if we set CC to just the basename; use the full file name.
2776     shift
2777     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2778   fi
2779 fi
2780 fi
2781 fi
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784   { echo "$as_me:$LINENO: result: $CC" >&5
2785 echo "${ECHO_T}$CC" >&6; }
2786 else
2787   { echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6; }
2789 fi
2790
2791
2792 fi
2793 if test -z "$CC"; then
2794   if test -n "$ac_tool_prefix"; then
2795   for ac_prog in cl.exe
2796   do
2797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802   echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804   if test -n "$CC"; then
2805   ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812   for ac_exec_ext in '' $ac_executable_extensions; do
2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816     break 2
2817   fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826   { echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6; }
2828 else
2829   { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2831 fi
2832
2833
2834     test -n "$CC" && break
2835   done
2836 fi
2837 if test -z "$CC"; then
2838   ac_ct_CC=$CC
2839   for ac_prog in cl.exe
2840 do
2841   # Extract the first word of "$ac_prog", so it can be a program name with args.
2842 set dummy $ac_prog; ac_word=$2
2843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848   if test -n "$ac_ct_CC"; then
2849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856   for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_ac_ct_CC="$ac_prog"
2859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6; }
2872 else
2873   { echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6; }
2875 fi
2876
2877
2878   test -n "$ac_ct_CC" && break
2879 done
2880
2881   if test "x$ac_ct_CC" = x; then
2882     CC=""
2883   else
2884     case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887 whose name does not start with the host triplet.  If you think this
2888 configuration is useful to you, please write to autoconf@gnu.org." >&5
2889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet.  If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894     CC=$ac_ct_CC
2895   fi
2896 fi
2897
2898 fi
2899
2900
2901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO: checking for C compiler version" >&5
2909 ac_compiler=`set X $ac_compile; echo $2`
2910 { (ac_try="$ac_compiler --version >&5"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_compiler --version >&5") 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }
2920 { (ac_try="$ac_compiler -v >&5"
2921 case "(($ac_try" in
2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923   *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926   (eval "$ac_compiler -v >&5") 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }
2930 { (ac_try="$ac_compiler -V >&5"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compiler -V >&5") 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }
2940
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951
2952   ;
2953   return 0;
2954 }
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2962 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2963 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964 #
2965 # List of possible output files, starting from the most likely.
2966 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2967 # only as a last resort.  b.out is created by i960 compilers.
2968 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2969 #
2970 # The IRIX 6 linker writes into existing files which may not be
2971 # executable, retaining their permissions.  Remove them first so a
2972 # subsequent execution test works.
2973 ac_rmfiles=
2974 for ac_file in $ac_files
2975 do
2976   case $ac_file in
2977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2978     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979   esac
2980 done
2981 rm -f $ac_rmfiles
2982
2983 if { (ac_try="$ac_link_default"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_link_default") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2996 # so that the user can short-circuit this test for compilers unknown to
2997 # Autoconf.
2998 for ac_file in $ac_files
2999 do
3000   test -f "$ac_file" || continue
3001   case $ac_file in
3002     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3003         ;;
3004     [ab].out )
3005         # We found the default executable, but exeext='' is most
3006         # certainly right.
3007         break;;
3008     *.* )
3009         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3010         then :; else
3011            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012         fi
3013         # We set ac_cv_exeext here because the later test for it is not
3014         # safe: cross compilers may not add the suffix if given an `-o'
3015         # argument, so we may need to know it at that point already.
3016         # Even if this section looks crufty: it has the advantage of
3017         # actually working.
3018         break;;
3019     * )
3020         break;;
3021   esac
3022 done
3023 test "$ac_cv_exeext" = no && ac_cv_exeext=
3024
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&2;}
3033    { (exit 77); exit 77; }; }
3034 fi
3035
3036 ac_exeext=$ac_cv_exeext
3037 { echo "$as_me:$LINENO: result: $ac_file" >&5
3038 echo "${ECHO_T}$ac_file" >&6; }
3039
3040 # Check that the compiler produces executables we can run.  If not, either
3041 # the compiler is broken, or we cross compile.
3042 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3043 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3044 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3045 # If not cross compiling, check that we can run a simple program.
3046 if test "$cross_compiling" != yes; then
3047   if { ac_try='./$ac_file'
3048   { (case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_try") 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057     cross_compiling=no
3058   else
3059     if test "$cross_compiling" = maybe; then
3060         cross_compiling=yes
3061     else
3062         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." >&5
3065 echo "$as_me: error: cannot run C compiled programs.
3066 If you meant to cross compile, use \`--host'.
3067 See \`config.log' for more details." >&2;}
3068    { (exit 1); exit 1; }; }
3069     fi
3070   fi
3071 fi
3072 { echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6; }
3074
3075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3076 ac_clean_files=$ac_clean_files_save
3077 # Check that the compiler produces executables we can run.  If not, either
3078 # the compiler is broken, or we cross compile.
3079 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3081 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3082 echo "${ECHO_T}$cross_compiling" >&6; }
3083
3084 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3086 if { (ac_try="$ac_link"
3087 case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_link") 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; then
3096   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3097 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3098 # work properly (i.e., refer to `conftest.exe'), while it won't with
3099 # `rm'.
3100 for ac_file in conftest.exe conftest conftest.*; do
3101   test -f "$ac_file" || continue
3102   case $ac_file in
3103     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3104     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105           break;;
3106     * ) break;;
3107   esac
3108 done
3109 else
3110   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&5
3112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3113 See \`config.log' for more details." >&2;}
3114    { (exit 1); exit 1; }; }
3115 fi
3116
3117 rm -f conftest$ac_cv_exeext
3118 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3119 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3120
3121 rm -f conftest.$ac_ext
3122 EXEEXT=$ac_cv_exeext
3123 ac_exeext=$EXEEXT
3124 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3125 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3126 if test "${ac_cv_objext+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135
3136 int
3137 main ()
3138 {
3139
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.o conftest.obj
3145 if { (ac_try="$ac_compile"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_compile") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; then
3155   for ac_file in conftest.o conftest.obj conftest.*; do
3156   test -f "$ac_file" || continue;
3157   case $ac_file in
3158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3159     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160        break;;
3161   esac
3162 done
3163 else
3164   echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3170 See \`config.log' for more details." >&2;}
3171    { (exit 1); exit 1; }; }
3172 fi
3173
3174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3175 fi
3176 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3177 echo "${ECHO_T}$ac_cv_objext" >&6; }
3178 OBJEXT=$ac_cv_objext
3179 ac_objext=$OBJEXT
3180 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3181 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3182 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195 #ifndef __GNUC__
3196        choke me
3197 #endif
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_compile") 2>conftest.er1
3211   ac_status=$?
3212   grep -v '^ *+' conftest.er1 >conftest.err
3213   rm -f conftest.er1
3214   cat conftest.err >&5
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } &&
3217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3218   { (case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_try") 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; } &&
3227          { ac_try='test -s conftest.$ac_objext'
3228   { (case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_try") 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237   ac_compiler_gnu=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242         ac_compiler_gnu=no
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247
3248 fi
3249 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3250 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3251 GCC=`test $ac_compiler_gnu = yes && echo yes`
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3255 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_g+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_save_c_werror_flag=$ac_c_werror_flag
3260    ac_c_werror_flag=yes
3261    ac_cv_prog_cc_g=no
3262    CFLAGS="-g"
3263    cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269
3270 int
3271 main ()
3272 {
3273
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_compile") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } &&
3292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3293   { (case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_try") 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; } &&
3302          { ac_try='test -s conftest.$ac_objext'
3303   { (case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308   (eval "$ac_try") 2>&5
3309   ac_status=$?
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); }; }; then
3312   ac_cv_prog_cc_g=yes
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317         CFLAGS=""
3318       cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348   { (case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_try") 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; } &&
3357          { ac_try='test -s conftest.$ac_objext'
3358   { (case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_try") 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; }; then
3367   :
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372         ac_c_werror_flag=$ac_save_c_werror_flag
3373          CFLAGS="-g"
3374          cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380
3381 int
3382 main ()
3383 {
3384
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_compile") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } &&
3403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3404   { (case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_try") 2>&5
3410   ac_status=$?
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); }; } &&
3413          { ac_try='test -s conftest.$ac_objext'
3414   { (case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419   (eval "$ac_try") 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   ac_cv_prog_cc_g=yes
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428
3429 fi
3430
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 fi
3436
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438    ac_c_werror_flag=$ac_save_c_werror_flag
3439 fi
3440 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3441 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3442 if test "$ac_test_CFLAGS" = set; then
3443   CFLAGS=$ac_save_CFLAGS
3444 elif test $ac_cv_prog_cc_g = yes; then
3445   if test "$GCC" = yes; then
3446     CFLAGS="-g -O2"
3447   else
3448     CFLAGS="-g"
3449   fi
3450 else
3451   if test "$GCC" = yes; then
3452     CFLAGS="-O2"
3453   else
3454     CFLAGS=
3455   fi
3456 fi
3457 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3458 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3459 if test "${ac_cv_prog_cc_c89+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   ac_cv_prog_cc_c89=no
3463 ac_save_CC=$CC
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #include <stdarg.h>
3471 #include <stdio.h>
3472 #include <sys/types.h>
3473 #include <sys/stat.h>
3474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3475 struct buf { int x; };
3476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3477 static char *e (p, i)
3478      char **p;
3479      int i;
3480 {
3481   return p[i];
3482 }
3483 static char *f (char * (*g) (char **, int), char **p, ...)
3484 {
3485   char *s;
3486   va_list v;
3487   va_start (v,p);
3488   s = g (p, va_arg (v,int));
3489   va_end (v);
3490   return s;
3491 }
3492
3493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3494    function prototypes and stuff, but not '\xHH' hex character constants.
3495    These don't provoke an error unfortunately, instead are silently treated
3496    as 'x'.  The following induces an error, until -std is added to get
3497    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3498    array size at least.  It's necessary to write '\x00'==0 to get something
3499    that's true only with -std.  */
3500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3501
3502 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3503    inside strings and character constants.  */
3504 #define FOO(x) 'x'
3505 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3506
3507 int test (int i, double x);
3508 struct s1 {int (*f) (int a);};
3509 struct s2 {int (*f) (double a);};
3510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3511 int argc;
3512 char **argv;
3513 int
3514 main ()
3515 {
3516 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3522         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3523 do
3524   CC="$ac_save_CC $ac_arg"
3525   rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532   (eval "$ac_compile") 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } &&
3539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3540   { (case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_try") 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; } &&
3549          { ac_try='test -s conftest.$ac_objext'
3550   { (case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_try") 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; }; then
3559   ac_cv_prog_cc_c89=$ac_arg
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext
3568   test "x$ac_cv_prog_cc_c89" != "xno" && break
3569 done
3570 rm -f conftest.$ac_ext
3571 CC=$ac_save_CC
3572
3573 fi
3574 # AC_CACHE_VAL
3575 case "x$ac_cv_prog_cc_c89" in
3576   x)
3577     { echo "$as_me:$LINENO: result: none needed" >&5
3578 echo "${ECHO_T}none needed" >&6; } ;;
3579   xno)
3580     { echo "$as_me:$LINENO: result: unsupported" >&5
3581 echo "${ECHO_T}unsupported" >&6; } ;;
3582   *)
3583     CC="$CC $ac_cv_prog_cc_c89"
3584     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3585 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3586 esac
3587
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 DEPDIR="${am__leading_dot}deps"
3595
3596 ac_config_commands="$ac_config_commands depfiles"
3597
3598
3599 am_make=${MAKE-make}
3600 cat > confinc << 'END'
3601 am__doit:
3602         @echo done
3603 .PHONY: am__doit
3604 END
3605 # If we don't find an include directive, just comment out the code.
3606 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3607 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3608 am__include="#"
3609 am__quote=
3610 _am_result=none
3611 # First try GNU make style include.
3612 echo "include confinc" > confmf
3613 # We grep out `Entering directory' and `Leaving directory'
3614 # messages which can occur if `w' ends up in MAKEFLAGS.
3615 # In particular we don't look at `^make:' because GNU make might
3616 # be invoked under some other name (usually "gmake"), in which
3617 # case it prints its new name instead of `make'.
3618 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3619    am__include=include
3620    am__quote=
3621    _am_result=GNU
3622 fi
3623 # Now try BSD make style include.
3624 if test "$am__include" = "#"; then
3625    echo '.include "confinc"' > confmf
3626    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3627       am__include=.include
3628       am__quote="\""
3629       _am_result=BSD
3630    fi
3631 fi
3632
3633
3634 { echo "$as_me:$LINENO: result: $_am_result" >&5
3635 echo "${ECHO_T}$_am_result" >&6; }
3636 rm -f confinc confmf
3637
3638 # Check whether --enable-dependency-tracking was given.
3639 if test "${enable_dependency_tracking+set}" = set; then
3640   enableval=$enable_dependency_tracking;
3641 fi
3642
3643 if test "x$enable_dependency_tracking" != xno; then
3644   am_depcomp="$ac_aux_dir/depcomp"
3645   AMDEPBACKSLASH='\'
3646 fi
3647
3648
3649 if test "x$enable_dependency_tracking" != xno; then
3650   AMDEP_TRUE=
3651   AMDEP_FALSE='#'
3652 else
3653   AMDEP_TRUE='#'
3654   AMDEP_FALSE=
3655 fi
3656
3657
3658
3659
3660 depcc="$CC"   am_compiler_list=
3661
3662 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3663 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3664 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3668   # We make a subdir and do the tests there.  Otherwise we can end up
3669   # making bogus files that we don't know about and never remove.  For
3670   # instance it was reported that on HP-UX the gcc test will end up
3671   # making a dummy file named `D' -- because `-MD' means `put the output
3672   # in D'.
3673   mkdir conftest.dir
3674   # Copy depcomp to subdir because otherwise we won't find it if we're
3675   # using a relative directory.
3676   cp "$am_depcomp" conftest.dir
3677   cd conftest.dir
3678   # We will build objects and dependencies in a subdirectory because
3679   # it helps to detect inapplicable dependency modes.  For instance
3680   # both Tru64's cc and ICC support -MD to output dependencies as a
3681   # side effect of compilation, but ICC will put the dependencies in
3682   # the current directory while Tru64 will put them in the object
3683   # directory.
3684   mkdir sub
3685
3686   am_cv_CC_dependencies_compiler_type=none
3687   if test "$am_compiler_list" = ""; then
3688      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3689   fi
3690   for depmode in $am_compiler_list; do
3691     # Setup a source with many dependencies, because some compilers
3692     # like to wrap large dependency lists on column 80 (with \), and
3693     # we should not choose a depcomp mode which is confused by this.
3694     #
3695     # We need to recreate these files for each test, as the compiler may
3696     # overwrite some of them when testing with obscure command lines.
3697     # This happens at least with the AIX C compiler.
3698     : > sub/conftest.c
3699     for i in 1 2 3 4 5 6; do
3700       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3701       : > sub/conftst$i.h
3702     done
3703     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704
3705     case $depmode in
3706     nosideeffect)
3707       # after this tag, mechanisms are not by side-effect, so they'll
3708       # only be used when explicitly requested
3709       if test "x$enable_dependency_tracking" = xyes; then
3710         continue
3711       else
3712         break
3713       fi
3714       ;;
3715     none) break ;;
3716     esac
3717     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3718     # mode.  It turns out that the SunPro C++ compiler does not properly
3719     # handle `-M -o', and we need to detect this.
3720     if depmode=$depmode \
3721        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3722        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3723        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3724          >/dev/null 2>conftest.err &&
3725        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3726        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3727        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3728       # icc doesn't choke on unknown options, it will just issue warnings
3729       # (even with -Werror).  So we grep stderr for any message
3730       # that says an option was ignored.
3731       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3732         am_cv_CC_dependencies_compiler_type=$depmode
3733         break
3734       fi
3735     fi
3736   done
3737
3738   cd ..
3739   rm -rf conftest.dir
3740 else
3741   am_cv_CC_dependencies_compiler_type=none
3742 fi
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748
3749
3750
3751 if
3752   test "x$enable_dependency_tracking" != xno \
3753   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3754   am__fastdepCC_TRUE=
3755   am__fastdepCC_FALSE='#'
3756 else
3757   am__fastdepCC_TRUE='#'
3758   am__fastdepCC_FALSE=
3759 fi
3760
3761
3762 ac_ext=cpp
3763 ac_cpp='$CXXCPP $CPPFLAGS'
3764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3767 if test -z "$CXX"; then
3768   if test -n "$CCC"; then
3769     CXX=$CCC
3770   else
3771     if test -n "$ac_tool_prefix"; then
3772   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3773   do
3774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_CXX+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -n "$CXX"; then
3782   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3791     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 CXX=$ac_cv_prog_CXX
3802 if test -n "$CXX"; then
3803   { echo "$as_me:$LINENO: result: $CXX" >&5
3804 echo "${ECHO_T}$CXX" >&6; }
3805 else
3806   { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3808 fi
3809
3810
3811     test -n "$CXX" && break
3812   done
3813 fi
3814 if test -z "$CXX"; then
3815   ac_ct_CXX=$CXX
3816   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3817 do
3818   # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3822 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   if test -n "$ac_ct_CXX"; then
3826   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3835     ac_cv_prog_ac_ct_CXX="$ac_prog"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3846 if test -n "$ac_ct_CXX"; then
3847   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3848 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3849 else
3850   { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3852 fi
3853
3854
3855   test -n "$ac_ct_CXX" && break
3856 done
3857
3858   if test "x$ac_ct_CXX" = x; then
3859     CXX="g++"
3860   else
3861     case $cross_compiling:$ac_tool_warned in
3862 yes:)
3863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3864 whose name does not start with the host triplet.  If you think this
3865 configuration is useful to you, please write to autoconf@gnu.org." >&5
3866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3867 whose name does not start with the host triplet.  If you think this
3868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3869 ac_tool_warned=yes ;;
3870 esac
3871     CXX=$ac_ct_CXX
3872   fi
3873 fi
3874
3875   fi
3876 fi
3877 # Provide some information about the compiler.
3878 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3879 ac_compiler=`set X $ac_compile; echo $2`
3880 { (ac_try="$ac_compiler --version >&5"
3881 case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_compiler --version >&5") 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }
3890 { (ac_try="$ac_compiler -v >&5"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_compiler -v >&5") 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }
3900 { (ac_try="$ac_compiler -V >&5"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_compiler -V >&5") 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }
3910
3911 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3912 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3913 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926 #ifndef __GNUC__
3927        choke me
3928 #endif
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941   (eval "$ac_compile") 2>conftest.er1
3942   ac_status=$?
3943   grep -v '^ *+' conftest.er1 >conftest.err
3944   rm -f conftest.er1
3945   cat conftest.err >&5
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); } &&
3948          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3949   { (case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954   (eval "$ac_try") 2>&5
3955   ac_status=$?
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); }; } &&
3958          { ac_try='test -s conftest.$ac_objext'
3959   { (case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_try") 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; }; then
3968   ac_compiler_gnu=yes
3969 else
3970   echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973         ac_compiler_gnu=no
3974 fi
3975
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3978
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3981 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3982 GXX=`test $ac_compiler_gnu = yes && echo yes`
3983 ac_test_CXXFLAGS=${CXXFLAGS+set}
3984 ac_save_CXXFLAGS=$CXXFLAGS
3985 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3986 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3987 if test "${ac_cv_prog_cxx_g+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3991    ac_cxx_werror_flag=yes
3992    ac_cv_prog_cxx_g=no
3993    CXXFLAGS="-g"
3994    cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
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_compile") 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); } &&
4023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4024   { (case "(($ac_try" in
4025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026   *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029   (eval "$ac_try") 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (case "(($ac_try" in
4035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036   *) ac_try_echo=$ac_try;;
4037 esac
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039   (eval "$ac_try") 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; }; then
4043   ac_cv_prog_cxx_g=yes
4044 else
4045   echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4047
4048         CXXFLAGS=""
4049       cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068   *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071   (eval "$ac_compile") 2>conftest.er1
4072   ac_status=$?
4073   grep -v '^ *+' conftest.er1 >conftest.err
4074   rm -f conftest.er1
4075   cat conftest.err >&5
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } &&
4078          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4079   { (case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_try") 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; } &&
4088          { ac_try='test -s conftest.$ac_objext'
4089   { (case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_try") 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; }; then
4098   :
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4104          CXXFLAGS="-g"
4105          cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4122 case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127   (eval "$ac_compile") 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4135   { (case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_try") 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; } &&
4144          { ac_try='test -s conftest.$ac_objext'
4145   { (case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_try") 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; }; then
4154   ac_cv_prog_cxx_g=yes
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 fi
4167
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4170 fi
4171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4172 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4173 if test "$ac_test_CXXFLAGS" = set; then
4174   CXXFLAGS=$ac_save_CXXFLAGS
4175 elif test $ac_cv_prog_cxx_g = yes; then
4176   if test "$GXX" = yes; then
4177     CXXFLAGS="-g -O2"
4178   else
4179     CXXFLAGS="-g"
4180   fi
4181 else
4182   if test "$GXX" = yes; then
4183     CXXFLAGS="-O2"
4184   else
4185     CXXFLAGS=
4186   fi
4187 fi
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193
4194 depcc="$CXX"  am_compiler_list=
4195
4196 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4197 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4198 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4202   # We make a subdir and do the tests there.  Otherwise we can end up
4203   # making bogus files that we don't know about and never remove.  For
4204   # instance it was reported that on HP-UX the gcc test will end up
4205   # making a dummy file named `D' -- because `-MD' means `put the output
4206   # in D'.
4207   mkdir conftest.dir
4208   # Copy depcomp to subdir because otherwise we won't find it if we're
4209   # using a relative directory.
4210   cp "$am_depcomp" conftest.dir
4211   cd conftest.dir
4212   # We will build objects and dependencies in a subdirectory because
4213   # it helps to detect inapplicable dependency modes.  For instance
4214   # both Tru64's cc and ICC support -MD to output dependencies as a
4215   # side effect of compilation, but ICC will put the dependencies in
4216   # the current directory while Tru64 will put them in the object
4217   # directory.
4218   mkdir sub
4219
4220   am_cv_CXX_dependencies_compiler_type=none
4221   if test "$am_compiler_list" = ""; then
4222      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4223   fi
4224   for depmode in $am_compiler_list; do
4225     # Setup a source with many dependencies, because some compilers
4226     # like to wrap large dependency lists on column 80 (with \), and
4227     # we should not choose a depcomp mode which is confused by this.
4228     #
4229     # We need to recreate these files for each test, as the compiler may
4230     # overwrite some of them when testing with obscure command lines.
4231     # This happens at least with the AIX C compiler.
4232     : > sub/conftest.c
4233     for i in 1 2 3 4 5 6; do
4234       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4235       : > sub/conftst$i.h
4236     done
4237     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4238
4239     case $depmode in
4240     nosideeffect)
4241       # after this tag, mechanisms are not by side-effect, so they'll
4242       # only be used when explicitly requested
4243       if test "x$enable_dependency_tracking" = xyes; then
4244         continue
4245       else
4246         break
4247       fi
4248       ;;
4249     none) break ;;
4250     esac
4251     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4252     # mode.  It turns out that the SunPro C++ compiler does not properly
4253     # handle `-M -o', and we need to detect this.
4254     if depmode=$depmode \
4255        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4256        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4257        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4258          >/dev/null 2>conftest.err &&
4259        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4260        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4261        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4262       # icc doesn't choke on unknown options, it will just issue warnings
4263       # (even with -Werror).  So we grep stderr for any message
4264       # that says an option was ignored.
4265       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4266         am_cv_CXX_dependencies_compiler_type=$depmode
4267         break
4268       fi
4269     fi
4270   done
4271
4272   cd ..
4273   rm -rf conftest.dir
4274 else
4275   am_cv_CXX_dependencies_compiler_type=none
4276 fi
4277
4278 fi
4279 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4280 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4281 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4282
4283
4284
4285 if
4286   test "x$enable_dependency_tracking" != xno \
4287   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4288   am__fastdepCXX_TRUE=
4289   am__fastdepCXX_FALSE='#'
4290 else
4291   am__fastdepCXX_TRUE='#'
4292   am__fastdepCXX_FALSE=
4293 fi
4294
4295
4296
4297 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4298 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4299 if test "${ac_cv_search_strerror+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   ac_func_search_save_LIBS=$LIBS
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309
4310 /* Override any GCC internal prototype to avoid an error.
4311    Use char because int might match the return type of a GCC
4312    builtin and then its argument prototype would still apply.  */
4313 #ifdef __cplusplus
4314 extern "C"
4315 #endif
4316 char strerror ();
4317 int
4318 main ()
4319 {
4320 return strerror ();
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 for ac_lib in '' cposix; do
4326   if test -z "$ac_lib"; then
4327     ac_res="none required"
4328   else
4329     ac_res=-l$ac_lib
4330     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4331   fi
4332   rm -f conftest.$ac_objext conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_link") 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } &&
4346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347   { (case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_try") 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; } &&
4356          { ac_try='test -s conftest$ac_exeext'
4357   { (case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362   (eval "$ac_try") 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   ac_cv_search_strerror=$ac_res
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371
4372 fi
4373
4374 rm -f core conftest.err conftest.$ac_objext \
4375       conftest$ac_exeext
4376   if test "${ac_cv_search_strerror+set}" = set; then
4377   break
4378 fi
4379 done
4380 if test "${ac_cv_search_strerror+set}" = set; then
4381   :
4382 else
4383   ac_cv_search_strerror=no
4384 fi
4385 rm conftest.$ac_ext
4386 LIBS=$ac_func_search_save_LIBS
4387 fi
4388 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4389 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4390 ac_res=$ac_cv_search_strerror
4391 if test "$ac_res" != no; then
4392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4393
4394 fi
4395
4396
4397
4398
4399 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4400 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4401 if test "${am_cv_prog_cc_stdc+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   am_cv_prog_cc_stdc=no
4405 ac_save_CC="$CC"
4406 # Don't try gcc -ansi; that turns off useful extensions and
4407 # breaks some systems' header files.
4408 # AIX                   -qlanglvl=ansi
4409 # Ultrix and OSF/1      -std1
4410 # HP-UX 10.20 and later -Ae
4411 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4412 # SVR4                  -Xc -D__EXTENSIONS__
4413 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4414 do
4415   CC="$ac_save_CC $ac_arg"
4416   cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h.  */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h.  */
4422 #include <stdarg.h>
4423 #include <stdio.h>
4424 #include <sys/types.h>
4425 #include <sys/stat.h>
4426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4427 struct buf { int x; };
4428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4429 static char *e (p, i)
4430      char **p;
4431      int i;
4432 {
4433   return p[i];
4434 }
4435 static char *f (char * (*g) (char **, int), char **p, ...)
4436 {
4437   char *s;
4438   va_list v;
4439   va_start (v,p);
4440   s = g (p, va_arg (v,int));
4441   va_end (v);
4442   return s;
4443 }
4444 int test (int i, double x);
4445 struct s1 {int (*f) (int a);};
4446 struct s2 {int (*f) (double a);};
4447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4448 int argc;
4449 char **argv;
4450
4451 int
4452 main ()
4453 {
4454
4455 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468   (eval "$ac_compile") 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4476   { (case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481   (eval "$ac_try") 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; } &&
4485          { ac_try='test -s conftest.$ac_objext'
4486   { (case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_try") 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }; }; then
4495   am_cv_prog_cc_stdc="$ac_arg"; break
4496 else
4497   echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500
4501 fi
4502
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 done
4505 CC="$ac_save_CC"
4506
4507 fi
4508
4509 if test -z "$am_cv_prog_cc_stdc"; then
4510   { echo "$as_me:$LINENO: result: none needed" >&5
4511 echo "${ECHO_T}none needed" >&6; }
4512 else
4513   { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4514 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4515 fi
4516 case "x$am_cv_prog_cc_stdc" in
4517   x|xno) ;;
4518   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4519 esac
4520
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4528 # On Suns, sometimes $CPP names a directory.
4529 if test -n "$CPP" && test -d "$CPP"; then
4530   CPP=
4531 fi
4532 if test -z "$CPP"; then
4533   if test "${ac_cv_prog_CPP+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536       # Double quotes because CPP needs to be expanded
4537     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4538     do
4539       ac_preproc_ok=false
4540 for ac_c_preproc_warn_flag in '' yes
4541 do
4542   # Use a header file that comes with gcc, so configuring glibc
4543   # with a fresh cross-compiler works.
4544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545   # <limits.h> exists even on freestanding compilers.
4546   # On the NeXT, cc -E runs the code through the compiler's parser,
4547   # not just through cpp. "Syntax error" is here to catch this case.
4548   cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554 #ifdef __STDC__
4555 # include <limits.h>
4556 #else
4557 # include <assert.h>
4558 #endif
4559                      Syntax error
4560 _ACEOF
4561 if { (ac_try="$ac_cpp conftest.$ac_ext"
4562 case "(($ac_try" in
4563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564   *) ac_try_echo=$ac_try;;
4565 esac
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4568   ac_status=$?
4569   grep -v '^ *+' conftest.er1 >conftest.err
4570   rm -f conftest.er1
4571   cat conftest.err >&5
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } >/dev/null; then
4574   if test -s conftest.err; then
4575     ac_cpp_err=$ac_c_preproc_warn_flag
4576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4577   else
4578     ac_cpp_err=
4579   fi
4580 else
4581   ac_cpp_err=yes
4582 fi
4583 if test -z "$ac_cpp_err"; then
4584   :
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589   # Broken: fails on valid input.
4590 continue
4591 fi
4592
4593 rm -f conftest.err conftest.$ac_ext
4594
4595   # OK, works on sane cases.  Now check whether nonexistent headers
4596   # can be detected and how.
4597   cat >conftest.$ac_ext <<_ACEOF
4598 /* confdefs.h.  */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h.  */
4603 #include <ac_nonexistent.h>
4604 _ACEOF
4605 if { (ac_try="$ac_cpp conftest.$ac_ext"
4606 case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } >/dev/null; then
4618   if test -s conftest.err; then
4619     ac_cpp_err=$ac_c_preproc_warn_flag
4620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4621   else
4622     ac_cpp_err=
4623   fi
4624 else
4625   ac_cpp_err=yes
4626 fi
4627 if test -z "$ac_cpp_err"; then
4628   # Broken: success on invalid input.
4629 continue
4630 else
4631   echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634   # Passes both tests.
4635 ac_preproc_ok=:
4636 break
4637 fi
4638
4639 rm -f conftest.err conftest.$ac_ext
4640
4641 done
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then
4645   break
4646 fi
4647
4648     done
4649     ac_cv_prog_CPP=$CPP
4650
4651 fi
4652   CPP=$ac_cv_prog_CPP
4653 else
4654   ac_cv_prog_CPP=$CPP
4655 fi
4656 { echo "$as_me:$LINENO: result: $CPP" >&5
4657 echo "${ECHO_T}$CPP" >&6; }
4658 ac_preproc_ok=false
4659 for ac_c_preproc_warn_flag in '' yes
4660 do
4661   # Use a header file that comes with gcc, so configuring glibc
4662   # with a fresh cross-compiler works.
4663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664   # <limits.h> exists even on freestanding compilers.
4665   # On the NeXT, cc -E runs the code through the compiler's parser,
4666   # not just through cpp. "Syntax error" is here to catch this case.
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 #ifdef __STDC__
4674 # include <limits.h>
4675 #else
4676 # include <assert.h>
4677 #endif
4678                      Syntax error
4679 _ACEOF
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 case "(($ac_try" in
4682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683   *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } >/dev/null; then
4693   if test -s conftest.err; then
4694     ac_cpp_err=$ac_c_preproc_warn_flag
4695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4696   else
4697     ac_cpp_err=
4698   fi
4699 else
4700   ac_cpp_err=yes
4701 fi
4702 if test -z "$ac_cpp_err"; then
4703   :
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708   # Broken: fails on valid input.
4709 continue
4710 fi
4711
4712 rm -f conftest.err conftest.$ac_ext
4713
4714   # OK, works on sane cases.  Now check whether nonexistent headers
4715   # can be detected and how.
4716   cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 #include <ac_nonexistent.h>
4723 _ACEOF
4724 if { (ac_try="$ac_cpp conftest.$ac_ext"
4725 case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } >/dev/null; then
4737   if test -s conftest.err; then
4738     ac_cpp_err=$ac_c_preproc_warn_flag
4739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4740   else
4741     ac_cpp_err=
4742   fi
4743 else
4744   ac_cpp_err=yes
4745 fi
4746 if test -z "$ac_cpp_err"; then
4747   # Broken: success on invalid input.
4748 continue
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753   # Passes both tests.
4754 ac_preproc_ok=:
4755 break
4756 fi
4757
4758 rm -f conftest.err conftest.$ac_ext
4759
4760 done
4761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4762 rm -f conftest.err conftest.$ac_ext
4763 if $ac_preproc_ok; then
4764   :
4765 else
4766   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4767 See \`config.log' for more details." >&5
4768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4769 See \`config.log' for more details." >&2;}
4770    { (exit 1); exit 1; }; }
4771 fi
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778
4779
4780 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4781 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_GREP+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   # Extract the first word of "grep ggrep" to use in msg output
4786 if test -z "$GREP"; then
4787 set dummy grep ggrep; ac_prog_name=$2
4788 if test "${ac_cv_path_GREP+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   ac_path_GREP_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_prog in grep ggrep; do
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4801     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4802     # Check for GNU ac_path_GREP and select it if it is found.
4803   # Check for GNU $ac_path_GREP
4804 case `"$ac_path_GREP" --version 2>&1` in
4805 *GNU*)
4806   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4807 *)
4808   ac_count=0
4809   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4810   while :
4811   do
4812     cat "conftest.in" "conftest.in" >"conftest.tmp"
4813     mv "conftest.tmp" "conftest.in"
4814     cp "conftest.in" "conftest.nl"
4815     echo 'GREP' >> "conftest.nl"
4816     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818     ac_count=`expr $ac_count + 1`
4819     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4820       # Best one so far, save it but keep looking for a better one
4821       ac_cv_path_GREP="$ac_path_GREP"
4822       ac_path_GREP_max=$ac_count
4823     fi
4824     # 10*(2^10) chars as input seems more than enough
4825     test $ac_count -gt 10 && break
4826   done
4827   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828 esac
4829
4830
4831     $ac_path_GREP_found && break 3
4832   done
4833 done
4834
4835 done
4836 IFS=$as_save_IFS
4837
4838
4839 fi
4840
4841 GREP="$ac_cv_path_GREP"
4842 if test -z "$GREP"; then
4843   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4844 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4845    { (exit 1); exit 1; }; }
4846 fi
4847
4848 else
4849   ac_cv_path_GREP=$GREP
4850 fi
4851
4852
4853 fi
4854 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4855 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4856  GREP="$ac_cv_path_GREP"
4857
4858
4859 { echo "$as_me:$LINENO: checking for egrep" >&5
4860 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_EGREP+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4865    then ac_cv_path_EGREP="$GREP -E"
4866    else
4867      # Extract the first word of "egrep" to use in msg output
4868 if test -z "$EGREP"; then
4869 set dummy egrep; ac_prog_name=$2
4870 if test "${ac_cv_path_EGREP+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   ac_path_EGREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_prog in egrep; do
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4883     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4884     # Check for GNU ac_path_EGREP and select it if it is found.
4885   # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4887 *GNU*)
4888   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4889 *)
4890   ac_count=0
4891   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4892   while :
4893   do
4894     cat "conftest.in" "conftest.in" >"conftest.tmp"
4895     mv "conftest.tmp" "conftest.in"
4896     cp "conftest.in" "conftest.nl"
4897     echo 'EGREP' >> "conftest.nl"
4898     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900     ac_count=`expr $ac_count + 1`
4901     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902       # Best one so far, save it but keep looking for a better one
4903       ac_cv_path_EGREP="$ac_path_EGREP"
4904       ac_path_EGREP_max=$ac_count
4905     fi
4906     # 10*(2^10) chars as input seems more than enough
4907     test $ac_count -gt 10 && break
4908   done
4909   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910 esac
4911
4912
4913     $ac_path_EGREP_found && break 3
4914   done
4915 done
4916
4917 done
4918 IFS=$as_save_IFS
4919
4920
4921 fi
4922
4923 EGREP="$ac_cv_path_EGREP"
4924 if test -z "$EGREP"; then
4925   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4926 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4927    { (exit 1); exit 1; }; }
4928 fi
4929
4930 else
4931   ac_cv_path_EGREP=$EGREP
4932 fi
4933
4934
4935    fi
4936 fi
4937 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4938 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4939  EGREP="$ac_cv_path_EGREP"
4940
4941
4942 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4943 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4944 if test "${ac_cv_header_stdc+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 #include <stdlib.h>
4954 #include <stdarg.h>
4955 #include <string.h>
4956 #include <float.h>
4957
4958 int
4959 main ()
4960 {
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970   *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973   (eval "$ac_compile") 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } &&
4980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4981   { (case "(($ac_try" in
4982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983   *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986   (eval "$ac_try") 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; } &&
4990          { ac_try='test -s conftest.$ac_objext'
4991   { (case "(($ac_try" in
4992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993   *) ac_try_echo=$ac_try;;
4994 esac
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996   (eval "$ac_try") 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   ac_cv_header_stdc=yes
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005         ac_cv_header_stdc=no
5006 fi
5007
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009
5010 if test $ac_cv_header_stdc = yes; then
5011   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 #include <string.h>
5019
5020 _ACEOF
5021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5022   $EGREP "memchr" >/dev/null 2>&1; then
5023   :
5024 else
5025   ac_cv_header_stdc=no
5026 fi
5027 rm -f conftest*
5028
5029 fi
5030
5031 if test $ac_cv_header_stdc = yes; then
5032   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #include <stdlib.h>
5040
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043   $EGREP "free" >/dev/null 2>&1; then
5044   :
5045 else
5046   ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest*
5049
5050 fi
5051
5052 if test $ac_cv_header_stdc = yes; then
5053   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5054   if test "$cross_compiling" = yes; then
5055   :
5056 else
5057   cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063 #include <ctype.h>
5064 #include <stdlib.h>
5065 #if ((' ' & 0x0FF) == 0x020)
5066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068 #else
5069 # define ISLOWER(c) \
5070                    (('a' <= (c) && (c) <= 'i') \
5071                      || ('j' <= (c) && (c) <= 'r') \
5072                      || ('s' <= (c) && (c) <= 'z'))
5073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074 #endif
5075
5076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5077 int
5078 main ()
5079 {
5080   int i;
5081   for (i = 0; i < 256; i++)
5082     if (XOR (islower (i), ISLOWER (i))
5083         || toupper (i) != TOUPPER (i))
5084       return 2;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest$ac_exeext
5089 if { (ac_try="$ac_link"
5090 case "(($ac_try" in
5091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092   *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095   (eval "$ac_link") 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099   { (case "(($ac_try" in
5100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101   *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104   (eval "$ac_try") 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   :
5109 else
5110   echo "$as_me: program exited with status $ac_status" >&5
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ( exit $ac_status )
5115 ac_cv_header_stdc=no
5116 fi
5117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 fi
5119
5120
5121 fi
5122 fi
5123 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5124 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5125 if test $ac_cv_header_stdc = yes; then
5126
5127 cat >>confdefs.h <<\_ACEOF
5128 #define STDC_HEADERS 1
5129 _ACEOF
5130
5131 fi
5132
5133 #AC_ARG_PROGRAM
5134
5135
5136 # Check whether --enable-shared was given.
5137 if test "${enable_shared+set}" = set; then
5138   enableval=$enable_shared; p=${PACKAGE-default}
5139     case $enableval in
5140     yes) enable_shared=yes ;;
5141     no) enable_shared=no ;;
5142     *)
5143       enable_shared=no
5144       # Look at the argument we got.  We use all the common list separators.
5145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5146       for pkg in $enableval; do
5147         IFS="$lt_save_ifs"
5148         if test "X$pkg" = "X$p"; then
5149           enable_shared=yes
5150         fi
5151       done
5152       IFS="$lt_save_ifs"
5153       ;;
5154     esac
5155 else
5156   enable_shared=yes
5157 fi
5158
5159
5160 # Check whether --enable-static was given.
5161 if test "${enable_static+set}" = set; then
5162   enableval=$enable_static; p=${PACKAGE-default}
5163     case $enableval in
5164     yes) enable_static=yes ;;
5165     no) enable_static=no ;;
5166     *)
5167      enable_static=no
5168       # Look at the argument we got.  We use all the common list separators.
5169       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5170       for pkg in $enableval; do
5171         IFS="$lt_save_ifs"
5172         if test "X$pkg" = "X$p"; then
5173           enable_static=yes
5174         fi
5175       done
5176       IFS="$lt_save_ifs"
5177       ;;
5178     esac
5179 else
5180   enable_static=yes
5181 fi
5182
5183
5184 # Check whether --enable-fast-install was given.
5185 if test "${enable_fast_install+set}" = set; then
5186   enableval=$enable_fast_install; p=${PACKAGE-default}
5187     case $enableval in
5188     yes) enable_fast_install=yes ;;
5189     no) enable_fast_install=no ;;
5190     *)
5191       enable_fast_install=no
5192       # Look at the argument we got.  We use all the common list separators.
5193       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5194       for pkg in $enableval; do
5195         IFS="$lt_save_ifs"
5196         if test "X$pkg" = "X$p"; then
5197           enable_fast_install=yes
5198         fi
5199       done
5200       IFS="$lt_save_ifs"
5201       ;;
5202     esac
5203 else
5204   enable_fast_install=yes
5205 fi
5206
5207
5208 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5209 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5210 if test "${lt_cv_path_SED+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   # Loop through the user's path and test for sed and gsed.
5214 # Then use that list of sed's as ones to test for truncation.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220   for lt_ac_prog in sed gsed; do
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5223         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5224       fi
5225     done
5226   done
5227 done
5228 lt_ac_max=0
5229 lt_ac_count=0
5230 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5231 # along with /bin/sed that truncates output.
5232 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5233   test ! -f $lt_ac_sed && continue
5234   cat /dev/null > conftest.in
5235   lt_ac_count=0
5236   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5237   # Check for GNU sed and select it if it is found.
5238   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5239     lt_cv_path_SED=$lt_ac_sed
5240     break
5241   fi
5242   while true; do
5243     cat conftest.in conftest.in >conftest.tmp
5244     mv conftest.tmp conftest.in
5245     cp conftest.in conftest.nl
5246     echo >>conftest.nl
5247     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5248     cmp -s conftest.out conftest.nl || break
5249     # 10000 chars as input seems more than enough
5250     test $lt_ac_count -gt 10 && break
5251     lt_ac_count=`expr $lt_ac_count + 1`
5252     if test $lt_ac_count -gt $lt_ac_max; then
5253       lt_ac_max=$lt_ac_count
5254       lt_cv_path_SED=$lt_ac_sed
5255     fi
5256   done
5257 done
5258
5259 fi
5260
5261 SED=$lt_cv_path_SED
5262 { echo "$as_me:$LINENO: result: $SED" >&5
5263 echo "${ECHO_T}$SED" >&6; }
5264
5265
5266 # Check whether --with-gnu-ld was given.
5267 if test "${with_gnu_ld+set}" = set; then
5268   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5269 else
5270   with_gnu_ld=no
5271 fi
5272
5273 ac_prog=ld
5274 if test "$GCC" = yes; then
5275   # Check if gcc -print-prog-name=ld gives a path.
5276   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5278   case $host in
5279   *-*-mingw*)
5280     # gcc leaves a trailing carriage return which upsets mingw
5281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5282   *)
5283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5284   esac
5285   case $ac_prog in
5286     # Accept absolute paths.
5287     [\\/]* | ?:[\\/]*)
5288       re_direlt='/[^/][^/]*/\.\./'
5289       # Canonicalize the pathname of ld
5290       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5291       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5292         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5293       done
5294       test -z "$LD" && LD="$ac_prog"
5295       ;;
5296   "")
5297     # If it fails, then pretend we aren't using GCC.
5298     ac_prog=ld
5299     ;;
5300   *)
5301     # If it is relative, then search for the first ld in PATH.
5302     with_gnu_ld=unknown
5303     ;;
5304   esac
5305 elif test "$with_gnu_ld" = yes; then
5306   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5308 else
5309   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5311 fi
5312 if test "${lt_cv_path_LD+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   if test -z "$LD"; then
5316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5317   for ac_dir in $PATH; do
5318     IFS="$lt_save_ifs"
5319     test -z "$ac_dir" && ac_dir=.
5320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5321       lt_cv_path_LD="$ac_dir/$ac_prog"
5322       # Check to see if the program is GNU ld.  I'd rather use --version,
5323       # but apparently some variants of GNU ld only accept -v.
5324       # Break only if it was the GNU/non-GNU ld that we prefer.
5325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5326       *GNU* | *'with BFD'*)
5327         test "$with_gnu_ld" != no && break
5328         ;;
5329       *)
5330         test "$with_gnu_ld" != yes && break
5331         ;;
5332       esac
5333     fi
5334   done
5335   IFS="$lt_save_ifs"
5336 else
5337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5338 fi
5339 fi
5340
5341 LD="$lt_cv_path_LD"
5342 if test -n "$LD"; then
5343   { echo "$as_me:$LINENO: result: $LD" >&5
5344 echo "${ECHO_T}$LD" >&6; }
5345 else
5346   { echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6; }
5348 fi
5349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5351    { (exit 1); exit 1; }; }
5352 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5358 case `$LD -v 2>&1 </dev/null` in
5359 *GNU* | *'with BFD'*)
5360   lt_cv_prog_gnu_ld=yes
5361   ;;
5362 *)
5363   lt_cv_prog_gnu_ld=no
5364   ;;
5365 esac
5366 fi
5367 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5369 with_gnu_ld=$lt_cv_prog_gnu_ld
5370
5371
5372 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5374 if test "${lt_cv_ld_reload_flag+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   lt_cv_ld_reload_flag='-r'
5378 fi
5379 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5381 reload_flag=$lt_cv_ld_reload_flag
5382 case $reload_flag in
5383 "" | " "*) ;;
5384 *) reload_flag=" $reload_flag" ;;
5385 esac
5386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5387 case $host_os in
5388   darwin*)
5389     if test "$GCC" = yes; then
5390       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5391     else
5392       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5393     fi
5394     ;;
5395 esac
5396
5397 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5398 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5399 if test "${lt_cv_path_NM+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   if test -n "$NM"; then
5403   # Let the user override the test.
5404   lt_cv_path_NM="$NM"
5405 else
5406   lt_nm_to_check="${ac_tool_prefix}nm"
5407   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5408     lt_nm_to_check="$lt_nm_to_check nm"
5409   fi
5410   for lt_tmp_nm in $lt_nm_to_check; do
5411     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5412     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5413       IFS="$lt_save_ifs"
5414       test -z "$ac_dir" && ac_dir=.
5415       tmp_nm="$ac_dir/$lt_tmp_nm"
5416       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5417         # Check to see if the nm accepts a BSD-compat flag.
5418         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5419         #   nm: unknown option "B" ignored
5420         # Tru64's nm complains that /dev/null is an invalid object file
5421         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5422         */dev/null* | *'Invalid file or object type'*)
5423           lt_cv_path_NM="$tmp_nm -B"
5424           break
5425           ;;
5426         *)
5427           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5428           */dev/null*)
5429             lt_cv_path_NM="$tmp_nm -p"
5430             break
5431             ;;
5432           *)
5433             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5434             continue # so that we can try to find one that supports BSD flags
5435             ;;
5436           esac
5437           ;;
5438         esac
5439       fi
5440     done
5441     IFS="$lt_save_ifs"
5442   done
5443   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5444 fi
5445 fi
5446 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5447 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5448 NM="$lt_cv_path_NM"
5449
5450 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5452 LN_S=$as_ln_s
5453 if test "$LN_S" = "ln -s"; then
5454   { echo "$as_me:$LINENO: result: yes" >&5
5455 echo "${ECHO_T}yes" >&6; }
5456 else
5457   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5458 echo "${ECHO_T}no, using $LN_S" >&6; }
5459 fi
5460
5461 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5462 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5463 if test "${lt_cv_deplibs_check_method+set}" = set; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   lt_cv_file_magic_cmd='$MAGIC_CMD'
5467 lt_cv_file_magic_test_file=
5468 lt_cv_deplibs_check_method='unknown'
5469 # Need to set the preceding variable on all platforms that support
5470 # interlibrary dependencies.
5471 # 'none' -- dependencies not supported.
5472 # `unknown' -- same as none, but documents that we really don't know.
5473 # 'pass_all' -- all dependencies passed with no checks.
5474 # 'test_compile' -- check by making test program.
5475 # 'file_magic [[regex]]' -- check by looking for files in library path
5476 # which responds to the $file_magic_cmd with a given extended regex.
5477 # If you have `file' or equivalent on your system and you're not sure
5478 # whether `pass_all' will *always* work, you probably want this one.
5479
5480 case $host_os in
5481 aix4* | aix5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 beos*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 bsdi[45]*)
5490   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5491   lt_cv_file_magic_cmd='/usr/bin/file -L'
5492   lt_cv_file_magic_test_file=/shlib/libc.so
5493   ;;
5494
5495 cygwin*)
5496   # func_win32_libid is a shell function defined in ltmain.sh
5497   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5498   lt_cv_file_magic_cmd='func_win32_libid'
5499   ;;
5500
5501 mingw* | pw32*)
5502   # Base MSYS/MinGW do not provide the 'file' command needed by
5503   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5504   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5505   lt_cv_file_magic_cmd='$OBJDUMP -f'
5506   ;;
5507
5508 darwin* | rhapsody*)
5509   lt_cv_deplibs_check_method=pass_all
5510   ;;
5511
5512 freebsd* | kfreebsd*-gnu | dragonfly*)
5513   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5514     case $host_cpu in
5515     i*86 )
5516       # Not sure whether the presence of OpenBSD here was a mistake.
5517       # Let's accept both of them until this is cleared up.
5518       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5519       lt_cv_file_magic_cmd=/usr/bin/file
5520       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5521       ;;
5522     esac
5523   else
5524     lt_cv_deplibs_check_method=pass_all
5525   fi
5526   ;;
5527
5528 gnu*)
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 hpux10.20* | hpux11*)
5533   lt_cv_file_magic_cmd=/usr/bin/file
5534   case $host_cpu in
5535   ia64*)
5536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5538     ;;
5539   hppa*64*)
5540     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]'
5541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5542     ;;
5543   *)
5544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5546     ;;
5547   esac
5548   ;;
5549
5550 interix3*)
5551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5553   ;;
5554
5555 irix5* | irix6* | nonstopux*)
5556   case $LD in
5557   *-32|*"-32 ") libmagic=32-bit;;
5558   *-n32|*"-n32 ") libmagic=N32;;
5559   *-64|*"-64 ") libmagic=64-bit;;
5560   *) libmagic=never-match;;
5561   esac
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 # This must be Linux ELF.
5566 linux*)
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 netbsd*)
5571   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5573   else
5574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5575   fi
5576   ;;
5577
5578 newos6*)
5579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5580   lt_cv_file_magic_cmd=/usr/bin/file
5581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5582   ;;
5583
5584 nto-qnx*)
5585   lt_cv_deplibs_check_method=unknown
5586   ;;
5587
5588 openbsd*)
5589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5591   else
5592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5593   fi
5594   ;;
5595
5596 osf3* | osf4* | osf5*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 solaris*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 sysv4 | sysv4.3*)
5605   case $host_vendor in
5606   motorola)
5607     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]'
5608     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5609     ;;
5610   ncr)
5611     lt_cv_deplibs_check_method=pass_all
5612     ;;
5613   sequent)
5614     lt_cv_file_magic_cmd='/bin/file'
5615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5616     ;;
5617   sni)
5618     lt_cv_file_magic_cmd='/bin/file'
5619     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5620     lt_cv_file_magic_test_file=/lib/libc.so
5621     ;;
5622   siemens)
5623     lt_cv_deplibs_check_method=pass_all
5624     ;;
5625   pc)
5626     lt_cv_deplibs_check_method=pass_all
5627     ;;
5628   esac
5629   ;;
5630
5631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634 esac
5635
5636 fi
5637 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5638 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5639 file_magic_cmd=$lt_cv_file_magic_cmd
5640 deplibs_check_method=$lt_cv_deplibs_check_method
5641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5642
5643
5644
5645
5646 # If no C compiler was specified, use CC.
5647 LTCC=${LTCC-"$CC"}
5648
5649 # If no C compiler flags were specified, use CFLAGS.
5650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5651
5652 # Allow CC to be a program name with arguments.
5653 compiler=$CC
5654
5655 # Check whether --enable-libtool-lock was given.
5656 if test "${enable_libtool_lock+set}" = set; then
5657   enableval=$enable_libtool_lock;
5658 fi
5659
5660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5661
5662 # Some flags need to be propagated to the compiler or linker for good
5663 # libtool support.
5664 case $host in
5665 ia64-*-hpux*)
5666   # Find out which ABI we are using.
5667   echo 'int i;' > conftest.$ac_ext
5668   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669   (eval $ac_compile) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; then
5673     case `/usr/bin/file conftest.$ac_objext` in
5674     *ELF-32*)
5675       HPUX_IA64_MODE="32"
5676       ;;
5677     *ELF-64*)
5678       HPUX_IA64_MODE="64"
5679       ;;
5680     esac
5681   fi
5682   rm -rf conftest*
5683   ;;
5684 *-*-irix6*)
5685   # Find out which ABI we are using.
5686   echo '#line 5686 "configure"' > conftest.$ac_ext
5687   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688   (eval $ac_compile) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; then
5692    if test "$lt_cv_prog_gnu_ld" = yes; then
5693     case `/usr/bin/file conftest.$ac_objext` in
5694     *32-bit*)
5695       LD="${LD-ld} -melf32bsmip"
5696       ;;
5697     *N32*)
5698       LD="${LD-ld} -melf32bmipn32"
5699       ;;
5700     *64-bit*)
5701       LD="${LD-ld} -melf64bmip"
5702       ;;
5703     esac
5704    else
5705     case `/usr/bin/file conftest.$ac_objext` in
5706     *32-bit*)
5707       LD="${LD-ld} -32"
5708       ;;
5709     *N32*)
5710       LD="${LD-ld} -n32"
5711       ;;
5712     *64-bit*)
5713       LD="${LD-ld} -64"
5714       ;;
5715     esac
5716    fi
5717   fi
5718   rm -rf conftest*
5719   ;;
5720
5721 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5722   # Find out which ABI we are using.
5723   echo 'int i;' > conftest.$ac_ext
5724   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; then
5729     case `/usr/bin/file conftest.o` in
5730     *32-bit*)
5731       case $host in
5732         x86_64-*linux*)
5733           LD="${LD-ld} -m elf_i386"
5734           ;;
5735         ppc64-*linux*|powerpc64-*linux*)
5736           LD="${LD-ld} -m elf32ppclinux"
5737           ;;
5738         s390x-*linux*)
5739           LD="${LD-ld} -m elf_s390"
5740           ;;
5741         sparc64-*linux*)
5742           LD="${LD-ld} -m elf32_sparc"
5743           ;;
5744       esac
5745       ;;
5746     *64-bit*)
5747       case $host in
5748         x86_64-*linux*)
5749           LD="${LD-ld} -m elf_x86_64"
5750           ;;
5751         ppc*-*linux*|powerpc*-*linux*)
5752           LD="${LD-ld} -m elf64ppc"
5753           ;;
5754         s390*-*linux*)
5755           LD="${LD-ld} -m elf64_s390"
5756           ;;
5757         sparc*-*linux*)
5758           LD="${LD-ld} -m elf64_sparc"
5759           ;;
5760       esac
5761       ;;
5762     esac
5763   fi
5764   rm -rf conftest*
5765   ;;
5766
5767 *-*-sco3.2v5*)
5768   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5769   SAVE_CFLAGS="$CFLAGS"
5770   CFLAGS="$CFLAGS -belf"
5771   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5772 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5773 if test "${lt_cv_cc_needs_belf+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   ac_ext=c
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782      cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788
5789 int
5790 main ()
5791 {
5792
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (ac_try="$ac_link"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_link") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5812   { (case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817   (eval "$ac_try") 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; } &&
5821          { ac_try='test -s conftest$ac_exeext'
5822   { (case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827   (eval "$ac_try") 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   lt_cv_cc_needs_belf=yes
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836         lt_cv_cc_needs_belf=no
5837 fi
5838
5839 rm -f core conftest.err conftest.$ac_objext \
5840       conftest$ac_exeext conftest.$ac_ext
5841      ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846
5847 fi
5848 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5849 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5850   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5851     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5852     CFLAGS="$SAVE_CFLAGS"
5853   fi
5854   ;;
5855 sparc*-*solaris*)
5856   # Find out which ABI we are using.
5857   echo 'int i;' > conftest.$ac_ext
5858   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859   (eval $ac_compile) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; then
5863     case `/usr/bin/file conftest.o` in
5864     *64-bit*)
5865       case $lt_cv_prog_gnu_ld in
5866       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5867       *)    LD="${LD-ld} -64" ;;
5868       esac
5869       ;;
5870     esac
5871   fi
5872   rm -rf conftest*
5873   ;;
5874
5875 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5876   if test -n "$ac_tool_prefix"; then
5877   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   if test -n "$DLLTOOL"; then
5885   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 DLLTOOL=$ac_cv_prog_DLLTOOL
5905 if test -n "$DLLTOOL"; then
5906   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5907 echo "${ECHO_T}$DLLTOOL" >&6; }
5908 else
5909   { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5911 fi
5912
5913
5914 fi
5915 if test -z "$ac_cv_prog_DLLTOOL"; then
5916   ac_ct_DLLTOOL=$DLLTOOL
5917   # Extract the first word of "dlltool", so it can be a program name with args.
5918 set dummy dlltool; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   if test -n "$ac_ct_DLLTOOL"; then
5925   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5945 if test -n "$ac_ct_DLLTOOL"; then
5946   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5947 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5948 else
5949   { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5951 fi
5952
5953   if test "x$ac_ct_DLLTOOL" = x; then
5954     DLLTOOL="false"
5955   else
5956     case $cross_compiling:$ac_tool_warned in
5957 yes:)
5958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet.  If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&5
5961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5962 whose name does not start with the host triplet.  If you think this
5963 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5964 ac_tool_warned=yes ;;
5965 esac
5966     DLLTOOL=$ac_ct_DLLTOOL
5967   fi
5968 else
5969   DLLTOOL="$ac_cv_prog_DLLTOOL"
5970 fi
5971
5972   if test -n "$ac_tool_prefix"; then
5973   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}as; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_prog_AS+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   if test -n "$AS"; then
5981   ac_cv_prog_AS="$AS" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988   for ac_exec_ext in '' $ac_executable_extensions; do
5989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5990     ac_cv_prog_AS="${ac_tool_prefix}as"
5991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992     break 2
5993   fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 AS=$ac_cv_prog_AS
6001 if test -n "$AS"; then
6002   { echo "$as_me:$LINENO: result: $AS" >&5
6003 echo "${ECHO_T}$AS" >&6; }
6004 else
6005   { echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_AS"; then
6012   ac_ct_AS=$AS
6013   # Extract the first word of "as", so it can be a program name with args.
6014 set dummy as; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   if test -n "$ac_ct_AS"; then
6021   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028   for ac_exec_ext in '' $ac_executable_extensions; do
6029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030     ac_cv_prog_ac_ct_AS="as"
6031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6041 if test -n "$ac_ct_AS"; then
6042   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6043 echo "${ECHO_T}$ac_ct_AS" >&6; }
6044 else
6045   { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6047 fi
6048
6049   if test "x$ac_ct_AS" = x; then
6050     AS="false"
6051   else
6052     case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6055 whose name does not start with the host triplet.  If you think this
6056 configuration is useful to you, please write to autoconf@gnu.org." >&5
6057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6058 whose name does not start with the host triplet.  If you think this
6059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062     AS=$ac_ct_AS
6063   fi
6064 else
6065   AS="$ac_cv_prog_AS"
6066 fi
6067
6068   if test -n "$ac_tool_prefix"; then
6069   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6073 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   if test -n "$OBJDUMP"; then
6077   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084   for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 OBJDUMP=$ac_cv_prog_OBJDUMP
6097 if test -n "$OBJDUMP"; then
6098   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6099 echo "${ECHO_T}$OBJDUMP" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6103 fi
6104
6105
6106 fi
6107 if test -z "$ac_cv_prog_OBJDUMP"; then
6108   ac_ct_OBJDUMP=$OBJDUMP
6109   # Extract the first word of "objdump", so it can be a program name with args.
6110 set dummy objdump; ac_word=$2
6111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6113 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   if test -n "$ac_ct_OBJDUMP"; then
6117   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124   for ac_exec_ext in '' $ac_executable_extensions; do
6125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6126     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6137 if test -n "$ac_ct_OBJDUMP"; then
6138   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6139 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6143 fi
6144
6145   if test "x$ac_ct_OBJDUMP" = x; then
6146     OBJDUMP="false"
6147   else
6148     case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet.  If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&5
6153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6154 whose name does not start with the host triplet.  If you think this
6155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158     OBJDUMP=$ac_ct_OBJDUMP
6159   fi
6160 else
6161   OBJDUMP="$ac_cv_prog_OBJDUMP"
6162 fi
6163
6164   ;;
6165
6166 esac
6167
6168 need_locks="$enable_libtool_lock"
6169
6170
6171 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6182                   inttypes.h stdint.h unistd.h
6183 do
6184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 $ac_includes_default
6197
6198 #include <$ac_header>
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204   *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207   (eval "$ac_compile") 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } &&
6214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6215   { (case "(($ac_try" in
6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217   *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220   (eval "$ac_try") 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (case "(($ac_try" in
6226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227   *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230   (eval "$ac_try") 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; }; then
6234   eval "$as_ac_Header=yes"
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239         eval "$as_ac_Header=no"
6240 fi
6241
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 fi
6244 ac_res=`eval echo '${'$as_ac_Header'}'`
6245                { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6248   cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6250 _ACEOF
6251
6252 fi
6253
6254 done
6255
6256
6257
6258 for ac_header in dlfcn.h
6259 do
6260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 fi
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268                { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270 else
6271   # Is the header compilable?
6272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h.  */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h.  */
6280 $ac_includes_default
6281 #include <$ac_header>
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6285 case "(($ac_try" in
6286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287   *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290   (eval "$ac_compile") 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } &&
6297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298   { (case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_try") 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; } &&
6307          { ac_try='test -s conftest.$ac_objext'
6308   { (case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_try") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; }; then
6317   ac_header_compiler=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322         ac_header_compiler=no
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327 echo "${ECHO_T}$ac_header_compiler" >&6; }
6328
6329 # Is the header present?
6330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 #include <$ac_header>
6339 _ACEOF
6340 if { (ac_try="$ac_cpp conftest.$ac_ext"
6341 case "(($ac_try" in
6342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343   *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } >/dev/null; then
6353   if test -s conftest.err; then
6354     ac_cpp_err=$ac_c_preproc_warn_flag
6355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6356   else
6357     ac_cpp_err=
6358   fi
6359 else
6360   ac_cpp_err=yes
6361 fi
6362 if test -z "$ac_cpp_err"; then
6363   ac_header_preproc=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368   ac_header_preproc=no
6369 fi
6370
6371 rm -f conftest.err conftest.$ac_ext
6372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6373 echo "${ECHO_T}$ac_header_preproc" >&6; }
6374
6375 # So?  What about this header?
6376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6377   yes:no: )
6378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6382     ac_header_preproc=yes
6383     ;;
6384   no:yes:* )
6385     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6387     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6388 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6389     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6391     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6392 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6395     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6397
6398     ;;
6399 esac
6400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   eval "$as_ac_Header=\$ac_header_preproc"
6406 fi
6407 ac_res=`eval echo '${'$as_ac_Header'}'`
6408                { echo "$as_me:$LINENO: result: $ac_res" >&5
6409 echo "${ECHO_T}$ac_res" >&6; }
6410
6411 fi
6412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6413   cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415 _ACEOF
6416
6417 fi
6418
6419 done
6420
6421
6422
6423 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6424     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6425     (test "X$CXX" != "Xg++"))) ; then
6426   ac_ext=cpp
6427 ac_cpp='$CXXCPP $CPPFLAGS'
6428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6431 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6432 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6433 if test -z "$CXXCPP"; then
6434   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437       # Double quotes because CXXCPP needs to be expanded
6438     for CXXCPP in "$CXX -E" "/lib/cpp"
6439     do
6440       ac_preproc_ok=false
6441 for ac_cxx_preproc_warn_flag in '' yes
6442 do
6443   # Use a header file that comes with gcc, so configuring glibc
6444   # with a fresh cross-compiler works.
6445   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446   # <limits.h> exists even on freestanding compilers.
6447   # On the NeXT, cc -E runs the code through the compiler's parser,
6448   # not just through cpp. "Syntax error" is here to catch this case.
6449   cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #ifdef __STDC__
6456 # include <limits.h>
6457 #else
6458 # include <assert.h>
6459 #endif
6460                      Syntax error
6461 _ACEOF
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6463 case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } >/dev/null; then
6475   if test -s conftest.err; then
6476     ac_cpp_err=$ac_cxx_preproc_warn_flag
6477     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6478   else
6479     ac_cpp_err=
6480   fi
6481 else
6482   ac_cpp_err=yes
6483 fi
6484 if test -z "$ac_cpp_err"; then
6485   :
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490   # Broken: fails on valid input.
6491 continue
6492 fi
6493
6494 rm -f conftest.err conftest.$ac_ext
6495
6496   # OK, works on sane cases.  Now check whether nonexistent headers
6497   # can be detected and how.
6498   cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504 #include <ac_nonexistent.h>
6505 _ACEOF
6506 if { (ac_try="$ac_cpp conftest.$ac_ext"
6507 case "(($ac_try" in
6508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509   *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6513   ac_status=$?
6514   grep -v '^ *+' conftest.er1 >conftest.err
6515   rm -f conftest.er1
6516   cat conftest.err >&5
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } >/dev/null; then
6519   if test -s conftest.err; then
6520     ac_cpp_err=$ac_cxx_preproc_warn_flag
6521     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6522   else
6523     ac_cpp_err=
6524   fi
6525 else
6526   ac_cpp_err=yes
6527 fi
6528 if test -z "$ac_cpp_err"; then
6529   # Broken: success on invalid input.
6530 continue
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535   # Passes both tests.
6536 ac_preproc_ok=:
6537 break
6538 fi
6539
6540 rm -f conftest.err conftest.$ac_ext
6541
6542 done
6543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6544 rm -f conftest.err conftest.$ac_ext
6545 if $ac_preproc_ok; then
6546   break
6547 fi
6548
6549     done
6550     ac_cv_prog_CXXCPP=$CXXCPP
6551
6552 fi
6553   CXXCPP=$ac_cv_prog_CXXCPP
6554 else
6555   ac_cv_prog_CXXCPP=$CXXCPP
6556 fi
6557 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6558 echo "${ECHO_T}$CXXCPP" >&6; }
6559 ac_preproc_ok=false
6560 for ac_cxx_preproc_warn_flag in '' yes
6561 do
6562   # Use a header file that comes with gcc, so configuring glibc
6563   # with a fresh cross-compiler works.
6564   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565   # <limits.h> exists even on freestanding compilers.
6566   # On the NeXT, cc -E runs the code through the compiler's parser,
6567   # not just through cpp. "Syntax error" is here to catch this case.
6568   cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574 #ifdef __STDC__
6575 # include <limits.h>
6576 #else
6577 # include <assert.h>
6578 #endif
6579                      Syntax error
6580 _ACEOF
6581 if { (ac_try="$ac_cpp conftest.$ac_ext"
6582 case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6588   ac_status=$?
6589   grep -v '^ *+' conftest.er1 >conftest.err
6590   rm -f conftest.er1
6591   cat conftest.err >&5
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } >/dev/null; then
6594   if test -s conftest.err; then
6595     ac_cpp_err=$ac_cxx_preproc_warn_flag
6596     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6597   else
6598     ac_cpp_err=
6599   fi
6600 else
6601   ac_cpp_err=yes
6602 fi
6603 if test -z "$ac_cpp_err"; then
6604   :
6605 else
6606   echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609   # Broken: fails on valid input.
6610 continue
6611 fi
6612
6613 rm -f conftest.err conftest.$ac_ext
6614
6615   # OK, works on sane cases.  Now check whether nonexistent headers
6616   # can be detected and how.
6617   cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h.  */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h.  */
6623 #include <ac_nonexistent.h>
6624 _ACEOF
6625 if { (ac_try="$ac_cpp conftest.$ac_ext"
6626 case "(($ac_try" in
6627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628   *) ac_try_echo=$ac_try;;
6629 esac
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6632   ac_status=$?
6633   grep -v '^ *+' conftest.er1 >conftest.err
6634   rm -f conftest.er1
6635   cat conftest.err >&5
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } >/dev/null; then
6638   if test -s conftest.err; then
6639     ac_cpp_err=$ac_cxx_preproc_warn_flag
6640     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6641   else
6642     ac_cpp_err=
6643   fi
6644 else
6645   ac_cpp_err=yes
6646 fi
6647 if test -z "$ac_cpp_err"; then
6648   # Broken: success on invalid input.
6649 continue
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654   # Passes both tests.
6655 ac_preproc_ok=:
6656 break
6657 fi
6658
6659 rm -f conftest.err conftest.$ac_ext
6660
6661 done
6662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6663 rm -f conftest.err conftest.$ac_ext
6664 if $ac_preproc_ok; then
6665   :
6666 else
6667   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6668 See \`config.log' for more details." >&5
6669 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6670 See \`config.log' for more details." >&2;}
6671    { (exit 1); exit 1; }; }
6672 fi
6673
6674 ac_ext=cpp
6675 ac_cpp='$CXXCPP $CPPFLAGS'
6676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6679
6680 fi
6681
6682
6683 ac_ext=f
6684 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6685 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6687 if test -n "$ac_tool_prefix"; then
6688   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6689   do
6690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_F77+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   if test -n "$F77"; then
6698   ac_cv_prog_F77="$F77" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705   for ac_exec_ext in '' $ac_executable_extensions; do
6706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6707     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 F77=$ac_cv_prog_F77
6718 if test -n "$F77"; then
6719   { echo "$as_me:$LINENO: result: $F77" >&5
6720 echo "${ECHO_T}$F77" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727     test -n "$F77" && break
6728   done
6729 fi
6730 if test -z "$F77"; then
6731   ac_ct_F77=$F77
6732   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6733 do
6734   # Extract the first word of "$ac_prog", so it can be a program name with args.
6735 set dummy $ac_prog; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741   if test -n "$ac_ct_F77"; then
6742   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_prog_ac_ct_F77="$ac_prog"
6752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6762 if test -n "$ac_ct_F77"; then
6763   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6764 echo "${ECHO_T}$ac_ct_F77" >&6; }
6765 else
6766   { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6768 fi
6769
6770
6771   test -n "$ac_ct_F77" && break
6772 done
6773
6774   if test "x$ac_ct_F77" = x; then
6775     F77=""
6776   else
6777     case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6780 whose name does not start with the host triplet.  If you think this
6781 configuration is useful to you, please write to autoconf@gnu.org." >&5
6782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6783 whose name does not start with the host triplet.  If you think this
6784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787     F77=$ac_ct_F77
6788   fi
6789 fi
6790
6791
6792 # Provide some information about the compiler.
6793 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6794 ac_compiler=`set X $ac_compile; echo $2`
6795 { (ac_try="$ac_compiler --version >&5"
6796 case "(($ac_try" in
6797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798   *) ac_try_echo=$ac_try;;
6799 esac
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801   (eval "$ac_compiler --version >&5") 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }
6805 { (ac_try="$ac_compiler -v >&5"
6806 case "(($ac_try" in
6807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808   *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811   (eval "$ac_compiler -v >&5") 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }
6815 { (ac_try="$ac_compiler -V >&5"
6816 case "(($ac_try" in
6817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818   *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821   (eval "$ac_compiler -V >&5") 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); }
6825 rm -f a.out
6826
6827 # If we don't use `.F' as extension, the preprocessor is not run on the
6828 # input file.  (Note that this only needs to work for GNU compilers.)
6829 ac_save_ext=$ac_ext
6830 ac_ext=F
6831 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6832 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6833 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   cat >conftest.$ac_ext <<_ACEOF
6837       program main
6838 #ifndef __GNUC__
6839        choke me
6840 #endif
6841
6842       end
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848   *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851   (eval "$ac_compile") 2>conftest.er1
6852   ac_status=$?
6853   grep -v '^ *+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } &&
6858          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6859   { (case "(($ac_try" in
6860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861   *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864   (eval "$ac_try") 2>&5
6865   ac_status=$?
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); }; } &&
6868          { ac_try='test -s conftest.$ac_objext'
6869   { (case "(($ac_try" in
6870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871   *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874   (eval "$ac_try") 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; }; then
6878   ac_compiler_gnu=yes
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883         ac_compiler_gnu=no
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6888
6889 fi
6890 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6891 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6892 ac_ext=$ac_save_ext
6893 ac_test_FFLAGS=${FFLAGS+set}
6894 ac_save_FFLAGS=$FFLAGS
6895 FFLAGS=
6896 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6897 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_f77_g+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   FFLAGS=-g
6902 cat >conftest.$ac_ext <<_ACEOF
6903       program main
6904
6905       end
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6909 case "(($ac_try" in
6910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911   *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914   (eval "$ac_compile") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6922   { (case "(($ac_try" in
6923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924   *) ac_try_echo=$ac_try;;
6925 esac
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927   (eval "$ac_try") 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; } &&
6931          { ac_try='test -s conftest.$ac_objext'
6932   { (case "(($ac_try" in
6933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934   *) ac_try_echo=$ac_try;;
6935 esac
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937   (eval "$ac_try") 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_cv_prog_f77_g=yes
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946         ac_cv_prog_f77_g=no
6947 fi
6948
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950
6951 fi
6952 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6953 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6954 if test "$ac_test_FFLAGS" = set; then
6955   FFLAGS=$ac_save_FFLAGS
6956 elif test $ac_cv_prog_f77_g = yes; then
6957   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6958     FFLAGS="-g -O2"
6959   else
6960     FFLAGS="-g"
6961   fi
6962 else
6963   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6964     FFLAGS="-O2"
6965   else
6966     FFLAGS=
6967   fi
6968 fi
6969
6970 G77=`test $ac_compiler_gnu = yes && echo yes`
6971 ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977
6978
6979 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6980
6981 # find the maximum length of command line arguments
6982 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6983 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6984 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987     i=0
6988   teststring="ABCD"
6989
6990   case $build_os in
6991   msdosdjgpp*)
6992     # On DJGPP, this test can blow up pretty badly due to problems in libc
6993     # (any single argument exceeding 2000 bytes causes a buffer overrun
6994     # during glob expansion).  Even if it were fixed, the result of this
6995     # check would be larger than it should be.
6996     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6997     ;;
6998
6999   gnu*)
7000     # Under GNU Hurd, this test is not required because there is
7001     # no limit to the length of command line arguments.
7002     # Libtool will interpret -1 as no limit whatsoever
7003     lt_cv_sys_max_cmd_len=-1;
7004     ;;
7005
7006   cygwin* | mingw*)
7007     # On Win9x/ME, this test blows up -- it succeeds, but takes
7008     # about 5 minutes as the teststring grows exponentially.
7009     # Worse, since 9x/ME are not pre-emptively multitasking,
7010     # you end up with a "frozen" computer, even though with patience
7011     # the test eventually succeeds (with a max line length of 256k).
7012     # Instead, let's just punt: use the minimum linelength reported by
7013     # all of the supported platforms: 8192 (on NT/2K/XP).
7014     lt_cv_sys_max_cmd_len=8192;
7015     ;;
7016
7017   amigaos*)
7018     # On AmigaOS with pdksh, this test takes hours, literally.
7019     # So we just punt and use a minimum line length of 8192.
7020     lt_cv_sys_max_cmd_len=8192;
7021     ;;
7022
7023   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7024     # This has been around since 386BSD, at least.  Likely further.
7025     if test -x /sbin/sysctl; then
7026       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7027     elif test -x /usr/sbin/sysctl; then
7028       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7029     else
7030       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7031     fi
7032     # And add a safety zone
7033     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7034     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7035     ;;
7036
7037   interix*)
7038     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7039     lt_cv_sys_max_cmd_len=196608
7040     ;;
7041
7042   osf*)
7043     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7044     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7045     # nice to cause kernel panics so lets avoid the loop below.
7046     # First set a reasonable default.
7047     lt_cv_sys_max_cmd_len=16384
7048     #
7049     if test -x /sbin/sysconfig; then
7050       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7051         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7052       esac
7053     fi
7054     ;;
7055   sco3.2v5*)
7056     lt_cv_sys_max_cmd_len=102400
7057     ;;
7058   sysv5* | sco5v6* | sysv4.2uw2*)
7059     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7060     if test -n "$kargmax"; then
7061       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7062     else
7063       lt_cv_sys_max_cmd_len=32768
7064     fi
7065     ;;
7066   *)
7067     # If test is not a shell built-in, we'll probably end up computing a
7068     # maximum length that is only half of the actual maximum length, but
7069     # we can't tell.
7070     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7071     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7072                = "XX$teststring") >/dev/null 2>&1 &&
7073             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7074             lt_cv_sys_max_cmd_len=$new_result &&
7075             test $i != 17 # 1/2 MB should be enough
7076     do
7077       i=`expr $i + 1`
7078       teststring=$teststring$teststring
7079     done
7080     teststring=
7081     # Add a significant safety factor because C++ compilers can tack on massive
7082     # amounts of additional arguments before passing them to the linker.
7083     # It appears as though 1/2 is a usable value.
7084     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7085     ;;
7086   esac
7087
7088 fi
7089
7090 if test -n $lt_cv_sys_max_cmd_len ; then
7091   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7092 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7093 else
7094   { echo "$as_me:$LINENO: result: none" >&5
7095 echo "${ECHO_T}none" >&6; }
7096 fi
7097
7098
7099
7100
7101 # Check for command to grab the raw symbol name followed by C symbol from nm.
7102 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7103 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7104 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107
7108 # These are sane defaults that work on at least a few old systems.
7109 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7110
7111 # Character class describing NM global symbol codes.
7112 symcode='[BCDEGRST]'
7113
7114 # Regexp to match symbols that can be accessed directly from C.
7115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7116
7117 # Transform an extracted symbol line into a proper C declaration
7118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7119
7120 # Transform an extracted symbol line into symbol name and symbol address
7121 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'"
7122
7123 # Define system-specific variables.
7124 case $host_os in
7125 aix*)
7126   symcode='[BCDT]'
7127   ;;
7128 cygwin* | mingw* | pw32*)
7129   symcode='[ABCDGISTW]'
7130   ;;
7131 hpux*) # Its linker distinguishes data from code symbols
7132   if test "$host_cpu" = ia64; then
7133     symcode='[ABCDEGRST]'
7134   fi
7135   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7136   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'"
7137   ;;
7138 linux*)
7139   if test "$host_cpu" = ia64; then
7140     symcode='[ABCDGIRSTW]'
7141     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7142     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'"
7143   fi
7144   ;;
7145 irix* | nonstopux*)
7146   symcode='[BCDEGRST]'
7147   ;;
7148 osf*)
7149   symcode='[BCDEGQRST]'
7150   ;;
7151 solaris*)
7152   symcode='[BDRT]'
7153   ;;
7154 sco3.2v5*)
7155   symcode='[DT]'
7156   ;;
7157 sysv4.2uw2*)
7158   symcode='[DT]'
7159   ;;
7160 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7161   symcode='[ABDT]'
7162   ;;
7163 sysv4)
7164   symcode='[DFNSTU]'
7165   ;;
7166 esac
7167
7168 # Handle CRLF in mingw tool chain
7169 opt_cr=
7170 case $build_os in
7171 mingw*)
7172   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7173   ;;
7174 esac
7175
7176 # If we're using GNU nm, then use its standard symbol codes.
7177 case `$NM -V 2>&1` in
7178 *GNU* | *'with BFD'*)
7179   symcode='[ABCDGIRSTW]' ;;
7180 esac
7181
7182 # Try without a prefix undercore, then with it.
7183 for ac_symprfx in "" "_"; do
7184
7185   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7186   symxfrm="\\1 $ac_symprfx\\2 \\2"
7187
7188   # Write the raw and C identifiers.
7189   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7190
7191   # Check to see that the pipe works correctly.
7192   pipe_works=no
7193
7194   rm -f conftest*
7195   cat > conftest.$ac_ext <<EOF
7196 #ifdef __cplusplus
7197 extern "C" {
7198 #endif
7199 char nm_test_var;
7200 void nm_test_func(){}
7201 #ifdef __cplusplus
7202 }
7203 #endif
7204 int main(){nm_test_var='a';nm_test_func();return(0);}
7205 EOF
7206
7207   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208   (eval $ac_compile) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; then
7212     # Now try to grab the symbols.
7213     nlist=conftest.nm
7214     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7215   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7216   ac_status=$?
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } && test -s "$nlist"; then
7219       # Try sorting and uniquifying the output.
7220       if sort "$nlist" | uniq > "$nlist"T; then
7221         mv -f "$nlist"T "$nlist"
7222       else
7223         rm -f "$nlist"T
7224       fi
7225
7226       # Make sure that we snagged all the symbols we need.
7227       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7228         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7229           cat <<EOF > conftest.$ac_ext
7230 #ifdef __cplusplus
7231 extern "C" {
7232 #endif
7233
7234 EOF
7235           # Now generate the symbol file.
7236           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7237
7238           cat <<EOF >> conftest.$ac_ext
7239 #if defined (__STDC__) && __STDC__
7240 # define lt_ptr_t void *
7241 #else
7242 # define lt_ptr_t char *
7243 # define const
7244 #endif
7245
7246 /* The mapping between symbol names and symbols. */
7247 const struct {
7248   const char *name;
7249   lt_ptr_t address;
7250 }
7251 lt_preloaded_symbols[] =
7252 {
7253 EOF
7254           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7255           cat <<\EOF >> conftest.$ac_ext
7256   {0, (lt_ptr_t) 0}
7257 };
7258
7259 #ifdef __cplusplus
7260 }
7261 #endif
7262 EOF
7263           # Now try linking the two files.
7264           mv conftest.$ac_objext conftstm.$ac_objext
7265           lt_save_LIBS="$LIBS"
7266           lt_save_CFLAGS="$CFLAGS"
7267           LIBS="conftstm.$ac_objext"
7268           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7269           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270   (eval $ac_link) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7274             pipe_works=yes
7275           fi
7276           LIBS="$lt_save_LIBS"
7277           CFLAGS="$lt_save_CFLAGS"
7278         else
7279           echo "cannot find nm_test_func in $nlist" >&5
7280         fi
7281       else
7282         echo "cannot find nm_test_var in $nlist" >&5
7283       fi
7284     else
7285       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7286     fi
7287   else
7288     echo "$progname: failed program was:" >&5
7289     cat conftest.$ac_ext >&5
7290   fi
7291   rm -f conftest* conftst*
7292
7293   # Do not use the global_symbol_pipe unless it works.
7294   if test "$pipe_works" = yes; then
7295     break
7296   else
7297     lt_cv_sys_global_symbol_pipe=
7298   fi
7299 done
7300
7301 fi
7302
7303 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7304   lt_cv_sys_global_symbol_to_cdecl=
7305 fi
7306 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7307   { echo "$as_me:$LINENO: result: failed" >&5
7308 echo "${ECHO_T}failed" >&6; }
7309 else
7310   { echo "$as_me:$LINENO: result: ok" >&5
7311 echo "${ECHO_T}ok" >&6; }
7312 fi
7313
7314 { echo "$as_me:$LINENO: checking for objdir" >&5
7315 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7316 if test "${lt_cv_objdir+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   rm -f .libs 2>/dev/null
7320 mkdir .libs 2>/dev/null
7321 if test -d .libs; then
7322   lt_cv_objdir=.libs
7323 else
7324   # MS-DOS does not allow filenames that begin with a dot.
7325   lt_cv_objdir=_libs
7326 fi
7327 rmdir .libs 2>/dev/null
7328 fi
7329 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7330 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7331 objdir=$lt_cv_objdir
7332
7333
7334
7335
7336
7337 case $host_os in
7338 aix3*)
7339   # AIX sometimes has problems with the GCC collect2 program.  For some
7340   # reason, if we set the COLLECT_NAMES environment variable, the problems
7341   # vanish in a puff of smoke.
7342   if test "X${COLLECT_NAMES+set}" != Xset; then
7343     COLLECT_NAMES=
7344     export COLLECT_NAMES
7345   fi
7346   ;;
7347 esac
7348
7349 # Sed substitution that helps us do robust quoting.  It backslashifies
7350 # metacharacters that are still active within double-quoted strings.
7351 Xsed='sed -e 1s/^X//'
7352 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7353
7354 # Same as above, but do not quote variable references.
7355 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7356
7357 # Sed substitution to delay expansion of an escaped shell variable in a
7358 # double_quote_subst'ed string.
7359 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7360
7361 # Sed substitution to avoid accidental globbing in evaled expressions
7362 no_glob_subst='s/\*/\\\*/g'
7363
7364 # Constants:
7365 rm="rm -f"
7366
7367 # Global variables:
7368 default_ofile=libtool
7369 can_build_shared=yes
7370
7371 # All known linkers require a `.a' archive for static linking (except MSVC,
7372 # which needs '.lib').
7373 libext=a
7374 ltmain="$ac_aux_dir/ltmain.sh"
7375 ofile="$default_ofile"
7376 with_gnu_ld="$lt_cv_prog_gnu_ld"
7377
7378 if test -n "$ac_tool_prefix"; then
7379   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}ar; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_prog_AR+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   if test -n "$AR"; then
7387   ac_cv_prog_AR="$AR" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_prog_AR="${ac_tool_prefix}ar"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 AR=$ac_cv_prog_AR
7407 if test -n "$AR"; then
7408   { echo "$as_me:$LINENO: result: $AR" >&5
7409 echo "${ECHO_T}$AR" >&6; }
7410 else
7411   { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7413 fi
7414
7415
7416 fi
7417 if test -z "$ac_cv_prog_AR"; then
7418   ac_ct_AR=$AR
7419   # Extract the first word of "ar", so it can be a program name with args.
7420 set dummy ar; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   if test -n "$ac_ct_AR"; then
7427   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434   for ac_exec_ext in '' $ac_executable_extensions; do
7435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7436     ac_cv_prog_ac_ct_AR="ar"
7437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438     break 2
7439   fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7447 if test -n "$ac_ct_AR"; then
7448   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7449 echo "${ECHO_T}$ac_ct_AR" >&6; }
7450 else
7451   { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7453 fi
7454
7455   if test "x$ac_ct_AR" = x; then
7456     AR="false"
7457   else
7458     case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7461 whose name does not start with the host triplet.  If you think this
7462 configuration is useful to you, please write to autoconf@gnu.org." >&5
7463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7464 whose name does not start with the host triplet.  If you think this
7465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468     AR=$ac_ct_AR
7469   fi
7470 else
7471   AR="$ac_cv_prog_AR"
7472 fi
7473
7474 if test -n "$ac_tool_prefix"; then
7475   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_prog_RANLIB+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   if test -n "$RANLIB"; then
7483   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490   for ac_exec_ext in '' $ac_executable_extensions; do
7491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7492     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 RANLIB=$ac_cv_prog_RANLIB
7503 if test -n "$RANLIB"; then
7504   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7505 echo "${ECHO_T}$RANLIB" >&6; }
7506 else
7507   { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_RANLIB"; then
7514   ac_ct_RANLIB=$RANLIB
7515   # Extract the first word of "ranlib", so it can be a program name with args.
7516 set dummy ranlib; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   if test -n "$ac_ct_RANLIB"; then
7523   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_ac_ct_RANLIB="ranlib"
7533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7543 if test -n "$ac_ct_RANLIB"; then
7544   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7545 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551   if test "x$ac_ct_RANLIB" = x; then
7552     RANLIB=":"
7553   else
7554     case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7557 whose name does not start with the host triplet.  If you think this
7558 configuration is useful to you, please write to autoconf@gnu.org." >&5
7559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7560 whose name does not start with the host triplet.  If you think this
7561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7562 ac_tool_warned=yes ;;
7563 esac
7564     RANLIB=$ac_ct_RANLIB
7565   fi
7566 else
7567   RANLIB="$ac_cv_prog_RANLIB"
7568 fi
7569
7570 if test -n "$ac_tool_prefix"; then
7571   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}strip; ac_word=$2
7573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575 if test "${ac_cv_prog_STRIP+set}" = set; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578   if test -n "$STRIP"; then
7579   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 STRIP=$ac_cv_prog_STRIP
7599 if test -n "$STRIP"; then
7600   { echo "$as_me:$LINENO: result: $STRIP" >&5
7601 echo "${ECHO_T}$STRIP" >&6; }
7602 else
7603   { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }
7605 fi
7606
7607
7608 fi
7609 if test -z "$ac_cv_prog_STRIP"; then
7610   ac_ct_STRIP=$STRIP
7611   # Extract the first word of "strip", so it can be a program name with args.
7612 set dummy strip; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   if test -n "$ac_ct_STRIP"; then
7619   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_prog_ac_ct_STRIP="strip"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7639 if test -n "$ac_ct_STRIP"; then
7640   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7641 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7642 else
7643   { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7645 fi
7646
7647   if test "x$ac_ct_STRIP" = x; then
7648     STRIP=":"
7649   else
7650     case $cross_compiling:$ac_tool_warned in
7651 yes:)
7652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7653 whose name does not start with the host triplet.  If you think this
7654 configuration is useful to you, please write to autoconf@gnu.org." >&5
7655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7656 whose name does not start with the host triplet.  If you think this
7657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660     STRIP=$ac_ct_STRIP
7661   fi
7662 else
7663   STRIP="$ac_cv_prog_STRIP"
7664 fi
7665
7666
7667 old_CC="$CC"
7668 old_CFLAGS="$CFLAGS"
7669
7670 # Set sane defaults for various variables
7671 test -z "$AR" && AR=ar
7672 test -z "$AR_FLAGS" && AR_FLAGS=cru
7673 test -z "$AS" && AS=as
7674 test -z "$CC" && CC=cc
7675 test -z "$LTCC" && LTCC=$CC
7676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7677 test -z "$DLLTOOL" && DLLTOOL=dlltool
7678 test -z "$LD" && LD=ld
7679 test -z "$LN_S" && LN_S="ln -s"
7680 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7681 test -z "$NM" && NM=nm
7682 test -z "$SED" && SED=sed
7683 test -z "$OBJDUMP" && OBJDUMP=objdump
7684 test -z "$RANLIB" && RANLIB=:
7685 test -z "$STRIP" && STRIP=:
7686 test -z "$ac_objext" && ac_objext=o
7687
7688 # Determine commands to create old-style static archives.
7689 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7690 old_postinstall_cmds='chmod 644 $oldlib'
7691 old_postuninstall_cmds=
7692
7693 if test -n "$RANLIB"; then
7694   case $host_os in
7695   openbsd*)
7696     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7697     ;;
7698   *)
7699     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7700     ;;
7701   esac
7702   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7703 fi
7704
7705 for cc_temp in $compiler""; do
7706   case $cc_temp in
7707     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7708     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7709     \-*) ;;
7710     *) break;;
7711   esac
7712 done
7713 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7714
7715
7716 # Only perform the check for file, if the check method requires it
7717 case $deplibs_check_method in
7718 file_magic*)
7719   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7720     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7721 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   case $MAGIC_CMD in
7726 [\\/*] |  ?:[\\/]*)
7727   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7728   ;;
7729 *)
7730   lt_save_MAGIC_CMD="$MAGIC_CMD"
7731   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7732   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7733   for ac_dir in $ac_dummy; do
7734     IFS="$lt_save_ifs"
7735     test -z "$ac_dir" && ac_dir=.
7736     if test -f $ac_dir/${ac_tool_prefix}file; then
7737       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7738       if test -n "$file_magic_test_file"; then
7739         case $deplibs_check_method in
7740         "file_magic "*)
7741           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7742           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7744             $EGREP "$file_magic_regex" > /dev/null; then
7745             :
7746           else
7747             cat <<EOF 1>&2
7748
7749 *** Warning: the command libtool uses to detect shared libraries,
7750 *** $file_magic_cmd, produces output that libtool cannot recognize.
7751 *** The result is that libtool may fail to recognize shared libraries
7752 *** as such.  This will affect the creation of libtool libraries that
7753 *** depend on shared libraries, but programs linked with such libtool
7754 *** libraries will work regardless of this problem.  Nevertheless, you
7755 *** may want to report the problem to your system manager and/or to
7756 *** bug-libtool@gnu.org
7757
7758 EOF
7759           fi ;;
7760         esac
7761       fi
7762       break
7763     fi
7764   done
7765   IFS="$lt_save_ifs"
7766   MAGIC_CMD="$lt_save_MAGIC_CMD"
7767   ;;
7768 esac
7769 fi
7770
7771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772 if test -n "$MAGIC_CMD"; then
7773   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7774 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7775 else
7776   { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7778 fi
7779
7780 if test -z "$lt_cv_path_MAGIC_CMD"; then
7781   if test -n "$ac_tool_prefix"; then
7782     { echo "$as_me:$LINENO: checking for file" >&5
7783 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7784 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   case $MAGIC_CMD in
7788 [\\/*] |  ?:[\\/]*)
7789   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7790   ;;
7791 *)
7792   lt_save_MAGIC_CMD="$MAGIC_CMD"
7793   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7794   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7795   for ac_dir in $ac_dummy; do
7796     IFS="$lt_save_ifs"
7797     test -z "$ac_dir" && ac_dir=.
7798     if test -f $ac_dir/file; then
7799       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7800       if test -n "$file_magic_test_file"; then
7801         case $deplibs_check_method in
7802         "file_magic "*)
7803           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7804           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7805           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7806             $EGREP "$file_magic_regex" > /dev/null; then
7807             :
7808           else
7809             cat <<EOF 1>&2
7810
7811 *** Warning: the command libtool uses to detect shared libraries,
7812 *** $file_magic_cmd, produces output that libtool cannot recognize.
7813 *** The result is that libtool may fail to recognize shared libraries
7814 *** as such.  This will affect the creation of libtool libraries that
7815 *** depend on shared libraries, but programs linked with such libtool
7816 *** libraries will work regardless of this problem.  Nevertheless, you
7817 *** may want to report the problem to your system manager and/or to
7818 *** bug-libtool@gnu.org
7819
7820 EOF
7821           fi ;;
7822         esac
7823       fi
7824       break
7825     fi
7826   done
7827   IFS="$lt_save_ifs"
7828   MAGIC_CMD="$lt_save_MAGIC_CMD"
7829   ;;
7830 esac
7831 fi
7832
7833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7834 if test -n "$MAGIC_CMD"; then
7835   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7836 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7837 else
7838   { echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6; }
7840 fi
7841
7842   else
7843     MAGIC_CMD=:
7844   fi
7845 fi
7846
7847   fi
7848   ;;
7849 esac
7850
7851 enable_dlopen=no
7852 enable_win32_dll=yes
7853
7854 # Check whether --enable-libtool-lock was given.
7855 if test "${enable_libtool_lock+set}" = set; then
7856   enableval=$enable_libtool_lock;
7857 fi
7858
7859 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7860
7861
7862 # Check whether --with-pic was given.
7863 if test "${with_pic+set}" = set; then
7864   withval=$with_pic; pic_mode="$withval"
7865 else
7866   pic_mode=default
7867 fi
7868
7869 test -z "$pic_mode" && pic_mode=default
7870
7871 # Use C for the default configuration in the libtool script
7872 tagname=
7873 lt_save_CC="$CC"
7874 ac_ext=c
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881 # Source file extension for C test sources.
7882 ac_ext=c
7883
7884 # Object file extension for compiled C test sources.
7885 objext=o
7886 objext=$objext
7887
7888 # Code to be used in simple compile tests
7889 lt_simple_compile_test_code="int some_variable = 0;\n"
7890
7891 # Code to be used in simple link tests
7892 lt_simple_link_test_code='int main(){return(0);}\n'
7893
7894
7895 # If no C compiler was specified, use CC.
7896 LTCC=${LTCC-"$CC"}
7897
7898 # If no C compiler flags were specified, use CFLAGS.
7899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7900
7901 # Allow CC to be a program name with arguments.
7902 compiler=$CC
7903
7904
7905 # save warnings/boilerplate of simple test code
7906 ac_outfile=conftest.$ac_objext
7907 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7909 _lt_compiler_boilerplate=`cat conftest.err`
7910 $rm conftest*
7911
7912 ac_outfile=conftest.$ac_objext
7913 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7915 _lt_linker_boilerplate=`cat conftest.err`
7916 $rm conftest*
7917
7918
7919
7920 lt_prog_compiler_no_builtin_flag=
7921
7922 if test "$GCC" = yes; then
7923   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7924
7925
7926 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7927 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7928 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   lt_cv_prog_compiler_rtti_exceptions=no
7932   ac_outfile=conftest.$ac_objext
7933    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7934    lt_compiler_flag="-fno-rtti -fno-exceptions"
7935    # Insert the option either (1) after the last *FLAGS variable, or
7936    # (2) before a word containing "conftest.", or (3) at the end.
7937    # Note that $ac_compile itself does not contain backslashes and begins
7938    # with a dollar sign (not a hyphen), so the echo should work correctly.
7939    # The option is referenced via a variable to avoid confusing sed.
7940    lt_compile=`echo "$ac_compile" | $SED \
7941    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943    -e 's:$: $lt_compiler_flag:'`
7944    (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
7945    (eval "$lt_compile" 2>conftest.err)
7946    ac_status=$?
7947    cat conftest.err >&5
7948    echo "$as_me:7948: \$? = $ac_status" >&5
7949    if (exit $ac_status) && test -s "$ac_outfile"; then
7950      # The compiler can only warn and ignore the option if not recognized
7951      # So say no if there are warnings other than the usual output.
7952      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7953      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955        lt_cv_prog_compiler_rtti_exceptions=yes
7956      fi
7957    fi
7958    $rm conftest*
7959
7960 fi
7961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7962 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7963
7964 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7965     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7966 else
7967     :
7968 fi
7969
7970 fi
7971
7972 lt_prog_compiler_wl=
7973 lt_prog_compiler_pic=
7974 lt_prog_compiler_static=
7975
7976 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7977 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7978
7979   if test "$GCC" = yes; then
7980     lt_prog_compiler_wl='-Wl,'
7981     lt_prog_compiler_static='-static'
7982
7983     case $host_os in
7984       aix*)
7985       # All AIX code is PIC.
7986       if test "$host_cpu" = ia64; then
7987         # AIX 5 now supports IA64 processor
7988         lt_prog_compiler_static='-Bstatic'
7989       fi
7990       ;;
7991
7992     amigaos*)
7993       # FIXME: we need at least 68020 code to build shared libraries, but
7994       # adding the `-m68020' flag to GCC prevents building anything better,
7995       # like `-m68040'.
7996       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7997       ;;
7998
7999     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8000       # PIC is the default for these OSes.
8001       ;;
8002
8003     mingw* | pw32* | os2*)
8004       # This hack is so that the source file can tell whether it is being
8005       # built for inclusion in a dll (and should export symbols for example).
8006       lt_prog_compiler_pic='-DDLL_EXPORT'
8007       ;;
8008
8009     darwin* | rhapsody*)
8010       # PIC is the default on this platform
8011       # Common symbols not allowed in MH_DYLIB files
8012       lt_prog_compiler_pic='-fno-common'
8013       ;;
8014
8015     interix3*)
8016       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8017       # Instead, we relocate shared libraries at runtime.
8018       ;;
8019
8020     msdosdjgpp*)
8021       # Just because we use GCC doesn't mean we suddenly get shared libraries
8022       # on systems that don't support them.
8023       lt_prog_compiler_can_build_shared=no
8024       enable_shared=no
8025       ;;
8026
8027     sysv4*MP*)
8028       if test -d /usr/nec; then
8029         lt_prog_compiler_pic=-Kconform_pic
8030       fi
8031       ;;
8032
8033     hpux*)
8034       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8035       # not for PA HP-UX.
8036       case $host_cpu in
8037       hppa*64*|ia64*)
8038         # +Z the default
8039         ;;
8040       *)
8041         lt_prog_compiler_pic='-fPIC'
8042         ;;
8043       esac
8044       ;;
8045
8046     *)
8047       lt_prog_compiler_pic='-fPIC'
8048       ;;
8049     esac
8050   else
8051     # PORTME Check for flag to pass linker flags through the system compiler.
8052     case $host_os in
8053     aix*)
8054       lt_prog_compiler_wl='-Wl,'
8055       if test "$host_cpu" = ia64; then
8056         # AIX 5 now supports IA64 processor
8057         lt_prog_compiler_static='-Bstatic'
8058       else
8059         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8060       fi
8061       ;;
8062       darwin*)
8063         # PIC is the default on this platform
8064         # Common symbols not allowed in MH_DYLIB files
8065        case $cc_basename in
8066          xlc*)
8067          lt_prog_compiler_pic='-qnocommon'
8068          lt_prog_compiler_wl='-Wl,'
8069          ;;
8070        esac
8071        ;;
8072
8073     mingw* | pw32* | os2*)
8074       # This hack is so that the source file can tell whether it is being
8075       # built for inclusion in a dll (and should export symbols for example).
8076       lt_prog_compiler_pic='-DDLL_EXPORT'
8077       ;;
8078
8079     hpux9* | hpux10* | hpux11*)
8080       lt_prog_compiler_wl='-Wl,'
8081       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8082       # not for PA HP-UX.
8083       case $host_cpu in
8084       hppa*64*|ia64*)
8085         # +Z the default
8086         ;;
8087       *)
8088         lt_prog_compiler_pic='+Z'
8089         ;;
8090       esac
8091       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8092       lt_prog_compiler_static='${wl}-a ${wl}archive'
8093       ;;
8094
8095     irix5* | irix6* | nonstopux*)
8096       lt_prog_compiler_wl='-Wl,'
8097       # PIC (with -KPIC) is the default.
8098       lt_prog_compiler_static='-non_shared'
8099       ;;
8100
8101     newsos6)
8102       lt_prog_compiler_pic='-KPIC'
8103       lt_prog_compiler_static='-Bstatic'
8104       ;;
8105
8106     linux*)
8107       case $cc_basename in
8108       icc* | ecc*)
8109         lt_prog_compiler_wl='-Wl,'
8110         lt_prog_compiler_pic='-KPIC'
8111         lt_prog_compiler_static='-static'
8112         ;;
8113       pgcc* | pgf77* | pgf90* | pgf95*)
8114         # Portland Group compilers (*not* the Pentium gcc compiler,
8115         # which looks to be a dead project)
8116         lt_prog_compiler_wl='-Wl,'
8117         lt_prog_compiler_pic='-fpic'
8118         lt_prog_compiler_static='-Bstatic'
8119         ;;
8120       ccc*)
8121         lt_prog_compiler_wl='-Wl,'
8122         # All Alpha code is PIC.
8123         lt_prog_compiler_static='-non_shared'
8124         ;;
8125       esac
8126       ;;
8127
8128     osf3* | osf4* | osf5*)
8129       lt_prog_compiler_wl='-Wl,'
8130       # All OSF/1 code is PIC.
8131       lt_prog_compiler_static='-non_shared'
8132       ;;
8133
8134     solaris*)
8135       lt_prog_compiler_pic='-KPIC'
8136       lt_prog_compiler_static='-Bstatic'
8137       case $cc_basename in
8138       f77* | f90* | f95*)
8139         lt_prog_compiler_wl='-Qoption ld ';;
8140       *)
8141         lt_prog_compiler_wl='-Wl,';;
8142       esac
8143       ;;
8144
8145     sunos4*)
8146       lt_prog_compiler_wl='-Qoption ld '
8147       lt_prog_compiler_pic='-PIC'
8148       lt_prog_compiler_static='-Bstatic'
8149       ;;
8150
8151     sysv4 | sysv4.2uw2* | sysv4.3*)
8152       lt_prog_compiler_wl='-Wl,'
8153       lt_prog_compiler_pic='-KPIC'
8154       lt_prog_compiler_static='-Bstatic'
8155       ;;
8156
8157     sysv4*MP*)
8158       if test -d /usr/nec ;then
8159         lt_prog_compiler_pic='-Kconform_pic'
8160         lt_prog_compiler_static='-Bstatic'
8161       fi
8162       ;;
8163
8164     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8165       lt_prog_compiler_wl='-Wl,'
8166       lt_prog_compiler_pic='-KPIC'
8167       lt_prog_compiler_static='-Bstatic'
8168       ;;
8169
8170     unicos*)
8171       lt_prog_compiler_wl='-Wl,'
8172       lt_prog_compiler_can_build_shared=no
8173       ;;
8174
8175     uts4*)
8176       lt_prog_compiler_pic='-pic'
8177       lt_prog_compiler_static='-Bstatic'
8178       ;;
8179
8180     *)
8181       lt_prog_compiler_can_build_shared=no
8182       ;;
8183     esac
8184   fi
8185
8186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8187 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8188
8189 #
8190 # Check to make sure the PIC flag actually works.
8191 #
8192 if test -n "$lt_prog_compiler_pic"; then
8193
8194 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8195 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8196 if test "${lt_prog_compiler_pic_works+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   lt_prog_compiler_pic_works=no
8200   ac_outfile=conftest.$ac_objext
8201    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8202    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8203    # Insert the option either (1) after the last *FLAGS variable, or
8204    # (2) before a word containing "conftest.", or (3) at the end.
8205    # Note that $ac_compile itself does not contain backslashes and begins
8206    # with a dollar sign (not a hyphen), so the echo should work correctly.
8207    # The option is referenced via a variable to avoid confusing sed.
8208    lt_compile=`echo "$ac_compile" | $SED \
8209    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211    -e 's:$: $lt_compiler_flag:'`
8212    (eval echo "\"\$as_me:8212: $lt_compile\"" >&5)
8213    (eval "$lt_compile" 2>conftest.err)
8214    ac_status=$?
8215    cat conftest.err >&5
8216    echo "$as_me:8216: \$? = $ac_status" >&5
8217    if (exit $ac_status) && test -s "$ac_outfile"; then
8218      # The compiler can only warn and ignore the option if not recognized
8219      # So say no if there are warnings other than the usual output.
8220      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8221      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8222      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8223        lt_prog_compiler_pic_works=yes
8224      fi
8225    fi
8226    $rm conftest*
8227
8228 fi
8229 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8230 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8231
8232 if test x"$lt_prog_compiler_pic_works" = xyes; then
8233     case $lt_prog_compiler_pic in
8234      "" | " "*) ;;
8235      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8236      esac
8237 else
8238     lt_prog_compiler_pic=
8239      lt_prog_compiler_can_build_shared=no
8240 fi
8241
8242 fi
8243 case $host_os in
8244   # For platforms which do not support PIC, -DPIC is meaningless:
8245   *djgpp*)
8246     lt_prog_compiler_pic=
8247     ;;
8248   *)
8249     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8250     ;;
8251 esac
8252
8253 #
8254 # Check to make sure the static flag actually works.
8255 #
8256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8257 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8258 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8259 if test "${lt_prog_compiler_static_works+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   lt_prog_compiler_static_works=no
8263    save_LDFLAGS="$LDFLAGS"
8264    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8265    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8266    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8267      # The linker can only warn and ignore the option if not recognized
8268      # So say no if there are warnings
8269      if test -s conftest.err; then
8270        # Append any errors to the config.log.
8271        cat conftest.err 1>&5
8272        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8273        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274        if diff conftest.exp conftest.er2 >/dev/null; then
8275          lt_prog_compiler_static_works=yes
8276        fi
8277      else
8278        lt_prog_compiler_static_works=yes
8279      fi
8280    fi
8281    $rm conftest*
8282    LDFLAGS="$save_LDFLAGS"
8283
8284 fi
8285 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8286 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8287
8288 if test x"$lt_prog_compiler_static_works" = xyes; then
8289     :
8290 else
8291     lt_prog_compiler_static=
8292 fi
8293
8294
8295 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8296 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8297 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   lt_cv_prog_compiler_c_o=no
8301    $rm -r conftest 2>/dev/null
8302    mkdir conftest
8303    cd conftest
8304    mkdir out
8305    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8306
8307    lt_compiler_flag="-o out/conftest2.$ac_objext"
8308    # Insert the option either (1) after the last *FLAGS variable, or
8309    # (2) before a word containing "conftest.", or (3) at the end.
8310    # Note that $ac_compile itself does not contain backslashes and begins
8311    # with a dollar sign (not a hyphen), so the echo should work correctly.
8312    lt_compile=`echo "$ac_compile" | $SED \
8313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315    -e 's:$: $lt_compiler_flag:'`
8316    (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
8317    (eval "$lt_compile" 2>out/conftest.err)
8318    ac_status=$?
8319    cat out/conftest.err >&5
8320    echo "$as_me:8320: \$? = $ac_status" >&5
8321    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8322    then
8323      # The compiler can only warn and ignore the option if not recognized
8324      # So say no if there are warnings
8325      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8326      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8327      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8328        lt_cv_prog_compiler_c_o=yes
8329      fi
8330    fi
8331    chmod u+w . 2>&5
8332    $rm conftest*
8333    # SGI C++ compiler will create directory out/ii_files/ for
8334    # template instantiation
8335    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8336    $rm out/* && rmdir out
8337    cd ..
8338    rmdir conftest
8339    $rm conftest*
8340
8341 fi
8342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8343 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8344
8345
8346 hard_links="nottested"
8347 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8348   # do not overwrite the value of need_locks provided by the user
8349   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8350 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8351   hard_links=yes
8352   $rm conftest*
8353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8354   touch conftest.a
8355   ln conftest.a conftest.b 2>&5 || hard_links=no
8356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8357   { echo "$as_me:$LINENO: result: $hard_links" >&5
8358 echo "${ECHO_T}$hard_links" >&6; }
8359   if test "$hard_links" = no; then
8360     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8361 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8362     need_locks=warn
8363   fi
8364 else
8365   need_locks=no
8366 fi
8367
8368 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8369 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8370
8371   runpath_var=
8372   allow_undefined_flag=
8373   enable_shared_with_static_runtimes=no
8374   archive_cmds=
8375   archive_expsym_cmds=
8376   old_archive_From_new_cmds=
8377   old_archive_from_expsyms_cmds=
8378   export_dynamic_flag_spec=
8379   whole_archive_flag_spec=
8380   thread_safe_flag_spec=
8381   hardcode_libdir_flag_spec=
8382   hardcode_libdir_flag_spec_ld=
8383   hardcode_libdir_separator=
8384   hardcode_direct=no
8385   hardcode_minus_L=no
8386   hardcode_shlibpath_var=unsupported
8387   link_all_deplibs=unknown
8388   hardcode_automatic=no
8389   module_cmds=
8390   module_expsym_cmds=
8391   always_export_symbols=no
8392   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8393   # include_expsyms should be a list of space-separated symbols to be *always*
8394   # included in the symbol list
8395   include_expsyms=
8396   # exclude_expsyms can be an extended regexp of symbols to exclude
8397   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8398   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8399   # as well as any symbol that contains `d'.
8400   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8401   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8402   # platforms (ab)use it in PIC code, but their linkers get confused if
8403   # the symbol is explicitly referenced.  Since portable code cannot
8404   # rely on this symbol name, it's probably fine to never include it in
8405   # preloaded symbol tables.
8406   extract_expsyms_cmds=
8407   # Just being paranoid about ensuring that cc_basename is set.
8408   for cc_temp in $compiler""; do
8409   case $cc_temp in
8410     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8411     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8412     \-*) ;;
8413     *) break;;
8414   esac
8415 done
8416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8417
8418   case $host_os in
8419   cygwin* | mingw* | pw32*)
8420     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8421     # When not using gcc, we currently assume that we are using
8422     # Microsoft Visual C++.
8423     if test "$GCC" != yes; then
8424       with_gnu_ld=no
8425     fi
8426     ;;
8427   interix*)
8428     # we just hope/assume this is gcc and not c89 (= MSVC++)
8429     with_gnu_ld=yes
8430     ;;
8431   openbsd*)
8432     with_gnu_ld=no
8433     ;;
8434   esac
8435
8436   ld_shlibs=yes
8437   if test "$with_gnu_ld" = yes; then
8438     # If archive_cmds runs LD, not CC, wlarc should be empty
8439     wlarc='${wl}'
8440
8441     # Set some defaults for GNU ld with shared library support. These
8442     # are reset later if shared libraries are not supported. Putting them
8443     # here allows them to be overridden if necessary.
8444     runpath_var=LD_RUN_PATH
8445     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8446     export_dynamic_flag_spec='${wl}--export-dynamic'
8447     # ancient GNU ld didn't support --whole-archive et. al.
8448     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8449         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8450       else
8451         whole_archive_flag_spec=
8452     fi
8453     supports_anon_versioning=no
8454     case `$LD -v 2>/dev/null` in
8455       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8456       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8457       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8458       *\ 2.11.*) ;; # other 2.11 versions
8459       *) supports_anon_versioning=yes ;;
8460     esac
8461
8462     # See if GNU ld supports shared libraries.
8463     case $host_os in
8464     aix3* | aix4* | aix5*)
8465       # On AIX/PPC, the GNU linker is very broken
8466       if test "$host_cpu" != ia64; then
8467         ld_shlibs=no
8468         cat <<EOF 1>&2
8469
8470 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8471 *** to be unable to reliably create shared libraries on AIX.
8472 *** Therefore, libtool is disabling shared libraries support.  If you
8473 *** really care for shared libraries, you may want to modify your PATH
8474 *** so that a non-GNU linker is found, and then restart.
8475
8476 EOF
8477       fi
8478       ;;
8479
8480     amigaos*)
8481       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)'
8482       hardcode_libdir_flag_spec='-L$libdir'
8483       hardcode_minus_L=yes
8484
8485       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8486       # that the semantics of dynamic libraries on AmigaOS, at least up
8487       # to version 4, is to share data among multiple programs linked
8488       # with the same dynamic library.  Since this doesn't match the
8489       # behavior of shared libraries on other platforms, we can't use
8490       # them.
8491       ld_shlibs=no
8492       ;;
8493
8494     beos*)
8495       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8496         allow_undefined_flag=unsupported
8497         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8498         # support --undefined.  This deserves some investigation.  FIXME
8499         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8500       else
8501         ld_shlibs=no
8502       fi
8503       ;;
8504
8505     cygwin* | mingw* | pw32*)
8506       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8507       # as there is no search path for DLLs.
8508       hardcode_libdir_flag_spec='-L$libdir'
8509       allow_undefined_flag=unsupported
8510       always_export_symbols=no
8511       enable_shared_with_static_runtimes=yes
8512       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8513
8514       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8515         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8516         # If the export-symbols file already is a .def file (1st line
8517         # is EXPORTS), use it as is; otherwise, prepend...
8518         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8519           cp $export_symbols $output_objdir/$soname.def;
8520         else
8521           echo EXPORTS > $output_objdir/$soname.def;
8522           cat $export_symbols >> $output_objdir/$soname.def;
8523         fi~
8524         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8525       else
8526         ld_shlibs=no
8527       fi
8528       ;;
8529
8530     interix3*)
8531       hardcode_direct=no
8532       hardcode_shlibpath_var=no
8533       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8534       export_dynamic_flag_spec='${wl}-E'
8535       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8536       # Instead, shared libraries are loaded at an image base (0x10000000 by
8537       # default) and relocated if they conflict, which is a slow very memory
8538       # consuming and fragmenting process.  To avoid this, we pick a random,
8539       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8540       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8541       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8542       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8543       ;;
8544
8545     linux*)
8546       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8547         tmp_addflag=
8548         case $cc_basename,$host_cpu in
8549         pgcc*)                          # Portland Group C compiler
8550           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8551           tmp_addflag=' $pic_flag'
8552           ;;
8553         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8554           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8555           tmp_addflag=' $pic_flag -Mnomain' ;;
8556         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8557           tmp_addflag=' -i_dynamic' ;;
8558         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8559           tmp_addflag=' -i_dynamic -nofor_main' ;;
8560         ifc* | ifort*)                  # Intel Fortran compiler
8561           tmp_addflag=' -nofor_main' ;;
8562         esac
8563         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564
8565         if test $supports_anon_versioning = yes; then
8566           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8567   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8568   $echo "local: *; };" >> $output_objdir/$libname.ver~
8569           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8570         fi
8571       else
8572         ld_shlibs=no
8573       fi
8574       ;;
8575
8576     netbsd*)
8577       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8578         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8579         wlarc=
8580       else
8581         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8583       fi
8584       ;;
8585
8586     solaris*)
8587       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8588         ld_shlibs=no
8589         cat <<EOF 1>&2
8590
8591 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8592 *** create shared libraries on Solaris systems.  Therefore, libtool
8593 *** is disabling shared libraries support.  We urge you to upgrade GNU
8594 *** binutils to release 2.9.1 or newer.  Another option is to modify
8595 *** your PATH or compiler configuration so that the native linker is
8596 *** used, and then restart.
8597
8598 EOF
8599       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8600         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8602       else
8603         ld_shlibs=no
8604       fi
8605       ;;
8606
8607     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8608       case `$LD -v 2>&1` in
8609         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8610         ld_shlibs=no
8611         cat <<_LT_EOF 1>&2
8612
8613 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8614 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8615 *** is disabling shared libraries support.  We urge you to upgrade GNU
8616 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8617 *** your PATH or compiler configuration so that the native linker is
8618 *** used, and then restart.
8619
8620 _LT_EOF
8621         ;;
8622         *)
8623           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8627           else
8628             ld_shlibs=no
8629           fi
8630         ;;
8631       esac
8632       ;;
8633
8634     sunos4*)
8635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636       wlarc=
8637       hardcode_direct=yes
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     *)
8642       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8643         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8645       else
8646         ld_shlibs=no
8647       fi
8648       ;;
8649     esac
8650
8651     if test "$ld_shlibs" = no; then
8652       runpath_var=
8653       hardcode_libdir_flag_spec=
8654       export_dynamic_flag_spec=
8655       whole_archive_flag_spec=
8656     fi
8657   else
8658     # PORTME fill in a description of your system's linker (not GNU ld)
8659     case $host_os in
8660     aix3*)
8661       allow_undefined_flag=unsupported
8662       always_export_symbols=yes
8663       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'
8664       # Note: this linker hardcodes the directories in LIBPATH if there
8665       # are no directories specified by -L.
8666       hardcode_minus_L=yes
8667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8668         # Neither direct hardcoding nor static linking is supported with a
8669         # broken collect2.
8670         hardcode_direct=unsupported
8671       fi
8672       ;;
8673
8674     aix4* | aix5*)
8675       if test "$host_cpu" = ia64; then
8676         # On IA64, the linker does run time linking by default, so we don't
8677         # have to do anything special.
8678         aix_use_runtimelinking=no
8679         exp_sym_flag='-Bexport'
8680         no_entry_flag=""
8681       else
8682         # If we're using GNU nm, then we don't want the "-C" option.
8683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8684         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8685           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'
8686         else
8687           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'
8688         fi
8689         aix_use_runtimelinking=no
8690
8691         # Test if we are trying to use run time linking or normal
8692         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8693         # need to do runtime linking.
8694         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8695           for ld_flag in $LDFLAGS; do
8696           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8697             aix_use_runtimelinking=yes
8698             break
8699           fi
8700           done
8701           ;;
8702         esac
8703
8704         exp_sym_flag='-bexport'
8705         no_entry_flag='-bnoentry'
8706       fi
8707
8708       # When large executables or shared objects are built, AIX ld can
8709       # have problems creating the table of contents.  If linking a library
8710       # or program results in "error TOC overflow" add -mminimal-toc to
8711       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8712       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8713
8714       archive_cmds=''
8715       hardcode_direct=yes
8716       hardcode_libdir_separator=':'
8717       link_all_deplibs=yes
8718
8719       if test "$GCC" = yes; then
8720         case $host_os in aix4.[012]|aix4.[012].*)
8721         # We only want to do this on AIX 4.2 and lower, the check
8722         # below for broken collect2 doesn't work under 4.3+
8723           collect2name=`${CC} -print-prog-name=collect2`
8724           if test -f "$collect2name" && \
8725            strings "$collect2name" | grep resolve_lib_name >/dev/null
8726           then
8727           # We have reworked collect2
8728           hardcode_direct=yes
8729           else
8730           # We have old collect2
8731           hardcode_direct=unsupported
8732           # It fails to find uninstalled libraries when the uninstalled
8733           # path is not listed in the libpath.  Setting hardcode_minus_L
8734           # to unsupported forces relinking
8735           hardcode_minus_L=yes
8736           hardcode_libdir_flag_spec='-L$libdir'
8737           hardcode_libdir_separator=
8738           fi
8739           ;;
8740         esac
8741         shared_flag='-shared'
8742         if test "$aix_use_runtimelinking" = yes; then
8743           shared_flag="$shared_flag "'${wl}-G'
8744         fi
8745       else
8746         # not using gcc
8747         if test "$host_cpu" = ia64; then
8748         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8749         # chokes on -Wl,-G. The following line is correct:
8750           shared_flag='-G'
8751         else
8752           if test "$aix_use_runtimelinking" = yes; then
8753             shared_flag='${wl}-G'
8754           else
8755             shared_flag='${wl}-bM:SRE'
8756           fi
8757         fi
8758       fi
8759
8760       # It seems that -bexpall does not export symbols beginning with
8761       # underscore (_), so it is better to generate a list of symbols to export.
8762       always_export_symbols=yes
8763       if test "$aix_use_runtimelinking" = yes; then
8764         # Warning - without using the other runtime loading flags (-brtl),
8765         # -berok will link without error, but may produce a broken library.
8766         allow_undefined_flag='-berok'
8767        # Determine the default libpath from the value encoded in an empty executable.
8768        cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774
8775 int
8776 main ()
8777 {
8778
8779   ;
8780   return 0;
8781 }
8782 _ACEOF
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (ac_try="$ac_link"
8785 case "(($ac_try" in
8786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787   *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790   (eval "$ac_link") 2>conftest.er1
8791   ac_status=$?
8792   grep -v '^ *+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } &&
8797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798   { (case "(($ac_try" in
8799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800   *) ac_try_echo=$ac_try;;
8801 esac
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803   (eval "$ac_try") 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; } &&
8807          { ac_try='test -s conftest$ac_exeext'
8808   { (case "(($ac_try" in
8809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810   *) ac_try_echo=$ac_try;;
8811 esac
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813   (eval "$ac_try") 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817
8818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8819 }'`
8820 # Check for a 64-bit object if we didn't find anything.
8821 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; }
8822 }'`; fi
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827
8828 fi
8829
8830 rm -f core conftest.err conftest.$ac_objext \
8831       conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8833
8834        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8835         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8836        else
8837         if test "$host_cpu" = ia64; then
8838           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8839           allow_undefined_flag="-z nodefs"
8840           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8841         else
8842          # Determine the default libpath from the value encoded in an empty executable.
8843          cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h.  */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h.  */
8849
8850 int
8851 main ()
8852 {
8853
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8860 case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_link") 2>conftest.er1
8866   ac_status=$?
8867   grep -v '^ *+' conftest.er1 >conftest.err
8868   rm -f conftest.er1
8869   cat conftest.err >&5
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); } &&
8872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8873   { (case "(($ac_try" in
8874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875   *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878   (eval "$ac_try") 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest$ac_exeext'
8883   { (case "(($ac_try" in
8884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885   *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888   (eval "$ac_try") 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892
8893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8894 }'`
8895 # Check for a 64-bit object if we didn't find anything.
8896 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; }
8897 }'`; fi
8898 else
8899   echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902
8903 fi
8904
8905 rm -f core conftest.err conftest.$ac_objext \
8906       conftest$ac_exeext conftest.$ac_ext
8907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8908
8909          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8910           # Warning - without using the other run time loading flags,
8911           # -berok will link without error, but may produce a broken library.
8912           no_undefined_flag=' ${wl}-bernotok'
8913           allow_undefined_flag=' ${wl}-berok'
8914           # Exported symbols can be pulled into shared objects from archives
8915           whole_archive_flag_spec='$convenience'
8916           archive_cmds_need_lc=yes
8917           # This is similar to how AIX traditionally builds its shared libraries.
8918           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8919         fi
8920       fi
8921       ;;
8922
8923     amigaos*)
8924       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)'
8925       hardcode_libdir_flag_spec='-L$libdir'
8926       hardcode_minus_L=yes
8927       # see comment about different semantics on the GNU ld section
8928       ld_shlibs=no
8929       ;;
8930
8931     bsdi[45]*)
8932       export_dynamic_flag_spec=-rdynamic
8933       ;;
8934
8935     cygwin* | mingw* | pw32*)
8936       # When not using gcc, we currently assume that we are using
8937       # Microsoft Visual C++.
8938       # hardcode_libdir_flag_spec is actually meaningless, as there is
8939       # no search path for DLLs.
8940       hardcode_libdir_flag_spec=' '
8941       allow_undefined_flag=unsupported
8942       # Tell ltmain to make .lib files, not .a files.
8943       libext=lib
8944       # Tell ltmain to make .dll files, not .so files.
8945       shrext_cmds=".dll"
8946       # FIXME: Setting linknames here is a bad hack.
8947       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8948       # The linker will automatically build a .lib file if we build a DLL.
8949       old_archive_From_new_cmds='true'
8950       # FIXME: Should let the user specify the lib program.
8951       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8952       fix_srcfile_path='`cygpath -w "$srcfile"`'
8953       enable_shared_with_static_runtimes=yes
8954       ;;
8955
8956     darwin* | rhapsody*)
8957       case $host_os in
8958         rhapsody* | darwin1.[012])
8959          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8960          ;;
8961        *) # Darwin 1.3 on
8962          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8963            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8964          else
8965            case ${MACOSX_DEPLOYMENT_TARGET} in
8966              10.[012])
8967                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8968                ;;
8969              10.*)
8970                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8971                ;;
8972            esac
8973          fi
8974          ;;
8975       esac
8976       archive_cmds_need_lc=no
8977       hardcode_direct=no
8978       hardcode_automatic=yes
8979       hardcode_shlibpath_var=unsupported
8980       whole_archive_flag_spec=''
8981       link_all_deplibs=yes
8982     if test "$GCC" = yes ; then
8983         output_verbose_link_cmd='echo'
8984         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8985       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8986       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8987       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}'
8988       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}'
8989     else
8990       case $cc_basename in
8991         xlc*)
8992          output_verbose_link_cmd='echo'
8993          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8994          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8995           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8996          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8997           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}'
8998           ;;
8999        *)
9000          ld_shlibs=no
9001           ;;
9002       esac
9003     fi
9004       ;;
9005
9006     dgux*)
9007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008       hardcode_libdir_flag_spec='-L$libdir'
9009       hardcode_shlibpath_var=no
9010       ;;
9011
9012     freebsd1*)
9013       ld_shlibs=no
9014       ;;
9015
9016     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9017     # support.  Future versions do this automatically, but an explicit c++rt0.o
9018     # does not break anything, and helps significantly (at the cost of a little
9019     # extra space).
9020     freebsd2.2*)
9021       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9022       hardcode_libdir_flag_spec='-R$libdir'
9023       hardcode_direct=yes
9024       hardcode_shlibpath_var=no
9025       ;;
9026
9027     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9028     freebsd2*)
9029       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030       hardcode_direct=yes
9031       hardcode_minus_L=yes
9032       hardcode_shlibpath_var=no
9033       ;;
9034
9035     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9036     freebsd* | kfreebsd*-gnu | dragonfly*)
9037       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9038       hardcode_libdir_flag_spec='-R$libdir'
9039       hardcode_direct=yes
9040       hardcode_shlibpath_var=no
9041       ;;
9042
9043     hpux9*)
9044       if test "$GCC" = yes; then
9045         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'
9046       else
9047         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'
9048       fi
9049       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9050       hardcode_libdir_separator=:
9051       hardcode_direct=yes
9052
9053       # hardcode_minus_L: Not really in the search PATH,
9054       # but as the default location of the library.
9055       hardcode_minus_L=yes
9056       export_dynamic_flag_spec='${wl}-E'
9057       ;;
9058
9059     hpux10*)
9060       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9061         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9062       else
9063         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9064       fi
9065       if test "$with_gnu_ld" = no; then
9066         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9067         hardcode_libdir_separator=:
9068
9069         hardcode_direct=yes
9070         export_dynamic_flag_spec='${wl}-E'
9071
9072         # hardcode_minus_L: Not really in the search PATH,
9073         # but as the default location of the library.
9074         hardcode_minus_L=yes
9075       fi
9076       ;;
9077
9078     hpux11*)
9079       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9080         case $host_cpu in
9081         hppa*64*)
9082           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083           ;;
9084         ia64*)
9085           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086           ;;
9087         *)
9088           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9089           ;;
9090         esac
9091       else
9092         case $host_cpu in
9093         hppa*64*)
9094           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9095           ;;
9096         ia64*)
9097           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9098           ;;
9099         *)
9100           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9101           ;;
9102         esac
9103       fi
9104       if test "$with_gnu_ld" = no; then
9105         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9106         hardcode_libdir_separator=:
9107
9108         case $host_cpu in
9109         hppa*64*|ia64*)
9110           hardcode_libdir_flag_spec_ld='+b $libdir'
9111           hardcode_direct=no
9112           hardcode_shlibpath_var=no
9113           ;;
9114         *)
9115           hardcode_direct=yes
9116           export_dynamic_flag_spec='${wl}-E'
9117
9118           # hardcode_minus_L: Not really in the search PATH,
9119           # but as the default location of the library.
9120           hardcode_minus_L=yes
9121           ;;
9122         esac
9123       fi
9124       ;;
9125
9126     irix5* | irix6* | nonstopux*)
9127       if test "$GCC" = yes; then
9128         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'
9129       else
9130         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'
9131         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9132       fi
9133       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9134       hardcode_libdir_separator=:
9135       link_all_deplibs=yes
9136       ;;
9137
9138     netbsd*)
9139       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9140         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9141       else
9142         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9143       fi
9144       hardcode_libdir_flag_spec='-R$libdir'
9145       hardcode_direct=yes
9146       hardcode_shlibpath_var=no
9147       ;;
9148
9149     newsos6)
9150       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9151       hardcode_direct=yes
9152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153       hardcode_libdir_separator=:
9154       hardcode_shlibpath_var=no
9155       ;;
9156
9157     openbsd*)
9158       hardcode_direct=yes
9159       hardcode_shlibpath_var=no
9160       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9161         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9162         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9163         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9164         export_dynamic_flag_spec='${wl}-E'
9165       else
9166        case $host_os in
9167          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9168            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9169            hardcode_libdir_flag_spec='-R$libdir'
9170            ;;
9171          *)
9172            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9173            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9174            ;;
9175        esac
9176       fi
9177       ;;
9178
9179     os2*)
9180       hardcode_libdir_flag_spec='-L$libdir'
9181       hardcode_minus_L=yes
9182       allow_undefined_flag=unsupported
9183       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'
9184       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9185       ;;
9186
9187     osf3*)
9188       if test "$GCC" = yes; then
9189         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9190         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'
9191       else
9192         allow_undefined_flag=' -expect_unresolved \*'
9193         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'
9194       fi
9195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196       hardcode_libdir_separator=:
9197       ;;
9198
9199     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9200       if test "$GCC" = yes; then
9201         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9202         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'
9203         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204       else
9205         allow_undefined_flag=' -expect_unresolved \*'
9206         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'
9207         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9208         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9209
9210         # Both c and cxx compiler support -rpath directly
9211         hardcode_libdir_flag_spec='-rpath $libdir'
9212       fi
9213       hardcode_libdir_separator=:
9214       ;;
9215
9216     solaris*)
9217       no_undefined_flag=' -z text'
9218       if test "$GCC" = yes; then
9219         wlarc='${wl}'
9220         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9221         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9222           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9223       else
9224         wlarc=''
9225         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9226         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9227         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9228       fi
9229       hardcode_libdir_flag_spec='-R$libdir'
9230       hardcode_shlibpath_var=no
9231       case $host_os in
9232       solaris2.[0-5] | solaris2.[0-5].*) ;;
9233       *)
9234         # The compiler driver will combine linker options so we
9235         # cannot just pass the convience library names through
9236         # without $wl, iff we do not link with $LD.
9237         # Luckily, gcc supports the same syntax we need for Sun Studio.
9238         # Supported since Solaris 2.6 (maybe 2.5.1?)
9239         case $wlarc in
9240         '')
9241           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9242         *)
9243           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9244         esac ;;
9245       esac
9246       link_all_deplibs=yes
9247       ;;
9248
9249     sunos4*)
9250       if test "x$host_vendor" = xsequent; then
9251         # Use $CC to link under sequent, because it throws in some extra .o
9252         # files that make .init and .fini sections work.
9253         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9254       else
9255         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9256       fi
9257       hardcode_libdir_flag_spec='-L$libdir'
9258       hardcode_direct=yes
9259       hardcode_minus_L=yes
9260       hardcode_shlibpath_var=no
9261       ;;
9262
9263     sysv4)
9264       case $host_vendor in
9265         sni)
9266           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267           hardcode_direct=yes # is this really true???
9268         ;;
9269         siemens)
9270           ## LD is ld it makes a PLAMLIB
9271           ## CC just makes a GrossModule.
9272           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9273           reload_cmds='$CC -r -o $output$reload_objs'
9274           hardcode_direct=no
9275         ;;
9276         motorola)
9277           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9279         ;;
9280       esac
9281       runpath_var='LD_RUN_PATH'
9282       hardcode_shlibpath_var=no
9283       ;;
9284
9285     sysv4.3*)
9286       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287       hardcode_shlibpath_var=no
9288       export_dynamic_flag_spec='-Bexport'
9289       ;;
9290
9291     sysv4*MP*)
9292       if test -d /usr/nec; then
9293         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294         hardcode_shlibpath_var=no
9295         runpath_var=LD_RUN_PATH
9296         hardcode_runpath_var=yes
9297         ld_shlibs=yes
9298       fi
9299       ;;
9300
9301     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9302       no_undefined_flag='${wl}-z,text'
9303       archive_cmds_need_lc=no
9304       hardcode_shlibpath_var=no
9305       runpath_var='LD_RUN_PATH'
9306
9307       if test "$GCC" = yes; then
9308         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310       else
9311         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313       fi
9314       ;;
9315
9316     sysv5* | sco3.2v5* | sco5v6*)
9317       # Note: We can NOT use -z defs as we might desire, because we do not
9318       # link with -lc, and that would cause any symbols used from libc to
9319       # always be unresolved, which means just about no library would
9320       # ever link correctly.  If we're not using GNU ld we use -z text
9321       # though, which does catch some bad symbols but isn't as heavy-handed
9322       # as -z defs.
9323       no_undefined_flag='${wl}-z,text'
9324       allow_undefined_flag='${wl}-z,nodefs'
9325       archive_cmds_need_lc=no
9326       hardcode_shlibpath_var=no
9327       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9328       hardcode_libdir_separator=':'
9329       link_all_deplibs=yes
9330       export_dynamic_flag_spec='${wl}-Bexport'
9331       runpath_var='LD_RUN_PATH'
9332
9333       if test "$GCC" = yes; then
9334         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336       else
9337         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9338         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9339       fi
9340       ;;
9341
9342     uts4*)
9343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344       hardcode_libdir_flag_spec='-L$libdir'
9345       hardcode_shlibpath_var=no
9346       ;;
9347
9348     *)
9349       ld_shlibs=no
9350       ;;
9351     esac
9352   fi
9353
9354 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9355 echo "${ECHO_T}$ld_shlibs" >&6; }
9356 test "$ld_shlibs" = no && can_build_shared=no
9357
9358 #
9359 # Do we need to explicitly link libc?
9360 #
9361 case "x$archive_cmds_need_lc" in
9362 x|xyes)
9363   # Assume -lc should be added
9364   archive_cmds_need_lc=yes
9365
9366   if test "$enable_shared" = yes && test "$GCC" = yes; then
9367     case $archive_cmds in
9368     *'~'*)
9369       # FIXME: we may have to deal with multi-command sequences.
9370       ;;
9371     '$CC '*)
9372       # Test whether the compiler implicitly links with -lc since on some
9373       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9374       # to ld, don't add -lc before -lgcc.
9375       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9377       $rm conftest*
9378       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9379
9380       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } 2>conftest.err; then
9385         soname=conftest
9386         lib=conftest
9387         libobjs=conftest.$ac_objext
9388         deplibs=
9389         wl=$lt_prog_compiler_wl
9390         pic_flag=$lt_prog_compiler_pic
9391         compiler_flags=-v
9392         linker_flags=-v
9393         verstring=
9394         output_objdir=.
9395         libname=conftest
9396         lt_save_allow_undefined_flag=$allow_undefined_flag
9397         allow_undefined_flag=
9398         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9399   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }
9403         then
9404           archive_cmds_need_lc=no
9405         else
9406           archive_cmds_need_lc=yes
9407         fi
9408         allow_undefined_flag=$lt_save_allow_undefined_flag
9409       else
9410         cat conftest.err 1>&5
9411       fi
9412       $rm conftest*
9413       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9414 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9415       ;;
9416     esac
9417   fi
9418   ;;
9419 esac
9420
9421 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9423 library_names_spec=
9424 libname_spec='lib$name'
9425 soname_spec=
9426 shrext_cmds=".so"
9427 postinstall_cmds=
9428 postuninstall_cmds=
9429 finish_cmds=
9430 finish_eval=
9431 shlibpath_var=
9432 shlibpath_overrides_runpath=unknown
9433 version_type=none
9434 dynamic_linker="$host_os ld.so"
9435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9436 if test "$GCC" = yes; then
9437   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9438   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9439     # if the path contains ";" then we assume it to be the separator
9440     # otherwise default to the standard path separator (i.e. ":") - it is
9441     # assumed that no part of a normal pathname contains ";" but that should
9442     # okay in the real world where ";" in dirpaths is itself problematic.
9443     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9444   else
9445     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9446   fi
9447 else
9448   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9449 fi
9450 need_lib_prefix=unknown
9451 hardcode_into_libs=no
9452
9453 # when you set need_version to no, make sure it does not cause -set_version
9454 # flags to be left without arguments
9455 need_version=unknown
9456
9457 case $host_os in
9458 aix3*)
9459   version_type=linux
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9461   shlibpath_var=LIBPATH
9462
9463   # AIX 3 has no versioning support, so we append a major version to the name.
9464   soname_spec='${libname}${release}${shared_ext}$major'
9465   ;;
9466
9467 aix4* | aix5*)
9468   version_type=linux
9469   need_lib_prefix=no
9470   need_version=no
9471   hardcode_into_libs=yes
9472   if test "$host_cpu" = ia64; then
9473     # AIX 5 supports IA64
9474     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9475     shlibpath_var=LD_LIBRARY_PATH
9476   else
9477     # With GCC up to 2.95.x, collect2 would create an import file
9478     # for dependence libraries.  The import file would start with
9479     # the line `#! .'.  This would cause the generated library to
9480     # depend on `.', always an invalid library.  This was fixed in
9481     # development snapshots of GCC prior to 3.0.
9482     case $host_os in
9483       aix4 | aix4.[01] | aix4.[01].*)
9484       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9485            echo ' yes '
9486            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9487         :
9488       else
9489         can_build_shared=no
9490       fi
9491       ;;
9492     esac
9493     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9494     # soname into executable. Probably we can add versioning support to
9495     # collect2, so additional links can be useful in future.
9496     if test "$aix_use_runtimelinking" = yes; then
9497       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9498       # instead of lib<name>.a to let people know that these are not
9499       # typical AIX shared libraries.
9500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501     else
9502       # We preserve .a as extension for shared libraries through AIX4.2
9503       # and later when we are not doing run time linking.
9504       library_names_spec='${libname}${release}.a $libname.a'
9505       soname_spec='${libname}${release}${shared_ext}$major'
9506     fi
9507     shlibpath_var=LIBPATH
9508   fi
9509   ;;
9510
9511 amigaos*)
9512   library_names_spec='$libname.ixlibrary $libname.a'
9513   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9514   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'
9515   ;;
9516
9517 beos*)
9518   library_names_spec='${libname}${shared_ext}'
9519   dynamic_linker="$host_os ld.so"
9520   shlibpath_var=LIBRARY_PATH
9521   ;;
9522
9523 bsdi[45]*)
9524   version_type=linux
9525   need_version=no
9526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527   soname_spec='${libname}${release}${shared_ext}$major'
9528   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9529   shlibpath_var=LD_LIBRARY_PATH
9530   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9531   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9532   # the default ld.so.conf also contains /usr/contrib/lib and
9533   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9534   # libtool to hard-code these into programs
9535   ;;
9536
9537 cygwin* | mingw* | pw32*)
9538   version_type=windows
9539   shrext_cmds=".dll"
9540   need_version=no
9541   need_lib_prefix=no
9542
9543   case $GCC,$host_os in
9544   yes,cygwin* | yes,mingw* | yes,pw32*)
9545     library_names_spec='$libname.dll.a'
9546     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9547     postinstall_cmds='base_file=`basename \${file}`~
9548       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9549       dldir=$destdir/`dirname \$dlpath`~
9550       test -d \$dldir || mkdir -p \$dldir~
9551       $install_prog $dir/$dlname \$dldir/$dlname~
9552       chmod a+x \$dldir/$dlname'
9553     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9554       dlpath=$dir/\$dldll~
9555        $rm \$dlpath'
9556     shlibpath_overrides_runpath=yes
9557
9558     case $host_os in
9559     cygwin*)
9560       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9561       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9562       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9563       ;;
9564     mingw*)
9565       # MinGW DLLs use traditional 'lib' prefix
9566       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9567       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9568       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9569         # It is most probably a Windows format PATH printed by
9570         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9571         # path with ; separators, and with drive letters. We can handle the
9572         # drive letters (cygwin fileutils understands them), so leave them,
9573         # especially as we might pass files found there to a mingw objdump,
9574         # which wouldn't understand a cygwinified path. Ahh.
9575         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9576       else
9577         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9578       fi
9579       ;;
9580     pw32*)
9581       # pw32 DLLs use 'pw' prefix rather than 'lib'
9582       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9583       ;;
9584     esac
9585     ;;
9586
9587   *)
9588     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9589     ;;
9590   esac
9591   dynamic_linker='Win32 ld.exe'
9592   # FIXME: first we should search . and the directory the executable is in
9593   shlibpath_var=PATH
9594   ;;
9595
9596 darwin* | rhapsody*)
9597   dynamic_linker="$host_os dyld"
9598   version_type=darwin
9599   need_lib_prefix=no
9600   need_version=no
9601   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9602   soname_spec='${libname}${release}${major}$shared_ext'
9603   shlibpath_overrides_runpath=yes
9604   shlibpath_var=DYLD_LIBRARY_PATH
9605   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9606   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9607   if test "$GCC" = yes; then
9608     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"`
9609   else
9610     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9611   fi
9612   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9613   ;;
9614
9615 dgux*)
9616   version_type=linux
9617   need_lib_prefix=no
9618   need_version=no
9619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9620   soname_spec='${libname}${release}${shared_ext}$major'
9621   shlibpath_var=LD_LIBRARY_PATH
9622   ;;
9623
9624 freebsd1*)
9625   dynamic_linker=no
9626   ;;
9627
9628 kfreebsd*-gnu)
9629   version_type=linux
9630   need_lib_prefix=no
9631   need_version=no
9632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9633   soname_spec='${libname}${release}${shared_ext}$major'
9634   shlibpath_var=LD_LIBRARY_PATH
9635   shlibpath_overrides_runpath=no
9636   hardcode_into_libs=yes
9637   dynamic_linker='GNU ld.so'
9638   ;;
9639
9640 freebsd* | dragonfly*)
9641   # DragonFly does not have aout.  When/if they implement a new
9642   # versioning mechanism, adjust this.
9643   if test -x /usr/bin/objformat; then
9644     objformat=`/usr/bin/objformat`
9645   else
9646     case $host_os in
9647     freebsd[123]*) objformat=aout ;;
9648     *) objformat=elf ;;
9649     esac
9650   fi
9651   version_type=freebsd-$objformat
9652   case $version_type in
9653     freebsd-elf*)
9654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9655       need_version=no
9656       need_lib_prefix=no
9657       ;;
9658     freebsd-*)
9659       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9660       need_version=yes
9661       ;;
9662   esac
9663   shlibpath_var=LD_LIBRARY_PATH
9664   case $host_os in
9665   freebsd2*)
9666     shlibpath_overrides_runpath=yes
9667     ;;
9668   freebsd3.[01]* | freebsdelf3.[01]*)
9669     shlibpath_overrides_runpath=yes
9670     hardcode_into_libs=yes
9671     ;;
9672   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9673   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9674     shlibpath_overrides_runpath=no
9675     hardcode_into_libs=yes
9676     ;;
9677   freebsd*) # from 4.6 on
9678     shlibpath_overrides_runpath=yes
9679     hardcode_into_libs=yes
9680     ;;
9681   esac
9682   ;;
9683
9684 gnu*)
9685   version_type=linux
9686   need_lib_prefix=no
9687   need_version=no
9688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9689   soname_spec='${libname}${release}${shared_ext}$major'
9690   shlibpath_var=LD_LIBRARY_PATH
9691   hardcode_into_libs=yes
9692   ;;
9693
9694 hpux9* | hpux10* | hpux11*)
9695   # Give a soname corresponding to the major version so that dld.sl refuses to
9696   # link against other versions.
9697   version_type=sunos
9698   need_lib_prefix=no
9699   need_version=no
9700   case $host_cpu in
9701   ia64*)
9702     shrext_cmds='.so'
9703     hardcode_into_libs=yes
9704     dynamic_linker="$host_os dld.so"
9705     shlibpath_var=LD_LIBRARY_PATH
9706     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708     soname_spec='${libname}${release}${shared_ext}$major'
9709     if test "X$HPUX_IA64_MODE" = X32; then
9710       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9711     else
9712       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9713     fi
9714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9715     ;;
9716    hppa*64*)
9717      shrext_cmds='.sl'
9718      hardcode_into_libs=yes
9719      dynamic_linker="$host_os dld.sl"
9720      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9721      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9722      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723      soname_spec='${libname}${release}${shared_ext}$major'
9724      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9725      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9726      ;;
9727    *)
9728     shrext_cmds='.sl'
9729     dynamic_linker="$host_os dld.sl"
9730     shlibpath_var=SHLIB_PATH
9731     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733     soname_spec='${libname}${release}${shared_ext}$major'
9734     ;;
9735   esac
9736   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9737   postinstall_cmds='chmod 555 $lib'
9738   ;;
9739
9740 interix3*)
9741   version_type=linux
9742   need_lib_prefix=no
9743   need_version=no
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9747   shlibpath_var=LD_LIBRARY_PATH
9748   shlibpath_overrides_runpath=no
9749   hardcode_into_libs=yes
9750   ;;
9751
9752 irix5* | irix6* | nonstopux*)
9753   case $host_os in
9754     nonstopux*) version_type=nonstopux ;;
9755     *)
9756         if test "$lt_cv_prog_gnu_ld" = yes; then
9757                 version_type=linux
9758         else
9759                 version_type=irix
9760         fi ;;
9761   esac
9762   need_lib_prefix=no
9763   need_version=no
9764   soname_spec='${libname}${release}${shared_ext}$major'
9765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9766   case $host_os in
9767   irix5* | nonstopux*)
9768     libsuff= shlibsuff=
9769     ;;
9770   *)
9771     case $LD in # libtool.m4 will add one of these switches to LD
9772     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9773       libsuff= shlibsuff= libmagic=32-bit;;
9774     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9775       libsuff=32 shlibsuff=N32 libmagic=N32;;
9776     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9777       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9778     *) libsuff= shlibsuff= libmagic=never-match;;
9779     esac
9780     ;;
9781   esac
9782   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9783   shlibpath_overrides_runpath=no
9784   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9785   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9786   hardcode_into_libs=yes
9787   ;;
9788
9789 # No shared lib support for Linux oldld, aout, or coff.
9790 linux*oldld* | linux*aout* | linux*coff*)
9791   dynamic_linker=no
9792   ;;
9793
9794 # This must be Linux ELF.
9795 linux*)
9796   version_type=linux
9797   need_lib_prefix=no
9798   need_version=no
9799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800   soname_spec='${libname}${release}${shared_ext}$major'
9801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   shlibpath_overrides_runpath=no
9804   # This implies no fast_install, which is unacceptable.
9805   # Some rework will be needed to allow for fast_install
9806   # before this can be enabled.
9807   hardcode_into_libs=yes
9808
9809   # find out which ABI we are using
9810   libsuff=
9811   case "$host_cpu" in
9812   x86_64*|s390x*|powerpc64*)
9813     echo '#line 9813 "configure"' > conftest.$ac_ext
9814     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9815   (eval $ac_compile) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; then
9819       case `/usr/bin/file conftest.$ac_objext` in
9820       *64-bit*)
9821         libsuff=64
9822         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9823         ;;
9824       esac
9825     fi
9826     rm -rf conftest*
9827     ;;
9828   esac
9829
9830   # Append ld.so.conf contents to the search path
9831   if test -f /etc/ld.so.conf; then
9832     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9833     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9834   fi
9835
9836   # We used to test for /lib/ld.so.1 and disable shared libraries on
9837   # powerpc, because MkLinux only supported shared libraries with the
9838   # GNU dynamic linker.  Since this was broken with cross compilers,
9839   # most powerpc-linux boxes support dynamic linking these days and
9840   # people can always --disable-shared, the test was removed, and we
9841   # assume the GNU/Linux dynamic linker is in use.
9842   dynamic_linker='GNU/Linux ld.so'
9843   ;;
9844
9845 knetbsd*-gnu)
9846   version_type=linux
9847   need_lib_prefix=no
9848   need_version=no
9849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9850   soname_spec='${libname}${release}${shared_ext}$major'
9851   shlibpath_var=LD_LIBRARY_PATH
9852   shlibpath_overrides_runpath=no
9853   hardcode_into_libs=yes
9854   dynamic_linker='GNU ld.so'
9855   ;;
9856
9857 netbsd*)
9858   version_type=sunos
9859   need_lib_prefix=no
9860   need_version=no
9861   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9863     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9864     dynamic_linker='NetBSD (a.out) ld.so'
9865   else
9866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9867     soname_spec='${libname}${release}${shared_ext}$major'
9868     dynamic_linker='NetBSD ld.elf_so'
9869   fi
9870   shlibpath_var=LD_LIBRARY_PATH
9871   shlibpath_overrides_runpath=yes
9872   hardcode_into_libs=yes
9873   ;;
9874
9875 newsos6)
9876   version_type=linux
9877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878   shlibpath_var=LD_LIBRARY_PATH
9879   shlibpath_overrides_runpath=yes
9880   ;;
9881
9882 nto-qnx*)
9883   version_type=linux
9884   need_lib_prefix=no
9885   need_version=no
9886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887   soname_spec='${libname}${release}${shared_ext}$major'
9888   shlibpath_var=LD_LIBRARY_PATH
9889   shlibpath_overrides_runpath=yes
9890   ;;
9891
9892 openbsd*)
9893   version_type=sunos
9894   sys_lib_dlsearch_path_spec="/usr/lib"
9895   need_lib_prefix=no
9896   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9897   case $host_os in
9898     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9899     *)                         need_version=no  ;;
9900   esac
9901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9902   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9903   shlibpath_var=LD_LIBRARY_PATH
9904   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9905     case $host_os in
9906       openbsd2.[89] | openbsd2.[89].*)
9907         shlibpath_overrides_runpath=no
9908         ;;
9909       *)
9910         shlibpath_overrides_runpath=yes
9911         ;;
9912       esac
9913   else
9914     shlibpath_overrides_runpath=yes
9915   fi
9916   ;;
9917
9918 os2*)
9919   libname_spec='$name'
9920   shrext_cmds=".dll"
9921   need_lib_prefix=no
9922   library_names_spec='$libname${shared_ext} $libname.a'
9923   dynamic_linker='OS/2 ld.exe'
9924   shlibpath_var=LIBPATH
9925   ;;
9926
9927 osf3* | osf4* | osf5*)
9928   version_type=osf
9929   need_lib_prefix=no
9930   need_version=no
9931   soname_spec='${libname}${release}${shared_ext}$major'
9932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933   shlibpath_var=LD_LIBRARY_PATH
9934   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9935   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9936   ;;
9937
9938 solaris*)
9939   version_type=linux
9940   need_lib_prefix=no
9941   need_version=no
9942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943   soname_spec='${libname}${release}${shared_ext}$major'
9944   shlibpath_var=LD_LIBRARY_PATH
9945   shlibpath_overrides_runpath=yes
9946   hardcode_into_libs=yes
9947   # ldd complains unless libraries are executable
9948   postinstall_cmds='chmod +x $lib'
9949   ;;
9950
9951 sunos4*)
9952   version_type=sunos
9953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9954   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9955   shlibpath_var=LD_LIBRARY_PATH
9956   shlibpath_overrides_runpath=yes
9957   if test "$with_gnu_ld" = yes; then
9958     need_lib_prefix=no
9959   fi
9960   need_version=yes
9961   ;;
9962
9963 sysv4 | sysv4.3*)
9964   version_type=linux
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   case $host_vendor in
9969     sni)
9970       shlibpath_overrides_runpath=no
9971       need_lib_prefix=no
9972       export_dynamic_flag_spec='${wl}-Blargedynsym'
9973       runpath_var=LD_RUN_PATH
9974       ;;
9975     siemens)
9976       need_lib_prefix=no
9977       ;;
9978     motorola)
9979       need_lib_prefix=no
9980       need_version=no
9981       shlibpath_overrides_runpath=no
9982       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9983       ;;
9984   esac
9985   ;;
9986
9987 sysv4*MP*)
9988   if test -d /usr/nec ;then
9989     version_type=linux
9990     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9991     soname_spec='$libname${shared_ext}.$major'
9992     shlibpath_var=LD_LIBRARY_PATH
9993   fi
9994   ;;
9995
9996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9997   version_type=freebsd-elf
9998   need_lib_prefix=no
9999   need_version=no
10000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10001   soname_spec='${libname}${release}${shared_ext}$major'
10002   shlibpath_var=LD_LIBRARY_PATH
10003   hardcode_into_libs=yes
10004   if test "$with_gnu_ld" = yes; then
10005     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10006     shlibpath_overrides_runpath=no
10007   else
10008     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10009     shlibpath_overrides_runpath=yes
10010     case $host_os in
10011       sco3.2v5*)
10012         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10013         ;;
10014     esac
10015   fi
10016   sys_lib_dlsearch_path_spec='/usr/lib'
10017   ;;
10018
10019 uts4*)
10020   version_type=linux
10021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022   soname_spec='${libname}${release}${shared_ext}$major'
10023   shlibpath_var=LD_LIBRARY_PATH
10024   ;;
10025
10026 *)
10027   dynamic_linker=no
10028   ;;
10029 esac
10030 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10031 echo "${ECHO_T}$dynamic_linker" >&6; }
10032 test "$dynamic_linker" = no && can_build_shared=no
10033
10034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10035 if test "$GCC" = yes; then
10036   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10037 fi
10038
10039 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10040 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10041 hardcode_action=
10042 if test -n "$hardcode_libdir_flag_spec" || \
10043    test -n "$runpath_var" || \
10044    test "X$hardcode_automatic" = "Xyes" ; then
10045
10046   # We can hardcode non-existant directories.
10047   if test "$hardcode_direct" != no &&
10048      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10049      # have to relink, otherwise we might link with an installed library
10050      # when we should be linking with a yet-to-be-installed one
10051      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10052      test "$hardcode_minus_L" != no; then
10053     # Linking always hardcodes the temporary library directory.
10054     hardcode_action=relink
10055   else
10056     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10057     hardcode_action=immediate
10058   fi
10059 else
10060   # We cannot hardcode anything, or else we can only hardcode existing
10061   # directories.
10062   hardcode_action=unsupported
10063 fi
10064 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10065 echo "${ECHO_T}$hardcode_action" >&6; }
10066
10067 if test "$hardcode_action" = relink; then
10068   # Fast installation is not supported
10069   enable_fast_install=no
10070 elif test "$shlibpath_overrides_runpath" = yes ||
10071      test "$enable_shared" = no; then
10072   # Fast installation is not necessary
10073   enable_fast_install=needless
10074 fi
10075
10076 striplib=
10077 old_striplib=
10078 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10079 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10080 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10081   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10082   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10083   { echo "$as_me:$LINENO: result: yes" >&5
10084 echo "${ECHO_T}yes" >&6; }
10085 else
10086 # FIXME - insert some real tests, host_os isn't really good enough
10087   case $host_os in
10088    darwin*)
10089        if test -n "$STRIP" ; then
10090          striplib="$STRIP -x"
10091          { echo "$as_me:$LINENO: result: yes" >&5
10092 echo "${ECHO_T}yes" >&6; }
10093        else
10094   { echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6; }
10096 fi
10097        ;;
10098    *)
10099   { echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6; }
10101     ;;
10102   esac
10103 fi
10104
10105 if test "x$enable_dlopen" != xyes; then
10106   enable_dlopen=unknown
10107   enable_dlopen_self=unknown
10108   enable_dlopen_self_static=unknown
10109 else
10110   lt_cv_dlopen=no
10111   lt_cv_dlopen_libs=
10112
10113   case $host_os in
10114   beos*)
10115     lt_cv_dlopen="load_add_on"
10116     lt_cv_dlopen_libs=
10117     lt_cv_dlopen_self=yes
10118     ;;
10119
10120   mingw* | pw32*)
10121     lt_cv_dlopen="LoadLibrary"
10122     lt_cv_dlopen_libs=
10123    ;;
10124
10125   cygwin*)
10126     lt_cv_dlopen="dlopen"
10127     lt_cv_dlopen_libs=
10128    ;;
10129
10130   darwin*)
10131   # if libdl is installed we need to link against it
10132     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10133 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137   ac_check_lib_save_LIBS=$LIBS
10138 LIBS="-ldl  $LIBS"
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145
10146 /* Override any GCC internal prototype to avoid an error.
10147    Use char because int might match the return type of a GCC
10148    builtin and then its argument prototype would still apply.  */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char dlopen ();
10153 int
10154 main ()
10155 {
10156 return dlopen ();
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_link") 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10176   { (case "(($ac_try" in
10177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178   *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181   (eval "$ac_try") 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; } &&
10185          { ac_try='test -s conftest$ac_exeext'
10186   { (case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_try") 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   ac_cv_lib_dl_dlopen=yes
10196 else
10197   echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200         ac_cv_lib_dl_dlopen=no
10201 fi
10202
10203 rm -f core conftest.err conftest.$ac_objext \
10204       conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10206 fi
10207 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10209 if test $ac_cv_lib_dl_dlopen = yes; then
10210   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10211 else
10212
10213     lt_cv_dlopen="dyld"
10214     lt_cv_dlopen_libs=
10215     lt_cv_dlopen_self=yes
10216
10217 fi
10218
10219    ;;
10220
10221   *)
10222     { echo "$as_me:$LINENO: checking for shl_load" >&5
10223 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10224 if test "${ac_cv_func_shl_load+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227   cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h.  */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h.  */
10233 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10235 #define shl_load innocuous_shl_load
10236
10237 /* System header to define __stub macros and hopefully few prototypes,
10238     which can conflict with char shl_load (); below.
10239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240     <limits.h> exists even on freestanding compilers.  */
10241
10242 #ifdef __STDC__
10243 # include <limits.h>
10244 #else
10245 # include <assert.h>
10246 #endif
10247
10248 #undef shl_load
10249
10250 /* Override any GCC internal prototype to avoid an error.
10251    Use char because int might match the return type of a GCC
10252    builtin and then its argument prototype would still apply.  */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char shl_load ();
10257 /* The GNU C library defines this for functions which it implements
10258     to always fail with ENOSYS.  Some functions are actually named
10259     something starting with __ and the normal name is an alias.  */
10260 #if defined __stub_shl_load || defined __stub___shl_load
10261 choke me
10262 #endif
10263
10264 int
10265 main ()
10266 {
10267 return shl_load ();
10268   ;
10269   return 0;
10270 }
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276   *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279   (eval "$ac_link") 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10287   { (case "(($ac_try" in
10288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289   *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292   (eval "$ac_try") 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; } &&
10296          { ac_try='test -s conftest$ac_exeext'
10297   { (case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302   (eval "$ac_try") 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); }; }; then
10306   ac_cv_func_shl_load=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311         ac_cv_func_shl_load=no
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext \
10315       conftest$ac_exeext conftest.$ac_ext
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10318 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10319 if test $ac_cv_func_shl_load = yes; then
10320   lt_cv_dlopen="shl_load"
10321 else
10322   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10323 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-ldld  $LIBS"
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337    Use char because int might match the return type of a GCC
10338    builtin and then its argument prototype would still apply.  */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char shl_load ();
10343 int
10344 main ()
10345 {
10346 return shl_load ();
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_link") 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } &&
10365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366   { (case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_try") 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; } &&
10375          { ac_try='test -s conftest$ac_exeext'
10376   { (case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_try") 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   ac_cv_lib_dld_shl_load=yes
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390         ac_cv_lib_dld_shl_load=no
10391 fi
10392
10393 rm -f core conftest.err conftest.$ac_objext \
10394       conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10396 fi
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10399 if test $ac_cv_lib_dld_shl_load = yes; then
10400   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10401 else
10402   { echo "$as_me:$LINENO: checking for dlopen" >&5
10403 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10404 if test "${ac_cv_func_dlopen+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10415 #define dlopen innocuous_dlopen
10416
10417 /* System header to define __stub macros and hopefully few prototypes,
10418     which can conflict with char dlopen (); below.
10419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10420     <limits.h> exists even on freestanding compilers.  */
10421
10422 #ifdef __STDC__
10423 # include <limits.h>
10424 #else
10425 # include <assert.h>
10426 #endif
10427
10428 #undef dlopen
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431    Use char because int might match the return type of a GCC
10432    builtin and then its argument prototype would still apply.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char dlopen ();
10437 /* The GNU C library defines this for functions which it implements
10438     to always fail with ENOSYS.  Some functions are actually named
10439     something starting with __ and the normal name is an alias.  */
10440 #if defined __stub_dlopen || defined __stub___dlopen
10441 choke me
10442 #endif
10443
10444 int
10445 main ()
10446 {
10447 return dlopen ();
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_link") 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } &&
10466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10467   { (case "(($ac_try" in
10468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469   *) ac_try_echo=$ac_try;;
10470 esac
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472   (eval "$ac_try") 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest$ac_exeext'
10477   { (case "(($ac_try" in
10478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479   *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482   (eval "$ac_try") 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_cv_func_dlopen=yes
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491         ac_cv_func_dlopen=no
10492 fi
10493
10494 rm -f core conftest.err conftest.$ac_objext \
10495       conftest$ac_exeext conftest.$ac_ext
10496 fi
10497 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10498 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10499 if test $ac_cv_func_dlopen = yes; then
10500   lt_cv_dlopen="dlopen"
10501 else
10502   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ldl  $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515
10516 /* Override any GCC internal prototype to avoid an error.
10517    Use char because int might match the return type of a GCC
10518    builtin and then its argument prototype would still apply.  */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char dlopen ();
10523 int
10524 main ()
10525 {
10526 return dlopen ();
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535   *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538   (eval "$ac_link") 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546   { (case "(($ac_try" in
10547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548   *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551   (eval "$ac_try") 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; } &&
10555          { ac_try='test -s conftest$ac_exeext'
10556   { (case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_try") 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); }; }; then
10565   ac_cv_lib_dl_dlopen=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570         ac_cv_lib_dl_dlopen=no
10571 fi
10572
10573 rm -f core conftest.err conftest.$ac_objext \
10574       conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10576 fi
10577 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10578 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10579 if test $ac_cv_lib_dl_dlopen = yes; then
10580   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10581 else
10582   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10583 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10584 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587   ac_check_lib_save_LIBS=$LIBS
10588 LIBS="-lsvld  $LIBS"
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h.  */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h.  */
10595
10596 /* Override any GCC internal prototype to avoid an error.
10597    Use char because int might match the return type of a GCC
10598    builtin and then its argument prototype would still apply.  */
10599 #ifdef __cplusplus
10600 extern "C"
10601 #endif
10602 char dlopen ();
10603 int
10604 main ()
10605 {
10606 return dlopen ();
10607   ;
10608   return 0;
10609 }
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (ac_try="$ac_link"
10613 case "(($ac_try" in
10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615   *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618   (eval "$ac_link") 2>conftest.er1
10619   ac_status=$?
10620   grep -v '^ *+' conftest.er1 >conftest.err
10621   rm -f conftest.er1
10622   cat conftest.err >&5
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10626   { (case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_try") 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; } &&
10635          { ac_try='test -s conftest$ac_exeext'
10636   { (case "(($ac_try" in
10637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638   *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641   (eval "$ac_try") 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645   ac_cv_lib_svld_dlopen=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650         ac_cv_lib_svld_dlopen=no
10651 fi
10652
10653 rm -f core conftest.err conftest.$ac_objext \
10654       conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10656 fi
10657 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10658 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10659 if test $ac_cv_lib_svld_dlopen = yes; then
10660   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10661 else
10662   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10663 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10664 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-ldld  $LIBS"
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h.  */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h.  */
10675
10676 /* Override any GCC internal prototype to avoid an error.
10677    Use char because int might match the return type of a GCC
10678    builtin and then its argument prototype would still apply.  */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char dld_link ();
10683 int
10684 main ()
10685 {
10686 return dld_link ();
10687   ;
10688   return 0;
10689 }
10690 _ACEOF
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (ac_try="$ac_link"
10693 case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698   (eval "$ac_link") 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706   { (case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_try") 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest$ac_exeext'
10716   { (case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_try") 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_cv_lib_dld_dld_link=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_cv_lib_dld_dld_link=no
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext \
10734       conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10736 fi
10737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10739 if test $ac_cv_lib_dld_dld_link = yes; then
10740   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749
10750 fi
10751
10752
10753 fi
10754
10755
10756 fi
10757
10758     ;;
10759   esac
10760
10761   if test "x$lt_cv_dlopen" != xno; then
10762     enable_dlopen=yes
10763   else
10764     enable_dlopen=no
10765   fi
10766
10767   case $lt_cv_dlopen in
10768   dlopen)
10769     save_CPPFLAGS="$CPPFLAGS"
10770     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10771
10772     save_LDFLAGS="$LDFLAGS"
10773     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10774
10775     save_LIBS="$LIBS"
10776     LIBS="$lt_cv_dlopen_libs $LIBS"
10777
10778     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10779 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10780 if test "${lt_cv_dlopen_self+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783           if test "$cross_compiling" = yes; then :
10784   lt_cv_dlopen_self=cross
10785 else
10786   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10787   lt_status=$lt_dlunknown
10788   cat > conftest.$ac_ext <<EOF
10789 #line 10789 "configure"
10790 #include "confdefs.h"
10791
10792 #if HAVE_DLFCN_H
10793 #include <dlfcn.h>
10794 #endif
10795
10796 #include <stdio.h>
10797
10798 #ifdef RTLD_GLOBAL
10799 #  define LT_DLGLOBAL           RTLD_GLOBAL
10800 #else
10801 #  ifdef DL_GLOBAL
10802 #    define LT_DLGLOBAL         DL_GLOBAL
10803 #  else
10804 #    define LT_DLGLOBAL         0
10805 #  endif
10806 #endif
10807
10808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10809    find out it does not work in some platform. */
10810 #ifndef LT_DLLAZY_OR_NOW
10811 #  ifdef RTLD_LAZY
10812 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10813 #  else
10814 #    ifdef DL_LAZY
10815 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10816 #    else
10817 #      ifdef RTLD_NOW
10818 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10819 #      else
10820 #        ifdef DL_NOW
10821 #          define LT_DLLAZY_OR_NOW      DL_NOW
10822 #        else
10823 #          define LT_DLLAZY_OR_NOW      0
10824 #        endif
10825 #      endif
10826 #    endif
10827 #  endif
10828 #endif
10829
10830 #ifdef __cplusplus
10831 extern "C" void exit (int);
10832 #endif
10833
10834 void fnord() { int i=42;}
10835 int main ()
10836 {
10837   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10838   int status = $lt_dlunknown;
10839
10840   if (self)
10841     {
10842       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10843       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10844       /* dlclose (self); */
10845     }
10846   else
10847     puts (dlerror ());
10848
10849     exit (status);
10850 }
10851 EOF
10852   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853   (eval $ac_link) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10857     (./conftest; exit; ) >&5 2>/dev/null
10858     lt_status=$?
10859     case x$lt_status in
10860       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10861       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10862       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10863     esac
10864   else :
10865     # compilation failed
10866     lt_cv_dlopen_self=no
10867   fi
10868 fi
10869 rm -fr conftest*
10870
10871
10872 fi
10873 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10874 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10875
10876     if test "x$lt_cv_dlopen_self" = xyes; then
10877       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10878       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10879 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10880 if test "${lt_cv_dlopen_self_static+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883           if test "$cross_compiling" = yes; then :
10884   lt_cv_dlopen_self_static=cross
10885 else
10886   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887   lt_status=$lt_dlunknown
10888   cat > conftest.$ac_ext <<EOF
10889 #line 10889 "configure"
10890 #include "confdefs.h"
10891
10892 #if HAVE_DLFCN_H
10893 #include <dlfcn.h>
10894 #endif
10895
10896 #include <stdio.h>
10897
10898 #ifdef RTLD_GLOBAL
10899 #  define LT_DLGLOBAL           RTLD_GLOBAL
10900 #else
10901 #  ifdef DL_GLOBAL
10902 #    define LT_DLGLOBAL         DL_GLOBAL
10903 #  else
10904 #    define LT_DLGLOBAL         0
10905 #  endif
10906 #endif
10907
10908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909    find out it does not work in some platform. */
10910 #ifndef LT_DLLAZY_OR_NOW
10911 #  ifdef RTLD_LAZY
10912 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10913 #  else
10914 #    ifdef DL_LAZY
10915 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10916 #    else
10917 #      ifdef RTLD_NOW
10918 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10919 #      else
10920 #        ifdef DL_NOW
10921 #          define LT_DLLAZY_OR_NOW      DL_NOW
10922 #        else
10923 #          define LT_DLLAZY_OR_NOW      0
10924 #        endif
10925 #      endif
10926 #    endif
10927 #  endif
10928 #endif
10929
10930 #ifdef __cplusplus
10931 extern "C" void exit (int);
10932 #endif
10933
10934 void fnord() { int i=42;}
10935 int main ()
10936 {
10937   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938   int status = $lt_dlunknown;
10939
10940   if (self)
10941     {
10942       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10943       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10944       /* dlclose (self); */
10945     }
10946   else
10947     puts (dlerror ());
10948
10949     exit (status);
10950 }
10951 EOF
10952   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953   (eval $ac_link) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10957     (./conftest; exit; ) >&5 2>/dev/null
10958     lt_status=$?
10959     case x$lt_status in
10960       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10963     esac
10964   else :
10965     # compilation failed
10966     lt_cv_dlopen_self_static=no
10967   fi
10968 fi
10969 rm -fr conftest*
10970
10971
10972 fi
10973 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10974 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10975     fi
10976
10977     CPPFLAGS="$save_CPPFLAGS"
10978     LDFLAGS="$save_LDFLAGS"
10979     LIBS="$save_LIBS"
10980     ;;
10981   esac
10982
10983   case $lt_cv_dlopen_self in
10984   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985   *) enable_dlopen_self=unknown ;;
10986   esac
10987
10988   case $lt_cv_dlopen_self_static in
10989   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990   *) enable_dlopen_self_static=unknown ;;
10991   esac
10992 fi
10993
10994
10995 # Report which library types will actually be built
10996 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10997 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10998 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10999 echo "${ECHO_T}$can_build_shared" >&6; }
11000
11001 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11002 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11003 test "$can_build_shared" = "no" && enable_shared=no
11004
11005 # On AIX, shared libraries and static libraries use the same namespace, and
11006 # are all built from PIC.
11007 case $host_os in
11008 aix3*)
11009   test "$enable_shared" = yes && enable_static=no
11010   if test -n "$RANLIB"; then
11011     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11012     postinstall_cmds='$RANLIB $lib'
11013   fi
11014   ;;
11015
11016 aix4* | aix5*)
11017   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11018     test "$enable_shared" = yes && enable_static=no
11019   fi
11020     ;;
11021 esac
11022 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11023 echo "${ECHO_T}$enable_shared" >&6; }
11024
11025 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11026 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11027 # Make sure either enable_shared or enable_static is yes.
11028 test "$enable_shared" = yes || enable_static=yes
11029 { echo "$as_me:$LINENO: result: $enable_static" >&5
11030 echo "${ECHO_T}$enable_static" >&6; }
11031
11032 # The else clause should only fire when bootstrapping the
11033 # libtool distribution, otherwise you forgot to ship ltmain.sh
11034 # with your package, and you will get complaints that there are
11035 # no rules to generate ltmain.sh.
11036 if test -f "$ltmain"; then
11037   # See if we are running on zsh, and set the options which allow our commands through
11038   # without removal of \ escapes.
11039   if test -n "${ZSH_VERSION+set}" ; then
11040     setopt NO_GLOB_SUBST
11041   fi
11042   # Now quote all the things that may contain metacharacters while being
11043   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11044   # variables and quote the copies for generation of the libtool script.
11045   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11046     SED SHELL STRIP \
11047     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11048     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11049     deplibs_check_method reload_flag reload_cmds need_locks \
11050     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11051     lt_cv_sys_global_symbol_to_c_name_address \
11052     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11053     old_postinstall_cmds old_postuninstall_cmds \
11054     compiler \
11055     CC \
11056     LD \
11057     lt_prog_compiler_wl \
11058     lt_prog_compiler_pic \
11059     lt_prog_compiler_static \
11060     lt_prog_compiler_no_builtin_flag \
11061     export_dynamic_flag_spec \
11062     thread_safe_flag_spec \
11063     whole_archive_flag_spec \
11064     enable_shared_with_static_runtimes \
11065     old_archive_cmds \
11066     old_archive_from_new_cmds \
11067     predep_objects \
11068     postdep_objects \
11069     predeps \
11070     postdeps \
11071     compiler_lib_search_path \
11072     archive_cmds \
11073     archive_expsym_cmds \
11074     postinstall_cmds \
11075     postuninstall_cmds \
11076     old_archive_from_expsyms_cmds \
11077     allow_undefined_flag \
11078     no_undefined_flag \
11079     export_symbols_cmds \
11080     hardcode_libdir_flag_spec \
11081     hardcode_libdir_flag_spec_ld \
11082     hardcode_libdir_separator \
11083     hardcode_automatic \
11084     module_cmds \
11085     module_expsym_cmds \
11086     lt_cv_prog_compiler_c_o \
11087     exclude_expsyms \
11088     include_expsyms; do
11089
11090     case $var in
11091     old_archive_cmds | \
11092     old_archive_from_new_cmds | \
11093     archive_cmds | \
11094     archive_expsym_cmds | \
11095     module_cmds | \
11096     module_expsym_cmds | \
11097     old_archive_from_expsyms_cmds | \
11098     export_symbols_cmds | \
11099     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11100     postinstall_cmds | postuninstall_cmds | \
11101     old_postinstall_cmds | old_postuninstall_cmds | \
11102     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11103       # Double-quote double-evaled strings.
11104       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11105       ;;
11106     *)
11107       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11108       ;;
11109     esac
11110   done
11111
11112   case $lt_echo in
11113   *'\$0 --fallback-echo"')
11114     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11115     ;;
11116   esac
11117
11118 cfgfile="${ofile}T"
11119   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11120   $rm -f "$cfgfile"
11121   { echo "$as_me:$LINENO: creating $ofile" >&5
11122 echo "$as_me: creating $ofile" >&6;}
11123
11124   cat <<__EOF__ >> "$cfgfile"
11125 #! $SHELL
11126
11127 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11128 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11129 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11130 #
11131 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11132 # Free Software Foundation, Inc.
11133 #
11134 # This file is part of GNU Libtool:
11135 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11136 #
11137 # This program is free software; you can redistribute it and/or modify
11138 # it under the terms of the GNU General Public License as published by
11139 # the Free Software Foundation; either version 2 of the License, or
11140 # (at your option) any later version.
11141 #
11142 # This program is distributed in the hope that it will be useful, but
11143 # WITHOUT ANY WARRANTY; without even the implied warranty of
11144 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11145 # General Public License for more details.
11146 #
11147 # You should have received a copy of the GNU General Public License
11148 # along with this program; if not, write to the Free Software
11149 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11150 #
11151 # As a special exception to the GNU General Public License, if you
11152 # distribute this file as part of a program that contains a
11153 # configuration script generated by Autoconf, you may include it under
11154 # the same distribution terms that you use for the rest of that program.
11155
11156 # A sed program that does not truncate output.
11157 SED=$lt_SED
11158
11159 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11160 Xsed="$SED -e 1s/^X//"
11161
11162 # The HP-UX ksh and POSIX shell print the target directory to stdout
11163 # if CDPATH is set.
11164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11165
11166 # The names of the tagged configurations supported by this script.
11167 available_tags=
11168
11169 # ### BEGIN LIBTOOL CONFIG
11170
11171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11172
11173 # Shell to use when invoking shell scripts.
11174 SHELL=$lt_SHELL
11175
11176 # Whether or not to build shared libraries.
11177 build_libtool_libs=$enable_shared
11178
11179 # Whether or not to build static libraries.
11180 build_old_libs=$enable_static
11181
11182 # Whether or not to add -lc for building shared libraries.
11183 build_libtool_need_lc=$archive_cmds_need_lc
11184
11185 # Whether or not to disallow shared libs when runtime libs are static
11186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11187
11188 # Whether or not to optimize for fast installation.
11189 fast_install=$enable_fast_install
11190
11191 # The host system.
11192 host_alias=$host_alias
11193 host=$host
11194 host_os=$host_os
11195
11196 # The build system.
11197 build_alias=$build_alias
11198 build=$build
11199 build_os=$build_os
11200
11201 # An echo program that does not interpret backslashes.
11202 echo=$lt_echo
11203
11204 # The archiver.
11205 AR=$lt_AR
11206 AR_FLAGS=$lt_AR_FLAGS
11207
11208 # A C compiler.
11209 LTCC=$lt_LTCC
11210
11211 # LTCC compiler flags.
11212 LTCFLAGS=$lt_LTCFLAGS
11213
11214 # A language-specific compiler.
11215 CC=$lt_compiler
11216
11217 # Is the compiler the GNU C compiler?
11218 with_gcc=$GCC
11219
11220 # An ERE matcher.
11221 EGREP=$lt_EGREP
11222
11223 # The linker used to build libraries.
11224 LD=$lt_LD
11225
11226 # Whether we need hard or soft links.
11227 LN_S=$lt_LN_S
11228
11229 # A BSD-compatible nm program.
11230 NM=$lt_NM
11231
11232 # A symbol stripping program
11233 STRIP=$lt_STRIP
11234
11235 # Used to examine libraries when file_magic_cmd begins "file"
11236 MAGIC_CMD=$MAGIC_CMD
11237
11238 # Used on cygwin: DLL creation program.
11239 DLLTOOL="$DLLTOOL"
11240
11241 # Used on cygwin: object dumper.
11242 OBJDUMP="$OBJDUMP"
11243
11244 # Used on cygwin: assembler.
11245 AS="$AS"
11246
11247 # The name of the directory that contains temporary libtool files.
11248 objdir=$objdir
11249
11250 # How to create reloadable object files.
11251 reload_flag=$lt_reload_flag
11252 reload_cmds=$lt_reload_cmds
11253
11254 # How to pass a linker flag through the compiler.
11255 wl=$lt_lt_prog_compiler_wl
11256
11257 # Object file suffix (normally "o").
11258 objext="$ac_objext"
11259
11260 # Old archive suffix (normally "a").
11261 libext="$libext"
11262
11263 # Shared library suffix (normally ".so").
11264 shrext_cmds='$shrext_cmds'
11265
11266 # Executable file suffix (normally "").
11267 exeext="$exeext"
11268
11269 # Additional compiler flags for building library objects.
11270 pic_flag=$lt_lt_prog_compiler_pic
11271 pic_mode=$pic_mode
11272
11273 # What is the maximum length of a command?
11274 max_cmd_len=$lt_cv_sys_max_cmd_len
11275
11276 # Does compiler simultaneously support -c and -o options?
11277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11278
11279 # Must we lock files when doing compilation?
11280 need_locks=$lt_need_locks
11281
11282 # Do we need the lib prefix for modules?
11283 need_lib_prefix=$need_lib_prefix
11284
11285 # Do we need a version for libraries?
11286 need_version=$need_version
11287
11288 # Whether dlopen is supported.
11289 dlopen_support=$enable_dlopen
11290
11291 # Whether dlopen of programs is supported.
11292 dlopen_self=$enable_dlopen_self
11293
11294 # Whether dlopen of statically linked programs is supported.
11295 dlopen_self_static=$enable_dlopen_self_static
11296
11297 # Compiler flag to prevent dynamic linking.
11298 link_static_flag=$lt_lt_prog_compiler_static
11299
11300 # Compiler flag to turn off builtin functions.
11301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11302
11303 # Compiler flag to allow reflexive dlopens.
11304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11305
11306 # Compiler flag to generate shared objects directly from archives.
11307 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11308
11309 # Compiler flag to generate thread-safe objects.
11310 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11311
11312 # Library versioning type.
11313 version_type=$version_type
11314
11315 # Format of library name prefix.
11316 libname_spec=$lt_libname_spec
11317
11318 # List of archive names.  First name is the real one, the rest are links.
11319 # The last name is the one that the linker finds with -lNAME.
11320 library_names_spec=$lt_library_names_spec
11321
11322 # The coded name of the library, if different from the real name.
11323 soname_spec=$lt_soname_spec
11324
11325 # Commands used to build and install an old-style archive.
11326 RANLIB=$lt_RANLIB
11327 old_archive_cmds=$lt_old_archive_cmds
11328 old_postinstall_cmds=$lt_old_postinstall_cmds
11329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11330
11331 # Create an old-style archive from a shared archive.
11332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11333
11334 # Create a temporary old-style archive to link instead of a shared archive.
11335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11336
11337 # Commands used to build and install a shared archive.
11338 archive_cmds=$lt_archive_cmds
11339 archive_expsym_cmds=$lt_archive_expsym_cmds
11340 postinstall_cmds=$lt_postinstall_cmds
11341 postuninstall_cmds=$lt_postuninstall_cmds
11342
11343 # Commands used to build a loadable module (assumed same as above if empty)
11344 module_cmds=$lt_module_cmds
11345 module_expsym_cmds=$lt_module_expsym_cmds
11346
11347 # Commands to strip libraries.
11348 old_striplib=$lt_old_striplib
11349 striplib=$lt_striplib
11350
11351 # Dependencies to place before the objects being linked to create a
11352 # shared library.
11353 predep_objects=$lt_predep_objects
11354
11355 # Dependencies to place after the objects being linked to create a
11356 # shared library.
11357 postdep_objects=$lt_postdep_objects
11358
11359 # Dependencies to place before the objects being linked to create a
11360 # shared library.
11361 predeps=$lt_predeps
11362
11363 # Dependencies to place after the objects being linked to create a
11364 # shared library.
11365 postdeps=$lt_postdeps
11366
11367 # The library search path used internally by the compiler when linking
11368 # a shared library.
11369 compiler_lib_search_path=$lt_compiler_lib_search_path
11370
11371 # Method to check whether dependent libraries are shared objects.
11372 deplibs_check_method=$lt_deplibs_check_method
11373
11374 # Command to use when deplibs_check_method == file_magic.
11375 file_magic_cmd=$lt_file_magic_cmd
11376
11377 # Flag that allows shared libraries with undefined symbols to be built.
11378 allow_undefined_flag=$lt_allow_undefined_flag
11379
11380 # Flag that forces no undefined symbols.
11381 no_undefined_flag=$lt_no_undefined_flag
11382
11383 # Commands used to finish a libtool library installation in a directory.
11384 finish_cmds=$lt_finish_cmds
11385
11386 # Same as above, but a single script fragment to be evaled but not shown.
11387 finish_eval=$lt_finish_eval
11388
11389 # Take the output of nm and produce a listing of raw symbols and C names.
11390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11391
11392 # Transform the output of nm in a proper C declaration
11393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11394
11395 # Transform the output of nm in a C name address pair
11396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11397
11398 # This is the shared library runtime path variable.
11399 runpath_var=$runpath_var
11400
11401 # This is the shared library path variable.
11402 shlibpath_var=$shlibpath_var
11403
11404 # Is shlibpath searched before the hard-coded library search path?
11405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11406
11407 # How to hardcode a shared library path into an executable.
11408 hardcode_action=$hardcode_action
11409
11410 # Whether we should hardcode library paths into libraries.
11411 hardcode_into_libs=$hardcode_into_libs
11412
11413 # Flag to hardcode \$libdir into a binary during linking.
11414 # This must work even if \$libdir does not exist.
11415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11416
11417 # If ld is used when linking, flag to hardcode \$libdir into
11418 # a binary during linking. This must work even if \$libdir does
11419 # not exist.
11420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11421
11422 # Whether we need a single -rpath flag with a separated argument.
11423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11424
11425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11426 # resulting binary.
11427 hardcode_direct=$hardcode_direct
11428
11429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11430 # resulting binary.
11431 hardcode_minus_L=$hardcode_minus_L
11432
11433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11434 # the resulting binary.
11435 hardcode_shlibpath_var=$hardcode_shlibpath_var
11436
11437 # Set to yes if building a shared library automatically hardcodes DIR into the library
11438 # and all subsequent libraries and executables linked against it.
11439 hardcode_automatic=$hardcode_automatic
11440
11441 # Variables whose values should be saved in libtool wrapper scripts and
11442 # restored at relink time.
11443 variables_saved_for_relink="$variables_saved_for_relink"
11444
11445 # Whether libtool must link a program against all its dependency libraries.
11446 link_all_deplibs=$link_all_deplibs
11447
11448 # Compile-time system search path for libraries
11449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11450
11451 # Run-time system search path for libraries
11452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11453
11454 # Fix the shell variable \$srcfile for the compiler.
11455 fix_srcfile_path="$fix_srcfile_path"
11456
11457 # Set to yes if exported symbols are required.
11458 always_export_symbols=$always_export_symbols
11459
11460 # The commands to list exported symbols.
11461 export_symbols_cmds=$lt_export_symbols_cmds
11462
11463 # The commands to extract the exported symbol list from a shared archive.
11464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11465
11466 # Symbols that should not be listed in the preloaded symbols.
11467 exclude_expsyms=$lt_exclude_expsyms
11468
11469 # Symbols that must always be exported.
11470 include_expsyms=$lt_include_expsyms
11471
11472 # ### END LIBTOOL CONFIG
11473
11474 __EOF__
11475
11476
11477   case $host_os in
11478   aix3*)
11479     cat <<\EOF >> "$cfgfile"
11480
11481 # AIX sometimes has problems with the GCC collect2 program.  For some
11482 # reason, if we set the COLLECT_NAMES environment variable, the problems
11483 # vanish in a puff of smoke.
11484 if test "X${COLLECT_NAMES+set}" != Xset; then
11485   COLLECT_NAMES=
11486   export COLLECT_NAMES
11487 fi
11488 EOF
11489     ;;
11490   esac
11491
11492   # We use sed instead of cat because bash on DJGPP gets confused if
11493   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11494   # text mode, it properly converts lines to CR/LF.  This bash problem
11495   # is reportedly fixed, but why not run on old versions too?
11496   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11497
11498   mv -f "$cfgfile" "$ofile" || \
11499     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11500   chmod +x "$ofile"
11501
11502 else
11503   # If there is no Makefile yet, we rely on a make rule to execute
11504   # `config.status --recheck' to rerun these tests and create the
11505   # libtool script then.
11506   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11507   if test -f "$ltmain_in"; then
11508     test -f Makefile && make "$ltmain"
11509   fi
11510 fi
11511
11512
11513 ac_ext=c
11514 ac_cpp='$CPP $CPPFLAGS'
11515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11518
11519 CC="$lt_save_CC"
11520
11521
11522 # Check whether --with-tags was given.
11523 if test "${with_tags+set}" = set; then
11524   withval=$with_tags; tagnames="$withval"
11525 fi
11526
11527
11528 if test -f "$ltmain" && test -n "$tagnames"; then
11529   if test ! -f "${ofile}"; then
11530     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11531 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11532   fi
11533
11534   if test -z "$LTCC"; then
11535     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11536     if test -z "$LTCC"; then
11537       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11538 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11539     else
11540       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11541 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11542     fi
11543   fi
11544   if test -z "$LTCFLAGS"; then
11545     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11546   fi
11547
11548   # Extract list of available tagged configurations in $ofile.
11549   # Note that this assumes the entire list is on one line.
11550   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11551
11552   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11553   for tagname in $tagnames; do
11554     IFS="$lt_save_ifs"
11555     # Check whether tagname contains only valid characters
11556     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11557     "") ;;
11558     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11559 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11560    { (exit 1); exit 1; }; }
11561         ;;
11562     esac
11563
11564     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11565     then
11566       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11567 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11568    { (exit 1); exit 1; }; }
11569     fi
11570
11571     # Update the list of available tags.
11572     if test -n "$tagname"; then
11573       echo appending configuration tag \"$tagname\" to $ofile
11574
11575       case $tagname in
11576       CXX)
11577         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11578             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11579             (test "X$CXX" != "Xg++"))) ; then
11580           ac_ext=cpp
11581 ac_cpp='$CXXCPP $CPPFLAGS'
11582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11585
11586
11587
11588
11589 archive_cmds_need_lc_CXX=no
11590 allow_undefined_flag_CXX=
11591 always_export_symbols_CXX=no
11592 archive_expsym_cmds_CXX=
11593 export_dynamic_flag_spec_CXX=
11594 hardcode_direct_CXX=no
11595 hardcode_libdir_flag_spec_CXX=
11596 hardcode_libdir_flag_spec_ld_CXX=
11597 hardcode_libdir_separator_CXX=
11598 hardcode_minus_L_CXX=no
11599 hardcode_shlibpath_var_CXX=unsupported
11600 hardcode_automatic_CXX=no
11601 module_cmds_CXX=
11602 module_expsym_cmds_CXX=
11603 link_all_deplibs_CXX=unknown
11604 old_archive_cmds_CXX=$old_archive_cmds
11605 no_undefined_flag_CXX=
11606 whole_archive_flag_spec_CXX=
11607 enable_shared_with_static_runtimes_CXX=no
11608
11609 # Dependencies to place before and after the object being linked:
11610 predep_objects_CXX=
11611 postdep_objects_CXX=
11612 predeps_CXX=
11613 postdeps_CXX=
11614 compiler_lib_search_path_CXX=
11615
11616 # Source file extension for C++ test sources.
11617 ac_ext=cpp
11618
11619 # Object file extension for compiled C++ test sources.
11620 objext=o
11621 objext_CXX=$objext
11622
11623 # Code to be used in simple compile tests
11624 lt_simple_compile_test_code="int some_variable = 0;\n"
11625
11626 # Code to be used in simple link tests
11627 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11628
11629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11630
11631 # If no C compiler was specified, use CC.
11632 LTCC=${LTCC-"$CC"}
11633
11634 # If no C compiler flags were specified, use CFLAGS.
11635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11636
11637 # Allow CC to be a program name with arguments.
11638 compiler=$CC
11639
11640
11641 # save warnings/boilerplate of simple test code
11642 ac_outfile=conftest.$ac_objext
11643 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11645 _lt_compiler_boilerplate=`cat conftest.err`
11646 $rm conftest*
11647
11648 ac_outfile=conftest.$ac_objext
11649 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11651 _lt_linker_boilerplate=`cat conftest.err`
11652 $rm conftest*
11653
11654
11655 # Allow CC to be a program name with arguments.
11656 lt_save_CC=$CC
11657 lt_save_LD=$LD
11658 lt_save_GCC=$GCC
11659 GCC=$GXX
11660 lt_save_with_gnu_ld=$with_gnu_ld
11661 lt_save_path_LD=$lt_cv_path_LD
11662 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11663   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11664 else
11665   $as_unset lt_cv_prog_gnu_ld
11666 fi
11667 if test -n "${lt_cv_path_LDCXX+set}"; then
11668   lt_cv_path_LD=$lt_cv_path_LDCXX
11669 else
11670   $as_unset lt_cv_path_LD
11671 fi
11672 test -z "${LDCXX+set}" || LD=$LDCXX
11673 CC=${CXX-"c++"}
11674 compiler=$CC
11675 compiler_CXX=$CC
11676 for cc_temp in $compiler""; do
11677   case $cc_temp in
11678     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11679     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11680     \-*) ;;
11681     *) break;;
11682   esac
11683 done
11684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11685
11686
11687 # We don't want -fno-exception wen compiling C++ code, so set the
11688 # no_builtin_flag separately
11689 if test "$GXX" = yes; then
11690   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11691 else
11692   lt_prog_compiler_no_builtin_flag_CXX=
11693 fi
11694
11695 if test "$GXX" = yes; then
11696   # Set up default GNU C++ configuration
11697
11698
11699 # Check whether --with-gnu-ld was given.
11700 if test "${with_gnu_ld+set}" = set; then
11701   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11702 else
11703   with_gnu_ld=no
11704 fi
11705
11706 ac_prog=ld
11707 if test "$GCC" = yes; then
11708   # Check if gcc -print-prog-name=ld gives a path.
11709   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11710 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11711   case $host in
11712   *-*-mingw*)
11713     # gcc leaves a trailing carriage return which upsets mingw
11714     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11715   *)
11716     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11717   esac
11718   case $ac_prog in
11719     # Accept absolute paths.
11720     [\\/]* | ?:[\\/]*)
11721       re_direlt='/[^/][^/]*/\.\./'
11722       # Canonicalize the pathname of ld
11723       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11724       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11725         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11726       done
11727       test -z "$LD" && LD="$ac_prog"
11728       ;;
11729   "")
11730     # If it fails, then pretend we aren't using GCC.
11731     ac_prog=ld
11732     ;;
11733   *)
11734     # If it is relative, then search for the first ld in PATH.
11735     with_gnu_ld=unknown
11736     ;;
11737   esac
11738 elif test "$with_gnu_ld" = yes; then
11739   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11740 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11741 else
11742   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11743 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11744 fi
11745 if test "${lt_cv_path_LD+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   if test -z "$LD"; then
11749   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11750   for ac_dir in $PATH; do
11751     IFS="$lt_save_ifs"
11752     test -z "$ac_dir" && ac_dir=.
11753     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11754       lt_cv_path_LD="$ac_dir/$ac_prog"
11755       # Check to see if the program is GNU ld.  I'd rather use --version,
11756       # but apparently some variants of GNU ld only accept -v.
11757       # Break only if it was the GNU/non-GNU ld that we prefer.
11758       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11759       *GNU* | *'with BFD'*)
11760         test "$with_gnu_ld" != no && break
11761         ;;
11762       *)
11763         test "$with_gnu_ld" != yes && break
11764         ;;
11765       esac
11766     fi
11767   done
11768   IFS="$lt_save_ifs"
11769 else
11770   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11771 fi
11772 fi
11773
11774 LD="$lt_cv_path_LD"
11775 if test -n "$LD"; then
11776   { echo "$as_me:$LINENO: result: $LD" >&5
11777 echo "${ECHO_T}$LD" >&6; }
11778 else
11779   { echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6; }
11781 fi
11782 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11783 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11784    { (exit 1); exit 1; }; }
11785 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11786 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11787 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11791 case `$LD -v 2>&1 </dev/null` in
11792 *GNU* | *'with BFD'*)
11793   lt_cv_prog_gnu_ld=yes
11794   ;;
11795 *)
11796   lt_cv_prog_gnu_ld=no
11797   ;;
11798 esac
11799 fi
11800 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11801 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11802 with_gnu_ld=$lt_cv_prog_gnu_ld
11803
11804
11805
11806   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11807   # archiving commands below assume that GNU ld is being used.
11808   if test "$with_gnu_ld" = yes; then
11809     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810     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'
11811
11812     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11813     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814
11815     # If archive_cmds runs LD, not CC, wlarc should be empty
11816     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11817     #     investigate it a little bit more. (MM)
11818     wlarc='${wl}'
11819
11820     # ancient GNU ld didn't support --whole-archive et. al.
11821     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11822         grep 'no-whole-archive' > /dev/null; then
11823       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11824     else
11825       whole_archive_flag_spec_CXX=
11826     fi
11827   else
11828     with_gnu_ld=no
11829     wlarc=
11830
11831     # A generic and very simple default shared library creation
11832     # command for GNU C++ for the case where it uses the native
11833     # linker, instead of GNU ld.  If possible, this setting should
11834     # overridden to take advantage of the native linker features on
11835     # the platform it is being used on.
11836     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11837   fi
11838
11839   # Commands to make compiler produce verbose output that lists
11840   # what "hidden" libraries, object files and flags are used when
11841   # linking a shared library.
11842   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11843
11844 else
11845   GXX=no
11846   with_gnu_ld=no
11847   wlarc=
11848 fi
11849
11850 # PORTME: fill in a description of your system's C++ link characteristics
11851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11853 ld_shlibs_CXX=yes
11854 case $host_os in
11855   aix3*)
11856     # FIXME: insert proper C++ library support
11857     ld_shlibs_CXX=no
11858     ;;
11859   aix4* | aix5*)
11860     if test "$host_cpu" = ia64; then
11861       # On IA64, the linker does run time linking by default, so we don't
11862       # have to do anything special.
11863       aix_use_runtimelinking=no
11864       exp_sym_flag='-Bexport'
11865       no_entry_flag=""
11866     else
11867       aix_use_runtimelinking=no
11868
11869       # Test if we are trying to use run time linking or normal
11870       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11871       # need to do runtime linking.
11872       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11873         for ld_flag in $LDFLAGS; do
11874           case $ld_flag in
11875           *-brtl*)
11876             aix_use_runtimelinking=yes
11877             break
11878             ;;
11879           esac
11880         done
11881         ;;
11882       esac
11883
11884       exp_sym_flag='-bexport'
11885       no_entry_flag='-bnoentry'
11886     fi
11887
11888     # When large executables or shared objects are built, AIX ld can
11889     # have problems creating the table of contents.  If linking a library
11890     # or program results in "error TOC overflow" add -mminimal-toc to
11891     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11892     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11893
11894     archive_cmds_CXX=''
11895     hardcode_direct_CXX=yes
11896     hardcode_libdir_separator_CXX=':'
11897     link_all_deplibs_CXX=yes
11898
11899     if test "$GXX" = yes; then
11900       case $host_os in aix4.[012]|aix4.[012].*)
11901       # We only want to do this on AIX 4.2 and lower, the check
11902       # below for broken collect2 doesn't work under 4.3+
11903         collect2name=`${CC} -print-prog-name=collect2`
11904         if test -f "$collect2name" && \
11905            strings "$collect2name" | grep resolve_lib_name >/dev/null
11906         then
11907           # We have reworked collect2
11908           hardcode_direct_CXX=yes
11909         else
11910           # We have old collect2
11911           hardcode_direct_CXX=unsupported
11912           # It fails to find uninstalled libraries when the uninstalled
11913           # path is not listed in the libpath.  Setting hardcode_minus_L
11914           # to unsupported forces relinking
11915           hardcode_minus_L_CXX=yes
11916           hardcode_libdir_flag_spec_CXX='-L$libdir'
11917           hardcode_libdir_separator_CXX=
11918         fi
11919         ;;
11920       esac
11921       shared_flag='-shared'
11922       if test "$aix_use_runtimelinking" = yes; then
11923         shared_flag="$shared_flag "'${wl}-G'
11924       fi
11925     else
11926       # not using gcc
11927       if test "$host_cpu" = ia64; then
11928         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11929         # chokes on -Wl,-G. The following line is correct:
11930         shared_flag='-G'
11931       else
11932         if test "$aix_use_runtimelinking" = yes; then
11933           shared_flag='${wl}-G'
11934         else
11935           shared_flag='${wl}-bM:SRE'
11936         fi
11937       fi
11938     fi
11939
11940     # It seems that -bexpall does not export symbols beginning with
11941     # underscore (_), so it is better to generate a list of symbols to export.
11942     always_export_symbols_CXX=yes
11943     if test "$aix_use_runtimelinking" = yes; then
11944       # Warning - without using the other runtime loading flags (-brtl),
11945       # -berok will link without error, but may produce a broken library.
11946       allow_undefined_flag_CXX='-berok'
11947       # Determine the default libpath from the value encoded in an empty executable.
11948       cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954
11955 int
11956 main ()
11957 {
11958
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967   *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970   (eval "$ac_link") 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11978   { (case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_try") 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; } &&
11987          { ac_try='test -s conftest$ac_exeext'
11988   { (case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_try") 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); }; }; then
11997
11998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11999 }'`
12000 # Check for a 64-bit object if we didn't find anything.
12001 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; }
12002 }'`; fi
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007
12008 fi
12009
12010 rm -f core conftest.err conftest.$ac_objext \
12011       conftest$ac_exeext conftest.$ac_ext
12012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12013
12014       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12015
12016       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12017      else
12018       if test "$host_cpu" = ia64; then
12019         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12020         allow_undefined_flag_CXX="-z nodefs"
12021         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12022       else
12023         # Determine the default libpath from the value encoded in an empty executable.
12024         cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h.  */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h.  */
12030
12031 int
12032 main ()
12033 {
12034
12035   ;
12036   return 0;
12037 }
12038 _ACEOF
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (ac_try="$ac_link"
12041 case "(($ac_try" in
12042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043   *) ac_try_echo=$ac_try;;
12044 esac
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046   (eval "$ac_link") 2>conftest.er1
12047   ac_status=$?
12048   grep -v '^ *+' conftest.er1 >conftest.err
12049   rm -f conftest.er1
12050   cat conftest.err >&5
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); } &&
12053          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12054   { (case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_try") 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; } &&
12063          { ac_try='test -s conftest$ac_exeext'
12064   { (case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_try") 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073
12074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12075 }'`
12076 # Check for a 64-bit object if we didn't find anything.
12077 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; }
12078 }'`; fi
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext \
12087       conftest$ac_exeext conftest.$ac_ext
12088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12089
12090         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12091         # Warning - without using the other run time loading flags,
12092         # -berok will link without error, but may produce a broken library.
12093         no_undefined_flag_CXX=' ${wl}-bernotok'
12094         allow_undefined_flag_CXX=' ${wl}-berok'
12095         # Exported symbols can be pulled into shared objects from archives
12096         whole_archive_flag_spec_CXX='$convenience'
12097         archive_cmds_need_lc_CXX=yes
12098         # This is similar to how AIX traditionally builds its shared libraries.
12099         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12100       fi
12101     fi
12102     ;;
12103
12104   beos*)
12105     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12106       allow_undefined_flag_CXX=unsupported
12107       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12108       # support --undefined.  This deserves some investigation.  FIXME
12109       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12110     else
12111       ld_shlibs_CXX=no
12112     fi
12113     ;;
12114
12115   chorus*)
12116     case $cc_basename in
12117       *)
12118         # FIXME: insert proper C++ library support
12119         ld_shlibs_CXX=no
12120         ;;
12121     esac
12122     ;;
12123
12124   cygwin* | mingw* | pw32*)
12125     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12126     # as there is no search path for DLLs.
12127     hardcode_libdir_flag_spec_CXX='-L$libdir'
12128     allow_undefined_flag_CXX=unsupported
12129     always_export_symbols_CXX=no
12130     enable_shared_with_static_runtimes_CXX=yes
12131
12132     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12133       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12134       # If the export-symbols file already is a .def file (1st line
12135       # is EXPORTS), use it as is; otherwise, prepend...
12136       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12137         cp $export_symbols $output_objdir/$soname.def;
12138       else
12139         echo EXPORTS > $output_objdir/$soname.def;
12140         cat $export_symbols >> $output_objdir/$soname.def;
12141       fi~
12142       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12143     else
12144       ld_shlibs_CXX=no
12145     fi
12146   ;;
12147       darwin* | rhapsody*)
12148         case $host_os in
12149         rhapsody* | darwin1.[012])
12150          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12151          ;;
12152        *) # Darwin 1.3 on
12153          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12154            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12155          else
12156            case ${MACOSX_DEPLOYMENT_TARGET} in
12157              10.[012])
12158                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12159                ;;
12160              10.*)
12161                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12162                ;;
12163            esac
12164          fi
12165          ;;
12166         esac
12167       archive_cmds_need_lc_CXX=no
12168       hardcode_direct_CXX=no
12169       hardcode_automatic_CXX=yes
12170       hardcode_shlibpath_var_CXX=unsupported
12171       whole_archive_flag_spec_CXX=''
12172       link_all_deplibs_CXX=yes
12173
12174     if test "$GXX" = yes ; then
12175       lt_int_apple_cc_single_mod=no
12176       output_verbose_link_cmd='echo'
12177       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12178        lt_int_apple_cc_single_mod=yes
12179       fi
12180       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12181        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12182       else
12183           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12184         fi
12185         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12186         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12187           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12188             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}'
12189           else
12190             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12191           fi
12192             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}'
12193       else
12194       case $cc_basename in
12195         xlc*)
12196          output_verbose_link_cmd='echo'
12197           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12198           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12199           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12200           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12201           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}'
12202           ;;
12203        *)
12204          ld_shlibs_CXX=no
12205           ;;
12206       esac
12207       fi
12208         ;;
12209
12210   dgux*)
12211     case $cc_basename in
12212       ec++*)
12213         # FIXME: insert proper C++ library support
12214         ld_shlibs_CXX=no
12215         ;;
12216       ghcx*)
12217         # Green Hills C++ Compiler
12218         # FIXME: insert proper C++ library support
12219         ld_shlibs_CXX=no
12220         ;;
12221       *)
12222         # FIXME: insert proper C++ library support
12223         ld_shlibs_CXX=no
12224         ;;
12225     esac
12226     ;;
12227   freebsd[12]*)
12228     # C++ shared libraries reported to be fairly broken before switch to ELF
12229     ld_shlibs_CXX=no
12230     ;;
12231   freebsd-elf*)
12232     archive_cmds_need_lc_CXX=no
12233     ;;
12234   freebsd* | kfreebsd*-gnu | dragonfly*)
12235     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12236     # conventions
12237     ld_shlibs_CXX=yes
12238     ;;
12239   gnu*)
12240     ;;
12241   hpux9*)
12242     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12243     hardcode_libdir_separator_CXX=:
12244     export_dynamic_flag_spec_CXX='${wl}-E'
12245     hardcode_direct_CXX=yes
12246     hardcode_minus_L_CXX=yes # Not in the search PATH,
12247                                 # but as the default
12248                                 # location of the library.
12249
12250     case $cc_basename in
12251     CC*)
12252       # FIXME: insert proper C++ library support
12253       ld_shlibs_CXX=no
12254       ;;
12255     aCC*)
12256       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'
12257       # Commands to make compiler produce verbose output that lists
12258       # what "hidden" libraries, object files and flags are used when
12259       # linking a shared library.
12260       #
12261       # There doesn't appear to be a way to prevent this compiler from
12262       # explicitly linking system object files so we need to strip them
12263       # from the output so that they don't get included in the library
12264       # dependencies.
12265       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'
12266       ;;
12267     *)
12268       if test "$GXX" = yes; then
12269         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'
12270       else
12271         # FIXME: insert proper C++ library support
12272         ld_shlibs_CXX=no
12273       fi
12274       ;;
12275     esac
12276     ;;
12277   hpux10*|hpux11*)
12278     if test $with_gnu_ld = no; then
12279       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12280       hardcode_libdir_separator_CXX=:
12281
12282       case $host_cpu in
12283       hppa*64*|ia64*)
12284         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12285         ;;
12286       *)
12287         export_dynamic_flag_spec_CXX='${wl}-E'
12288         ;;
12289       esac
12290     fi
12291     case $host_cpu in
12292     hppa*64*|ia64*)
12293       hardcode_direct_CXX=no
12294       hardcode_shlibpath_var_CXX=no
12295       ;;
12296     *)
12297       hardcode_direct_CXX=yes
12298       hardcode_minus_L_CXX=yes # Not in the search PATH,
12299                                               # but as the default
12300                                               # location of the library.
12301       ;;
12302     esac
12303
12304     case $cc_basename in
12305       CC*)
12306         # FIXME: insert proper C++ library support
12307         ld_shlibs_CXX=no
12308         ;;
12309       aCC*)
12310         case $host_cpu in
12311         hppa*64*)
12312           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12313           ;;
12314         ia64*)
12315           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12316           ;;
12317         *)
12318           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319           ;;
12320         esac
12321         # Commands to make compiler produce verbose output that lists
12322         # what "hidden" libraries, object files and flags are used when
12323         # linking a shared library.
12324         #
12325         # There doesn't appear to be a way to prevent this compiler from
12326         # explicitly linking system object files so we need to strip them
12327         # from the output so that they don't get included in the library
12328         # dependencies.
12329         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'
12330         ;;
12331       *)
12332         if test "$GXX" = yes; then
12333           if test $with_gnu_ld = no; then
12334             case $host_cpu in
12335             hppa*64*)
12336               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12337               ;;
12338             ia64*)
12339               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12340               ;;
12341             *)
12342               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'
12343               ;;
12344             esac
12345           fi
12346         else
12347           # FIXME: insert proper C++ library support
12348           ld_shlibs_CXX=no
12349         fi
12350         ;;
12351     esac
12352     ;;
12353   interix3*)
12354     hardcode_direct_CXX=no
12355     hardcode_shlibpath_var_CXX=no
12356     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12357     export_dynamic_flag_spec_CXX='${wl}-E'
12358     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12359     # Instead, shared libraries are loaded at an image base (0x10000000 by
12360     # default) and relocated if they conflict, which is a slow very memory
12361     # consuming and fragmenting process.  To avoid this, we pick a random,
12362     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12363     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12364     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12365     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12366     ;;
12367   irix5* | irix6*)
12368     case $cc_basename in
12369       CC*)
12370         # SGI C++
12371         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12372
12373         # Archives containing C++ object files must be created using
12374         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12375         # necessary to make sure instantiated templates are included
12376         # in the archive.
12377         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12378         ;;
12379       *)
12380         if test "$GXX" = yes; then
12381           if test "$with_gnu_ld" = no; then
12382             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12383           else
12384             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'
12385           fi
12386         fi
12387         link_all_deplibs_CXX=yes
12388         ;;
12389     esac
12390     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12391     hardcode_libdir_separator_CXX=:
12392     ;;
12393   linux*)
12394     case $cc_basename in
12395       KCC*)
12396         # Kuck and Associates, Inc. (KAI) C++ Compiler
12397
12398         # KCC will only create a shared library if the output file
12399         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12400         # to its proper name (with version) after linking.
12401         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'
12402         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'
12403         # Commands to make compiler produce verbose output that lists
12404         # what "hidden" libraries, object files and flags are used when
12405         # linking a shared library.
12406         #
12407         # There doesn't appear to be a way to prevent this compiler from
12408         # explicitly linking system object files so we need to strip them
12409         # from the output so that they don't get included in the library
12410         # dependencies.
12411         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'
12412
12413         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12414         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12415
12416         # Archives containing C++ object files must be created using
12417         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12418         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12419         ;;
12420       icpc*)
12421         # Intel C++
12422         with_gnu_ld=yes
12423         # version 8.0 and above of icpc choke on multiply defined symbols
12424         # if we add $predep_objects and $postdep_objects, however 7.1 and
12425         # earlier do not add the objects themselves.
12426         case `$CC -V 2>&1` in
12427         *"Version 7."*)
12428           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429           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'
12430           ;;
12431         *)  # Version 8.0 or newer
12432           tmp_idyn=
12433           case $host_cpu in
12434             ia64*) tmp_idyn=' -i_dynamic';;
12435           esac
12436           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12437           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12438           ;;
12439         esac
12440         archive_cmds_need_lc_CXX=no
12441         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12442         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12443         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12444         ;;
12445       pgCC*)
12446         # Portland Group C++ compiler
12447         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12448         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12449
12450         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12451         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12452         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12453         ;;
12454       cxx*)
12455         # Compaq C++
12456         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12457         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'
12458
12459         runpath_var=LD_RUN_PATH
12460         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12461         hardcode_libdir_separator_CXX=:
12462
12463         # Commands to make compiler produce verbose output that lists
12464         # what "hidden" libraries, object files and flags are used when
12465         # linking a shared library.
12466         #
12467         # There doesn't appear to be a way to prevent this compiler from
12468         # explicitly linking system object files so we need to strip them
12469         # from the output so that they don't get included in the library
12470         # dependencies.
12471         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'
12472         ;;
12473     esac
12474     ;;
12475   lynxos*)
12476     # FIXME: insert proper C++ library support
12477     ld_shlibs_CXX=no
12478     ;;
12479   m88k*)
12480     # FIXME: insert proper C++ library support
12481     ld_shlibs_CXX=no
12482     ;;
12483   mvs*)
12484     case $cc_basename in
12485       cxx*)
12486         # FIXME: insert proper C++ library support
12487         ld_shlibs_CXX=no
12488         ;;
12489       *)
12490         # FIXME: insert proper C++ library support
12491         ld_shlibs_CXX=no
12492         ;;
12493     esac
12494     ;;
12495   netbsd*)
12496     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12497       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12498       wlarc=
12499       hardcode_libdir_flag_spec_CXX='-R$libdir'
12500       hardcode_direct_CXX=yes
12501       hardcode_shlibpath_var_CXX=no
12502     fi
12503     # Workaround some broken pre-1.5 toolchains
12504     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12505     ;;
12506   openbsd2*)
12507     # C++ shared libraries are fairly broken
12508     ld_shlibs_CXX=no
12509     ;;
12510   openbsd*)
12511     hardcode_direct_CXX=yes
12512     hardcode_shlibpath_var_CXX=no
12513     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12514     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12515     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12516       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12517       export_dynamic_flag_spec_CXX='${wl}-E'
12518       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12519     fi
12520     output_verbose_link_cmd='echo'
12521     ;;
12522   osf3*)
12523     case $cc_basename in
12524       KCC*)
12525         # Kuck and Associates, Inc. (KAI) C++ Compiler
12526
12527         # KCC will only create a shared library if the output file
12528         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12529         # to its proper name (with version) after linking.
12530         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'
12531
12532         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12533         hardcode_libdir_separator_CXX=:
12534
12535         # Archives containing C++ object files must be created using
12536         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12537         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12538
12539         ;;
12540       RCC*)
12541         # Rational C++ 2.4.1
12542         # FIXME: insert proper C++ library support
12543         ld_shlibs_CXX=no
12544         ;;
12545       cxx*)
12546         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12547         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12548
12549         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12550         hardcode_libdir_separator_CXX=:
12551
12552         # Commands to make compiler produce verbose output that lists
12553         # what "hidden" libraries, object files and flags are used when
12554         # linking a shared library.
12555         #
12556         # There doesn't appear to be a way to prevent this compiler from
12557         # explicitly linking system object files so we need to strip them
12558         # from the output so that they don't get included in the library
12559         # dependencies.
12560         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'
12561         ;;
12562       *)
12563         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12564           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12565           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12566
12567           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12568           hardcode_libdir_separator_CXX=:
12569
12570           # Commands to make compiler produce verbose output that lists
12571           # what "hidden" libraries, object files and flags are used when
12572           # linking a shared library.
12573           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12574
12575         else
12576           # FIXME: insert proper C++ library support
12577           ld_shlibs_CXX=no
12578         fi
12579         ;;
12580     esac
12581     ;;
12582   osf4* | osf5*)
12583     case $cc_basename in
12584       KCC*)
12585         # Kuck and Associates, Inc. (KAI) C++ Compiler
12586
12587         # KCC will only create a shared library if the output file
12588         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12589         # to its proper name (with version) after linking.
12590         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'
12591
12592         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12593         hardcode_libdir_separator_CXX=:
12594
12595         # Archives containing C++ object files must be created using
12596         # the KAI C++ compiler.
12597         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12598         ;;
12599       RCC*)
12600         # Rational C++ 2.4.1
12601         # FIXME: insert proper C++ library support
12602         ld_shlibs_CXX=no
12603         ;;
12604       cxx*)
12605         allow_undefined_flag_CXX=' -expect_unresolved \*'
12606         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12607         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12608           echo "-hidden">> $lib.exp~
12609           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12610           $rm $lib.exp'
12611
12612         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12613         hardcode_libdir_separator_CXX=:
12614
12615         # Commands to make compiler produce verbose output that lists
12616         # what "hidden" libraries, object files and flags are used when
12617         # linking a shared library.
12618         #
12619         # There doesn't appear to be a way to prevent this compiler from
12620         # explicitly linking system object files so we need to strip them
12621         # from the output so that they don't get included in the library
12622         # dependencies.
12623         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'
12624         ;;
12625       *)
12626         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12627           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12628          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12629
12630           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12631           hardcode_libdir_separator_CXX=:
12632
12633           # Commands to make compiler produce verbose output that lists
12634           # what "hidden" libraries, object files and flags are used when
12635           # linking a shared library.
12636           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12637
12638         else
12639           # FIXME: insert proper C++ library support
12640           ld_shlibs_CXX=no
12641         fi
12642         ;;
12643     esac
12644     ;;
12645   psos*)
12646     # FIXME: insert proper C++ library support
12647     ld_shlibs_CXX=no
12648     ;;
12649   sunos4*)
12650     case $cc_basename in
12651       CC*)
12652         # Sun C++ 4.x
12653         # FIXME: insert proper C++ library support
12654         ld_shlibs_CXX=no
12655         ;;
12656       lcc*)
12657         # Lucid
12658         # FIXME: insert proper C++ library support
12659         ld_shlibs_CXX=no
12660         ;;
12661       *)
12662         # FIXME: insert proper C++ library support
12663         ld_shlibs_CXX=no
12664         ;;
12665     esac
12666     ;;
12667   solaris*)
12668     case $cc_basename in
12669       CC*)
12670         # Sun C++ 4.2, 5.x and Centerline C++
12671         archive_cmds_need_lc_CXX=yes
12672         no_undefined_flag_CXX=' -zdefs'
12673         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12674         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12675         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12676
12677         hardcode_libdir_flag_spec_CXX='-R$libdir'
12678         hardcode_shlibpath_var_CXX=no
12679         case $host_os in
12680           solaris2.[0-5] | solaris2.[0-5].*) ;;
12681           *)
12682             # The C++ compiler is used as linker so we must use $wl
12683             # flag to pass the commands to the underlying system
12684             # linker. We must also pass each convience library through
12685             # to the system linker between allextract/defaultextract.
12686             # The C++ compiler will combine linker options so we
12687             # cannot just pass the convience library names through
12688             # without $wl.
12689             # Supported since Solaris 2.6 (maybe 2.5.1?)
12690             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12691             ;;
12692         esac
12693         link_all_deplibs_CXX=yes
12694
12695         output_verbose_link_cmd='echo'
12696
12697         # Archives containing C++ object files must be created using
12698         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12699         # necessary to make sure instantiated templates are included
12700         # in the archive.
12701         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12702         ;;
12703       gcx*)
12704         # Green Hills C++ Compiler
12705         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12706
12707         # The C++ compiler must be used to create the archive.
12708         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12709         ;;
12710       *)
12711         # GNU C++ compiler with Solaris linker
12712         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12713           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12714           if $CC --version | grep -v '^2\.7' > /dev/null; then
12715             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12716             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12717                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12718
12719             # Commands to make compiler produce verbose output that lists
12720             # what "hidden" libraries, object files and flags are used when
12721             # linking a shared library.
12722             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12723           else
12724             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12725             # platform.
12726             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12727             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12728                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12729
12730             # Commands to make compiler produce verbose output that lists
12731             # what "hidden" libraries, object files and flags are used when
12732             # linking a shared library.
12733             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12734           fi
12735
12736           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12737         fi
12738         ;;
12739     esac
12740     ;;
12741   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12742     no_undefined_flag_CXX='${wl}-z,text'
12743     archive_cmds_need_lc_CXX=no
12744     hardcode_shlibpath_var_CXX=no
12745     runpath_var='LD_RUN_PATH'
12746
12747     case $cc_basename in
12748       CC*)
12749         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12750         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12751         ;;
12752       *)
12753         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12755         ;;
12756     esac
12757     ;;
12758   sysv5* | sco3.2v5* | sco5v6*)
12759     # Note: We can NOT use -z defs as we might desire, because we do not
12760     # link with -lc, and that would cause any symbols used from libc to
12761     # always be unresolved, which means just about no library would
12762     # ever link correctly.  If we're not using GNU ld we use -z text
12763     # though, which does catch some bad symbols but isn't as heavy-handed
12764     # as -z defs.
12765     # For security reasons, it is highly recommended that you always
12766     # use absolute paths for naming shared libraries, and exclude the
12767     # DT_RUNPATH tag from executables and libraries.  But doing so
12768     # requires that you compile everything twice, which is a pain.
12769     # So that behaviour is only enabled if SCOABSPATH is set to a
12770     # non-empty value in the environment.  Most likely only useful for
12771     # creating official distributions of packages.
12772     # This is a hack until libtool officially supports absolute path
12773     # names for shared libraries.
12774     no_undefined_flag_CXX='${wl}-z,text'
12775     allow_undefined_flag_CXX='${wl}-z,nodefs'
12776     archive_cmds_need_lc_CXX=no
12777     hardcode_shlibpath_var_CXX=no
12778     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12779     hardcode_libdir_separator_CXX=':'
12780     link_all_deplibs_CXX=yes
12781     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12782     runpath_var='LD_RUN_PATH'
12783
12784     case $cc_basename in
12785       CC*)
12786         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12787         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12788         ;;
12789       *)
12790         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12791         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12792         ;;
12793     esac
12794     ;;
12795   tandem*)
12796     case $cc_basename in
12797       NCC*)
12798         # NonStop-UX NCC 3.20
12799         # FIXME: insert proper C++ library support
12800         ld_shlibs_CXX=no
12801         ;;
12802       *)
12803         # FIXME: insert proper C++ library support
12804         ld_shlibs_CXX=no
12805         ;;
12806     esac
12807     ;;
12808   vxworks*)
12809     # FIXME: insert proper C++ library support
12810     ld_shlibs_CXX=no
12811     ;;
12812   *)
12813     # FIXME: insert proper C++ library support
12814     ld_shlibs_CXX=no
12815     ;;
12816 esac
12817 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12818 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12819 test "$ld_shlibs_CXX" = no && can_build_shared=no
12820
12821 GCC_CXX="$GXX"
12822 LD_CXX="$LD"
12823
12824
12825 cat > conftest.$ac_ext <<EOF
12826 class Foo
12827 {
12828 public:
12829   Foo (void) { a = 0; }
12830 private:
12831   int a;
12832 };
12833 EOF
12834
12835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836   (eval $ac_compile) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; then
12840   # Parse the compiler output and extract the necessary
12841   # objects, libraries and library flags.
12842
12843   # Sentinel used to keep track of whether or not we are before
12844   # the conftest object file.
12845   pre_test_object_deps_done=no
12846
12847   # The `*' in the case matches for architectures that use `case' in
12848   # $output_verbose_cmd can trigger glob expansion during the loop
12849   # eval without this substitution.
12850   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12851
12852   for p in `eval $output_verbose_link_cmd`; do
12853     case $p in
12854
12855     -L* | -R* | -l*)
12856        # Some compilers place space between "-{L,R}" and the path.
12857        # Remove the space.
12858        if test $p = "-L" \
12859           || test $p = "-R"; then
12860          prev=$p
12861          continue
12862        else
12863          prev=
12864        fi
12865
12866        if test "$pre_test_object_deps_done" = no; then
12867          case $p in
12868          -L* | -R*)
12869            # Internal compiler library paths should come after those
12870            # provided the user.  The postdeps already come after the
12871            # user supplied libs so there is no need to process them.
12872            if test -z "$compiler_lib_search_path_CXX"; then
12873              compiler_lib_search_path_CXX="${prev}${p}"
12874            else
12875              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12876            fi
12877            ;;
12878          # The "-l" case would never come before the object being
12879          # linked, so don't bother handling this case.
12880          esac
12881        else
12882          if test -z "$postdeps_CXX"; then
12883            postdeps_CXX="${prev}${p}"
12884          else
12885            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12886          fi
12887        fi
12888        ;;
12889
12890     *.$objext)
12891        # This assumes that the test object file only shows up
12892        # once in the compiler output.
12893        if test "$p" = "conftest.$objext"; then
12894          pre_test_object_deps_done=yes
12895          continue
12896        fi
12897
12898        if test "$pre_test_object_deps_done" = no; then
12899          if test -z "$predep_objects_CXX"; then
12900            predep_objects_CXX="$p"
12901          else
12902            predep_objects_CXX="$predep_objects_CXX $p"
12903          fi
12904        else
12905          if test -z "$postdep_objects_CXX"; then
12906            postdep_objects_CXX="$p"
12907          else
12908            postdep_objects_CXX="$postdep_objects_CXX $p"
12909          fi
12910        fi
12911        ;;
12912
12913     *) ;; # Ignore the rest.
12914
12915     esac
12916   done
12917
12918   # Clean up.
12919   rm -f a.out a.exe
12920 else
12921   echo "libtool.m4: error: problem compiling CXX test program"
12922 fi
12923
12924 $rm -f confest.$objext
12925
12926 # PORTME: override above test on systems where it is broken
12927 case $host_os in
12928 interix3*)
12929   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12930   # hack all around it, let's just trust "g++" to DTRT.
12931   predep_objects_CXX=
12932   postdep_objects_CXX=
12933   postdeps_CXX=
12934   ;;
12935
12936 solaris*)
12937   case $cc_basename in
12938   CC*)
12939     # Adding this requires a known-good setup of shared libraries for
12940     # Sun compiler versions before 5.6, else PIC objects from an old
12941     # archive will be linked into the output, leading to subtle bugs.
12942     postdeps_CXX='-lCstd -lCrun'
12943     ;;
12944   esac
12945   ;;
12946 esac
12947
12948
12949 case " $postdeps_CXX " in
12950 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12951 esac
12952
12953 lt_prog_compiler_wl_CXX=
12954 lt_prog_compiler_pic_CXX=
12955 lt_prog_compiler_static_CXX=
12956
12957 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12959
12960   # C++ specific cases for pic, static, wl, etc.
12961   if test "$GXX" = yes; then
12962     lt_prog_compiler_wl_CXX='-Wl,'
12963     lt_prog_compiler_static_CXX='-static'
12964
12965     case $host_os in
12966     aix*)
12967       # All AIX code is PIC.
12968       if test "$host_cpu" = ia64; then
12969         # AIX 5 now supports IA64 processor
12970         lt_prog_compiler_static_CXX='-Bstatic'
12971       fi
12972       ;;
12973     amigaos*)
12974       # FIXME: we need at least 68020 code to build shared libraries, but
12975       # adding the `-m68020' flag to GCC prevents building anything better,
12976       # like `-m68040'.
12977       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12978       ;;
12979     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12980       # PIC is the default for these OSes.
12981       ;;
12982     mingw* | os2* | pw32*)
12983       # This hack is so that the source file can tell whether it is being
12984       # built for inclusion in a dll (and should export symbols for example).
12985       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12986       ;;
12987     darwin* | rhapsody*)
12988       # PIC is the default on this platform
12989       # Common symbols not allowed in MH_DYLIB files
12990       lt_prog_compiler_pic_CXX='-fno-common'
12991       ;;
12992     *djgpp*)
12993       # DJGPP does not support shared libraries at all
12994       lt_prog_compiler_pic_CXX=
12995       ;;
12996     interix3*)
12997       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12998       # Instead, we relocate shared libraries at runtime.
12999       ;;
13000     sysv4*MP*)
13001       if test -d /usr/nec; then
13002         lt_prog_compiler_pic_CXX=-Kconform_pic
13003       fi
13004       ;;
13005     hpux*)
13006       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13007       # not for PA HP-UX.
13008       case $host_cpu in
13009       hppa*64*|ia64*)
13010         ;;
13011       *)
13012         lt_prog_compiler_pic_CXX='-fPIC'
13013         ;;
13014       esac
13015       ;;
13016     *)
13017       lt_prog_compiler_pic_CXX='-fPIC'
13018       ;;
13019     esac
13020   else
13021     case $host_os in
13022       aix4* | aix5*)
13023         # All AIX code is PIC.
13024         if test "$host_cpu" = ia64; then
13025           # AIX 5 now supports IA64 processor
13026           lt_prog_compiler_static_CXX='-Bstatic'
13027         else
13028           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13029         fi
13030         ;;
13031       chorus*)
13032         case $cc_basename in
13033         cxch68*)
13034           # Green Hills C++ Compiler
13035           # _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"
13036           ;;
13037         esac
13038         ;;
13039        darwin*)
13040          # PIC is the default on this platform
13041          # Common symbols not allowed in MH_DYLIB files
13042          case $cc_basename in
13043            xlc*)
13044            lt_prog_compiler_pic_CXX='-qnocommon'
13045            lt_prog_compiler_wl_CXX='-Wl,'
13046            ;;
13047          esac
13048        ;;
13049       dgux*)
13050         case $cc_basename in
13051           ec++*)
13052             lt_prog_compiler_pic_CXX='-KPIC'
13053             ;;
13054           ghcx*)
13055             # Green Hills C++ Compiler
13056             lt_prog_compiler_pic_CXX='-pic'
13057             ;;
13058           *)
13059             ;;
13060         esac
13061         ;;
13062       freebsd* | kfreebsd*-gnu | dragonfly*)
13063         # FreeBSD uses GNU C++
13064         ;;
13065       hpux9* | hpux10* | hpux11*)
13066         case $cc_basename in
13067           CC*)
13068             lt_prog_compiler_wl_CXX='-Wl,'
13069             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13070             if test "$host_cpu" != ia64; then
13071               lt_prog_compiler_pic_CXX='+Z'
13072             fi
13073             ;;
13074           aCC*)
13075             lt_prog_compiler_wl_CXX='-Wl,'
13076             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13077             case $host_cpu in
13078             hppa*64*|ia64*)
13079               # +Z the default
13080               ;;
13081             *)
13082               lt_prog_compiler_pic_CXX='+Z'
13083               ;;
13084             esac
13085             ;;
13086           *)
13087             ;;
13088         esac
13089         ;;
13090       interix*)
13091         # This is c89, which is MS Visual C++ (no shared libs)
13092         # Anyone wants to do a port?
13093         ;;
13094       irix5* | irix6* | nonstopux*)
13095         case $cc_basename in
13096           CC*)
13097             lt_prog_compiler_wl_CXX='-Wl,'
13098             lt_prog_compiler_static_CXX='-non_shared'
13099             # CC pic flag -KPIC is the default.
13100             ;;
13101           *)
13102             ;;
13103         esac
13104         ;;
13105       linux*)
13106         case $cc_basename in
13107           KCC*)
13108             # KAI C++ Compiler
13109             lt_prog_compiler_wl_CXX='--backend -Wl,'
13110             lt_prog_compiler_pic_CXX='-fPIC'
13111             ;;
13112           icpc* | ecpc*)
13113             # Intel C++
13114             lt_prog_compiler_wl_CXX='-Wl,'
13115             lt_prog_compiler_pic_CXX='-KPIC'
13116             lt_prog_compiler_static_CXX='-static'
13117             ;;
13118           pgCC*)
13119             # Portland Group C++ compiler.
13120             lt_prog_compiler_wl_CXX='-Wl,'
13121             lt_prog_compiler_pic_CXX='-fpic'
13122             lt_prog_compiler_static_CXX='-Bstatic'
13123             ;;
13124           cxx*)
13125             # Compaq C++
13126             # Make sure the PIC flag is empty.  It appears that all Alpha
13127             # Linux and Compaq Tru64 Unix objects are PIC.
13128             lt_prog_compiler_pic_CXX=
13129             lt_prog_compiler_static_CXX='-non_shared'
13130             ;;
13131           *)
13132             ;;
13133         esac
13134         ;;
13135       lynxos*)
13136         ;;
13137       m88k*)
13138         ;;
13139       mvs*)
13140         case $cc_basename in
13141           cxx*)
13142             lt_prog_compiler_pic_CXX='-W c,exportall'
13143             ;;
13144           *)
13145             ;;
13146         esac
13147         ;;
13148       netbsd*)
13149         ;;
13150       osf3* | osf4* | osf5*)
13151         case $cc_basename in
13152           KCC*)
13153             lt_prog_compiler_wl_CXX='--backend -Wl,'
13154             ;;
13155           RCC*)
13156             # Rational C++ 2.4.1
13157             lt_prog_compiler_pic_CXX='-pic'
13158             ;;
13159           cxx*)
13160             # Digital/Compaq C++
13161             lt_prog_compiler_wl_CXX='-Wl,'
13162             # Make sure the PIC flag is empty.  It appears that all Alpha
13163             # Linux and Compaq Tru64 Unix objects are PIC.
13164             lt_prog_compiler_pic_CXX=
13165             lt_prog_compiler_static_CXX='-non_shared'
13166             ;;
13167           *)
13168             ;;
13169         esac
13170         ;;
13171       psos*)
13172         ;;
13173       solaris*)
13174         case $cc_basename in
13175           CC*)
13176             # Sun C++ 4.2, 5.x and Centerline C++
13177             lt_prog_compiler_pic_CXX='-KPIC'
13178             lt_prog_compiler_static_CXX='-Bstatic'
13179             lt_prog_compiler_wl_CXX='-Qoption ld '
13180             ;;
13181           gcx*)
13182             # Green Hills C++ Compiler
13183             lt_prog_compiler_pic_CXX='-PIC'
13184             ;;
13185           *)
13186             ;;
13187         esac
13188         ;;
13189       sunos4*)
13190         case $cc_basename in
13191           CC*)
13192             # Sun C++ 4.x
13193             lt_prog_compiler_pic_CXX='-pic'
13194             lt_prog_compiler_static_CXX='-Bstatic'
13195             ;;
13196           lcc*)
13197             # Lucid
13198             lt_prog_compiler_pic_CXX='-pic'
13199             ;;
13200           *)
13201             ;;
13202         esac
13203         ;;
13204       tandem*)
13205         case $cc_basename in
13206           NCC*)
13207             # NonStop-UX NCC 3.20
13208             lt_prog_compiler_pic_CXX='-KPIC'
13209             ;;
13210           *)
13211             ;;
13212         esac
13213         ;;
13214       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13215         case $cc_basename in
13216           CC*)
13217             lt_prog_compiler_wl_CXX='-Wl,'
13218             lt_prog_compiler_pic_CXX='-KPIC'
13219             lt_prog_compiler_static_CXX='-Bstatic'
13220             ;;
13221         esac
13222         ;;
13223       vxworks*)
13224         ;;
13225       *)
13226         lt_prog_compiler_can_build_shared_CXX=no
13227         ;;
13228     esac
13229   fi
13230
13231 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13232 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13233
13234 #
13235 # Check to make sure the PIC flag actually works.
13236 #
13237 if test -n "$lt_prog_compiler_pic_CXX"; then
13238
13239 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13240 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13241 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13242   echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244   lt_prog_compiler_pic_works_CXX=no
13245   ac_outfile=conftest.$ac_objext
13246    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13248    # Insert the option either (1) after the last *FLAGS variable, or
13249    # (2) before a word containing "conftest.", or (3) at the end.
13250    # Note that $ac_compile itself does not contain backslashes and begins
13251    # with a dollar sign (not a hyphen), so the echo should work correctly.
13252    # The option is referenced via a variable to avoid confusing sed.
13253    lt_compile=`echo "$ac_compile" | $SED \
13254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256    -e 's:$: $lt_compiler_flag:'`
13257    (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
13258    (eval "$lt_compile" 2>conftest.err)
13259    ac_status=$?
13260    cat conftest.err >&5
13261    echo "$as_me:13261: \$? = $ac_status" >&5
13262    if (exit $ac_status) && test -s "$ac_outfile"; then
13263      # The compiler can only warn and ignore the option if not recognized
13264      # So say no if there are warnings other than the usual output.
13265      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13266      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13267      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13268        lt_prog_compiler_pic_works_CXX=yes
13269      fi
13270    fi
13271    $rm conftest*
13272
13273 fi
13274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13275 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13276
13277 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13278     case $lt_prog_compiler_pic_CXX in
13279      "" | " "*) ;;
13280      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13281      esac
13282 else
13283     lt_prog_compiler_pic_CXX=
13284      lt_prog_compiler_can_build_shared_CXX=no
13285 fi
13286
13287 fi
13288 case $host_os in
13289   # For platforms which do not support PIC, -DPIC is meaningless:
13290   *djgpp*)
13291     lt_prog_compiler_pic_CXX=
13292     ;;
13293   *)
13294     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13295     ;;
13296 esac
13297
13298 #
13299 # Check to make sure the static flag actually works.
13300 #
13301 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13302 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13303 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13304 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   lt_prog_compiler_static_works_CXX=no
13308    save_LDFLAGS="$LDFLAGS"
13309    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13310    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13311    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13312      # The linker can only warn and ignore the option if not recognized
13313      # So say no if there are warnings
13314      if test -s conftest.err; then
13315        # Append any errors to the config.log.
13316        cat conftest.err 1>&5
13317        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13318        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13319        if diff conftest.exp conftest.er2 >/dev/null; then
13320          lt_prog_compiler_static_works_CXX=yes
13321        fi
13322      else
13323        lt_prog_compiler_static_works_CXX=yes
13324      fi
13325    fi
13326    $rm conftest*
13327    LDFLAGS="$save_LDFLAGS"
13328
13329 fi
13330 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13331 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13332
13333 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13334     :
13335 else
13336     lt_prog_compiler_static_CXX=
13337 fi
13338
13339
13340 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13341 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13342 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   lt_cv_prog_compiler_c_o_CXX=no
13346    $rm -r conftest 2>/dev/null
13347    mkdir conftest
13348    cd conftest
13349    mkdir out
13350    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13351
13352    lt_compiler_flag="-o out/conftest2.$ac_objext"
13353    # Insert the option either (1) after the last *FLAGS variable, or
13354    # (2) before a word containing "conftest.", or (3) at the end.
13355    # Note that $ac_compile itself does not contain backslashes and begins
13356    # with a dollar sign (not a hyphen), so the echo should work correctly.
13357    lt_compile=`echo "$ac_compile" | $SED \
13358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13360    -e 's:$: $lt_compiler_flag:'`
13361    (eval echo "\"\$as_me:13361: $lt_compile\"" >&5)
13362    (eval "$lt_compile" 2>out/conftest.err)
13363    ac_status=$?
13364    cat out/conftest.err >&5
13365    echo "$as_me:13365: \$? = $ac_status" >&5
13366    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13367    then
13368      # The compiler can only warn and ignore the option if not recognized
13369      # So say no if there are warnings
13370      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13371      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13372      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13373        lt_cv_prog_compiler_c_o_CXX=yes
13374      fi
13375    fi
13376    chmod u+w . 2>&5
13377    $rm conftest*
13378    # SGI C++ compiler will create directory out/ii_files/ for
13379    # template instantiation
13380    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13381    $rm out/* && rmdir out
13382    cd ..
13383    rmdir conftest
13384    $rm conftest*
13385
13386 fi
13387 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13388 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13389
13390
13391 hard_links="nottested"
13392 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13393   # do not overwrite the value of need_locks provided by the user
13394   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13395 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13396   hard_links=yes
13397   $rm conftest*
13398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13399   touch conftest.a
13400   ln conftest.a conftest.b 2>&5 || hard_links=no
13401   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13402   { echo "$as_me:$LINENO: result: $hard_links" >&5
13403 echo "${ECHO_T}$hard_links" >&6; }
13404   if test "$hard_links" = no; then
13405     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13406 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13407     need_locks=warn
13408   fi
13409 else
13410   need_locks=no
13411 fi
13412
13413 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13414 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13415
13416   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13417   case $host_os in
13418   aix4* | aix5*)
13419     # If we're using GNU nm, then we don't want the "-C" option.
13420     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13421     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13422       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'
13423     else
13424       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'
13425     fi
13426     ;;
13427   pw32*)
13428     export_symbols_cmds_CXX="$ltdll_cmds"
13429   ;;
13430   cygwin* | mingw*)
13431     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13432   ;;
13433   *)
13434     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13435   ;;
13436   esac
13437
13438 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13439 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13440 test "$ld_shlibs_CXX" = no && can_build_shared=no
13441
13442 #
13443 # Do we need to explicitly link libc?
13444 #
13445 case "x$archive_cmds_need_lc_CXX" in
13446 x|xyes)
13447   # Assume -lc should be added
13448   archive_cmds_need_lc_CXX=yes
13449
13450   if test "$enable_shared" = yes && test "$GCC" = yes; then
13451     case $archive_cmds_CXX in
13452     *'~'*)
13453       # FIXME: we may have to deal with multi-command sequences.
13454       ;;
13455     '$CC '*)
13456       # Test whether the compiler implicitly links with -lc since on some
13457       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13458       # to ld, don't add -lc before -lgcc.
13459       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13461       $rm conftest*
13462       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13463
13464       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465   (eval $ac_compile) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); } 2>conftest.err; then
13469         soname=conftest
13470         lib=conftest
13471         libobjs=conftest.$ac_objext
13472         deplibs=
13473         wl=$lt_prog_compiler_wl_CXX
13474         pic_flag=$lt_prog_compiler_pic_CXX
13475         compiler_flags=-v
13476         linker_flags=-v
13477         verstring=
13478         output_objdir=.
13479         libname=conftest
13480         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13481         allow_undefined_flag_CXX=
13482         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13483   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }
13487         then
13488           archive_cmds_need_lc_CXX=no
13489         else
13490           archive_cmds_need_lc_CXX=yes
13491         fi
13492         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13493       else
13494         cat conftest.err 1>&5
13495       fi
13496       $rm conftest*
13497       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13498 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13499       ;;
13500     esac
13501   fi
13502   ;;
13503 esac
13504
13505 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13506 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13507 library_names_spec=
13508 libname_spec='lib$name'
13509 soname_spec=
13510 shrext_cmds=".so"
13511 postinstall_cmds=
13512 postuninstall_cmds=
13513 finish_cmds=
13514 finish_eval=
13515 shlibpath_var=
13516 shlibpath_overrides_runpath=unknown
13517 version_type=none
13518 dynamic_linker="$host_os ld.so"
13519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13520 if test "$GCC" = yes; then
13521   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13522   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13523     # if the path contains ";" then we assume it to be the separator
13524     # otherwise default to the standard path separator (i.e. ":") - it is
13525     # assumed that no part of a normal pathname contains ";" but that should
13526     # okay in the real world where ";" in dirpaths is itself problematic.
13527     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13528   else
13529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13530   fi
13531 else
13532   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13533 fi
13534 need_lib_prefix=unknown
13535 hardcode_into_libs=no
13536
13537 # when you set need_version to no, make sure it does not cause -set_version
13538 # flags to be left without arguments
13539 need_version=unknown
13540
13541 case $host_os in
13542 aix3*)
13543   version_type=linux
13544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13545   shlibpath_var=LIBPATH
13546
13547   # AIX 3 has no versioning support, so we append a major version to the name.
13548   soname_spec='${libname}${release}${shared_ext}$major'
13549   ;;
13550
13551 aix4* | aix5*)
13552   version_type=linux
13553   need_lib_prefix=no
13554   need_version=no
13555   hardcode_into_libs=yes
13556   if test "$host_cpu" = ia64; then
13557     # AIX 5 supports IA64
13558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13559     shlibpath_var=LD_LIBRARY_PATH
13560   else
13561     # With GCC up to 2.95.x, collect2 would create an import file
13562     # for dependence libraries.  The import file would start with
13563     # the line `#! .'.  This would cause the generated library to
13564     # depend on `.', always an invalid library.  This was fixed in
13565     # development snapshots of GCC prior to 3.0.
13566     case $host_os in
13567       aix4 | aix4.[01] | aix4.[01].*)
13568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13569            echo ' yes '
13570            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13571         :
13572       else
13573         can_build_shared=no
13574       fi
13575       ;;
13576     esac
13577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13578     # soname into executable. Probably we can add versioning support to
13579     # collect2, so additional links can be useful in future.
13580     if test "$aix_use_runtimelinking" = yes; then
13581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13582       # instead of lib<name>.a to let people know that these are not
13583       # typical AIX shared libraries.
13584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13585     else
13586       # We preserve .a as extension for shared libraries through AIX4.2
13587       # and later when we are not doing run time linking.
13588       library_names_spec='${libname}${release}.a $libname.a'
13589       soname_spec='${libname}${release}${shared_ext}$major'
13590     fi
13591     shlibpath_var=LIBPATH
13592   fi
13593   ;;
13594
13595 amigaos*)
13596   library_names_spec='$libname.ixlibrary $libname.a'
13597   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13598   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'
13599   ;;
13600
13601 beos*)
13602   library_names_spec='${libname}${shared_ext}'
13603   dynamic_linker="$host_os ld.so"
13604   shlibpath_var=LIBRARY_PATH
13605   ;;
13606
13607 bsdi[45]*)
13608   version_type=linux
13609   need_version=no
13610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611   soname_spec='${libname}${release}${shared_ext}$major'
13612   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13613   shlibpath_var=LD_LIBRARY_PATH
13614   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13615   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13616   # the default ld.so.conf also contains /usr/contrib/lib and
13617   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13618   # libtool to hard-code these into programs
13619   ;;
13620
13621 cygwin* | mingw* | pw32*)
13622   version_type=windows
13623   shrext_cmds=".dll"
13624   need_version=no
13625   need_lib_prefix=no
13626
13627   case $GCC,$host_os in
13628   yes,cygwin* | yes,mingw* | yes,pw32*)
13629     library_names_spec='$libname.dll.a'
13630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13631     postinstall_cmds='base_file=`basename \${file}`~
13632       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13633       dldir=$destdir/`dirname \$dlpath`~
13634       test -d \$dldir || mkdir -p \$dldir~
13635       $install_prog $dir/$dlname \$dldir/$dlname~
13636       chmod a+x \$dldir/$dlname'
13637     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13638       dlpath=$dir/\$dldll~
13639        $rm \$dlpath'
13640     shlibpath_overrides_runpath=yes
13641
13642     case $host_os in
13643     cygwin*)
13644       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13645       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13647       ;;
13648     mingw*)
13649       # MinGW DLLs use traditional 'lib' prefix
13650       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13651       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13652       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13653         # It is most probably a Windows format PATH printed by
13654         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13655         # path with ; separators, and with drive letters. We can handle the
13656         # drive letters (cygwin fileutils understands them), so leave them,
13657         # especially as we might pass files found there to a mingw objdump,
13658         # which wouldn't understand a cygwinified path. Ahh.
13659         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13660       else
13661         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13662       fi
13663       ;;
13664     pw32*)
13665       # pw32 DLLs use 'pw' prefix rather than 'lib'
13666       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13667       ;;
13668     esac
13669     ;;
13670
13671   *)
13672     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13673     ;;
13674   esac
13675   dynamic_linker='Win32 ld.exe'
13676   # FIXME: first we should search . and the directory the executable is in
13677   shlibpath_var=PATH
13678   ;;
13679
13680 darwin* | rhapsody*)
13681   dynamic_linker="$host_os dyld"
13682   version_type=darwin
13683   need_lib_prefix=no
13684   need_version=no
13685   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13686   soname_spec='${libname}${release}${major}$shared_ext'
13687   shlibpath_overrides_runpath=yes
13688   shlibpath_var=DYLD_LIBRARY_PATH
13689   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13690   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13691   if test "$GCC" = yes; then
13692     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"`
13693   else
13694     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13695   fi
13696   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13697   ;;
13698
13699 dgux*)
13700   version_type=linux
13701   need_lib_prefix=no
13702   need_version=no
13703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13704   soname_spec='${libname}${release}${shared_ext}$major'
13705   shlibpath_var=LD_LIBRARY_PATH
13706   ;;
13707
13708 freebsd1*)
13709   dynamic_linker=no
13710   ;;
13711
13712 kfreebsd*-gnu)
13713   version_type=linux
13714   need_lib_prefix=no
13715   need_version=no
13716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13717   soname_spec='${libname}${release}${shared_ext}$major'
13718   shlibpath_var=LD_LIBRARY_PATH
13719   shlibpath_overrides_runpath=no
13720   hardcode_into_libs=yes
13721   dynamic_linker='GNU ld.so'
13722   ;;
13723
13724 freebsd* | dragonfly*)
13725   # DragonFly does not have aout.  When/if they implement a new
13726   # versioning mechanism, adjust this.
13727   if test -x /usr/bin/objformat; then
13728     objformat=`/usr/bin/objformat`
13729   else
13730     case $host_os in
13731     freebsd[123]*) objformat=aout ;;
13732     *) objformat=elf ;;
13733     esac
13734   fi
13735   version_type=freebsd-$objformat
13736   case $version_type in
13737     freebsd-elf*)
13738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13739       need_version=no
13740       need_lib_prefix=no
13741       ;;
13742     freebsd-*)
13743       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13744       need_version=yes
13745       ;;
13746   esac
13747   shlibpath_var=LD_LIBRARY_PATH
13748   case $host_os in
13749   freebsd2*)
13750     shlibpath_overrides_runpath=yes
13751     ;;
13752   freebsd3.[01]* | freebsdelf3.[01]*)
13753     shlibpath_overrides_runpath=yes
13754     hardcode_into_libs=yes
13755     ;;
13756   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13757   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13758     shlibpath_overrides_runpath=no
13759     hardcode_into_libs=yes
13760     ;;
13761   freebsd*) # from 4.6 on
13762     shlibpath_overrides_runpath=yes
13763     hardcode_into_libs=yes
13764     ;;
13765   esac
13766   ;;
13767
13768 gnu*)
13769   version_type=linux
13770   need_lib_prefix=no
13771   need_version=no
13772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13773   soname_spec='${libname}${release}${shared_ext}$major'
13774   shlibpath_var=LD_LIBRARY_PATH
13775   hardcode_into_libs=yes
13776   ;;
13777
13778 hpux9* | hpux10* | hpux11*)
13779   # Give a soname corresponding to the major version so that dld.sl refuses to
13780   # link against other versions.
13781   version_type=sunos
13782   need_lib_prefix=no
13783   need_version=no
13784   case $host_cpu in
13785   ia64*)
13786     shrext_cmds='.so'
13787     hardcode_into_libs=yes
13788     dynamic_linker="$host_os dld.so"
13789     shlibpath_var=LD_LIBRARY_PATH
13790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13792     soname_spec='${libname}${release}${shared_ext}$major'
13793     if test "X$HPUX_IA64_MODE" = X32; then
13794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13795     else
13796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13797     fi
13798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13799     ;;
13800    hppa*64*)
13801      shrext_cmds='.sl'
13802      hardcode_into_libs=yes
13803      dynamic_linker="$host_os dld.sl"
13804      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13805      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13806      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13807      soname_spec='${libname}${release}${shared_ext}$major'
13808      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13809      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13810      ;;
13811    *)
13812     shrext_cmds='.sl'
13813     dynamic_linker="$host_os dld.sl"
13814     shlibpath_var=SHLIB_PATH
13815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13817     soname_spec='${libname}${release}${shared_ext}$major'
13818     ;;
13819   esac
13820   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13821   postinstall_cmds='chmod 555 $lib'
13822   ;;
13823
13824 interix3*)
13825   version_type=linux
13826   need_lib_prefix=no
13827   need_version=no
13828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13829   soname_spec='${libname}${release}${shared_ext}$major'
13830   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13831   shlibpath_var=LD_LIBRARY_PATH
13832   shlibpath_overrides_runpath=no
13833   hardcode_into_libs=yes
13834   ;;
13835
13836 irix5* | irix6* | nonstopux*)
13837   case $host_os in
13838     nonstopux*) version_type=nonstopux ;;
13839     *)
13840         if test "$lt_cv_prog_gnu_ld" = yes; then
13841                 version_type=linux
13842         else
13843                 version_type=irix
13844         fi ;;
13845   esac
13846   need_lib_prefix=no
13847   need_version=no
13848   soname_spec='${libname}${release}${shared_ext}$major'
13849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13850   case $host_os in
13851   irix5* | nonstopux*)
13852     libsuff= shlibsuff=
13853     ;;
13854   *)
13855     case $LD in # libtool.m4 will add one of these switches to LD
13856     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13857       libsuff= shlibsuff= libmagic=32-bit;;
13858     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13859       libsuff=32 shlibsuff=N32 libmagic=N32;;
13860     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13861       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13862     *) libsuff= shlibsuff= libmagic=never-match;;
13863     esac
13864     ;;
13865   esac
13866   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13867   shlibpath_overrides_runpath=no
13868   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13869   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13870   hardcode_into_libs=yes
13871   ;;
13872
13873 # No shared lib support for Linux oldld, aout, or coff.
13874 linux*oldld* | linux*aout* | linux*coff*)
13875   dynamic_linker=no
13876   ;;
13877
13878 # This must be Linux ELF.
13879 linux*)
13880   version_type=linux
13881   need_lib_prefix=no
13882   need_version=no
13883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884   soname_spec='${libname}${release}${shared_ext}$major'
13885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13886   shlibpath_var=LD_LIBRARY_PATH
13887   shlibpath_overrides_runpath=no
13888   # This implies no fast_install, which is unacceptable.
13889   # Some rework will be needed to allow for fast_install
13890   # before this can be enabled.
13891   hardcode_into_libs=yes
13892
13893   # find out which ABI we are using
13894   libsuff=
13895   case "$host_cpu" in
13896   x86_64*|s390x*|powerpc64*)
13897     echo '#line 13897 "configure"' > conftest.$ac_ext
13898     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899   (eval $ac_compile) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; then
13903       case `/usr/bin/file conftest.$ac_objext` in
13904       *64-bit*)
13905         libsuff=64
13906         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13907         ;;
13908       esac
13909     fi
13910     rm -rf conftest*
13911     ;;
13912   esac
13913
13914   # Append ld.so.conf contents to the search path
13915   if test -f /etc/ld.so.conf; then
13916     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13917     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13918   fi
13919
13920   # We used to test for /lib/ld.so.1 and disable shared libraries on
13921   # powerpc, because MkLinux only supported shared libraries with the
13922   # GNU dynamic linker.  Since this was broken with cross compilers,
13923   # most powerpc-linux boxes support dynamic linking these days and
13924   # people can always --disable-shared, the test was removed, and we
13925   # assume the GNU/Linux dynamic linker is in use.
13926   dynamic_linker='GNU/Linux ld.so'
13927   ;;
13928
13929 knetbsd*-gnu)
13930   version_type=linux
13931   need_lib_prefix=no
13932   need_version=no
13933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13934   soname_spec='${libname}${release}${shared_ext}$major'
13935   shlibpath_var=LD_LIBRARY_PATH
13936   shlibpath_overrides_runpath=no
13937   hardcode_into_libs=yes
13938   dynamic_linker='GNU ld.so'
13939   ;;
13940
13941 netbsd*)
13942   version_type=sunos
13943   need_lib_prefix=no
13944   need_version=no
13945   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13947     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13948     dynamic_linker='NetBSD (a.out) ld.so'
13949   else
13950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13951     soname_spec='${libname}${release}${shared_ext}$major'
13952     dynamic_linker='NetBSD ld.elf_so'
13953   fi
13954   shlibpath_var=LD_LIBRARY_PATH
13955   shlibpath_overrides_runpath=yes
13956   hardcode_into_libs=yes
13957   ;;
13958
13959 newsos6)
13960   version_type=linux
13961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962   shlibpath_var=LD_LIBRARY_PATH
13963   shlibpath_overrides_runpath=yes
13964   ;;
13965
13966 nto-qnx*)
13967   version_type=linux
13968   need_lib_prefix=no
13969   need_version=no
13970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971   soname_spec='${libname}${release}${shared_ext}$major'
13972   shlibpath_var=LD_LIBRARY_PATH
13973   shlibpath_overrides_runpath=yes
13974   ;;
13975
13976 openbsd*)
13977   version_type=sunos
13978   sys_lib_dlsearch_path_spec="/usr/lib"
13979   need_lib_prefix=no
13980   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13981   case $host_os in
13982     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13983     *)                         need_version=no  ;;
13984   esac
13985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987   shlibpath_var=LD_LIBRARY_PATH
13988   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989     case $host_os in
13990       openbsd2.[89] | openbsd2.[89].*)
13991         shlibpath_overrides_runpath=no
13992         ;;
13993       *)
13994         shlibpath_overrides_runpath=yes
13995         ;;
13996       esac
13997   else
13998     shlibpath_overrides_runpath=yes
13999   fi
14000   ;;
14001
14002 os2*)
14003   libname_spec='$name'
14004   shrext_cmds=".dll"
14005   need_lib_prefix=no
14006   library_names_spec='$libname${shared_ext} $libname.a'
14007   dynamic_linker='OS/2 ld.exe'
14008   shlibpath_var=LIBPATH
14009   ;;
14010
14011 osf3* | osf4* | osf5*)
14012   version_type=osf
14013   need_lib_prefix=no
14014   need_version=no
14015   soname_spec='${libname}${release}${shared_ext}$major'
14016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14019   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14020   ;;
14021
14022 solaris*)
14023   version_type=linux
14024   need_lib_prefix=no
14025   need_version=no
14026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027   soname_spec='${libname}${release}${shared_ext}$major'
14028   shlibpath_var=LD_LIBRARY_PATH
14029   shlibpath_overrides_runpath=yes
14030   hardcode_into_libs=yes
14031   # ldd complains unless libraries are executable
14032   postinstall_cmds='chmod +x $lib'
14033   ;;
14034
14035 sunos4*)
14036   version_type=sunos
14037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14038   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14039   shlibpath_var=LD_LIBRARY_PATH
14040   shlibpath_overrides_runpath=yes
14041   if test "$with_gnu_ld" = yes; then
14042     need_lib_prefix=no
14043   fi
14044   need_version=yes
14045   ;;
14046
14047 sysv4 | sysv4.3*)
14048   version_type=linux
14049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050   soname_spec='${libname}${release}${shared_ext}$major'
14051   shlibpath_var=LD_LIBRARY_PATH
14052   case $host_vendor in
14053     sni)
14054       shlibpath_overrides_runpath=no
14055       need_lib_prefix=no
14056       export_dynamic_flag_spec='${wl}-Blargedynsym'
14057       runpath_var=LD_RUN_PATH
14058       ;;
14059     siemens)
14060       need_lib_prefix=no
14061       ;;
14062     motorola)
14063       need_lib_prefix=no
14064       need_version=no
14065       shlibpath_overrides_runpath=no
14066       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14067       ;;
14068   esac
14069   ;;
14070
14071 sysv4*MP*)
14072   if test -d /usr/nec ;then
14073     version_type=linux
14074     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14075     soname_spec='$libname${shared_ext}.$major'
14076     shlibpath_var=LD_LIBRARY_PATH
14077   fi
14078   ;;
14079
14080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14081   version_type=freebsd-elf
14082   need_lib_prefix=no
14083   need_version=no
14084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14085   soname_spec='${libname}${release}${shared_ext}$major'
14086   shlibpath_var=LD_LIBRARY_PATH
14087   hardcode_into_libs=yes
14088   if test "$with_gnu_ld" = yes; then
14089     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14090     shlibpath_overrides_runpath=no
14091   else
14092     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14093     shlibpath_overrides_runpath=yes
14094     case $host_os in
14095       sco3.2v5*)
14096         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14097         ;;
14098     esac
14099   fi
14100   sys_lib_dlsearch_path_spec='/usr/lib'
14101   ;;
14102
14103 uts4*)
14104   version_type=linux
14105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106   soname_spec='${libname}${release}${shared_ext}$major'
14107   shlibpath_var=LD_LIBRARY_PATH
14108   ;;
14109
14110 *)
14111   dynamic_linker=no
14112   ;;
14113 esac
14114 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14115 echo "${ECHO_T}$dynamic_linker" >&6; }
14116 test "$dynamic_linker" = no && can_build_shared=no
14117
14118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14119 if test "$GCC" = yes; then
14120   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14121 fi
14122
14123 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14124 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14125 hardcode_action_CXX=
14126 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14127    test -n "$runpath_var_CXX" || \
14128    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14129
14130   # We can hardcode non-existant directories.
14131   if test "$hardcode_direct_CXX" != no &&
14132      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14133      # have to relink, otherwise we might link with an installed library
14134      # when we should be linking with a yet-to-be-installed one
14135      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14136      test "$hardcode_minus_L_CXX" != no; then
14137     # Linking always hardcodes the temporary library directory.
14138     hardcode_action_CXX=relink
14139   else
14140     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14141     hardcode_action_CXX=immediate
14142   fi
14143 else
14144   # We cannot hardcode anything, or else we can only hardcode existing
14145   # directories.
14146   hardcode_action_CXX=unsupported
14147 fi
14148 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14149 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14150
14151 if test "$hardcode_action_CXX" = relink; then
14152   # Fast installation is not supported
14153   enable_fast_install=no
14154 elif test "$shlibpath_overrides_runpath" = yes ||
14155      test "$enable_shared" = no; then
14156   # Fast installation is not necessary
14157   enable_fast_install=needless
14158 fi
14159
14160
14161 # The else clause should only fire when bootstrapping the
14162 # libtool distribution, otherwise you forgot to ship ltmain.sh
14163 # with your package, and you will get complaints that there are
14164 # no rules to generate ltmain.sh.
14165 if test -f "$ltmain"; then
14166   # See if we are running on zsh, and set the options which allow our commands through
14167   # without removal of \ escapes.
14168   if test -n "${ZSH_VERSION+set}" ; then
14169     setopt NO_GLOB_SUBST
14170   fi
14171   # Now quote all the things that may contain metacharacters while being
14172   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14173   # variables and quote the copies for generation of the libtool script.
14174   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14175     SED SHELL STRIP \
14176     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14177     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14178     deplibs_check_method reload_flag reload_cmds need_locks \
14179     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14180     lt_cv_sys_global_symbol_to_c_name_address \
14181     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14182     old_postinstall_cmds old_postuninstall_cmds \
14183     compiler_CXX \
14184     CC_CXX \
14185     LD_CXX \
14186     lt_prog_compiler_wl_CXX \
14187     lt_prog_compiler_pic_CXX \
14188     lt_prog_compiler_static_CXX \
14189     lt_prog_compiler_no_builtin_flag_CXX \
14190     export_dynamic_flag_spec_CXX \
14191     thread_safe_flag_spec_CXX \
14192     whole_archive_flag_spec_CXX \
14193     enable_shared_with_static_runtimes_CXX \
14194     old_archive_cmds_CXX \
14195     old_archive_from_new_cmds_CXX \
14196     predep_objects_CXX \
14197     postdep_objects_CXX \
14198     predeps_CXX \
14199     postdeps_CXX \
14200     compiler_lib_search_path_CXX \
14201     archive_cmds_CXX \
14202     archive_expsym_cmds_CXX \
14203     postinstall_cmds_CXX \
14204     postuninstall_cmds_CXX \
14205     old_archive_from_expsyms_cmds_CXX \
14206     allow_undefined_flag_CXX \
14207     no_undefined_flag_CXX \
14208     export_symbols_cmds_CXX \
14209     hardcode_libdir_flag_spec_CXX \
14210     hardcode_libdir_flag_spec_ld_CXX \
14211     hardcode_libdir_separator_CXX \
14212     hardcode_automatic_CXX \
14213     module_cmds_CXX \
14214     module_expsym_cmds_CXX \
14215     lt_cv_prog_compiler_c_o_CXX \
14216     exclude_expsyms_CXX \
14217     include_expsyms_CXX; do
14218
14219     case $var in
14220     old_archive_cmds_CXX | \
14221     old_archive_from_new_cmds_CXX | \
14222     archive_cmds_CXX | \
14223     archive_expsym_cmds_CXX | \
14224     module_cmds_CXX | \
14225     module_expsym_cmds_CXX | \
14226     old_archive_from_expsyms_cmds_CXX | \
14227     export_symbols_cmds_CXX | \
14228     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14229     postinstall_cmds | postuninstall_cmds | \
14230     old_postinstall_cmds | old_postuninstall_cmds | \
14231     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14232       # Double-quote double-evaled strings.
14233       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14234       ;;
14235     *)
14236       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14237       ;;
14238     esac
14239   done
14240
14241   case $lt_echo in
14242   *'\$0 --fallback-echo"')
14243     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14244     ;;
14245   esac
14246
14247 cfgfile="$ofile"
14248
14249   cat <<__EOF__ >> "$cfgfile"
14250 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14251
14252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14253
14254 # Shell to use when invoking shell scripts.
14255 SHELL=$lt_SHELL
14256
14257 # Whether or not to build shared libraries.
14258 build_libtool_libs=$enable_shared
14259
14260 # Whether or not to build static libraries.
14261 build_old_libs=$enable_static
14262
14263 # Whether or not to add -lc for building shared libraries.
14264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14265
14266 # Whether or not to disallow shared libs when runtime libs are static
14267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14268
14269 # Whether or not to optimize for fast installation.
14270 fast_install=$enable_fast_install
14271
14272 # The host system.
14273 host_alias=$host_alias
14274 host=$host
14275 host_os=$host_os
14276
14277 # The build system.
14278 build_alias=$build_alias
14279 build=$build
14280 build_os=$build_os
14281
14282 # An echo program that does not interpret backslashes.
14283 echo=$lt_echo
14284
14285 # The archiver.
14286 AR=$lt_AR
14287 AR_FLAGS=$lt_AR_FLAGS
14288
14289 # A C compiler.
14290 LTCC=$lt_LTCC
14291
14292 # LTCC compiler flags.
14293 LTCFLAGS=$lt_LTCFLAGS
14294
14295 # A language-specific compiler.
14296 CC=$lt_compiler_CXX
14297
14298 # Is the compiler the GNU C compiler?
14299 with_gcc=$GCC_CXX
14300
14301 # An ERE matcher.
14302 EGREP=$lt_EGREP
14303
14304 # The linker used to build libraries.
14305 LD=$lt_LD_CXX
14306
14307 # Whether we need hard or soft links.
14308 LN_S=$lt_LN_S
14309
14310 # A BSD-compatible nm program.
14311 NM=$lt_NM
14312
14313 # A symbol stripping program
14314 STRIP=$lt_STRIP
14315
14316 # Used to examine libraries when file_magic_cmd begins "file"
14317 MAGIC_CMD=$MAGIC_CMD
14318
14319 # Used on cygwin: DLL creation program.
14320 DLLTOOL="$DLLTOOL"
14321
14322 # Used on cygwin: object dumper.
14323 OBJDUMP="$OBJDUMP"
14324
14325 # Used on cygwin: assembler.
14326 AS="$AS"
14327
14328 # The name of the directory that contains temporary libtool files.
14329 objdir=$objdir
14330
14331 # How to create reloadable object files.
14332 reload_flag=$lt_reload_flag
14333 reload_cmds=$lt_reload_cmds
14334
14335 # How to pass a linker flag through the compiler.
14336 wl=$lt_lt_prog_compiler_wl_CXX
14337
14338 # Object file suffix (normally "o").
14339 objext="$ac_objext"
14340
14341 # Old archive suffix (normally "a").
14342 libext="$libext"
14343
14344 # Shared library suffix (normally ".so").
14345 shrext_cmds='$shrext_cmds'
14346
14347 # Executable file suffix (normally "").
14348 exeext="$exeext"
14349
14350 # Additional compiler flags for building library objects.
14351 pic_flag=$lt_lt_prog_compiler_pic_CXX
14352 pic_mode=$pic_mode
14353
14354 # What is the maximum length of a command?
14355 max_cmd_len=$lt_cv_sys_max_cmd_len
14356
14357 # Does compiler simultaneously support -c and -o options?
14358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14359
14360 # Must we lock files when doing compilation?
14361 need_locks=$lt_need_locks
14362
14363 # Do we need the lib prefix for modules?
14364 need_lib_prefix=$need_lib_prefix
14365
14366 # Do we need a version for libraries?
14367 need_version=$need_version
14368
14369 # Whether dlopen is supported.
14370 dlopen_support=$enable_dlopen
14371
14372 # Whether dlopen of programs is supported.
14373 dlopen_self=$enable_dlopen_self
14374
14375 # Whether dlopen of statically linked programs is supported.
14376 dlopen_self_static=$enable_dlopen_self_static
14377
14378 # Compiler flag to prevent dynamic linking.
14379 link_static_flag=$lt_lt_prog_compiler_static_CXX
14380
14381 # Compiler flag to turn off builtin functions.
14382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14383
14384 # Compiler flag to allow reflexive dlopens.
14385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14386
14387 # Compiler flag to generate shared objects directly from archives.
14388 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14389
14390 # Compiler flag to generate thread-safe objects.
14391 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14392
14393 # Library versioning type.
14394 version_type=$version_type
14395
14396 # Format of library name prefix.
14397 libname_spec=$lt_libname_spec
14398
14399 # List of archive names.  First name is the real one, the rest are links.
14400 # The last name is the one that the linker finds with -lNAME.
14401 library_names_spec=$lt_library_names_spec
14402
14403 # The coded name of the library, if different from the real name.
14404 soname_spec=$lt_soname_spec
14405
14406 # Commands used to build and install an old-style archive.
14407 RANLIB=$lt_RANLIB
14408 old_archive_cmds=$lt_old_archive_cmds_CXX
14409 old_postinstall_cmds=$lt_old_postinstall_cmds
14410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14411
14412 # Create an old-style archive from a shared archive.
14413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14414
14415 # Create a temporary old-style archive to link instead of a shared archive.
14416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14417
14418 # Commands used to build and install a shared archive.
14419 archive_cmds=$lt_archive_cmds_CXX
14420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14421 postinstall_cmds=$lt_postinstall_cmds
14422 postuninstall_cmds=$lt_postuninstall_cmds
14423
14424 # Commands used to build a loadable module (assumed same as above if empty)
14425 module_cmds=$lt_module_cmds_CXX
14426 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14427
14428 # Commands to strip libraries.
14429 old_striplib=$lt_old_striplib
14430 striplib=$lt_striplib
14431
14432 # Dependencies to place before the objects being linked to create a
14433 # shared library.
14434 predep_objects=$lt_predep_objects_CXX
14435
14436 # Dependencies to place after the objects being linked to create a
14437 # shared library.
14438 postdep_objects=$lt_postdep_objects_CXX
14439
14440 # Dependencies to place before the objects being linked to create a
14441 # shared library.
14442 predeps=$lt_predeps_CXX
14443
14444 # Dependencies to place after the objects being linked to create a
14445 # shared library.
14446 postdeps=$lt_postdeps_CXX
14447
14448 # The library search path used internally by the compiler when linking
14449 # a shared library.
14450 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14451
14452 # Method to check whether dependent libraries are shared objects.
14453 deplibs_check_method=$lt_deplibs_check_method
14454
14455 # Command to use when deplibs_check_method == file_magic.
14456 file_magic_cmd=$lt_file_magic_cmd
14457
14458 # Flag that allows shared libraries with undefined symbols to be built.
14459 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14460
14461 # Flag that forces no undefined symbols.
14462 no_undefined_flag=$lt_no_undefined_flag_CXX
14463
14464 # Commands used to finish a libtool library installation in a directory.
14465 finish_cmds=$lt_finish_cmds
14466
14467 # Same as above, but a single script fragment to be evaled but not shown.
14468 finish_eval=$lt_finish_eval
14469
14470 # Take the output of nm and produce a listing of raw symbols and C names.
14471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14472
14473 # Transform the output of nm in a proper C declaration
14474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14475
14476 # Transform the output of nm in a C name address pair
14477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14478
14479 # This is the shared library runtime path variable.
14480 runpath_var=$runpath_var
14481
14482 # This is the shared library path variable.
14483 shlibpath_var=$shlibpath_var
14484
14485 # Is shlibpath searched before the hard-coded library search path?
14486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14487
14488 # How to hardcode a shared library path into an executable.
14489 hardcode_action=$hardcode_action_CXX
14490
14491 # Whether we should hardcode library paths into libraries.
14492 hardcode_into_libs=$hardcode_into_libs
14493
14494 # Flag to hardcode \$libdir into a binary during linking.
14495 # This must work even if \$libdir does not exist.
14496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14497
14498 # If ld is used when linking, flag to hardcode \$libdir into
14499 # a binary during linking. This must work even if \$libdir does
14500 # not exist.
14501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14502
14503 # Whether we need a single -rpath flag with a separated argument.
14504 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14505
14506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14507 # resulting binary.
14508 hardcode_direct=$hardcode_direct_CXX
14509
14510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14511 # resulting binary.
14512 hardcode_minus_L=$hardcode_minus_L_CXX
14513
14514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14515 # the resulting binary.
14516 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14517
14518 # Set to yes if building a shared library automatically hardcodes DIR into the library
14519 # and all subsequent libraries and executables linked against it.
14520 hardcode_automatic=$hardcode_automatic_CXX
14521
14522 # Variables whose values should be saved in libtool wrapper scripts and
14523 # restored at relink time.
14524 variables_saved_for_relink="$variables_saved_for_relink"
14525
14526 # Whether libtool must link a program against all its dependency libraries.
14527 link_all_deplibs=$link_all_deplibs_CXX
14528
14529 # Compile-time system search path for libraries
14530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14531
14532 # Run-time system search path for libraries
14533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14534
14535 # Fix the shell variable \$srcfile for the compiler.
14536 fix_srcfile_path="$fix_srcfile_path_CXX"
14537
14538 # Set to yes if exported symbols are required.
14539 always_export_symbols=$always_export_symbols_CXX
14540
14541 # The commands to list exported symbols.
14542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14543
14544 # The commands to extract the exported symbol list from a shared archive.
14545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14546
14547 # Symbols that should not be listed in the preloaded symbols.
14548 exclude_expsyms=$lt_exclude_expsyms_CXX
14549
14550 # Symbols that must always be exported.
14551 include_expsyms=$lt_include_expsyms_CXX
14552
14553 # ### END LIBTOOL TAG CONFIG: $tagname
14554
14555 __EOF__
14556
14557
14558 else
14559   # If there is no Makefile yet, we rely on a make rule to execute
14560   # `config.status --recheck' to rerun these tests and create the
14561   # libtool script then.
14562   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14563   if test -f "$ltmain_in"; then
14564     test -f Makefile && make "$ltmain"
14565   fi
14566 fi
14567
14568
14569 ac_ext=c
14570 ac_cpp='$CPP $CPPFLAGS'
14571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14574
14575 CC=$lt_save_CC
14576 LDCXX=$LD
14577 LD=$lt_save_LD
14578 GCC=$lt_save_GCC
14579 with_gnu_ldcxx=$with_gnu_ld
14580 with_gnu_ld=$lt_save_with_gnu_ld
14581 lt_cv_path_LDCXX=$lt_cv_path_LD
14582 lt_cv_path_LD=$lt_save_path_LD
14583 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14584 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14585
14586         else
14587           tagname=""
14588         fi
14589         ;;
14590
14591       F77)
14592         if test -n "$F77" && test "X$F77" != "Xno"; then
14593
14594 ac_ext=f
14595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14598
14599
14600 archive_cmds_need_lc_F77=no
14601 allow_undefined_flag_F77=
14602 always_export_symbols_F77=no
14603 archive_expsym_cmds_F77=
14604 export_dynamic_flag_spec_F77=
14605 hardcode_direct_F77=no
14606 hardcode_libdir_flag_spec_F77=
14607 hardcode_libdir_flag_spec_ld_F77=
14608 hardcode_libdir_separator_F77=
14609 hardcode_minus_L_F77=no
14610 hardcode_automatic_F77=no
14611 module_cmds_F77=
14612 module_expsym_cmds_F77=
14613 link_all_deplibs_F77=unknown
14614 old_archive_cmds_F77=$old_archive_cmds
14615 no_undefined_flag_F77=
14616 whole_archive_flag_spec_F77=
14617 enable_shared_with_static_runtimes_F77=no
14618
14619 # Source file extension for f77 test sources.
14620 ac_ext=f
14621
14622 # Object file extension for compiled f77 test sources.
14623 objext=o
14624 objext_F77=$objext
14625
14626 # Code to be used in simple compile tests
14627 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14628
14629 # Code to be used in simple link tests
14630 lt_simple_link_test_code="      program t\n      end\n"
14631
14632 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14633
14634 # If no C compiler was specified, use CC.
14635 LTCC=${LTCC-"$CC"}
14636
14637 # If no C compiler flags were specified, use CFLAGS.
14638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14639
14640 # Allow CC to be a program name with arguments.
14641 compiler=$CC
14642
14643
14644 # save warnings/boilerplate of simple test code
14645 ac_outfile=conftest.$ac_objext
14646 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14648 _lt_compiler_boilerplate=`cat conftest.err`
14649 $rm conftest*
14650
14651 ac_outfile=conftest.$ac_objext
14652 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14654 _lt_linker_boilerplate=`cat conftest.err`
14655 $rm conftest*
14656
14657
14658 # Allow CC to be a program name with arguments.
14659 lt_save_CC="$CC"
14660 CC=${F77-"f77"}
14661 compiler=$CC
14662 compiler_F77=$CC
14663 for cc_temp in $compiler""; do
14664   case $cc_temp in
14665     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14666     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14667     \-*) ;;
14668     *) break;;
14669   esac
14670 done
14671 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14672
14673
14674 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14675 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14676 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14677 echo "${ECHO_T}$can_build_shared" >&6; }
14678
14679 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14680 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14681 test "$can_build_shared" = "no" && enable_shared=no
14682
14683 # On AIX, shared libraries and static libraries use the same namespace, and
14684 # are all built from PIC.
14685 case $host_os in
14686 aix3*)
14687   test "$enable_shared" = yes && enable_static=no
14688   if test -n "$RANLIB"; then
14689     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14690     postinstall_cmds='$RANLIB $lib'
14691   fi
14692   ;;
14693 aix4* | aix5*)
14694   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14695     test "$enable_shared" = yes && enable_static=no
14696   fi
14697   ;;
14698 esac
14699 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14700 echo "${ECHO_T}$enable_shared" >&6; }
14701
14702 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14704 # Make sure either enable_shared or enable_static is yes.
14705 test "$enable_shared" = yes || enable_static=yes
14706 { echo "$as_me:$LINENO: result: $enable_static" >&5
14707 echo "${ECHO_T}$enable_static" >&6; }
14708
14709 GCC_F77="$G77"
14710 LD_F77="$LD"
14711
14712 lt_prog_compiler_wl_F77=
14713 lt_prog_compiler_pic_F77=
14714 lt_prog_compiler_static_F77=
14715
14716 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14717 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14718
14719   if test "$GCC" = yes; then
14720     lt_prog_compiler_wl_F77='-Wl,'
14721     lt_prog_compiler_static_F77='-static'
14722
14723     case $host_os in
14724       aix*)
14725       # All AIX code is PIC.
14726       if test "$host_cpu" = ia64; then
14727         # AIX 5 now supports IA64 processor
14728         lt_prog_compiler_static_F77='-Bstatic'
14729       fi
14730       ;;
14731
14732     amigaos*)
14733       # FIXME: we need at least 68020 code to build shared libraries, but
14734       # adding the `-m68020' flag to GCC prevents building anything better,
14735       # like `-m68040'.
14736       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14737       ;;
14738
14739     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14740       # PIC is the default for these OSes.
14741       ;;
14742
14743     mingw* | pw32* | os2*)
14744       # This hack is so that the source file can tell whether it is being
14745       # built for inclusion in a dll (and should export symbols for example).
14746       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14747       ;;
14748
14749     darwin* | rhapsody*)
14750       # PIC is the default on this platform
14751       # Common symbols not allowed in MH_DYLIB files
14752       lt_prog_compiler_pic_F77='-fno-common'
14753       ;;
14754
14755     interix3*)
14756       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14757       # Instead, we relocate shared libraries at runtime.
14758       ;;
14759
14760     msdosdjgpp*)
14761       # Just because we use GCC doesn't mean we suddenly get shared libraries
14762       # on systems that don't support them.
14763       lt_prog_compiler_can_build_shared_F77=no
14764       enable_shared=no
14765       ;;
14766
14767     sysv4*MP*)
14768       if test -d /usr/nec; then
14769         lt_prog_compiler_pic_F77=-Kconform_pic
14770       fi
14771       ;;
14772
14773     hpux*)
14774       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14775       # not for PA HP-UX.
14776       case $host_cpu in
14777       hppa*64*|ia64*)
14778         # +Z the default
14779         ;;
14780       *)
14781         lt_prog_compiler_pic_F77='-fPIC'
14782         ;;
14783       esac
14784       ;;
14785
14786     *)
14787       lt_prog_compiler_pic_F77='-fPIC'
14788       ;;
14789     esac
14790   else
14791     # PORTME Check for flag to pass linker flags through the system compiler.
14792     case $host_os in
14793     aix*)
14794       lt_prog_compiler_wl_F77='-Wl,'
14795       if test "$host_cpu" = ia64; then
14796         # AIX 5 now supports IA64 processor
14797         lt_prog_compiler_static_F77='-Bstatic'
14798       else
14799         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14800       fi
14801       ;;
14802       darwin*)
14803         # PIC is the default on this platform
14804         # Common symbols not allowed in MH_DYLIB files
14805        case $cc_basename in
14806          xlc*)
14807          lt_prog_compiler_pic_F77='-qnocommon'
14808          lt_prog_compiler_wl_F77='-Wl,'
14809          ;;
14810        esac
14811        ;;
14812
14813     mingw* | pw32* | os2*)
14814       # This hack is so that the source file can tell whether it is being
14815       # built for inclusion in a dll (and should export symbols for example).
14816       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14817       ;;
14818
14819     hpux9* | hpux10* | hpux11*)
14820       lt_prog_compiler_wl_F77='-Wl,'
14821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14822       # not for PA HP-UX.
14823       case $host_cpu in
14824       hppa*64*|ia64*)
14825         # +Z the default
14826         ;;
14827       *)
14828         lt_prog_compiler_pic_F77='+Z'
14829         ;;
14830       esac
14831       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14832       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14833       ;;
14834
14835     irix5* | irix6* | nonstopux*)
14836       lt_prog_compiler_wl_F77='-Wl,'
14837       # PIC (with -KPIC) is the default.
14838       lt_prog_compiler_static_F77='-non_shared'
14839       ;;
14840
14841     newsos6)
14842       lt_prog_compiler_pic_F77='-KPIC'
14843       lt_prog_compiler_static_F77='-Bstatic'
14844       ;;
14845
14846     linux*)
14847       case $cc_basename in
14848       icc* | ecc*)
14849         lt_prog_compiler_wl_F77='-Wl,'
14850         lt_prog_compiler_pic_F77='-KPIC'
14851         lt_prog_compiler_static_F77='-static'
14852         ;;
14853       pgcc* | pgf77* | pgf90* | pgf95*)
14854         # Portland Group compilers (*not* the Pentium gcc compiler,
14855         # which looks to be a dead project)
14856         lt_prog_compiler_wl_F77='-Wl,'
14857         lt_prog_compiler_pic_F77='-fpic'
14858         lt_prog_compiler_static_F77='-Bstatic'
14859         ;;
14860       ccc*)
14861         lt_prog_compiler_wl_F77='-Wl,'
14862         # All Alpha code is PIC.
14863         lt_prog_compiler_static_F77='-non_shared'
14864         ;;
14865       esac
14866       ;;
14867
14868     osf3* | osf4* | osf5*)
14869       lt_prog_compiler_wl_F77='-Wl,'
14870       # All OSF/1 code is PIC.
14871       lt_prog_compiler_static_F77='-non_shared'
14872       ;;
14873
14874     solaris*)
14875       lt_prog_compiler_pic_F77='-KPIC'
14876       lt_prog_compiler_static_F77='-Bstatic'
14877       case $cc_basename in
14878       f77* | f90* | f95*)
14879         lt_prog_compiler_wl_F77='-Qoption ld ';;
14880       *)
14881         lt_prog_compiler_wl_F77='-Wl,';;
14882       esac
14883       ;;
14884
14885     sunos4*)
14886       lt_prog_compiler_wl_F77='-Qoption ld '
14887       lt_prog_compiler_pic_F77='-PIC'
14888       lt_prog_compiler_static_F77='-Bstatic'
14889       ;;
14890
14891     sysv4 | sysv4.2uw2* | sysv4.3*)
14892       lt_prog_compiler_wl_F77='-Wl,'
14893       lt_prog_compiler_pic_F77='-KPIC'
14894       lt_prog_compiler_static_F77='-Bstatic'
14895       ;;
14896
14897     sysv4*MP*)
14898       if test -d /usr/nec ;then
14899         lt_prog_compiler_pic_F77='-Kconform_pic'
14900         lt_prog_compiler_static_F77='-Bstatic'
14901       fi
14902       ;;
14903
14904     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14905       lt_prog_compiler_wl_F77='-Wl,'
14906       lt_prog_compiler_pic_F77='-KPIC'
14907       lt_prog_compiler_static_F77='-Bstatic'
14908       ;;
14909
14910     unicos*)
14911       lt_prog_compiler_wl_F77='-Wl,'
14912       lt_prog_compiler_can_build_shared_F77=no
14913       ;;
14914
14915     uts4*)
14916       lt_prog_compiler_pic_F77='-pic'
14917       lt_prog_compiler_static_F77='-Bstatic'
14918       ;;
14919
14920     *)
14921       lt_prog_compiler_can_build_shared_F77=no
14922       ;;
14923     esac
14924   fi
14925
14926 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14927 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14928
14929 #
14930 # Check to make sure the PIC flag actually works.
14931 #
14932 if test -n "$lt_prog_compiler_pic_F77"; then
14933
14934 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14936 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14937   echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939   lt_prog_compiler_pic_works_F77=no
14940   ac_outfile=conftest.$ac_objext
14941    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14942    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14943    # Insert the option either (1) after the last *FLAGS variable, or
14944    # (2) before a word containing "conftest.", or (3) at the end.
14945    # Note that $ac_compile itself does not contain backslashes and begins
14946    # with a dollar sign (not a hyphen), so the echo should work correctly.
14947    # The option is referenced via a variable to avoid confusing sed.
14948    lt_compile=`echo "$ac_compile" | $SED \
14949    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14951    -e 's:$: $lt_compiler_flag:'`
14952    (eval echo "\"\$as_me:14952: $lt_compile\"" >&5)
14953    (eval "$lt_compile" 2>conftest.err)
14954    ac_status=$?
14955    cat conftest.err >&5
14956    echo "$as_me:14956: \$? = $ac_status" >&5
14957    if (exit $ac_status) && test -s "$ac_outfile"; then
14958      # The compiler can only warn and ignore the option if not recognized
14959      # So say no if there are warnings other than the usual output.
14960      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14961      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14962      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14963        lt_prog_compiler_pic_works_F77=yes
14964      fi
14965    fi
14966    $rm conftest*
14967
14968 fi
14969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14970 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14971
14972 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14973     case $lt_prog_compiler_pic_F77 in
14974      "" | " "*) ;;
14975      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14976      esac
14977 else
14978     lt_prog_compiler_pic_F77=
14979      lt_prog_compiler_can_build_shared_F77=no
14980 fi
14981
14982 fi
14983 case $host_os in
14984   # For platforms which do not support PIC, -DPIC is meaningless:
14985   *djgpp*)
14986     lt_prog_compiler_pic_F77=
14987     ;;
14988   *)
14989     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14990     ;;
14991 esac
14992
14993 #
14994 # Check to make sure the static flag actually works.
14995 #
14996 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14997 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14998 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14999 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   lt_prog_compiler_static_works_F77=no
15003    save_LDFLAGS="$LDFLAGS"
15004    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15005    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15006    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15007      # The linker can only warn and ignore the option if not recognized
15008      # So say no if there are warnings
15009      if test -s conftest.err; then
15010        # Append any errors to the config.log.
15011        cat conftest.err 1>&5
15012        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15013        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15014        if diff conftest.exp conftest.er2 >/dev/null; then
15015          lt_prog_compiler_static_works_F77=yes
15016        fi
15017      else
15018        lt_prog_compiler_static_works_F77=yes
15019      fi
15020    fi
15021    $rm conftest*
15022    LDFLAGS="$save_LDFLAGS"
15023
15024 fi
15025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15026 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15027
15028 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15029     :
15030 else
15031     lt_prog_compiler_static_F77=
15032 fi
15033
15034
15035 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15037 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   lt_cv_prog_compiler_c_o_F77=no
15041    $rm -r conftest 2>/dev/null
15042    mkdir conftest
15043    cd conftest
15044    mkdir out
15045    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15046
15047    lt_compiler_flag="-o out/conftest2.$ac_objext"
15048    # Insert the option either (1) after the last *FLAGS variable, or
15049    # (2) before a word containing "conftest.", or (3) at the end.
15050    # Note that $ac_compile itself does not contain backslashes and begins
15051    # with a dollar sign (not a hyphen), so the echo should work correctly.
15052    lt_compile=`echo "$ac_compile" | $SED \
15053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15055    -e 's:$: $lt_compiler_flag:'`
15056    (eval echo "\"\$as_me:15056: $lt_compile\"" >&5)
15057    (eval "$lt_compile" 2>out/conftest.err)
15058    ac_status=$?
15059    cat out/conftest.err >&5
15060    echo "$as_me:15060: \$? = $ac_status" >&5
15061    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15062    then
15063      # The compiler can only warn and ignore the option if not recognized
15064      # So say no if there are warnings
15065      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15066      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15067      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15068        lt_cv_prog_compiler_c_o_F77=yes
15069      fi
15070    fi
15071    chmod u+w . 2>&5
15072    $rm conftest*
15073    # SGI C++ compiler will create directory out/ii_files/ for
15074    # template instantiation
15075    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15076    $rm out/* && rmdir out
15077    cd ..
15078    rmdir conftest
15079    $rm conftest*
15080
15081 fi
15082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15083 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15084
15085
15086 hard_links="nottested"
15087 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15088   # do not overwrite the value of need_locks provided by the user
15089   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15090 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15091   hard_links=yes
15092   $rm conftest*
15093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15094   touch conftest.a
15095   ln conftest.a conftest.b 2>&5 || hard_links=no
15096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15097   { echo "$as_me:$LINENO: result: $hard_links" >&5
15098 echo "${ECHO_T}$hard_links" >&6; }
15099   if test "$hard_links" = no; then
15100     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15101 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15102     need_locks=warn
15103   fi
15104 else
15105   need_locks=no
15106 fi
15107
15108 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15110
15111   runpath_var=
15112   allow_undefined_flag_F77=
15113   enable_shared_with_static_runtimes_F77=no
15114   archive_cmds_F77=
15115   archive_expsym_cmds_F77=
15116   old_archive_From_new_cmds_F77=
15117   old_archive_from_expsyms_cmds_F77=
15118   export_dynamic_flag_spec_F77=
15119   whole_archive_flag_spec_F77=
15120   thread_safe_flag_spec_F77=
15121   hardcode_libdir_flag_spec_F77=
15122   hardcode_libdir_flag_spec_ld_F77=
15123   hardcode_libdir_separator_F77=
15124   hardcode_direct_F77=no
15125   hardcode_minus_L_F77=no
15126   hardcode_shlibpath_var_F77=unsupported
15127   link_all_deplibs_F77=unknown
15128   hardcode_automatic_F77=no
15129   module_cmds_F77=
15130   module_expsym_cmds_F77=
15131   always_export_symbols_F77=no
15132   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15133   # include_expsyms should be a list of space-separated symbols to be *always*
15134   # included in the symbol list
15135   include_expsyms_F77=
15136   # exclude_expsyms can be an extended regexp of symbols to exclude
15137   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15138   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15139   # as well as any symbol that contains `d'.
15140   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15141   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15142   # platforms (ab)use it in PIC code, but their linkers get confused if
15143   # the symbol is explicitly referenced.  Since portable code cannot
15144   # rely on this symbol name, it's probably fine to never include it in
15145   # preloaded symbol tables.
15146   extract_expsyms_cmds=
15147   # Just being paranoid about ensuring that cc_basename is set.
15148   for cc_temp in $compiler""; do
15149   case $cc_temp in
15150     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15151     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15152     \-*) ;;
15153     *) break;;
15154   esac
15155 done
15156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15157
15158   case $host_os in
15159   cygwin* | mingw* | pw32*)
15160     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15161     # When not using gcc, we currently assume that we are using
15162     # Microsoft Visual C++.
15163     if test "$GCC" != yes; then
15164       with_gnu_ld=no
15165     fi
15166     ;;
15167   interix*)
15168     # we just hope/assume this is gcc and not c89 (= MSVC++)
15169     with_gnu_ld=yes
15170     ;;
15171   openbsd*)
15172     with_gnu_ld=no
15173     ;;
15174   esac
15175
15176   ld_shlibs_F77=yes
15177   if test "$with_gnu_ld" = yes; then
15178     # If archive_cmds runs LD, not CC, wlarc should be empty
15179     wlarc='${wl}'
15180
15181     # Set some defaults for GNU ld with shared library support. These
15182     # are reset later if shared libraries are not supported. Putting them
15183     # here allows them to be overridden if necessary.
15184     runpath_var=LD_RUN_PATH
15185     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15186     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15187     # ancient GNU ld didn't support --whole-archive et. al.
15188     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15189         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15190       else
15191         whole_archive_flag_spec_F77=
15192     fi
15193     supports_anon_versioning=no
15194     case `$LD -v 2>/dev/null` in
15195       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15196       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15197       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15198       *\ 2.11.*) ;; # other 2.11 versions
15199       *) supports_anon_versioning=yes ;;
15200     esac
15201
15202     # See if GNU ld supports shared libraries.
15203     case $host_os in
15204     aix3* | aix4* | aix5*)
15205       # On AIX/PPC, the GNU linker is very broken
15206       if test "$host_cpu" != ia64; then
15207         ld_shlibs_F77=no
15208         cat <<EOF 1>&2
15209
15210 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15211 *** to be unable to reliably create shared libraries on AIX.
15212 *** Therefore, libtool is disabling shared libraries support.  If you
15213 *** really care for shared libraries, you may want to modify your PATH
15214 *** so that a non-GNU linker is found, and then restart.
15215
15216 EOF
15217       fi
15218       ;;
15219
15220     amigaos*)
15221       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)'
15222       hardcode_libdir_flag_spec_F77='-L$libdir'
15223       hardcode_minus_L_F77=yes
15224
15225       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15226       # that the semantics of dynamic libraries on AmigaOS, at least up
15227       # to version 4, is to share data among multiple programs linked
15228       # with the same dynamic library.  Since this doesn't match the
15229       # behavior of shared libraries on other platforms, we can't use
15230       # them.
15231       ld_shlibs_F77=no
15232       ;;
15233
15234     beos*)
15235       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15236         allow_undefined_flag_F77=unsupported
15237         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15238         # support --undefined.  This deserves some investigation.  FIXME
15239         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240       else
15241         ld_shlibs_F77=no
15242       fi
15243       ;;
15244
15245     cygwin* | mingw* | pw32*)
15246       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15247       # as there is no search path for DLLs.
15248       hardcode_libdir_flag_spec_F77='-L$libdir'
15249       allow_undefined_flag_F77=unsupported
15250       always_export_symbols_F77=no
15251       enable_shared_with_static_runtimes_F77=yes
15252       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15253
15254       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15255         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15256         # If the export-symbols file already is a .def file (1st line
15257         # is EXPORTS), use it as is; otherwise, prepend...
15258         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15259           cp $export_symbols $output_objdir/$soname.def;
15260         else
15261           echo EXPORTS > $output_objdir/$soname.def;
15262           cat $export_symbols >> $output_objdir/$soname.def;
15263         fi~
15264         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15265       else
15266         ld_shlibs_F77=no
15267       fi
15268       ;;
15269
15270     interix3*)
15271       hardcode_direct_F77=no
15272       hardcode_shlibpath_var_F77=no
15273       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15274       export_dynamic_flag_spec_F77='${wl}-E'
15275       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15276       # Instead, shared libraries are loaded at an image base (0x10000000 by
15277       # default) and relocated if they conflict, which is a slow very memory
15278       # consuming and fragmenting process.  To avoid this, we pick a random,
15279       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15280       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15281       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15282       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15283       ;;
15284
15285     linux*)
15286       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15287         tmp_addflag=
15288         case $cc_basename,$host_cpu in
15289         pgcc*)                          # Portland Group C compiler
15290           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15291           tmp_addflag=' $pic_flag'
15292           ;;
15293         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15294           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15295           tmp_addflag=' $pic_flag -Mnomain' ;;
15296         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15297           tmp_addflag=' -i_dynamic' ;;
15298         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15299           tmp_addflag=' -i_dynamic -nofor_main' ;;
15300         ifc* | ifort*)                  # Intel Fortran compiler
15301           tmp_addflag=' -nofor_main' ;;
15302         esac
15303         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15304
15305         if test $supports_anon_versioning = yes; then
15306           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15307   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15308   $echo "local: *; };" >> $output_objdir/$libname.ver~
15309           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15310         fi
15311       else
15312         ld_shlibs_F77=no
15313       fi
15314       ;;
15315
15316     netbsd*)
15317       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15318         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15319         wlarc=
15320       else
15321         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15322         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15323       fi
15324       ;;
15325
15326     solaris*)
15327       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15328         ld_shlibs_F77=no
15329         cat <<EOF 1>&2
15330
15331 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15332 *** create shared libraries on Solaris systems.  Therefore, libtool
15333 *** is disabling shared libraries support.  We urge you to upgrade GNU
15334 *** binutils to release 2.9.1 or newer.  Another option is to modify
15335 *** your PATH or compiler configuration so that the native linker is
15336 *** used, and then restart.
15337
15338 EOF
15339       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15340         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15341         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15342       else
15343         ld_shlibs_F77=no
15344       fi
15345       ;;
15346
15347     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15348       case `$LD -v 2>&1` in
15349         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15350         ld_shlibs_F77=no
15351         cat <<_LT_EOF 1>&2
15352
15353 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15354 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15355 *** is disabling shared libraries support.  We urge you to upgrade GNU
15356 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15357 *** your PATH or compiler configuration so that the native linker is
15358 *** used, and then restart.
15359
15360 _LT_EOF
15361         ;;
15362         *)
15363           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15364             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15365             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15366             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15367           else
15368             ld_shlibs_F77=no
15369           fi
15370         ;;
15371       esac
15372       ;;
15373
15374     sunos4*)
15375       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15376       wlarc=
15377       hardcode_direct_F77=yes
15378       hardcode_shlibpath_var_F77=no
15379       ;;
15380
15381     *)
15382       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385       else
15386         ld_shlibs_F77=no
15387       fi
15388       ;;
15389     esac
15390
15391     if test "$ld_shlibs_F77" = no; then
15392       runpath_var=
15393       hardcode_libdir_flag_spec_F77=
15394       export_dynamic_flag_spec_F77=
15395       whole_archive_flag_spec_F77=
15396     fi
15397   else
15398     # PORTME fill in a description of your system's linker (not GNU ld)
15399     case $host_os in
15400     aix3*)
15401       allow_undefined_flag_F77=unsupported
15402       always_export_symbols_F77=yes
15403       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'
15404       # Note: this linker hardcodes the directories in LIBPATH if there
15405       # are no directories specified by -L.
15406       hardcode_minus_L_F77=yes
15407       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15408         # Neither direct hardcoding nor static linking is supported with a
15409         # broken collect2.
15410         hardcode_direct_F77=unsupported
15411       fi
15412       ;;
15413
15414     aix4* | aix5*)
15415       if test "$host_cpu" = ia64; then
15416         # On IA64, the linker does run time linking by default, so we don't
15417         # have to do anything special.
15418         aix_use_runtimelinking=no
15419         exp_sym_flag='-Bexport'
15420         no_entry_flag=""
15421       else
15422         # If we're using GNU nm, then we don't want the "-C" option.
15423         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15424         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15425           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'
15426         else
15427           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'
15428         fi
15429         aix_use_runtimelinking=no
15430
15431         # Test if we are trying to use run time linking or normal
15432         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15433         # need to do runtime linking.
15434         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15435           for ld_flag in $LDFLAGS; do
15436           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15437             aix_use_runtimelinking=yes
15438             break
15439           fi
15440           done
15441           ;;
15442         esac
15443
15444         exp_sym_flag='-bexport'
15445         no_entry_flag='-bnoentry'
15446       fi
15447
15448       # When large executables or shared objects are built, AIX ld can
15449       # have problems creating the table of contents.  If linking a library
15450       # or program results in "error TOC overflow" add -mminimal-toc to
15451       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15452       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15453
15454       archive_cmds_F77=''
15455       hardcode_direct_F77=yes
15456       hardcode_libdir_separator_F77=':'
15457       link_all_deplibs_F77=yes
15458
15459       if test "$GCC" = yes; then
15460         case $host_os in aix4.[012]|aix4.[012].*)
15461         # We only want to do this on AIX 4.2 and lower, the check
15462         # below for broken collect2 doesn't work under 4.3+
15463           collect2name=`${CC} -print-prog-name=collect2`
15464           if test -f "$collect2name" && \
15465            strings "$collect2name" | grep resolve_lib_name >/dev/null
15466           then
15467           # We have reworked collect2
15468           hardcode_direct_F77=yes
15469           else
15470           # We have old collect2
15471           hardcode_direct_F77=unsupported
15472           # It fails to find uninstalled libraries when the uninstalled
15473           # path is not listed in the libpath.  Setting hardcode_minus_L
15474           # to unsupported forces relinking
15475           hardcode_minus_L_F77=yes
15476           hardcode_libdir_flag_spec_F77='-L$libdir'
15477           hardcode_libdir_separator_F77=
15478           fi
15479           ;;
15480         esac
15481         shared_flag='-shared'
15482         if test "$aix_use_runtimelinking" = yes; then
15483           shared_flag="$shared_flag "'${wl}-G'
15484         fi
15485       else
15486         # not using gcc
15487         if test "$host_cpu" = ia64; then
15488         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15489         # chokes on -Wl,-G. The following line is correct:
15490           shared_flag='-G'
15491         else
15492           if test "$aix_use_runtimelinking" = yes; then
15493             shared_flag='${wl}-G'
15494           else
15495             shared_flag='${wl}-bM:SRE'
15496           fi
15497         fi
15498       fi
15499
15500       # It seems that -bexpall does not export symbols beginning with
15501       # underscore (_), so it is better to generate a list of symbols to export.
15502       always_export_symbols_F77=yes
15503       if test "$aix_use_runtimelinking" = yes; then
15504         # Warning - without using the other runtime loading flags (-brtl),
15505         # -berok will link without error, but may produce a broken library.
15506         allow_undefined_flag_F77='-berok'
15507        # Determine the default libpath from the value encoded in an empty executable.
15508        cat >conftest.$ac_ext <<_ACEOF
15509       program main
15510
15511       end
15512 _ACEOF
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_link") 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } &&
15527          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15528   { (case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_try") 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); }; } &&
15537          { ac_try='test -s conftest$ac_exeext'
15538   { (case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543   (eval "$ac_try") 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; }; then
15547
15548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15549 }'`
15550 # Check for a 64-bit object if we didn't find anything.
15551 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; }
15552 }'`; fi
15553 else
15554   echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557
15558 fi
15559
15560 rm -f core conftest.err conftest.$ac_objext \
15561       conftest$ac_exeext conftest.$ac_ext
15562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15563
15564        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15565         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15566        else
15567         if test "$host_cpu" = ia64; then
15568           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15569           allow_undefined_flag_F77="-z nodefs"
15570           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15571         else
15572          # Determine the default libpath from the value encoded in an empty executable.
15573          cat >conftest.$ac_ext <<_ACEOF
15574       program main
15575
15576       end
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_link") 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } &&
15592          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15593   { (case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598   (eval "$ac_try") 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; } &&
15602          { ac_try='test -s conftest$ac_exeext'
15603   { (case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608   (eval "$ac_try") 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612
15613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15614 }'`
15615 # Check for a 64-bit object if we didn't find anything.
15616 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; }
15617 }'`; fi
15618 else
15619   echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622
15623 fi
15624
15625 rm -f core conftest.err conftest.$ac_objext \
15626       conftest$ac_exeext conftest.$ac_ext
15627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15628
15629          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15630           # Warning - without using the other run time loading flags,
15631           # -berok will link without error, but may produce a broken library.
15632           no_undefined_flag_F77=' ${wl}-bernotok'
15633           allow_undefined_flag_F77=' ${wl}-berok'
15634           # Exported symbols can be pulled into shared objects from archives
15635           whole_archive_flag_spec_F77='$convenience'
15636           archive_cmds_need_lc_F77=yes
15637           # This is similar to how AIX traditionally builds its shared libraries.
15638           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15639         fi
15640       fi
15641       ;;
15642
15643     amigaos*)
15644       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)'
15645       hardcode_libdir_flag_spec_F77='-L$libdir'
15646       hardcode_minus_L_F77=yes
15647       # see comment about different semantics on the GNU ld section
15648       ld_shlibs_F77=no
15649       ;;
15650
15651     bsdi[45]*)
15652       export_dynamic_flag_spec_F77=-rdynamic
15653       ;;
15654
15655     cygwin* | mingw* | pw32*)
15656       # When not using gcc, we currently assume that we are using
15657       # Microsoft Visual C++.
15658       # hardcode_libdir_flag_spec is actually meaningless, as there is
15659       # no search path for DLLs.
15660       hardcode_libdir_flag_spec_F77=' '
15661       allow_undefined_flag_F77=unsupported
15662       # Tell ltmain to make .lib files, not .a files.
15663       libext=lib
15664       # Tell ltmain to make .dll files, not .so files.
15665       shrext_cmds=".dll"
15666       # FIXME: Setting linknames here is a bad hack.
15667       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15668       # The linker will automatically build a .lib file if we build a DLL.
15669       old_archive_From_new_cmds_F77='true'
15670       # FIXME: Should let the user specify the lib program.
15671       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15672       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15673       enable_shared_with_static_runtimes_F77=yes
15674       ;;
15675
15676     darwin* | rhapsody*)
15677       case $host_os in
15678         rhapsody* | darwin1.[012])
15679          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15680          ;;
15681        *) # Darwin 1.3 on
15682          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15683            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15684          else
15685            case ${MACOSX_DEPLOYMENT_TARGET} in
15686              10.[012])
15687                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15688                ;;
15689              10.*)
15690                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15691                ;;
15692            esac
15693          fi
15694          ;;
15695       esac
15696       archive_cmds_need_lc_F77=no
15697       hardcode_direct_F77=no
15698       hardcode_automatic_F77=yes
15699       hardcode_shlibpath_var_F77=unsupported
15700       whole_archive_flag_spec_F77=''
15701       link_all_deplibs_F77=yes
15702     if test "$GCC" = yes ; then
15703         output_verbose_link_cmd='echo'
15704         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15705       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15706       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15707       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15708       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}'
15709     else
15710       case $cc_basename in
15711         xlc*)
15712          output_verbose_link_cmd='echo'
15713          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15714          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15715           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15716          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15717           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}'
15718           ;;
15719        *)
15720          ld_shlibs_F77=no
15721           ;;
15722       esac
15723     fi
15724       ;;
15725
15726     dgux*)
15727       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15728       hardcode_libdir_flag_spec_F77='-L$libdir'
15729       hardcode_shlibpath_var_F77=no
15730       ;;
15731
15732     freebsd1*)
15733       ld_shlibs_F77=no
15734       ;;
15735
15736     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15737     # support.  Future versions do this automatically, but an explicit c++rt0.o
15738     # does not break anything, and helps significantly (at the cost of a little
15739     # extra space).
15740     freebsd2.2*)
15741       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15742       hardcode_libdir_flag_spec_F77='-R$libdir'
15743       hardcode_direct_F77=yes
15744       hardcode_shlibpath_var_F77=no
15745       ;;
15746
15747     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15748     freebsd2*)
15749       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15750       hardcode_direct_F77=yes
15751       hardcode_minus_L_F77=yes
15752       hardcode_shlibpath_var_F77=no
15753       ;;
15754
15755     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15756     freebsd* | kfreebsd*-gnu | dragonfly*)
15757       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15758       hardcode_libdir_flag_spec_F77='-R$libdir'
15759       hardcode_direct_F77=yes
15760       hardcode_shlibpath_var_F77=no
15761       ;;
15762
15763     hpux9*)
15764       if test "$GCC" = yes; then
15765         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'
15766       else
15767         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'
15768       fi
15769       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15770       hardcode_libdir_separator_F77=:
15771       hardcode_direct_F77=yes
15772
15773       # hardcode_minus_L: Not really in the search PATH,
15774       # but as the default location of the library.
15775       hardcode_minus_L_F77=yes
15776       export_dynamic_flag_spec_F77='${wl}-E'
15777       ;;
15778
15779     hpux10*)
15780       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15781         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15782       else
15783         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15784       fi
15785       if test "$with_gnu_ld" = no; then
15786         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15787         hardcode_libdir_separator_F77=:
15788
15789         hardcode_direct_F77=yes
15790         export_dynamic_flag_spec_F77='${wl}-E'
15791
15792         # hardcode_minus_L: Not really in the search PATH,
15793         # but as the default location of the library.
15794         hardcode_minus_L_F77=yes
15795       fi
15796       ;;
15797
15798     hpux11*)
15799       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15800         case $host_cpu in
15801         hppa*64*)
15802           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803           ;;
15804         ia64*)
15805           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15806           ;;
15807         *)
15808           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15809           ;;
15810         esac
15811       else
15812         case $host_cpu in
15813         hppa*64*)
15814           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15815           ;;
15816         ia64*)
15817           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15818           ;;
15819         *)
15820           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15821           ;;
15822         esac
15823       fi
15824       if test "$with_gnu_ld" = no; then
15825         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15826         hardcode_libdir_separator_F77=:
15827
15828         case $host_cpu in
15829         hppa*64*|ia64*)
15830           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15831           hardcode_direct_F77=no
15832           hardcode_shlibpath_var_F77=no
15833           ;;
15834         *)
15835           hardcode_direct_F77=yes
15836           export_dynamic_flag_spec_F77='${wl}-E'
15837
15838           # hardcode_minus_L: Not really in the search PATH,
15839           # but as the default location of the library.
15840           hardcode_minus_L_F77=yes
15841           ;;
15842         esac
15843       fi
15844       ;;
15845
15846     irix5* | irix6* | nonstopux*)
15847       if test "$GCC" = yes; then
15848         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'
15849       else
15850         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'
15851         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15852       fi
15853       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15854       hardcode_libdir_separator_F77=:
15855       link_all_deplibs_F77=yes
15856       ;;
15857
15858     netbsd*)
15859       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15860         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15861       else
15862         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15863       fi
15864       hardcode_libdir_flag_spec_F77='-R$libdir'
15865       hardcode_direct_F77=yes
15866       hardcode_shlibpath_var_F77=no
15867       ;;
15868
15869     newsos6)
15870       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15871       hardcode_direct_F77=yes
15872       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15873       hardcode_libdir_separator_F77=:
15874       hardcode_shlibpath_var_F77=no
15875       ;;
15876
15877     openbsd*)
15878       hardcode_direct_F77=yes
15879       hardcode_shlibpath_var_F77=no
15880       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15881         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15882         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15883         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15884         export_dynamic_flag_spec_F77='${wl}-E'
15885       else
15886        case $host_os in
15887          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15888            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15889            hardcode_libdir_flag_spec_F77='-R$libdir'
15890            ;;
15891          *)
15892            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15893            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15894            ;;
15895        esac
15896       fi
15897       ;;
15898
15899     os2*)
15900       hardcode_libdir_flag_spec_F77='-L$libdir'
15901       hardcode_minus_L_F77=yes
15902       allow_undefined_flag_F77=unsupported
15903       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'
15904       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15905       ;;
15906
15907     osf3*)
15908       if test "$GCC" = yes; then
15909         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15910         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'
15911       else
15912         allow_undefined_flag_F77=' -expect_unresolved \*'
15913         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'
15914       fi
15915       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15916       hardcode_libdir_separator_F77=:
15917       ;;
15918
15919     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15920       if test "$GCC" = yes; then
15921         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15922         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'
15923         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15924       else
15925         allow_undefined_flag_F77=' -expect_unresolved \*'
15926         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'
15927         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~
15928         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15929
15930         # Both c and cxx compiler support -rpath directly
15931         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15932       fi
15933       hardcode_libdir_separator_F77=:
15934       ;;
15935
15936     solaris*)
15937       no_undefined_flag_F77=' -z text'
15938       if test "$GCC" = yes; then
15939         wlarc='${wl}'
15940         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15942           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15943       else
15944         wlarc=''
15945         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15947         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15948       fi
15949       hardcode_libdir_flag_spec_F77='-R$libdir'
15950       hardcode_shlibpath_var_F77=no
15951       case $host_os in
15952       solaris2.[0-5] | solaris2.[0-5].*) ;;
15953       *)
15954         # The compiler driver will combine linker options so we
15955         # cannot just pass the convience library names through
15956         # without $wl, iff we do not link with $LD.
15957         # Luckily, gcc supports the same syntax we need for Sun Studio.
15958         # Supported since Solaris 2.6 (maybe 2.5.1?)
15959         case $wlarc in
15960         '')
15961           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15962         *)
15963           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15964         esac ;;
15965       esac
15966       link_all_deplibs_F77=yes
15967       ;;
15968
15969     sunos4*)
15970       if test "x$host_vendor" = xsequent; then
15971         # Use $CC to link under sequent, because it throws in some extra .o
15972         # files that make .init and .fini sections work.
15973         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15974       else
15975         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15976       fi
15977       hardcode_libdir_flag_spec_F77='-L$libdir'
15978       hardcode_direct_F77=yes
15979       hardcode_minus_L_F77=yes
15980       hardcode_shlibpath_var_F77=no
15981       ;;
15982
15983     sysv4)
15984       case $host_vendor in
15985         sni)
15986           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15987           hardcode_direct_F77=yes # is this really true???
15988         ;;
15989         siemens)
15990           ## LD is ld it makes a PLAMLIB
15991           ## CC just makes a GrossModule.
15992           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15993           reload_cmds_F77='$CC -r -o $output$reload_objs'
15994           hardcode_direct_F77=no
15995         ;;
15996         motorola)
15997           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15999         ;;
16000       esac
16001       runpath_var='LD_RUN_PATH'
16002       hardcode_shlibpath_var_F77=no
16003       ;;
16004
16005     sysv4.3*)
16006       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16007       hardcode_shlibpath_var_F77=no
16008       export_dynamic_flag_spec_F77='-Bexport'
16009       ;;
16010
16011     sysv4*MP*)
16012       if test -d /usr/nec; then
16013         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16014         hardcode_shlibpath_var_F77=no
16015         runpath_var=LD_RUN_PATH
16016         hardcode_runpath_var=yes
16017         ld_shlibs_F77=yes
16018       fi
16019       ;;
16020
16021     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16022       no_undefined_flag_F77='${wl}-z,text'
16023       archive_cmds_need_lc_F77=no
16024       hardcode_shlibpath_var_F77=no
16025       runpath_var='LD_RUN_PATH'
16026
16027       if test "$GCC" = yes; then
16028         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16029         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16030       else
16031         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16032         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16033       fi
16034       ;;
16035
16036     sysv5* | sco3.2v5* | sco5v6*)
16037       # Note: We can NOT use -z defs as we might desire, because we do not
16038       # link with -lc, and that would cause any symbols used from libc to
16039       # always be unresolved, which means just about no library would
16040       # ever link correctly.  If we're not using GNU ld we use -z text
16041       # though, which does catch some bad symbols but isn't as heavy-handed
16042       # as -z defs.
16043       no_undefined_flag_F77='${wl}-z,text'
16044       allow_undefined_flag_F77='${wl}-z,nodefs'
16045       archive_cmds_need_lc_F77=no
16046       hardcode_shlibpath_var_F77=no
16047       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16048       hardcode_libdir_separator_F77=':'
16049       link_all_deplibs_F77=yes
16050       export_dynamic_flag_spec_F77='${wl}-Bexport'
16051       runpath_var='LD_RUN_PATH'
16052
16053       if test "$GCC" = yes; then
16054         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16055         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056       else
16057         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16058         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16059       fi
16060       ;;
16061
16062     uts4*)
16063       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064       hardcode_libdir_flag_spec_F77='-L$libdir'
16065       hardcode_shlibpath_var_F77=no
16066       ;;
16067
16068     *)
16069       ld_shlibs_F77=no
16070       ;;
16071     esac
16072   fi
16073
16074 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16075 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16076 test "$ld_shlibs_F77" = no && can_build_shared=no
16077
16078 #
16079 # Do we need to explicitly link libc?
16080 #
16081 case "x$archive_cmds_need_lc_F77" in
16082 x|xyes)
16083   # Assume -lc should be added
16084   archive_cmds_need_lc_F77=yes
16085
16086   if test "$enable_shared" = yes && test "$GCC" = yes; then
16087     case $archive_cmds_F77 in
16088     *'~'*)
16089       # FIXME: we may have to deal with multi-command sequences.
16090       ;;
16091     '$CC '*)
16092       # Test whether the compiler implicitly links with -lc since on some
16093       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16094       # to ld, don't add -lc before -lgcc.
16095       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16096 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16097       $rm conftest*
16098       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16099
16100       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16101   (eval $ac_compile) 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } 2>conftest.err; then
16105         soname=conftest
16106         lib=conftest
16107         libobjs=conftest.$ac_objext
16108         deplibs=
16109         wl=$lt_prog_compiler_wl_F77
16110         pic_flag=$lt_prog_compiler_pic_F77
16111         compiler_flags=-v
16112         linker_flags=-v
16113         verstring=
16114         output_objdir=.
16115         libname=conftest
16116         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16117         allow_undefined_flag_F77=
16118         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16119   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); }
16123         then
16124           archive_cmds_need_lc_F77=no
16125         else
16126           archive_cmds_need_lc_F77=yes
16127         fi
16128         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16129       else
16130         cat conftest.err 1>&5
16131       fi
16132       $rm conftest*
16133       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16134 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16135       ;;
16136     esac
16137   fi
16138   ;;
16139 esac
16140
16141 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16142 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16143 library_names_spec=
16144 libname_spec='lib$name'
16145 soname_spec=
16146 shrext_cmds=".so"
16147 postinstall_cmds=
16148 postuninstall_cmds=
16149 finish_cmds=
16150 finish_eval=
16151 shlibpath_var=
16152 shlibpath_overrides_runpath=unknown
16153 version_type=none
16154 dynamic_linker="$host_os ld.so"
16155 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16156 if test "$GCC" = yes; then
16157   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16158   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16159     # if the path contains ";" then we assume it to be the separator
16160     # otherwise default to the standard path separator (i.e. ":") - it is
16161     # assumed that no part of a normal pathname contains ";" but that should
16162     # okay in the real world where ";" in dirpaths is itself problematic.
16163     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16164   else
16165     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16166   fi
16167 else
16168   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16169 fi
16170 need_lib_prefix=unknown
16171 hardcode_into_libs=no
16172
16173 # when you set need_version to no, make sure it does not cause -set_version
16174 # flags to be left without arguments
16175 need_version=unknown
16176
16177 case $host_os in
16178 aix3*)
16179   version_type=linux
16180   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16181   shlibpath_var=LIBPATH
16182
16183   # AIX 3 has no versioning support, so we append a major version to the name.
16184   soname_spec='${libname}${release}${shared_ext}$major'
16185   ;;
16186
16187 aix4* | aix5*)
16188   version_type=linux
16189   need_lib_prefix=no
16190   need_version=no
16191   hardcode_into_libs=yes
16192   if test "$host_cpu" = ia64; then
16193     # AIX 5 supports IA64
16194     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16195     shlibpath_var=LD_LIBRARY_PATH
16196   else
16197     # With GCC up to 2.95.x, collect2 would create an import file
16198     # for dependence libraries.  The import file would start with
16199     # the line `#! .'.  This would cause the generated library to
16200     # depend on `.', always an invalid library.  This was fixed in
16201     # development snapshots of GCC prior to 3.0.
16202     case $host_os in
16203       aix4 | aix4.[01] | aix4.[01].*)
16204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16205            echo ' yes '
16206            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16207         :
16208       else
16209         can_build_shared=no
16210       fi
16211       ;;
16212     esac
16213     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16214     # soname into executable. Probably we can add versioning support to
16215     # collect2, so additional links can be useful in future.
16216     if test "$aix_use_runtimelinking" = yes; then
16217       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16218       # instead of lib<name>.a to let people know that these are not
16219       # typical AIX shared libraries.
16220       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221     else
16222       # We preserve .a as extension for shared libraries through AIX4.2
16223       # and later when we are not doing run time linking.
16224       library_names_spec='${libname}${release}.a $libname.a'
16225       soname_spec='${libname}${release}${shared_ext}$major'
16226     fi
16227     shlibpath_var=LIBPATH
16228   fi
16229   ;;
16230
16231 amigaos*)
16232   library_names_spec='$libname.ixlibrary $libname.a'
16233   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16234   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'
16235   ;;
16236
16237 beos*)
16238   library_names_spec='${libname}${shared_ext}'
16239   dynamic_linker="$host_os ld.so"
16240   shlibpath_var=LIBRARY_PATH
16241   ;;
16242
16243 bsdi[45]*)
16244   version_type=linux
16245   need_version=no
16246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247   soname_spec='${libname}${release}${shared_ext}$major'
16248   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16249   shlibpath_var=LD_LIBRARY_PATH
16250   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16251   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16252   # the default ld.so.conf also contains /usr/contrib/lib and
16253   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16254   # libtool to hard-code these into programs
16255   ;;
16256
16257 cygwin* | mingw* | pw32*)
16258   version_type=windows
16259   shrext_cmds=".dll"
16260   need_version=no
16261   need_lib_prefix=no
16262
16263   case $GCC,$host_os in
16264   yes,cygwin* | yes,mingw* | yes,pw32*)
16265     library_names_spec='$libname.dll.a'
16266     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16267     postinstall_cmds='base_file=`basename \${file}`~
16268       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16269       dldir=$destdir/`dirname \$dlpath`~
16270       test -d \$dldir || mkdir -p \$dldir~
16271       $install_prog $dir/$dlname \$dldir/$dlname~
16272       chmod a+x \$dldir/$dlname'
16273     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16274       dlpath=$dir/\$dldll~
16275        $rm \$dlpath'
16276     shlibpath_overrides_runpath=yes
16277
16278     case $host_os in
16279     cygwin*)
16280       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16281       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16282       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16283       ;;
16284     mingw*)
16285       # MinGW DLLs use traditional 'lib' prefix
16286       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16287       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16288       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16289         # It is most probably a Windows format PATH printed by
16290         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16291         # path with ; separators, and with drive letters. We can handle the
16292         # drive letters (cygwin fileutils understands them), so leave them,
16293         # especially as we might pass files found there to a mingw objdump,
16294         # which wouldn't understand a cygwinified path. Ahh.
16295         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16296       else
16297         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16298       fi
16299       ;;
16300     pw32*)
16301       # pw32 DLLs use 'pw' prefix rather than 'lib'
16302       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16303       ;;
16304     esac
16305     ;;
16306
16307   *)
16308     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16309     ;;
16310   esac
16311   dynamic_linker='Win32 ld.exe'
16312   # FIXME: first we should search . and the directory the executable is in
16313   shlibpath_var=PATH
16314   ;;
16315
16316 darwin* | rhapsody*)
16317   dynamic_linker="$host_os dyld"
16318   version_type=darwin
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16322   soname_spec='${libname}${release}${major}$shared_ext'
16323   shlibpath_overrides_runpath=yes
16324   shlibpath_var=DYLD_LIBRARY_PATH
16325   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16326   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16327   if test "$GCC" = yes; then
16328     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"`
16329   else
16330     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16331   fi
16332   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16333   ;;
16334
16335 dgux*)
16336   version_type=linux
16337   need_lib_prefix=no
16338   need_version=no
16339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16340   soname_spec='${libname}${release}${shared_ext}$major'
16341   shlibpath_var=LD_LIBRARY_PATH
16342   ;;
16343
16344 freebsd1*)
16345   dynamic_linker=no
16346   ;;
16347
16348 kfreebsd*-gnu)
16349   version_type=linux
16350   need_lib_prefix=no
16351   need_version=no
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16353   soname_spec='${libname}${release}${shared_ext}$major'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   shlibpath_overrides_runpath=no
16356   hardcode_into_libs=yes
16357   dynamic_linker='GNU ld.so'
16358   ;;
16359
16360 freebsd* | dragonfly*)
16361   # DragonFly does not have aout.  When/if they implement a new
16362   # versioning mechanism, adjust this.
16363   if test -x /usr/bin/objformat; then
16364     objformat=`/usr/bin/objformat`
16365   else
16366     case $host_os in
16367     freebsd[123]*) objformat=aout ;;
16368     *) objformat=elf ;;
16369     esac
16370   fi
16371   version_type=freebsd-$objformat
16372   case $version_type in
16373     freebsd-elf*)
16374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16375       need_version=no
16376       need_lib_prefix=no
16377       ;;
16378     freebsd-*)
16379       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16380       need_version=yes
16381       ;;
16382   esac
16383   shlibpath_var=LD_LIBRARY_PATH
16384   case $host_os in
16385   freebsd2*)
16386     shlibpath_overrides_runpath=yes
16387     ;;
16388   freebsd3.[01]* | freebsdelf3.[01]*)
16389     shlibpath_overrides_runpath=yes
16390     hardcode_into_libs=yes
16391     ;;
16392   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16393   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16394     shlibpath_overrides_runpath=no
16395     hardcode_into_libs=yes
16396     ;;
16397   freebsd*) # from 4.6 on
16398     shlibpath_overrides_runpath=yes
16399     hardcode_into_libs=yes
16400     ;;
16401   esac
16402   ;;
16403
16404 gnu*)
16405   version_type=linux
16406   need_lib_prefix=no
16407   need_version=no
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16409   soname_spec='${libname}${release}${shared_ext}$major'
16410   shlibpath_var=LD_LIBRARY_PATH
16411   hardcode_into_libs=yes
16412   ;;
16413
16414 hpux9* | hpux10* | hpux11*)
16415   # Give a soname corresponding to the major version so that dld.sl refuses to
16416   # link against other versions.
16417   version_type=sunos
16418   need_lib_prefix=no
16419   need_version=no
16420   case $host_cpu in
16421   ia64*)
16422     shrext_cmds='.so'
16423     hardcode_into_libs=yes
16424     dynamic_linker="$host_os dld.so"
16425     shlibpath_var=LD_LIBRARY_PATH
16426     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428     soname_spec='${libname}${release}${shared_ext}$major'
16429     if test "X$HPUX_IA64_MODE" = X32; then
16430       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16431     else
16432       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16433     fi
16434     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16435     ;;
16436    hppa*64*)
16437      shrext_cmds='.sl'
16438      hardcode_into_libs=yes
16439      dynamic_linker="$host_os dld.sl"
16440      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16441      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16442      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443      soname_spec='${libname}${release}${shared_ext}$major'
16444      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16445      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16446      ;;
16447    *)
16448     shrext_cmds='.sl'
16449     dynamic_linker="$host_os dld.sl"
16450     shlibpath_var=SHLIB_PATH
16451     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16453     soname_spec='${libname}${release}${shared_ext}$major'
16454     ;;
16455   esac
16456   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16457   postinstall_cmds='chmod 555 $lib'
16458   ;;
16459
16460 interix3*)
16461   version_type=linux
16462   need_lib_prefix=no
16463   need_version=no
16464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16465   soname_spec='${libname}${release}${shared_ext}$major'
16466   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16467   shlibpath_var=LD_LIBRARY_PATH
16468   shlibpath_overrides_runpath=no
16469   hardcode_into_libs=yes
16470   ;;
16471
16472 irix5* | irix6* | nonstopux*)
16473   case $host_os in
16474     nonstopux*) version_type=nonstopux ;;
16475     *)
16476         if test "$lt_cv_prog_gnu_ld" = yes; then
16477                 version_type=linux
16478         else
16479                 version_type=irix
16480         fi ;;
16481   esac
16482   need_lib_prefix=no
16483   need_version=no
16484   soname_spec='${libname}${release}${shared_ext}$major'
16485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16486   case $host_os in
16487   irix5* | nonstopux*)
16488     libsuff= shlibsuff=
16489     ;;
16490   *)
16491     case $LD in # libtool.m4 will add one of these switches to LD
16492     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16493       libsuff= shlibsuff= libmagic=32-bit;;
16494     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16495       libsuff=32 shlibsuff=N32 libmagic=N32;;
16496     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16497       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16498     *) libsuff= shlibsuff= libmagic=never-match;;
16499     esac
16500     ;;
16501   esac
16502   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16503   shlibpath_overrides_runpath=no
16504   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16505   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16506   hardcode_into_libs=yes
16507   ;;
16508
16509 # No shared lib support for Linux oldld, aout, or coff.
16510 linux*oldld* | linux*aout* | linux*coff*)
16511   dynamic_linker=no
16512   ;;
16513
16514 # This must be Linux ELF.
16515 linux*)
16516   version_type=linux
16517   need_lib_prefix=no
16518   need_version=no
16519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520   soname_spec='${libname}${release}${shared_ext}$major'
16521   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16522   shlibpath_var=LD_LIBRARY_PATH
16523   shlibpath_overrides_runpath=no
16524   # This implies no fast_install, which is unacceptable.
16525   # Some rework will be needed to allow for fast_install
16526   # before this can be enabled.
16527   hardcode_into_libs=yes
16528
16529   # find out which ABI we are using
16530   libsuff=
16531   case "$host_cpu" in
16532   x86_64*|s390x*|powerpc64*)
16533     echo '#line 16533 "configure"' > conftest.$ac_ext
16534     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16535   (eval $ac_compile) 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; then
16539       case `/usr/bin/file conftest.$ac_objext` in
16540       *64-bit*)
16541         libsuff=64
16542         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16543         ;;
16544       esac
16545     fi
16546     rm -rf conftest*
16547     ;;
16548   esac
16549
16550   # Append ld.so.conf contents to the search path
16551   if test -f /etc/ld.so.conf; then
16552     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16553     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16554   fi
16555
16556   # We used to test for /lib/ld.so.1 and disable shared libraries on
16557   # powerpc, because MkLinux only supported shared libraries with the
16558   # GNU dynamic linker.  Since this was broken with cross compilers,
16559   # most powerpc-linux boxes support dynamic linking these days and
16560   # people can always --disable-shared, the test was removed, and we
16561   # assume the GNU/Linux dynamic linker is in use.
16562   dynamic_linker='GNU/Linux ld.so'
16563   ;;
16564
16565 knetbsd*-gnu)
16566   version_type=linux
16567   need_lib_prefix=no
16568   need_version=no
16569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16570   soname_spec='${libname}${release}${shared_ext}$major'
16571   shlibpath_var=LD_LIBRARY_PATH
16572   shlibpath_overrides_runpath=no
16573   hardcode_into_libs=yes
16574   dynamic_linker='GNU ld.so'
16575   ;;
16576
16577 netbsd*)
16578   version_type=sunos
16579   need_lib_prefix=no
16580   need_version=no
16581   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16584     dynamic_linker='NetBSD (a.out) ld.so'
16585   else
16586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16587     soname_spec='${libname}${release}${shared_ext}$major'
16588     dynamic_linker='NetBSD ld.elf_so'
16589   fi
16590   shlibpath_var=LD_LIBRARY_PATH
16591   shlibpath_overrides_runpath=yes
16592   hardcode_into_libs=yes
16593   ;;
16594
16595 newsos6)
16596   version_type=linux
16597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598   shlibpath_var=LD_LIBRARY_PATH
16599   shlibpath_overrides_runpath=yes
16600   ;;
16601
16602 nto-qnx*)
16603   version_type=linux
16604   need_lib_prefix=no
16605   need_version=no
16606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607   soname_spec='${libname}${release}${shared_ext}$major'
16608   shlibpath_var=LD_LIBRARY_PATH
16609   shlibpath_overrides_runpath=yes
16610   ;;
16611
16612 openbsd*)
16613   version_type=sunos
16614   sys_lib_dlsearch_path_spec="/usr/lib"
16615   need_lib_prefix=no
16616   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16617   case $host_os in
16618     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16619     *)                         need_version=no  ;;
16620   esac
16621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16622   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16623   shlibpath_var=LD_LIBRARY_PATH
16624   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16625     case $host_os in
16626       openbsd2.[89] | openbsd2.[89].*)
16627         shlibpath_overrides_runpath=no
16628         ;;
16629       *)
16630         shlibpath_overrides_runpath=yes
16631         ;;
16632       esac
16633   else
16634     shlibpath_overrides_runpath=yes
16635   fi
16636   ;;
16637
16638 os2*)
16639   libname_spec='$name'
16640   shrext_cmds=".dll"
16641   need_lib_prefix=no
16642   library_names_spec='$libname${shared_ext} $libname.a'
16643   dynamic_linker='OS/2 ld.exe'
16644   shlibpath_var=LIBPATH
16645   ;;
16646
16647 osf3* | osf4* | osf5*)
16648   version_type=osf
16649   need_lib_prefix=no
16650   need_version=no
16651   soname_spec='${libname}${release}${shared_ext}$major'
16652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653   shlibpath_var=LD_LIBRARY_PATH
16654   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16655   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16656   ;;
16657
16658 solaris*)
16659   version_type=linux
16660   need_lib_prefix=no
16661   need_version=no
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663   soname_spec='${libname}${release}${shared_ext}$major'
16664   shlibpath_var=LD_LIBRARY_PATH
16665   shlibpath_overrides_runpath=yes
16666   hardcode_into_libs=yes
16667   # ldd complains unless libraries are executable
16668   postinstall_cmds='chmod +x $lib'
16669   ;;
16670
16671 sunos4*)
16672   version_type=sunos
16673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16674   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16675   shlibpath_var=LD_LIBRARY_PATH
16676   shlibpath_overrides_runpath=yes
16677   if test "$with_gnu_ld" = yes; then
16678     need_lib_prefix=no
16679   fi
16680   need_version=yes
16681   ;;
16682
16683 sysv4 | sysv4.3*)
16684   version_type=linux
16685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686   soname_spec='${libname}${release}${shared_ext}$major'
16687   shlibpath_var=LD_LIBRARY_PATH
16688   case $host_vendor in
16689     sni)
16690       shlibpath_overrides_runpath=no
16691       need_lib_prefix=no
16692       export_dynamic_flag_spec='${wl}-Blargedynsym'
16693       runpath_var=LD_RUN_PATH
16694       ;;
16695     siemens)
16696       need_lib_prefix=no
16697       ;;
16698     motorola)
16699       need_lib_prefix=no
16700       need_version=no
16701       shlibpath_overrides_runpath=no
16702       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16703       ;;
16704   esac
16705   ;;
16706
16707 sysv4*MP*)
16708   if test -d /usr/nec ;then
16709     version_type=linux
16710     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16711     soname_spec='$libname${shared_ext}.$major'
16712     shlibpath_var=LD_LIBRARY_PATH
16713   fi
16714   ;;
16715
16716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16717   version_type=freebsd-elf
16718   need_lib_prefix=no
16719   need_version=no
16720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16721   soname_spec='${libname}${release}${shared_ext}$major'
16722   shlibpath_var=LD_LIBRARY_PATH
16723   hardcode_into_libs=yes
16724   if test "$with_gnu_ld" = yes; then
16725     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16726     shlibpath_overrides_runpath=no
16727   else
16728     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16729     shlibpath_overrides_runpath=yes
16730     case $host_os in
16731       sco3.2v5*)
16732         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16733         ;;
16734     esac
16735   fi
16736   sys_lib_dlsearch_path_spec='/usr/lib'
16737   ;;
16738
16739 uts4*)
16740   version_type=linux
16741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742   soname_spec='${libname}${release}${shared_ext}$major'
16743   shlibpath_var=LD_LIBRARY_PATH
16744   ;;
16745
16746 *)
16747   dynamic_linker=no
16748   ;;
16749 esac
16750 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16751 echo "${ECHO_T}$dynamic_linker" >&6; }
16752 test "$dynamic_linker" = no && can_build_shared=no
16753
16754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16755 if test "$GCC" = yes; then
16756   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16757 fi
16758
16759 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16760 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16761 hardcode_action_F77=
16762 if test -n "$hardcode_libdir_flag_spec_F77" || \
16763    test -n "$runpath_var_F77" || \
16764    test "X$hardcode_automatic_F77" = "Xyes" ; then
16765
16766   # We can hardcode non-existant directories.
16767   if test "$hardcode_direct_F77" != no &&
16768      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16769      # have to relink, otherwise we might link with an installed library
16770      # when we should be linking with a yet-to-be-installed one
16771      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16772      test "$hardcode_minus_L_F77" != no; then
16773     # Linking always hardcodes the temporary library directory.
16774     hardcode_action_F77=relink
16775   else
16776     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16777     hardcode_action_F77=immediate
16778   fi
16779 else
16780   # We cannot hardcode anything, or else we can only hardcode existing
16781   # directories.
16782   hardcode_action_F77=unsupported
16783 fi
16784 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16785 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16786
16787 if test "$hardcode_action_F77" = relink; then
16788   # Fast installation is not supported
16789   enable_fast_install=no
16790 elif test "$shlibpath_overrides_runpath" = yes ||
16791      test "$enable_shared" = no; then
16792   # Fast installation is not necessary
16793   enable_fast_install=needless
16794 fi
16795
16796
16797 # The else clause should only fire when bootstrapping the
16798 # libtool distribution, otherwise you forgot to ship ltmain.sh
16799 # with your package, and you will get complaints that there are
16800 # no rules to generate ltmain.sh.
16801 if test -f "$ltmain"; then
16802   # See if we are running on zsh, and set the options which allow our commands through
16803   # without removal of \ escapes.
16804   if test -n "${ZSH_VERSION+set}" ; then
16805     setopt NO_GLOB_SUBST
16806   fi
16807   # Now quote all the things that may contain metacharacters while being
16808   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16809   # variables and quote the copies for generation of the libtool script.
16810   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16811     SED SHELL STRIP \
16812     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16813     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16814     deplibs_check_method reload_flag reload_cmds need_locks \
16815     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16816     lt_cv_sys_global_symbol_to_c_name_address \
16817     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16818     old_postinstall_cmds old_postuninstall_cmds \
16819     compiler_F77 \
16820     CC_F77 \
16821     LD_F77 \
16822     lt_prog_compiler_wl_F77 \
16823     lt_prog_compiler_pic_F77 \
16824     lt_prog_compiler_static_F77 \
16825     lt_prog_compiler_no_builtin_flag_F77 \
16826     export_dynamic_flag_spec_F77 \
16827     thread_safe_flag_spec_F77 \
16828     whole_archive_flag_spec_F77 \
16829     enable_shared_with_static_runtimes_F77 \
16830     old_archive_cmds_F77 \
16831     old_archive_from_new_cmds_F77 \
16832     predep_objects_F77 \
16833     postdep_objects_F77 \
16834     predeps_F77 \
16835     postdeps_F77 \
16836     compiler_lib_search_path_F77 \
16837     archive_cmds_F77 \
16838     archive_expsym_cmds_F77 \
16839     postinstall_cmds_F77 \
16840     postuninstall_cmds_F77 \
16841     old_archive_from_expsyms_cmds_F77 \
16842     allow_undefined_flag_F77 \
16843     no_undefined_flag_F77 \
16844     export_symbols_cmds_F77 \
16845     hardcode_libdir_flag_spec_F77 \
16846     hardcode_libdir_flag_spec_ld_F77 \
16847     hardcode_libdir_separator_F77 \
16848     hardcode_automatic_F77 \
16849     module_cmds_F77 \
16850     module_expsym_cmds_F77 \
16851     lt_cv_prog_compiler_c_o_F77 \
16852     exclude_expsyms_F77 \
16853     include_expsyms_F77; do
16854
16855     case $var in
16856     old_archive_cmds_F77 | \
16857     old_archive_from_new_cmds_F77 | \
16858     archive_cmds_F77 | \
16859     archive_expsym_cmds_F77 | \
16860     module_cmds_F77 | \
16861     module_expsym_cmds_F77 | \
16862     old_archive_from_expsyms_cmds_F77 | \
16863     export_symbols_cmds_F77 | \
16864     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16865     postinstall_cmds | postuninstall_cmds | \
16866     old_postinstall_cmds | old_postuninstall_cmds | \
16867     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16868       # Double-quote double-evaled strings.
16869       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16870       ;;
16871     *)
16872       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16873       ;;
16874     esac
16875   done
16876
16877   case $lt_echo in
16878   *'\$0 --fallback-echo"')
16879     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16880     ;;
16881   esac
16882
16883 cfgfile="$ofile"
16884
16885   cat <<__EOF__ >> "$cfgfile"
16886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16887
16888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16889
16890 # Shell to use when invoking shell scripts.
16891 SHELL=$lt_SHELL
16892
16893 # Whether or not to build shared libraries.
16894 build_libtool_libs=$enable_shared
16895
16896 # Whether or not to build static libraries.
16897 build_old_libs=$enable_static
16898
16899 # Whether or not to add -lc for building shared libraries.
16900 build_libtool_need_lc=$archive_cmds_need_lc_F77
16901
16902 # Whether or not to disallow shared libs when runtime libs are static
16903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16904
16905 # Whether or not to optimize for fast installation.
16906 fast_install=$enable_fast_install
16907
16908 # The host system.
16909 host_alias=$host_alias
16910 host=$host
16911 host_os=$host_os
16912
16913 # The build system.
16914 build_alias=$build_alias
16915 build=$build
16916 build_os=$build_os
16917
16918 # An echo program that does not interpret backslashes.
16919 echo=$lt_echo
16920
16921 # The archiver.
16922 AR=$lt_AR
16923 AR_FLAGS=$lt_AR_FLAGS
16924
16925 # A C compiler.
16926 LTCC=$lt_LTCC
16927
16928 # LTCC compiler flags.
16929 LTCFLAGS=$lt_LTCFLAGS
16930
16931 # A language-specific compiler.
16932 CC=$lt_compiler_F77
16933
16934 # Is the compiler the GNU C compiler?
16935 with_gcc=$GCC_F77
16936
16937 # An ERE matcher.
16938 EGREP=$lt_EGREP
16939
16940 # The linker used to build libraries.
16941 LD=$lt_LD_F77
16942
16943 # Whether we need hard or soft links.
16944 LN_S=$lt_LN_S
16945
16946 # A BSD-compatible nm program.
16947 NM=$lt_NM
16948
16949 # A symbol stripping program
16950 STRIP=$lt_STRIP
16951
16952 # Used to examine libraries when file_magic_cmd begins "file"
16953 MAGIC_CMD=$MAGIC_CMD
16954
16955 # Used on cygwin: DLL creation program.
16956 DLLTOOL="$DLLTOOL"
16957
16958 # Used on cygwin: object dumper.
16959 OBJDUMP="$OBJDUMP"
16960
16961 # Used on cygwin: assembler.
16962 AS="$AS"
16963
16964 # The name of the directory that contains temporary libtool files.
16965 objdir=$objdir
16966
16967 # How to create reloadable object files.
16968 reload_flag=$lt_reload_flag
16969 reload_cmds=$lt_reload_cmds
16970
16971 # How to pass a linker flag through the compiler.
16972 wl=$lt_lt_prog_compiler_wl_F77
16973
16974 # Object file suffix (normally "o").
16975 objext="$ac_objext"
16976
16977 # Old archive suffix (normally "a").
16978 libext="$libext"
16979
16980 # Shared library suffix (normally ".so").
16981 shrext_cmds='$shrext_cmds'
16982
16983 # Executable file suffix (normally "").
16984 exeext="$exeext"
16985
16986 # Additional compiler flags for building library objects.
16987 pic_flag=$lt_lt_prog_compiler_pic_F77
16988 pic_mode=$pic_mode
16989
16990 # What is the maximum length of a command?
16991 max_cmd_len=$lt_cv_sys_max_cmd_len
16992
16993 # Does compiler simultaneously support -c and -o options?
16994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16995
16996 # Must we lock files when doing compilation?
16997 need_locks=$lt_need_locks
16998
16999 # Do we need the lib prefix for modules?
17000 need_lib_prefix=$need_lib_prefix
17001
17002 # Do we need a version for libraries?
17003 need_version=$need_version
17004
17005 # Whether dlopen is supported.
17006 dlopen_support=$enable_dlopen
17007
17008 # Whether dlopen of programs is supported.
17009 dlopen_self=$enable_dlopen_self
17010
17011 # Whether dlopen of statically linked programs is supported.
17012 dlopen_self_static=$enable_dlopen_self_static
17013
17014 # Compiler flag to prevent dynamic linking.
17015 link_static_flag=$lt_lt_prog_compiler_static_F77
17016
17017 # Compiler flag to turn off builtin functions.
17018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17019
17020 # Compiler flag to allow reflexive dlopens.
17021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17022
17023 # Compiler flag to generate shared objects directly from archives.
17024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17025
17026 # Compiler flag to generate thread-safe objects.
17027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17028
17029 # Library versioning type.
17030 version_type=$version_type
17031
17032 # Format of library name prefix.
17033 libname_spec=$lt_libname_spec
17034
17035 # List of archive names.  First name is the real one, the rest are links.
17036 # The last name is the one that the linker finds with -lNAME.
17037 library_names_spec=$lt_library_names_spec
17038
17039 # The coded name of the library, if different from the real name.
17040 soname_spec=$lt_soname_spec
17041
17042 # Commands used to build and install an old-style archive.
17043 RANLIB=$lt_RANLIB
17044 old_archive_cmds=$lt_old_archive_cmds_F77
17045 old_postinstall_cmds=$lt_old_postinstall_cmds
17046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17047
17048 # Create an old-style archive from a shared archive.
17049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17050
17051 # Create a temporary old-style archive to link instead of a shared archive.
17052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17053
17054 # Commands used to build and install a shared archive.
17055 archive_cmds=$lt_archive_cmds_F77
17056 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17057 postinstall_cmds=$lt_postinstall_cmds
17058 postuninstall_cmds=$lt_postuninstall_cmds
17059
17060 # Commands used to build a loadable module (assumed same as above if empty)
17061 module_cmds=$lt_module_cmds_F77
17062 module_expsym_cmds=$lt_module_expsym_cmds_F77
17063
17064 # Commands to strip libraries.
17065 old_striplib=$lt_old_striplib
17066 striplib=$lt_striplib
17067
17068 # Dependencies to place before the objects being linked to create a
17069 # shared library.
17070 predep_objects=$lt_predep_objects_F77
17071
17072 # Dependencies to place after the objects being linked to create a
17073 # shared library.
17074 postdep_objects=$lt_postdep_objects_F77
17075
17076 # Dependencies to place before the objects being linked to create a
17077 # shared library.
17078 predeps=$lt_predeps_F77
17079
17080 # Dependencies to place after the objects being linked to create a
17081 # shared library.
17082 postdeps=$lt_postdeps_F77
17083
17084 # The library search path used internally by the compiler when linking
17085 # a shared library.
17086 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17087
17088 # Method to check whether dependent libraries are shared objects.
17089 deplibs_check_method=$lt_deplibs_check_method
17090
17091 # Command to use when deplibs_check_method == file_magic.
17092 file_magic_cmd=$lt_file_magic_cmd
17093
17094 # Flag that allows shared libraries with undefined symbols to be built.
17095 allow_undefined_flag=$lt_allow_undefined_flag_F77
17096
17097 # Flag that forces no undefined symbols.
17098 no_undefined_flag=$lt_no_undefined_flag_F77
17099
17100 # Commands used to finish a libtool library installation in a directory.
17101 finish_cmds=$lt_finish_cmds
17102
17103 # Same as above, but a single script fragment to be evaled but not shown.
17104 finish_eval=$lt_finish_eval
17105
17106 # Take the output of nm and produce a listing of raw symbols and C names.
17107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17108
17109 # Transform the output of nm in a proper C declaration
17110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17111
17112 # Transform the output of nm in a C name address pair
17113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17114
17115 # This is the shared library runtime path variable.
17116 runpath_var=$runpath_var
17117
17118 # This is the shared library path variable.
17119 shlibpath_var=$shlibpath_var
17120
17121 # Is shlibpath searched before the hard-coded library search path?
17122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17123
17124 # How to hardcode a shared library path into an executable.
17125 hardcode_action=$hardcode_action_F77
17126
17127 # Whether we should hardcode library paths into libraries.
17128 hardcode_into_libs=$hardcode_into_libs
17129
17130 # Flag to hardcode \$libdir into a binary during linking.
17131 # This must work even if \$libdir does not exist.
17132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17133
17134 # If ld is used when linking, flag to hardcode \$libdir into
17135 # a binary during linking. This must work even if \$libdir does
17136 # not exist.
17137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17138
17139 # Whether we need a single -rpath flag with a separated argument.
17140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17141
17142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17143 # resulting binary.
17144 hardcode_direct=$hardcode_direct_F77
17145
17146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17147 # resulting binary.
17148 hardcode_minus_L=$hardcode_minus_L_F77
17149
17150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17151 # the resulting binary.
17152 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17153
17154 # Set to yes if building a shared library automatically hardcodes DIR into the library
17155 # and all subsequent libraries and executables linked against it.
17156 hardcode_automatic=$hardcode_automatic_F77
17157
17158 # Variables whose values should be saved in libtool wrapper scripts and
17159 # restored at relink time.
17160 variables_saved_for_relink="$variables_saved_for_relink"
17161
17162 # Whether libtool must link a program against all its dependency libraries.
17163 link_all_deplibs=$link_all_deplibs_F77
17164
17165 # Compile-time system search path for libraries
17166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17167
17168 # Run-time system search path for libraries
17169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17170
17171 # Fix the shell variable \$srcfile for the compiler.
17172 fix_srcfile_path="$fix_srcfile_path_F77"
17173
17174 # Set to yes if exported symbols are required.
17175 always_export_symbols=$always_export_symbols_F77
17176
17177 # The commands to list exported symbols.
17178 export_symbols_cmds=$lt_export_symbols_cmds_F77
17179
17180 # The commands to extract the exported symbol list from a shared archive.
17181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17182
17183 # Symbols that should not be listed in the preloaded symbols.
17184 exclude_expsyms=$lt_exclude_expsyms_F77
17185
17186 # Symbols that must always be exported.
17187 include_expsyms=$lt_include_expsyms_F77
17188
17189 # ### END LIBTOOL TAG CONFIG: $tagname
17190
17191 __EOF__
17192
17193
17194 else
17195   # If there is no Makefile yet, we rely on a make rule to execute
17196   # `config.status --recheck' to rerun these tests and create the
17197   # libtool script then.
17198   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17199   if test -f "$ltmain_in"; then
17200     test -f Makefile && make "$ltmain"
17201   fi
17202 fi
17203
17204
17205 ac_ext=c
17206 ac_cpp='$CPP $CPPFLAGS'
17207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17210
17211 CC="$lt_save_CC"
17212
17213         else
17214           tagname=""
17215         fi
17216         ;;
17217
17218       GCJ)
17219         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17220
17221
17222 # Source file extension for Java test sources.
17223 ac_ext=java
17224
17225 # Object file extension for compiled Java test sources.
17226 objext=o
17227 objext_GCJ=$objext
17228
17229 # Code to be used in simple compile tests
17230 lt_simple_compile_test_code="class foo {}\n"
17231
17232 # Code to be used in simple link tests
17233 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17234
17235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17236
17237 # If no C compiler was specified, use CC.
17238 LTCC=${LTCC-"$CC"}
17239
17240 # If no C compiler flags were specified, use CFLAGS.
17241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17242
17243 # Allow CC to be a program name with arguments.
17244 compiler=$CC
17245
17246
17247 # save warnings/boilerplate of simple test code
17248 ac_outfile=conftest.$ac_objext
17249 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17251 _lt_compiler_boilerplate=`cat conftest.err`
17252 $rm conftest*
17253
17254 ac_outfile=conftest.$ac_objext
17255 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17257 _lt_linker_boilerplate=`cat conftest.err`
17258 $rm conftest*
17259
17260
17261 # Allow CC to be a program name with arguments.
17262 lt_save_CC="$CC"
17263 CC=${GCJ-"gcj"}
17264 compiler=$CC
17265 compiler_GCJ=$CC
17266 for cc_temp in $compiler""; do
17267   case $cc_temp in
17268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17270     \-*) ;;
17271     *) break;;
17272   esac
17273 done
17274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17275
17276
17277 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17278 archive_cmds_need_lc_GCJ=no
17279
17280 old_archive_cmds_GCJ=$old_archive_cmds
17281
17282
17283 lt_prog_compiler_no_builtin_flag_GCJ=
17284
17285 if test "$GCC" = yes; then
17286   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17287
17288
17289 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17290 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17291 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   lt_cv_prog_compiler_rtti_exceptions=no
17295   ac_outfile=conftest.$ac_objext
17296    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17297    lt_compiler_flag="-fno-rtti -fno-exceptions"
17298    # Insert the option either (1) after the last *FLAGS variable, or
17299    # (2) before a word containing "conftest.", or (3) at the end.
17300    # Note that $ac_compile itself does not contain backslashes and begins
17301    # with a dollar sign (not a hyphen), so the echo should work correctly.
17302    # The option is referenced via a variable to avoid confusing sed.
17303    lt_compile=`echo "$ac_compile" | $SED \
17304    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17306    -e 's:$: $lt_compiler_flag:'`
17307    (eval echo "\"\$as_me:17307: $lt_compile\"" >&5)
17308    (eval "$lt_compile" 2>conftest.err)
17309    ac_status=$?
17310    cat conftest.err >&5
17311    echo "$as_me:17311: \$? = $ac_status" >&5
17312    if (exit $ac_status) && test -s "$ac_outfile"; then
17313      # The compiler can only warn and ignore the option if not recognized
17314      # So say no if there are warnings other than the usual output.
17315      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17316      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17317      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17318        lt_cv_prog_compiler_rtti_exceptions=yes
17319      fi
17320    fi
17321    $rm conftest*
17322
17323 fi
17324 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17325 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17326
17327 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17328     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17329 else
17330     :
17331 fi
17332
17333 fi
17334
17335 lt_prog_compiler_wl_GCJ=
17336 lt_prog_compiler_pic_GCJ=
17337 lt_prog_compiler_static_GCJ=
17338
17339 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17340 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17341
17342   if test "$GCC" = yes; then
17343     lt_prog_compiler_wl_GCJ='-Wl,'
17344     lt_prog_compiler_static_GCJ='-static'
17345
17346     case $host_os in
17347       aix*)
17348       # All AIX code is PIC.
17349       if test "$host_cpu" = ia64; then
17350         # AIX 5 now supports IA64 processor
17351         lt_prog_compiler_static_GCJ='-Bstatic'
17352       fi
17353       ;;
17354
17355     amigaos*)
17356       # FIXME: we need at least 68020 code to build shared libraries, but
17357       # adding the `-m68020' flag to GCC prevents building anything better,
17358       # like `-m68040'.
17359       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17360       ;;
17361
17362     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17363       # PIC is the default for these OSes.
17364       ;;
17365
17366     mingw* | pw32* | os2*)
17367       # This hack is so that the source file can tell whether it is being
17368       # built for inclusion in a dll (and should export symbols for example).
17369       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17370       ;;
17371
17372     darwin* | rhapsody*)
17373       # PIC is the default on this platform
17374       # Common symbols not allowed in MH_DYLIB files
17375       lt_prog_compiler_pic_GCJ='-fno-common'
17376       ;;
17377
17378     interix3*)
17379       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17380       # Instead, we relocate shared libraries at runtime.
17381       ;;
17382
17383     msdosdjgpp*)
17384       # Just because we use GCC doesn't mean we suddenly get shared libraries
17385       # on systems that don't support them.
17386       lt_prog_compiler_can_build_shared_GCJ=no
17387       enable_shared=no
17388       ;;
17389
17390     sysv4*MP*)
17391       if test -d /usr/nec; then
17392         lt_prog_compiler_pic_GCJ=-Kconform_pic
17393       fi
17394       ;;
17395
17396     hpux*)
17397       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17398       # not for PA HP-UX.
17399       case $host_cpu in
17400       hppa*64*|ia64*)
17401         # +Z the default
17402         ;;
17403       *)
17404         lt_prog_compiler_pic_GCJ='-fPIC'
17405         ;;
17406       esac
17407       ;;
17408
17409     *)
17410       lt_prog_compiler_pic_GCJ='-fPIC'
17411       ;;
17412     esac
17413   else
17414     # PORTME Check for flag to pass linker flags through the system compiler.
17415     case $host_os in
17416     aix*)
17417       lt_prog_compiler_wl_GCJ='-Wl,'
17418       if test "$host_cpu" = ia64; then
17419         # AIX 5 now supports IA64 processor
17420         lt_prog_compiler_static_GCJ='-Bstatic'
17421       else
17422         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17423       fi
17424       ;;
17425       darwin*)
17426         # PIC is the default on this platform
17427         # Common symbols not allowed in MH_DYLIB files
17428        case $cc_basename in
17429          xlc*)
17430          lt_prog_compiler_pic_GCJ='-qnocommon'
17431          lt_prog_compiler_wl_GCJ='-Wl,'
17432          ;;
17433        esac
17434        ;;
17435
17436     mingw* | pw32* | os2*)
17437       # This hack is so that the source file can tell whether it is being
17438       # built for inclusion in a dll (and should export symbols for example).
17439       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17440       ;;
17441
17442     hpux9* | hpux10* | hpux11*)
17443       lt_prog_compiler_wl_GCJ='-Wl,'
17444       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17445       # not for PA HP-UX.
17446       case $host_cpu in
17447       hppa*64*|ia64*)
17448         # +Z the default
17449         ;;
17450       *)
17451         lt_prog_compiler_pic_GCJ='+Z'
17452         ;;
17453       esac
17454       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17455       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17456       ;;
17457
17458     irix5* | irix6* | nonstopux*)
17459       lt_prog_compiler_wl_GCJ='-Wl,'
17460       # PIC (with -KPIC) is the default.
17461       lt_prog_compiler_static_GCJ='-non_shared'
17462       ;;
17463
17464     newsos6)
17465       lt_prog_compiler_pic_GCJ='-KPIC'
17466       lt_prog_compiler_static_GCJ='-Bstatic'
17467       ;;
17468
17469     linux*)
17470       case $cc_basename in
17471       icc* | ecc*)
17472         lt_prog_compiler_wl_GCJ='-Wl,'
17473         lt_prog_compiler_pic_GCJ='-KPIC'
17474         lt_prog_compiler_static_GCJ='-static'
17475         ;;
17476       pgcc* | pgf77* | pgf90* | pgf95*)
17477         # Portland Group compilers (*not* the Pentium gcc compiler,
17478         # which looks to be a dead project)
17479         lt_prog_compiler_wl_GCJ='-Wl,'
17480         lt_prog_compiler_pic_GCJ='-fpic'
17481         lt_prog_compiler_static_GCJ='-Bstatic'
17482         ;;
17483       ccc*)
17484         lt_prog_compiler_wl_GCJ='-Wl,'
17485         # All Alpha code is PIC.
17486         lt_prog_compiler_static_GCJ='-non_shared'
17487         ;;
17488       esac
17489       ;;
17490
17491     osf3* | osf4* | osf5*)
17492       lt_prog_compiler_wl_GCJ='-Wl,'
17493       # All OSF/1 code is PIC.
17494       lt_prog_compiler_static_GCJ='-non_shared'
17495       ;;
17496
17497     solaris*)
17498       lt_prog_compiler_pic_GCJ='-KPIC'
17499       lt_prog_compiler_static_GCJ='-Bstatic'
17500       case $cc_basename in
17501       f77* | f90* | f95*)
17502         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17503       *)
17504         lt_prog_compiler_wl_GCJ='-Wl,';;
17505       esac
17506       ;;
17507
17508     sunos4*)
17509       lt_prog_compiler_wl_GCJ='-Qoption ld '
17510       lt_prog_compiler_pic_GCJ='-PIC'
17511       lt_prog_compiler_static_GCJ='-Bstatic'
17512       ;;
17513
17514     sysv4 | sysv4.2uw2* | sysv4.3*)
17515       lt_prog_compiler_wl_GCJ='-Wl,'
17516       lt_prog_compiler_pic_GCJ='-KPIC'
17517       lt_prog_compiler_static_GCJ='-Bstatic'
17518       ;;
17519
17520     sysv4*MP*)
17521       if test -d /usr/nec ;then
17522         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17523         lt_prog_compiler_static_GCJ='-Bstatic'
17524       fi
17525       ;;
17526
17527     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17528       lt_prog_compiler_wl_GCJ='-Wl,'
17529       lt_prog_compiler_pic_GCJ='-KPIC'
17530       lt_prog_compiler_static_GCJ='-Bstatic'
17531       ;;
17532
17533     unicos*)
17534       lt_prog_compiler_wl_GCJ='-Wl,'
17535       lt_prog_compiler_can_build_shared_GCJ=no
17536       ;;
17537
17538     uts4*)
17539       lt_prog_compiler_pic_GCJ='-pic'
17540       lt_prog_compiler_static_GCJ='-Bstatic'
17541       ;;
17542
17543     *)
17544       lt_prog_compiler_can_build_shared_GCJ=no
17545       ;;
17546     esac
17547   fi
17548
17549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17550 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17551
17552 #
17553 # Check to make sure the PIC flag actually works.
17554 #
17555 if test -n "$lt_prog_compiler_pic_GCJ"; then
17556
17557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17559 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17560   echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562   lt_prog_compiler_pic_works_GCJ=no
17563   ac_outfile=conftest.$ac_objext
17564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17565    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17566    # Insert the option either (1) after the last *FLAGS variable, or
17567    # (2) before a word containing "conftest.", or (3) at the end.
17568    # Note that $ac_compile itself does not contain backslashes and begins
17569    # with a dollar sign (not a hyphen), so the echo should work correctly.
17570    # The option is referenced via a variable to avoid confusing sed.
17571    lt_compile=`echo "$ac_compile" | $SED \
17572    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17574    -e 's:$: $lt_compiler_flag:'`
17575    (eval echo "\"\$as_me:17575: $lt_compile\"" >&5)
17576    (eval "$lt_compile" 2>conftest.err)
17577    ac_status=$?
17578    cat conftest.err >&5
17579    echo "$as_me:17579: \$? = $ac_status" >&5
17580    if (exit $ac_status) && test -s "$ac_outfile"; then
17581      # The compiler can only warn and ignore the option if not recognized
17582      # So say no if there are warnings other than the usual output.
17583      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17584      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17585      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17586        lt_prog_compiler_pic_works_GCJ=yes
17587      fi
17588    fi
17589    $rm conftest*
17590
17591 fi
17592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17593 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17594
17595 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17596     case $lt_prog_compiler_pic_GCJ in
17597      "" | " "*) ;;
17598      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17599      esac
17600 else
17601     lt_prog_compiler_pic_GCJ=
17602      lt_prog_compiler_can_build_shared_GCJ=no
17603 fi
17604
17605 fi
17606 case $host_os in
17607   # For platforms which do not support PIC, -DPIC is meaningless:
17608   *djgpp*)
17609     lt_prog_compiler_pic_GCJ=
17610     ;;
17611   *)
17612     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17613     ;;
17614 esac
17615
17616 #
17617 # Check to make sure the static flag actually works.
17618 #
17619 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17620 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17621 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17622 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17623   echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625   lt_prog_compiler_static_works_GCJ=no
17626    save_LDFLAGS="$LDFLAGS"
17627    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17628    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17629    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17630      # The linker can only warn and ignore the option if not recognized
17631      # So say no if there are warnings
17632      if test -s conftest.err; then
17633        # Append any errors to the config.log.
17634        cat conftest.err 1>&5
17635        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17636        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17637        if diff conftest.exp conftest.er2 >/dev/null; then
17638          lt_prog_compiler_static_works_GCJ=yes
17639        fi
17640      else
17641        lt_prog_compiler_static_works_GCJ=yes
17642      fi
17643    fi
17644    $rm conftest*
17645    LDFLAGS="$save_LDFLAGS"
17646
17647 fi
17648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17649 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17650
17651 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17652     :
17653 else
17654     lt_prog_compiler_static_GCJ=
17655 fi
17656
17657
17658 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17660 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663   lt_cv_prog_compiler_c_o_GCJ=no
17664    $rm -r conftest 2>/dev/null
17665    mkdir conftest
17666    cd conftest
17667    mkdir out
17668    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17669
17670    lt_compiler_flag="-o out/conftest2.$ac_objext"
17671    # Insert the option either (1) after the last *FLAGS variable, or
17672    # (2) before a word containing "conftest.", or (3) at the end.
17673    # Note that $ac_compile itself does not contain backslashes and begins
17674    # with a dollar sign (not a hyphen), so the echo should work correctly.
17675    lt_compile=`echo "$ac_compile" | $SED \
17676    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17677    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17678    -e 's:$: $lt_compiler_flag:'`
17679    (eval echo "\"\$as_me:17679: $lt_compile\"" >&5)
17680    (eval "$lt_compile" 2>out/conftest.err)
17681    ac_status=$?
17682    cat out/conftest.err >&5
17683    echo "$as_me:17683: \$? = $ac_status" >&5
17684    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17685    then
17686      # The compiler can only warn and ignore the option if not recognized
17687      # So say no if there are warnings
17688      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17689      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17690      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17691        lt_cv_prog_compiler_c_o_GCJ=yes
17692      fi
17693    fi
17694    chmod u+w . 2>&5
17695    $rm conftest*
17696    # SGI C++ compiler will create directory out/ii_files/ for
17697    # template instantiation
17698    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17699    $rm out/* && rmdir out
17700    cd ..
17701    rmdir conftest
17702    $rm conftest*
17703
17704 fi
17705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17707
17708
17709 hard_links="nottested"
17710 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17711   # do not overwrite the value of need_locks provided by the user
17712   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17713 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17714   hard_links=yes
17715   $rm conftest*
17716   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17717   touch conftest.a
17718   ln conftest.a conftest.b 2>&5 || hard_links=no
17719   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17720   { echo "$as_me:$LINENO: result: $hard_links" >&5
17721 echo "${ECHO_T}$hard_links" >&6; }
17722   if test "$hard_links" = no; then
17723     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17724 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17725     need_locks=warn
17726   fi
17727 else
17728   need_locks=no
17729 fi
17730
17731 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17732 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17733
17734   runpath_var=
17735   allow_undefined_flag_GCJ=
17736   enable_shared_with_static_runtimes_GCJ=no
17737   archive_cmds_GCJ=
17738   archive_expsym_cmds_GCJ=
17739   old_archive_From_new_cmds_GCJ=
17740   old_archive_from_expsyms_cmds_GCJ=
17741   export_dynamic_flag_spec_GCJ=
17742   whole_archive_flag_spec_GCJ=
17743   thread_safe_flag_spec_GCJ=
17744   hardcode_libdir_flag_spec_GCJ=
17745   hardcode_libdir_flag_spec_ld_GCJ=
17746   hardcode_libdir_separator_GCJ=
17747   hardcode_direct_GCJ=no
17748   hardcode_minus_L_GCJ=no
17749   hardcode_shlibpath_var_GCJ=unsupported
17750   link_all_deplibs_GCJ=unknown
17751   hardcode_automatic_GCJ=no
17752   module_cmds_GCJ=
17753   module_expsym_cmds_GCJ=
17754   always_export_symbols_GCJ=no
17755   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17756   # include_expsyms should be a list of space-separated symbols to be *always*
17757   # included in the symbol list
17758   include_expsyms_GCJ=
17759   # exclude_expsyms can be an extended regexp of symbols to exclude
17760   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17761   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17762   # as well as any symbol that contains `d'.
17763   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17764   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17765   # platforms (ab)use it in PIC code, but their linkers get confused if
17766   # the symbol is explicitly referenced.  Since portable code cannot
17767   # rely on this symbol name, it's probably fine to never include it in
17768   # preloaded symbol tables.
17769   extract_expsyms_cmds=
17770   # Just being paranoid about ensuring that cc_basename is set.
17771   for cc_temp in $compiler""; do
17772   case $cc_temp in
17773     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17774     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17775     \-*) ;;
17776     *) break;;
17777   esac
17778 done
17779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17780
17781   case $host_os in
17782   cygwin* | mingw* | pw32*)
17783     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17784     # When not using gcc, we currently assume that we are using
17785     # Microsoft Visual C++.
17786     if test "$GCC" != yes; then
17787       with_gnu_ld=no
17788     fi
17789     ;;
17790   interix*)
17791     # we just hope/assume this is gcc and not c89 (= MSVC++)
17792     with_gnu_ld=yes
17793     ;;
17794   openbsd*)
17795     with_gnu_ld=no
17796     ;;
17797   esac
17798
17799   ld_shlibs_GCJ=yes
17800   if test "$with_gnu_ld" = yes; then
17801     # If archive_cmds runs LD, not CC, wlarc should be empty
17802     wlarc='${wl}'
17803
17804     # Set some defaults for GNU ld with shared library support. These
17805     # are reset later if shared libraries are not supported. Putting them
17806     # here allows them to be overridden if necessary.
17807     runpath_var=LD_RUN_PATH
17808     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17809     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17810     # ancient GNU ld didn't support --whole-archive et. al.
17811     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17812         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17813       else
17814         whole_archive_flag_spec_GCJ=
17815     fi
17816     supports_anon_versioning=no
17817     case `$LD -v 2>/dev/null` in
17818       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17819       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17820       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17821       *\ 2.11.*) ;; # other 2.11 versions
17822       *) supports_anon_versioning=yes ;;
17823     esac
17824
17825     # See if GNU ld supports shared libraries.
17826     case $host_os in
17827     aix3* | aix4* | aix5*)
17828       # On AIX/PPC, the GNU linker is very broken
17829       if test "$host_cpu" != ia64; then
17830         ld_shlibs_GCJ=no
17831         cat <<EOF 1>&2
17832
17833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17834 *** to be unable to reliably create shared libraries on AIX.
17835 *** Therefore, libtool is disabling shared libraries support.  If you
17836 *** really care for shared libraries, you may want to modify your PATH
17837 *** so that a non-GNU linker is found, and then restart.
17838
17839 EOF
17840       fi
17841       ;;
17842
17843     amigaos*)
17844       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)'
17845       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17846       hardcode_minus_L_GCJ=yes
17847
17848       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17849       # that the semantics of dynamic libraries on AmigaOS, at least up
17850       # to version 4, is to share data among multiple programs linked
17851       # with the same dynamic library.  Since this doesn't match the
17852       # behavior of shared libraries on other platforms, we can't use
17853       # them.
17854       ld_shlibs_GCJ=no
17855       ;;
17856
17857     beos*)
17858       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17859         allow_undefined_flag_GCJ=unsupported
17860         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17861         # support --undefined.  This deserves some investigation.  FIXME
17862         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17863       else
17864         ld_shlibs_GCJ=no
17865       fi
17866       ;;
17867
17868     cygwin* | mingw* | pw32*)
17869       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17870       # as there is no search path for DLLs.
17871       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17872       allow_undefined_flag_GCJ=unsupported
17873       always_export_symbols_GCJ=no
17874       enable_shared_with_static_runtimes_GCJ=yes
17875       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17876
17877       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17878         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17879         # If the export-symbols file already is a .def file (1st line
17880         # is EXPORTS), use it as is; otherwise, prepend...
17881         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17882           cp $export_symbols $output_objdir/$soname.def;
17883         else
17884           echo EXPORTS > $output_objdir/$soname.def;
17885           cat $export_symbols >> $output_objdir/$soname.def;
17886         fi~
17887         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17888       else
17889         ld_shlibs_GCJ=no
17890       fi
17891       ;;
17892
17893     interix3*)
17894       hardcode_direct_GCJ=no
17895       hardcode_shlibpath_var_GCJ=no
17896       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17897       export_dynamic_flag_spec_GCJ='${wl}-E'
17898       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17899       # Instead, shared libraries are loaded at an image base (0x10000000 by
17900       # default) and relocated if they conflict, which is a slow very memory
17901       # consuming and fragmenting process.  To avoid this, we pick a random,
17902       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17903       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17904       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17905       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17906       ;;
17907
17908     linux*)
17909       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17910         tmp_addflag=
17911         case $cc_basename,$host_cpu in
17912         pgcc*)                          # Portland Group C compiler
17913           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17914           tmp_addflag=' $pic_flag'
17915           ;;
17916         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17917           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17918           tmp_addflag=' $pic_flag -Mnomain' ;;
17919         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17920           tmp_addflag=' -i_dynamic' ;;
17921         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17922           tmp_addflag=' -i_dynamic -nofor_main' ;;
17923         ifc* | ifort*)                  # Intel Fortran compiler
17924           tmp_addflag=' -nofor_main' ;;
17925         esac
17926         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17927
17928         if test $supports_anon_versioning = yes; then
17929           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17930   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17931   $echo "local: *; };" >> $output_objdir/$libname.ver~
17932           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17933         fi
17934       else
17935         ld_shlibs_GCJ=no
17936       fi
17937       ;;
17938
17939     netbsd*)
17940       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17941         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17942         wlarc=
17943       else
17944         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17945         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17946       fi
17947       ;;
17948
17949     solaris*)
17950       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17951         ld_shlibs_GCJ=no
17952         cat <<EOF 1>&2
17953
17954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17955 *** create shared libraries on Solaris systems.  Therefore, libtool
17956 *** is disabling shared libraries support.  We urge you to upgrade GNU
17957 *** binutils to release 2.9.1 or newer.  Another option is to modify
17958 *** your PATH or compiler configuration so that the native linker is
17959 *** used, and then restart.
17960
17961 EOF
17962       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17963         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17964         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17965       else
17966         ld_shlibs_GCJ=no
17967       fi
17968       ;;
17969
17970     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17971       case `$LD -v 2>&1` in
17972         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17973         ld_shlibs_GCJ=no
17974         cat <<_LT_EOF 1>&2
17975
17976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17977 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17978 *** is disabling shared libraries support.  We urge you to upgrade GNU
17979 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17980 *** your PATH or compiler configuration so that the native linker is
17981 *** used, and then restart.
17982
17983 _LT_EOF
17984         ;;
17985         *)
17986           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17987             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17988             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17989             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17990           else
17991             ld_shlibs_GCJ=no
17992           fi
17993         ;;
17994       esac
17995       ;;
17996
17997     sunos4*)
17998       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17999       wlarc=
18000       hardcode_direct_GCJ=yes
18001       hardcode_shlibpath_var_GCJ=no
18002       ;;
18003
18004     *)
18005       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18006         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18007         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18008       else
18009         ld_shlibs_GCJ=no
18010       fi
18011       ;;
18012     esac
18013
18014     if test "$ld_shlibs_GCJ" = no; then
18015       runpath_var=
18016       hardcode_libdir_flag_spec_GCJ=
18017       export_dynamic_flag_spec_GCJ=
18018       whole_archive_flag_spec_GCJ=
18019     fi
18020   else
18021     # PORTME fill in a description of your system's linker (not GNU ld)
18022     case $host_os in
18023     aix3*)
18024       allow_undefined_flag_GCJ=unsupported
18025       always_export_symbols_GCJ=yes
18026       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'
18027       # Note: this linker hardcodes the directories in LIBPATH if there
18028       # are no directories specified by -L.
18029       hardcode_minus_L_GCJ=yes
18030       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18031         # Neither direct hardcoding nor static linking is supported with a
18032         # broken collect2.
18033         hardcode_direct_GCJ=unsupported
18034       fi
18035       ;;
18036
18037     aix4* | aix5*)
18038       if test "$host_cpu" = ia64; then
18039         # On IA64, the linker does run time linking by default, so we don't
18040         # have to do anything special.
18041         aix_use_runtimelinking=no
18042         exp_sym_flag='-Bexport'
18043         no_entry_flag=""
18044       else
18045         # If we're using GNU nm, then we don't want the "-C" option.
18046         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18047         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18048           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'
18049         else
18050           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'
18051         fi
18052         aix_use_runtimelinking=no
18053
18054         # Test if we are trying to use run time linking or normal
18055         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18056         # need to do runtime linking.
18057         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18058           for ld_flag in $LDFLAGS; do
18059           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18060             aix_use_runtimelinking=yes
18061             break
18062           fi
18063           done
18064           ;;
18065         esac
18066
18067         exp_sym_flag='-bexport'
18068         no_entry_flag='-bnoentry'
18069       fi
18070
18071       # When large executables or shared objects are built, AIX ld can
18072       # have problems creating the table of contents.  If linking a library
18073       # or program results in "error TOC overflow" add -mminimal-toc to
18074       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18075       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18076
18077       archive_cmds_GCJ=''
18078       hardcode_direct_GCJ=yes
18079       hardcode_libdir_separator_GCJ=':'
18080       link_all_deplibs_GCJ=yes
18081
18082       if test "$GCC" = yes; then
18083         case $host_os in aix4.[012]|aix4.[012].*)
18084         # We only want to do this on AIX 4.2 and lower, the check
18085         # below for broken collect2 doesn't work under 4.3+
18086           collect2name=`${CC} -print-prog-name=collect2`
18087           if test -f "$collect2name" && \
18088            strings "$collect2name" | grep resolve_lib_name >/dev/null
18089           then
18090           # We have reworked collect2
18091           hardcode_direct_GCJ=yes
18092           else
18093           # We have old collect2
18094           hardcode_direct_GCJ=unsupported
18095           # It fails to find uninstalled libraries when the uninstalled
18096           # path is not listed in the libpath.  Setting hardcode_minus_L
18097           # to unsupported forces relinking
18098           hardcode_minus_L_GCJ=yes
18099           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18100           hardcode_libdir_separator_GCJ=
18101           fi
18102           ;;
18103         esac
18104         shared_flag='-shared'
18105         if test "$aix_use_runtimelinking" = yes; then
18106           shared_flag="$shared_flag "'${wl}-G'
18107         fi
18108       else
18109         # not using gcc
18110         if test "$host_cpu" = ia64; then
18111         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18112         # chokes on -Wl,-G. The following line is correct:
18113           shared_flag='-G'
18114         else
18115           if test "$aix_use_runtimelinking" = yes; then
18116             shared_flag='${wl}-G'
18117           else
18118             shared_flag='${wl}-bM:SRE'
18119           fi
18120         fi
18121       fi
18122
18123       # It seems that -bexpall does not export symbols beginning with
18124       # underscore (_), so it is better to generate a list of symbols to export.
18125       always_export_symbols_GCJ=yes
18126       if test "$aix_use_runtimelinking" = yes; then
18127         # Warning - without using the other runtime loading flags (-brtl),
18128         # -berok will link without error, but may produce a broken library.
18129         allow_undefined_flag_GCJ='-berok'
18130        # Determine the default libpath from the value encoded in an empty executable.
18131        cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h.  */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h.  */
18137
18138 int
18139 main ()
18140 {
18141
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_link") 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161   { (case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_try") 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; } &&
18170          { ac_try='test -s conftest$ac_exeext'
18171   { (case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_try") 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; }; then
18180
18181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18182 }'`
18183 # Check for a 64-bit object if we didn't find anything.
18184 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; }
18185 }'`; fi
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext \
18194       conftest$ac_exeext conftest.$ac_ext
18195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18196
18197        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18198         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18199        else
18200         if test "$host_cpu" = ia64; then
18201           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18202           allow_undefined_flag_GCJ="-z nodefs"
18203           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18204         else
18205          # Determine the default libpath from the value encoded in an empty executable.
18206          cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212
18213 int
18214 main ()
18215 {
18216
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (ac_try="$ac_link"
18223 case "(($ac_try" in
18224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225   *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228   (eval "$ac_link") 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } &&
18235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18236   { (case "(($ac_try" in
18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238   *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241   (eval "$ac_try") 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); }; } &&
18245          { ac_try='test -s conftest$ac_exeext'
18246   { (case "(($ac_try" in
18247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248   *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251   (eval "$ac_try") 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; }; then
18255
18256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18257 }'`
18258 # Check for a 64-bit object if we didn't find anything.
18259 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; }
18260 }'`; fi
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext \
18269       conftest$ac_exeext conftest.$ac_ext
18270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18271
18272          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18273           # Warning - without using the other run time loading flags,
18274           # -berok will link without error, but may produce a broken library.
18275           no_undefined_flag_GCJ=' ${wl}-bernotok'
18276           allow_undefined_flag_GCJ=' ${wl}-berok'
18277           # Exported symbols can be pulled into shared objects from archives
18278           whole_archive_flag_spec_GCJ='$convenience'
18279           archive_cmds_need_lc_GCJ=yes
18280           # This is similar to how AIX traditionally builds its shared libraries.
18281           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18282         fi
18283       fi
18284       ;;
18285
18286     amigaos*)
18287       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)'
18288       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18289       hardcode_minus_L_GCJ=yes
18290       # see comment about different semantics on the GNU ld section
18291       ld_shlibs_GCJ=no
18292       ;;
18293
18294     bsdi[45]*)
18295       export_dynamic_flag_spec_GCJ=-rdynamic
18296       ;;
18297
18298     cygwin* | mingw* | pw32*)
18299       # When not using gcc, we currently assume that we are using
18300       # Microsoft Visual C++.
18301       # hardcode_libdir_flag_spec is actually meaningless, as there is
18302       # no search path for DLLs.
18303       hardcode_libdir_flag_spec_GCJ=' '
18304       allow_undefined_flag_GCJ=unsupported
18305       # Tell ltmain to make .lib files, not .a files.
18306       libext=lib
18307       # Tell ltmain to make .dll files, not .so files.
18308       shrext_cmds=".dll"
18309       # FIXME: Setting linknames here is a bad hack.
18310       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18311       # The linker will automatically build a .lib file if we build a DLL.
18312       old_archive_From_new_cmds_GCJ='true'
18313       # FIXME: Should let the user specify the lib program.
18314       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18315       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18316       enable_shared_with_static_runtimes_GCJ=yes
18317       ;;
18318
18319     darwin* | rhapsody*)
18320       case $host_os in
18321         rhapsody* | darwin1.[012])
18322          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18323          ;;
18324        *) # Darwin 1.3 on
18325          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18326            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18327          else
18328            case ${MACOSX_DEPLOYMENT_TARGET} in
18329              10.[012])
18330                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18331                ;;
18332              10.*)
18333                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18334                ;;
18335            esac
18336          fi
18337          ;;
18338       esac
18339       archive_cmds_need_lc_GCJ=no
18340       hardcode_direct_GCJ=no
18341       hardcode_automatic_GCJ=yes
18342       hardcode_shlibpath_var_GCJ=unsupported
18343       whole_archive_flag_spec_GCJ=''
18344       link_all_deplibs_GCJ=yes
18345     if test "$GCC" = yes ; then
18346         output_verbose_link_cmd='echo'
18347         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18348       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18349       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18350       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18351       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}'
18352     else
18353       case $cc_basename in
18354         xlc*)
18355          output_verbose_link_cmd='echo'
18356          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18357          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18358           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18359          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18360           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}'
18361           ;;
18362        *)
18363          ld_shlibs_GCJ=no
18364           ;;
18365       esac
18366     fi
18367       ;;
18368
18369     dgux*)
18370       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18371       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18372       hardcode_shlibpath_var_GCJ=no
18373       ;;
18374
18375     freebsd1*)
18376       ld_shlibs_GCJ=no
18377       ;;
18378
18379     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18380     # support.  Future versions do this automatically, but an explicit c++rt0.o
18381     # does not break anything, and helps significantly (at the cost of a little
18382     # extra space).
18383     freebsd2.2*)
18384       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18385       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18386       hardcode_direct_GCJ=yes
18387       hardcode_shlibpath_var_GCJ=no
18388       ;;
18389
18390     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18391     freebsd2*)
18392       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18393       hardcode_direct_GCJ=yes
18394       hardcode_minus_L_GCJ=yes
18395       hardcode_shlibpath_var_GCJ=no
18396       ;;
18397
18398     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18399     freebsd* | kfreebsd*-gnu | dragonfly*)
18400       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18401       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18402       hardcode_direct_GCJ=yes
18403       hardcode_shlibpath_var_GCJ=no
18404       ;;
18405
18406     hpux9*)
18407       if test "$GCC" = yes; then
18408         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'
18409       else
18410         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'
18411       fi
18412       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18413       hardcode_libdir_separator_GCJ=:
18414       hardcode_direct_GCJ=yes
18415
18416       # hardcode_minus_L: Not really in the search PATH,
18417       # but as the default location of the library.
18418       hardcode_minus_L_GCJ=yes
18419       export_dynamic_flag_spec_GCJ='${wl}-E'
18420       ;;
18421
18422     hpux10*)
18423       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18424         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18425       else
18426         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18427       fi
18428       if test "$with_gnu_ld" = no; then
18429         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18430         hardcode_libdir_separator_GCJ=:
18431
18432         hardcode_direct_GCJ=yes
18433         export_dynamic_flag_spec_GCJ='${wl}-E'
18434
18435         # hardcode_minus_L: Not really in the search PATH,
18436         # but as the default location of the library.
18437         hardcode_minus_L_GCJ=yes
18438       fi
18439       ;;
18440
18441     hpux11*)
18442       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18443         case $host_cpu in
18444         hppa*64*)
18445           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18446           ;;
18447         ia64*)
18448           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18449           ;;
18450         *)
18451           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18452           ;;
18453         esac
18454       else
18455         case $host_cpu in
18456         hppa*64*)
18457           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18458           ;;
18459         ia64*)
18460           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18461           ;;
18462         *)
18463           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18464           ;;
18465         esac
18466       fi
18467       if test "$with_gnu_ld" = no; then
18468         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18469         hardcode_libdir_separator_GCJ=:
18470
18471         case $host_cpu in
18472         hppa*64*|ia64*)
18473           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18474           hardcode_direct_GCJ=no
18475           hardcode_shlibpath_var_GCJ=no
18476           ;;
18477         *)
18478           hardcode_direct_GCJ=yes
18479           export_dynamic_flag_spec_GCJ='${wl}-E'
18480
18481           # hardcode_minus_L: Not really in the search PATH,
18482           # but as the default location of the library.
18483           hardcode_minus_L_GCJ=yes
18484           ;;
18485         esac
18486       fi
18487       ;;
18488
18489     irix5* | irix6* | nonstopux*)
18490       if test "$GCC" = yes; then
18491         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'
18492       else
18493         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'
18494         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18495       fi
18496       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18497       hardcode_libdir_separator_GCJ=:
18498       link_all_deplibs_GCJ=yes
18499       ;;
18500
18501     netbsd*)
18502       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18503         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18504       else
18505         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18506       fi
18507       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18508       hardcode_direct_GCJ=yes
18509       hardcode_shlibpath_var_GCJ=no
18510       ;;
18511
18512     newsos6)
18513       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18514       hardcode_direct_GCJ=yes
18515       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18516       hardcode_libdir_separator_GCJ=:
18517       hardcode_shlibpath_var_GCJ=no
18518       ;;
18519
18520     openbsd*)
18521       hardcode_direct_GCJ=yes
18522       hardcode_shlibpath_var_GCJ=no
18523       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18524         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18525         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18526         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18527         export_dynamic_flag_spec_GCJ='${wl}-E'
18528       else
18529        case $host_os in
18530          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18531            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18532            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18533            ;;
18534          *)
18535            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18536            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18537            ;;
18538        esac
18539       fi
18540       ;;
18541
18542     os2*)
18543       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18544       hardcode_minus_L_GCJ=yes
18545       allow_undefined_flag_GCJ=unsupported
18546       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'
18547       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18548       ;;
18549
18550     osf3*)
18551       if test "$GCC" = yes; then
18552         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18553         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'
18554       else
18555         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18556         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'
18557       fi
18558       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18559       hardcode_libdir_separator_GCJ=:
18560       ;;
18561
18562     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18563       if test "$GCC" = yes; then
18564         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18565         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'
18566         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18567       else
18568         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18569         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'
18570         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~
18571         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18572
18573         # Both c and cxx compiler support -rpath directly
18574         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18575       fi
18576       hardcode_libdir_separator_GCJ=:
18577       ;;
18578
18579     solaris*)
18580       no_undefined_flag_GCJ=' -z text'
18581       if test "$GCC" = yes; then
18582         wlarc='${wl}'
18583         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18584         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18585           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18586       else
18587         wlarc=''
18588         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18589         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18590         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18591       fi
18592       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18593       hardcode_shlibpath_var_GCJ=no
18594       case $host_os in
18595       solaris2.[0-5] | solaris2.[0-5].*) ;;
18596       *)
18597         # The compiler driver will combine linker options so we
18598         # cannot just pass the convience library names through
18599         # without $wl, iff we do not link with $LD.
18600         # Luckily, gcc supports the same syntax we need for Sun Studio.
18601         # Supported since Solaris 2.6 (maybe 2.5.1?)
18602         case $wlarc in
18603         '')
18604           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18605         *)
18606           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18607         esac ;;
18608       esac
18609       link_all_deplibs_GCJ=yes
18610       ;;
18611
18612     sunos4*)
18613       if test "x$host_vendor" = xsequent; then
18614         # Use $CC to link under sequent, because it throws in some extra .o
18615         # files that make .init and .fini sections work.
18616         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18617       else
18618         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18619       fi
18620       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18621       hardcode_direct_GCJ=yes
18622       hardcode_minus_L_GCJ=yes
18623       hardcode_shlibpath_var_GCJ=no
18624       ;;
18625
18626     sysv4)
18627       case $host_vendor in
18628         sni)
18629           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18630           hardcode_direct_GCJ=yes # is this really true???
18631         ;;
18632         siemens)
18633           ## LD is ld it makes a PLAMLIB
18634           ## CC just makes a GrossModule.
18635           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18636           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18637           hardcode_direct_GCJ=no
18638         ;;
18639         motorola)
18640           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18641           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18642         ;;
18643       esac
18644       runpath_var='LD_RUN_PATH'
18645       hardcode_shlibpath_var_GCJ=no
18646       ;;
18647
18648     sysv4.3*)
18649       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18650       hardcode_shlibpath_var_GCJ=no
18651       export_dynamic_flag_spec_GCJ='-Bexport'
18652       ;;
18653
18654     sysv4*MP*)
18655       if test -d /usr/nec; then
18656         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18657         hardcode_shlibpath_var_GCJ=no
18658         runpath_var=LD_RUN_PATH
18659         hardcode_runpath_var=yes
18660         ld_shlibs_GCJ=yes
18661       fi
18662       ;;
18663
18664     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18665       no_undefined_flag_GCJ='${wl}-z,text'
18666       archive_cmds_need_lc_GCJ=no
18667       hardcode_shlibpath_var_GCJ=no
18668       runpath_var='LD_RUN_PATH'
18669
18670       if test "$GCC" = yes; then
18671         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18672         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18673       else
18674         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18675         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18676       fi
18677       ;;
18678
18679     sysv5* | sco3.2v5* | sco5v6*)
18680       # Note: We can NOT use -z defs as we might desire, because we do not
18681       # link with -lc, and that would cause any symbols used from libc to
18682       # always be unresolved, which means just about no library would
18683       # ever link correctly.  If we're not using GNU ld we use -z text
18684       # though, which does catch some bad symbols but isn't as heavy-handed
18685       # as -z defs.
18686       no_undefined_flag_GCJ='${wl}-z,text'
18687       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18688       archive_cmds_need_lc_GCJ=no
18689       hardcode_shlibpath_var_GCJ=no
18690       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18691       hardcode_libdir_separator_GCJ=':'
18692       link_all_deplibs_GCJ=yes
18693       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18694       runpath_var='LD_RUN_PATH'
18695
18696       if test "$GCC" = yes; then
18697         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18698         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18699       else
18700         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18702       fi
18703       ;;
18704
18705     uts4*)
18706       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18707       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18708       hardcode_shlibpath_var_GCJ=no
18709       ;;
18710
18711     *)
18712       ld_shlibs_GCJ=no
18713       ;;
18714     esac
18715   fi
18716
18717 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18718 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18719 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18720
18721 #
18722 # Do we need to explicitly link libc?
18723 #
18724 case "x$archive_cmds_need_lc_GCJ" in
18725 x|xyes)
18726   # Assume -lc should be added
18727   archive_cmds_need_lc_GCJ=yes
18728
18729   if test "$enable_shared" = yes && test "$GCC" = yes; then
18730     case $archive_cmds_GCJ in
18731     *'~'*)
18732       # FIXME: we may have to deal with multi-command sequences.
18733       ;;
18734     '$CC '*)
18735       # Test whether the compiler implicitly links with -lc since on some
18736       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18737       # to ld, don't add -lc before -lgcc.
18738       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18739 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18740       $rm conftest*
18741       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18742
18743       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18744   (eval $ac_compile) 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); } 2>conftest.err; then
18748         soname=conftest
18749         lib=conftest
18750         libobjs=conftest.$ac_objext
18751         deplibs=
18752         wl=$lt_prog_compiler_wl_GCJ
18753         pic_flag=$lt_prog_compiler_pic_GCJ
18754         compiler_flags=-v
18755         linker_flags=-v
18756         verstring=
18757         output_objdir=.
18758         libname=conftest
18759         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18760         allow_undefined_flag_GCJ=
18761         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18762   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }
18766         then
18767           archive_cmds_need_lc_GCJ=no
18768         else
18769           archive_cmds_need_lc_GCJ=yes
18770         fi
18771         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18772       else
18773         cat conftest.err 1>&5
18774       fi
18775       $rm conftest*
18776       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18777 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18778       ;;
18779     esac
18780   fi
18781   ;;
18782 esac
18783
18784 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18786 library_names_spec=
18787 libname_spec='lib$name'
18788 soname_spec=
18789 shrext_cmds=".so"
18790 postinstall_cmds=
18791 postuninstall_cmds=
18792 finish_cmds=
18793 finish_eval=
18794 shlibpath_var=
18795 shlibpath_overrides_runpath=unknown
18796 version_type=none
18797 dynamic_linker="$host_os ld.so"
18798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18799 if test "$GCC" = yes; then
18800   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18801   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18802     # if the path contains ";" then we assume it to be the separator
18803     # otherwise default to the standard path separator (i.e. ":") - it is
18804     # assumed that no part of a normal pathname contains ";" but that should
18805     # okay in the real world where ";" in dirpaths is itself problematic.
18806     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18807   else
18808     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18809   fi
18810 else
18811   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18812 fi
18813 need_lib_prefix=unknown
18814 hardcode_into_libs=no
18815
18816 # when you set need_version to no, make sure it does not cause -set_version
18817 # flags to be left without arguments
18818 need_version=unknown
18819
18820 case $host_os in
18821 aix3*)
18822   version_type=linux
18823   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18824   shlibpath_var=LIBPATH
18825
18826   # AIX 3 has no versioning support, so we append a major version to the name.
18827   soname_spec='${libname}${release}${shared_ext}$major'
18828   ;;
18829
18830 aix4* | aix5*)
18831   version_type=linux
18832   need_lib_prefix=no
18833   need_version=no
18834   hardcode_into_libs=yes
18835   if test "$host_cpu" = ia64; then
18836     # AIX 5 supports IA64
18837     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18838     shlibpath_var=LD_LIBRARY_PATH
18839   else
18840     # With GCC up to 2.95.x, collect2 would create an import file
18841     # for dependence libraries.  The import file would start with
18842     # the line `#! .'.  This would cause the generated library to
18843     # depend on `.', always an invalid library.  This was fixed in
18844     # development snapshots of GCC prior to 3.0.
18845     case $host_os in
18846       aix4 | aix4.[01] | aix4.[01].*)
18847       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18848            echo ' yes '
18849            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18850         :
18851       else
18852         can_build_shared=no
18853       fi
18854       ;;
18855     esac
18856     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18857     # soname into executable. Probably we can add versioning support to
18858     # collect2, so additional links can be useful in future.
18859     if test "$aix_use_runtimelinking" = yes; then
18860       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18861       # instead of lib<name>.a to let people know that these are not
18862       # typical AIX shared libraries.
18863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18864     else
18865       # We preserve .a as extension for shared libraries through AIX4.2
18866       # and later when we are not doing run time linking.
18867       library_names_spec='${libname}${release}.a $libname.a'
18868       soname_spec='${libname}${release}${shared_ext}$major'
18869     fi
18870     shlibpath_var=LIBPATH
18871   fi
18872   ;;
18873
18874 amigaos*)
18875   library_names_spec='$libname.ixlibrary $libname.a'
18876   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18877   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'
18878   ;;
18879
18880 beos*)
18881   library_names_spec='${libname}${shared_ext}'
18882   dynamic_linker="$host_os ld.so"
18883   shlibpath_var=LIBRARY_PATH
18884   ;;
18885
18886 bsdi[45]*)
18887   version_type=linux
18888   need_version=no
18889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890   soname_spec='${libname}${release}${shared_ext}$major'
18891   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18892   shlibpath_var=LD_LIBRARY_PATH
18893   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18894   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18895   # the default ld.so.conf also contains /usr/contrib/lib and
18896   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18897   # libtool to hard-code these into programs
18898   ;;
18899
18900 cygwin* | mingw* | pw32*)
18901   version_type=windows
18902   shrext_cmds=".dll"
18903   need_version=no
18904   need_lib_prefix=no
18905
18906   case $GCC,$host_os in
18907   yes,cygwin* | yes,mingw* | yes,pw32*)
18908     library_names_spec='$libname.dll.a'
18909     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18910     postinstall_cmds='base_file=`basename \${file}`~
18911       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18912       dldir=$destdir/`dirname \$dlpath`~
18913       test -d \$dldir || mkdir -p \$dldir~
18914       $install_prog $dir/$dlname \$dldir/$dlname~
18915       chmod a+x \$dldir/$dlname'
18916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18917       dlpath=$dir/\$dldll~
18918        $rm \$dlpath'
18919     shlibpath_overrides_runpath=yes
18920
18921     case $host_os in
18922     cygwin*)
18923       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18924       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18925       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18926       ;;
18927     mingw*)
18928       # MinGW DLLs use traditional 'lib' prefix
18929       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18930       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18931       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18932         # It is most probably a Windows format PATH printed by
18933         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18934         # path with ; separators, and with drive letters. We can handle the
18935         # drive letters (cygwin fileutils understands them), so leave them,
18936         # especially as we might pass files found there to a mingw objdump,
18937         # which wouldn't understand a cygwinified path. Ahh.
18938         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18939       else
18940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18941       fi
18942       ;;
18943     pw32*)
18944       # pw32 DLLs use 'pw' prefix rather than 'lib'
18945       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18946       ;;
18947     esac
18948     ;;
18949
18950   *)
18951     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18952     ;;
18953   esac
18954   dynamic_linker='Win32 ld.exe'
18955   # FIXME: first we should search . and the directory the executable is in
18956   shlibpath_var=PATH
18957   ;;
18958
18959 darwin* | rhapsody*)
18960   dynamic_linker="$host_os dyld"
18961   version_type=darwin
18962   need_lib_prefix=no
18963   need_version=no
18964   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18965   soname_spec='${libname}${release}${major}$shared_ext'
18966   shlibpath_overrides_runpath=yes
18967   shlibpath_var=DYLD_LIBRARY_PATH
18968   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18969   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18970   if test "$GCC" = yes; then
18971     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"`
18972   else
18973     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18974   fi
18975   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18976   ;;
18977
18978 dgux*)
18979   version_type=linux
18980   need_lib_prefix=no
18981   need_version=no
18982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18983   soname_spec='${libname}${release}${shared_ext}$major'
18984   shlibpath_var=LD_LIBRARY_PATH
18985   ;;
18986
18987 freebsd1*)
18988   dynamic_linker=no
18989   ;;
18990
18991 kfreebsd*-gnu)
18992   version_type=linux
18993   need_lib_prefix=no
18994   need_version=no
18995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18996   soname_spec='${libname}${release}${shared_ext}$major'
18997   shlibpath_var=LD_LIBRARY_PATH
18998   shlibpath_overrides_runpath=no
18999   hardcode_into_libs=yes
19000   dynamic_linker='GNU ld.so'
19001   ;;
19002
19003 freebsd* | dragonfly*)
19004   # DragonFly does not have aout.  When/if they implement a new
19005   # versioning mechanism, adjust this.
19006   if test -x /usr/bin/objformat; then
19007     objformat=`/usr/bin/objformat`
19008   else
19009     case $host_os in
19010     freebsd[123]*) objformat=aout ;;
19011     *) objformat=elf ;;
19012     esac
19013   fi
19014   version_type=freebsd-$objformat
19015   case $version_type in
19016     freebsd-elf*)
19017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19018       need_version=no
19019       need_lib_prefix=no
19020       ;;
19021     freebsd-*)
19022       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19023       need_version=yes
19024       ;;
19025   esac
19026   shlibpath_var=LD_LIBRARY_PATH
19027   case $host_os in
19028   freebsd2*)
19029     shlibpath_overrides_runpath=yes
19030     ;;
19031   freebsd3.[01]* | freebsdelf3.[01]*)
19032     shlibpath_overrides_runpath=yes
19033     hardcode_into_libs=yes
19034     ;;
19035   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19036   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19037     shlibpath_overrides_runpath=no
19038     hardcode_into_libs=yes
19039     ;;
19040   freebsd*) # from 4.6 on
19041     shlibpath_overrides_runpath=yes
19042     hardcode_into_libs=yes
19043     ;;
19044   esac
19045   ;;
19046
19047 gnu*)
19048   version_type=linux
19049   need_lib_prefix=no
19050   need_version=no
19051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19052   soname_spec='${libname}${release}${shared_ext}$major'
19053   shlibpath_var=LD_LIBRARY_PATH
19054   hardcode_into_libs=yes
19055   ;;
19056
19057 hpux9* | hpux10* | hpux11*)
19058   # Give a soname corresponding to the major version so that dld.sl refuses to
19059   # link against other versions.
19060   version_type=sunos
19061   need_lib_prefix=no
19062   need_version=no
19063   case $host_cpu in
19064   ia64*)
19065     shrext_cmds='.so'
19066     hardcode_into_libs=yes
19067     dynamic_linker="$host_os dld.so"
19068     shlibpath_var=LD_LIBRARY_PATH
19069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19071     soname_spec='${libname}${release}${shared_ext}$major'
19072     if test "X$HPUX_IA64_MODE" = X32; then
19073       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19074     else
19075       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19076     fi
19077     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19078     ;;
19079    hppa*64*)
19080      shrext_cmds='.sl'
19081      hardcode_into_libs=yes
19082      dynamic_linker="$host_os dld.sl"
19083      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19084      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086      soname_spec='${libname}${release}${shared_ext}$major'
19087      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19088      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19089      ;;
19090    *)
19091     shrext_cmds='.sl'
19092     dynamic_linker="$host_os dld.sl"
19093     shlibpath_var=SHLIB_PATH
19094     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096     soname_spec='${libname}${release}${shared_ext}$major'
19097     ;;
19098   esac
19099   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19100   postinstall_cmds='chmod 555 $lib'
19101   ;;
19102
19103 interix3*)
19104   version_type=linux
19105   need_lib_prefix=no
19106   need_version=no
19107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19108   soname_spec='${libname}${release}${shared_ext}$major'
19109   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19110   shlibpath_var=LD_LIBRARY_PATH
19111   shlibpath_overrides_runpath=no
19112   hardcode_into_libs=yes
19113   ;;
19114
19115 irix5* | irix6* | nonstopux*)
19116   case $host_os in
19117     nonstopux*) version_type=nonstopux ;;
19118     *)
19119         if test "$lt_cv_prog_gnu_ld" = yes; then
19120                 version_type=linux
19121         else
19122                 version_type=irix
19123         fi ;;
19124   esac
19125   need_lib_prefix=no
19126   need_version=no
19127   soname_spec='${libname}${release}${shared_ext}$major'
19128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19129   case $host_os in
19130   irix5* | nonstopux*)
19131     libsuff= shlibsuff=
19132     ;;
19133   *)
19134     case $LD in # libtool.m4 will add one of these switches to LD
19135     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19136       libsuff= shlibsuff= libmagic=32-bit;;
19137     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19138       libsuff=32 shlibsuff=N32 libmagic=N32;;
19139     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19140       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19141     *) libsuff= shlibsuff= libmagic=never-match;;
19142     esac
19143     ;;
19144   esac
19145   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19146   shlibpath_overrides_runpath=no
19147   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19148   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19149   hardcode_into_libs=yes
19150   ;;
19151
19152 # No shared lib support for Linux oldld, aout, or coff.
19153 linux*oldld* | linux*aout* | linux*coff*)
19154   dynamic_linker=no
19155   ;;
19156
19157 # This must be Linux ELF.
19158 linux*)
19159   version_type=linux
19160   need_lib_prefix=no
19161   need_version=no
19162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163   soname_spec='${libname}${release}${shared_ext}$major'
19164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19165   shlibpath_var=LD_LIBRARY_PATH
19166   shlibpath_overrides_runpath=no
19167   # This implies no fast_install, which is unacceptable.
19168   # Some rework will be needed to allow for fast_install
19169   # before this can be enabled.
19170   hardcode_into_libs=yes
19171
19172   # find out which ABI we are using
19173   libsuff=
19174   case "$host_cpu" in
19175   x86_64*|s390x*|powerpc64*)
19176     echo '#line 19176 "configure"' > conftest.$ac_ext
19177     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19178   (eval $ac_compile) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; then
19182       case `/usr/bin/file conftest.$ac_objext` in
19183       *64-bit*)
19184         libsuff=64
19185         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19186         ;;
19187       esac
19188     fi
19189     rm -rf conftest*
19190     ;;
19191   esac
19192
19193   # Append ld.so.conf contents to the search path
19194   if test -f /etc/ld.so.conf; then
19195     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19196     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19197   fi
19198
19199   # We used to test for /lib/ld.so.1 and disable shared libraries on
19200   # powerpc, because MkLinux only supported shared libraries with the
19201   # GNU dynamic linker.  Since this was broken with cross compilers,
19202   # most powerpc-linux boxes support dynamic linking these days and
19203   # people can always --disable-shared, the test was removed, and we
19204   # assume the GNU/Linux dynamic linker is in use.
19205   dynamic_linker='GNU/Linux ld.so'
19206   ;;
19207
19208 knetbsd*-gnu)
19209   version_type=linux
19210   need_lib_prefix=no
19211   need_version=no
19212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19213   soname_spec='${libname}${release}${shared_ext}$major'
19214   shlibpath_var=LD_LIBRARY_PATH
19215   shlibpath_overrides_runpath=no
19216   hardcode_into_libs=yes
19217   dynamic_linker='GNU ld.so'
19218   ;;
19219
19220 netbsd*)
19221   version_type=sunos
19222   need_lib_prefix=no
19223   need_version=no
19224   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19226     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19227     dynamic_linker='NetBSD (a.out) ld.so'
19228   else
19229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19230     soname_spec='${libname}${release}${shared_ext}$major'
19231     dynamic_linker='NetBSD ld.elf_so'
19232   fi
19233   shlibpath_var=LD_LIBRARY_PATH
19234   shlibpath_overrides_runpath=yes
19235   hardcode_into_libs=yes
19236   ;;
19237
19238 newsos6)
19239   version_type=linux
19240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241   shlibpath_var=LD_LIBRARY_PATH
19242   shlibpath_overrides_runpath=yes
19243   ;;
19244
19245 nto-qnx*)
19246   version_type=linux
19247   need_lib_prefix=no
19248   need_version=no
19249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250   soname_spec='${libname}${release}${shared_ext}$major'
19251   shlibpath_var=LD_LIBRARY_PATH
19252   shlibpath_overrides_runpath=yes
19253   ;;
19254
19255 openbsd*)
19256   version_type=sunos
19257   sys_lib_dlsearch_path_spec="/usr/lib"
19258   need_lib_prefix=no
19259   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19260   case $host_os in
19261     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19262     *)                         need_version=no  ;;
19263   esac
19264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19266   shlibpath_var=LD_LIBRARY_PATH
19267   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19268     case $host_os in
19269       openbsd2.[89] | openbsd2.[89].*)
19270         shlibpath_overrides_runpath=no
19271         ;;
19272       *)
19273         shlibpath_overrides_runpath=yes
19274         ;;
19275       esac
19276   else
19277     shlibpath_overrides_runpath=yes
19278   fi
19279   ;;
19280
19281 os2*)
19282   libname_spec='$name'
19283   shrext_cmds=".dll"
19284   need_lib_prefix=no
19285   library_names_spec='$libname${shared_ext} $libname.a'
19286   dynamic_linker='OS/2 ld.exe'
19287   shlibpath_var=LIBPATH
19288   ;;
19289
19290 osf3* | osf4* | osf5*)
19291   version_type=osf
19292   need_lib_prefix=no
19293   need_version=no
19294   soname_spec='${libname}${release}${shared_ext}$major'
19295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19296   shlibpath_var=LD_LIBRARY_PATH
19297   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19298   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19299   ;;
19300
19301 solaris*)
19302   version_type=linux
19303   need_lib_prefix=no
19304   need_version=no
19305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19306   soname_spec='${libname}${release}${shared_ext}$major'
19307   shlibpath_var=LD_LIBRARY_PATH
19308   shlibpath_overrides_runpath=yes
19309   hardcode_into_libs=yes
19310   # ldd complains unless libraries are executable
19311   postinstall_cmds='chmod +x $lib'
19312   ;;
19313
19314 sunos4*)
19315   version_type=sunos
19316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19317   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19318   shlibpath_var=LD_LIBRARY_PATH
19319   shlibpath_overrides_runpath=yes
19320   if test "$with_gnu_ld" = yes; then
19321     need_lib_prefix=no
19322   fi
19323   need_version=yes
19324   ;;
19325
19326 sysv4 | sysv4.3*)
19327   version_type=linux
19328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19329   soname_spec='${libname}${release}${shared_ext}$major'
19330   shlibpath_var=LD_LIBRARY_PATH
19331   case $host_vendor in
19332     sni)
19333       shlibpath_overrides_runpath=no
19334       need_lib_prefix=no
19335       export_dynamic_flag_spec='${wl}-Blargedynsym'
19336       runpath_var=LD_RUN_PATH
19337       ;;
19338     siemens)
19339       need_lib_prefix=no
19340       ;;
19341     motorola)
19342       need_lib_prefix=no
19343       need_version=no
19344       shlibpath_overrides_runpath=no
19345       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19346       ;;
19347   esac
19348   ;;
19349
19350 sysv4*MP*)
19351   if test -d /usr/nec ;then
19352     version_type=linux
19353     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19354     soname_spec='$libname${shared_ext}.$major'
19355     shlibpath_var=LD_LIBRARY_PATH
19356   fi
19357   ;;
19358
19359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19360   version_type=freebsd-elf
19361   need_lib_prefix=no
19362   need_version=no
19363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19364   soname_spec='${libname}${release}${shared_ext}$major'
19365   shlibpath_var=LD_LIBRARY_PATH
19366   hardcode_into_libs=yes
19367   if test "$with_gnu_ld" = yes; then
19368     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19369     shlibpath_overrides_runpath=no
19370   else
19371     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19372     shlibpath_overrides_runpath=yes
19373     case $host_os in
19374       sco3.2v5*)
19375         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19376         ;;
19377     esac
19378   fi
19379   sys_lib_dlsearch_path_spec='/usr/lib'
19380   ;;
19381
19382 uts4*)
19383   version_type=linux
19384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19385   soname_spec='${libname}${release}${shared_ext}$major'
19386   shlibpath_var=LD_LIBRARY_PATH
19387   ;;
19388
19389 *)
19390   dynamic_linker=no
19391   ;;
19392 esac
19393 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19394 echo "${ECHO_T}$dynamic_linker" >&6; }
19395 test "$dynamic_linker" = no && can_build_shared=no
19396
19397 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19398 if test "$GCC" = yes; then
19399   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19400 fi
19401
19402 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19403 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19404 hardcode_action_GCJ=
19405 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19406    test -n "$runpath_var_GCJ" || \
19407    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19408
19409   # We can hardcode non-existant directories.
19410   if test "$hardcode_direct_GCJ" != no &&
19411      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19412      # have to relink, otherwise we might link with an installed library
19413      # when we should be linking with a yet-to-be-installed one
19414      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19415      test "$hardcode_minus_L_GCJ" != no; then
19416     # Linking always hardcodes the temporary library directory.
19417     hardcode_action_GCJ=relink
19418   else
19419     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19420     hardcode_action_GCJ=immediate
19421   fi
19422 else
19423   # We cannot hardcode anything, or else we can only hardcode existing
19424   # directories.
19425   hardcode_action_GCJ=unsupported
19426 fi
19427 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19428 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19429
19430 if test "$hardcode_action_GCJ" = relink; then
19431   # Fast installation is not supported
19432   enable_fast_install=no
19433 elif test "$shlibpath_overrides_runpath" = yes ||
19434      test "$enable_shared" = no; then
19435   # Fast installation is not necessary
19436   enable_fast_install=needless
19437 fi
19438
19439
19440 # The else clause should only fire when bootstrapping the
19441 # libtool distribution, otherwise you forgot to ship ltmain.sh
19442 # with your package, and you will get complaints that there are
19443 # no rules to generate ltmain.sh.
19444 if test -f "$ltmain"; then
19445   # See if we are running on zsh, and set the options which allow our commands through
19446   # without removal of \ escapes.
19447   if test -n "${ZSH_VERSION+set}" ; then
19448     setopt NO_GLOB_SUBST
19449   fi
19450   # Now quote all the things that may contain metacharacters while being
19451   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19452   # variables and quote the copies for generation of the libtool script.
19453   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19454     SED SHELL STRIP \
19455     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19456     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19457     deplibs_check_method reload_flag reload_cmds need_locks \
19458     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19459     lt_cv_sys_global_symbol_to_c_name_address \
19460     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19461     old_postinstall_cmds old_postuninstall_cmds \
19462     compiler_GCJ \
19463     CC_GCJ \
19464     LD_GCJ \
19465     lt_prog_compiler_wl_GCJ \
19466     lt_prog_compiler_pic_GCJ \
19467     lt_prog_compiler_static_GCJ \
19468     lt_prog_compiler_no_builtin_flag_GCJ \
19469     export_dynamic_flag_spec_GCJ \
19470     thread_safe_flag_spec_GCJ \
19471     whole_archive_flag_spec_GCJ \
19472     enable_shared_with_static_runtimes_GCJ \
19473     old_archive_cmds_GCJ \
19474     old_archive_from_new_cmds_GCJ \
19475     predep_objects_GCJ \
19476     postdep_objects_GCJ \
19477     predeps_GCJ \
19478     postdeps_GCJ \
19479     compiler_lib_search_path_GCJ \
19480     archive_cmds_GCJ \
19481     archive_expsym_cmds_GCJ \
19482     postinstall_cmds_GCJ \
19483     postuninstall_cmds_GCJ \
19484     old_archive_from_expsyms_cmds_GCJ \
19485     allow_undefined_flag_GCJ \
19486     no_undefined_flag_GCJ \
19487     export_symbols_cmds_GCJ \
19488     hardcode_libdir_flag_spec_GCJ \
19489     hardcode_libdir_flag_spec_ld_GCJ \
19490     hardcode_libdir_separator_GCJ \
19491     hardcode_automatic_GCJ \
19492     module_cmds_GCJ \
19493     module_expsym_cmds_GCJ \
19494     lt_cv_prog_compiler_c_o_GCJ \
19495     exclude_expsyms_GCJ \
19496     include_expsyms_GCJ; do
19497
19498     case $var in
19499     old_archive_cmds_GCJ | \
19500     old_archive_from_new_cmds_GCJ | \
19501     archive_cmds_GCJ | \
19502     archive_expsym_cmds_GCJ | \
19503     module_cmds_GCJ | \
19504     module_expsym_cmds_GCJ | \
19505     old_archive_from_expsyms_cmds_GCJ | \
19506     export_symbols_cmds_GCJ | \
19507     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19508     postinstall_cmds | postuninstall_cmds | \
19509     old_postinstall_cmds | old_postuninstall_cmds | \
19510     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19511       # Double-quote double-evaled strings.
19512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19513       ;;
19514     *)
19515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19516       ;;
19517     esac
19518   done
19519
19520   case $lt_echo in
19521   *'\$0 --fallback-echo"')
19522     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19523     ;;
19524   esac
19525
19526 cfgfile="$ofile"
19527
19528   cat <<__EOF__ >> "$cfgfile"
19529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19530
19531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19532
19533 # Shell to use when invoking shell scripts.
19534 SHELL=$lt_SHELL
19535
19536 # Whether or not to build shared libraries.
19537 build_libtool_libs=$enable_shared
19538
19539 # Whether or not to build static libraries.
19540 build_old_libs=$enable_static
19541
19542 # Whether or not to add -lc for building shared libraries.
19543 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19544
19545 # Whether or not to disallow shared libs when runtime libs are static
19546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19547
19548 # Whether or not to optimize for fast installation.
19549 fast_install=$enable_fast_install
19550
19551 # The host system.
19552 host_alias=$host_alias
19553 host=$host
19554 host_os=$host_os
19555
19556 # The build system.
19557 build_alias=$build_alias
19558 build=$build
19559 build_os=$build_os
19560
19561 # An echo program that does not interpret backslashes.
19562 echo=$lt_echo
19563
19564 # The archiver.
19565 AR=$lt_AR
19566 AR_FLAGS=$lt_AR_FLAGS
19567
19568 # A C compiler.
19569 LTCC=$lt_LTCC
19570
19571 # LTCC compiler flags.
19572 LTCFLAGS=$lt_LTCFLAGS
19573
19574 # A language-specific compiler.
19575 CC=$lt_compiler_GCJ
19576
19577 # Is the compiler the GNU C compiler?
19578 with_gcc=$GCC_GCJ
19579
19580 # An ERE matcher.
19581 EGREP=$lt_EGREP
19582
19583 # The linker used to build libraries.
19584 LD=$lt_LD_GCJ
19585
19586 # Whether we need hard or soft links.
19587 LN_S=$lt_LN_S
19588
19589 # A BSD-compatible nm program.
19590 NM=$lt_NM
19591
19592 # A symbol stripping program
19593 STRIP=$lt_STRIP
19594
19595 # Used to examine libraries when file_magic_cmd begins "file"
19596 MAGIC_CMD=$MAGIC_CMD
19597
19598 # Used on cygwin: DLL creation program.
19599 DLLTOOL="$DLLTOOL"
19600
19601 # Used on cygwin: object dumper.
19602 OBJDUMP="$OBJDUMP"
19603
19604 # Used on cygwin: assembler.
19605 AS="$AS"
19606
19607 # The name of the directory that contains temporary libtool files.
19608 objdir=$objdir
19609
19610 # How to create reloadable object files.
19611 reload_flag=$lt_reload_flag
19612 reload_cmds=$lt_reload_cmds
19613
19614 # How to pass a linker flag through the compiler.
19615 wl=$lt_lt_prog_compiler_wl_GCJ
19616
19617 # Object file suffix (normally "o").
19618 objext="$ac_objext"
19619
19620 # Old archive suffix (normally "a").
19621 libext="$libext"
19622
19623 # Shared library suffix (normally ".so").
19624 shrext_cmds='$shrext_cmds'
19625
19626 # Executable file suffix (normally "").
19627 exeext="$exeext"
19628
19629 # Additional compiler flags for building library objects.
19630 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19631 pic_mode=$pic_mode
19632
19633 # What is the maximum length of a command?
19634 max_cmd_len=$lt_cv_sys_max_cmd_len
19635
19636 # Does compiler simultaneously support -c and -o options?
19637 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19638
19639 # Must we lock files when doing compilation?
19640 need_locks=$lt_need_locks
19641
19642 # Do we need the lib prefix for modules?
19643 need_lib_prefix=$need_lib_prefix
19644
19645 # Do we need a version for libraries?
19646 need_version=$need_version
19647
19648 # Whether dlopen is supported.
19649 dlopen_support=$enable_dlopen
19650
19651 # Whether dlopen of programs is supported.
19652 dlopen_self=$enable_dlopen_self
19653
19654 # Whether dlopen of statically linked programs is supported.
19655 dlopen_self_static=$enable_dlopen_self_static
19656
19657 # Compiler flag to prevent dynamic linking.
19658 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19659
19660 # Compiler flag to turn off builtin functions.
19661 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19662
19663 # Compiler flag to allow reflexive dlopens.
19664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19665
19666 # Compiler flag to generate shared objects directly from archives.
19667 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19668
19669 # Compiler flag to generate thread-safe objects.
19670 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19671
19672 # Library versioning type.
19673 version_type=$version_type
19674
19675 # Format of library name prefix.
19676 libname_spec=$lt_libname_spec
19677
19678 # List of archive names.  First name is the real one, the rest are links.
19679 # The last name is the one that the linker finds with -lNAME.
19680 library_names_spec=$lt_library_names_spec
19681
19682 # The coded name of the library, if different from the real name.
19683 soname_spec=$lt_soname_spec
19684
19685 # Commands used to build and install an old-style archive.
19686 RANLIB=$lt_RANLIB
19687 old_archive_cmds=$lt_old_archive_cmds_GCJ
19688 old_postinstall_cmds=$lt_old_postinstall_cmds
19689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19690
19691 # Create an old-style archive from a shared archive.
19692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19693
19694 # Create a temporary old-style archive to link instead of a shared archive.
19695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19696
19697 # Commands used to build and install a shared archive.
19698 archive_cmds=$lt_archive_cmds_GCJ
19699 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19700 postinstall_cmds=$lt_postinstall_cmds
19701 postuninstall_cmds=$lt_postuninstall_cmds
19702
19703 # Commands used to build a loadable module (assumed same as above if empty)
19704 module_cmds=$lt_module_cmds_GCJ
19705 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19706
19707 # Commands to strip libraries.
19708 old_striplib=$lt_old_striplib
19709 striplib=$lt_striplib
19710
19711 # Dependencies to place before the objects being linked to create a
19712 # shared library.
19713 predep_objects=$lt_predep_objects_GCJ
19714
19715 # Dependencies to place after the objects being linked to create a
19716 # shared library.
19717 postdep_objects=$lt_postdep_objects_GCJ
19718
19719 # Dependencies to place before the objects being linked to create a
19720 # shared library.
19721 predeps=$lt_predeps_GCJ
19722
19723 # Dependencies to place after the objects being linked to create a
19724 # shared library.
19725 postdeps=$lt_postdeps_GCJ
19726
19727 # The library search path used internally by the compiler when linking
19728 # a shared library.
19729 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19730
19731 # Method to check whether dependent libraries are shared objects.
19732 deplibs_check_method=$lt_deplibs_check_method
19733
19734 # Command to use when deplibs_check_method == file_magic.
19735 file_magic_cmd=$lt_file_magic_cmd
19736
19737 # Flag that allows shared libraries with undefined symbols to be built.
19738 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19739
19740 # Flag that forces no undefined symbols.
19741 no_undefined_flag=$lt_no_undefined_flag_GCJ
19742
19743 # Commands used to finish a libtool library installation in a directory.
19744 finish_cmds=$lt_finish_cmds
19745
19746 # Same as above, but a single script fragment to be evaled but not shown.
19747 finish_eval=$lt_finish_eval
19748
19749 # Take the output of nm and produce a listing of raw symbols and C names.
19750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19751
19752 # Transform the output of nm in a proper C declaration
19753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19754
19755 # Transform the output of nm in a C name address pair
19756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19757
19758 # This is the shared library runtime path variable.
19759 runpath_var=$runpath_var
19760
19761 # This is the shared library path variable.
19762 shlibpath_var=$shlibpath_var
19763
19764 # Is shlibpath searched before the hard-coded library search path?
19765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19766
19767 # How to hardcode a shared library path into an executable.
19768 hardcode_action=$hardcode_action_GCJ
19769
19770 # Whether we should hardcode library paths into libraries.
19771 hardcode_into_libs=$hardcode_into_libs
19772
19773 # Flag to hardcode \$libdir into a binary during linking.
19774 # This must work even if \$libdir does not exist.
19775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19776
19777 # If ld is used when linking, flag to hardcode \$libdir into
19778 # a binary during linking. This must work even if \$libdir does
19779 # not exist.
19780 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19781
19782 # Whether we need a single -rpath flag with a separated argument.
19783 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19784
19785 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19786 # resulting binary.
19787 hardcode_direct=$hardcode_direct_GCJ
19788
19789 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19790 # resulting binary.
19791 hardcode_minus_L=$hardcode_minus_L_GCJ
19792
19793 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19794 # the resulting binary.
19795 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19796
19797 # Set to yes if building a shared library automatically hardcodes DIR into the library
19798 # and all subsequent libraries and executables linked against it.
19799 hardcode_automatic=$hardcode_automatic_GCJ
19800
19801 # Variables whose values should be saved in libtool wrapper scripts and
19802 # restored at relink time.
19803 variables_saved_for_relink="$variables_saved_for_relink"
19804
19805 # Whether libtool must link a program against all its dependency libraries.
19806 link_all_deplibs=$link_all_deplibs_GCJ
19807
19808 # Compile-time system search path for libraries
19809 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19810
19811 # Run-time system search path for libraries
19812 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19813
19814 # Fix the shell variable \$srcfile for the compiler.
19815 fix_srcfile_path="$fix_srcfile_path_GCJ"
19816
19817 # Set to yes if exported symbols are required.
19818 always_export_symbols=$always_export_symbols_GCJ
19819
19820 # The commands to list exported symbols.
19821 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19822
19823 # The commands to extract the exported symbol list from a shared archive.
19824 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19825
19826 # Symbols that should not be listed in the preloaded symbols.
19827 exclude_expsyms=$lt_exclude_expsyms_GCJ
19828
19829 # Symbols that must always be exported.
19830 include_expsyms=$lt_include_expsyms_GCJ
19831
19832 # ### END LIBTOOL TAG CONFIG: $tagname
19833
19834 __EOF__
19835
19836
19837 else
19838   # If there is no Makefile yet, we rely on a make rule to execute
19839   # `config.status --recheck' to rerun these tests and create the
19840   # libtool script then.
19841   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19842   if test -f "$ltmain_in"; then
19843     test -f Makefile && make "$ltmain"
19844   fi
19845 fi
19846
19847
19848 ac_ext=c
19849 ac_cpp='$CPP $CPPFLAGS'
19850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19853
19854 CC="$lt_save_CC"
19855
19856         else
19857           tagname=""
19858         fi
19859         ;;
19860
19861       RC)
19862
19863
19864 # Source file extension for RC test sources.
19865 ac_ext=rc
19866
19867 # Object file extension for compiled RC test sources.
19868 objext=o
19869 objext_RC=$objext
19870
19871 # Code to be used in simple compile tests
19872 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19873
19874 # Code to be used in simple link tests
19875 lt_simple_link_test_code="$lt_simple_compile_test_code"
19876
19877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19878
19879 # If no C compiler was specified, use CC.
19880 LTCC=${LTCC-"$CC"}
19881
19882 # If no C compiler flags were specified, use CFLAGS.
19883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19884
19885 # Allow CC to be a program name with arguments.
19886 compiler=$CC
19887
19888
19889 # save warnings/boilerplate of simple test code
19890 ac_outfile=conftest.$ac_objext
19891 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19893 _lt_compiler_boilerplate=`cat conftest.err`
19894 $rm conftest*
19895
19896 ac_outfile=conftest.$ac_objext
19897 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19899 _lt_linker_boilerplate=`cat conftest.err`
19900 $rm conftest*
19901
19902
19903 # Allow CC to be a program name with arguments.
19904 lt_save_CC="$CC"
19905 CC=${RC-"windres"}
19906 compiler=$CC
19907 compiler_RC=$CC
19908 for cc_temp in $compiler""; do
19909   case $cc_temp in
19910     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19911     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19912     \-*) ;;
19913     *) break;;
19914   esac
19915 done
19916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19917
19918 lt_cv_prog_compiler_c_o_RC=yes
19919
19920 # The else clause should only fire when bootstrapping the
19921 # libtool distribution, otherwise you forgot to ship ltmain.sh
19922 # with your package, and you will get complaints that there are
19923 # no rules to generate ltmain.sh.
19924 if test -f "$ltmain"; then
19925   # See if we are running on zsh, and set the options which allow our commands through
19926   # without removal of \ escapes.
19927   if test -n "${ZSH_VERSION+set}" ; then
19928     setopt NO_GLOB_SUBST
19929   fi
19930   # Now quote all the things that may contain metacharacters while being
19931   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19932   # variables and quote the copies for generation of the libtool script.
19933   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19934     SED SHELL STRIP \
19935     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19936     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19937     deplibs_check_method reload_flag reload_cmds need_locks \
19938     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19939     lt_cv_sys_global_symbol_to_c_name_address \
19940     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19941     old_postinstall_cmds old_postuninstall_cmds \
19942     compiler_RC \
19943     CC_RC \
19944     LD_RC \
19945     lt_prog_compiler_wl_RC \
19946     lt_prog_compiler_pic_RC \
19947     lt_prog_compiler_static_RC \
19948     lt_prog_compiler_no_builtin_flag_RC \
19949     export_dynamic_flag_spec_RC \
19950     thread_safe_flag_spec_RC \
19951     whole_archive_flag_spec_RC \
19952     enable_shared_with_static_runtimes_RC \
19953     old_archive_cmds_RC \
19954     old_archive_from_new_cmds_RC \
19955     predep_objects_RC \
19956     postdep_objects_RC \
19957     predeps_RC \
19958     postdeps_RC \
19959     compiler_lib_search_path_RC \
19960     archive_cmds_RC \
19961     archive_expsym_cmds_RC \
19962     postinstall_cmds_RC \
19963     postuninstall_cmds_RC \
19964     old_archive_from_expsyms_cmds_RC \
19965     allow_undefined_flag_RC \
19966     no_undefined_flag_RC \
19967     export_symbols_cmds_RC \
19968     hardcode_libdir_flag_spec_RC \
19969     hardcode_libdir_flag_spec_ld_RC \
19970     hardcode_libdir_separator_RC \
19971     hardcode_automatic_RC \
19972     module_cmds_RC \
19973     module_expsym_cmds_RC \
19974     lt_cv_prog_compiler_c_o_RC \
19975     exclude_expsyms_RC \
19976     include_expsyms_RC; do
19977
19978     case $var in
19979     old_archive_cmds_RC | \
19980     old_archive_from_new_cmds_RC | \
19981     archive_cmds_RC | \
19982     archive_expsym_cmds_RC | \
19983     module_cmds_RC | \
19984     module_expsym_cmds_RC | \
19985     old_archive_from_expsyms_cmds_RC | \
19986     export_symbols_cmds_RC | \
19987     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19988     postinstall_cmds | postuninstall_cmds | \
19989     old_postinstall_cmds | old_postuninstall_cmds | \
19990     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19991       # Double-quote double-evaled strings.
19992       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19993       ;;
19994     *)
19995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19996       ;;
19997     esac
19998   done
19999
20000   case $lt_echo in
20001   *'\$0 --fallback-echo"')
20002     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20003     ;;
20004   esac
20005
20006 cfgfile="$ofile"
20007
20008   cat <<__EOF__ >> "$cfgfile"
20009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20010
20011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20012
20013 # Shell to use when invoking shell scripts.
20014 SHELL=$lt_SHELL
20015
20016 # Whether or not to build shared libraries.
20017 build_libtool_libs=$enable_shared
20018
20019 # Whether or not to build static libraries.
20020 build_old_libs=$enable_static
20021
20022 # Whether or not to add -lc for building shared libraries.
20023 build_libtool_need_lc=$archive_cmds_need_lc_RC
20024
20025 # Whether or not to disallow shared libs when runtime libs are static
20026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20027
20028 # Whether or not to optimize for fast installation.
20029 fast_install=$enable_fast_install
20030
20031 # The host system.
20032 host_alias=$host_alias
20033 host=$host
20034 host_os=$host_os
20035
20036 # The build system.
20037 build_alias=$build_alias
20038 build=$build
20039 build_os=$build_os
20040
20041 # An echo program that does not interpret backslashes.
20042 echo=$lt_echo
20043
20044 # The archiver.
20045 AR=$lt_AR
20046 AR_FLAGS=$lt_AR_FLAGS
20047
20048 # A C compiler.
20049 LTCC=$lt_LTCC
20050
20051 # LTCC compiler flags.
20052 LTCFLAGS=$lt_LTCFLAGS
20053
20054 # A language-specific compiler.
20055 CC=$lt_compiler_RC
20056
20057 # Is the compiler the GNU C compiler?
20058 with_gcc=$GCC_RC
20059
20060 # An ERE matcher.
20061 EGREP=$lt_EGREP
20062
20063 # The linker used to build libraries.
20064 LD=$lt_LD_RC
20065
20066 # Whether we need hard or soft links.
20067 LN_S=$lt_LN_S
20068
20069 # A BSD-compatible nm program.
20070 NM=$lt_NM
20071
20072 # A symbol stripping program
20073 STRIP=$lt_STRIP
20074
20075 # Used to examine libraries when file_magic_cmd begins "file"
20076 MAGIC_CMD=$MAGIC_CMD
20077
20078 # Used on cygwin: DLL creation program.
20079 DLLTOOL="$DLLTOOL"
20080
20081 # Used on cygwin: object dumper.
20082 OBJDUMP="$OBJDUMP"
20083
20084 # Used on cygwin: assembler.
20085 AS="$AS"
20086
20087 # The name of the directory that contains temporary libtool files.
20088 objdir=$objdir
20089
20090 # How to create reloadable object files.
20091 reload_flag=$lt_reload_flag
20092 reload_cmds=$lt_reload_cmds
20093
20094 # How to pass a linker flag through the compiler.
20095 wl=$lt_lt_prog_compiler_wl_RC
20096
20097 # Object file suffix (normally "o").
20098 objext="$ac_objext"
20099
20100 # Old archive suffix (normally "a").
20101 libext="$libext"
20102
20103 # Shared library suffix (normally ".so").
20104 shrext_cmds='$shrext_cmds'
20105
20106 # Executable file suffix (normally "").
20107 exeext="$exeext"
20108
20109 # Additional compiler flags for building library objects.
20110 pic_flag=$lt_lt_prog_compiler_pic_RC
20111 pic_mode=$pic_mode
20112
20113 # What is the maximum length of a command?
20114 max_cmd_len=$lt_cv_sys_max_cmd_len
20115
20116 # Does compiler simultaneously support -c and -o options?
20117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20118
20119 # Must we lock files when doing compilation?
20120 need_locks=$lt_need_locks
20121
20122 # Do we need the lib prefix for modules?
20123 need_lib_prefix=$need_lib_prefix
20124
20125 # Do we need a version for libraries?
20126 need_version=$need_version
20127
20128 # Whether dlopen is supported.
20129 dlopen_support=$enable_dlopen
20130
20131 # Whether dlopen of programs is supported.
20132 dlopen_self=$enable_dlopen_self
20133
20134 # Whether dlopen of statically linked programs is supported.
20135 dlopen_self_static=$enable_dlopen_self_static
20136
20137 # Compiler flag to prevent dynamic linking.
20138 link_static_flag=$lt_lt_prog_compiler_static_RC
20139
20140 # Compiler flag to turn off builtin functions.
20141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20142
20143 # Compiler flag to allow reflexive dlopens.
20144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20145
20146 # Compiler flag to generate shared objects directly from archives.
20147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20148
20149 # Compiler flag to generate thread-safe objects.
20150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20151
20152 # Library versioning type.
20153 version_type=$version_type
20154
20155 # Format of library name prefix.
20156 libname_spec=$lt_libname_spec
20157
20158 # List of archive names.  First name is the real one, the rest are links.
20159 # The last name is the one that the linker finds with -lNAME.
20160 library_names_spec=$lt_library_names_spec
20161
20162 # The coded name of the library, if different from the real name.
20163 soname_spec=$lt_soname_spec
20164
20165 # Commands used to build and install an old-style archive.
20166 RANLIB=$lt_RANLIB
20167 old_archive_cmds=$lt_old_archive_cmds_RC
20168 old_postinstall_cmds=$lt_old_postinstall_cmds
20169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20170
20171 # Create an old-style archive from a shared archive.
20172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20173
20174 # Create a temporary old-style archive to link instead of a shared archive.
20175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20176
20177 # Commands used to build and install a shared archive.
20178 archive_cmds=$lt_archive_cmds_RC
20179 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20180 postinstall_cmds=$lt_postinstall_cmds
20181 postuninstall_cmds=$lt_postuninstall_cmds
20182
20183 # Commands used to build a loadable module (assumed same as above if empty)
20184 module_cmds=$lt_module_cmds_RC
20185 module_expsym_cmds=$lt_module_expsym_cmds_RC
20186
20187 # Commands to strip libraries.
20188 old_striplib=$lt_old_striplib
20189 striplib=$lt_striplib
20190
20191 # Dependencies to place before the objects being linked to create a
20192 # shared library.
20193 predep_objects=$lt_predep_objects_RC
20194
20195 # Dependencies to place after the objects being linked to create a
20196 # shared library.
20197 postdep_objects=$lt_postdep_objects_RC
20198
20199 # Dependencies to place before the objects being linked to create a
20200 # shared library.
20201 predeps=$lt_predeps_RC
20202
20203 # Dependencies to place after the objects being linked to create a
20204 # shared library.
20205 postdeps=$lt_postdeps_RC
20206
20207 # The library search path used internally by the compiler when linking
20208 # a shared library.
20209 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20210
20211 # Method to check whether dependent libraries are shared objects.
20212 deplibs_check_method=$lt_deplibs_check_method
20213
20214 # Command to use when deplibs_check_method == file_magic.
20215 file_magic_cmd=$lt_file_magic_cmd
20216
20217 # Flag that allows shared libraries with undefined symbols to be built.
20218 allow_undefined_flag=$lt_allow_undefined_flag_RC
20219
20220 # Flag that forces no undefined symbols.
20221 no_undefined_flag=$lt_no_undefined_flag_RC
20222
20223 # Commands used to finish a libtool library installation in a directory.
20224 finish_cmds=$lt_finish_cmds
20225
20226 # Same as above, but a single script fragment to be evaled but not shown.
20227 finish_eval=$lt_finish_eval
20228
20229 # Take the output of nm and produce a listing of raw symbols and C names.
20230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20231
20232 # Transform the output of nm in a proper C declaration
20233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20234
20235 # Transform the output of nm in a C name address pair
20236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20237
20238 # This is the shared library runtime path variable.
20239 runpath_var=$runpath_var
20240
20241 # This is the shared library path variable.
20242 shlibpath_var=$shlibpath_var
20243
20244 # Is shlibpath searched before the hard-coded library search path?
20245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20246
20247 # How to hardcode a shared library path into an executable.
20248 hardcode_action=$hardcode_action_RC
20249
20250 # Whether we should hardcode library paths into libraries.
20251 hardcode_into_libs=$hardcode_into_libs
20252
20253 # Flag to hardcode \$libdir into a binary during linking.
20254 # This must work even if \$libdir does not exist.
20255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20256
20257 # If ld is used when linking, flag to hardcode \$libdir into
20258 # a binary during linking. This must work even if \$libdir does
20259 # not exist.
20260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20261
20262 # Whether we need a single -rpath flag with a separated argument.
20263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20264
20265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20266 # resulting binary.
20267 hardcode_direct=$hardcode_direct_RC
20268
20269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20270 # resulting binary.
20271 hardcode_minus_L=$hardcode_minus_L_RC
20272
20273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20274 # the resulting binary.
20275 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20276
20277 # Set to yes if building a shared library automatically hardcodes DIR into the library
20278 # and all subsequent libraries and executables linked against it.
20279 hardcode_automatic=$hardcode_automatic_RC
20280
20281 # Variables whose values should be saved in libtool wrapper scripts and
20282 # restored at relink time.
20283 variables_saved_for_relink="$variables_saved_for_relink"
20284
20285 # Whether libtool must link a program against all its dependency libraries.
20286 link_all_deplibs=$link_all_deplibs_RC
20287
20288 # Compile-time system search path for libraries
20289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20290
20291 # Run-time system search path for libraries
20292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20293
20294 # Fix the shell variable \$srcfile for the compiler.
20295 fix_srcfile_path="$fix_srcfile_path_RC"
20296
20297 # Set to yes if exported symbols are required.
20298 always_export_symbols=$always_export_symbols_RC
20299
20300 # The commands to list exported symbols.
20301 export_symbols_cmds=$lt_export_symbols_cmds_RC
20302
20303 # The commands to extract the exported symbol list from a shared archive.
20304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20305
20306 # Symbols that should not be listed in the preloaded symbols.
20307 exclude_expsyms=$lt_exclude_expsyms_RC
20308
20309 # Symbols that must always be exported.
20310 include_expsyms=$lt_include_expsyms_RC
20311
20312 # ### END LIBTOOL TAG CONFIG: $tagname
20313
20314 __EOF__
20315
20316
20317 else
20318   # If there is no Makefile yet, we rely on a make rule to execute
20319   # `config.status --recheck' to rerun these tests and create the
20320   # libtool script then.
20321   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20322   if test -f "$ltmain_in"; then
20323     test -f Makefile && make "$ltmain"
20324   fi
20325 fi
20326
20327
20328 ac_ext=c
20329 ac_cpp='$CPP $CPPFLAGS'
20330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20333
20334 CC="$lt_save_CC"
20335
20336         ;;
20337
20338       *)
20339         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20340 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20341    { (exit 1); exit 1; }; }
20342         ;;
20343       esac
20344
20345       # Append the new tag name to the list of available tags.
20346       if test -n "$tagname" ; then
20347       available_tags="$available_tags $tagname"
20348     fi
20349     fi
20350   done
20351   IFS="$lt_save_ifs"
20352
20353   # Now substitute the updated list of available tags.
20354   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20355     mv "${ofile}T" "$ofile"
20356     chmod +x "$ofile"
20357   else
20358     rm -f "${ofile}T"
20359     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20360 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20361    { (exit 1); exit 1; }; }
20362   fi
20363 fi
20364
20365
20366
20367 # This can be used to rebuild libtool when needed
20368 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20369
20370 # Always use our own libtool.
20371 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20372
20373 # Prevent multiple expansion
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394 # Extract the first word of "glib-genmarshal", so it can be a program name with args.
20395 set dummy glib-genmarshal; ac_word=$2
20396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20398 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401   case $GLIB_GENMARSHAL in
20402   [\\/]* | ?:[\\/]*)
20403   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
20404   ;;
20405   *)
20406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20407 for as_dir in $PATH
20408 do
20409   IFS=$as_save_IFS
20410   test -z "$as_dir" && as_dir=.
20411   for ac_exec_ext in '' $ac_executable_extensions; do
20412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20413     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
20414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20415     break 2
20416   fi
20417 done
20418 done
20419 IFS=$as_save_IFS
20420
20421   ;;
20422 esac
20423 fi
20424 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
20425 if test -n "$GLIB_GENMARSHAL"; then
20426   { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
20427 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
20428 else
20429   { echo "$as_me:$LINENO: result: no" >&5
20430 echo "${ECHO_T}no" >&6; }
20431 fi
20432
20433
20434
20435 if test "x$GCC" = "xyes"; then
20436   case " $CFLAGS " in
20437   *[\ \ ]-Wall[\ \      ]*) ;;
20438   *) CFLAGS="$CFLAGS -Wall" ;;
20439   esac
20440
20441   if test "x$enable_ansi" = "xyes"; then
20442     case " $CFLAGS " in
20443     *[\ \       ]-ansi[\ \      ]*) ;;
20444     *) CFLAGS="$CFLAGS -ansi" ;;
20445     esac
20446
20447     case " $CFLAGS " in
20448     *[\ \       ]-pedantic[\ \  ]*) ;;
20449     *) CFLAGS="$CFLAGS -pedantic" ;;
20450     esac
20451   fi
20452 fi
20453
20454 MAJOR_VERSION=2
20455
20456
20457 GETTEXT_PACKAGE=GConf$MAJOR_VERSION
20458
20459
20460 cat >>confdefs.h <<_ACEOF
20461 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20462 _ACEOF
20463
20464
20465
20466 GCONF_CURRENT=5
20467
20468 GCONF_REVISION=0
20469
20470 GCONF_AGE=1
20471
20472
20473
20474
20475
20476 # find the actual value for $prefix that we'll end up with
20477 REAL_PREFIX=
20478 if test "x$prefix" = "xNONE"; then
20479   REAL_PREFIX=$ac_default_prefix
20480 else
20481   REAL_PREFIX=$prefix
20482 fi
20483
20484
20485 # Check whether --with-sysconfsubdir was given.
20486 if test "${with_sysconfsubdir+set}" = set; then
20487   withval=$with_sysconfsubdir; sysconfsubdir=${withval}
20488 else
20489   sysconfsubdir=gconf
20490 fi
20491
20492
20493 if test x"${sysconfsubdir}" != x; then
20494     sysgconfdir='${sysconfdir}/${sysconfsubdir}'
20495 else
20496     sysgconfdir='${sysconfdir}'
20497 fi
20498
20499
20500 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
20501
20502 # Check whether --enable-debug was given.
20503 if test "${enable_debug+set}" = set; then
20504   enableval=$enable_debug;
20505 else
20506   enable_debug=minimum
20507 fi
20508
20509
20510 if test "x$enable_debug" = "xyes"; then
20511         CFLAGS="$CFLAGS -DGCONF_ENABLE_DEBUG=1"
20512         echo "FYI: " "Will build with debugging spew and checks"
20513 else
20514   if test "x$enable_debug" = "xno"; then
20515           CFLAGS="$CFLAGS -DG_DISABLE_CHECKS=1 -DG_DISABLE_ASSERT=1"
20516           echo "FYI: " "Will build without *any* debugging code"
20517   else
20518           echo "FYI: " "Will build with debug checks but no debug spew"
20519   fi
20520 fi
20521
20522
20523
20524 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20525         if test -n "$ac_tool_prefix"; then
20526   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20527 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   case $PKG_CONFIG in
20534   [\\/]* | ?:[\\/]*)
20535   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20536   ;;
20537   *)
20538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20539 for as_dir in $PATH
20540 do
20541   IFS=$as_save_IFS
20542   test -z "$as_dir" && as_dir=.
20543   for ac_exec_ext in '' $ac_executable_extensions; do
20544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20545     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20547     break 2
20548   fi
20549 done
20550 done
20551 IFS=$as_save_IFS
20552
20553   ;;
20554 esac
20555 fi
20556 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20557 if test -n "$PKG_CONFIG"; then
20558   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20559 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20560 else
20561   { echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6; }
20563 fi
20564
20565
20566 fi
20567 if test -z "$ac_cv_path_PKG_CONFIG"; then
20568   ac_pt_PKG_CONFIG=$PKG_CONFIG
20569   # Extract the first word of "pkg-config", so it can be a program name with args.
20570 set dummy pkg-config; ac_word=$2
20571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20573 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576   case $ac_pt_PKG_CONFIG in
20577   [\\/]* | ?:[\\/]*)
20578   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20579   ;;
20580   *)
20581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20582 for as_dir in $PATH
20583 do
20584   IFS=$as_save_IFS
20585   test -z "$as_dir" && as_dir=.
20586   for ac_exec_ext in '' $ac_executable_extensions; do
20587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20588     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20590     break 2
20591   fi
20592 done
20593 done
20594 IFS=$as_save_IFS
20595
20596   ;;
20597 esac
20598 fi
20599 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20600 if test -n "$ac_pt_PKG_CONFIG"; then
20601   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20602 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20603 else
20604   { echo "$as_me:$LINENO: result: no" >&5
20605 echo "${ECHO_T}no" >&6; }
20606 fi
20607
20608   if test "x$ac_pt_PKG_CONFIG" = x; then
20609     PKG_CONFIG=""
20610   else
20611     case $cross_compiling:$ac_tool_warned in
20612 yes:)
20613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20614 whose name does not start with the host triplet.  If you think this
20615 configuration is useful to you, please write to autoconf@gnu.org." >&5
20616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20617 whose name does not start with the host triplet.  If you think this
20618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20619 ac_tool_warned=yes ;;
20620 esac
20621     PKG_CONFIG=$ac_pt_PKG_CONFIG
20622   fi
20623 else
20624   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20625 fi
20626
20627 fi
20628 if test -n "$PKG_CONFIG"; then
20629         _pkg_min_version=0.9.0
20630         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20631 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20632         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20633                 { echo "$as_me:$LINENO: result: yes" >&5
20634 echo "${ECHO_T}yes" >&6; }
20635         else
20636                 { echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6; }
20638                 PKG_CONFIG=""
20639         fi
20640
20641 fi
20642
20643
20644 # Check whether --with-html-dir was given.
20645 if test "${with_html_dir+set}" = set; then
20646   withval=$with_html_dir;
20647 else
20648   with_html_dir='${datadir}/gtk-doc/html'
20649 fi
20650
20651   HTML_DIR="$with_html_dir"
20652
20653
20654     # Check whether --enable-gtk-doc was given.
20655 if test "${enable_gtk_doc+set}" = set; then
20656   enableval=$enable_gtk_doc;
20657 else
20658   enable_gtk_doc=no
20659 fi
20660
20661
20662   if test x$enable_gtk_doc = xyes; then
20663     if test -n "$PKG_CONFIG" && \
20664     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\"") >&5
20665   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; then
20669   :
20670 else
20671   { { echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&5
20672 echo "$as_me: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&2;}
20673    { (exit 1); exit 1; }; }
20674 fi
20675   fi
20676
20677   { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
20678 echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; }
20679   { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
20680 echo "${ECHO_T}$enable_gtk_doc" >&6; }
20681
20682   for ac_prog in gtkdoc-check
20683 do
20684   # Extract the first word of "$ac_prog", so it can be a program name with args.
20685 set dummy $ac_prog; ac_word=$2
20686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20688 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
20689   echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691   case $GTKDOC_CHECK in
20692   [\\/]* | ?:[\\/]*)
20693   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
20694   ;;
20695   *)
20696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20697 for as_dir in $PATH
20698 do
20699   IFS=$as_save_IFS
20700   test -z "$as_dir" && as_dir=.
20701   for ac_exec_ext in '' $ac_executable_extensions; do
20702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20703     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20705     break 2
20706   fi
20707 done
20708 done
20709 IFS=$as_save_IFS
20710
20711   ;;
20712 esac
20713 fi
20714 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
20715 if test -n "$GTKDOC_CHECK"; then
20716   { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
20717 echo "${ECHO_T}$GTKDOC_CHECK" >&6; }
20718 else
20719   { echo "$as_me:$LINENO: result: no" >&5
20720 echo "${ECHO_T}no" >&6; }
20721 fi
20722
20723
20724   test -n "$GTKDOC_CHECK" && break
20725 done
20726
20727
20728
20729
20730 if test x$enable_gtk_doc = xyes; then
20731   ENABLE_GTK_DOC_TRUE=
20732   ENABLE_GTK_DOC_FALSE='#'
20733 else
20734   ENABLE_GTK_DOC_TRUE='#'
20735   ENABLE_GTK_DOC_FALSE=
20736 fi
20737
20738
20739
20740 if test -n "$LIBTOOL"; then
20741   GTK_DOC_USE_LIBTOOL_TRUE=
20742   GTK_DOC_USE_LIBTOOL_FALSE='#'
20743 else
20744   GTK_DOC_USE_LIBTOOL_TRUE='#'
20745   GTK_DOC_USE_LIBTOOL_FALSE=
20746 fi
20747
20748
20749
20750 # Check whether --enable-gtk was given.
20751 if test "${enable_gtk+set}" = set; then
20752   enableval=$enable_gtk; enable_gtk="$enableval"
20753 else
20754   enable_gtk=auto
20755 fi
20756
20757
20758 # Check whether --enable-system-bus was given.
20759 if test "${enable_system_bus+set}" = set; then
20760   enableval=$enable_system_bus; enable_system_bus="$enableval"
20761 else
20762   enable_system_bus=no
20763 fi
20764
20765
20766
20767
20768 if test x$enable_system_bus = xyes; then
20769   USE_SYSTEM_BUS_TRUE=
20770   USE_SYSTEM_BUS_FALSE='#'
20771 else
20772   USE_SYSTEM_BUS_TRUE='#'
20773   USE_SYSTEM_BUS_FALSE=
20774 fi
20775
20776 if test x$enable_system_bus = xyes; then
20777
20778 cat >>confdefs.h <<\_ACEOF
20779 #define USE_SYSTEM_BUS 1
20780 _ACEOF
20781
20782 fi
20783
20784
20785 # Check whether --with-dbus_service_dir was given.
20786 if test "${with_dbus_service_dir+set}" = set; then
20787   withval=$with_dbus_service_dir; with_dbus_service_dir="$withval"
20788 else
20789   with_dbus_service_dir=$datadir/dbus-1/services
20790 fi
20791
20792
20793 DBUS_SERVICE_DIR=$with_dbus_service_dir
20794
20795
20796 PKGCONFIG_MODULES='glib-2.0 > 2.8.0 gmodule-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0 dbus-glib-1 >= 0.60'
20797 PKGCONFIG_MODULES_WITH_XML="$PKGCONFIG_MODULES libxml-2.0"
20798 PKGCONFIG_MODULES_WITH_GTK=" $PKGCONFIG_MODULES gtk+-2.0 >= 2.0.0"
20799 PKGCONFIG_MODULES_WITH_XML_AND_GTK=" $PKGCONFIG_MODULES gtk+-2.0 libxml-2.0"
20800
20801
20802 pkg_failed=no
20803 { echo "$as_me:$LINENO: checking for DEPENDENT" >&5
20804 echo $ECHO_N "checking for DEPENDENT... $ECHO_C" >&6; }
20805
20806 if test -n "$PKG_CONFIG"; then
20807     if test -n "$DEPENDENT_CFLAGS"; then
20808         pkg_cv_DEPENDENT_CFLAGS="$DEPENDENT_CFLAGS"
20809     else
20810         if test -n "$PKG_CONFIG" && \
20811     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES\"") >&5
20812   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES") 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; then
20816   pkg_cv_DEPENDENT_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES" 2>/dev/null`
20817 else
20818   pkg_failed=yes
20819 fi
20820     fi
20821 else
20822         pkg_failed=untried
20823 fi
20824 if test -n "$PKG_CONFIG"; then
20825     if test -n "$DEPENDENT_LIBS"; then
20826         pkg_cv_DEPENDENT_LIBS="$DEPENDENT_LIBS"
20827     else
20828         if test -n "$PKG_CONFIG" && \
20829     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES\"") >&5
20830   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES") 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; then
20834   pkg_cv_DEPENDENT_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES" 2>/dev/null`
20835 else
20836   pkg_failed=yes
20837 fi
20838     fi
20839 else
20840         pkg_failed=untried
20841 fi
20842
20843
20844
20845 if test $pkg_failed = yes; then
20846
20847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20848         _pkg_short_errors_supported=yes
20849 else
20850         _pkg_short_errors_supported=no
20851 fi
20852         if test $_pkg_short_errors_supported = yes; then
20853                 DEPENDENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES"`
20854         else
20855                 DEPENDENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES"`
20856         fi
20857         # Put the nasty error message in config.log where it belongs
20858         echo "$DEPENDENT_PKG_ERRORS" >&5
20859
20860         { { echo "$as_me:$LINENO: error: Package requirements ($PKGCONFIG_MODULES) were not met:
20861
20862 $DEPENDENT_PKG_ERRORS
20863
20864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20865 installed software in a non-standard prefix.
20866
20867 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20868 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20869 See the pkg-config man page for more details.
20870 " >&5
20871 echo "$as_me: error: Package requirements ($PKGCONFIG_MODULES) were not met:
20872
20873 $DEPENDENT_PKG_ERRORS
20874
20875 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20876 installed software in a non-standard prefix.
20877
20878 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20879 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20880 See the pkg-config man page for more details.
20881 " >&2;}
20882    { (exit 1); exit 1; }; }
20883 elif test $pkg_failed = untried; then
20884         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20885 is in your PATH or set the PKG_CONFIG environment variable to the full
20886 path to pkg-config.
20887
20888 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20889 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20890 See the pkg-config man page for more details.
20891
20892 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20893 See \`config.log' for more details." >&5
20894 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20895 is in your PATH or set the PKG_CONFIG environment variable to the full
20896 path to pkg-config.
20897
20898 Alternatively, you may set the environment variables DEPENDENT_CFLAGS
20899 and DEPENDENT_LIBS to avoid the need to call pkg-config.
20900 See the pkg-config man page for more details.
20901
20902 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20903 See \`config.log' for more details." >&2;}
20904    { (exit 1); exit 1; }; }
20905 else
20906         DEPENDENT_CFLAGS=$pkg_cv_DEPENDENT_CFLAGS
20907         DEPENDENT_LIBS=$pkg_cv_DEPENDENT_LIBS
20908         { echo "$as_me:$LINENO: result: yes" >&5
20909 echo "${ECHO_T}yes" >&6; }
20910         :
20911 fi
20912
20913 pkg_failed=no
20914 { echo "$as_me:$LINENO: checking for DEPENDENT_WITH_XML" >&5
20915 echo $ECHO_N "checking for DEPENDENT_WITH_XML... $ECHO_C" >&6; }
20916
20917 if test -n "$PKG_CONFIG"; then
20918     if test -n "$DEPENDENT_WITH_XML_CFLAGS"; then
20919         pkg_cv_DEPENDENT_WITH_XML_CFLAGS="$DEPENDENT_WITH_XML_CFLAGS"
20920     else
20921         if test -n "$PKG_CONFIG" && \
20922     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML\"") >&5
20923   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML") 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; then
20927   pkg_cv_DEPENDENT_WITH_XML_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES_WITH_XML" 2>/dev/null`
20928 else
20929   pkg_failed=yes
20930 fi
20931     fi
20932 else
20933         pkg_failed=untried
20934 fi
20935 if test -n "$PKG_CONFIG"; then
20936     if test -n "$DEPENDENT_WITH_XML_LIBS"; then
20937         pkg_cv_DEPENDENT_WITH_XML_LIBS="$DEPENDENT_WITH_XML_LIBS"
20938     else
20939         if test -n "$PKG_CONFIG" && \
20940     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML\"") >&5
20941   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML") 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); }; then
20945   pkg_cv_DEPENDENT_WITH_XML_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES_WITH_XML" 2>/dev/null`
20946 else
20947   pkg_failed=yes
20948 fi
20949     fi
20950 else
20951         pkg_failed=untried
20952 fi
20953
20954
20955
20956 if test $pkg_failed = yes; then
20957
20958 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20959         _pkg_short_errors_supported=yes
20960 else
20961         _pkg_short_errors_supported=no
20962 fi
20963         if test $_pkg_short_errors_supported = yes; then
20964                 DEPENDENT_WITH_XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML"`
20965         else
20966                 DEPENDENT_WITH_XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML"`
20967         fi
20968         # Put the nasty error message in config.log where it belongs
20969         echo "$DEPENDENT_WITH_XML_PKG_ERRORS" >&5
20970
20971         { { echo "$as_me:$LINENO: error: Package requirements ($PKGCONFIG_MODULES_WITH_XML) were not met:
20972
20973 $DEPENDENT_WITH_XML_PKG_ERRORS
20974
20975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20976 installed software in a non-standard prefix.
20977
20978 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
20979 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
20980 See the pkg-config man page for more details.
20981 " >&5
20982 echo "$as_me: error: Package requirements ($PKGCONFIG_MODULES_WITH_XML) were not met:
20983
20984 $DEPENDENT_WITH_XML_PKG_ERRORS
20985
20986 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20987 installed software in a non-standard prefix.
20988
20989 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
20990 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
20991 See the pkg-config man page for more details.
20992 " >&2;}
20993    { (exit 1); exit 1; }; }
20994 elif test $pkg_failed = untried; then
20995         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20996 is in your PATH or set the PKG_CONFIG environment variable to the full
20997 path to pkg-config.
20998
20999 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
21000 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
21001 See the pkg-config man page for more details.
21002
21003 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21004 See \`config.log' for more details." >&5
21005 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21006 is in your PATH or set the PKG_CONFIG environment variable to the full
21007 path to pkg-config.
21008
21009 Alternatively, you may set the environment variables DEPENDENT_WITH_XML_CFLAGS
21010 and DEPENDENT_WITH_XML_LIBS to avoid the need to call pkg-config.
21011 See the pkg-config man page for more details.
21012
21013 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21014 See \`config.log' for more details." >&2;}
21015    { (exit 1); exit 1; }; }
21016 else
21017         DEPENDENT_WITH_XML_CFLAGS=$pkg_cv_DEPENDENT_WITH_XML_CFLAGS
21018         DEPENDENT_WITH_XML_LIBS=$pkg_cv_DEPENDENT_WITH_XML_LIBS
21019         { echo "$as_me:$LINENO: result: yes" >&5
21020 echo "${ECHO_T}yes" >&6; }
21021         :
21022 fi
21023
21024 if test "x$enable_gtk" != "xno"; then
21025
21026 pkg_failed=no
21027 { echo "$as_me:$LINENO: checking for DEPENDENT_WITH_GTK" >&5
21028 echo $ECHO_N "checking for DEPENDENT_WITH_GTK... $ECHO_C" >&6; }
21029
21030 if test -n "$PKG_CONFIG"; then
21031     if test -n "$DEPENDENT_WITH_GTK_CFLAGS"; then
21032         pkg_cv_DEPENDENT_WITH_GTK_CFLAGS="$DEPENDENT_WITH_GTK_CFLAGS"
21033     else
21034         if test -n "$PKG_CONFIG" && \
21035     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_GTK\"") >&5
21036   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_GTK") 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; then
21040   pkg_cv_DEPENDENT_WITH_GTK_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES_WITH_GTK" 2>/dev/null`
21041 else
21042   pkg_failed=yes
21043 fi
21044     fi
21045 else
21046         pkg_failed=untried
21047 fi
21048 if test -n "$PKG_CONFIG"; then
21049     if test -n "$DEPENDENT_WITH_GTK_LIBS"; then
21050         pkg_cv_DEPENDENT_WITH_GTK_LIBS="$DEPENDENT_WITH_GTK_LIBS"
21051     else
21052         if test -n "$PKG_CONFIG" && \
21053     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_GTK\"") >&5
21054   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_GTK") 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; then
21058   pkg_cv_DEPENDENT_WITH_GTK_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES_WITH_GTK" 2>/dev/null`
21059 else
21060   pkg_failed=yes
21061 fi
21062     fi
21063 else
21064         pkg_failed=untried
21065 fi
21066
21067
21068
21069 if test $pkg_failed = yes; then
21070
21071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21072         _pkg_short_errors_supported=yes
21073 else
21074         _pkg_short_errors_supported=no
21075 fi
21076         if test $_pkg_short_errors_supported = yes; then
21077                 DEPENDENT_WITH_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_GTK"`
21078         else
21079                 DEPENDENT_WITH_GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_GTK"`
21080         fi
21081         # Put the nasty error message in config.log where it belongs
21082         echo "$DEPENDENT_WITH_GTK_PKG_ERRORS" >&5
21083
21084         HAVE_GTK=no
21085 elif test $pkg_failed = untried; then
21086         HAVE_GTK=no
21087 else
21088         DEPENDENT_WITH_GTK_CFLAGS=$pkg_cv_DEPENDENT_WITH_GTK_CFLAGS
21089         DEPENDENT_WITH_GTK_LIBS=$pkg_cv_DEPENDENT_WITH_GTK_LIBS
21090         { echo "$as_me:$LINENO: result: yes" >&5
21091 echo "${ECHO_T}yes" >&6; }
21092         HAVE_GTK=yes
21093 fi
21094
21095 pkg_failed=no
21096 { echo "$as_me:$LINENO: checking for DEPENDENT_WITH_XML_AND_GTK" >&5
21097 echo $ECHO_N "checking for DEPENDENT_WITH_XML_AND_GTK... $ECHO_C" >&6; }
21098
21099 if test -n "$PKG_CONFIG"; then
21100     if test -n "$DEPENDENT_WITH_XML_AND_GTK_CFLAGS"; then
21101         pkg_cv_DEPENDENT_WITH_XML_AND_GTK_CFLAGS="$DEPENDENT_WITH_XML_AND_GTK_CFLAGS"
21102     else
21103         if test -n "$PKG_CONFIG" && \
21104     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML_AND_GTK\"") >&5
21105   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK") 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; then
21109   pkg_cv_DEPENDENT_WITH_XML_AND_GTK_CFLAGS=`$PKG_CONFIG --cflags "$PKGCONFIG_MODULES_WITH_XML_AND_GTK" 2>/dev/null`
21110 else
21111   pkg_failed=yes
21112 fi
21113     fi
21114 else
21115         pkg_failed=untried
21116 fi
21117 if test -n "$PKG_CONFIG"; then
21118     if test -n "$DEPENDENT_WITH_XML_AND_GTK_LIBS"; then
21119         pkg_cv_DEPENDENT_WITH_XML_AND_GTK_LIBS="$DEPENDENT_WITH_XML_AND_GTK_LIBS"
21120     else
21121         if test -n "$PKG_CONFIG" && \
21122     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$PKGCONFIG_MODULES_WITH_XML_AND_GTK\"") >&5
21123   ($PKG_CONFIG --exists --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK") 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; then
21127   pkg_cv_DEPENDENT_WITH_XML_AND_GTK_LIBS=`$PKG_CONFIG --libs "$PKGCONFIG_MODULES_WITH_XML_AND_GTK" 2>/dev/null`
21128 else
21129   pkg_failed=yes
21130 fi
21131     fi
21132 else
21133         pkg_failed=untried
21134 fi
21135
21136
21137
21138 if test $pkg_failed = yes; then
21139
21140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21141         _pkg_short_errors_supported=yes
21142 else
21143         _pkg_short_errors_supported=no
21144 fi
21145         if test $_pkg_short_errors_supported = yes; then
21146                 DEPENDENT_WITH_XML_AND_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK"`
21147         else
21148                 DEPENDENT_WITH_XML_AND_GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$PKGCONFIG_MODULES_WITH_XML_AND_GTK"`
21149         fi
21150         # Put the nasty error message in config.log where it belongs
21151         echo "$DEPENDENT_WITH_XML_AND_GTK_PKG_ERRORS" >&5
21152
21153         DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$DEPENDENT_WITH_XML_CFLAGS DEPENDENT_WITH_XML_AND_GTK_LIBS=$DEPENDENT_WITH_XML_LIBS
21154 elif test $pkg_failed = untried; then
21155         DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$DEPENDENT_WITH_XML_CFLAGS DEPENDENT_WITH_XML_AND_GTK_LIBS=$DEPENDENT_WITH_XML_LIBS
21156 else
21157         DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$pkg_cv_DEPENDENT_WITH_XML_AND_GTK_CFLAGS
21158         DEPENDENT_WITH_XML_AND_GTK_LIBS=$pkg_cv_DEPENDENT_WITH_XML_AND_GTK_LIBS
21159         { echo "$as_me:$LINENO: result: yes" >&5
21160 echo "${ECHO_T}yes" >&6; }
21161         :
21162 fi
21163
21164   if test "x$enable_gtk" = "xyes" && test "x$HAVE_GTK" = "xno"; then
21165     { { echo "$as_me:$LINENO: error:
21166 *** Could not find GTK+ 2.0 or greater.
21167 *** Go to http://www.gtk.org/ to get it." >&5
21168 echo "$as_me: error:
21169 *** Could not find GTK+ 2.0 or greater.
21170 *** Go to http://www.gtk.org/ to get it." >&2;}
21171    { (exit 1); exit 1; }; }
21172   fi
21173 else
21174   HAVE_GTK=no
21175   DEPENDENT_WITH_XML_AND_GTK_CFLAGS=$DEPENDENT_WITH_XML_CFLAGS
21176   DEPENDENT_WITH_XML_AND_GTK_LIBS=$DEPENDENT_WITH_XML_LIBS
21177 fi
21178
21179
21180
21181 if test x$HAVE_GTK != xno; then
21182   GTK_TRUE=
21183   GTK_FALSE='#'
21184 else
21185   GTK_TRUE='#'
21186   GTK_FALSE=
21187 fi
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200 #ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
21201 #AC_SUBST(ORBIT_IDL)
21202
21203 if test "${ac_cv_header_popt_h+set}" = set; then
21204   { echo "$as_me:$LINENO: checking for popt.h" >&5
21205 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21206 if test "${ac_cv_header_popt_h+set}" = set; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 fi
21209 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21210 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21211 else
21212   # Is the header compilable?
21213 { echo "$as_me:$LINENO: checking popt.h usability" >&5
21214 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h.  */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h.  */
21221 $ac_includes_default
21222 #include <popt.h>
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (ac_try="$ac_compile"
21226 case "(($ac_try" in
21227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228   *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231   (eval "$ac_compile") 2>conftest.er1
21232   ac_status=$?
21233   grep -v '^ *+' conftest.er1 >conftest.err
21234   rm -f conftest.er1
21235   cat conftest.err >&5
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } &&
21238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21239   { (case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_try") 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; } &&
21248          { ac_try='test -s conftest.$ac_objext'
21249   { (case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_try") 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; }; then
21258   ac_header_compiler=yes
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263         ac_header_compiler=no
21264 fi
21265
21266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21268 echo "${ECHO_T}$ac_header_compiler" >&6; }
21269
21270 # Is the header present?
21271 { echo "$as_me:$LINENO: checking popt.h presence" >&5
21272 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21273 cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h.  */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h.  */
21279 #include <popt.h>
21280 _ACEOF
21281 if { (ac_try="$ac_cpp conftest.$ac_ext"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } >/dev/null; then
21294   if test -s conftest.err; then
21295     ac_cpp_err=$ac_c_preproc_warn_flag
21296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21297   else
21298     ac_cpp_err=
21299   fi
21300 else
21301   ac_cpp_err=yes
21302 fi
21303 if test -z "$ac_cpp_err"; then
21304   ac_header_preproc=yes
21305 else
21306   echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309   ac_header_preproc=no
21310 fi
21311
21312 rm -f conftest.err conftest.$ac_ext
21313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21314 echo "${ECHO_T}$ac_header_preproc" >&6; }
21315
21316 # So?  What about this header?
21317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21318   yes:no: )
21319     { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21320 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21321     { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21322 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21323     ac_header_preproc=yes
21324     ;;
21325   no:yes:* )
21326     { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21327 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21328     { echo "$as_me:$LINENO: WARNING: popt.h:     check for missing prerequisite headers?" >&5
21329 echo "$as_me: WARNING: popt.h:     check for missing prerequisite headers?" >&2;}
21330     { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21331 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21332     { echo "$as_me:$LINENO: WARNING: popt.h:     section \"Present But Cannot Be Compiled\"" >&5
21333 echo "$as_me: WARNING: popt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21334     { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21335 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21336     { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21337 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21338
21339     ;;
21340 esac
21341 { echo "$as_me:$LINENO: checking for popt.h" >&5
21342 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21343 if test "${ac_cv_header_popt_h+set}" = set; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   ac_cv_header_popt_h=$ac_header_preproc
21347 fi
21348 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21349 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21350
21351 fi
21352 if test $ac_cv_header_popt_h = yes; then
21353   :
21354 else
21355   { { echo "$as_me:$LINENO: error:
21356 *** Couldn't find popt. Please download and install from
21357 *** ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ and try again." >&5
21358 echo "$as_me: error:
21359 *** Couldn't find popt. Please download and install from
21360 *** ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ and try again." >&2;}
21361    { (exit 1); exit 1; }; }
21362 fi
21363
21364
21365
21366 if test "${ac_cv_header_pthread_h+set}" = set; then
21367   { echo "$as_me:$LINENO: checking for pthread.h" >&5
21368 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_pthread_h+set}" = set; then
21370   echo $ECHO_N "(cached) $ECHO_C" >&6
21371 fi
21372 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21373 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21374 else
21375   # Is the header compilable?
21376 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
21377 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h.  */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h.  */
21384 $ac_includes_default
21385 #include <pthread.h>
21386 _ACEOF
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391   *) ac_try_echo=$ac_try;;
21392 esac
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394   (eval "$ac_compile") 2>conftest.er1
21395   ac_status=$?
21396   grep -v '^ *+' conftest.er1 >conftest.err
21397   rm -f conftest.er1
21398   cat conftest.err >&5
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); } &&
21401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21402   { (case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407   (eval "$ac_try") 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; } &&
21411          { ac_try='test -s conftest.$ac_objext'
21412   { (case "(($ac_try" in
21413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414   *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417   (eval "$ac_try") 2>&5
21418   ac_status=$?
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); }; }; then
21421   ac_header_compiler=yes
21422 else
21423   echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426         ac_header_compiler=no
21427 fi
21428
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6; }
21432
21433 # Is the header present?
21434 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
21435 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442 #include <pthread.h>
21443 _ACEOF
21444 if { (ac_try="$ac_cpp conftest.$ac_ext"
21445 case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21451   ac_status=$?
21452   grep -v '^ *+' conftest.er1 >conftest.err
21453   rm -f conftest.er1
21454   cat conftest.err >&5
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); } >/dev/null; then
21457   if test -s conftest.err; then
21458     ac_cpp_err=$ac_c_preproc_warn_flag
21459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21460   else
21461     ac_cpp_err=
21462   fi
21463 else
21464   ac_cpp_err=yes
21465 fi
21466 if test -z "$ac_cpp_err"; then
21467   ac_header_preproc=yes
21468 else
21469   echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472   ac_header_preproc=no
21473 fi
21474
21475 rm -f conftest.err conftest.$ac_ext
21476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21477 echo "${ECHO_T}$ac_header_preproc" >&6; }
21478
21479 # So?  What about this header?
21480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21481   yes:no: )
21482     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21483 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21484     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21485 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21486     ac_header_preproc=yes
21487     ;;
21488   no:yes:* )
21489     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21490 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21491     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21492 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21493     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21494 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21495     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21496 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21497     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21498 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21499     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21500 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21501
21502     ;;
21503 esac
21504 { echo "$as_me:$LINENO: checking for pthread.h" >&5
21505 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21506 if test "${ac_cv_header_pthread_h+set}" = set; then
21507   echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509   ac_cv_header_pthread_h=$ac_header_preproc
21510 fi
21511 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21512 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21513
21514 fi
21515 if test $ac_cv_header_pthread_h = yes; then
21516   have_pthreads=yes
21517 fi
21518
21519
21520
21521
21522 if test -n "$have_pthreads"; then
21523   PTHREADS_TRUE=
21524   PTHREADS_FALSE='#'
21525 else
21526   PTHREADS_TRUE='#'
21527   PTHREADS_FALSE=
21528 fi
21529
21530
21531
21532
21533 for ac_header in syslog.h sys/wait.h
21534 do
21535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21537   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 fi
21542 ac_res=`eval echo '${'$as_ac_Header'}'`
21543                { echo "$as_me:$LINENO: result: $ac_res" >&5
21544 echo "${ECHO_T}$ac_res" >&6; }
21545 else
21546   # Is the header compilable?
21547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 $ac_includes_default
21556 #include <$ac_header>
21557 _ACEOF
21558 rm -f conftest.$ac_objext
21559 if { (ac_try="$ac_compile"
21560 case "(($ac_try" in
21561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562   *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565   (eval "$ac_compile") 2>conftest.er1
21566   ac_status=$?
21567   grep -v '^ *+' conftest.er1 >conftest.err
21568   rm -f conftest.er1
21569   cat conftest.err >&5
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); } &&
21572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21573   { (case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578   (eval "$ac_try") 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; } &&
21582          { ac_try='test -s conftest.$ac_objext'
21583   { (case "(($ac_try" in
21584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585   *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588   (eval "$ac_try") 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_header_compiler=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597         ac_header_compiler=no
21598 fi
21599
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21602 echo "${ECHO_T}$ac_header_compiler" >&6; }
21603
21604 # Is the header present?
21605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <$ac_header>
21614 _ACEOF
21615 if { (ac_try="$ac_cpp conftest.$ac_ext"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } >/dev/null; then
21628   if test -s conftest.err; then
21629     ac_cpp_err=$ac_c_preproc_warn_flag
21630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21631   else
21632     ac_cpp_err=
21633   fi
21634 else
21635   ac_cpp_err=yes
21636 fi
21637 if test -z "$ac_cpp_err"; then
21638   ac_header_preproc=yes
21639 else
21640   echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21642
21643   ac_header_preproc=no
21644 fi
21645
21646 rm -f conftest.err conftest.$ac_ext
21647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21648 echo "${ECHO_T}$ac_header_preproc" >&6; }
21649
21650 # So?  What about this header?
21651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21652   yes:no: )
21653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21657     ac_header_preproc=yes
21658     ;;
21659   no:yes:* )
21660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21672
21673     ;;
21674 esac
21675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680   eval "$as_ac_Header=\$ac_header_preproc"
21681 fi
21682 ac_res=`eval echo '${'$as_ac_Header'}'`
21683                { echo "$as_me:$LINENO: result: $ac_res" >&5
21684 echo "${ECHO_T}$ac_res" >&6; }
21685
21686 fi
21687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21688   cat >>confdefs.h <<_ACEOF
21689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21690 _ACEOF
21691
21692 fi
21693
21694 done
21695
21696
21697
21698
21699
21700
21701 for ac_func in getuid sigaction fsync fchmod
21702 do
21703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21707   echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709   cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h.  */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h.  */
21715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21717 #define $ac_func innocuous_$ac_func
21718
21719 /* System header to define __stub macros and hopefully few prototypes,
21720     which can conflict with char $ac_func (); below.
21721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21722     <limits.h> exists even on freestanding compilers.  */
21723
21724 #ifdef __STDC__
21725 # include <limits.h>
21726 #else
21727 # include <assert.h>
21728 #endif
21729
21730 #undef $ac_func
21731
21732 /* Override any GCC internal prototype to avoid an error.
21733    Use char because int might match the return type of a GCC
21734    builtin and then its argument prototype would still apply.  */
21735 #ifdef __cplusplus
21736 extern "C"
21737 #endif
21738 char $ac_func ();
21739 /* The GNU C library defines this for functions which it implements
21740     to always fail with ENOSYS.  Some functions are actually named
21741     something starting with __ and the normal name is an alias.  */
21742 #if defined __stub_$ac_func || defined __stub___$ac_func
21743 choke me
21744 #endif
21745
21746 int
21747 main ()
21748 {
21749 return $ac_func ();
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (ac_try="$ac_link"
21756 case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_link") 2>conftest.er1
21762   ac_status=$?
21763   grep -v '^ *+' conftest.er1 >conftest.err
21764   rm -f conftest.er1
21765   cat conftest.err >&5
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } &&
21768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21769   { (case "(($ac_try" in
21770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771   *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774   (eval "$ac_try") 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); }; } &&
21778          { ac_try='test -s conftest$ac_exeext'
21779   { (case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_try") 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; }; then
21788   eval "$as_ac_var=yes"
21789 else
21790   echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793         eval "$as_ac_var=no"
21794 fi
21795
21796 rm -f core conftest.err conftest.$ac_objext \
21797       conftest$ac_exeext conftest.$ac_ext
21798 fi
21799 ac_res=`eval echo '${'$as_ac_var'}'`
21800                { echo "$as_me:$LINENO: result: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21802 if test `eval echo '${'$as_ac_var'}'` = yes; then
21803   cat >>confdefs.h <<_ACEOF
21804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21805 _ACEOF
21806
21807 fi
21808 done
21809
21810
21811
21812 LDAP_LIBS=
21813 if test "${ac_cv_header_ldap_h+set}" = set; then
21814   { echo "$as_me:$LINENO: checking for ldap.h" >&5
21815 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
21816 if test "${ac_cv_header_ldap_h+set}" = set; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 fi
21819 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
21820 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
21821 else
21822   # Is the header compilable?
21823 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
21824 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831 $ac_includes_default
21832 #include <ldap.h>
21833 _ACEOF
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838   *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841   (eval "$ac_compile") 2>conftest.er1
21842   ac_status=$?
21843   grep -v '^ *+' conftest.er1 >conftest.err
21844   rm -f conftest.er1
21845   cat conftest.err >&5
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); } &&
21848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21849   { (case "(($ac_try" in
21850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851   *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854   (eval "$ac_try") 2>&5
21855   ac_status=$?
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); }; } &&
21858          { ac_try='test -s conftest.$ac_objext'
21859   { (case "(($ac_try" in
21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861   *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864   (eval "$ac_try") 2>&5
21865   ac_status=$?
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); }; }; then
21868   ac_header_compiler=yes
21869 else
21870   echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873         ac_header_compiler=no
21874 fi
21875
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878 echo "${ECHO_T}$ac_header_compiler" >&6; }
21879
21880 # Is the header present?
21881 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
21882 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h.  */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h.  */
21889 #include <ldap.h>
21890 _ACEOF
21891 if { (ac_try="$ac_cpp conftest.$ac_ext"
21892 case "(($ac_try" in
21893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894   *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21898   ac_status=$?
21899   grep -v '^ *+' conftest.er1 >conftest.err
21900   rm -f conftest.er1
21901   cat conftest.err >&5
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } >/dev/null; then
21904   if test -s conftest.err; then
21905     ac_cpp_err=$ac_c_preproc_warn_flag
21906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21907   else
21908     ac_cpp_err=
21909   fi
21910 else
21911   ac_cpp_err=yes
21912 fi
21913 if test -z "$ac_cpp_err"; then
21914   ac_header_preproc=yes
21915 else
21916   echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919   ac_header_preproc=no
21920 fi
21921
21922 rm -f conftest.err conftest.$ac_ext
21923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21924 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925
21926 # So?  What about this header?
21927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21928   yes:no: )
21929     { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
21930 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21931     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
21932 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
21933     ac_header_preproc=yes
21934     ;;
21935   no:yes:* )
21936     { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
21937 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: ldap.h:     check for missing prerequisite headers?" >&5
21939 echo "$as_me: WARNING: ldap.h:     check for missing prerequisite headers?" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
21941 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&5
21943 echo "$as_me: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21944     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
21945 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
21946     { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
21947 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
21948
21949     ;;
21950 esac
21951 { echo "$as_me:$LINENO: checking for ldap.h" >&5
21952 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
21953 if test "${ac_cv_header_ldap_h+set}" = set; then
21954   echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956   ac_cv_header_ldap_h=$ac_header_preproc
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
21959 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
21960
21961 fi
21962 if test $ac_cv_header_ldap_h = yes; then
21963
21964     { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
21965 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
21966 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
21967   echo $ECHO_N "(cached) $ECHO_C" >&6
21968 else
21969   ac_check_lib_save_LIBS=$LIBS
21970 LIBS="-lldap  $LIBS"
21971 cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h.  */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h.  */
21977
21978 /* Override any GCC internal prototype to avoid an error.
21979    Use char because int might match the return type of a GCC
21980    builtin and then its argument prototype would still apply.  */
21981 #ifdef __cplusplus
21982 extern "C"
21983 #endif
21984 char ldap_init ();
21985 int
21986 main ()
21987 {
21988 return ldap_init ();
21989   ;
21990   return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (ac_try="$ac_link"
21995 case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_link") 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } &&
22007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22008   { (case "(($ac_try" in
22009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010   *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013   (eval "$ac_try") 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; } &&
22017          { ac_try='test -s conftest$ac_exeext'
22018   { (case "(($ac_try" in
22019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020   *) ac_try_echo=$ac_try;;
22021 esac
22022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023   (eval "$ac_try") 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; }; then
22027   ac_cv_lib_ldap_ldap_init=yes
22028 else
22029   echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22031
22032         ac_cv_lib_ldap_ldap_init=no
22033 fi
22034
22035 rm -f core conftest.err conftest.$ac_objext \
22036       conftest$ac_exeext conftest.$ac_ext
22037 LIBS=$ac_check_lib_save_LIBS
22038 fi
22039 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
22040 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
22041 if test $ac_cv_lib_ldap_ldap_init = yes; then
22042   LDAP_LIBS="-lldap"
22043 fi
22044
22045
22046 fi
22047
22048
22049
22050
22051
22052 if test -n "$LDAP_LIBS"; then
22053   LDAP_SUPPORT_TRUE=
22054   LDAP_SUPPORT_FALSE='#'
22055 else
22056   LDAP_SUPPORT_TRUE='#'
22057   LDAP_SUPPORT_FALSE=
22058 fi
22059
22060
22061 if test "$os_win32" != yes; then
22062
22063 SAVE_CFLAGS="$CFLAGS"
22064 SAVE_LIBS="$LIBS"
22065 LDAP_CFLAGS="-DLDAP_DEPRECATED"
22066 CFLAGS="$CFLAGS $LDAP_CFLAGS"
22067 LIBS="$LIBS $LDAP_LIBS"
22068
22069 for ac_func in ldap_ntlm_bind
22070 do
22071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22075   echo $ECHO_N "(cached) $ECHO_C" >&6
22076 else
22077   cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h.  */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h.  */
22083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22085 #define $ac_func innocuous_$ac_func
22086
22087 /* System header to define __stub macros and hopefully few prototypes,
22088     which can conflict with char $ac_func (); below.
22089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22090     <limits.h> exists even on freestanding compilers.  */
22091
22092 #ifdef __STDC__
22093 # include <limits.h>
22094 #else
22095 # include <assert.h>
22096 #endif
22097
22098 #undef $ac_func
22099
22100 /* Override any GCC internal prototype to avoid an error.
22101    Use char because int might match the return type of a GCC
22102    builtin and then its argument prototype would still apply.  */
22103 #ifdef __cplusplus
22104 extern "C"
22105 #endif
22106 char $ac_func ();
22107 /* The GNU C library defines this for functions which it implements
22108     to always fail with ENOSYS.  Some functions are actually named
22109     something starting with __ and the normal name is an alias.  */
22110 #if defined __stub_$ac_func || defined __stub___$ac_func
22111 choke me
22112 #endif
22113
22114 int
22115 main ()
22116 {
22117 return $ac_func ();
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext conftest$ac_exeext
22123 if { (ac_try="$ac_link"
22124 case "(($ac_try" in
22125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126   *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129   (eval "$ac_link") 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } &&
22136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22137   { (case "(($ac_try" in
22138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139   *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142   (eval "$ac_try") 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); }; } &&
22146          { ac_try='test -s conftest$ac_exeext'
22147   { (case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_try") 2>&5
22153   ac_status=$?
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); }; }; then
22156   eval "$as_ac_var=yes"
22157 else
22158   echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22160
22161         eval "$as_ac_var=no"
22162 fi
22163
22164 rm -f core conftest.err conftest.$ac_objext \
22165       conftest$ac_exeext conftest.$ac_ext
22166 fi
22167 ac_res=`eval echo '${'$as_ac_var'}'`
22168                { echo "$as_me:$LINENO: result: $ac_res" >&5
22169 echo "${ECHO_T}$ac_res" >&6; }
22170 if test `eval echo '${'$as_ac_var'}'` = yes; then
22171   cat >>confdefs.h <<_ACEOF
22172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22173 _ACEOF
22174
22175 fi
22176 done
22177
22178 CFLAGS="$SAVE_CFLAGS"
22179 LIBS="$SAVE_LIBS"
22180
22181 else # Win32
22182 LDAP_CFLAGS="-DLDAP_DEPRECATED"
22183 LDAP_LIBS="-lwldap32"
22184
22185
22186
22187 cat >>confdefs.h <<\_ACEOF
22188 #define HAVE_LDAP 1
22189 _ACEOF
22190
22191 msg_ldap="yes"
22192 fi # Win32
22193
22194
22195 case "$am__api_version" in
22196     1.01234)
22197         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
22198 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
22199    { (exit 1); exit 1; }; }
22200     ;;
22201     *)
22202     ;;
22203 esac
22204
22205 if test -n "0.33"; then
22206     { echo "$as_me:$LINENO: checking for intltool >= 0.33" >&5
22207 echo $ECHO_N "checking for intltool >= 0.33... $ECHO_C" >&6; }
22208
22209     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.33 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
22210     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
22211     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
22212
22213     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
22214 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
22215     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
22216         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.33 or later." >&5
22217 echo "$as_me: error: Your intltool is too old.  You need intltool 0.33 or later." >&2;}
22218    { (exit 1); exit 1; }; }
22219 fi
22220
22221   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22222 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22223      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22224      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22225       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
22226      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22227    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22228     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22229 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22230        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22231       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22232       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
22233       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22234       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22235     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22236   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22237     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22238     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22239    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261 # Use the tools built into the package, not the ones that are installed.
22262 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
22263
22264 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
22265
22266 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
22267
22268
22269 # Extract the first word of "perl", so it can be a program name with args.
22270 set dummy perl; ac_word=$2
22271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22273 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   case $INTLTOOL_PERL in
22277   [\\/]* | ?:[\\/]*)
22278   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
22279   ;;
22280   *)
22281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282 for as_dir in $PATH
22283 do
22284   IFS=$as_save_IFS
22285   test -z "$as_dir" && as_dir=.
22286   for ac_exec_ext in '' $ac_executable_extensions; do
22287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22288     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
22289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22290     break 2
22291   fi
22292 done
22293 done
22294 IFS=$as_save_IFS
22295
22296   ;;
22297 esac
22298 fi
22299 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
22300 if test -n "$INTLTOOL_PERL"; then
22301   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
22302 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
22303 else
22304   { echo "$as_me:$LINENO: result: no" >&5
22305 echo "${ECHO_T}no" >&6; }
22306 fi
22307
22308
22309 if test -z "$INTLTOOL_PERL"; then
22310    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
22311 echo "$as_me: error: perl not found; required for intltool" >&2;}
22312    { (exit 1); exit 1; }; }
22313 fi
22314 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
22315    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
22316 echo "$as_me: error: perl 5.x required for intltool" >&2;}
22317    { (exit 1); exit 1; }; }
22318 fi
22319 if test "x" != "xno-xml"; then
22320    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
22321 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
22322    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
22323        { echo "$as_me:$LINENO: result: ok" >&5
22324 echo "${ECHO_T}ok" >&6; }
22325    else
22326        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
22327 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
22328    { (exit 1); exit 1; }; }
22329    fi
22330 fi
22331
22332 # Substitute ALL_LINGUAS so we can use it in po/Makefile
22333
22334
22335 # Set DATADIRNAME correctly if it is not set yet
22336 # (copied from glib-gettext.m4)
22337 if test -z "$DATADIRNAME"; then
22338   cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h.  */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h.  */
22344
22345 int
22346 main ()
22347 {
22348 extern int _nl_msg_cat_cntr;
22349                        return _nl_msg_cat_cntr
22350   ;
22351   return 0;
22352 }
22353 _ACEOF
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358   *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361   (eval "$ac_link") 2>conftest.er1
22362   ac_status=$?
22363   grep -v '^ *+' conftest.er1 >conftest.err
22364   rm -f conftest.er1
22365   cat conftest.err >&5
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); } &&
22368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22369   { (case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_try") 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; } &&
22378          { ac_try='test -s conftest$ac_exeext'
22379   { (case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_try") 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; }; then
22388   DATADIRNAME=share
22389 else
22390   echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22392
22393         case $host in
22394     *-*-solaris*)
22395                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22396 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
22397 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400   cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h.  */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h.  */
22406 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22408 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22409
22410 /* System header to define __stub macros and hopefully few prototypes,
22411     which can conflict with char bind_textdomain_codeset (); below.
22412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22413     <limits.h> exists even on freestanding compilers.  */
22414
22415 #ifdef __STDC__
22416 # include <limits.h>
22417 #else
22418 # include <assert.h>
22419 #endif
22420
22421 #undef bind_textdomain_codeset
22422
22423 /* Override any GCC internal prototype to avoid an error.
22424    Use char because int might match the return type of a GCC
22425    builtin and then its argument prototype would still apply.  */
22426 #ifdef __cplusplus
22427 extern "C"
22428 #endif
22429 char bind_textdomain_codeset ();
22430 /* The GNU C library defines this for functions which it implements
22431     to always fail with ENOSYS.  Some functions are actually named
22432     something starting with __ and the normal name is an alias.  */
22433 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22434 choke me
22435 #endif
22436
22437 int
22438 main ()
22439 {
22440 return bind_textdomain_codeset ();
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (ac_try="$ac_link"
22447 case "(($ac_try" in
22448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449   *) ac_try_echo=$ac_try;;
22450 esac
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452   (eval "$ac_link") 2>conftest.er1
22453   ac_status=$?
22454   grep -v '^ *+' conftest.er1 >conftest.err
22455   rm -f conftest.er1
22456   cat conftest.err >&5
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); } &&
22459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22460   { (case "(($ac_try" in
22461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462   *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465   (eval "$ac_try") 2>&5
22466   ac_status=$?
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); }; } &&
22469          { ac_try='test -s conftest$ac_exeext'
22470   { (case "(($ac_try" in
22471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472   *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475   (eval "$ac_try") 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; }; then
22479   ac_cv_func_bind_textdomain_codeset=yes
22480 else
22481   echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484         ac_cv_func_bind_textdomain_codeset=no
22485 fi
22486
22487 rm -f core conftest.err conftest.$ac_objext \
22488       conftest$ac_exeext conftest.$ac_ext
22489 fi
22490 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22491 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
22492 if test $ac_cv_func_bind_textdomain_codeset = yes; then
22493   DATADIRNAME=share
22494 else
22495   DATADIRNAME=lib
22496 fi
22497
22498     ;;
22499     *)
22500     DATADIRNAME=lib
22501     ;;
22502     esac
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext \
22506       conftest$ac_exeext conftest.$ac_ext
22507 fi
22508
22509
22510
22511
22512
22513 ac_config_commands="$ac_config_commands intltool"
22514
22515
22516
22517
22518
22519
22520 for ac_header in locale.h
22521 do
22522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 fi
22529 ac_res=`eval echo '${'$as_ac_Header'}'`
22530                { echo "$as_me:$LINENO: result: $ac_res" >&5
22531 echo "${ECHO_T}$ac_res" >&6; }
22532 else
22533   # Is the header compilable?
22534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22536 cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542 $ac_includes_default
22543 #include <$ac_header>
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } &&
22559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22560   { (case "(($ac_try" in
22561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562   *) ac_try_echo=$ac_try;;
22563 esac
22564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22565   (eval "$ac_try") 2>&5
22566   ac_status=$?
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); }; } &&
22569          { ac_try='test -s conftest.$ac_objext'
22570   { (case "(($ac_try" in
22571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572   *) ac_try_echo=$ac_try;;
22573 esac
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575   (eval "$ac_try") 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }; }; then
22579   ac_header_compiler=yes
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584         ac_header_compiler=no
22585 fi
22586
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22589 echo "${ECHO_T}$ac_header_compiler" >&6; }
22590
22591 # Is the header present?
22592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22594 cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600 #include <$ac_header>
22601 _ACEOF
22602 if { (ac_try="$ac_cpp conftest.$ac_ext"
22603 case "(($ac_try" in
22604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605   *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } >/dev/null; then
22615   if test -s conftest.err; then
22616     ac_cpp_err=$ac_c_preproc_warn_flag
22617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22618   else
22619     ac_cpp_err=
22620   fi
22621 else
22622   ac_cpp_err=yes
22623 fi
22624 if test -z "$ac_cpp_err"; then
22625   ac_header_preproc=yes
22626 else
22627   echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630   ac_header_preproc=no
22631 fi
22632
22633 rm -f conftest.err conftest.$ac_ext
22634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22635 echo "${ECHO_T}$ac_header_preproc" >&6; }
22636
22637 # So?  What about this header?
22638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22639   yes:no: )
22640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22644     ac_header_preproc=yes
22645     ;;
22646   no:yes:* )
22647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22659
22660     ;;
22661 esac
22662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22665   echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667   eval "$as_ac_Header=\$ac_header_preproc"
22668 fi
22669 ac_res=`eval echo '${'$as_ac_Header'}'`
22670                { echo "$as_me:$LINENO: result: $ac_res" >&5
22671 echo "${ECHO_T}$ac_res" >&6; }
22672
22673 fi
22674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22675   cat >>confdefs.h <<_ACEOF
22676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22677 _ACEOF
22678
22679 fi
22680
22681 done
22682
22683     if test $ac_cv_header_locale_h = yes; then
22684     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22685 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22686 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22687   echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689   cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695 #include <locale.h>
22696 int
22697 main ()
22698 {
22699 return LC_MESSAGES
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 rm -f conftest.$ac_objext conftest$ac_exeext
22705 if { (ac_try="$ac_link"
22706 case "(($ac_try" in
22707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708   *) ac_try_echo=$ac_try;;
22709 esac
22710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711   (eval "$ac_link") 2>conftest.er1
22712   ac_status=$?
22713   grep -v '^ *+' conftest.er1 >conftest.err
22714   rm -f conftest.er1
22715   cat conftest.err >&5
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); } &&
22718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22719   { (case "(($ac_try" in
22720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721   *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724   (eval "$ac_try") 2>&5
22725   ac_status=$?
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); }; } &&
22728          { ac_try='test -s conftest$ac_exeext'
22729   { (case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_try") 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; }; then
22738   am_cv_val_LC_MESSAGES=yes
22739 else
22740   echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743         am_cv_val_LC_MESSAGES=no
22744 fi
22745
22746 rm -f core conftest.err conftest.$ac_objext \
22747       conftest$ac_exeext conftest.$ac_ext
22748 fi
22749 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22750 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22751     if test $am_cv_val_LC_MESSAGES = yes; then
22752
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_LC_MESSAGES 1
22755 _ACEOF
22756
22757     fi
22758   fi
22759          USE_NLS=yes
22760
22761
22762     gt_cv_have_gettext=no
22763
22764     CATOBJEXT=NONE
22765     XGETTEXT=:
22766     INTLLIBS=
22767
22768     if test "${ac_cv_header_libintl_h+set}" = set; then
22769   { echo "$as_me:$LINENO: checking for libintl.h" >&5
22770 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22771 if test "${ac_cv_header_libintl_h+set}" = set; then
22772   echo $ECHO_N "(cached) $ECHO_C" >&6
22773 fi
22774 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22775 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22776 else
22777   # Is the header compilable?
22778 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
22779 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786 $ac_includes_default
22787 #include <libintl.h>
22788 _ACEOF
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_compile") 2>conftest.er1
22797   ac_status=$?
22798   grep -v '^ *+' conftest.er1 >conftest.err
22799   rm -f conftest.er1
22800   cat conftest.err >&5
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } &&
22803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22804   { (case "(($ac_try" in
22805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806   *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809   (eval "$ac_try") 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; } &&
22813          { ac_try='test -s conftest.$ac_objext'
22814   { (case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_try") 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; }; then
22823   ac_header_compiler=yes
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828         ac_header_compiler=no
22829 fi
22830
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22833 echo "${ECHO_T}$ac_header_compiler" >&6; }
22834
22835 # Is the header present?
22836 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
22837 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
22838 cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844 #include <libintl.h>
22845 _ACEOF
22846 if { (ac_try="$ac_cpp conftest.$ac_ext"
22847 case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } >/dev/null; then
22859   if test -s conftest.err; then
22860     ac_cpp_err=$ac_c_preproc_warn_flag
22861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22862   else
22863     ac_cpp_err=
22864   fi
22865 else
22866   ac_cpp_err=yes
22867 fi
22868 if test -z "$ac_cpp_err"; then
22869   ac_header_preproc=yes
22870 else
22871   echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874   ac_header_preproc=no
22875 fi
22876
22877 rm -f conftest.err conftest.$ac_ext
22878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22879 echo "${ECHO_T}$ac_header_preproc" >&6; }
22880
22881 # So?  What about this header?
22882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22883   yes:no: )
22884     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22885 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22886     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22887 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22888     ac_header_preproc=yes
22889     ;;
22890   no:yes:* )
22891     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22892 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22893     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
22894 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
22895     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22896 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22897     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
22898 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22899     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22900 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22901     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22902 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22903
22904     ;;
22905 esac
22906 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22907 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22908 if test "${ac_cv_header_libintl_h+set}" = set; then
22909   echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911   ac_cv_header_libintl_h=$ac_header_preproc
22912 fi
22913 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22914 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22915
22916 fi
22917 if test $ac_cv_header_libintl_h = yes; then
22918   gt_cv_func_dgettext_libintl="no"
22919       libintl_extra_libs=""
22920
22921       #
22922       # First check in libc
22923       #
22924       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
22925 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
22926 if test "${gt_cv_func_ngettext_libc+set}" = set; then
22927   echo $ECHO_N "(cached) $ECHO_C" >&6
22928 else
22929   cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935
22936 #include <libintl.h>
22937
22938 int
22939 main ()
22940 {
22941 return !ngettext ("","", 1)
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext conftest$ac_exeext
22947 if { (ac_try="$ac_link"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_link") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } &&
22960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22961   { (case "(($ac_try" in
22962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963   *) ac_try_echo=$ac_try;;
22964 esac
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966   (eval "$ac_try") 2>&5
22967   ac_status=$?
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); }; } &&
22970          { ac_try='test -s conftest$ac_exeext'
22971   { (case "(($ac_try" in
22972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973   *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976   (eval "$ac_try") 2>&5
22977   ac_status=$?
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); }; }; then
22980   gt_cv_func_ngettext_libc=yes
22981 else
22982   echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985         gt_cv_func_ngettext_libc=no
22986 fi
22987
22988 rm -f core conftest.err conftest.$ac_objext \
22989       conftest$ac_exeext conftest.$ac_ext
22990
22991 fi
22992 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
22993 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
22994
22995       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22996               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
22997 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
22998 if test "${gt_cv_func_dgettext_libc+set}" = set; then
22999   echo $ECHO_N "(cached) $ECHO_C" >&6
23000 else
23001   cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h.  */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h.  */
23007
23008 #include <libintl.h>
23009
23010 int
23011 main ()
23012 {
23013 return !dgettext ("","")
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (ac_try="$ac_link"
23020 case "(($ac_try" in
23021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022   *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025   (eval "$ac_link") 2>conftest.er1
23026   ac_status=$?
23027   grep -v '^ *+' conftest.er1 >conftest.err
23028   rm -f conftest.er1
23029   cat conftest.err >&5
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); } &&
23032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23033   { (case "(($ac_try" in
23034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035   *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038   (eval "$ac_try") 2>&5
23039   ac_status=$?
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); }; } &&
23042          { ac_try='test -s conftest$ac_exeext'
23043   { (case "(($ac_try" in
23044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045   *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048   (eval "$ac_try") 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   gt_cv_func_dgettext_libc=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057         gt_cv_func_dgettext_libc=no
23058 fi
23059
23060 rm -f core conftest.err conftest.$ac_objext \
23061       conftest$ac_exeext conftest.$ac_ext
23062
23063 fi
23064 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
23065 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
23066       fi
23067
23068       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23069
23070 for ac_func in bind_textdomain_codeset
23071 do
23072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23076   echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078   cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h.  */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h.  */
23084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23086 #define $ac_func innocuous_$ac_func
23087
23088 /* System header to define __stub macros and hopefully few prototypes,
23089     which can conflict with char $ac_func (); below.
23090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23091     <limits.h> exists even on freestanding compilers.  */
23092
23093 #ifdef __STDC__
23094 # include <limits.h>
23095 #else
23096 # include <assert.h>
23097 #endif
23098
23099 #undef $ac_func
23100
23101 /* Override any GCC internal prototype to avoid an error.
23102    Use char because int might match the return type of a GCC
23103    builtin and then its argument prototype would still apply.  */
23104 #ifdef __cplusplus
23105 extern "C"
23106 #endif
23107 char $ac_func ();
23108 /* The GNU C library defines this for functions which it implements
23109     to always fail with ENOSYS.  Some functions are actually named
23110     something starting with __ and the normal name is an alias.  */
23111 #if defined __stub_$ac_func || defined __stub___$ac_func
23112 choke me
23113 #endif
23114
23115 int
23116 main ()
23117 {
23118 return $ac_func ();
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_link") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } &&
23137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23138   { (case "(($ac_try" in
23139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140   *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143   (eval "$ac_try") 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; } &&
23147          { ac_try='test -s conftest$ac_exeext'
23148   { (case "(($ac_try" in
23149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150   *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153   (eval "$ac_try") 2>&5
23154   ac_status=$?
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); }; }; then
23157   eval "$as_ac_var=yes"
23158 else
23159   echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23161
23162         eval "$as_ac_var=no"
23163 fi
23164
23165 rm -f core conftest.err conftest.$ac_objext \
23166       conftest$ac_exeext conftest.$ac_ext
23167 fi
23168 ac_res=`eval echo '${'$as_ac_var'}'`
23169                { echo "$as_me:$LINENO: result: $ac_res" >&5
23170 echo "${ECHO_T}$ac_res" >&6; }
23171 if test `eval echo '${'$as_ac_var'}'` = yes; then
23172   cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23174 _ACEOF
23175
23176 fi
23177 done
23178
23179       fi
23180
23181       #
23182       # If we don't have everything we want, check in libintl
23183       #
23184       if test "$gt_cv_func_dgettext_libc" != "yes" \
23185          || test "$gt_cv_func_ngettext_libc" != "yes" \
23186          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
23187
23188         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
23189 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
23190 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
23191   echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193   ac_check_lib_save_LIBS=$LIBS
23194 LIBS="-lintl  $LIBS"
23195 cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h.  */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h.  */
23201
23202 /* Override any GCC internal prototype to avoid an error.
23203    Use char because int might match the return type of a GCC
23204    builtin and then its argument prototype would still apply.  */
23205 #ifdef __cplusplus
23206 extern "C"
23207 #endif
23208 char bindtextdomain ();
23209 int
23210 main ()
23211 {
23212 return bindtextdomain ();
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext conftest$ac_exeext
23218 if { (ac_try="$ac_link"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_link") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } &&
23231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23232   { (case "(($ac_try" in
23233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234   *) ac_try_echo=$ac_try;;
23235 esac
23236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23237   (eval "$ac_try") 2>&5
23238   ac_status=$?
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); }; } &&
23241          { ac_try='test -s conftest$ac_exeext'
23242   { (case "(($ac_try" in
23243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244   *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247   (eval "$ac_try") 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; }; then
23251   ac_cv_lib_intl_bindtextdomain=yes
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256         ac_cv_lib_intl_bindtextdomain=no
23257 fi
23258
23259 rm -f core conftest.err conftest.$ac_objext \
23260       conftest$ac_exeext conftest.$ac_ext
23261 LIBS=$ac_check_lib_save_LIBS
23262 fi
23263 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23264 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
23265 if test $ac_cv_lib_intl_bindtextdomain = yes; then
23266   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23267 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23268 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271   ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lintl  $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279
23280 /* Override any GCC internal prototype to avoid an error.
23281    Use char because int might match the return type of a GCC
23282    builtin and then its argument prototype would still apply.  */
23283 #ifdef __cplusplus
23284 extern "C"
23285 #endif
23286 char ngettext ();
23287 int
23288 main ()
23289 {
23290 return ngettext ();
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 rm -f conftest.$ac_objext conftest$ac_exeext
23296 if { (ac_try="$ac_link"
23297 case "(($ac_try" in
23298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299   *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302   (eval "$ac_link") 2>conftest.er1
23303   ac_status=$?
23304   grep -v '^ *+' conftest.er1 >conftest.err
23305   rm -f conftest.er1
23306   cat conftest.err >&5
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); } &&
23309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23310   { (case "(($ac_try" in
23311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312   *) ac_try_echo=$ac_try;;
23313 esac
23314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23315   (eval "$ac_try") 2>&5
23316   ac_status=$?
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); }; } &&
23319          { ac_try='test -s conftest$ac_exeext'
23320   { (case "(($ac_try" in
23321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322   *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325   (eval "$ac_try") 2>&5
23326   ac_status=$?
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); }; }; then
23329   ac_cv_lib_intl_ngettext=yes
23330 else
23331   echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23333
23334         ac_cv_lib_intl_ngettext=no
23335 fi
23336
23337 rm -f core conftest.err conftest.$ac_objext \
23338       conftest$ac_exeext conftest.$ac_ext
23339 LIBS=$ac_check_lib_save_LIBS
23340 fi
23341 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23342 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23343 if test $ac_cv_lib_intl_ngettext = yes; then
23344   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23345 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23346 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23347   echo $ECHO_N "(cached) $ECHO_C" >&6
23348 else
23349   ac_check_lib_save_LIBS=$LIBS
23350 LIBS="-lintl  $LIBS"
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357
23358 /* Override any GCC internal prototype to avoid an error.
23359    Use char because int might match the return type of a GCC
23360    builtin and then its argument prototype would still apply.  */
23361 #ifdef __cplusplus
23362 extern "C"
23363 #endif
23364 char dgettext ();
23365 int
23366 main ()
23367 {
23368 return dgettext ();
23369   ;
23370   return 0;
23371 }
23372 _ACEOF
23373 rm -f conftest.$ac_objext conftest$ac_exeext
23374 if { (ac_try="$ac_link"
23375 case "(($ac_try" in
23376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377   *) ac_try_echo=$ac_try;;
23378 esac
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380   (eval "$ac_link") 2>conftest.er1
23381   ac_status=$?
23382   grep -v '^ *+' conftest.er1 >conftest.err
23383   rm -f conftest.er1
23384   cat conftest.err >&5
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); } &&
23387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23388   { (case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_try") 2>&5
23394   ac_status=$?
23395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396   (exit $ac_status); }; } &&
23397          { ac_try='test -s conftest$ac_exeext'
23398   { (case "(($ac_try" in
23399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400   *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403   (eval "$ac_try") 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; }; then
23407   ac_cv_lib_intl_dgettext=yes
23408 else
23409   echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412         ac_cv_lib_intl_dgettext=no
23413 fi
23414
23415 rm -f core conftest.err conftest.$ac_objext \
23416       conftest$ac_exeext conftest.$ac_ext
23417 LIBS=$ac_check_lib_save_LIBS
23418 fi
23419 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23420 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23421 if test $ac_cv_lib_intl_dgettext = yes; then
23422   gt_cv_func_dgettext_libintl=yes
23423 fi
23424
23425 fi
23426
23427 fi
23428
23429
23430         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
23431           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
23432 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
23433           { echo "$as_me:$LINENO: result: " >&5
23434 echo "${ECHO_T}" >&6; }
23435           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23436 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23437 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23438   echo $ECHO_N "(cached) $ECHO_C" >&6
23439 else
23440   ac_check_lib_save_LIBS=$LIBS
23441 LIBS="-lintl -liconv $LIBS"
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h.  */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h.  */
23448
23449 /* Override any GCC internal prototype to avoid an error.
23450    Use char because int might match the return type of a GCC
23451    builtin and then its argument prototype would still apply.  */
23452 #ifdef __cplusplus
23453 extern "C"
23454 #endif
23455 char ngettext ();
23456 int
23457 main ()
23458 {
23459 return ngettext ();
23460   ;
23461   return 0;
23462 }
23463 _ACEOF
23464 rm -f conftest.$ac_objext conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_link") 2>conftest.er1
23472   ac_status=$?
23473   grep -v '^ *+' conftest.er1 >conftest.err
23474   rm -f conftest.er1
23475   cat conftest.err >&5
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } &&
23478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23479   { (case "(($ac_try" in
23480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481   *) ac_try_echo=$ac_try;;
23482 esac
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484   (eval "$ac_try") 2>&5
23485   ac_status=$?
23486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); }; } &&
23488          { ac_try='test -s conftest$ac_exeext'
23489   { (case "(($ac_try" in
23490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491   *) ac_try_echo=$ac_try;;
23492 esac
23493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23494   (eval "$ac_try") 2>&5
23495   ac_status=$?
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); }; }; then
23498   ac_cv_lib_intl_ngettext=yes
23499 else
23500   echo "$as_me: failed program was:" >&5
23501 sed 's/^/| /' conftest.$ac_ext >&5
23502
23503         ac_cv_lib_intl_ngettext=no
23504 fi
23505
23506 rm -f core conftest.err conftest.$ac_objext \
23507       conftest$ac_exeext conftest.$ac_ext
23508 LIBS=$ac_check_lib_save_LIBS
23509 fi
23510 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23511 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23512 if test $ac_cv_lib_intl_ngettext = yes; then
23513   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
23514 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
23515 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
23516   echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518   ac_check_lib_save_LIBS=$LIBS
23519 LIBS="-lintl -liconv $LIBS"
23520 cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h.  */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h.  */
23526
23527 /* Override any GCC internal prototype to avoid an error.
23528    Use char because int might match the return type of a GCC
23529    builtin and then its argument prototype would still apply.  */
23530 #ifdef __cplusplus
23531 extern "C"
23532 #endif
23533 char dcgettext ();
23534 int
23535 main ()
23536 {
23537 return dcgettext ();
23538   ;
23539   return 0;
23540 }
23541 _ACEOF
23542 rm -f conftest.$ac_objext conftest$ac_exeext
23543 if { (ac_try="$ac_link"
23544 case "(($ac_try" in
23545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546   *) ac_try_echo=$ac_try;;
23547 esac
23548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23549   (eval "$ac_link") 2>conftest.er1
23550   ac_status=$?
23551   grep -v '^ *+' conftest.er1 >conftest.err
23552   rm -f conftest.er1
23553   cat conftest.err >&5
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); } &&
23556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23557   { (case "(($ac_try" in
23558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559   *) ac_try_echo=$ac_try;;
23560 esac
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562   (eval "$ac_try") 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; } &&
23566          { ac_try='test -s conftest$ac_exeext'
23567   { (case "(($ac_try" in
23568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569   *) ac_try_echo=$ac_try;;
23570 esac
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572   (eval "$ac_try") 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); }; }; then
23576   ac_cv_lib_intl_dcgettext=yes
23577 else
23578   echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581         ac_cv_lib_intl_dcgettext=no
23582 fi
23583
23584 rm -f core conftest.err conftest.$ac_objext \
23585       conftest$ac_exeext conftest.$ac_ext
23586 LIBS=$ac_check_lib_save_LIBS
23587 fi
23588 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
23589 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
23590 if test $ac_cv_lib_intl_dcgettext = yes; then
23591   gt_cv_func_dgettext_libintl=yes
23592                         libintl_extra_libs=-liconv
23593 else
23594   :
23595 fi
23596
23597 else
23598   :
23599 fi
23600
23601         fi
23602
23603         #
23604         # If we found libintl, then check in it for bind_textdomain_codeset();
23605         # we'll prefer libc if neither have bind_textdomain_codeset(),
23606         # and both have dgettext and ngettext
23607         #
23608         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
23609           glib_save_LIBS="$LIBS"
23610           LIBS="$LIBS -lintl $libintl_extra_libs"
23611           unset ac_cv_func_bind_textdomain_codeset
23612
23613 for ac_func in bind_textdomain_codeset
23614 do
23615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23619   echo $ECHO_N "(cached) $ECHO_C" >&6
23620 else
23621   cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h.  */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h.  */
23627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23629 #define $ac_func innocuous_$ac_func
23630
23631 /* System header to define __stub macros and hopefully few prototypes,
23632     which can conflict with char $ac_func (); below.
23633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23634     <limits.h> exists even on freestanding compilers.  */
23635
23636 #ifdef __STDC__
23637 # include <limits.h>
23638 #else
23639 # include <assert.h>
23640 #endif
23641
23642 #undef $ac_func
23643
23644 /* Override any GCC internal prototype to avoid an error.
23645    Use char because int might match the return type of a GCC
23646    builtin and then its argument prototype would still apply.  */
23647 #ifdef __cplusplus
23648 extern "C"
23649 #endif
23650 char $ac_func ();
23651 /* The GNU C library defines this for functions which it implements
23652     to always fail with ENOSYS.  Some functions are actually named
23653     something starting with __ and the normal name is an alias.  */
23654 #if defined __stub_$ac_func || defined __stub___$ac_func
23655 choke me
23656 #endif
23657
23658 int
23659 main ()
23660 {
23661 return $ac_func ();
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext conftest$ac_exeext
23667 if { (ac_try="$ac_link"
23668 case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673   (eval "$ac_link") 2>conftest.er1
23674   ac_status=$?
23675   grep -v '^ *+' conftest.er1 >conftest.err
23676   rm -f conftest.er1
23677   cat conftest.err >&5
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } &&
23680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23681   { (case "(($ac_try" in
23682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683   *) ac_try_echo=$ac_try;;
23684 esac
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686   (eval "$ac_try") 2>&5
23687   ac_status=$?
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); }; } &&
23690          { ac_try='test -s conftest$ac_exeext'
23691   { (case "(($ac_try" in
23692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693   *) ac_try_echo=$ac_try;;
23694 esac
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696   (eval "$ac_try") 2>&5
23697   ac_status=$?
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); }; }; then
23700   eval "$as_ac_var=yes"
23701 else
23702   echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705         eval "$as_ac_var=no"
23706 fi
23707
23708 rm -f core conftest.err conftest.$ac_objext \
23709       conftest$ac_exeext conftest.$ac_ext
23710 fi
23711 ac_res=`eval echo '${'$as_ac_var'}'`
23712                { echo "$as_me:$LINENO: result: $ac_res" >&5
23713 echo "${ECHO_T}$ac_res" >&6; }
23714 if test `eval echo '${'$as_ac_var'}'` = yes; then
23715   cat >>confdefs.h <<_ACEOF
23716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23717 _ACEOF
23718
23719 fi
23720 done
23721
23722           LIBS="$glib_save_LIBS"
23723
23724           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
23725             gt_cv_func_dgettext_libc=no
23726           else
23727             if test "$gt_cv_func_dgettext_libc" = "yes" \
23728                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
23729               gt_cv_func_dgettext_libintl=no
23730             fi
23731           fi
23732         fi
23733       fi
23734
23735       if test "$gt_cv_func_dgettext_libc" = "yes" \
23736         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
23737         gt_cv_have_gettext=yes
23738       fi
23739
23740       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
23741         INTLLIBS="-lintl $libintl_extra_libs"
23742       fi
23743
23744       if test "$gt_cv_have_gettext" = "yes"; then
23745
23746 cat >>confdefs.h <<\_ACEOF
23747 #define HAVE_GETTEXT 1
23748 _ACEOF
23749
23750         # Extract the first word of "msgfmt", so it can be a program name with args.
23751 set dummy msgfmt; ac_word=$2
23752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23754 if test "${ac_cv_path_MSGFMT+set}" = set; then
23755   echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757   case "$MSGFMT" in
23758   /*)
23759   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23760   ;;
23761   *)
23762   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23763   for ac_dir in $PATH; do
23764     test -z "$ac_dir" && ac_dir=.
23765     if test -f $ac_dir/$ac_word; then
23766       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
23767         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
23768         break
23769       fi
23770     fi
23771   done
23772   IFS="$ac_save_ifs"
23773   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
23774   ;;
23775 esac
23776 fi
23777 MSGFMT="$ac_cv_path_MSGFMT"
23778 if test "$MSGFMT" != "no"; then
23779   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23780 echo "${ECHO_T}$MSGFMT" >&6; }
23781 else
23782   { echo "$as_me:$LINENO: result: no" >&5
23783 echo "${ECHO_T}no" >&6; }
23784 fi
23785         if test "$MSGFMT" != "no"; then
23786           glib_save_LIBS="$LIBS"
23787           LIBS="$LIBS $INTLLIBS"
23788
23789 for ac_func in dcgettext
23790 do
23791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23795   echo $ECHO_N "(cached) $ECHO_C" >&6
23796 else
23797   cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h.  */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h.  */
23803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23805 #define $ac_func innocuous_$ac_func
23806
23807 /* System header to define __stub macros and hopefully few prototypes,
23808     which can conflict with char $ac_func (); below.
23809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23810     <limits.h> exists even on freestanding compilers.  */
23811
23812 #ifdef __STDC__
23813 # include <limits.h>
23814 #else
23815 # include <assert.h>
23816 #endif
23817
23818 #undef $ac_func
23819
23820 /* Override any GCC internal prototype to avoid an error.
23821    Use char because int might match the return type of a GCC
23822    builtin and then its argument prototype would still apply.  */
23823 #ifdef __cplusplus
23824 extern "C"
23825 #endif
23826 char $ac_func ();
23827 /* The GNU C library defines this for functions which it implements
23828     to always fail with ENOSYS.  Some functions are actually named
23829     something starting with __ and the normal name is an alias.  */
23830 #if defined __stub_$ac_func || defined __stub___$ac_func
23831 choke me
23832 #endif
23833
23834 int
23835 main ()
23836 {
23837 return $ac_func ();
23838   ;
23839   return 0;
23840 }
23841 _ACEOF
23842 rm -f conftest.$ac_objext conftest$ac_exeext
23843 if { (ac_try="$ac_link"
23844 case "(($ac_try" in
23845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846   *) ac_try_echo=$ac_try;;
23847 esac
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849   (eval "$ac_link") 2>conftest.er1
23850   ac_status=$?
23851   grep -v '^ *+' conftest.er1 >conftest.err
23852   rm -f conftest.er1
23853   cat conftest.err >&5
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); } &&
23856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23857   { (case "(($ac_try" in
23858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859   *) ac_try_echo=$ac_try;;
23860 esac
23861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23862   (eval "$ac_try") 2>&5
23863   ac_status=$?
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); }; } &&
23866          { ac_try='test -s conftest$ac_exeext'
23867   { (case "(($ac_try" in
23868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869   *) ac_try_echo=$ac_try;;
23870 esac
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872   (eval "$ac_try") 2>&5
23873   ac_status=$?
23874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875   (exit $ac_status); }; }; then
23876   eval "$as_ac_var=yes"
23877 else
23878   echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23880
23881         eval "$as_ac_var=no"
23882 fi
23883
23884 rm -f core conftest.err conftest.$ac_objext \
23885       conftest$ac_exeext conftest.$ac_ext
23886 fi
23887 ac_res=`eval echo '${'$as_ac_var'}'`
23888                { echo "$as_me:$LINENO: result: $ac_res" >&5
23889 echo "${ECHO_T}$ac_res" >&6; }
23890 if test `eval echo '${'$as_ac_var'}'` = yes; then
23891   cat >>confdefs.h <<_ACEOF
23892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23893 _ACEOF
23894
23895 fi
23896 done
23897
23898           MSGFMT_OPTS=
23899           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
23900 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
23901           cat >conftest.foo <<_ACEOF
23902
23903 msgid ""
23904 msgstr ""
23905 "Content-Type: text/plain; charset=UTF-8\n"
23906 "Project-Id-Version: test 1.0\n"
23907 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
23908 "Last-Translator: test <foo@bar.xx>\n"
23909 "Language-Team: C <LL@li.org>\n"
23910 "MIME-Version: 1.0\n"
23911 "Content-Transfer-Encoding: 8bit\n"
23912
23913 _ACEOF
23914 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
23915   (msgfmt -c -o /dev/null conftest.foo) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); }; then
23919   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
23920 echo "${ECHO_T}yes" >&6; }
23921 else { echo "$as_me:$LINENO: result: no" >&5
23922 echo "${ECHO_T}no" >&6; }
23923 echo "$as_me: failed input was:" >&5
23924 sed 's/^/| /' conftest.foo >&5
23925 fi
23926
23927           # Extract the first word of "gmsgfmt", so it can be a program name with args.
23928 set dummy gmsgfmt; ac_word=$2
23929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23931 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934   case $GMSGFMT in
23935   [\\/]* | ?:[\\/]*)
23936   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23937   ;;
23938   *)
23939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23940 for as_dir in $PATH
23941 do
23942   IFS=$as_save_IFS
23943   test -z "$as_dir" && as_dir=.
23944   for ac_exec_ext in '' $ac_executable_extensions; do
23945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
23946     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23948     break 2
23949   fi
23950 done
23951 done
23952 IFS=$as_save_IFS
23953
23954   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23955   ;;
23956 esac
23957 fi
23958 GMSGFMT=$ac_cv_path_GMSGFMT
23959 if test -n "$GMSGFMT"; then
23960   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23961 echo "${ECHO_T}$GMSGFMT" >&6; }
23962 else
23963   { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23965 fi
23966
23967
23968           # Extract the first word of "xgettext", so it can be a program name with args.
23969 set dummy xgettext; ac_word=$2
23970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23972 if test "${ac_cv_path_XGETTEXT+set}" = set; then
23973   echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975   case "$XGETTEXT" in
23976   /*)
23977   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23978   ;;
23979   *)
23980   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23981   for ac_dir in $PATH; do
23982     test -z "$ac_dir" && ac_dir=.
23983     if test -f $ac_dir/$ac_word; then
23984       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23985         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23986         break
23987       fi
23988     fi
23989   done
23990   IFS="$ac_save_ifs"
23991   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23992   ;;
23993 esac
23994 fi
23995 XGETTEXT="$ac_cv_path_XGETTEXT"
23996 if test "$XGETTEXT" != ":"; then
23997   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23998 echo "${ECHO_T}$XGETTEXT" >&6; }
23999 else
24000   { echo "$as_me:$LINENO: result: no" >&5
24001 echo "${ECHO_T}no" >&6; }
24002 fi
24003
24004           cat >conftest.$ac_ext <<_ACEOF
24005 /* confdefs.h.  */
24006 _ACEOF
24007 cat confdefs.h >>conftest.$ac_ext
24008 cat >>conftest.$ac_ext <<_ACEOF
24009 /* end confdefs.h.  */
24010
24011 int
24012 main ()
24013 {
24014 extern int _nl_msg_cat_cntr;
24015                          return _nl_msg_cat_cntr
24016   ;
24017   return 0;
24018 }
24019 _ACEOF
24020 rm -f conftest.$ac_objext conftest$ac_exeext
24021 if { (ac_try="$ac_link"
24022 case "(($ac_try" in
24023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024   *) ac_try_echo=$ac_try;;
24025 esac
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027   (eval "$ac_link") 2>conftest.er1
24028   ac_status=$?
24029   grep -v '^ *+' conftest.er1 >conftest.err
24030   rm -f conftest.er1
24031   cat conftest.err >&5
24032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033   (exit $ac_status); } &&
24034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24035   { (case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040   (eval "$ac_try") 2>&5
24041   ac_status=$?
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); }; } &&
24044          { ac_try='test -s conftest$ac_exeext'
24045   { (case "(($ac_try" in
24046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047   *) ac_try_echo=$ac_try;;
24048 esac
24049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050   (eval "$ac_try") 2>&5
24051   ac_status=$?
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); }; }; then
24054   CATOBJEXT=.gmo
24055              DATADIRNAME=share
24056 else
24057   echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24059
24060         case $host in
24061             *-*-solaris*)
24062                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24063 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24064 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24065   echo $ECHO_N "(cached) $ECHO_C" >&6
24066 else
24067   cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24075 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24076
24077 /* System header to define __stub macros and hopefully few prototypes,
24078     which can conflict with char bind_textdomain_codeset (); below.
24079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24080     <limits.h> exists even on freestanding compilers.  */
24081
24082 #ifdef __STDC__
24083 # include <limits.h>
24084 #else
24085 # include <assert.h>
24086 #endif
24087
24088 #undef bind_textdomain_codeset
24089
24090 /* Override any GCC internal prototype to avoid an error.
24091    Use char because int might match the return type of a GCC
24092    builtin and then its argument prototype would still apply.  */
24093 #ifdef __cplusplus
24094 extern "C"
24095 #endif
24096 char bind_textdomain_codeset ();
24097 /* The GNU C library defines this for functions which it implements
24098     to always fail with ENOSYS.  Some functions are actually named
24099     something starting with __ and the normal name is an alias.  */
24100 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
24101 choke me
24102 #endif
24103
24104 int
24105 main ()
24106 {
24107 return bind_textdomain_codeset ();
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (ac_try="$ac_link"
24114 case "(($ac_try" in
24115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116   *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119   (eval "$ac_link") 2>conftest.er1
24120   ac_status=$?
24121   grep -v '^ *+' conftest.er1 >conftest.err
24122   rm -f conftest.er1
24123   cat conftest.err >&5
24124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125   (exit $ac_status); } &&
24126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24127   { (case "(($ac_try" in
24128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129   *) ac_try_echo=$ac_try;;
24130 esac
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132   (eval "$ac_try") 2>&5
24133   ac_status=$?
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); }; } &&
24136          { ac_try='test -s conftest$ac_exeext'
24137   { (case "(($ac_try" in
24138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139   *) ac_try_echo=$ac_try;;
24140 esac
24141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24142   (eval "$ac_try") 2>&5
24143   ac_status=$?
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); }; }; then
24146   ac_cv_func_bind_textdomain_codeset=yes
24147 else
24148   echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151         ac_cv_func_bind_textdomain_codeset=no
24152 fi
24153
24154 rm -f core conftest.err conftest.$ac_objext \
24155       conftest$ac_exeext conftest.$ac_ext
24156 fi
24157 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
24158 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
24159 if test $ac_cv_func_bind_textdomain_codeset = yes; then
24160   CATOBJEXT=.gmo
24161                DATADIRNAME=share
24162 else
24163   CATOBJEXT=.mo
24164                DATADIRNAME=lib
24165 fi
24166
24167             ;;
24168             *)
24169             CATOBJEXT=.mo
24170             DATADIRNAME=lib
24171             ;;
24172             esac
24173 fi
24174
24175 rm -f core conftest.err conftest.$ac_objext \
24176       conftest$ac_exeext conftest.$ac_ext
24177           LIBS="$glib_save_LIBS"
24178           INSTOBJEXT=.mo
24179         else
24180           gt_cv_have_gettext=no
24181         fi
24182       fi
24183
24184 fi
24185
24186
24187
24188     if test "$gt_cv_have_gettext" = "yes" ; then
24189
24190 cat >>confdefs.h <<\_ACEOF
24191 #define ENABLE_NLS 1
24192 _ACEOF
24193
24194     fi
24195
24196         if test "$XGETTEXT" != ":"; then
24197                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
24198         : ;
24199       else
24200         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24201 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
24202         XGETTEXT=":"
24203       fi
24204     fi
24205
24206     # We need to process the po/ directory.
24207     POSUB=po
24208
24209     ac_config_commands="$ac_config_commands default-1"
24210
24211
24212                 for lang in $ALL_LINGUAS; do
24213       GMOFILES="$GMOFILES $lang.gmo"
24214       POFILES="$POFILES $lang.po"
24215     done
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229    if test "$gt_cv_have_gettext" = "yes"; then
24230      if test "x$ALL_LINGUAS" = "x"; then
24231        LINGUAS=
24232      else
24233        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
24234 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
24235        NEW_LINGUAS=
24236        for presentlang in $ALL_LINGUAS; do
24237          useit=no
24238          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
24239            desiredlanguages="$LINGUAS"
24240          else
24241            desiredlanguages="$ALL_LINGUAS"
24242          fi
24243          for desiredlang in $desiredlanguages; do
24244            # Use the presentlang catalog if desiredlang is
24245            #   a. equal to presentlang, or
24246            #   b. a variant of presentlang (because in this case,
24247            #      presentlang can be used as a fallback for messages
24248            #      which are not translated in the desiredlang catalog).
24249            case "$desiredlang" in
24250              "$presentlang"*) useit=yes;;
24251            esac
24252          done
24253          if test $useit = yes; then
24254            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
24255          fi
24256        done
24257        LINGUAS=$NEW_LINGUAS
24258        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
24259 echo "${ECHO_T}$LINGUAS" >&6; }
24260      fi
24261
24262           if test -n "$LINGUAS"; then
24263        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
24264      fi
24265    fi
24266
24267             MKINSTALLDIRS=
24268    if test -n "$ac_aux_dir"; then
24269      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
24270    fi
24271    if test -z "$MKINSTALLDIRS"; then
24272      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24273    fi
24274
24275
24276          test -d po || mkdir po
24277    if test "x$srcdir" != "x."; then
24278      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
24279        posrcprefix="$srcdir/"
24280      else
24281        posrcprefix="../$srcdir/"
24282      fi
24283    else
24284      posrcprefix="../"
24285    fi
24286    rm -f po/POTFILES
24287    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
24288         < $srcdir/po/POTFILES.in > po/POTFILES
24289
24290
24291 # AM_GNU_GETTEXT above substs $DATADIRNAME
24292 # this is the directory where the *.{mo,gmo} files are installed
24293 gconflocaledir='${prefix}/${DATADIRNAME}/locale'
24294
24295
24296
24297 for ac_func in bind_textdomain_codeset
24298 do
24299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24303   echo $ECHO_N "(cached) $ECHO_C" >&6
24304 else
24305   cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24313 #define $ac_func innocuous_$ac_func
24314
24315 /* System header to define __stub macros and hopefully few prototypes,
24316     which can conflict with char $ac_func (); below.
24317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24318     <limits.h> exists even on freestanding compilers.  */
24319
24320 #ifdef __STDC__
24321 # include <limits.h>
24322 #else
24323 # include <assert.h>
24324 #endif
24325
24326 #undef $ac_func
24327
24328 /* Override any GCC internal prototype to avoid an error.
24329    Use char because int might match the return type of a GCC
24330    builtin and then its argument prototype would still apply.  */
24331 #ifdef __cplusplus
24332 extern "C"
24333 #endif
24334 char $ac_func ();
24335 /* The GNU C library defines this for functions which it implements
24336     to always fail with ENOSYS.  Some functions are actually named
24337     something starting with __ and the normal name is an alias.  */
24338 #if defined __stub_$ac_func || defined __stub___$ac_func
24339 choke me
24340 #endif
24341
24342 int
24343 main ()
24344 {
24345 return $ac_func ();
24346   ;
24347   return 0;
24348 }
24349 _ACEOF
24350 rm -f conftest.$ac_objext conftest$ac_exeext
24351 if { (ac_try="$ac_link"
24352 case "(($ac_try" in
24353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354   *) ac_try_echo=$ac_try;;
24355 esac
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357   (eval "$ac_link") 2>conftest.er1
24358   ac_status=$?
24359   grep -v '^ *+' conftest.er1 >conftest.err
24360   rm -f conftest.er1
24361   cat conftest.err >&5
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); } &&
24364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24365   { (case "(($ac_try" in
24366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367   *) ac_try_echo=$ac_try;;
24368 esac
24369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24370   (eval "$ac_try") 2>&5
24371   ac_status=$?
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); }; } &&
24374          { ac_try='test -s conftest$ac_exeext'
24375   { (case "(($ac_try" in
24376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377   *) ac_try_echo=$ac_try;;
24378 esac
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380   (eval "$ac_try") 2>&5
24381   ac_status=$?
24382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383   (exit $ac_status); }; }; then
24384   eval "$as_ac_var=yes"
24385 else
24386   echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24388
24389         eval "$as_ac_var=no"
24390 fi
24391
24392 rm -f core conftest.err conftest.$ac_objext \
24393       conftest$ac_exeext conftest.$ac_ext
24394 fi
24395 ac_res=`eval echo '${'$as_ac_var'}'`
24396                { echo "$as_me:$LINENO: result: $ac_res" >&5
24397 echo "${ECHO_T}$ac_res" >&6; }
24398 if test `eval echo '${'$as_ac_var'}'` = yes; then
24399   cat >>confdefs.h <<_ACEOF
24400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24401 _ACEOF
24402
24403 fi
24404 done
24405
24406
24407
24408
24409
24410
24411 ## Just for debugging purposes
24412 absolute_top_srcdir=`pwd`
24413
24414
24415 # define a MAINT-like variable REBUILD which is set if Perl
24416 # and awk are found, so autogenerated sources can be rebuilt
24417
24418 for ac_prog in gawk mawk nawk awk
24419 do
24420   # Extract the first word of "$ac_prog", so it can be a program name with args.
24421 set dummy $ac_prog; ac_word=$2
24422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24424 if test "${ac_cv_prog_AWK+set}" = set; then
24425   echo $ECHO_N "(cached) $ECHO_C" >&6
24426 else
24427   if test -n "$AWK"; then
24428   ac_cv_prog_AWK="$AWK" # Let the user override the test.
24429 else
24430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24431 for as_dir in $PATH
24432 do
24433   IFS=$as_save_IFS
24434   test -z "$as_dir" && as_dir=.
24435   for ac_exec_ext in '' $ac_executable_extensions; do
24436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24437     ac_cv_prog_AWK="$ac_prog"
24438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24439     break 2
24440   fi
24441 done
24442 done
24443 IFS=$as_save_IFS
24444
24445 fi
24446 fi
24447 AWK=$ac_cv_prog_AWK
24448 if test -n "$AWK"; then
24449   { echo "$as_me:$LINENO: result: $AWK" >&5
24450 echo "${ECHO_T}$AWK" >&6; }
24451 else
24452   { echo "$as_me:$LINENO: result: no" >&5
24453 echo "${ECHO_T}no" >&6; }
24454 fi
24455
24456
24457   test -n "$AWK" && break
24458 done
24459
24460 for ac_prog in perl5 perl
24461 do
24462   # Extract the first word of "$ac_prog", so it can be a program name with args.
24463 set dummy $ac_prog; ac_word=$2
24464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24466 if test "${ac_cv_prog_PERL+set}" = set; then
24467   echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469   if test -n "$PERL"; then
24470   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24471 else
24472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24473 for as_dir in $PATH
24474 do
24475   IFS=$as_save_IFS
24476   test -z "$as_dir" && as_dir=.
24477   for ac_exec_ext in '' $ac_executable_extensions; do
24478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24479     ac_cv_prog_PERL="$ac_prog"
24480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24481     break 2
24482   fi
24483 done
24484 done
24485 IFS=$as_save_IFS
24486
24487 fi
24488 fi
24489 PERL=$ac_cv_prog_PERL
24490 if test -n "$PERL"; then
24491   { echo "$as_me:$LINENO: result: $PERL" >&5
24492 echo "${ECHO_T}$PERL" >&6; }
24493 else
24494   { echo "$as_me:$LINENO: result: no" >&5
24495 echo "${ECHO_T}no" >&6; }
24496 fi
24497
24498
24499   test -n "$PERL" && break
24500 done
24501
24502
24503 # We would like indent, but don't require it.
24504 # Extract the first word of "indent", so it can be a program name with args.
24505 set dummy indent; ac_word=$2
24506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24508 if test "${ac_cv_prog_INDENT+set}" = set; then
24509   echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511   if test -n "$INDENT"; then
24512   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
24513 else
24514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24515 for as_dir in $PATH
24516 do
24517   IFS=$as_save_IFS
24518   test -z "$as_dir" && as_dir=.
24519   for ac_exec_ext in '' $ac_executable_extensions; do
24520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
24521     ac_cv_prog_INDENT="indent"
24522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24523     break 2
24524   fi
24525 done
24526 done
24527 IFS=$as_save_IFS
24528
24529 fi
24530 fi
24531 INDENT=$ac_cv_prog_INDENT
24532 if test -n "$INDENT"; then
24533   { echo "$as_me:$LINENO: result: $INDENT" >&5
24534 echo "${ECHO_T}$INDENT" >&6; }
24535 else
24536   { echo "$as_me:$LINENO: result: no" >&5
24537 echo "${ECHO_T}no" >&6; }
24538 fi
24539
24540
24541
24542 _found_perl=0
24543 if test -n "$PERL" && $PERL -v | grep 'version 5.' > /dev/null ; then
24544   _found_perl=1
24545 else
24546   # The version string for perl changed for 'version 5' to 'v5' in
24547   # perl 5.6 or therabouts
24548   if test -n "$PERL" && $PERL -v | grep 'v5.' > /dev/null ; then
24549     _found_perl=1
24550   fi
24551 fi
24552
24553 REBUILD=\#
24554 if test $_found_perl -eq 1; then
24555   if test -n "$AWK" ; then
24556     REBUILD=
24557   fi
24558 fi
24559
24560
24561 ac_config_files="$ac_config_files Makefile gconf-2.m4 gconf-zip gconf/Makefile backends/Makefile po/Makefile.in doc/Makefile doc/gconf/Makefile examples/Makefile tests/Makefile dbus-tests/Makefile gconf-2.0.pc"
24562
24563 cat >confcache <<\_ACEOF
24564 # This file is a shell script that caches the results of configure
24565 # tests run on this system so they can be shared between configure
24566 # scripts and configure runs, see configure's option --config-cache.
24567 # It is not useful on other systems.  If it contains results you don't
24568 # want to keep, you may remove or edit it.
24569 #
24570 # config.status only pays attention to the cache file if you give it
24571 # the --recheck option to rerun configure.
24572 #
24573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24575 # following values.
24576
24577 _ACEOF
24578
24579 # The following way of writing the cache mishandles newlines in values,
24580 # but we know of no workaround that is simple, portable, and efficient.
24581 # So, we kill variables containing newlines.
24582 # Ultrix sh set writes to stderr and can't be redirected directly,
24583 # and sets the high bit in the cache file unless we assign to the vars.
24584 (
24585   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24586     eval ac_val=\$$ac_var
24587     case $ac_val in #(
24588     *${as_nl}*)
24589       case $ac_var in #(
24590       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24592       esac
24593       case $ac_var in #(
24594       _ | IFS | as_nl) ;; #(
24595       *) $as_unset $ac_var ;;
24596       esac ;;
24597     esac
24598   done
24599
24600   (set) 2>&1 |
24601     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24602     *${as_nl}ac_space=\ *)
24603       # `set' does not quote correctly, so add quotes (double-quote
24604       # substitution turns \\\\ into \\, and sed turns \\ into \).
24605       sed -n \
24606         "s/'/'\\\\''/g;
24607           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24608       ;; #(
24609     *)
24610       # `set' quotes correctly as required by POSIX, so do not add quotes.
24611       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24612       ;;
24613     esac |
24614     sort
24615 ) |
24616   sed '
24617      /^ac_cv_env_/b end
24618      t clear
24619      :clear
24620      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24621      t end
24622      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24623      :end' >>confcache
24624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24625   if test -w "$cache_file"; then
24626     test "x$cache_file" != "x/dev/null" &&
24627       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24628 echo "$as_me: updating cache $cache_file" >&6;}
24629     cat confcache >$cache_file
24630   else
24631     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24632 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24633   fi
24634 fi
24635 rm -f confcache
24636
24637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24638 # Let make expand exec_prefix.
24639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24640
24641 DEFS=-DHAVE_CONFIG_H
24642
24643 ac_libobjs=
24644 ac_ltlibobjs=
24645 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24646   # 1. Remove the extension, and $U if already installed.
24647   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24648   ac_i=`echo "$ac_i" | sed "$ac_script"`
24649   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24650   #    will be set to the directory where LIBOBJS objects are built.
24651   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24652   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24653 done
24654 LIBOBJS=$ac_libobjs
24655
24656 LTLIBOBJS=$ac_ltlibobjs
24657
24658
24659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24660   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24661 Usually this means the macro was only invoked conditionally." >&5
24662 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24663 Usually this means the macro was only invoked conditionally." >&2;}
24664    { (exit 1); exit 1; }; }
24665 fi
24666 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
24667   { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
24668 Usually this means the macro was only invoked conditionally." >&5
24669 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
24670 Usually this means the macro was only invoked conditionally." >&2;}
24671    { (exit 1); exit 1; }; }
24672 fi
24673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24674   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24675 Usually this means the macro was only invoked conditionally." >&5
24676 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24677 Usually this means the macro was only invoked conditionally." >&2;}
24678    { (exit 1); exit 1; }; }
24679 fi
24680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24681   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24682 Usually this means the macro was only invoked conditionally." >&5
24683 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24684 Usually this means the macro was only invoked conditionally." >&2;}
24685    { (exit 1); exit 1; }; }
24686 fi
24687 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24688   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24689 Usually this means the macro was only invoked conditionally." >&5
24690 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24691 Usually this means the macro was only invoked conditionally." >&2;}
24692    { (exit 1); exit 1; }; }
24693 fi
24694 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
24695   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24696 Usually this means the macro was only invoked conditionally." >&5
24697 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24698 Usually this means the macro was only invoked conditionally." >&2;}
24699    { (exit 1); exit 1; }; }
24700 fi
24701 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
24702   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24703 Usually this means the macro was only invoked conditionally." >&5
24704 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24705 Usually this means the macro was only invoked conditionally." >&2;}
24706    { (exit 1); exit 1; }; }
24707 fi
24708 if test -z "${USE_SYSTEM_BUS_TRUE}" && test -z "${USE_SYSTEM_BUS_FALSE}"; then
24709   { { echo "$as_me:$LINENO: error: conditional \"USE_SYSTEM_BUS\" was never defined.
24710 Usually this means the macro was only invoked conditionally." >&5
24711 echo "$as_me: error: conditional \"USE_SYSTEM_BUS\" was never defined.
24712 Usually this means the macro was only invoked conditionally." >&2;}
24713    { (exit 1); exit 1; }; }
24714 fi
24715 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
24716   { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined.
24717 Usually this means the macro was only invoked conditionally." >&5
24718 echo "$as_me: error: conditional \"GTK\" was never defined.
24719 Usually this means the macro was only invoked conditionally." >&2;}
24720    { (exit 1); exit 1; }; }
24721 fi
24722 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
24723   { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
24724 Usually this means the macro was only invoked conditionally." >&5
24725 echo "$as_me: error: conditional \"PTHREADS\" was never defined.
24726 Usually this means the macro was only invoked conditionally." >&2;}
24727    { (exit 1); exit 1; }; }
24728 fi
24729 if test -z "${LDAP_SUPPORT_TRUE}" && test -z "${LDAP_SUPPORT_FALSE}"; then
24730   { { echo "$as_me:$LINENO: error: conditional \"LDAP_SUPPORT\" was never defined.
24731 Usually this means the macro was only invoked conditionally." >&5
24732 echo "$as_me: error: conditional \"LDAP_SUPPORT\" was never defined.
24733 Usually this means the macro was only invoked conditionally." >&2;}
24734    { (exit 1); exit 1; }; }
24735 fi
24736
24737   ac_config_commands="$ac_config_commands po/stamp-it"
24738
24739
24740
24741 : ${CONFIG_STATUS=./config.status}
24742 ac_clean_files_save=$ac_clean_files
24743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24744 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24745 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24746 cat >$CONFIG_STATUS <<_ACEOF
24747 #! $SHELL
24748 # Generated by $as_me.
24749 # Run this file to recreate the current configuration.
24750 # Compiler output produced by configure, useful for debugging
24751 # configure, is in config.log if it exists.
24752
24753 debug=false
24754 ac_cs_recheck=false
24755 ac_cs_silent=false
24756 SHELL=\${CONFIG_SHELL-$SHELL}
24757 _ACEOF
24758
24759 cat >>$CONFIG_STATUS <<\_ACEOF
24760 ## --------------------- ##
24761 ## M4sh Initialization.  ##
24762 ## --------------------- ##
24763
24764 # Be Bourne compatible
24765 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24766   emulate sh
24767   NULLCMD=:
24768   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24769   # is contrary to our usage.  Disable this feature.
24770   alias -g '${1+"$@"}'='"$@"'
24771   setopt NO_GLOB_SUBST
24772 else
24773   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24774 fi
24775 BIN_SH=xpg4; export BIN_SH # for Tru64
24776 DUALCASE=1; export DUALCASE # for MKS sh
24777
24778
24779 # PATH needs CR
24780 # Avoid depending upon Character Ranges.
24781 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24784 as_cr_digits='0123456789'
24785 as_cr_alnum=$as_cr_Letters$as_cr_digits
24786
24787 # The user is always right.
24788 if test "${PATH_SEPARATOR+set}" != set; then
24789   echo "#! /bin/sh" >conf$$.sh
24790   echo  "exit 0"   >>conf$$.sh
24791   chmod +x conf$$.sh
24792   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24793     PATH_SEPARATOR=';'
24794   else
24795     PATH_SEPARATOR=:
24796   fi
24797   rm -f conf$$.sh
24798 fi
24799
24800 # Support unset when possible.
24801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24802   as_unset=unset
24803 else
24804   as_unset=false
24805 fi
24806
24807
24808 # IFS
24809 # We need space, tab and new line, in precisely that order.  Quoting is
24810 # there to prevent editors from complaining about space-tab.
24811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24812 # splitting by setting IFS to empty value.)
24813 as_nl='
24814 '
24815 IFS=" ""        $as_nl"
24816
24817 # Find who we are.  Look in the path if we contain no directory separator.
24818 case $0 in
24819   *[\\/]* ) as_myself=$0 ;;
24820   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24821 for as_dir in $PATH
24822 do
24823   IFS=$as_save_IFS
24824   test -z "$as_dir" && as_dir=.
24825   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24826 done
24827 IFS=$as_save_IFS
24828
24829      ;;
24830 esac
24831 # We did not find ourselves, most probably we were run as `sh COMMAND'
24832 # in which case we are not to be found in the path.
24833 if test "x$as_myself" = x; then
24834   as_myself=$0
24835 fi
24836 if test ! -f "$as_myself"; then
24837   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24838   { (exit 1); exit 1; }
24839 fi
24840
24841 # Work around bugs in pre-3.0 UWIN ksh.
24842 for as_var in ENV MAIL MAILPATH
24843 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24844 done
24845 PS1='$ '
24846 PS2='> '
24847 PS4='+ '
24848
24849 # NLS nuisances.
24850 for as_var in \
24851   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24852   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24853   LC_TELEPHONE LC_TIME
24854 do
24855   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24856     eval $as_var=C; export $as_var
24857   else
24858     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24859   fi
24860 done
24861
24862 # Required to use basename.
24863 if expr a : '\(a\)' >/dev/null 2>&1 &&
24864    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24865   as_expr=expr
24866 else
24867   as_expr=false
24868 fi
24869
24870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24871   as_basename=basename
24872 else
24873   as_basename=false
24874 fi
24875
24876
24877 # Name of the executable.
24878 as_me=`$as_basename -- "$0" ||
24879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24880          X"$0" : 'X\(//\)$' \| \
24881          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24882 echo X/"$0" |
24883     sed '/^.*\/\([^/][^/]*\)\/*$/{
24884             s//\1/
24885             q
24886           }
24887           /^X\/\(\/\/\)$/{
24888             s//\1/
24889             q
24890           }
24891           /^X\/\(\/\).*/{
24892             s//\1/
24893             q
24894           }
24895           s/.*/./; q'`
24896
24897 # CDPATH.
24898 $as_unset CDPATH
24899
24900
24901
24902   as_lineno_1=$LINENO
24903   as_lineno_2=$LINENO
24904   test "x$as_lineno_1" != "x$as_lineno_2" &&
24905   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24906
24907   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24908   # uniformly replaced by the line number.  The first 'sed' inserts a
24909   # line-number line after each line using $LINENO; the second 'sed'
24910   # does the real work.  The second script uses 'N' to pair each
24911   # line-number line with the line containing $LINENO, and appends
24912   # trailing '-' during substitution so that $LINENO is not a special
24913   # case at line end.
24914   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24915   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24916   # E. McMahon (1931-1989) for sed's syntax.  :-)
24917   sed -n '
24918     p
24919     /[$]LINENO/=
24920   ' <$as_myself |
24921     sed '
24922       s/[$]LINENO.*/&-/
24923       t lineno
24924       b
24925       :lineno
24926       N
24927       :loop
24928       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24929       t loop
24930       s/-\n.*//
24931     ' >$as_me.lineno &&
24932   chmod +x "$as_me.lineno" ||
24933     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24934    { (exit 1); exit 1; }; }
24935
24936   # Don't try to exec as it changes $[0], causing all sort of problems
24937   # (the dirname of $[0] is not the place where we might find the
24938   # original and so on.  Autoconf is especially sensitive to this).
24939   . "./$as_me.lineno"
24940   # Exit status is that of the last command.
24941   exit
24942 }
24943
24944
24945 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24946   as_dirname=dirname
24947 else
24948   as_dirname=false
24949 fi
24950
24951 ECHO_C= ECHO_N= ECHO_T=
24952 case `echo -n x` in
24953 -n*)
24954   case `echo 'x\c'` in
24955   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24956   *)   ECHO_C='\c';;
24957   esac;;
24958 *)
24959   ECHO_N='-n';;
24960 esac
24961
24962 if expr a : '\(a\)' >/dev/null 2>&1 &&
24963    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24964   as_expr=expr
24965 else
24966   as_expr=false
24967 fi
24968
24969 rm -f conf$$ conf$$.exe conf$$.file
24970 if test -d conf$$.dir; then
24971   rm -f conf$$.dir/conf$$.file
24972 else
24973   rm -f conf$$.dir
24974   mkdir conf$$.dir
24975 fi
24976 echo >conf$$.file
24977 if ln -s conf$$.file conf$$ 2>/dev/null; then
24978   as_ln_s='ln -s'
24979   # ... but there are two gotchas:
24980   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24981   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24982   # In both cases, we have to default to `cp -p'.
24983   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24984     as_ln_s='cp -p'
24985 elif ln conf$$.file conf$$ 2>/dev/null; then
24986   as_ln_s=ln
24987 else
24988   as_ln_s='cp -p'
24989 fi
24990 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24991 rmdir conf$$.dir 2>/dev/null
24992
24993 if mkdir -p . 2>/dev/null; then
24994   as_mkdir_p=:
24995 else
24996   test -d ./-p && rmdir ./-p
24997   as_mkdir_p=false
24998 fi
24999
25000 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
25001 # systems may use methods other than mode bits to determine executability.
25002 cat >conf$$.file <<_ASEOF
25003 #! /bin/sh
25004 exit 0
25005 _ASEOF
25006 chmod +x conf$$.file
25007 if test -x conf$$.file >/dev/null 2>&1; then
25008   as_executable_p="test -x"
25009 else
25010   as_executable_p=:
25011 fi
25012 rm -f conf$$.file
25013
25014 # Sed expression to map a string onto a valid CPP name.
25015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25016
25017 # Sed expression to map a string onto a valid variable name.
25018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25019
25020
25021 exec 6>&1
25022
25023 # Save the log message, to keep $[0] and so on meaningful, and to
25024 # report actual input values of CONFIG_FILES etc. instead of their
25025 # values after options handling.
25026 ac_log="
25027 This file was extended by $as_me, which was
25028 generated by GNU Autoconf 2.60.  Invocation command line was
25029
25030   CONFIG_FILES    = $CONFIG_FILES
25031   CONFIG_HEADERS  = $CONFIG_HEADERS
25032   CONFIG_LINKS    = $CONFIG_LINKS
25033   CONFIG_COMMANDS = $CONFIG_COMMANDS
25034   $ $0 $@
25035
25036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25037 "
25038
25039 _ACEOF
25040
25041 cat >>$CONFIG_STATUS <<_ACEOF
25042 # Files that config.status was made for.
25043 config_files="$ac_config_files"
25044 config_headers="$ac_config_headers"
25045 config_commands="$ac_config_commands"
25046
25047 _ACEOF
25048
25049 cat >>$CONFIG_STATUS <<\_ACEOF
25050 ac_cs_usage="\
25051 \`$as_me' instantiates files from templates according to the
25052 current configuration.
25053
25054 Usage: $0 [OPTIONS] [FILE]...
25055
25056   -h, --help       print this help, then exit
25057   -V, --version    print version number, then exit
25058   -q, --quiet      do not print progress messages
25059   -d, --debug      don't remove temporary files
25060       --recheck    update $as_me by reconfiguring in the same conditions
25061   --file=FILE[:TEMPLATE]
25062                    instantiate the configuration file FILE
25063   --header=FILE[:TEMPLATE]
25064                    instantiate the configuration header FILE
25065
25066 Configuration files:
25067 $config_files
25068
25069 Configuration headers:
25070 $config_headers
25071
25072 Configuration commands:
25073 $config_commands
25074
25075 Report bugs to <bug-autoconf@gnu.org>."
25076
25077 _ACEOF
25078 cat >>$CONFIG_STATUS <<_ACEOF
25079 ac_cs_version="\\
25080 config.status
25081 configured by $0, generated by GNU Autoconf 2.60,
25082   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25083
25084 Copyright (C) 2006 Free Software Foundation, Inc.
25085 This config.status script is free software; the Free Software Foundation
25086 gives unlimited permission to copy, distribute and modify it."
25087
25088 ac_pwd='$ac_pwd'
25089 srcdir='$srcdir'
25090 INSTALL='$INSTALL'
25091 _ACEOF
25092
25093 cat >>$CONFIG_STATUS <<\_ACEOF
25094 # If no file are specified by the user, then we need to provide default
25095 # value.  By we need to know if files were specified by the user.
25096 ac_need_defaults=:
25097 while test $# != 0
25098 do
25099   case $1 in
25100   --*=*)
25101     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25102     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25103     ac_shift=:
25104     ;;
25105   *)
25106     ac_option=$1
25107     ac_optarg=$2
25108     ac_shift=shift
25109     ;;
25110   esac
25111
25112   case $ac_option in
25113   # Handling of the options.
25114   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25115     ac_cs_recheck=: ;;
25116   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25117     echo "$ac_cs_version"; exit ;;
25118   --debug | --debu | --deb | --de | --d | -d )
25119     debug=: ;;
25120   --file | --fil | --fi | --f )
25121     $ac_shift
25122     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25123     ac_need_defaults=false;;
25124   --header | --heade | --head | --hea )
25125     $ac_shift
25126     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25127     ac_need_defaults=false;;
25128   --he | --h)
25129     # Conflict between --help and --header
25130     { echo "$as_me: error: ambiguous option: $1
25131 Try \`$0 --help' for more information." >&2
25132    { (exit 1); exit 1; }; };;
25133   --help | --hel | -h )
25134     echo "$ac_cs_usage"; exit ;;
25135   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25136   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25137     ac_cs_silent=: ;;
25138
25139   # This is an error.
25140   -*) { echo "$as_me: error: unrecognized option: $1
25141 Try \`$0 --help' for more information." >&2
25142    { (exit 1); exit 1; }; } ;;
25143
25144   *) ac_config_targets="$ac_config_targets $1"
25145      ac_need_defaults=false ;;
25146
25147   esac
25148   shift
25149 done
25150
25151 ac_configure_extra_args=
25152
25153 if $ac_cs_silent; then
25154   exec 6>/dev/null
25155   ac_configure_extra_args="$ac_configure_extra_args --silent"
25156 fi
25157
25158 _ACEOF
25159 cat >>$CONFIG_STATUS <<_ACEOF
25160 if \$ac_cs_recheck; then
25161   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25162   CONFIG_SHELL=$SHELL
25163   export CONFIG_SHELL
25164   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25165 fi
25166
25167 _ACEOF
25168 cat >>$CONFIG_STATUS <<\_ACEOF
25169 exec 5>>config.log
25170 {
25171   echo
25172   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25173 ## Running $as_me. ##
25174 _ASBOX
25175   echo "$ac_log"
25176 } >&5
25177
25178 _ACEOF
25179 cat >>$CONFIG_STATUS <<_ACEOF
25180 #
25181 # INIT-COMMANDS
25182 #
25183 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25184 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
25185 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
25186 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
25187
25188
25189 _ACEOF
25190
25191 cat >>$CONFIG_STATUS <<\_ACEOF
25192
25193 # Handling of arguments.
25194 for ac_config_target in $ac_config_targets
25195 do
25196   case $ac_config_target in
25197     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25198     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25199     "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
25200     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25201     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25202     "gconf-2.m4") CONFIG_FILES="$CONFIG_FILES gconf-2.m4" ;;
25203     "gconf-zip") CONFIG_FILES="$CONFIG_FILES gconf-zip" ;;
25204     "gconf/Makefile") CONFIG_FILES="$CONFIG_FILES gconf/Makefile" ;;
25205     "backends/Makefile") CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;;
25206     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25207     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25208     "doc/gconf/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gconf/Makefile" ;;
25209     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25210     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25211     "dbus-tests/Makefile") CONFIG_FILES="$CONFIG_FILES dbus-tests/Makefile" ;;
25212     "gconf-2.0.pc") CONFIG_FILES="$CONFIG_FILES gconf-2.0.pc" ;;
25213     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
25214
25215   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25217    { (exit 1); exit 1; }; };;
25218   esac
25219 done
25220
25221
25222 # If the user did not use the arguments to specify the items to instantiate,
25223 # then the envvar interface is used.  Set only those that are not.
25224 # We use the long form for the default assignment because of an extremely
25225 # bizarre bug on SunOS 4.1.3.
25226 if $ac_need_defaults; then
25227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25228   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25230 fi
25231
25232 # Have a temporary directory for convenience.  Make it in the build tree
25233 # simply because there is no reason against having it here, and in addition,
25234 # creating and moving files from /tmp can sometimes cause problems.
25235 # Hook for its removal unless debugging.
25236 # Note that there is a small window in which the directory will not be cleaned:
25237 # after its creation but before its name has been assigned to `$tmp'.
25238 $debug ||
25239 {
25240   tmp=
25241   trap 'exit_status=$?
25242   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25243 ' 0
25244   trap '{ (exit 1); exit 1; }' 1 2 13 15
25245 }
25246 # Create a (secure) tmp directory for tmp files.
25247
25248 {
25249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25250   test -n "$tmp" && test -d "$tmp"
25251 }  ||
25252 {
25253   tmp=./conf$$-$RANDOM
25254   (umask 077 && mkdir "$tmp")
25255 } ||
25256 {
25257    echo "$me: cannot create a temporary directory in ." >&2
25258    { (exit 1); exit 1; }
25259 }
25260
25261 #
25262 # Set up the sed scripts for CONFIG_FILES section.
25263 #
25264
25265 # No need to generate the scripts if there are no CONFIG_FILES.
25266 # This happens for instance when ./config.status config.h
25267 if test -n "$CONFIG_FILES"; then
25268
25269 _ACEOF
25270
25271
25272
25273 ac_delim='%!_!# '
25274 for ac_last_try in false false false false false :; do
25275   cat >conf$$subs.sed <<_ACEOF
25276 SHELL!$SHELL$ac_delim
25277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25283 exec_prefix!$exec_prefix$ac_delim
25284 prefix!$prefix$ac_delim
25285 program_transform_name!$program_transform_name$ac_delim
25286 bindir!$bindir$ac_delim
25287 sbindir!$sbindir$ac_delim
25288 libexecdir!$libexecdir$ac_delim
25289 datarootdir!$datarootdir$ac_delim
25290 datadir!$datadir$ac_delim
25291 sysconfdir!$sysconfdir$ac_delim
25292 sharedstatedir!$sharedstatedir$ac_delim
25293 localstatedir!$localstatedir$ac_delim
25294 includedir!$includedir$ac_delim
25295 oldincludedir!$oldincludedir$ac_delim
25296 docdir!$docdir$ac_delim
25297 infodir!$infodir$ac_delim
25298 htmldir!$htmldir$ac_delim
25299 dvidir!$dvidir$ac_delim
25300 pdfdir!$pdfdir$ac_delim
25301 psdir!$psdir$ac_delim
25302 libdir!$libdir$ac_delim
25303 localedir!$localedir$ac_delim
25304 mandir!$mandir$ac_delim
25305 DEFS!$DEFS$ac_delim
25306 ECHO_C!$ECHO_C$ac_delim
25307 ECHO_N!$ECHO_N$ac_delim
25308 ECHO_T!$ECHO_T$ac_delim
25309 LIBS!$LIBS$ac_delim
25310 build_alias!$build_alias$ac_delim
25311 host_alias!$host_alias$ac_delim
25312 target_alias!$target_alias$ac_delim
25313 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25314 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25315 INSTALL_DATA!$INSTALL_DATA$ac_delim
25316 CYGPATH_W!$CYGPATH_W$ac_delim
25317 PACKAGE!$PACKAGE$ac_delim
25318 VERSION!$VERSION$ac_delim
25319 ACLOCAL!$ACLOCAL$ac_delim
25320 AUTOCONF!$AUTOCONF$ac_delim
25321 AUTOMAKE!$AUTOMAKE$ac_delim
25322 AUTOHEADER!$AUTOHEADER$ac_delim
25323 MAKEINFO!$MAKEINFO$ac_delim
25324 AMTAR!$AMTAR$ac_delim
25325 install_sh!$install_sh$ac_delim
25326 STRIP!$STRIP$ac_delim
25327 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25328 AWK!$AWK$ac_delim
25329 SET_MAKE!$SET_MAKE$ac_delim
25330 am__leading_dot!$am__leading_dot$ac_delim
25331 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25332 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25333 MAINT!$MAINT$ac_delim
25334 build!$build$ac_delim
25335 build_cpu!$build_cpu$ac_delim
25336 build_vendor!$build_vendor$ac_delim
25337 build_os!$build_os$ac_delim
25338 host!$host$ac_delim
25339 host_cpu!$host_cpu$ac_delim
25340 host_vendor!$host_vendor$ac_delim
25341 host_os!$host_os$ac_delim
25342 OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
25343 OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
25344 CC!$CC$ac_delim
25345 CFLAGS!$CFLAGS$ac_delim
25346 LDFLAGS!$LDFLAGS$ac_delim
25347 CPPFLAGS!$CPPFLAGS$ac_delim
25348 ac_ct_CC!$ac_ct_CC$ac_delim
25349 EXEEXT!$EXEEXT$ac_delim
25350 OBJEXT!$OBJEXT$ac_delim
25351 DEPDIR!$DEPDIR$ac_delim
25352 am__include!$am__include$ac_delim
25353 am__quote!$am__quote$ac_delim
25354 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25355 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25356 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25357 CCDEPMODE!$CCDEPMODE$ac_delim
25358 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25359 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25360 CXX!$CXX$ac_delim
25361 CXXFLAGS!$CXXFLAGS$ac_delim
25362 ac_ct_CXX!$ac_ct_CXX$ac_delim
25363 CXXDEPMODE!$CXXDEPMODE$ac_delim
25364 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25365 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25366 CPP!$CPP$ac_delim
25367 GREP!$GREP$ac_delim
25368 EGREP!$EGREP$ac_delim
25369 LN_S!$LN_S$ac_delim
25370 ECHO!$ECHO$ac_delim
25371 AR!$AR$ac_delim
25372 RANLIB!$RANLIB$ac_delim
25373 _ACEOF
25374
25375   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25376     break
25377   elif $ac_last_try; then
25378     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25380    { (exit 1); exit 1; }; }
25381   else
25382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25383   fi
25384 done
25385
25386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25387 if test -n "$ac_eof"; then
25388   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25389   ac_eof=`expr $ac_eof + 1`
25390 fi
25391
25392 cat >>$CONFIG_STATUS <<_ACEOF
25393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25395 _ACEOF
25396 sed '
25397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25398 s/^/s,@/; s/!/@,|#_!!_#|/
25399 :n
25400 t n
25401 s/'"$ac_delim"'$/,g/; t
25402 s/$/\\/; p
25403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25404 ' >>$CONFIG_STATUS <conf$$subs.sed
25405 rm -f conf$$subs.sed
25406 cat >>$CONFIG_STATUS <<_ACEOF
25407 CEOF$ac_eof
25408 _ACEOF
25409
25410
25411 ac_delim='%!_!# '
25412 for ac_last_try in false false false false false :; do
25413   cat >conf$$subs.sed <<_ACEOF
25414 DLLTOOL!$DLLTOOL$ac_delim
25415 AS!$AS$ac_delim
25416 OBJDUMP!$OBJDUMP$ac_delim
25417 CXXCPP!$CXXCPP$ac_delim
25418 F77!$F77$ac_delim
25419 FFLAGS!$FFLAGS$ac_delim
25420 ac_ct_F77!$ac_ct_F77$ac_delim
25421 LIBTOOL!$LIBTOOL$ac_delim
25422 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
25423 MAJOR_VERSION!$MAJOR_VERSION$ac_delim
25424 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
25425 GCONF_CURRENT!$GCONF_CURRENT$ac_delim
25426 GCONF_REVISION!$GCONF_REVISION$ac_delim
25427 GCONF_AGE!$GCONF_AGE$ac_delim
25428 sysconfsubdir!$sysconfsubdir$ac_delim
25429 sysgconfdir!$sysgconfdir$ac_delim
25430 HTML_DIR!$HTML_DIR$ac_delim
25431 PKG_CONFIG!$PKG_CONFIG$ac_delim
25432 GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim
25433 ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
25434 ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
25435 GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
25436 GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim
25437 USE_SYSTEM_BUS_TRUE!$USE_SYSTEM_BUS_TRUE$ac_delim
25438 USE_SYSTEM_BUS_FALSE!$USE_SYSTEM_BUS_FALSE$ac_delim
25439 DBUS_SERVICE_DIR!$DBUS_SERVICE_DIR$ac_delim
25440 DEPENDENT_CFLAGS!$DEPENDENT_CFLAGS$ac_delim
25441 DEPENDENT_LIBS!$DEPENDENT_LIBS$ac_delim
25442 DEPENDENT_WITH_XML_CFLAGS!$DEPENDENT_WITH_XML_CFLAGS$ac_delim
25443 DEPENDENT_WITH_XML_LIBS!$DEPENDENT_WITH_XML_LIBS$ac_delim
25444 DEPENDENT_WITH_GTK_CFLAGS!$DEPENDENT_WITH_GTK_CFLAGS$ac_delim
25445 DEPENDENT_WITH_GTK_LIBS!$DEPENDENT_WITH_GTK_LIBS$ac_delim
25446 DEPENDENT_WITH_XML_AND_GTK_CFLAGS!$DEPENDENT_WITH_XML_AND_GTK_CFLAGS$ac_delim
25447 DEPENDENT_WITH_XML_AND_GTK_LIBS!$DEPENDENT_WITH_XML_AND_GTK_LIBS$ac_delim
25448 GTK_TRUE!$GTK_TRUE$ac_delim
25449 GTK_FALSE!$GTK_FALSE$ac_delim
25450 PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim
25451 PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim
25452 LDAP_LIBS!$LDAP_LIBS$ac_delim
25453 LDAP_SUPPORT_TRUE!$LDAP_SUPPORT_TRUE$ac_delim
25454 LDAP_SUPPORT_FALSE!$LDAP_SUPPORT_FALSE$ac_delim
25455 LDAP_CFLAGS!$LDAP_CFLAGS$ac_delim
25456 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
25457 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
25458 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
25459 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
25460 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
25461 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
25462 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
25463 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
25464 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
25465 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
25466 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
25467 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
25468 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
25469 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
25470 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
25471 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
25472 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
25473 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
25474 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
25475 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
25476 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
25477 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
25478 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
25479 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
25480 DATADIRNAME!$DATADIRNAME$ac_delim
25481 USE_NLS!$USE_NLS$ac_delim
25482 MSGFMT!$MSGFMT$ac_delim
25483 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
25484 GMSGFMT!$GMSGFMT$ac_delim
25485 XGETTEXT!$XGETTEXT$ac_delim
25486 CATALOGS!$CATALOGS$ac_delim
25487 CATOBJEXT!$CATOBJEXT$ac_delim
25488 GMOFILES!$GMOFILES$ac_delim
25489 INSTOBJEXT!$INSTOBJEXT$ac_delim
25490 INTLLIBS!$INTLLIBS$ac_delim
25491 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
25492 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
25493 POFILES!$POFILES$ac_delim
25494 POSUB!$POSUB$ac_delim
25495 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
25496 gconflocaledir!$gconflocaledir$ac_delim
25497 absolute_top_srcdir!$absolute_top_srcdir$ac_delim
25498 PERL!$PERL$ac_delim
25499 INDENT!$INDENT$ac_delim
25500 REBUILD!$REBUILD$ac_delim
25501 LIBOBJS!$LIBOBJS$ac_delim
25502 LTLIBOBJS!$LTLIBOBJS$ac_delim
25503 _ACEOF
25504
25505   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
25506     break
25507   elif $ac_last_try; then
25508     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25509 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25510    { (exit 1); exit 1; }; }
25511   else
25512     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25513   fi
25514 done
25515
25516 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25517 if test -n "$ac_eof"; then
25518   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25519   ac_eof=`expr $ac_eof + 1`
25520 fi
25521
25522 cat >>$CONFIG_STATUS <<_ACEOF
25523 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25525 _ACEOF
25526 sed '
25527 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25528 s/^/s,@/; s/!/@,|#_!!_#|/
25529 :n
25530 t n
25531 s/'"$ac_delim"'$/,g/; t
25532 s/$/\\/; p
25533 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25534 ' >>$CONFIG_STATUS <conf$$subs.sed
25535 rm -f conf$$subs.sed
25536 cat >>$CONFIG_STATUS <<_ACEOF
25537 :end
25538 s/|#_!!_#|//g
25539 CEOF$ac_eof
25540 _ACEOF
25541
25542
25543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25545 # trailing colons and then remove the whole line if VPATH becomes empty
25546 # (actually we leave an empty line to preserve line numbers).
25547 if test "x$srcdir" = x.; then
25548   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25549 s/:*\$(srcdir):*/:/
25550 s/:*\${srcdir}:*/:/
25551 s/:*@srcdir@:*/:/
25552 s/^\([^=]*=[     ]*\):*/\1/
25553 s/:*$//
25554 s/^[^=]*=[       ]*$//
25555 }'
25556 fi
25557
25558 cat >>$CONFIG_STATUS <<\_ACEOF
25559 fi # test -n "$CONFIG_FILES"
25560
25561
25562 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25563 do
25564   case $ac_tag in
25565   :[FHLC]) ac_mode=$ac_tag; continue;;
25566   esac
25567   case $ac_mode$ac_tag in
25568   :[FHL]*:*);;
25569   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25570 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25571    { (exit 1); exit 1; }; };;
25572   :[FH]-) ac_tag=-:-;;
25573   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25574   esac
25575   ac_save_IFS=$IFS
25576   IFS=:
25577   set x $ac_tag
25578   IFS=$ac_save_IFS
25579   shift
25580   ac_file=$1
25581   shift
25582
25583   case $ac_mode in
25584   :L) ac_source=$1;;
25585   :[FH])
25586     ac_file_inputs=
25587     for ac_f
25588     do
25589       case $ac_f in
25590       -) ac_f="$tmp/stdin";;
25591       *) # Look for the file first in the build tree, then in the source tree
25592          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25593          # because $ac_f cannot contain `:'.
25594          test -f "$ac_f" ||
25595            case $ac_f in
25596            [\\/$]*) false;;
25597            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25598            esac ||
25599            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25600 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25601    { (exit 1); exit 1; }; };;
25602       esac
25603       ac_file_inputs="$ac_file_inputs $ac_f"
25604     done
25605
25606     # Let's still pretend it is `configure' which instantiates (i.e., don't
25607     # use $as_me), people would be surprised to read:
25608     #    /* config.h.  Generated by config.status.  */
25609     configure_input="Generated from "`IFS=:
25610           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25611     if test x"$ac_file" != x-; then
25612       configure_input="$ac_file.  $configure_input"
25613       { echo "$as_me:$LINENO: creating $ac_file" >&5
25614 echo "$as_me: creating $ac_file" >&6;}
25615     fi
25616
25617     case $ac_tag in
25618     *:-:* | *:-) cat >"$tmp/stdin";;
25619     esac
25620     ;;
25621   esac
25622
25623   ac_dir=`$as_dirname -- "$ac_file" ||
25624 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25625          X"$ac_file" : 'X\(//\)[^/]' \| \
25626          X"$ac_file" : 'X\(//\)$' \| \
25627          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25628 echo X"$ac_file" |
25629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25630             s//\1/
25631             q
25632           }
25633           /^X\(\/\/\)[^/].*/{
25634             s//\1/
25635             q
25636           }
25637           /^X\(\/\/\)$/{
25638             s//\1/
25639             q
25640           }
25641           /^X\(\/\).*/{
25642             s//\1/
25643             q
25644           }
25645           s/.*/./; q'`
25646   { as_dir="$ac_dir"
25647   case $as_dir in #(
25648   -*) as_dir=./$as_dir;;
25649   esac
25650   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25651     as_dirs=
25652     while :; do
25653       case $as_dir in #(
25654       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25655       *) as_qdir=$as_dir;;
25656       esac
25657       as_dirs="'$as_qdir' $as_dirs"
25658       as_dir=`$as_dirname -- "$as_dir" ||
25659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25660          X"$as_dir" : 'X\(//\)[^/]' \| \
25661          X"$as_dir" : 'X\(//\)$' \| \
25662          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25663 echo X"$as_dir" |
25664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25665             s//\1/
25666             q
25667           }
25668           /^X\(\/\/\)[^/].*/{
25669             s//\1/
25670             q
25671           }
25672           /^X\(\/\/\)$/{
25673             s//\1/
25674             q
25675           }
25676           /^X\(\/\).*/{
25677             s//\1/
25678             q
25679           }
25680           s/.*/./; q'`
25681       test -d "$as_dir" && break
25682     done
25683     test -z "$as_dirs" || eval "mkdir $as_dirs"
25684   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25685 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25686    { (exit 1); exit 1; }; }; }
25687   ac_builddir=.
25688
25689 case "$ac_dir" in
25690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25691 *)
25692   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25693   # A ".." for each directory in $ac_dir_suffix.
25694   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25695   case $ac_top_builddir_sub in
25696   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25697   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25698   esac ;;
25699 esac
25700 ac_abs_top_builddir=$ac_pwd
25701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25702 # for backward compatibility:
25703 ac_top_builddir=$ac_top_build_prefix
25704
25705 case $srcdir in
25706   .)  # We are building in place.
25707     ac_srcdir=.
25708     ac_top_srcdir=$ac_top_builddir_sub
25709     ac_abs_top_srcdir=$ac_pwd ;;
25710   [\\/]* | ?:[\\/]* )  # Absolute name.
25711     ac_srcdir=$srcdir$ac_dir_suffix;
25712     ac_top_srcdir=$srcdir
25713     ac_abs_top_srcdir=$srcdir ;;
25714   *) # Relative name.
25715     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25716     ac_top_srcdir=$ac_top_build_prefix$srcdir
25717     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25718 esac
25719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25720
25721
25722   case $ac_mode in
25723   :F)
25724   #
25725   # CONFIG_FILE
25726   #
25727
25728   case $INSTALL in
25729   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25730   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25731   esac
25732 _ACEOF
25733
25734 cat >>$CONFIG_STATUS <<\_ACEOF
25735 # If the template does not know about datarootdir, expand it.
25736 # FIXME: This hack should be removed a few years after 2.60.
25737 ac_datarootdir_hack=; ac_datarootdir_seen=
25738
25739 case `sed -n '/datarootdir/ {
25740   p
25741   q
25742 }
25743 /@datadir@/p
25744 /@docdir@/p
25745 /@infodir@/p
25746 /@localedir@/p
25747 /@mandir@/p
25748 ' $ac_file_inputs` in
25749 *datarootdir*) ac_datarootdir_seen=yes;;
25750 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25751   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25752 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25753 _ACEOF
25754 cat >>$CONFIG_STATUS <<_ACEOF
25755   ac_datarootdir_hack='
25756   s&@datadir@&$datadir&g
25757   s&@docdir@&$docdir&g
25758   s&@infodir@&$infodir&g
25759   s&@localedir@&$localedir&g
25760   s&@mandir@&$mandir&g
25761     s&\\\${datarootdir}&$datarootdir&g' ;;
25762 esac
25763 _ACEOF
25764
25765 # Neutralize VPATH when `$srcdir' = `.'.
25766 # Shell code in configure.ac might set extrasub.
25767 # FIXME: do we really want to maintain this feature?
25768 cat >>$CONFIG_STATUS <<_ACEOF
25769   sed "$ac_vpsub
25770 $extrasub
25771 _ACEOF
25772 cat >>$CONFIG_STATUS <<\_ACEOF
25773 :t
25774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25775 s&@configure_input@&$configure_input&;t t
25776 s&@top_builddir@&$ac_top_builddir_sub&;t t
25777 s&@srcdir@&$ac_srcdir&;t t
25778 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25779 s&@top_srcdir@&$ac_top_srcdir&;t t
25780 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25781 s&@builddir@&$ac_builddir&;t t
25782 s&@abs_builddir@&$ac_abs_builddir&;t t
25783 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25784 s&@INSTALL@&$ac_INSTALL&;t t
25785 $ac_datarootdir_hack
25786 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25787
25788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25789   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25790   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25791   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25792 which seems to be undefined.  Please make sure it is defined." >&5
25793 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25794 which seems to be undefined.  Please make sure it is defined." >&2;}
25795
25796   rm -f "$tmp/stdin"
25797   case $ac_file in
25798   -) cat "$tmp/out"; rm -f "$tmp/out";;
25799   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25800   esac
25801  ;;
25802   :H)
25803   #
25804   # CONFIG_HEADER
25805   #
25806 _ACEOF
25807
25808 # Transform confdefs.h into a sed script `conftest.defines', that
25809 # substitutes the proper values into config.h.in to produce config.h.
25810 rm -f conftest.defines conftest.tail
25811 # First, append a space to every undef/define line, to ease matching.
25812 echo 's/$/ /' >conftest.defines
25813 # Then, protect against being on the right side of a sed subst, or in
25814 # an unquoted here document, in config.status.  If some macros were
25815 # called several times there might be several #defines for the same
25816 # symbol, which is useless.  But do not sort them, since the last
25817 # AC_DEFINE must be honored.
25818 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25819 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25820 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25821 # PARAMS is the parameter list in the macro definition--in most cases, it's
25822 # just an empty string.
25823 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25824 ac_dB='\\)[      (].*,\\1define\\2'
25825 ac_dC=' '
25826 ac_dD=' ,'
25827
25828 uniq confdefs.h |
25829   sed -n '
25830         t rset
25831         :rset
25832         s/^[     ]*#[    ]*define[       ][      ]*//
25833         t ok
25834         d
25835         :ok
25836         s/[\\&,]/\\&/g
25837         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25838         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25839   ' >>conftest.defines
25840
25841 # Remove the space that was appended to ease matching.
25842 # Then replace #undef with comments.  This is necessary, for
25843 # example, in the case of _POSIX_SOURCE, which is predefined and required
25844 # on some systems where configure will not decide to define it.
25845 # (The regexp can be short, since the line contains either #define or #undef.)
25846 echo 's/ $//
25847 s,^[     #]*u.*,/* & */,' >>conftest.defines
25848
25849 # Break up conftest.defines:
25850 ac_max_sed_lines=50
25851
25852 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25853 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25854 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25855 # et cetera.
25856 ac_in='$ac_file_inputs'
25857 ac_out='"$tmp/out1"'
25858 ac_nxt='"$tmp/out2"'
25859
25860 while :
25861 do
25862   # Write a here document:
25863     cat >>$CONFIG_STATUS <<_ACEOF
25864     # First, check the format of the line:
25865     cat >"\$tmp/defines.sed" <<\\CEOF
25866 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25867 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25868 b
25869 :def
25870 _ACEOF
25871   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25872   echo 'CEOF
25873     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25874   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25875   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25876   grep . conftest.tail >/dev/null || break
25877   rm -f conftest.defines
25878   mv conftest.tail conftest.defines
25879 done
25880 rm -f conftest.defines conftest.tail
25881
25882 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25884   if test x"$ac_file" != x-; then
25885     echo "/* $configure_input  */" >"$tmp/config.h"
25886     cat "$ac_result" >>"$tmp/config.h"
25887     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25888       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25889 echo "$as_me: $ac_file is unchanged" >&6;}
25890     else
25891       rm -f $ac_file
25892       mv "$tmp/config.h" $ac_file
25893     fi
25894   else
25895     echo "/* $configure_input  */"
25896     cat "$ac_result"
25897   fi
25898   rm -f "$tmp/out12"
25899 # Compute $ac_file's index in $config_headers.
25900 _am_stamp_count=1
25901 for _am_header in $config_headers :; do
25902   case $_am_header in
25903     $ac_file | $ac_file:* )
25904       break ;;
25905     * )
25906       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25907   esac
25908 done
25909 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25910 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25911          X$ac_file : 'X\(//\)[^/]' \| \
25912          X$ac_file : 'X\(//\)$' \| \
25913          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25914 echo X$ac_file |
25915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25916             s//\1/
25917             q
25918           }
25919           /^X\(\/\/\)[^/].*/{
25920             s//\1/
25921             q
25922           }
25923           /^X\(\/\/\)$/{
25924             s//\1/
25925             q
25926           }
25927           /^X\(\/\).*/{
25928             s//\1/
25929             q
25930           }
25931           s/.*/./; q'`/stamp-h$_am_stamp_count
25932  ;;
25933
25934   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25935 echo "$as_me: executing $ac_file commands" >&6;}
25936  ;;
25937   esac
25938
25939
25940   case $ac_file$ac_mode in
25941     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25942   # Strip MF so we end up with the name of the file.
25943   mf=`echo "$mf" | sed -e 's/:.*$//'`
25944   # Check whether this is an Automake generated Makefile or not.
25945   # We used to match only the files named `Makefile.in', but
25946   # some people rename them; so instead we look at the file content.
25947   # Grep'ing the first line is not enough: some people post-process
25948   # each Makefile.in and add a new line on top of each file to say so.
25949   # So let's grep whole file.
25950   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25951     dirpart=`$as_dirname -- "$mf" ||
25952 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25953          X"$mf" : 'X\(//\)[^/]' \| \
25954          X"$mf" : 'X\(//\)$' \| \
25955          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25956 echo X"$mf" |
25957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25958             s//\1/
25959             q
25960           }
25961           /^X\(\/\/\)[^/].*/{
25962             s//\1/
25963             q
25964           }
25965           /^X\(\/\/\)$/{
25966             s//\1/
25967             q
25968           }
25969           /^X\(\/\).*/{
25970             s//\1/
25971             q
25972           }
25973           s/.*/./; q'`
25974   else
25975     continue
25976   fi
25977   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25978   # Extract the definition of DEP_FILES from the Makefile without
25979   # running `make'.
25980   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
25981   test -z "$DEPDIR" && continue
25982   # When using ansi2knr, U may be empty or an underscore; expand it
25983   U=`sed -n -e '/^U = / s///p' < "$mf"`
25984   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25985   # We invoke sed twice because it is the simplest approach to
25986   # changing $(DEPDIR) to its actual value in the expansion.
25987   for file in `sed -n -e '
25988     /^DEP_FILES = .*\\\\$/ {
25989       s/^DEP_FILES = //
25990       :loop
25991         s/\\\\$//
25992         p
25993         n
25994         /\\\\$/ b loop
25995       p
25996     }
25997     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25998        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25999     # Make sure the directory exists.
26000     test -f "$dirpart/$file" && continue
26001     fdir=`$as_dirname -- "$file" ||
26002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26003          X"$file" : 'X\(//\)[^/]' \| \
26004          X"$file" : 'X\(//\)$' \| \
26005          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26006 echo X"$file" |
26007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26008             s//\1/
26009             q
26010           }
26011           /^X\(\/\/\)[^/].*/{
26012             s//\1/
26013             q
26014           }
26015           /^X\(\/\/\)$/{
26016             s//\1/
26017             q
26018           }
26019           /^X\(\/\).*/{
26020             s//\1/
26021             q
26022           }
26023           s/.*/./; q'`
26024     { as_dir=$dirpart/$fdir
26025   case $as_dir in #(
26026   -*) as_dir=./$as_dir;;
26027   esac
26028   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26029     as_dirs=
26030     while :; do
26031       case $as_dir in #(
26032       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26033       *) as_qdir=$as_dir;;
26034       esac
26035       as_dirs="'$as_qdir' $as_dirs"
26036       as_dir=`$as_dirname -- "$as_dir" ||
26037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26038          X"$as_dir" : 'X\(//\)[^/]' \| \
26039          X"$as_dir" : 'X\(//\)$' \| \
26040          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26041 echo X"$as_dir" |
26042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26043             s//\1/
26044             q
26045           }
26046           /^X\(\/\/\)[^/].*/{
26047             s//\1/
26048             q
26049           }
26050           /^X\(\/\/\)$/{
26051             s//\1/
26052             q
26053           }
26054           /^X\(\/\).*/{
26055             s//\1/
26056             q
26057           }
26058           s/.*/./; q'`
26059       test -d "$as_dir" && break
26060     done
26061     test -z "$as_dirs" || eval "mkdir $as_dirs"
26062   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26063 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26064    { (exit 1); exit 1; }; }; }
26065     # echo "creating $dirpart/$file"
26066     echo '# dummy' > "$dirpart/$file"
26067   done
26068 done
26069  ;;
26070     "intltool":C)
26071
26072 for file in intltool-extract intltool-merge intltool-update; do
26073   sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
26074       -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
26075       -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
26076         < ${ac_aux_dir}/${file}.in > ${file}.out
26077   if cmp -s ${file} ${file}.out 2>/dev/null; then
26078     rm -f ${file}.out
26079   else
26080     mv -f ${file}.out ${file}
26081   fi
26082   chmod ugo+x ${file}
26083   chmod u+w ${file}
26084 done
26085
26086  ;;
26087     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
26088         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
26089       esac ;;
26090     "po/stamp-it":C)
26091     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
26092     >"po/stamp-it.tmp"
26093     sed '/^#/d
26094          s/^[[].*] *//
26095          /^[    ]*$/d
26096         '"s|^|  $ac_top_srcdir/|" \
26097       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
26098
26099     if test ! -f "po/Makefile"; then
26100       { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
26101 echo "$as_me: error: po/Makefile is not ready." >&2;}
26102    { (exit 1); exit 1; }; }
26103     fi
26104     mv "po/Makefile" "po/Makefile.tmp"
26105     sed '/^POTFILES =/,/[^\\]$/ {
26106                 /^POTFILES =/!d
26107                 r po/POTFILES
26108           }
26109          ' "po/Makefile.tmp" >"po/Makefile"
26110     rm -f "po/Makefile.tmp"
26111     mv "po/stamp-it.tmp" "po/stamp-it"
26112    ;;
26113
26114   esac
26115 done # for ac_tag
26116
26117
26118 { (exit 0); exit 0; }
26119 _ACEOF
26120 chmod +x $CONFIG_STATUS
26121 ac_clean_files=$ac_clean_files_save
26122
26123
26124 # configure is writing to config.log, and then calls config.status.
26125 # config.status does its own redirection, appending to config.log.
26126 # Unfortunately, on DOS this fails, as config.log is still kept open
26127 # by configure, so config.status won't be able to write to it; its
26128 # output is simply discarded.  So we exec the FD to /dev/null,
26129 # effectively closing config.log, so it can be properly (re)opened and
26130 # appended to by config.status.  When coming back to configure, we
26131 # need to make the FD available again.
26132 if test "$no_create" != yes; then
26133   ac_cs_success=:
26134   ac_config_status_args=
26135   test "$silent" = yes &&
26136     ac_config_status_args="$ac_config_status_args --quiet"
26137   exec 5>/dev/null
26138   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26139   exec 5>>config.log
26140   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26141   # would make configure fail if this is the last instruction.
26142   $ac_cs_success || { (exit 1); exit 1; }
26143 fi
26144
26145